/* Khel ON Daily — a calm evening table: navy room, one bright puzzle. */
:root {
  --desk: #141721; --desk-2: #1b1f2c; --panel: #20253a; --panel-2: #2a3049; --line: #363d5c;
  --ink: #f5f3ff; --muted: #a9abc6; --orange: #ff9a3c; --pink: #f04fa8; --violet: #8b5cf6; --teal: #2fd4c8;
  --grad: linear-gradient(100deg, var(--orange), var(--pink) 50%, var(--violet));
  --display: "Outfit", "Trebuchet MS", system-ui, sans-serif; --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --acc: var(--orange);
  color-scheme: dark;
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--desk); color: var(--ink); font-family: var(--body); font-size: 16px; -webkit-tap-highlight-color: transparent; min-height: 100vh; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
svg { display: block; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 17px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(240, 79, 168, .28); }
.btn.teal { background: var(--teal); color: #08221f; }
.btn.ghost { background: transparent; border: 2px solid var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn.wa { background: #1fae54; color: #fff; }

/* ---------- front door ---------- */
.home { max-width: 1120px; margin: 0 auto; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 30px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand img { display: block; height: 34px; width: auto; }
.top .tag { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
.today { display: flex; flex-direction: column; gap: 14px; }
.today-head { display: flex; flex-direction: column; gap: 6px; }
.kicker { font-weight: 800; color: var(--orange); letter-spacing: .02em; }
.today-head h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; line-height: 1.02; }
.next { color: var(--muted); font-weight: 700; font-size: 15px; }
.streak { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sbox { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.sbox b { font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1; }
.sbox span { color: var(--muted); font-weight: 700; font-size: 14px; }
.sbox.big { background: linear-gradient(160deg, rgba(255,154,60,.18), rgba(240,79,168,.12)), var(--panel); }
.sbox .flame { font-size: 22px; }

.week h2, .badges h2, .library h2 { font-size: 24px; font-weight: 800; }
.week .sub, .library .sub { color: var(--muted); margin: 6px 0 12px; }
.week-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.badges h2 span { color: var(--muted); font-size: 16px; font-weight: 700; margin-left: 6px; }
.badge-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 8px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); opacity: .5; }
.badge .bi { font-size: 28px; filter: grayscale(1); }
.badge b { font-size: 14px; }
.badge span:last-child { font-size: 12px; color: var(--muted); font-weight: 700; }
.badge.got { opacity: 1; border-color: rgba(255,194,61,.5); }
.badge.got .bi { filter: none; }

.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- playing ---------- */
#play { max-width: 760px; margin: 0 auto; padding: 10px 16px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: calc(100vh - 90px); }
.bar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bar-t { display: flex; flex-direction: column; }
.bar-t b { font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--acc); }
.bar-t span { color: var(--muted); font-weight: 700; font-size: 14px; }
.bar-n { display: flex; gap: 8px; }
.pill { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.goal { width: 100%; color: var(--muted); font-weight: 700; font-size: 15px; }
.stage { --bs: 340px; display: flex; justify-content: center; width: 100%; }
.grid { width: var(--bs); height: var(--bs); display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); grid-template-rows: repeat(var(--n), minmax(0, 1fr)); }
.cell { position: relative; display: grid; place-items: center; touch-action: manipulation; }
.cell svg { width: 100%; height: 100%; }
.cell.hint { animation: hintpulse .6s ease-in-out 4; z-index: 2; }
@keyframes hintpulse { 50% { box-shadow: 0 0 0 4px var(--teal), 0 0 26px var(--teal); } }

/* Kolam Trail */
.trail-board { width: var(--bs); height: var(--bs); touch-action: none; user-select: none; -webkit-user-select: none; }
.trail-board svg { width: 100%; height: 100%; }
.trail-board .floor { fill: #7a3b2e; stroke: #5b2a20; stroke-width: 4; }
.trail-board .dot { fill: #e8c9ad; transition: fill .2s; }
.trail-board .dot.on { fill: #fff; }
.trail-board .dot.bad { fill: #ff5d5d; animation: shake .3s; }
.trail-board .line { fill: none; stroke: #fffaf0; stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; opacity: .96; filter: drop-shadow(0 0 6px rgba(255,255,255,.25)); }
.trail-board .walls line { stroke: #2a0f0a; stroke-width: 13; stroke-linecap: round; }
.trail-board .num circle { fill: var(--pink); stroke: #fff; stroke-width: 4; }
.trail-board .num text { font-family: var(--display); font-weight: 800; font-size: 32px; fill: #fff; pointer-events: none; }
.trail-board .num.on circle { fill: #9e2f6c; }
.trail-board .num.next circle { animation: nextpulse 1.2s ease-in-out infinite; }
@keyframes nextpulse { 50% { stroke: #ffd27a; stroke-width: 8; } }
.trail-board .head { fill: #ffd27a; opacity: .9; pointer-events: none; }
.trail-board .ghost path { fill: none; stroke: #2fd4c8; stroke-width: 14; stroke-dasharray: 2 26; stroke-linecap: round; }
.trail-board .num, .trail-board .dot { pointer-events: none; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Thali Square */
.thali-grid { padding: 14px; border-radius: 50%/14%; border-radius: 26px; background: radial-gradient(circle at 50% 40%, #e9be5c, #b8892f 80%); box-shadow: inset 0 0 0 6px #9c7426, 0 14px 34px rgba(0,0,0,.4); gap: 3px; }
.tcell { background: #fbf2dc; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(120,80,20,.25); transition: background .15s; }
.tcell svg { width: 82%; height: 82%; }
.tcell.given { background: #f0d9a3; }
.tcell.given::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 7px; height: 7px; border-radius: 50%; background: #9c7426; }
.tcell.near { background: #fff8e8; }
.tcell.given.near { background: #f3dfaf; }
.tcell.same { box-shadow: inset 0 0 0 3px rgba(47,212,200,.75); }
.tcell.sel { box-shadow: inset 0 0 0 4px var(--teal); background: #fffbef; }
.tcell.bad { box-shadow: inset 0 0 0 4px #e5484d; background: #ffe3e0; }
.tcell.bl { margin-left: 5px; }
.tcell.bt { margin-top: 5px; }
.tray { width: 100%; display: flex; justify-content: center; }
.dishes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 620px; }
.dishbtn { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 74px; padding: 6px 4px; border-radius: 16px; background: var(--panel); border: 2px solid var(--line); font-weight: 800; font-size: 12px; }
.dishbtn svg { width: 44px; height: 44px; }
.dishbtn.on { border-color: var(--teal); background: rgba(47,212,200,.14); }
.dishbtn.clear svg { width: 28px; height: 28px; margin: 8px 0; color: var(--muted); }

/* Nahar */
.nahar-grid { gap: 0; border-radius: 18px; overflow: hidden; border: 4px solid #6d5233; box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.ncell { overflow: hidden; }
.ncell svg { width: 101%; height: 101%; }
.tile-svg .water line { transition: stroke .3s; }

/* sheets */
.scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(8,10,18,.7); display: grid; place-items: center; padding: 16px; }
.box { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.box h2 { font-size: 26px; font-weight: 800; }
.box p { color: var(--muted); line-height: 1.5; }
.box .small, .small { font-size: 13px; color: var(--muted); }
.box .kick { color: var(--orange); font-weight: 800; font-size: 14px; }
.box .btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 4px; }
.box .btns.col { flex-direction: column; align-items: stretch; }
.how-art { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; }
.how-art svg { width: 100%; height: 100%; }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--panel-2); border: 2px solid var(--line); text-align: left; }
.pick:hover { border-color: var(--teal); }
.pick b { font-family: var(--display); font-size: 18px; }
.pick span { color: var(--muted); font-weight: 700; font-size: 14px; }
.card-text { white-space: pre-wrap; background: var(--desk); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-family: var(--body); font-weight: 700; font-size: 15px; line-height: 1.5; margin: 0; }
.box.win { text-align: center; align-items: stretch; }
.win-stars { display: flex; justify-content: center; gap: 8px; font-size: 52px; line-height: 1; }
.win-stars span { color: #3a4060; }
.win-stars span.on { color: #ffc23d; animation: starin .5s cubic-bezier(.2,1.6,.4,1) both; text-shadow: 0 0 20px rgba(255,194,61,.5); }
@keyframes starin { from { transform: scale(0) rotate(-40deg); } }
.win-line { font-weight: 800; color: var(--ink) !important; }
.win-streak { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--orange) !important; }
.newb { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; align-items: center; }
.newb b { width: 100%; font-size: 14px; color: var(--muted); }
.nb { background: rgba(255,194,61,.14); border: 1px solid rgba(255,194,61,.5); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px; }
.toast { pointer-events: none; position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1100; background: #f5f3ff; color: #141721; font-weight: 800; padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px); text-align: center; }
body.won .stage { animation: wonglow 1.4s ease-out; }
@keyframes wonglow { 30% { filter: brightness(1.25) drop-shadow(0 0 30px var(--acc)); } }

/* ---------- hub ---------- */
.size-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); max-width: 520px; }
.size-switch button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 8px; border-radius: 15px; min-height: 52px; }
.size-switch b { font-family: var(--display); font-size: 18px; }
.size-switch span { color: var(--muted); font-size: 13px; font-weight: 700; }
.size-switch [aria-pressed=true] { background: var(--grad); color: #fff; }
.size-switch [aria-pressed=true] span { color: rgba(255,255,255,.85); }
.today-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tc { display: grid; grid-template-rows: auto 1fr; text-align: left; border-radius: 22px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.3); transition: transform .15s, border-color .15s; }
.tc:hover { transform: translateY(-2px); border-color: var(--acc); }
.tc.is-done { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); }
.tc-art { position: relative; display: block; aspect-ratio: 16 / 9; background: #10131f; overflow: hidden; }
.tc-art svg { width: 100%; height: 100%; }
.tc-art svg { object-fit: cover; }
.tc-tick { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #08221f; font-weight: 900; }
.tc-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.tc-num { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tc-body b { font-family: var(--display); font-size: 21px; color: var(--acc); }
.tc-line { color: var(--ink); font-weight: 700; }
.tc-size { color: var(--muted); font-size: 14px; font-weight: 700; }
.tc-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.tc-act .btn:not(.small) { min-width: 120px; }
.tc-done { font-weight: 800; color: var(--muted); font-size: 14px; }
.day-sum { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-weight: 700; }
.day-sum b { color: var(--ink); }
.day { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.day:hover { border-color: var(--muted); }
.day.is-today { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange) inset; }
.dname { font-weight: 800; font-size: 13px; color: var(--muted); }
.dicons { display: flex; gap: 3px; }
.dicon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 16px; background: rgba(255,255,255,.05); border: 2px solid transparent; filter: grayscale(.6); opacity: .7; }
.dicon.on { background: color-mix(in srgb, var(--acc) 26%, transparent); border-color: var(--teal); filter: none; opacity: 1; }
.dgot { font-weight: 800; font-size: 13px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lcard { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.lart { aspect-ratio: 16 / 9; overflow: hidden; }
.lart svg { width: 100%; height: 100%; }
.lbody { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.lbody b { font-family: var(--display); font-size: 18px; color: var(--acc); }
.lbody > span { color: var(--muted); font-size: 14px; font-weight: 700; }
.lbtns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.lbtns .btn { flex: 1; padding: 8px 10px; }
.lcount { font-size: 12px !important; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 8px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; line-height: 1.45; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--acc, var(--orange)); color: #141721; font-family: var(--display); font-weight: 800; }
.how-line { font-family: var(--display); font-weight: 800; color: var(--ink) !important; font-size: 18px; }
.drow { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.drow > b { font-family: var(--display); font-size: 17px; color: var(--acc); }
.shake { animation: shake .3s; }
.tray-btns { display: flex; gap: 10px; justify-content: center; }
.tray-btns .btn:disabled { opacity: .4; }

/* Shabd Khoj */
.words-board { position: relative; width: var(--bs); height: var(--bs); border-radius: 22px; background: #fbf5e8; box-shadow: 0 14px 34px rgba(0,0,0,.4); padding: 10px; }
.wlines { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); pointer-events: none; }
.wlines line { stroke-width: 70; stroke-linecap: round; opacity: .42; }
.wlines line.d { opacity: .5; stroke: #47a9f0 !important; }
.wgrid { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: repeat(var(--n), 1fr); grid-template-rows: repeat(var(--n), 1fr); touch-action: none; user-select: none; -webkit-user-select: none; }
.wcell { display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: calc(var(--bs) / var(--n) * .5); color: #2a2140; }
.wcell.on { color: #0b3a6e; }
.wcell.anchor { background: rgba(71,169,240,.35); border-radius: 50%; }
.wcell.hint { animation: hintpulse .6s ease-in-out 5; border-radius: 50%; }
.wlist { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 620px; }
.wchip { padding: 7px 14px; border-radius: 999px; background: var(--panel); border: 2px solid var(--line); font-family: var(--display); font-weight: 800; letter-spacing: .06em; }
.wchip.got { background: color-mix(in srgb, var(--wc) 30%, transparent); border-color: var(--wc); text-decoration: line-through; text-decoration-thickness: 3px; }
.wchip.hint { animation: hintpulse .6s ease-in-out 5; }

/* Jodi */
.pairs-board { width: var(--bs); display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 8px; }
.pcard { position: relative; aspect-ratio: 5 / 6; border-radius: 14px; touch-action: manipulation; }
.pback, .pface { position: absolute; inset: 0; border-radius: 14px; display: grid; place-items: center; transition: transform .22s ease, opacity .22s; }
.pback { background: linear-gradient(150deg, #8b5cf6, #5b3bc6); border: 3px solid #b79cff; }
.pback::after { content: ""; width: 34%; aspect-ratio: 1; transform: rotate(45deg); border-radius: 4px; background: rgba(255,255,255,.22); }
.pface { background: #fbf2dc; border: 3px solid #e2b453; transform: scaleX(0); opacity: 0; }
.pface svg { width: 76%; height: 76%; }
.pcard.up .pback { transform: scaleX(0); opacity: 0; }
.pcard.up .pface { transform: none; opacity: 1; }
.pcard.got .pface { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.pcard.got { pointer-events: none; }

/* Khisko */
.slide-board { position: relative; width: var(--bs); height: var(--bs); border-radius: 18px; background: #0b1020; border: 6px solid #0b1020; box-shadow: 0 14px 34px rgba(0,0,0,.4); overflow: hidden; }
.stile { position: absolute; left: 0; top: 0; width: calc(100% / var(--n)); height: calc(100% / var(--n)); padding: 2px; transition: transform .14s ease-out; touch-action: manipulation; }
.stile svg { width: 100%; height: 100%; border-radius: 8px; }
.stile i { position: absolute; left: 6px; top: 6px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; background: rgba(11,16,32,.78); color: #fff; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.stile.home i { background: var(--teal); color: #08221f; }
.stile.hint { z-index: 2; }
.slide-board.whole .stile { padding: 0; } .slide-board.whole .stile svg { border-radius: 0; } .slide-board.whole .stile i { opacity: 0; transition: opacity .4s; }
.peek { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: 14px; }
.peek svg { width: 64px; height: 64px; border-radius: 10px; }

/* Mithai Sort */
.sort-board { --jw: min(84px, calc(var(--bs) * (1 - .025 * (var(--j) - 1)) / var(--j))); width: var(--bs); display: flex; justify-content: center; gap: calc(var(--bs) * .025); padding-top: 8px; }
.jar { flex: none; width: var(--jw); display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-start; gap: calc(var(--jw) * .04); padding: calc(var(--jw) * .8) 0 calc(var(--jw) * .1); border-radius: 16px 16px 24px 24px; background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.03) 40%, rgba(255,255,255,.1)); border: 3px solid #9fb3d8; border-top-width: 5px; transition: border-color .15s, transform .15s; touch-action: manipulation; }
.jar.sel { border-color: var(--teal); transform: translateY(-4px); }
.jar.full { border-color: #ffd23c; box-shadow: 0 0 18px rgba(255,210,60,.35); }
.sw { width: calc(var(--jw) * .78); flex: none; aspect-ratio: 1; display: block; transition: transform .18s; }
.sw svg { width: 100%; height: 100%; }
.sw.lift { transform: translateY(-46%); }
.sw.land { animation: land .25s ease-out; }
@keyframes land { from { transform: translateY(-60%); } }
.jar.hint { animation: hintpulse .6s ease-in-out 4; }

/* Ganit */
.maths-board { width: var(--bs); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.target { display: flex; flex-direction: column; align-items: center; padding: 10px 34px; border-radius: 22px; background: var(--grad); box-shadow: 0 10px 30px rgba(240,79,168,.3); }
.target span { font-weight: 800; font-size: 14px; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .08em; }
.target b { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; color: #fff; }
.target.hit { animation: pop .5s ease-out 2; }
@keyframes pop { 40% { transform: scale(1.12); } }
.mtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.mtile { position: relative; min-height: 72px; border-radius: 18px; background: #f5f3ff; color: #141721; font-family: var(--display); font-weight: 800; font-size: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 5px 0 #b9b4d6; touch-action: manipulation; }
.mtile small { font-size: 12px; color: #6b6290; font-family: var(--body); }
.mtile.sel { background: var(--teal); box-shadow: 0 5px 0 #1a8f87; }
.mtile.new { animation: pop .3s ease-out; }
.mtile.win { background: #ffd23c; }
.mops { display: flex; gap: 10px; }
.mop { width: 64px; height: 56px; border-radius: 16px; background: var(--panel-2); border: 2px solid var(--line); font-family: var(--display); font-weight: 800; font-size: 28px; }
.mop.sel { background: var(--orange); border-color: var(--orange); color: #141721; }
.msay { color: var(--muted); font-weight: 700; min-height: 1.5em; }

/* Aaina Rangoli */
.mirror-board { position: relative; width: var(--bs); padding: 10px; border-radius: 20px; background: #2a2140; box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.mgrid { display: grid; grid-template-columns: repeat(var(--w), minmax(0, 1fr)); gap: 4px; }
.mcell { aspect-ratio: 1; border-radius: 22%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); touch-action: manipulation; }
.mcell:not(.on) { background: #3a3156; }
.mcell.given { cursor: default; box-shadow: inset 0 0 0 2px rgba(255,255,255,.04); }
.mcell.given:not(.on) { background: #241b38; }
.mcell.on:not(.given) { box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.mline { position: absolute; pointer-events: none; border: 0 dashed rgba(245,243,255,.75); }
.mline.v { top: 4px; bottom: 4px; left: 50%; border-left-width: 3px; transform: translateX(-1.5px); }
.mline.h { left: 4px; right: 4px; top: 50%; border-top-width: 3px; transform: translateY(-1.5px); }
.palette { display: flex; gap: 10px; justify-content: center; }
.sw-btn { width: 56px; height: 56px; border-radius: 16px; background: var(--c); border: 3px solid var(--line); }
.sw-btn.on { border-color: #fff; box-shadow: 0 0 0 3px var(--teal); }
.sw-btn.clear { background: var(--panel); display: grid; place-items: center; color: var(--muted); }
.sw-btn.clear svg { width: 26px; height: 26px; }

/* Rickshaw Rush */
.rush-board { position: relative; width: calc(var(--bs) * .9); margin-right: calc(var(--bs) * .1); }
.rlot { position: relative; width: 100%; aspect-ratio: 1; border-radius: 16px; background: #565b6e; box-shadow: inset 0 0 0 6px #3b3f4f, 0 14px 34px rgba(0,0,0,.4); background-image: linear-gradient(rgba(255,255,255,.06) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.06) 2px, transparent 2px); background-size: calc(100% / 6) calc(100% / 6); touch-action: none; }
.rexit { position: absolute; left: 100%; top: calc(100% / 6 * 2); height: calc(100% / 6); width: 11%; background: #565b6e; display: grid; place-items: center; border-radius: 0 10px 10px 0; }
.rexit span { font-family: var(--display); font-weight: 800; font-size: 11px; color: #ffd23c; writing-mode: vertical-rl; letter-spacing: .1em; }
.veh { position: absolute; padding: 3px; transform: translate(var(--dx, 0), var(--dy, 0)); transition: left .16s ease-out, top .16s ease-out; touch-action: none; cursor: grab; }
.veh svg { width: 100%; height: 100%; }
.veh.drag { transition: none; z-index: 3; cursor: grabbing; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.veh.away { transition: transform .6s ease-in; transform: translateX(160%); }
.veh.hint { animation: hintpulse .45s ease-in-out 2; border-radius: 22px; }

/* Farak */
.spot-board { display: flex; gap: 12px; }
.stage[data-lay=col] .spot-board { flex-direction: column; }
.scene { width: var(--sw); height: auto; border-radius: 14px; box-shadow: 0 10px 26px rgba(0,0,0,.35); touch-action: manipulation; cursor: crosshair; }
.scene .marks circle { fill: none; stroke: #e5484d; stroke-width: 1.4; }
.scene .marks circle.new { animation: ring .5s ease-out; }
@keyframes ring { from { stroke-width: 4; opacity: .3; } }
.scene .miss path { stroke: #e5484d; stroke-width: 1.2; stroke-linecap: round; animation: fade .7s forwards; }
@keyframes fade { to { opacity: 0; } }
.spot-count { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--muted); }
.spot-count i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); }
.spot-count i.on { background: #e5484d; border-color: #e5484d; }
.spot-count span { margin-left: 6px; }

/* Akshar */
.jumble-board { --len: 5; width: var(--bs); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.jprog { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.jprog span { padding: 5px 12px; border-radius: 999px; background: var(--panel); border: 2px solid var(--line); font-weight: 800; letter-spacing: .12em; font-size: 14px; color: var(--muted); }
.jprog span.now { border-color: var(--orange); color: var(--ink); }
.jprog span.on { background: rgba(47,212,200,.16); border-color: var(--teal); color: var(--ink); }
.jslots, .jletters { display: flex; justify-content: center; gap: 8px; width: 100%; }
.jletters { flex-wrap: wrap; }
.js, .jl { width: min(62px, calc((var(--bs) - (var(--len) - 1) * 8px) / var(--len))); aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: clamp(22px, calc(var(--bs) / var(--len) * .42), 32px); }
.js { background: var(--teal); color: #08221f; }
.js.empty { background: transparent; border: 3px dashed var(--line); }
.jslots.right .js { background: #ffd23c; animation: pop .4s; }
.jl { background: #f5f3ff; color: #141721; box-shadow: 0 5px 0 #b9b4d6; touch-action: manipulation; }
.jl:disabled { opacity: .18; box-shadow: none; }
.jbtns { display: flex; gap: 10px; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .today-grid { grid-template-columns: 1fr; }
  .tc { grid-template-columns: 132px minmax(0, 1fr); }
  .tc-art { aspect-ratio: auto; height: 100%; min-height: 130px; }
  .tc-line { display: none; }
  .streak { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .day { scroll-snap-align: start; }
  .badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lbody { padding: 10px; }
  .lbody b { font-size: 15px; }
  .lbody > span { font-size: 12px; }
  .lbtns { flex-direction: column; gap: 6px; }
  .lbtns .btn { min-height: 40px; font-size: 14px; }
}
@media (max-width: 420px) {
  .tc { grid-template-columns: 104px minmax(0, 1fr); }
  .tc-body b { font-size: 18px; }
  .size-switch span { display: none; }
  .bar-t b { font-size: 20px; }
  .dishes { gap: 5px; flex-wrap: nowrap; }
  .dishbtn { width: calc((100vw - 32px - 30px) / 7); min-width: 0; font-size: 10px; padding: 5px 2px; border-radius: 12px; }
  .dishbtn svg { width: 34px; height: 34px; }
  .dishbtn.clear svg { width: 22px; height: 22px; margin: 6px 0; }
  .picks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
