/* vazirmatn-arabic-wght-normal */
@font-face {
  font-family: "Vazirmatn Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/vazirmatn-arabic-wght-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4,
    U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24,
    U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47,
    U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59,
    U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A,
    U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89,
    U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

/* vazirmatn-latin-ext-wght-normal */
@font-face {
  font-family: "Vazirmatn Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/vazirmatn-latin-ext-wght-normal.woff2)
    format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* vazirmatn-latin-wght-normal */
@font-face {
  font-family: "Vazirmatn Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/vazirmatn-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
.mode-art { position:relative; }
.mode-art .mode-emblem { position:absolute; bottom:.5rem; inset-inline-start:.5rem; }
.mode-emblem { display:inline-block; position:relative; width:48px; height:48px; background:var(--panel); border:2px solid var(--edge); flex:none; }
.mode-emblem i { position:absolute; top:6px; left:6px; width:4px; height:4px; }
.mode-gesture { display:flex; align-items:center; gap:.75rem; }
.garden-stage .lesson-board { margin-block:0; }
.blocks-action { display:grid; justify-items:center; gap:.35rem; }
.blocks-action[hidden] { display:none; }
.blocks-action > canvas { display:block; height:clamp(148px,31svh,310px); max-width:100%; image-rendering:pixelated; border:4px ridge #9d775c; }
.blocks-legend,.blocks-legend span { display:flex; gap:.5rem; align-items:center; }
.blocks-legend canvas { image-rendering:pixelated; }
.blocks-receipt { color:var(--green); }
.blocks-slip { display:grid; justify-items:center; padding:.25rem 1rem; background:#f8eac7; color:#372f35; border-bottom:3px dashed #aa8761; }
.blocks-order,.blocks-order span { display:flex; gap:.25rem; align-items:center; }
.blocks-order canvas { background:#453a39; image-rendering:pixelated; }
.blocks-pad { display:flex; justify-content:center; flex-wrap:wrap; gap:.25rem; }
.blocks-pad button { padding:.25rem .65rem; }
.garden-action { display:grid; justify-items:center; gap:.35rem; }
.garden-action canvas { display:block; width:min(100%,clamp(135px,36svh,340px)); height:auto; image-rendering:pixelated; touch-action:none; }
.garden-pad { display:flex; gap:.4rem; }
.garden-action .line { display:flex; justify-content:center; flex-wrap:wrap; gap:.25rem; }
.garden-action .ghost,.garden-action .cta { padding:.25rem .65rem; }
.lesson { max-width: 52rem; margin-inline:auto; }
.lesson .hud { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem; }
.lesson .hud b:first-child { flex:1; }
.lesson button { min-height:44px; min-width:44px; white-space:normal; line-height:1.6; }
.lesson button:disabled { opacity:.6; }
.lesson-stage { padding:clamp(.75rem,3vw,1.75rem); }
.lesson-stage h2 { font-size:clamp(1.15rem,3vw,1.5rem); margin:0 0 .75rem; }
.lesson-board, .lesson-answer, .lesson-board output { display:grid; gap:.65rem; margin-block:.65rem; }
.lesson-answer:empty,.lesson-board output:empty { display:none; }
.lesson-options { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:.5rem; }
.lesson-options button { overflow-wrap:anywhere; }
.lesson button[aria-pressed=true] { outline:3px solid var(--green); outline-offset:-3px; }
.lesson-scene { min-height:8rem; display:flex; align-items:end; justify-content:space-around; padding:.65rem; gap:.5rem; flex-wrap:wrap; image-rendering:pixelated; background:#39374d url(/label-game.png) center 45% / cover; border:2px solid var(--edge); }
.lesson-scene span,.package,.lesson-board output,.proposal { padding:.5rem .8rem; background:var(--panel); border:1px solid var(--edge); }
.lesson-scene.comic { background-image:url(/hero-game.png); justify-content:space-between; }
.comic span { border:2px solid var(--ink); }
.speech { border-radius:1.4rem 1.4rem .1rem 1.4rem; padding:.7rem; background:var(--panel); border:2px solid var(--violet); }
.lesson-scene.pairs { background-image:url(/sun-game.png); }
.pairs + .lesson-options button { border:2px solid var(--gold); min-height:5rem; }
.proposal { text-align:center; touch-action:pan-y; border-inline-start:5px solid var(--gold); }
.sort ~ .lesson-options button { border-bottom:5px solid var(--peach); }
.repair-target { border:3px dashed var(--green); background:var(--bg); padding:.5rem; }
.hotspot { border:3px solid var(--gold); border-radius:50%; background:var(--panel); }
.lesson-road { width:100%; height:clamp(100px,20vh,180px); image-rendering:pixelated; }
.lesson [hidden] { display:none; }
.lesson-board { position:relative; }
.checkpoint-pickup { position:absolute; top:1rem; left:45%; color:var(--gold); background:var(--panel); padding:.2rem .5rem; animation:collect .6s both; }
@keyframes collect { to { transform:translateY(-1rem); opacity:0; } }
.lesson .hotspot { border-radius:.6rem; padding:.4rem; flex:1; }
.lesson-board output:not(:empty) { border-color:var(--gold); font-size:1.25rem; }
.lesson-scene.detective span { flex-basis:100%; }
.lesson-scene { position:relative; isolation:isolate; padding-top:6rem; }
.lesson-props { position:absolute; top:.3rem; left:50%; transform:translateX(-50%); height:5.5rem; max-width:95%; image-rendering:pixelated; pointer-events:none; }
.lesson-scene::before { content:""; position:absolute; inset:0; z-index:-1; background:#211d32a6; }
.resolved .repair-target,.resolved button[aria-pressed=true] { border-color:var(--mint,var(--green)); }
.repair-target { position:relative; }
@media (prefers-reduced-motion:no-preference) {
  .resolved .repair-target,.resolved .pairs + .lesson-options button[aria-pressed=true] { animation:settle .25s ease-out; }
  @keyframes settle { 50% { transform:translateY(-4px); } }
}
.package { border-inline-start:6px solid var(--violet); }
.package + .package { border-inline-start-color:var(--gold); }
.lesson :focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
:root {
  --bg: #141323;
  --panel: #201e34;
  --edge: #3d3954;
  --ink: #fff8f2;
  --dim: #beb8ce;
  --green: #c1f77c;
  --peach: #ffb89e;
  --violet: #b8a2ff;
  --gold: #f8d57b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.75 "Vazirmatn Variable",
    Tahoma,
    sans-serif;
  min-height: 100vh;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.skip {
  position: fixed;
  top: -100px;
  background: #fff;
  color: #111;
  z-index: 100;
}
.skip:focus {
  top: 0;
}
header {
  height: 74px;
  background: #191728;
  border-bottom: 1px solid var(--edge);
}
.navwrap,
main,
footer {
  width: min(1260px, calc(100% - 80px));
  margin: auto;
}
.navwrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}
.brand b {
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.7px;
}
.brand .brandicon {
  display: grid;
  place-items: center;
  background: var(--green);
  color: #262a22;
  border-radius: 9px;
  width: 38px;
  height: 38px;
  box-shadow: inset 0 -3px #80b753;
}
.brandicon svg {
  width: 25px;
  height: 25px;
}
.navlinks {
  display: flex;
  height: 100%;
  gap: 22px;
}
.navlinks button {
  position: relative;
  color: var(--dim);
  font-size: 15px;
  white-space: nowrap;
}
.navlinks .selected {
  color: var(--green);
  font-weight: 700;
}
.navlinks .selected:after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 6px;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
}
.actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pill,
.ghost,
.cta,
.button,
.controls button,
.smallbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 9px;
  min-height: 41px;
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 700;
}
.ghost,
.smallbtn {
  border: 1px solid var(--edge);
  background: #272439;
}
.pill {
  background: #2e2b37;
  color: var(--gold);
  font-size: 14px;
  padding-inline: 11px;
}
.cta,
.button {
  background: var(--green);
  color: #232a1a;
  font-weight: 800;
}
.cta {
  box-shadow: 0 4px #78aa4f;
  padding: 9px 22px;
}
.cta:hover,
.button:hover {
  background: #d4ff9d;
}
.ghost:hover,
.smallbtn:hover {
  background: #343147;
}
.ico {
  vertical-align: middle;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  flex: none;
}
.coin {
  color: var(--gold);
}
main {
  padding: 34px 0 46px;
  min-height: calc(100vh - 150px);
}
.over {
  font:
    700 12px/1.3 ui-monospace,
    monospace;
  letter-spacing: 2px;
  color: var(--violet);
  direction: ltr;
  display: inline-block;
}
.title {
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.45;
  font-weight: 840;
  letter-spacing: -1.8px;
}
.headrow,
.sectionhead,
.line,
.spread,
.leftrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.headrow,
.sectionhead,
.spread {
  justify-content: space-between;
}
.headrow {
  margin-bottom: 18px;
}
.headrow .tiny,
.sectionhead .tiny {
  color: var(--dim);
  font-size: 13px;
}
.headline {
  display: flex;
  align-items: center;
  gap: 13px;
}
.headline .mark {
  display: block;
  width: 8px;
  height: 24px;
  background: var(--green);
  clip-path: polygon(
    0 0,
    65% 0,
    65% 25%,
    100% 25%,
    100% 100%,
    35% 100%,
    35% 75%,
    0 75%
  );
}
.feature {
  border: 1px solid #51445f;
  background: #2a2339;
  display: grid;
  grid-template-columns: 0.9fr 1.24fr;
  border-radius: 19px;
  overflow: hidden;
  min-height: 305px;
}
.featurecopy {
  padding: clamp(20px, 2.7vw, 44px);
  align-self: center;
}
.flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--peach);
}
.flag svg {
  width: 17px;
}
.feature h2 {
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 870;
  line-height: 1.45;
  letter-spacing: -2.6px;
  margin: 4px 0;
}
.feature p {
  color: #e1d6e4;
  font-size: 16px;
  max-width: 38ch;
}
.featurebar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.time {
  font-size: 13px;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.time .ico {
  width: 15px;
}
.poster {
  position: relative;
  min-width: 0;
  min-height: 230px;
  background: #766775;
}
.poster > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.poster .stamp {
  position: absolute;
  bottom: 15px;
  left: 18px;
  direction: ltr;
  font: 700 12px/1.2 monospace;
  letter-spacing: 1.3px;
  color: #fff8de;
  background: #211d30c9;
  border: 1px solid #fff4c968;
  padding: 5px 9px;
  border-radius: 4px;
}
.sectionhead {
  margin: 28px 0 13px;
}
.sectionhead h2 {
  font-size: 24px;
  letter-spacing: -0.7px;
}
.deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.gamecard {
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  text-align: inherit;
  background: var(--panel);
  border: 1px solid var(--edge);
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.gamecard:hover {
  transform: translateY(-3px);
  border-color: var(--violet);
}
.cardart {
  height: clamp(106px, 10vw, 152px);
  position: relative;
  overflow: hidden;
}
.cardart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
}
.cardbody {
  padding: 13px 17px 14px;
}
.cardbody h3 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
.category {
  font-size: 13px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  height: 7px;
  width: 7px;
  background: var(--peach);
  border-radius: 2px;
}
.gold .dot {
  background: var(--gold);
}
.lilac .dot {
  background: var(--violet);
}
.playbox {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: #343046;
  display: grid;
  place-items: center;
  color: var(--green);
}
.bottomstrip,
.panel,
.box {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 21px;
}
.bottomstrip {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.bottomstrip .ghost {
  margin-inline-start: auto;
}
.sym {
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  width: 44px;
  height: 44px;
  flex: none;
  background: #333145;
  color: var(--violet);
}
.sub,
.muted {
  color: var(--dim);
  font-size: 15px;
}
.small {
  font-size: 13px;
  color: var(--dim);
}
footer {
  min-height: 65px;
  border-top: 1px solid var(--edge);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #a49db6;
}
footer span[lang] {
  font: 12px monospace;
  letter-spacing: 1.7px;
}
.panel h2,
.box h2 {
  font-size: 22px;
}
.stack {
  display: grid;
  gap: 15px;
}
.stack > button {
  justify-self: start;
}
.bigscore {
  font:
    800 50px/1.3 "Vazirmatn Variable",
    sans-serif;
  color: var(--gold);
}
.twocol {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
}
.history {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--edge);
}
.history:last-child {
  border-bottom: 0;
}
.badge {
  display: inline-flex;
  background: #363246;
  color: var(--violet);
  border-radius: 6px;
  padding: 2px 9px;
  font-size: 13px;
}
.screen {
  max-width: 980px;
  margin: auto;
}
.sceneintro {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 17px;
  overflow: hidden;
}
.sceneintro > img {
  display: block;
  width: 100%;
  height: clamp(140px, 24vw, 270px);
  object-fit: cover;
  image-rendering: pixelated;
}
.inner {
  padding: clamp(16px, 3vw, 31px);
}
.inner h1 {
  font-size: 32px;
}
.inner p {
  margin: 7px 0 13px;
}
.inner .line {
  flex-wrap: wrap;
}
.gameframe {
  background: #242237;
  border-radius: 16px;
  border: 1px solid #57506b;
  overflow: hidden;
}
.hud {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 15px;
  min-height: 50px;
}
.hud .score {
  margin-inline-start: auto;
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
}
.gamefield {
  width: 100%;
  height: clamp(285px, 41vh, 410px);
  display: block;
  image-rendering: pixelated;
  background: #524762;
  touch-action: manipulation;
}
.lanes {
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  align-items: stretch;
  padding: 9px;
  background: #201e32;
}
.lanes span {
  direction: rtl;
  text-align: center;
  padding: 4px;
  border: 1px solid #48435c;
  border-radius: 7px;
  font-size: 14px;
  color: var(--dim);
}
.lanes .here {
  border-color: var(--green);
  color: var(--green);
  background: #2a362f;
}
.controls {
  display: flex;
  justify-content: center;
  gap: 13px;
  align-items: center;
  direction: ltr;
  padding: 10px;
}
.controls button {
  background: #36334b;
  border: 1px solid #67617e;
  min-width: 74px;
  color: #fff;
}
.controls button:active {
  background: #554966;
}
.controls button span {
  font: 19px monospace;
}
.feedback {
  min-height: 47px;
  text-align: center;
  display: grid;
  place-content: center;
  color: var(--peach);
  padding: 6px 12px;
  font-size: 14px;
}
.helper {
  text-align: center;
  color: var(--dim);
  margin-top: 10px;
  font-size: 14px;
}
.hud .smallbtn {
  min-height: 34px;
  padding: 4px 9px;
}
.qr {
  max-width: 490px;
  text-align: center;
  margin: auto;
  background: white;
  color: #242339;
  padding: 28px;
  border-radius: 16px;
}
.qr img {
  width: min(100%, 270px);
  height: auto;
  display: block;
  margin: 10px auto;
}
.qr h2 {
  font-size: 26px;
}
.qr .sub {
  color: #534f63;
}
.qrtools {
  margin: 18px auto;
  text-align: center;
}
.qr .small {
  color: #504a5a;
}
.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--dim);
  font-size: 13px;
}
.list {
  padding-inline-start: 20px;
}
.list li {
  margin: 7px 0;
}
.inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #393549;
  display: grid;
  place-items: center;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 15px;
  font-weight: 650;
}
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  min-width: 0;
  background: #191726;
  border: 1px solid #5b536c;
  border-radius: 9px;
  padding: 9px 12px;
  color: white;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}
dialog {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid #514966;
  border-radius: 16px;
  width: min(94%, 490px);
  padding: 22px;
  max-height: 92dvh;
}
dialog::backdrop {
  background: #0a0918cc;
}
dialog h2 {
  font-size: 23px;
}
dialog .spread {
  margin-bottom: 13px;
}
form {
  display: grid;
  gap: 14px;
}
form .button {
  justify-self: start;
}
.code {
  display: block;
  padding: 13px;
  border-radius: 8px;
  background: #141422;
  color: var(--green);
  font: 15px/1.7 monospace;
  overflow-wrap: anywhere;
  direction: ltr;
  text-align: center;
}
.error {
  color: #ffb7a4;
  font-size: 14px;
  min-height: 1em;
}
#toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  color: #252528;
  background: var(--green);
  border-radius: 10px;
  padding: 8px 19px;
  max-width: 90vw;
  z-index: 30;
}
#toast.show {
  display: block;
}
.mobileword {
  display: none;
}
.result {
  background: #292638;
  border: 1px solid var(--edge);
  padding: 24px;
  border-radius: 15px;
}
.modeplay main {
  padding-top: 14px;
}
.modeplay footer {
  display: none;
}
.modeplay .screen {
  max-width: 880px;
}
@media (min-width: 1450px) {
  main {
    padding-top: 42px;
  }
  .feature {
    min-height: 340px;
  }
}
@media (max-width: 850px) {
  .navwrap,
  main,
  footer {
    width: calc(100% - 36px);
  }
  .navwrap {
    gap: 17px;
  }
  .navlinks {
    gap: 12px;
  }
  .qrword {
    display: none;
  }
  .feature {
    grid-template-columns: 0.95fr 1fr;
    min-height: 245px;
  }
  .featurecopy {
    padding: 21px;
  }
  .feature h2 {
    font-size: 39px;
  }
  .deck {
    gap: 10px;
  }
  .cardbody {
    padding: 11px;
  }
  .navlinks button {
    font-size: 14px;
  }
  .brand b {
    font-size: 18px;
  }
}
@media (max-width: 660px) {
  header {
    height: auto;
  }
  .navwrap {
    flex-wrap: wrap;
    gap: 0 9px;
    padding-top: 9px;
  }
  .brand .brandicon {
    width: 33px;
    height: 33px;
  }
  .actions {
    gap: 6px;
  }
  .actions .ghost,
  .actions .pill {
    min-height: 34px;
    padding: 4px 9px;
  }
  .navlinks {
    order: 3;
    width: 100%;
    height: 38px;
    justify-content: space-evenly;
  }
  .navlinks button {
    font-size: 13px;
  }
  .navwrap,
  main,
  footer {
    width: calc(100% - 28px);
  }
  main {
    padding: 19px 0 30px;
  }
  .headrow {
    margin-bottom: 12px;
  }
  .title {
    font-size: 30px;
  }
  .headrow .tiny {
    font-size: 12px;
  }
  .feature {
    display: flex;
    flex-direction: column-reverse;
  }
  .poster {
    min-height: 174px;
  }
  .featurecopy {
    padding: 14px 17px 19px;
  }
  .feature h2 {
    font-size: 35px;
    margin: 0;
  }
  .feature p {
    font-size: 15px;
  }
  .featurebar {
    margin-top: 12px;
  }
  .sectionhead {
    margin: 20px 0 9px;
  }
  .sectionhead h2 {
    font-size: 21px;
  }
  .deck {
    grid-template-columns: 1fr;
  }
  .gamecard {
    display: grid;
    grid-template-columns: 113px 1fr;
    align-items: center;
  }
  .cardart {
    height: 90px;
  }
  .cardbody {
    padding: 8px 13px;
  }
  .cardbody h3 {
    font-size: 18px;
  }
  .bottomstrip {
    flex-wrap: wrap;
    padding: 14px;
  }
  .bottomstrip .ghost {
    font-size: 13px;
  }
  .twocol {
    grid-template-columns: 1fr;
  }
  .hud {
    gap: 6px;
    padding: 6px 8px;
  }
  .hud strong {
    font-size: 14px;
  }
  .hud .badge {
    font-size: 11px;
  }
  .hud .score {
    font-size: 15px;
  }
  .gamefield {
    height: clamp(240px, 44dvh, 370px);
  }
  .lanes span {
    font-size: 12px;
  }
  .controls {
    gap: 7px;
  }
  .controls button {
    min-width: 62px;
    padding: 7px 10px;
  }
  .controls button[data-act="tilt"] {
    min-width: 100px;
  }
  .qr {
    padding: 17px;
  }
  .feedback {
    min-height: 54px;
    font-size: 13px;
  }
  .modeplay main {
    width: calc(100% - 12px);
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .modeplay main {
    padding: 2px;
  }
  .gamefield {
    height: 48dvh;
  }
  .controls {
    padding: 2px;
  }
  .feedback {
    min-height: 26px;
  }
  .helper {
    display: none;
  }
}
@media print {
  body {
    background: white;
  }
  .navwrap,
  header,
  footer,
  .qrtools,
  .headrow,
  .skip,
  #toast {
    display: none !important;
  }
  main {
    width: 100%;
    padding: 0;
  }
  .qr {
    border: 2px solid #212234;
    break-inside: avoid;
    width: 120mm;
    margin: 10mm auto;
  }
  .qr img {
    width: 67mm;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

button,
.hud .smallbtn,
.close,
.ghost,
.cta,
.pill {
  min-height: 44px;
}
.close {
  min-width: 44px;
}
.lanes small {
  display: block;
  font-size: 11px;
}
.lanes span {
  overflow-wrap: anywhere;
}
.lane-name {
  display: block;
}
.pickup-value { font-size: .86em; font-weight: 700; }
.result.stack { align-self: start; }
.result .cta { justify-self: start; text-decoration: none; }
.controls button {
  min-height: 44px;
}
