/* nothing may push the page sideways on a phone */
html, body { overflow-x: clip; max-width: 100%; }
/* Mandali student app · feel (Phase 2, 29 Nov 2026). Persuade-leaning, but quick: UI motion stays under ~500 ms. */

/* tap light */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9998; overflow: hidden; }
.fx-bloom { position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(233,180,76,.38) 0%, rgba(233,180,76,.16) 38%, rgba(233,180,76,0) 70%);
  transform: scale(.2); opacity: 1; animation: fxBloom .6s cubic-bezier(.23,1,.32,1) forwards; }
html[data-theme="light"] .fx-bloom { background: radial-gradient(circle, rgba(185,129,20,.28) 0%, rgba(185,129,20,.1) 40%, rgba(185,129,20,0) 70%); }
@keyframes fxBloom { to { transform: scale(1.15); opacity: 0; } }

/* page arrival: a gold line sweeps under the header, blocks rise in turn */
.fx-sweep { position: fixed; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(233,180,76,0) 10%, #E9B44C 50%, rgba(233,180,76,0) 90%, transparent 100%); transform: translateX(-100%); }
.fx-sweep.go { animation: fxSweep .7s cubic-bezier(.65,0,.35,1) both; }
@keyframes fxSweep { 0% { opacity: 1; transform: translateX(-100%); } 100% { opacity: 0; transform: translateX(100%); } }
.fx-rise { animation: fxRise .5s cubic-bezier(.23,1,.32,1) both; animation-delay: calc(var(--fx-i, 0) * 55ms); }
@keyframes fxRise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* quick tools: glow follows the finger, icon pops on press */
.fx-on .hq-b { position: relative; overflow: hidden; isolation: isolate; transition: transform .16s cubic-bezier(.23,1,.32,1), border-color .2s ease, box-shadow .25s ease; }
.fx-on .hq-b::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .2s ease; pointer-events: none;
  background: radial-gradient(140px circle at var(--fx-mx, 50%) var(--fx-my, 50%), rgba(233,180,76,.22), transparent 60%); }
.fx-on .hq-b:active { transform: scale(.96); }
.fx-on .hq-b:active::before { opacity: 1; }
.hq-b.fx-pop .hq-ic { animation: fxPop .42s cubic-bezier(.23,1,.32,1); }
@keyframes fxPop { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-4deg); } 100% { transform: scale(1); } }
@media (hover: hover) and (pointer: fine) {
  .fx-on .hq-b:hover { transform: translateY(-3px); border-color: rgba(233,180,76,.45); box-shadow: 0 14px 30px -18px rgba(233,180,76,.45); }
  .fx-on .hq-b:hover::before { opacity: 1; }
  .fx-on .ha-bar:hover { box-shadow: 0 16px 36px -20px rgba(233,180,76,.5); }
}

/* use the space on wide screens: two real columns (built by student-fx.js) */
@media (min-width: 1100px) {
  .wrap.home.hm2 { max-width: min(1280px, 100%); }
  .hm-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .hm-col { min-width: 0; }
  .hm-cols .hq { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-bloom, .fx-sweep.go, .hq-b.fx-pop .hq-ic { animation: none; display: none; }
  .fx-rise { animation: fxFade .3s ease both; }
}
@keyframes fxFade { from { opacity: 0; } to { opacity: 1; } }

