
/* Layout: a reader bar, four tabs (the story, the map, the timeline, games), then one screen at a time.
   A chapter reads top to bottom in one column, like a lesson. Each chapter keeps its own color (--fc). The map keeps the same colors in light and dark, like a printed atlas page. */
:root{
  --bg:#f3f5fc; --surface:#ffffff; --surface-2:#e9edfa; --ink:#1a2042; --muted:#5b6388; --line:#d8ddf0;
  --accent:#2f4bd6; --accent-ink:#ffffff; --accent-soft:#e2e7ff;
  --star:#e9a312; --good:#137f5f; --good-soft:#d2f1e4; --bad:#cf4136; --bad-soft:#fde2de;
  --mark:#fff0b8; --mark-ink:#1a2042; --tintmix:14%;
  --night:#101a3f; --fc:#2f4bd6; --red:#c1272d; --green:#0a7d46;
  --sea:#bfe3f5; --land:#f6e3b4; --other:#e4e2da; --map-ink:#1a2042;
  --font-ui:"Baloo 2","Trebuchet MS",system-ui,sans-serif;
  --font-ar:"Noto Naskh Arabic","Geeza Pro","Traditional Arabic",serif;
  --radius:20px;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --bg:#0c1026; --surface:#1b2043; --surface-2:#252b55; --ink:#eef0fc; --muted:#a7add2; --line:#313870;
  --accent:#8a9cff; --accent-ink:#0e1230; --accent-soft:#283170;
  --star:#ffc640; --good:#4fd6a6; --good-soft:#173f37; --bad:#ff8174; --bad-soft:#4a222b;
  --mark:#5a4a10; --mark-ink:#fff3c4; --tintmix:26%;
  color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:#0c1026; --surface:#1b2043; --surface-2:#252b55; --ink:#eef0fc; --muted:#a7add2; --line:#313870;
  --accent:#8a9cff; --accent-ink:#0e1230; --accent-soft:#283170;
  --star:#ffc640; --good:#4fd6a6; --good-soft:#173f37; --bad:#ff8174; --bad-soft:#4a222b;
  --mark:#5a4a10; --mark-ink:#fff3c4; --tintmix:26%;
  color-scheme:dark;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{background:var(--bg);color:var(--ink)}
body{font-family:var(--font-ui);font-size:17px;line-height:1.45;padding-inline:16px;padding-block:12px 40px;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer}
button:focus-visible,input:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.app{max-width:1000px;margin-inline:auto;display:flex;flex-direction:column;gap:16px}
h2,h3,p{margin:0}
.tint{background:color-mix(in srgb,var(--fc) var(--tintmix),var(--surface))}

/* top bar */
.bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;margin-inline-end:auto;min-width:0}
.brand-mark{width:44px;height:44px;border-radius:14px;background:var(--red);display:grid;place-items:center;flex:none}
.brand-mark svg{width:30px;height:30px}
.brand h1{font-size:1.35rem;margin:0;font-weight:800;line-height:1.1}
.brand p{color:var(--muted);font-size:.85rem;line-height:1.2}
.kidchip{display:flex;align-items:center;gap:8px;background:var(--surface);border:2px solid var(--line);border-radius:999px;padding:4px 14px 4px 4px;font-weight:700}
.kidchip .av{width:36px;height:36px;font-size:1.3rem}
.starcount{display:inline-flex;align-items:center;gap:4px;font-variant-numeric:tabular-nums}
.starcount svg{width:20px;height:20px;color:var(--star)}
.starcount.pop svg{animation:pop .5s ease}
@keyframes pop{40%{transform:scale(1.5) rotate(22deg)}}
.iconbtn{display:inline-flex;align-items:center;gap:6px;border:2px solid var(--line);background:var(--surface);border-radius:14px;padding:6px 12px;font-weight:600;font-size:.9rem}
.iconbtn[aria-pressed="false"]{color:var(--muted);background:transparent}
.iconbtn svg{width:18px;height:18px}
.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;background:var(--surface-2);padding:6px;border-radius:22px}
.tab{border:0;background:transparent;border-radius:16px;padding:9px 4px;font-weight:700;font-size:1.05rem;display:flex;flex-direction:column;align-items:center;line-height:1.2;color:var(--muted);min-width:0}
.tab small{font-weight:500;font-size:.78rem}
.tab[aria-current="page"]{background:var(--surface);color:var(--ink);box-shadow:0 2px 0 var(--line)}

/* shared */
.panel{background:var(--surface);border-radius:var(--radius);padding:18px;border:2px solid var(--line)}
.h2{font-size:1.45rem;font-weight:800;line-height:1.2;text-wrap:balance}
.h3{font-size:1.25rem;font-weight:800;line-height:1.2}
.sub{color:var(--muted)}
.btn{border:0;border-radius:16px;padding:11px 20px;font-weight:700;font-size:1.05rem;background:var(--accent);color:var(--accent-ink);display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 0 color-mix(in srgb,var(--accent) 60%,#000)}
.btn:active{transform:translateY(2px);box-shadow:0 2px 0 color-mix(in srgb,var(--accent) 60%,#000)}
.btn:disabled{opacity:.45;cursor:default}
.btn.ghost{background:var(--surface-2);color:var(--ink);box-shadow:0 4px 0 var(--line)}
.btn.big{font-size:1.2rem;padding:13px 26px}
.btn.small{font-size:.95rem;padding:7px 14px;border-radius:13px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.stack{display:flex;flex-direction:column;gap:12px}
.st{width:1em;height:1em;display:inline-block;vertical-align:-.12em}
.st polygon{fill:currentColor}
.stars{display:inline-flex;gap:2px;color:var(--star)}
.stars .off{color:var(--line)}
.speak{border:0;background:var(--accent-soft);color:var(--accent);width:40px;height:40px;border-radius:50%;display:inline-grid;place-items:center;flex:none}
.speak svg{width:20px;height:20px}
.status{font-size:.85rem;color:var(--muted);text-align:center}
.back{border:0;background:none;color:var(--accent);font-weight:700;padding:4px 0;display:inline-flex;gap:6px;align-items:center;align-self:flex-start}
.chip{display:inline-flex;align-items:center;gap:6px;background:var(--surface-2);border-radius:999px;padding:2px 12px;font-weight:700;font-size:.9rem;color:var(--muted)}
.chip.ok{background:var(--good-soft);color:var(--good)}
.seg{display:inline-flex;background:var(--surface-2);border-radius:14px;padding:4px;gap:4px}
.seg button{border:0;background:transparent;border-radius:11px;padding:5px 14px;font-weight:700;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 2px 0 var(--line)}
.jw{border:0;background:var(--mark);color:var(--mark-ink);border-radius:8px;padding:0 5px;font-weight:700;line-height:inherit}
.bust{display:block;width:100%;height:auto}
.emo,.e,.card .ic,.av,.medal span{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Twemoji Mozilla",sans-serif}

/* reader picker */
.kids{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}
.kid{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:18px 12px 14px;border-radius:var(--radius);background:var(--surface);border:2px solid var(--line);min-width:0;width:100%}
.kid:hover{border-color:var(--accent)}
.av{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;font-size:2.4rem;line-height:1;background:var(--accent-soft)}
.kid .nm{font-weight:800;font-size:1.25rem;line-height:1.1;overflow-wrap:anywhere}
.kid .meta{font-size:.85rem;color:var(--muted)}
.kid.add{border-style:dashed;color:var(--accent);justify-content:center;min-height:170px;font-weight:700}
.kid.add .plus{font-size:2.4rem;line-height:1}
.kid-del{position:absolute;inset-block-start:6px;inset-inline-end:6px;border:0;background:var(--bad-soft);color:var(--bad);border-radius:10px;padding:2px 10px;font-size:.8rem;font-weight:700}
.confirm{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;padding:18px 12px;border-radius:var(--radius);background:var(--bad-soft);border:2px solid var(--bad);text-align:center;font-weight:600}
.form{display:flex;flex-direction:column;gap:14px}
.form label{font-weight:700}
.form input[type=text]{font:inherit;font-size:1.2rem;padding:10px 14px;border-radius:14px;border:2px solid var(--line);background:var(--bg);color:var(--ink);width:100%;max-width:360px}
.avpick{display:flex;gap:8px;flex-wrap:wrap}
.avpick button{width:56px;height:56px;border-radius:50%;border:3px solid transparent;font-size:1.8rem;line-height:1;display:grid;place-items:center;background:var(--surface-2)}
.avpick button[aria-pressed="true"]{border-color:var(--accent)}

/* cover and chapter list */
.hero{display:grid;grid-template-columns:minmax(0,1fr) 300px;border-radius:26px;overflow:hidden;background:var(--red);color:#fff;min-height:230px}
.hero .txt{padding:24px 28px;display:flex;flex-direction:column;gap:10px;justify-content:center;align-items:flex-start}
.hero .kicker{font-weight:700;letter-spacing:.04em;text-transform:uppercase;font-size:.85rem;color:#ffe08a}
.hero h2{font-size:clamp(1.9rem,4.6vw,2.7rem);font-weight:800;line-height:1.05;text-wrap:balance}
.hero p{color:#ffe3e3;max-width:38ch}
.hero .btn{background:#ffc640;color:#1a2042;box-shadow:0 4px 0 #b88708}
.hero .chip{background:rgba(255,255,255,.18);color:#fff}
.hero .art{background:var(--green);display:grid;align-items:end}
.meter{width:100%;max-width:320px;height:12px;border-radius:6px;background:rgba(255,255,255,.22);overflow:hidden}
.meter i{display:block;height:100%;border-radius:6px;background:#ffc640}
.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tile{display:flex;flex-direction:column;border:2px solid var(--line);background:var(--surface);border-radius:var(--radius);overflow:hidden;text-align:start;padding:0;min-width:0}
.tile:hover{border-color:var(--accent)}
.tile .art{display:block;width:100%;aspect-ratio:8/5;background:var(--fc);position:relative;overflow:hidden}
.tile .art svg{display:block;width:100%;height:100%}
.tile .body{padding:10px 14px 14px;display:flex;flex-direction:column;gap:3px;flex:1}
.tile b{font-size:1.15rem;font-weight:800;line-height:1.15}
.tile small{color:var(--muted);font-size:.88rem;line-height:1.25}
.tile .num{font-size:.8rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.tile .foot{margin-top:auto;padding-top:4px}
.card{display:flex;gap:14px;align-items:center;border:2px solid var(--line);background:var(--surface);border-radius:var(--radius);padding:14px 16px;text-align:start;min-width:0}
.card:hover{border-color:var(--accent)}
.card .ic{width:58px;height:58px;border-radius:18px;background:var(--accent-soft);display:grid;place-items:center;flex:none;font-size:1.9rem;line-height:1}
.card b{font-size:1.15rem;font-weight:800;display:block;line-height:1.15;color:var(--ink)}
.card span{color:var(--muted);font-size:.92rem;line-height:1.3;display:block}

/* a chapter */
.chapter{max-width:780px;margin-inline:auto;width:100%;display:flex;flex-direction:column;gap:14px}
.chero{display:grid;grid-template-columns:300px minmax(0,1fr);border-radius:26px;overflow:hidden}
.chero .pic{background:var(--fc);min-height:190px;position:relative;overflow:hidden}
.chero .pic svg{position:absolute;inset:0;width:100%;height:100%}
.chero .txt{padding:18px 22px;display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:flex-start}
.chero .kick{font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.chero h2{font-size:clamp(1.7rem,4.6vw,2.3rem);font-weight:800;line-height:1.08;text-wrap:balance}
.says{display:grid;grid-template-columns:92px minmax(0,1fr);gap:14px;align-items:end}
.says .who{border-radius:50%;overflow:hidden;background:var(--green);width:92px;height:92px}
.says .bub{position:relative;background:var(--surface);border:2px solid var(--line);border-radius:20px;padding:12px 16px;font-size:1.12rem;line-height:1.5}
.says .bub b{display:block;font-size:.82rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.says .bub::before{content:"";position:absolute;inset-inline-start:-11px;bottom:22px;width:18px;height:18px;background:var(--surface);border-inline-start:2px solid var(--line);border-bottom:2px solid var(--line);transform:rotate(45deg)}
.sec{display:flex;flex-direction:column;gap:10px}
.sec-head{display:flex;align-items:center;gap:10px;justify-content:space-between}
.sec p{font-size:1.12rem;line-height:1.6;max-width:66ch}
.timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.timeline li{display:grid;grid-template-columns:minmax(0,9.5em) 22px minmax(0,1fr);gap:8px;align-items:start;font-size:1.08rem;line-height:1.4}
.timeline .t{font-weight:800;font-variant-numeric:tabular-nums;text-align:end;line-height:1.25;padding-top:2px}
.timeline .dot{position:relative;align-self:stretch}
.timeline .dot::before{content:"";position:absolute;inset-inline-start:9px;top:0;bottom:0;width:4px;background:color-mix(in srgb,var(--fc) 35%,var(--surface))}
.timeline li:first-child .dot::before{top:10px}.timeline li:last-child .dot::before{bottom:calc(100% - 14px)}
.timeline .dot::after{content:"";position:absolute;inset-inline-start:3px;top:5px;width:16px;height:16px;border-radius:50%;background:var(--fc);border:3px solid var(--surface)}
.timeline .d{padding-bottom:12px}
.people{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.person{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;border-radius:16px;padding:10px 12px}
.medal{width:64px;height:64px;position:relative;display:grid;place-items:center}
.medal svg{position:absolute;inset:0;width:100%;height:100%;color:var(--fc)}
.medal span{position:relative;font-size:1.6rem;line-height:1}
.person b{display:block;font-size:1.08rem;line-height:1.15}
.person small{display:block;color:var(--muted);font-weight:700;font-size:.82rem}
.person p{font-size:.98rem;line-height:1.35;margin-top:2px}
.legacy{display:flex;flex-direction:column;gap:8px;list-style:none;margin:0;padding:0}
.legacy li{display:flex;gap:12px;align-items:center;border-radius:14px;padding:8px 12px;font-size:1.05rem;line-height:1.35}
.legacy .e{font-size:1.6rem;line-height:1;flex:none;width:1.4em;text-align:center}
.fact{border-radius:var(--radius);padding:14px 18px;display:flex;gap:14px;align-items:center}
.fact .e{font-size:2.2rem;line-height:1;flex:none}
.fact p{font-size:1.12rem;line-height:1.45}
.think{border:3px dashed var(--line);border-radius:var(--radius);padding:14px 18px}
.think b{display:block;font-size:.85rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.think p{font-size:1.15rem;line-height:1.4;font-weight:600}

/* map */
.mapwrap{border-radius:var(--radius);overflow:hidden;border:2px solid var(--line);background:var(--sea);line-height:0}
.mapsvg{display:block;width:100%;height:auto}
.msea-bg{fill:var(--sea)} .mother{fill:var(--other);stroke:#c9c5b8;stroke-width:1} .mland-ma{fill:var(--land);stroke:var(--map-ink);stroke-width:2.5;stroke-linejoin:round}
.mlbl{font:700 12px var(--font-ui);fill:var(--map-ink);paint-order:stroke;stroke:rgba(255,248,225,.9);stroke-width:3px;stroke-linejoin:round}
.zoomed .mlbl{font-size:9.5px;stroke-width:2.4px}
.msea{font:italic 600 12px var(--font-ui);fill:#2f6f93} .zoomed .msea,.zoomed .mrange{font-size:9px}
.mland{font:700 11px var(--font-ui);fill:#8b8a80;letter-spacing:.08em}
.mrange{font:italic 700 11px var(--font-ui);fill:#7a5a36}
.mdot{fill:var(--red);stroke:var(--map-ink);stroke-width:2} .mdot.cap{fill:#ffc640;stroke-width:1.6} .mdot.site{fill:#6741d9}
.mcity{cursor:pointer} .mcity.static{cursor:default}
.mcity.on .mdot{fill:#ffc640;stroke-width:2.6} .mcity.on .mlbl{font-size:13.5px;font-weight:800} .zoomed .mcity.on .mlbl{font-size:11px}
.mcity.ok .mdot{fill:#2fc77a;stroke-width:2.6} .mcity.no .mdot{fill:#8b93b8}
.mapgrid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:16px;align-items:start}
.citycard{display:flex;flex-direction:column;gap:8px;position:sticky;top:calc(10px + env(safe-area-inset-top, 0px))}
.citycard .nm{font-size:1.7rem;font-weight:800;line-height:1.1}
.citycard .ar{font-family:var(--font-ar);font-size:1.7rem;line-height:1.3;color:var(--accent)}
.citycard .nick{align-self:flex-start}
.citycard p{font-size:1.08rem;line-height:1.5}
.citychips{display:flex;flex-wrap:wrap;gap:6px}
.citychips button{border:2px solid var(--line);background:var(--surface);border-radius:999px;padding:3px 12px;font-weight:700;font-size:.92rem}
.citychips button[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent)}
.minimap{max-width:420px;margin-inline:auto;width:100%}

/* timeline page */
.ribbon{display:flex;height:34px;border-radius:10px;overflow:hidden;background:var(--surface-2)}
.ribbon i{display:block;height:100%}
.ribbon i+i{border-inline-start:2px solid var(--surface)}
.ribbon .gap{background:transparent}
.rlegend{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}
.rlegend button{display:flex;gap:10px;align-items:center;border:0;background:var(--surface-2);border-radius:12px;padding:6px 10px;text-align:start;min-width:0}
.rlegend i{width:14px;height:14px;border-radius:4px;background:var(--fc);flex:none}
.rlegend b{display:block;line-height:1.15}
.rlegend small{color:var(--muted);font-variant-numeric:tabular-nums}
.raxis{display:flex;justify-content:space-between;font-size:.82rem;color:var(--muted);font-weight:700;font-variant-numeric:tabular-nums}
.era{display:grid;grid-template-columns:8px minmax(0,1fr);gap:14px;border:0;background:none;padding:0;text-align:start;width:100%}
.era .bar2{background:var(--fc);border-radius:4px}
.era .in{display:flex;flex-direction:column;gap:2px;padding-block:6px}
.era b{font-size:1.15rem;line-height:1.2}
.era small{color:var(--muted);font-weight:700}
.era ul{margin:4px 0 0;padding-inline-start:18px;display:flex;flex-direction:column;gap:2px;font-size:1rem}
.era ul b{font-size:1rem;font-variant-numeric:tabular-nums}

/* quiz + games */
.quiz{display:flex;flex-direction:column;gap:14px}
.q{display:flex;flex-direction:column;gap:8px}
.q .qt{font-size:1.2rem;font-weight:800;line-height:1.25;display:flex;gap:8px;align-items:flex-start;justify-content:space-between}
.opts{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.opt{border:3px solid var(--line);background:var(--surface);border-radius:16px;font-weight:700;font-size:1.08rem;padding:10px 14px;line-height:1.25;min-width:0;text-align:start}
.opt:hover:not(:disabled){border-color:var(--accent)}
.opt:disabled{cursor:default}
.opt.no{background:var(--bad-soft);border-color:var(--bad);color:var(--bad)}
.opt.yes{background:var(--good-soft);border-color:var(--good);color:var(--good)}
.opt.dim{opacity:.55}
.why{border-radius:14px;padding:8px 14px;font-weight:600}
.why.good{background:var(--good-soft)} .why.bad{background:var(--bad-soft)}
.result{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.result .score{font-size:2.6rem;font-weight:800;line-height:1}
.result .stars{font-size:2rem}
.pager{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.gamehead{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.gamehead .ttl{font-weight:800;font-size:1.2rem;margin-inline-end:auto}
.prog{display:flex;gap:5px;flex-wrap:wrap}
.prog i{width:14px;height:14px;border-radius:50%;background:var(--surface-2)}
.prog i.good{background:var(--good)} .prog i.bad{background:var(--bad)} .prog i.now{background:var(--accent)}
.ask{position:sticky;top:calc(8px + env(safe-area-inset-top, 0px));z-index:3;background:var(--accent-soft);border-radius:20px;padding:10px 16px;text-align:center;box-shadow:0 6px 18px rgba(10,16,48,.12);display:flex;flex-direction:column;gap:4px;align-items:center}
.ask .big{font-size:1.5rem;font-weight:800;line-height:1.15}
.ask .ar{font-family:var(--font-ar);font-size:1.5rem;line-height:1.3;color:var(--accent)}
.msg{font-weight:700;min-height:1.5em} .msg.good{color:var(--good)} .msg.bad{color:var(--bad)}
.order{display:flex;flex-direction:column;gap:10px;width:100%;max-width:640px;margin-inline:auto}
.order .lbl{font-size:.9rem;font-weight:700;color:var(--muted)}
.slots,.pool{display:flex;flex-direction:column;gap:8px;min-height:58px;border-radius:18px;padding:8px}
.slots{border:3px dashed var(--line);background:var(--surface)}
.piece{border:3px solid var(--line);background:var(--surface);border-radius:14px;padding:8px 14px;font-weight:700;font-size:1.08rem;line-height:1.25;text-align:start;display:flex;gap:10px;align-items:baseline}
.piece .n{color:var(--accent);font-weight:800;font-variant-numeric:tabular-nums}
.piece .tx{flex:1;min-width:0}
.piece .y{display:block;color:var(--muted);font-variant-numeric:tabular-nums;font-size:.95rem}
.slots .piece{border-color:var(--accent);background:var(--accent-soft)}
.slots.yes .piece{border-color:var(--good);background:var(--good-soft)}
.slots.no .piece{border-color:var(--bad);background:var(--bad-soft)}

/* history word bubble */
.bubble{position:fixed;inset-inline:16px;bottom:calc(16px + env(safe-area-inset-bottom, 0px));z-index:6;display:flex;justify-content:center;pointer-events:none}
.bubble .in{pointer-events:auto;max-width:560px;width:100%;background:var(--night);color:#fff;border-radius:20px;padding:14px 16px;display:flex;gap:12px;align-items:flex-start;box-shadow:0 10px 30px rgba(10,16,48,.35)}
.bubble b{display:block;color:#ffc640;font-size:1.15rem;line-height:1.2}
.bubble p{line-height:1.35}
.bubble .x{border:0;background:rgba(255,255,255,.16);color:#fff;border-radius:50%;width:34px;height:34px;flex:none;font-weight:800}
.bubble .speak{background:rgba(255,255,255,.16);color:#fff}
.notes{display:flex;flex-direction:column;gap:8px;padding-inline-start:20px;margin:0}

.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:5}
.confetti svg{position:absolute;top:-30px;width:22px;height:22px;animation:fall 1.6s ease-in forwards}
@keyframes fall{to{transform:translateY(105vh) rotate(300deg)}}

@media (max-width:760px){
  body{font-size:16px}
  .brand p{display:none}
  .iconbtn .lbl{display:none}
  .tab small{display:none}
  .tab{font-size:.92rem}
  .hero{grid-template-columns:minmax(0,1fr)}
  .hero .art{order:-1;justify-items:center}
  .hero .art .bust{max-width:210px}
  .hero .txt{padding:18px 18px 22px}
  .grid4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid3,.grid2{grid-template-columns:minmax(0,1fr)}
  .chero{grid-template-columns:minmax(0,1fr)}
  .chero .pic{aspect-ratio:8/4.4;min-height:0}
  .says{grid-template-columns:64px minmax(0,1fr);gap:12px}
  .says .who{width:64px;height:64px}
  .timeline li{grid-template-columns:22px minmax(0,1fr);grid-template-areas:"dot t" "dot d";row-gap:0}
  .timeline .t{grid-area:t;text-align:start;padding-top:1px}
  .timeline .dot{grid-area:dot}
  .timeline .d{grid-area:d}
  .mapgrid{grid-template-columns:minmax(0,1fr)}
  .citycard{position:static}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}
/* ===== Haydar: extra styles ===== */
:root{--accent:#c1272d;--accent-ink:#fff;--accent-soft:#fde0e1;--font-ar:"Noto Naskh Arabic","Geeza Pro","Traditional Arabic",serif;--font-tf:"Noto Sans Tifinagh","Ebrima",sans-serif}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){--accent:#ff7a80;--accent-ink:#2a0d10;--accent-soft:#4a1d22}}
:root[data-theme="dark"]{--accent:#ff7a80;--accent-ink:#2a0d10;--accent-soft:#4a1d22}
body{background-image:radial-gradient(circle at 1px 1px,color-mix(in srgb,var(--ink) 6%,transparent) 1px,transparent 0);background-size:22px 22px}
.ar{font-family:var(--font-ar);font-weight:700;color:var(--muted);font-size:.9em}
.tf{font-family:var(--font-tf)}
.av svg,.avpick svg{width:100%;height:100%;display:block}
.av{background:transparent!important;overflow:hidden}
.kid .av{width:76px;height:76px}
.avpick button{width:60px;height:60px;padding:0;overflow:hidden;background:transparent}
.agepick{display:flex;gap:8px;flex-wrap:wrap}
.agepick button{width:54px;height:54px;border-radius:16px;border:3px solid var(--line);background:var(--surface);font-weight:800;font-size:1.4rem;color:var(--ink)}
.agepick button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}
.welcome{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;align-items:center}
.welcome .bust{width:120px;height:120px;border-radius:50%;background:#fde0e1}
.brand-mark svg{width:30px;height:30px}

/* home */
.mhero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);border-radius:26px;overflow:hidden;background:#c1272d;color:#fff;min-height:230px}
.mhero-art svg{display:block;width:100%;height:100%;min-height:220px}
.mhero-txt{padding:22px 26px;display:flex;flex-direction:column;gap:10px;justify-content:center;align-items:flex-start}
.mhero-txt .kicker{font-family:var(--font-ar);font-weight:700;color:#ffe08a;font-size:1.05rem}
.mhero-txt .kicker .kick-en{font-family:var(--font-ui);font-weight:800;font-size:.95rem}
.mhero-txt h2{font-size:clamp(2.1rem,6vw,3rem);font-weight:800;line-height:1}
.mhero-txt p{color:rgba(255,255,255,.92);max-width:40ch}
.chip.light{background:rgba(255,255,255,.18);color:#fff}
.chip.light .st{color:#ffc640}
.lvpanel{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.lvpanel > div:first-child{display:flex;flex-direction:column;min-width:200px;flex:1}
.world{display:flex;flex-direction:column;gap:12px;border-top:6px solid var(--wc);padding-top:12px}
.whead{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center}
.whead h2{font-size:1.5rem;font-weight:800;line-height:1.15;color:var(--wc)}
.wbadge{width:48px;height:48px;border-radius:14px;background:var(--ws);display:grid;place-items:center;border:2px solid var(--wc)}
.wbadge svg{width:36px;height:36px}
.wchip{background:var(--ws);color:var(--wc)}
.gtiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.gtile{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;align-items:center;text-align:start;border:2px solid var(--line);background:var(--surface);border-radius:20px;padding:10px;min-width:0;color:var(--ink)}
.gtile:hover{border-color:var(--wc)}
.gart{position:relative;width:84px;height:84px;border-radius:18px;background:var(--ws);display:grid;place-items:center}
.gart .gicon{width:68px;height:68px}
.gstamp{position:absolute;right:-10px;bottom:-10px;transform:rotate(-14deg)}
.gstamp svg{display:block}
.gbody{display:flex;flex-direction:column;gap:2px;min-width:0}
.gbody b{font-size:1.12rem;font-weight:800;line-height:1.15}
.gbody small{color:var(--muted);font-size:.88rem;line-height:1.25}
.gfoot .stars{font-size:1rem}

/* stamp book */
.badges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.badge{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;background:var(--surface-2);border-radius:18px;padding:10px}
.badge .lionb{width:84px;height:84px}
.badge small{color:var(--muted)}
.stampgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}
.stampcell{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px}
.stampcell .stars{font-size:.9rem}
.stampsvg{max-width:100%;height:auto}
.stampsvg.on{transform:rotate(-6deg)}
.cert{border:8px double #c1272d;border-radius:24px;background:#fffaf0;color:#1a2042;padding:10px}
.cert-in{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:10px 6px}
.cert h2{font-size:clamp(2rem,6vw,3rem);font-weight:800;color:#c1272d}
.cert .cname{font-size:clamp(1.8rem,6vw,2.6rem);font-weight:800;border-bottom:3px solid #c9a66b;padding:0 20px}
.cert .lionb{width:110px;height:110px}
.cert-pair{display:flex;align-items:center;justify-content:center;gap:14px}
.cert-pair .haydar{width:110px;height:110px;border-radius:50%}
.cert .kicker{font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:#0a7d46}
.zband{width:100%;height:26px}
@media print{.bar,.tabs,.noprint{display:none!important}body{background:#fff}}

/* the game screen */
.gscreen{display:flex;flex-direction:column;gap:14px}
.gamehead .ttl{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.gicon.sm{width:34px;height:34px}
.lvchip{background:var(--ws);color:var(--wc)}
.prog i.now{background:#ffc640;box-shadow:0 0 0 2px var(--wc)}
.ask{background:var(--ws);color:var(--ink)}
.ask .big{font-size:1.45rem}
.ask .ar{font-size:1.3rem;color:var(--wc)}
.qart{border-radius:var(--radius);overflow:hidden;border:2px solid var(--line);background:var(--surface);line-height:0;max-width:640px;width:100%;margin-inline:auto}
.qart svg{display:block;width:100%;height:auto}
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:680px;width:100%;margin-inline:auto}
.choices.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.choices.one{grid-template-columns:minmax(0,1fr)}
.choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:3px solid var(--line);background:var(--surface);border-radius:18px;padding:12px 10px;font-weight:800;font-size:1.2rem;line-height:1.2;min-height:64px;color:var(--ink);text-align:center;min-width:0}
.choice:hover:not(:disabled){border-color:var(--wc)}
.choice:disabled{cursor:default}
.choice .cart{display:block;width:100%;max-width:150px}
.choice .cart svg{display:block;width:100%;height:auto}
.choice .car{font-family:var(--font-ar);font-size:1.15rem;color:var(--muted);font-weight:700}
.choice.yes{border-color:var(--good);background:var(--good-soft)}
.choice.no{border-color:var(--bad);background:var(--bad-soft)}
.choice.dim{opacity:.5}
.fb{max-width:680px}
.fbrow{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center}
.fbface svg{width:44px;height:44px;display:block}
.result{gap:12px}
.bigstamp{display:grid;place-items:center}
.bigstamp.fresh svg{animation:stampin .6s cubic-bezier(.2,1.6,.4,1) both}
@keyframes stampin{0%{transform:scale(2.4) rotate(-30deg);opacity:0}60%{opacity:1}100%{transform:scale(1) rotate(-6deg)}}
.fact{display:flex;gap:12px;align-items:center;border-radius:var(--radius);padding:12px 16px;background:var(--ws);text-align:start;max-width:680px}
.fact .fico svg{width:40px;height:40px;display:block}
.fact p{font-size:1.06rem;line-height:1.45}
.tint{background:var(--ws)}
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 12px;font-weight:800;background:var(--ws);color:var(--wc)}
.bigbtns{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.stage{position:relative;border-radius:var(--radius);overflow:hidden;border:3px solid var(--wc);background:var(--surface);line-height:0;max-width:720px;width:100%;margin-inline:auto;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.stage > svg{display:block;width:100%;height:auto}
.hint{font-size:.95rem;color:var(--muted);text-align:center}
.cardrow{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;max-width:720px;width:100%;margin-inline:auto}
.tcard{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;border:3px solid var(--line);background:var(--surface);border-radius:16px;padding:8px;font-weight:800;line-height:1.15;text-align:center;color:var(--ink);min-width:0}
.tcard .cart{display:block;width:100%}
.tcard .cart svg{display:block;width:100%;height:auto}
.tcard.sel{border-color:var(--wc);background:var(--ws)}
.tcard.yes{border-color:var(--good);background:var(--good-soft)}
.tcard.no{border-color:var(--bad);background:var(--bad-soft)}
.tcard:disabled{cursor:default}
.tcard .num{position:absolute;top:-10px;inset-inline-start:-10px;width:34px;height:34px;border-radius:50%;background:#ffc640;border:3px solid #1a2042;color:#1a2042;font-weight:800;display:grid;place-items:center;font-size:1.05rem;z-index:1}
.tcard small{color:var(--muted);font-weight:600;font-size:.82rem}
@media (max-width:760px){
  .mhero{grid-template-columns:minmax(0,1fr)}
  .mhero-art svg{min-height:170px;max-height:210px}
  .mhero-txt{padding:16px 18px 20px}
  .gtiles{grid-template-columns:minmax(0,1fr)}
  .badges{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .badge .lionb{width:60px;height:60px}
  .badge b{font-size:.9rem}
  .choices.three{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ask .big{font-size:1.2rem}
  .welcome{grid-template-columns:84px minmax(0,1fr)}
  .welcome .bust{width:84px;height:84px}
  .cardrow{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* map games */
.mapstage{max-width:560px;width:100%;margin-inline:auto;border-radius:var(--radius);overflow:hidden;border:3px solid var(--wc);line-height:0;background:var(--sea)}
.mapstage svg{display:block;width:100%;height:auto}
.mpin{cursor:pointer}.mpin.dim{opacity:.4}
.mpin:focus{outline:none}.mpin:focus-visible circle:first-child{stroke:#2f6fd6;stroke-width:4;stroke-opacity:1}
.choice .cart{max-width:110px}
.choices.three.withart .choice{padding:10px 6px;font-size:1.05rem}
.choices.three.withart .cart{max-width:88px}
@media (max-width:760px){.choices.three.withart{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.choices.three.withart .choice{font-size:.92rem}}

/* little messages */
.toast{position:fixed;inset-inline:16px;top:calc(12px + env(safe-area-inset-top, 0px));z-index:7;display:flex;justify-content:center;pointer-events:none}
.toast .in{background:var(--night);color:#fff;border-radius:999px;padding:8px 18px;font-weight:700;box-shadow:0 8px 24px rgba(10,16,48,.35)}
/* dark mode: the world's soft color becomes a dark tint, so text on it stays readable */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .gscreen,:root:not([data-theme="light"]) .world,:root:not([data-theme="light"]) .gtile{--ws:color-mix(in srgb,var(--wc) 24%,var(--surface))!important}
  :root:not([data-theme="light"]) .whead h2,:root:not([data-theme="light"]) .wchip,:root:not([data-theme="light"]) .lvchip,:root:not([data-theme="light"]) .ask .ar,:root:not([data-theme="light"]) .pill{color:color-mix(in srgb,var(--wc) 55%,#fff)}
}
:root[data-theme="dark"] .gscreen,:root[data-theme="dark"] .world,:root[data-theme="dark"] .gtile{--ws:color-mix(in srgb,var(--wc) 24%,var(--surface))!important}
:root[data-theme="dark"] .whead h2,:root[data-theme="dark"] .wchip,:root[data-theme="dark"] .lvchip,:root[data-theme="dark"] .ask .ar,:root[data-theme="dark"] .pill{color:color-mix(in srgb,var(--wc) 55%,#fff)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .stampsvg:not(.on) > path:first-of-type{fill:var(--surface-2)}}
:root[data-theme="dark"] .stampsvg:not(.on) > path:first-of-type{fill:var(--surface-2)}
/* dirhams */
.coin{width:1.1em;height:1.1em;display:inline-block;vertical-align:-.18em}
.coin.big{width:34px;height:34px}
.coincount{display:inline-flex;align-items:center;gap:3px;font-weight:800;margin-inline-start:6px}
.coincount.pop{animation:pop .5s ease}
.earn{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 14px;background:#fff6d9;border:2px solid #e6bd4f;border-radius:18px;padding:10px 16px;color:#1a2042;max-width:520px}
.earn-n{display:inline-flex;align-items:center;gap:6px;font-size:1.8rem;font-weight:800;color:#8a5d00}
.earn b{display:block;line-height:1.1}.earn small{display:block;color:#6b6250}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .earn{background:#3a3016;color:#fff3d0;border-color:#a8811f}:root:not([data-theme="light"]) .earn-n{color:#ffd76a}:root:not([data-theme="light"]) .earn small{color:#e9dcb8}}
:root[data-theme="dark"] .earn{background:#3a3016;color:#fff3d0;border-color:#a8811f}:root[data-theme="dark"] .earn-n{color:#ffd76a}:root[data-theme="dark"] .earn small{color:#e9dcb8}

/* Map Explorer */
.g-map .mpin.big .mpin-in{transform-box:fill-box;transform-origin:center;animation:mp-bob 2.6s ease-in-out var(--d,0s) infinite}
.g-map .mpin.big:hover .mpin-in,.g-map .mpin.big:focus-visible .mpin-in{animation:none;transform:scale(1.08)}
.g-map .mpin.ok .mpin-in{animation:mp-yay .6s cubic-bezier(.2,1.6,.4,1)}
@keyframes mp-bob{50%{transform:translateY(-4px)}}
@keyframes mp-yay{0%{transform:scale(.7)}100%{transform:scale(1)}}
.g-map .mp-stick{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;max-width:560px;width:100%;margin-inline:auto}
.g-map .mp-stick b{font-size:.95rem;color:var(--muted);margin-inline-end:4px}
.g-map .mp-stick svg{width:40px;height:40px;animation:mp-yay .5s cubic-bezier(.2,1.6,.4,1)}
.g-map .mp-bar{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.g-map .mp-bar b{color:var(--ink);font-variant-numeric:tabular-nums}
.g-map .mp-tap.live svg{cursor:crosshair}
.g-map .mp-pin{pointer-events:none}
.g-map .mp-pin:not(.done) path{animation:mp-drop .35s cubic-bezier(.3,1.5,.5,1)}
@keyframes mp-drop{from{transform:translateY(-14px);opacity:.3}}
.g-map .mp-line{fill:none;stroke:#1a2042;stroke-width:2.6;stroke-dasharray:7 6;stroke-linecap:round;animation:mp-dash 1s linear infinite}
@keyframes mp-dash{to{stroke-dashoffset:-26}}
.g-map .mp-arrow{fill:none;stroke:#1f8a63;stroke-width:4;stroke-dasharray:8 6;stroke-linecap:round}
.g-map .mp-km rect{fill:#fff;stroke:#1a2042;stroke-width:2}
.g-map .mp-km text{font:800 12.5px var(--font-ui);fill:#1a2042}
.g-map .mp-flag{animation:mp-yay .5s cubic-bezier(.2,1.6,.4,1)}
.g-map .mp-n{font:800 11px var(--font-ui);fill:#1a2042}
.g-map .mp-go{justify-content:center}
.g-map .mp-go .btn svg{width:26px;height:26px}
.g-map .mp-pts{display:inline-block;font-weight:800;color:var(--wc);white-space:nowrap}
.g-map .mp-compass{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:420px;width:100%;margin-inline:auto}
.g-map .mp-dir{min-height:70px;font-size:1rem;padding:6px 4px;gap:0}
.g-map .mp-ar{display:block;font-size:1.6rem;line-height:1;transform:rotate(var(--r));color:var(--wc)}
.g-map .mp-mid{display:grid;place-items:center}
.g-map .mp-mid svg{width:70px;height:70px}
.g-map .mp-sum{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;max-width:620px;width:100%;margin-inline:auto}
.g-map .mp-sum .kicker{font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--wc);font-size:.9rem}
.g-map .mp-total{font-size:3rem;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.g-map .mp-total small{font-size:1.2rem;color:var(--muted)}
.g-map .mp-log{list-style:none;margin:4px 0;padding:0;width:100%;display:flex;flex-direction:column;gap:4px;counter-reset:r}
.g-map .mp-log li{display:grid;grid-template-columns:minmax(0,1fr) auto 3.6em;gap:10px;align-items:center;text-align:start;padding:5px 12px;border-radius:12px;background:var(--surface-2);font-size:.98rem}
.g-map .mp-log li.ok{background:var(--good-soft)}
.g-map .mp-log li span:nth-child(2){color:var(--muted);font-variant-numeric:tabular-nums}
.g-map .mp-log li b{text-align:end;font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion: reduce){.g-map .mpin-in,.g-map .mp-line,.g-map .mp-pin path,.g-map .mp-flag,.g-map .mp-stick svg{animation:none!important}}

/* City Colors */
.g-cities .ct-bar{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.g-cities .ct-bar b{color:var(--ink);font-variant-numeric:tabular-nums}
.g-cities .ct-streak{animation:ct-pop .4s cubic-bezier(.2,1.6,.4,1)}
@keyframes ct-pop{from{transform:scale(.5)}}
.g-cities .ct-zoom{position:relative}
.g-cities .ct-zoom.open svg{animation:ct-open .5s ease-out}
@keyframes ct-open{from{transform:scale(1.25)}}
.g-cities .ct-lens{position:absolute;top:10px;inset-inline-start:10px;background:rgba(26,32,66,.82);color:#fff;font-weight:800;border-radius:999px;padding:2px 12px;font-size:1rem;line-height:1.5}
.g-cities .ct-meter{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;max-width:640px;width:100%;margin-inline:auto}
.g-cities .ct-meter i{font-style:normal;text-align:center;font-weight:800;font-size:.9rem;border-radius:10px;padding:3px 0;background:var(--good-soft);color:var(--good);transition:opacity .3s,transform .3s}
.g-cities .ct-meter i.now{background:#ffc640;color:#1a2042;transform:scale(1.08);box-shadow:0 0 0 2px #1a2042}
.g-cities .ct-meter i.gone{opacity:.35;text-decoration:line-through}
.g-cities .ct-more{justify-content:center;gap:14px}
.g-cities .ct-more .btn small{font-weight:600;color:var(--muted);font-size:.85rem}
.g-cities .ct-pts{font-size:1.6rem;font-weight:800;color:var(--wc);font-variant-numeric:tabular-nums;line-height:1.1}
.g-cities .ct-pts small{font-size:.9rem;color:var(--muted)}
.g-cities .ct-got{display:inline-block;font-weight:800;color:var(--wc);white-space:nowrap}
.g-cities .ct-riddle{display:flex;flex-direction:column;gap:8px;max-width:680px;width:100%;margin-inline:auto;border-inline-start:6px solid var(--wc)}
.g-cities .ct-riddle p{font-size:1.18rem;line-height:1.45;font-weight:600}
.g-cities .ct-riddle p::before{content:"";display:inline-block;width:.55em;height:.55em;border-radius:50%;background:#ffc640;border:2px solid #1a2042;margin-inline-end:.5em;vertical-align:.08em}
.g-cities .ct-sum{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;max-width:620px;width:100%;margin-inline:auto}
.g-cities .ct-sum .kicker{font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--wc);font-size:.9rem}
.g-cities .ct-total{font-size:3rem;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.g-cities .ct-total small{font-size:1.2rem;color:var(--muted)}
.g-cities .ct-log{list-style:none;margin:4px 0;padding:0;width:100%;display:flex;flex-direction:column;gap:4px}
.g-cities .ct-log li{display:grid;grid-template-columns:minmax(0,1fr) 3.6em;gap:10px;align-items:center;text-align:start;padding:5px 12px;border-radius:12px;background:var(--surface-2);font-size:.98rem}
.g-cities .ct-log li.ok{background:var(--good-soft)}
.g-cities .ct-log li b{text-align:end;font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion: reduce){.g-cities .ct-zoom.open svg,.g-cities .ct-streak{animation:none}}

/* Al Boraq Express */
.g-boraq .bq-route{max-width:720px;width:100%;margin-inline:auto;line-height:0;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:4px 6px 2px}
.g-boraq .bq-route svg{display:block;width:100%;height:auto}
.g-boraq .bq-rl{font:700 12.5px var(--font-ui);fill:var(--muted)}
.g-boraq .bq-rl.on{fill:var(--ink);font-weight:800}
.g-boraq .bq-stage{background:#bfe3f5}
.g-boraq .bq-horn{position:absolute;top:8px;inset-inline-start:8px;width:46px;height:46px;border-radius:50%;border:2px solid #1a2042;background:rgba(255,255,255,.88);display:grid;place-items:center;padding:0;line-height:0}
.g-boraq .bq-horn svg{width:30px;height:30px}
.g-boraq .bq-msg{text-align:center;font-weight:800;font-size:1.15rem;line-height:1.3;min-height:1.4em;color:var(--wc);margin:0}
.g-boraq .bq-dash{display:grid;grid-template-columns:minmax(118px,190px) minmax(0,1fr);gap:14px;align-items:center;max-width:720px;width:100%;margin-inline:auto}
.g-boraq .bq-gauge svg{display:block;width:100%;height:auto}
.g-boraq .bq-gl{font:800 11px var(--font-ui);fill:#cfd6ee}
.g-boraq .bq-kmh{font:800 22px var(--font-ui);fill:#ffe08a}
.g-boraq .bq-unit{font:700 10px var(--font-ui);fill:#cfd6ee}
.g-boraq .bq-ctl{display:flex;flex-direction:column;gap:10px;min-width:0}
.g-boraq .bq-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.g-boraq .bq-go,.g-boraq .bq-brake,.g-boraq .bq-fast{border:3px solid #1a2042;border-radius:24px;min-height:112px;font-weight:800;font-size:1.55rem;letter-spacing:.05em;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:8px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;box-shadow:0 7px 0 #1a2042;transition:transform .08s,box-shadow .08s}
.g-boraq .bq-go svg,.g-boraq .bq-brake svg,.g-boraq .bq-fast svg{width:42px;height:42px}
.g-boraq .bq-go{background:#178a52}
.g-boraq .bq-fast{background:#1f8a63}
.g-boraq .bq-brake{background:#c1272d}
.g-boraq .bq-two .bq-fast,.g-boraq .bq-two .bq-brake{min-height:96px;font-size:1.25rem}
.g-boraq .bq-brake.shine{background:#e5333a;outline:6px solid #ffc640;outline-offset:2px;animation:bq-shine .5s ease-in-out infinite alternate}
@keyframes bq-shine{from{transform:scale(1)}to{transform:scale(1.04)}}
.g-boraq .bq-go:active,.g-boraq .bq-brake:active,.g-boraq .bq-fast:active,.g-boraq .bq-fast.on,.g-boraq .bq-brake.on{transform:translateY(5px);box-shadow:0 2px 0 #1a2042}
.g-boraq .bq-brake:disabled,.g-boraq .bq-fast:disabled{opacity:.45;cursor:default}
.g-boraq .bq-doors{position:absolute;top:8px;inset-inline-end:8px;background:#ffc640;color:#1a2042;box-shadow:0 4px 0 #b88708;border:3px solid #1a2042;line-height:1.2;white-space:nowrap;min-height:48px;animation:bq-pop .4s cubic-bezier(.2,1.6,.4,1)}
.g-boraq .bq-doors svg{width:30px;height:30px}
@keyframes bq-pop{from{transform:scale(.4);opacity:0}}
@media (max-width:520px){.g-boraq .bq-doors{font-size:1rem;padding:8px 12px;gap:6px}.g-boraq .bq-doors svg{width:24px;height:24px}}
.g-boraq .bq-dist{margin:0;text-align:center;font-weight:800;font-variant-numeric:tabular-nums;color:var(--ink);font-size:1.05rem}
.g-boraq .bq-keys{margin:0}
.g-boraq .bq-arr{display:flex;flex-direction:column;gap:10px;max-width:720px;width:100%;margin-inline:auto;padding:14px}
.g-boraq .bq-sign{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.g-boraq .bq-board{display:inline-flex;align-items:baseline;gap:12px;background:#1b4f9c;color:#fff;border-radius:12px;padding:3px 16px;border:3px solid #1a2042}
.g-boraq .bq-board b{font-size:1.5rem;line-height:1.3}
.g-boraq .bq-board .ar{color:#ffe08a;font-size:1.3rem}
.g-boraq .bq-chips{display:flex;gap:6px;flex-wrap:wrap}
.g-boraq .bq-chips .stars{font-size:1rem}
.g-boraq .bq-city{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:14px;align-items:center}
.g-boraq .bq-pic{aspect-ratio:400/230;margin:0}
.g-boraq .bq-pic svg{height:100%}
.g-boraq .bq-fact{display:flex;gap:10px;align-items:flex-start}
.g-boraq .bq-fact p{font-size:1.12rem;line-height:1.45;font-weight:600}
@media (max-width:640px){
  .g-boraq .bq-city{grid-template-columns:minmax(0,1fr)}
  .g-boraq .bq-dash{grid-template-columns:118px minmax(0,1fr);gap:10px}
  .g-boraq .bq-go,.g-boraq .bq-brake{min-height:100px}
  .g-boraq .bq-two .bq-fast,.g-boraq .bq-two .bq-brake{min-height:88px;font-size:1.05rem;letter-spacing:.02em}
  .g-boraq .bq-msg{font-size:1.02rem}
}
/* dark-aware tints (the shared .ask and .fact use --ws, which stays light in dark mode) */
.g-boraq .ask,.g-boraq .fact{background:color-mix(in srgb,var(--wc) var(--tintmix),var(--surface))}
/* speed signs, timetable, energy (big and master drivers) */
.g-boraq .bq-sg{font:800 10.5px var(--font-ui);fill:#1a2042}
.g-boraq .bq-msg.warn{color:var(--bad)}
.g-boraq .bq-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:720px;width:100%;margin-inline:auto}
.g-boraq .bq-info > div{display:flex;flex-direction:column;justify-content:center;gap:0;background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:5px 9px;min-width:0;line-height:1.2}
.g-boraq .bq-info small{font-size:.74rem;color:var(--muted);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-boraq .bq-info b{font-size:1.02rem;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-boraq .bq-info .bq-lim{flex-direction:row;align-items:center;gap:6px}
.g-boraq .bq-lim svg{width:38px;height:38px;flex:none}
.g-boraq .bq-lim span{display:flex;flex-direction:column;min-width:0}
.g-boraq .bq-limn{font:800 12.5px var(--font-ui);fill:#1a2042}
.g-boraq .bq-lim.over{border-color:var(--bad);background:var(--bad-soft);animation:bq-flash .5s steps(2) infinite}
@keyframes bq-flash{50%{border-color:var(--line)}}
.g-boraq .bq-clk.ok{border-color:var(--good);background:var(--good-soft)}
.g-boraq .bq-clk.late{border-color:var(--bad)}
.g-boraq .bq-ebar{position:relative;display:block;height:12px;border-radius:6px;background:var(--surface-2);overflow:visible;margin:3px 0}
.g-boraq .bq-ebar i{position:absolute;inset-block:0;inset-inline-start:0;border-radius:6px;background:#2fc77a;transition:width .2s}
.g-boraq .bq-ebar i.over{background:#ff8a1f}
.g-boraq .bq-ebar b{position:absolute;top:-4px;bottom:-4px;width:3px;margin-inline-start:-1.5px;background:var(--ink);border-radius:2px}
.g-boraq .bq-dash3{grid-template-columns:minmax(118px,190px) minmax(0,1fr);align-items:stretch}
.g-boraq .bq-dash3 .bq-gauge{display:flex;flex-direction:column;gap:4px;justify-content:center}
.g-boraq .bq-dash3 .bq-info{grid-template-columns:repeat(2,minmax(0,1fr));align-content:center}
.g-boraq .bq-lever{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;max-width:720px;width:100%;margin-inline:auto}
.g-boraq .bq-n{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:76px;padding:6px 2px;border-radius:16px;border:3px solid #1a2042;color:#fff;font-weight:800;line-height:1.1;box-shadow:0 5px 0 #1a2042;transition:transform .08s,box-shadow .08s;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.g-boraq .bq-n svg{width:28px;height:28px}
.g-boraq .bq-n b{font-size:.92rem;letter-spacing:.03em}
.g-boraq .bq-n small{font-size:.68rem;font-weight:700;opacity:.9;text-align:center}
.g-boraq .bq-n.n0{background:#178a52}.g-boraq .bq-n.n1{background:#1f6fb3}.g-boraq .bq-n.n2{background:#5b6388}.g-boraq .bq-n.n3{background:#d9822b}.g-boraq .bq-n.n4{background:#c1272d}
.g-boraq .bq-n[aria-pressed="true"]{transform:translateY(4px);box-shadow:0 1px 0 #1a2042;outline:4px solid #ffc640;outline-offset:2px}
.g-boraq .bq-n:disabled{opacity:.45;cursor:default}
.g-boraq .bq-close{background:#e3e6ee;box-shadow:0 4px 0 #8a93a8}
.g-boraq .bq-close.ready{background:#ffc640;box-shadow:0 4px 0 #b88708;animation:bq-shine .5s ease-in-out infinite alternate}
.g-boraq .bq-score{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:6px}
.g-boraq .bq-t{display:flex;flex-direction:column;gap:0;border-radius:12px;padding:5px 10px;background:var(--surface-2);border:2px solid transparent;line-height:1.2}
.g-boraq .bq-t small{font-weight:800;color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}
.g-boraq .bq-t b{font-size:1.2rem;font-variant-numeric:tabular-nums}
.g-boraq .bq-t span{font-size:.82rem;color:var(--muted)}
.g-boraq .bq-t.ok{background:var(--good-soft);border-color:var(--good)}
.g-boraq .bq-t.low{background:var(--bad-soft)}
.g-boraq .bq-note{font-size:.98rem;color:var(--muted);border-top:2px dashed var(--line);padding-top:8px}
.g-boraq .bq-note b{color:var(--ink)}
.g-boraq .bq-math{max-width:680px;width:100%;margin-inline:auto;border-inline-start:6px solid var(--wc)}
.g-boraq .bq-math p{font-size:1.2rem;line-height:1.45;font-weight:700}
.g-boraq .bq-report{display:flex;flex-direction:column;gap:10px;align-items:center;max-width:640px;width:100%;margin-inline:auto;border:3px solid #c1272d;background:linear-gradient(var(--surface),var(--surface)) padding-box}
.g-boraq .bq-rhead{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;width:100%;border-bottom:3px double var(--line);padding-bottom:10px}
.g-boraq .bq-rhead svg{width:64px;height:64px}
.g-boraq .bq-rhead .kicker{font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#c1272d;font-size:.82rem}
.g-boraq .bq-rt{width:100%;border-collapse:separate;border-spacing:0 5px}
.g-boraq .bq-rt th{text-align:start;font-weight:700;padding:6px 10px;background:var(--surface-2);border-radius:12px 0 0 12px}
.g-boraq .bq-rt td{padding:6px 8px;background:var(--surface-2);font-variant-numeric:tabular-nums;white-space:nowrap;text-align:end}
.g-boraq .bq-rt td:last-child{border-radius:0 12px 12px 0;width:3.4em;text-align:center}
.g-boraq .bq-rt small{color:var(--muted)}
.g-boraq .bq-grade{display:inline-grid;place-items:center;min-width:2.3em;height:2.1em;border-radius:10px;font-weight:800;border:2px solid #1a2042;background:#fff;color:#1a2042}
.g-boraq .bq-grade.gA{background:#2fc77a}.g-boraq .bq-grade.gB{background:#ffc640}.g-boraq .bq-grade.gC{background:#ffb27a}.g-boraq .bq-grade.gD{background:#ff8b80}
.g-boraq .bq-rtot{display:flex;align-items:baseline;gap:8px}
.g-boraq .bq-rtot span{font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.g-boraq .bq-rtot b{font-size:2.6rem;line-height:1;font-variant-numeric:tabular-nums}
.g-boraq .bq-rtot small{color:var(--muted);font-size:1.1rem}
.g-boraq .bq-title{font-size:1.3rem;font-weight:800;display:flex;align-items:center;gap:8px}
@media (max-width:640px){
  .g-boraq .bq-dash3{grid-template-columns:112px minmax(0,1fr);gap:8px}
  .g-boraq .bq-info{gap:6px}
  .g-boraq .bq-info > div{padding:4px 7px}
  .g-boraq .bq-info b{font-size:.92rem}
  .g-boraq .bq-lim svg{width:30px;height:30px}
  .g-boraq .bq-n{min-height:70px;border-radius:14px}
  .g-boraq .bq-n b{font-size:.8rem;letter-spacing:0}
  .g-boraq .bq-n small{font-size:.6rem}
  .g-boraq .bq-rt th{font-size:.92rem}
}
@media (prefers-reduced-motion: reduce){.g-boraq .bq-lim.over,.g-boraq .bq-close.ready{animation:none}}
@media (max-width:640px){
  .g-boraq .bq-dash3 .bq-info small{font-size:.68rem}
  .g-boraq .bq-dash3 .bq-info b{font-size:.86rem}
  .g-boraq .bq-dash3 .bq-lim b{font-size:.8rem}
  .g-boraq .bq-dash3 .bq-dist{font-size:.9rem;line-height:1.15}
  .g-boraq .bq-dash3 .bq-lim svg{width:26px;height:26px}
  .g-boraq .bq-dash3 .bq-info .bq-lim{gap:4px}
}
.g-boraq .bq-best{text-align:center;margin:-4px 0}

/* Pack Your Bag */
.g-pack .pk-stage{background:#cfeaff}
.g-pack .pk-hide{opacity:0}
.g-pack .pk-fly{position:fixed;z-index:20;pointer-events:none;will-change:transform;margin:0}
.g-pack .pk-fly svg{width:100%;height:100%;display:block}
.g-pack .pk-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:720px;width:100%;margin-inline:auto}
.g-pack .pk-item{padding:10px 6px 10px;min-height:44px;gap:2px;transition:transform .12s}
.g-pack .pk-item:hover:not(:disabled){transform:translateY(-2px);border-color:var(--wc)}
.g-pack .pk-item .cart{max-width:84px;margin-inline:auto}
.g-pack .pk-lbl{font-size:.98rem;line-height:1.15}
.g-pack .pk-item.pk-gone .cart{opacity:.3}
.g-pack .pk-item.no .cart{opacity:.55;filter:grayscale(.5)}
.g-pack .pk-item .num.pk-ok{background:#2fc77a;color:#fff}
.g-pack .pk-item .num.pk-x{background:#e5483f;color:#fff}
.g-pack .pk-item.pk-shake{animation:pk-shake .55s .5s}
@keyframes pk-shake{20%{transform:translateX(-7px) rotate(-4deg)}40%{transform:translateX(7px) rotate(4deg)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
.g-pack .pk-says{max-width:720px;width:100%;margin-inline:auto;align-items:center}
.g-pack .pk-says .bub{font-size:1.08rem}
.g-pack .pk-says .bub.pk-bad{border-color:var(--bad)}
.g-pack .pk-clue{display:flex;gap:10px;align-items:center;max-width:720px;width:100%;margin-inline:auto;background:var(--surface);border:2px dashed var(--wc);border-radius:16px;padding:8px 12px}
.g-pack .pk-clue-ico{flex:none;width:46px;height:46px;border-radius:12px;background:#e6f5ff;display:grid;place-items:center}
.g-pack .pk-clue-ico svg{width:40px;height:40px;display:block}
.g-pack .pk-clue p{flex:1;font-size:1.06rem;line-height:1.35;min-width:0}
.g-pack .pk-map{max-width:470px}
.g-pack .pk-lid.pk-shut{transform-box:view-box;transform-origin:200px 200px;transform:scaleY(0);animation:pk-lid .35s ease-in .55s backwards}
@keyframes pk-lid{from{transform:scaleY(1)}to{transform:scaleY(0)}}
.g-pack .pk-inside{opacity:0;animation:pk-hide .15s linear .75s backwards}
@keyframes pk-hide{from{opacity:1}}
.g-pack .pk-closed{animation:pk-in .3s ease-out .85s backwards}
@keyframes pk-in{from{opacity:0;transform:translateY(-14px)}}
.g-pack .pk-sticker{transform-box:fill-box;transform-origin:center;animation:pk-stick .45s cubic-bezier(.2,1.6,.4,1) 1.1s backwards}
@keyframes pk-stick{from{transform:scale(2.2) rotate(-25deg);opacity:0}}
.g-pack .pk-done{box-shadow:0 0 0 4px var(--ws)}
.g-pack .pk-play{display:flex;flex-direction:column;gap:12px;max-width:720px;width:100%;margin-inline:auto}
.g-pack .pk-left{display:flex;flex-direction:column;gap:12px;min-width:0}
@media (min-width:900px){.g-pack .pk-play:not(.done){display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;max-width:1000px;align-items:start}.g-pack .pk-item .cart{max-width:86px}}
@media (max-width:420px){.g-pack .pk-lbl{font-size:.88rem}.g-pack .pk-item .cart{max-width:70px}}
.g-pack .pk-msg{font-weight:800;display:block}
.g-pack .pk-msg.bad{color:var(--bad)}
.g-pack .pk-msg.good{color:var(--good)}
.g-pack .pk-count{display:flex;align-items:center;justify-content:center;gap:6px;font-weight:800;color:var(--muted)}
.g-pack .pk-count i{width:16px;height:16px;border-radius:5px;border:2px dashed var(--wc);display:inline-block}
.g-pack .pk-count i.on{background:var(--wc);border-style:solid}
.g-pack .pk-count b{margin-inline-start:6px}
/* dark-aware tints (the shared .ask and .fact use --ws, which stays light in dark mode) */
.g-pack .ask,.g-pack .fact{background:color-mix(in srgb,var(--wc) var(--tintmix),var(--surface))}
/* levels 2 and 3: trip planner */
.g-pack .pk-top{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-pack .pk-top .chip b{color:var(--ink);margin-inline-start:4px}
.g-pack .pk-top .pk-best{background:color-mix(in srgb,#ffc640 30%,var(--surface));color:var(--ink)}
.g-pack .pk-right{display:flex;flex-direction:column;gap:10px;min-width:0}
.g-pack .pk-gauge{position:sticky;top:0;z-index:4;background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:8px 12px;display:flex;flex-direction:column;gap:5px;box-shadow:0 4px 10px rgba(10,16,48,.08)}
.g-pack .pk-gtop{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:1rem}
.g-pack .pk-gtop span{font-weight:700;color:var(--muted)}
.g-pack .pk-gtop span b{color:var(--ink);font-size:1.15rem}
.g-pack .pk-bar{display:flex;height:16px;border-radius:8px;background:var(--surface-2);overflow:hidden;border:2px solid var(--line)}
.g-pack .pk-bar i{display:block;height:100%;transition:width .25s}
.g-pack .pk-bar .tare{background:#9aa3b5}
.g-pack .pk-bar .load{background:var(--good)}
.g-pack .pk-gauge.over{border-color:var(--bad);background:var(--bad-soft)}
.g-pack .pk-gauge.over .pk-bar .load{background:var(--bad)}
.g-pack .pk-gauge.over .pk-gtop span b{color:var(--bad)}
.g-pack .pk-gauge small{color:var(--muted);font-size:.85rem;line-height:1.2}
.g-pack .pk-gauge small:empty{display:none}
.g-pack .pk-shelf2{grid-template-columns:repeat(3,minmax(0,1fr))}
.g-pack .pk-item.sel{border-color:var(--good);background:var(--good-soft)}
.g-pack .pk-item.sel .cart{opacity:.55}
.g-pack .pk-kg{position:absolute;top:6px;inset-inline-end:6px;background:#fff6d9;color:#5a4300;border:1.5px solid #c9a23a;border-radius:6px 6px 6px 0;padding:0 5px;font-size:.78rem;font-weight:800;line-height:1.35;z-index:1}
.g-pack .pk-shelf2 .pk-item{padding-top:22px}
.g-pack .pk-reps{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.g-pack .pk-reps p{font-size:1.02rem;line-height:1.35}
.g-pack .pk-needbox{background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.g-pack .pk-needs{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.g-pack .pk-needs li{display:flex;gap:6px;align-items:flex-start;background:var(--surface-2);border-radius:10px;padding:5px 8px;font-weight:700;font-size:.92rem;line-height:1.2}
.g-pack .pk-needs li small{display:block;font-weight:600;color:var(--muted);font-size:.8rem}
.g-pack .pk-needs li.on{background:var(--good-soft)}
.g-pack .pk-needs li.miss{background:var(--bad-soft)}
.g-pack .pk-tick{flex:none;width:20px;height:20px;border-radius:6px;border:2px solid var(--line);display:grid;place-items:center;font-size:.8rem;font-weight:800;background:var(--surface)}
.g-pack .pk-needs li.on .pk-tick{background:#2fc77a;border-color:#2fc77a;color:#fff}
.g-pack .pk-needs li.miss .pk-tick{background:#e5483f;border-color:#e5483f;color:#fff}
.g-pack .pk-think{margin:0}
.g-pack .pk-res{display:flex;flex-direction:column;gap:10px;max-width:720px;width:100%;margin-inline:auto}
.g-pack .pk-junk,.g-pack .pk-extra{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:.95rem}
.g-pack .pk-junk .chip{background:var(--bad-soft);color:var(--ink)}
.g-pack .pk-calc{font-size:1rem;line-height:1.5;background:var(--surface-2);border-radius:12px;padding:8px 12px;margin:0}
.g-pack .pk-calc .bad{color:var(--bad)}
.g-pack .pk-tot{display:inline-block;font-weight:800}
.g-pack .pk-tot b{font-size:1.15rem;color:var(--wc)}
.g-pack .pk-res .sub{margin:0}
@media (min-width:900px){.g-pack .pk-play.done{max-width:760px}}
@media (max-width:420px){.g-pack .pk-needs{grid-template-columns:repeat(2,minmax(0,1fr))}.g-pack .pk-kg{font-size:.72rem;top:4px;inset-inline-end:4px}}
/* the weight gauge sticks to the top while packing, so the question bar does not */
.g-pack:has(.pk-gauge) .ask{position:relative;top:auto}

/* Animal Safari */
.g-safari .sf-stage{background:#cfeaff;cursor:crosshair}
.g-safari .sf-stage [data-act="safari_snap"]{cursor:pointer}
.g-safari .sf-stage [data-act]:focus{outline:none}
.g-safari .sf-stage [data-act="safari_snap"]:focus-visible{stroke:#2f6fd6;stroke-width:4;stroke-opacity:1;stroke-dasharray:6 5}
.g-safari .sf-flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none;animation:sf-flash .6s ease-out}
@keyframes sf-flash{from{opacity:.95}to{opacity:0}}
.g-safari .sf-out{transform-box:fill-box;transform-origin:center bottom;animation:sf-hop .7s cubic-bezier(.3,1.6,.5,1) .15s backwards}
@keyframes sf-hop{0%{transform:translateY(6px) scale(.92)}55%{transform:translateY(-16px) scale(1.06)}100%{transform:none}}
.g-safari .sf-focus{animation:sf-focus .5s ease-out .1s backwards}
@keyframes sf-focus{from{opacity:0}}
.g-safari .sf-spark{animation:sf-tw .7s ease-in-out infinite alternate}
@keyframes sf-tw{from{opacity:.3}to{opacity:1}}
.g-safari .sf-msg{text-align:center;font-weight:800;font-size:1.1rem;line-height:1.3;min-height:1.4em;margin:0;color:var(--wc)}
.g-safari .sf-msg.bad{color:var(--bad)}
.g-safari .sf-album{display:grid;grid-template-columns:repeat(auto-fill,minmax(58px,1fr));gap:8px;max-width:720px;width:100%;margin-inline:auto}
.g-safari .sf-pic{margin:0;background:#fff;border:2px solid var(--line);border-radius:8px;padding:3px;display:flex;flex-direction:column;align-items:center;gap:2px;box-shadow:0 2px 0 var(--line);min-width:0}
.g-safari .sf-pic svg{display:block;width:100%;height:auto;border-radius:5px}
.g-safari .sf-pic figcaption{display:none}
.g-safari .sf-pic.empty{background:var(--surface-2);border-style:dashed;justify-content:center;aspect-ratio:1;color:var(--muted);font-weight:800;box-shadow:none}
.g-safari .sf-pic.new{animation:sf-pop .6s cubic-bezier(.2,1.6,.4,1) .3s backwards}
@keyframes sf-pop{from{transform:scale(2.6) rotate(-14deg);opacity:0}}
.g-safari .sf-albumbox{max-width:720px;width:100%;margin-inline:auto}
.g-safari .sf-album.big{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.g-safari .sf-album.big .sf-pic{padding:6px 6px 8px;border-radius:10px;transform:rotate(-2deg)}
.g-safari .sf-album.big .sf-pic:nth-child(even){transform:rotate(2deg)}
.g-safari .sf-album.big figcaption{display:block;font-size:.95rem;font-weight:800;line-height:1.15;text-align:center;color:#1a2042}
.g-safari .sf-card{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;align-items:center;max-width:720px;width:100%;margin-inline:auto}
.g-safari .sf-photo{margin:0;background:#fff;padding:6px 6px 20px;border:2px solid #d8ddf0;border-radius:6px;transform:rotate(-3deg);box-shadow:0 6px 14px rgba(10,16,48,.16)}
.g-safari .sf-photo svg{display:block;width:100%;height:auto}
.g-safari .sf-txt{display:flex;flex-direction:column;gap:6px;min-width:0}
.g-safari .sf-txt p{font-size:1.06rem;line-height:1.42}
@media (max-width:560px){.g-safari .sf-card{grid-template-columns:104px minmax(0,1fr);gap:12px}.g-safari .sf-album{grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:6px}.g-safari .sf-album.big{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.g-safari .sf-album.big figcaption{font-size:.8rem}}
.g-safari .ask .sub{color:var(--ink);font-weight:700;font-size:1.08rem;line-height:1.35}
/* dark-aware tints (the shared .ask and .fact use --ws, which stays light in dark mode) */
.g-safari .ask,.g-safari .fact{background:color-mix(in srgb,var(--wc) var(--tintmix),var(--surface))}
/* levels 2 and 3: moving animals, photo quality, field guide, golden moments */
.g-safari .sf-top{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-safari .sf-top .chip b{color:var(--ink);margin-inline-start:4px}
.g-safari .sf-top .sf-best{background:color-mix(in srgb,#ffc640 30%,var(--surface));color:var(--ink)}
.g-safari .sf-goldstage{border-color:#e9a312;box-shadow:0 0 0 4px color-mix(in srgb,#ffc640 45%,transparent)}
.g-safari .sf-gold{animation:sf-glow 1.1s ease-in-out infinite alternate}
@keyframes sf-glow{from{opacity:.55}to{opacity:1}}
.g-safari .sf-msg.gold{color:#b07800}
.g-safari .sf-photo figcaption{text-align:center;line-height:1;margin-top:4px;font-weight:800;color:#5b6378;font-size:.9rem}
.g-safari .sf-photo.gold{border-color:#e9a312;background:#fff3c4;box-shadow:0 0 0 3px #ffc640,0 6px 14px rgba(10,16,48,.16)}
.g-safari .sf-photo.none svg{filter:grayscale(1);opacity:.45}
.g-safari .sf-qs{display:inline-flex;gap:1px;font-style:normal;letter-spacing:0}
.g-safari .sf-qs i{font-style:normal;color:#c9ced8;font-size:1.05em;line-height:1}
.g-safari .sf-qs i.on{color:#e9a312}
.g-safari .sf-pic.gold{border-color:#e9a312;background:#fff3c4;box-shadow:0 0 0 2px #ffc640}
.g-safari .sf-album.big figcaption .sf-qs{display:flex;justify-content:center;margin-top:2px}
.g-safari .sf-q{margin-top:4px}
.g-safari .sf-q .big{font-size:1.25rem}
.g-safari .sf-choices .choice{font-size:1.05rem;min-height:56px}
.g-safari .sf-guide{max-width:720px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:10px}
.g-safari .sf-ghead{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.g-safari .sf-ghead b{font-size:1.2rem;margin-inline-end:auto}
.g-safari .sf-goldchip{background:#fff3c4;color:#8a5d00}
.g-safari .sf-gg{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.g-safari .sf-gc{position:relative;margin:0;background:#fff;border:2px solid var(--line);border-radius:10px;padding:4px 4px 6px;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}
.g-safari .sf-gc svg{display:block;width:100%;height:auto;border-radius:6px}
.g-safari .sf-gc figcaption{font-size:.74rem;font-weight:800;line-height:1.1;text-align:center;color:#1a2042;display:flex;flex-direction:column;align-items:center;gap:1px;overflow-wrap:anywhere}
.g-safari .sf-gc.off{background:var(--surface-2);border-style:dashed}
.g-safari .sf-gc.off svg{filter:brightness(0);opacity:.18}
.g-safari .sf-gc.off figcaption{color:var(--muted);font-size:1rem}
.g-safari .sf-gc.gold{border-color:#e9a312;background:#fff3c4;box-shadow:0 0 0 2px #ffc640}
.g-safari .sf-gc.fresh{animation:sf-pop .6s cubic-bezier(.2,1.6,.4,1) .4s backwards}
.g-safari .sf-new{position:absolute;top:-8px;inset-inline-end:-6px;background:#c1272d;color:#fff;font-weight:800;font-size:.7rem;border-radius:999px;padding:1px 6px;border:2px solid #fff}
@media (max-width:560px){.g-safari .sf-gg{grid-template-columns:repeat(3,minmax(0,1fr))}.g-safari .sf-gc figcaption{font-size:.72rem}}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .g-safari .sf-msg.gold{color:#ffd76a}}
:root[data-theme="dark"] .g-safari .sf-msg.gold{color:#ffd76a}

/* Oasis Keeper */
.g-oasis .oa-play{display:flex;flex-direction:column;gap:10px;width:100%;max-width:720px;margin-inline:auto}
.g-oasis .oa-scene{max-width:720px}
.g-oasis .oa-stage{max-width:none;background:#d8b47e}
.g-oasis .oa-board{display:block;width:100%;height:auto}
.g-oasis text.oa-place{font:800 18px var(--font-ui);fill:#fff;paint-order:stroke;stroke:#1a2042;stroke-width:4px}
.g-oasis text.oa-placear{font:700 15px var(--font-ar);fill:#fff;paint-order:stroke;stroke:#1a2042;stroke-width:4px}
.g-oasis text.oa-lbl{font:800 11px var(--font-ui);fill:#1b4f9c;paint-order:stroke;stroke:#fff;stroke-width:3px}
.g-oasis text.oa-own{font:800 13px var(--font-ui);fill:#fff}
.g-oasis text.oa-price{font:800 14px var(--font-ui);fill:#1a2042}
.g-oasis .oa-gate{cursor:pointer}
.g-oasis .oa-gate:focus{outline:none}
.g-oasis .oa-gate:focus-visible circle:nth-of-type(2){stroke:#ffc640;stroke-width:4}
.g-oasis .oa-gate:hover circle:nth-of-type(2){stroke-width:3.4}
.g-oasis .oa-field.hl rect:first-child{animation:oaHl 1s ease-in-out infinite}
@keyframes oaHl{50%{stroke-opacity:.4}}
.g-oasis .oa-flow{animation:oaFlow .8s linear infinite}
@keyframes oaFlow{to{stroke-dashoffset:-12}}
.g-oasis .oa-shim{animation:oaShim 2.4s ease-in-out infinite alternate}
@keyframes oaShim{to{opacity:.6}}
.g-oasis .oa-sway{animation:oaSway 3.4s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 100%}
@keyframes oaSway{from{transform:rotate(-2.5deg)}to{transform:rotate(2.5deg)}}
.g-oasis .oa-tplay{display:flex;flex-direction:column;gap:10px;width:100%;max-width:760px;margin-inline:auto}
.g-oasis .oa-tside{display:flex;flex-direction:column;gap:10px;min-width:0}
.g-oasis .oa-clock{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px 12px;align-items:center}
.g-oasis .oa-bowl{width:110px;height:auto;grid-row:span 2}
.g-oasis .oa-who{font-weight:700;line-height:1.35}
.g-oasis .oa-nouba{display:flex;flex-wrap:wrap;gap:4px}
.g-oasis .oa-turn{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:.85rem;color:#fff;background:var(--fc);border:2px solid #1a2042;opacity:.9}
.g-oasis .oa-turn.past{opacity:.3}
.g-oasis .oa-turn.now{box-shadow:0 0 0 3px #ffc640;transform:scale(1.15)}
.g-oasis .oa-bars{display:flex;flex-direction:column;gap:6px}
.g-oasis .oa-bar{display:grid;grid-template-columns:52px minmax(0,1fr) 54px;gap:8px;align-items:center}
.g-oasis .oa-bar small{color:var(--muted);font-weight:700;font-size:.78rem}
.g-oasis .oa-track{display:block;height:12px;border-radius:7px;background:var(--surface-2);overflow:hidden;border:1.5px solid var(--line);min-width:40px}
.g-oasis .oa-track.big{height:16px}
.g-oasis .oa-track i{display:block;height:100%;border-radius:7px}
.g-oasis .oa-cfact{margin-inline:auto;width:100%}
.g-oasis .oa-res{max-width:720px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:6px}
.g-oasis .oa-pp,.g-oasis .oa-bn{cursor:pointer}
.g-oasis .oa-souk{max-width:640px}
.g-oasis .oa-rep{max-width:620px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:8px;align-items:center;text-align:center}
.g-oasis .oa-rt{width:100%;border-collapse:collapse}
.g-oasis .oa-rt th{text-align:start;font-weight:800;padding:6px 4px;border-bottom:1px solid var(--line);white-space:nowrap}
.g-oasis .oa-rt td{padding:6px 4px;border-bottom:1px solid var(--line);color:var(--muted);font-weight:600;font-size:.9rem}
.g-oasis .oa-rt td:first-of-type{width:34%}
.g-oasis .oa-rt td:last-child{text-align:end;color:var(--ink);white-space:nowrap}
.g-oasis .oa-tot{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:4px 10px;font-weight:800}
.g-oasis .oa-tot b{font-size:1.7rem}
.g-oasis .oa-title .stars{font-size:1.6rem}
.g-oasis .oa-stats{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-oasis .oa-stats .chip{background:var(--ws);color:var(--ink);font-weight:700}
.g-oasis .oa-invs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:760px;width:100%;margin-inline:auto}
.g-oasis .oa-inv{display:flex;flex-direction:column;align-items:center;gap:4px;border:3px solid var(--line);background:var(--surface);border-radius:16px;padding:8px 6px;color:var(--ink);text-align:center;min-width:0}
.g-oasis .oa-inv.on{border-color:var(--wc);background:var(--ws)}
.g-oasis .oa-inv:disabled{opacity:.45}
.g-oasis .oa-inv b{font-size:.95rem;line-height:1.15}
.g-oasis .oa-inv small{color:var(--muted);font-weight:600;font-size:.78rem;line-height:1.25}
.g-oasis .oa-ii svg{width:60px;height:50px;display:block}
.g-oasis .oa-cost{font-weight:800;color:#8a5d00;background:#fff6d9;border-radius:999px;padding:1px 10px}
.g-oasis .oa-evtxt{max-width:640px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:6px}
.g-oasis .oa-post{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);max-width:780px;width:100%;margin-inline:auto;background:#fffaf0;color:#1a2042;border-radius:18px;border:2px solid #e2cfa6;box-shadow:0 10px 30px rgba(26,32,66,.18);overflow:hidden;transform:rotate(-1deg)}
.g-oasis .oa-pimg{position:relative;line-height:0}
.g-oasis .oa-pimg > svg{display:block;width:100%;height:100%;min-height:200px}
.g-oasis .oa-pstamp{position:absolute;bottom:8px;inset-inline-end:8px;transform:rotate(8deg)}
.g-oasis .oa-ptxt{padding:16px 18px;display:flex;flex-direction:column;gap:6px;border-inline-start:2px dashed #e2cfa6}
.g-oasis .oa-ptxt h2{font-size:2rem;font-weight:800;color:#1f8a63;line-height:1}
.g-oasis .oa-ptxt .kicker{font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#c1531d;font-size:.8rem}
.g-oasis .oa-ptxt .ar{color:#8a5d00;font-size:1.15rem}
.g-oasis .oa-ptxt .sub{color:#5b6388}
@media (min-width:900px){
  .g-oasis .oa-tplay{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);max-width:none;align-items:start}
}
@media (max-width:760px){
  .g-oasis .oa-invs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-oasis .oa-post{grid-template-columns:minmax(0,1fr);transform:none}
  .g-oasis .oa-ptxt{border-inline-start:0;border-top:2px dashed #e2cfa6}
  .g-oasis .oa-clock{grid-template-columns:84px minmax(0,1fr)}
  .g-oasis .oa-bowl{width:84px}
  .g-oasis .oa-rt td{font-size:.82rem}
}
@media (prefers-reduced-motion:reduce){.g-oasis *{animation:none!important}}
.g-oasis .oa-best{display:flex;justify-content:center}

/* The Blue Pearl (Chefchaouen) */
.g-chaouen{--tint:color-mix(in srgb,var(--wc) 14%,var(--surface))}
.g-chaouen .ask{background:var(--tint)}
.g-chaouen .ch-hud{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-chaouen .ch-chip{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:3px 12px;font-weight:700;background:var(--surface);border:2px solid var(--line);font-variant-numeric:tabular-nums;line-height:1.3}
.g-chaouen .ch-chip svg{width:18px;height:18px;display:block}
.g-chaouen .ch-chip.ok{background:var(--good-soft);border-color:var(--good);color:var(--good)}
.g-chaouen .ch-chip.low{background:var(--bad-soft);border-color:var(--bad);color:var(--bad)}
.g-chaouen .ch-chip.best{background:var(--tint);border-color:var(--wc)}
.g-chaouen .ch-play{display:flex;flex-direction:column;gap:12px;max-width:1080px;width:100%;margin-inline:auto}
.g-chaouen .ch-side{display:flex;flex-direction:column;gap:10px;min-width:0}
.g-chaouen .ch-main{display:flex;flex-direction:column;gap:8px;min-width:0}
.g-chaouen .ch-town{max-width:720px;background:#bfe4fb}
.g-chaouen .ch-stage{max-width:620px;background:#1d4f9c}
.g-chaouen .ch-stage svg,.g-chaouen .ch-town svg{display:block;width:100%;height:auto}
.g-chaouen .ch-cell{cursor:pointer}
.g-chaouen .ch-cell:focus{outline:none}
.g-chaouen .ch-cell:focus-visible > rect:first-child{stroke:#ffc640;stroke-width:8}
.g-chaouen .ch-cell:hover > rect:first-child{filter:brightness(1.05)}
.g-chaouen .ch-cat{cursor:pointer}
.g-chaouen .ch-cat:focus{outline:none}
.g-chaouen .ch-cat:focus-visible ellipse{fill-opacity:.25;fill:#ffc640}
.g-chaouen .ch-spin{transform-box:fill-box;transform-origin:center;animation:chSpin .22s cubic-bezier(.3,1.4,.5,1)}
@keyframes chSpin{from{transform:rotate(-90deg)}to{transform:rotate(0)}}
.g-chaouen .ch-flow{animation:chFlow .9s linear infinite}
@keyframes chFlow{to{stroke-dashoffset:-19}}
.g-chaouen .ch-paint{animation:chPaint .45s cubic-bezier(.2,1.5,.4,1) both;transform-box:fill-box;transform-origin:center bottom}
@keyframes chPaint{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}
.g-chaouen .ch-pop{transform-box:fill-box;transform-origin:center bottom;animation:chPop .5s cubic-bezier(.2,1.6,.4,1)}
@keyframes chPop{from{transform:scale(.4)}to{transform:scale(1)}}
.g-chaouen .ch-hint{animation:chBlink .7s ease-in-out infinite alternate}
@keyframes chBlink{from{stroke-opacity:1}to{stroke-opacity:.25}}
.g-chaouen .ch-tw{animation:chBlink 1s ease-in-out infinite alternate}
.g-chaouen .ch-turn{animation:chNudge 2.4s ease-in-out infinite}
@keyframes chNudge{0%,80%,100%{opacity:1}90%{opacity:.4}}
.g-chaouen .ch-flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none;animation:chFlash .5s ease-out}
@keyframes chFlash{from{opacity:.9}to{opacity:0}}
.g-chaouen .ch-tools{justify-content:center;gap:10px;flex-wrap:wrap}
.g-chaouen .ch-tools .hint{margin:0}
.g-chaouen .ch-legend{background:var(--tint);border-radius:16px;padding:10px 14px;font-size:.98rem;line-height:1.4;max-width:720px;width:100%;margin-inline:auto}
.g-chaouen .ch-legend small{display:block;color:var(--muted);margin-top:4px;font-size:.9rem}
.g-chaouen .ch-sw{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:6px}
.g-chaouen .ch-sw > span{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.g-chaouen .ch-sw i{width:20px;height:20px;border-radius:6px;border:2px solid #1a2042;display:inline-block}
.g-chaouen .ch-lime{display:inline-block;width:14px;height:14px;border-radius:50%;background:#fbfaf6;border:2px solid #1a2042;vertical-align:-2px}
.g-chaouen .ch-done{display:flex;flex-direction:column;gap:10px;align-items:center;max-width:680px;width:100%;margin-inline:auto;text-align:center;animation:chPop .5s cubic-bezier(.2,1.6,.4,1)}
.g-chaouen .ch-dhead{display:flex;flex-direction:column;align-items:center;gap:4px}
.g-chaouen .ch-dhead b{font-size:1.35rem;color:var(--wc)}
.g-chaouen .ch-dline{color:var(--muted);font-weight:700;margin:0}
/* the postcard */
.g-chaouen .ch-card{display:grid;grid-template-columns:minmax(0,1fr);gap:0;max-width:860px;width:100%;margin-inline:auto;background:#fffaf0;color:#1a2042;border-radius:18px;padding:12px;box-shadow:0 10px 26px rgba(10,16,48,.18);border:2px solid #e6d8bb;transform:rotate(-.6deg)}
.g-chaouen .ch-cardpic{border-radius:10px;overflow:hidden;line-height:0;border:3px solid #fff;box-shadow:0 0 0 2px #e6d8bb}
.g-chaouen .ch-cardpic svg{display:block;width:100%;height:auto}
.g-chaouen .ch-cardtxt{position:relative;padding:12px 6px 4px;display:flex;flex-direction:column;gap:8px}
.g-chaouen .ch-stampbox{position:absolute;top:10px;inset-inline-end:6px;width:62px;height:70px;background:#fff;border:3px dashed #c1272d;border-radius:4px;padding:3px;transform:rotate(5deg)}
.g-chaouen .ch-stampbox svg{width:100%;height:100%;display:block}
.g-chaouen .ch-hand{font-size:1.12rem;font-weight:700;line-height:1.45;padding-inline-end:72px;color:#1d4f9c}
.g-chaouen .ch-why{font-size:1rem;line-height:1.45;color:#3b3f52}
.g-chaouen .ch-score{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-weight:700}
@media (min-width:900px){
  .g-chaouen .ch-play{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:18px;align-items:start}
  .g-chaouen .ch-card{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px}
  .g-chaouen .ch-cardtxt{padding-top:6px}
}
/* the cat album */
.g-chaouen .ch-album{max-width:860px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:10px}
.g-chaouen .ch-ahead{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.g-chaouen .ch-cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:8px}
.g-chaouen .ch-cf{position:relative;margin:0;background:#eaf3fc;border:2px solid var(--line);border-radius:12px;padding:4px 4px 2px;display:flex;flex-direction:column;align-items:center;min-width:0}
.g-chaouen .ch-cf svg{width:100%;max-width:64px;height:auto;display:block}
.g-chaouen .ch-cf figcaption{font-size:.82rem;font-weight:800;color:#1a2042;line-height:1.2}
.g-chaouen .ch-cf.off{background:var(--surface-2)}
.g-chaouen .ch-cf.off figcaption{color:var(--muted)}
.g-chaouen .ch-cf.fresh{border-color:var(--wc);animation:chPop .6s cubic-bezier(.2,1.6,.4,1) .2s backwards}
.g-chaouen .ch-new{position:absolute;top:-8px;inset-inline-end:-6px;background:#ffc640;color:#1a2042;border:2px solid #1a2042;border-radius:999px;font-size:.72rem;font-weight:800;padding:0 6px}
@media (prefers-reduced-motion: reduce){.g-chaouen *{animation:none!important}}
@media (max-width:899px){.g-chaouen .ch-side{order:2}.g-chaouen .ch-main{order:1}}
.g-chaouen .ch-catrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:8px 12px;max-width:720px;width:100%;margin-inline:auto;font-size:.95rem}
.g-chaouen .ch-catrow > span:last-child{color:var(--muted);font-weight:700}
.g-chaouen .ch-mini{display:inline-flex;gap:2px}
.g-chaouen .ch-mini svg{width:30px;height:34px;display:block}
.g-chaouen .ch-mini svg.off{opacity:.45}

/* Surf Taghazout */
.g-surf .ask,.g-surf .fact{background:color-mix(in srgb,var(--wc) var(--tintmix),var(--surface))}
.g-surf .sf-stage{background:#8fcff5;touch-action:none}
.g-surf .sf-top{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;justify-content:center;max-width:720px;width:100%;margin-inline:auto}
.g-surf .sf-place{font-weight:700;color:var(--muted)}
.g-surf .sf-place b{color:var(--ink)}
.g-surf .sf-msg{text-align:center;font-weight:800;font-size:1.1rem;line-height:1.3;min-height:1.35em;color:var(--wc);margin:0}
.g-surf .sf-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:560px;width:100%;margin-inline:auto}
.g-surf .sf-go{background:#1d63b8;color:#fff;box-shadow:0 4px 0 #123f78}
.g-surf .sf-ctl{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:10px;max-width:640px;width:100%;margin-inline:auto}
.g-surf .sf-ctl.one{grid-template-columns:minmax(0,1fr)}
.g-surf .sf-hold,.g-surf .sf-trick{border:3px solid #1a2042;border-radius:24px;min-height:96px;font-weight:800;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:8px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;box-shadow:0 7px 0 #1a2042;transition:transform .08s,box-shadow .08s,background .15s}
.g-surf .sf-hold{background:#1d63b8;font-size:1.35rem;letter-spacing:.04em;max-width:640px;width:100%;margin-inline:auto}
.g-surf .sf-hold svg{width:40px;height:40px}
.g-surf .sf-hold.on,.g-surf .sf-hold:active{transform:translateY(5px);box-shadow:0 2px 0 #1a2042;background:#2f7fd6}
.g-surf .sf-paddle{background:#1f8a63;font-size:1.5rem}
.g-surf .sf-paddle.hit{animation:sf-hit .18s ease-out}
@keyframes sf-hit{from{transform:translateY(5px) scale(.97)}}
.g-surf .sf-popb{background:#e8a40c;color:#1a2042;font-size:1.6rem}
.g-surf .sf-trick{background:#8a93a8;font-size:1.05rem}
.g-surf .sf-trick b{font-size:1.25rem;letter-spacing:.04em}
.g-surf .sf-trick small{font-size:.8rem;font-weight:700;opacity:.92}
.g-surf .sf-trick.lit{background:#e2540f;outline:5px solid #ffc640;outline-offset:2px;animation:sf-lit .45s ease-in-out infinite alternate}
.g-surf .sf-trick:disabled{cursor:default;opacity:.75}
@keyframes sf-lit{to{transform:scale(1.04)}}
.g-surf .sf-keys{margin:0}
.g-surf .sf-meter{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;max-width:560px;width:100%;margin-inline:auto;font-weight:800}
.g-surf .sf-bar{position:relative;display:block;height:22px;border-radius:11px;background:var(--surface-2);border:2px solid var(--line);overflow:hidden}
.g-surf .sf-bar > i{position:absolute;inset-block:0;inset-inline-start:0;background:#2fc77a;border-radius:9px;width:0}
.g-surf .sf-bar > b{position:absolute;top:0;bottom:0;width:4px;margin-inline-start:-2px;background:var(--ink)}
.g-surf .sf-tbar > em{position:absolute;inset-block:0;background:#2fc77a}
.g-surf .sf-tbar > i.needle{width:6px;margin-inline-start:-3px;background:#1a2042;border-radius:3px;box-shadow:0 0 0 2px #fff}
.g-surf .sf-fc{display:flex;flex-direction:column;gap:8px;max-width:720px;width:100%;margin-inline:auto}
.g-surf .sf-fct{font-size:1.1rem}
.g-surf .sf-fcrow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.g-surf .sf-fci{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;background:var(--surface-2);border-radius:14px;padding:8px}
.g-surf .sf-fci svg{width:56px;height:46px}
.g-surf .sf-fci small{color:var(--muted)}
.g-surf .sf-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.g-surf .sf-slot{display:flex;flex-direction:column;gap:4px;align-items:stretch;text-align:start;border:3px solid var(--line);background:var(--surface);border-radius:16px;padding:8px;color:var(--ink);min-width:0}
.g-surf .sf-slot[aria-pressed="true"]{border-color:var(--wc);background:var(--ws)}
.g-surf .sf-slot > b{font-size:1rem}
.g-surf .sf-slot span{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;column-gap:6px;align-items:center}
.g-surf .sf-slot span svg{grid-row:1/3;width:34px;height:30px}
.g-surf .sf-slot em{font-style:normal;font-weight:800;font-size:.9rem;line-height:1.1}
.g-surf .sf-slot small{color:var(--muted);font-size:.78rem;line-height:1.15}
.g-surf .sf-guide{font-size:.95rem;color:var(--muted);line-height:1.4}
.g-surf .sf-guide b{color:var(--ink)}
.g-surf .sf-pick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:720px;width:100%;margin-inline:auto}
.g-surf .sf-card{justify-content:flex-start}
.g-surf .sf-card .cart svg{max-height:84px}
.g-surf .sf-card b{font-size:1.08rem}
.g-surf .sf-card small{font-size:.82rem;line-height:1.3}
.g-surf .sf-plan{max-width:720px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:6px}
.g-surf .sf-plan ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}
.g-surf .sf-plan li{padding:4px 10px;border-radius:10px;font-weight:600;line-height:1.3}
.g-surf .sf-plan li.ok{background:var(--good-soft)}
.g-surf .sf-plan li.ok::before{content:"✓ ";color:var(--good);font-weight:800}
.g-surf .sf-plan li.no{background:var(--bad-soft)}
.g-surf .sf-plan li.no::before{content:"✗ ";color:var(--bad);font-weight:800}
.g-surf .sf-safe{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center;max-width:720px;width:100%;margin-inline:auto}
.g-surf .sf-sico svg{width:44px;height:44px;display:block}
.g-surf .sf-safe p{font-weight:600;line-height:1.4}
.g-surf .sf-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;max-width:680px;width:100%;margin-inline:auto}
.g-surf .sf-tiles div{display:flex;flex-direction:column;align-items:center;background:var(--surface-2);border-radius:14px;padding:8px;text-align:center}
.g-surf .sf-tiles b{font-size:1.5rem;line-height:1.1;font-variant-numeric:tabular-nums}
.g-surf .sf-tiles small{color:var(--muted);font-weight:700}
.g-surf .sf-trk{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.g-surf .sf-heat{max-width:680px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:6px}
.g-surf .sf-heat table{width:100%;border-collapse:separate;border-spacing:0 4px}
.g-surf .sf-heat td{padding:5px 8px;background:var(--surface-2);font-variant-numeric:tabular-nums}
.g-surf .sf-heat td:first-child{border-radius:10px 0 0 10px;font-weight:800;width:2em;text-align:center}
.g-surf .sf-heat td:last-child{border-radius:0 10px 10px 0;text-align:end}
.g-surf .sf-heat td i{display:inline-block;width:12px;height:12px;border-radius:50%;margin-inline-end:6px;border:2px solid #1a2042;vertical-align:-1px}
.g-surf .sf-heat tr.me td{background:var(--good-soft);font-weight:800}
.g-surf .sf-post{max-width:720px;width:100%;margin-inline:auto;border-radius:18px;overflow:hidden;border:4px solid #fff;box-shadow:0 10px 30px rgba(10,16,48,.28);line-height:0;transform:rotate(-1.2deg)}
.g-surf .sf-post svg{display:block;width:100%;height:auto}
.g-surf .sf-sum{max-width:680px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:6px;text-align:center;align-items:center}
.g-surf .sf-sum .kicker{font-weight:800;color:var(--wc);letter-spacing:.04em}
.g-surf .sf-sum p{font-size:1.08rem;font-weight:600}
@media (max-width:640px){
  .g-surf .sf-hold,.g-surf .sf-trick{min-height:84px}
  .g-surf .sf-slots{grid-template-columns:minmax(0,1fr)}
  .g-surf .sf-slot{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:4px 8px}
  .g-surf .sf-slot > b{grid-column:1/-1}
  .g-surf .sf-msg{font-size:1rem}
  .g-surf .sf-trick b{font-size:1.05rem}
}
@media (prefers-reduced-motion: reduce){.g-surf .sf-trick.lit,.g-surf .sf-paddle.hit{animation:none}.g-surf .sf-post{transform:none}}
.g-surf .sf-pick-sum{text-align:center;font-weight:600;color:var(--muted);max-width:640px;margin-inline:auto}
.g-surf .sf-pick-sum b{color:var(--ink)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .g-surf .sf-msg{color:color-mix(in srgb,var(--wc) 45%,#fff)}}
:root[data-theme="dark"] .g-surf .sf-msg{color:color-mix(in srgb,var(--wc) 45%,#fff)}

/* Kite Dakhla */
.g-kite .ask,.g-kite .fact{background:color-mix(in srgb,var(--wc) var(--tintmix),var(--surface))}
.g-kite .kt-stage{background:#2f8be0;touch-action:none}
.g-kite .kt-photo{border-color:#fff;box-shadow:0 8px 24px rgba(10,16,48,.22)}
.g-kite .kt-go{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:1.6rem;padding:14px 38px;background:#ff4f8b;color:#fff;box-shadow:0 5px 0 #a8255a;line-height:1.2}
.g-kite .kt-go:active{transform:translate(-50%,calc(-50% + 3px));box-shadow:0 2px 0 #a8255a}
.g-kite .kt-top{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;justify-content:center;max-width:720px;width:100%;margin-inline:auto}
.g-kite .kt-place{font-weight:700;color:var(--muted)}
.g-kite .kt-place b{color:var(--ink)}
.g-kite .kt-msg{text-align:center;font-weight:800;font-size:1.1rem;line-height:1.3;min-height:2.6em;color:var(--wc);margin:0;max-width:720px;margin-inline:auto;display:flex;align-items:center;justify-content:center}
.g-kite .kt-ctl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:720px;width:100%;margin-inline:auto}
.g-kite .kt-ctl.noact{grid-template-columns:repeat(3,minmax(0,1fr))}
.g-kite .kt-ctl.one{grid-template-columns:minmax(0,1fr)}
.g-kite .kt-btn{border:3px solid #1a2042;border-radius:22px;min-height:84px;font-weight:800;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:6px 4px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;box-shadow:0 6px 0 #1a2042;transition:transform .08s,box-shadow .08s,background .15s;line-height:1.1;min-width:0}
.g-kite .kt-btn svg{width:30px;height:30px;flex:none}
.g-kite .kt-btn b{font-size:1.08rem;letter-spacing:.03em}
.g-kite .kt-btn small{font-size:.76rem;font-weight:700;opacity:.92}
.g-kite .kt-btn.on,.g-kite .kt-btn:active{transform:translateY(5px);box-shadow:0 1px 0 #1a2042}
.g-kite .kt-ku{background:#2fa3d6}
.g-kite .kt-kd{background:#e2540f}
.g-kite .kt-ku.on{background:#4fc0f0}
.g-kite .kt-kd.on{background:#ff7a3a}
.g-kite .kt-edge{background:#0a7d46}
.g-kite .kt-edge.on{background:#18a862}
.g-kite .kt-act{background:#ff4f8b}
.g-kite .kt-ctl.one .kt-act{min-height:96px}
.g-kite .kt-ctl.one .kt-act b{font-size:1.6rem}
.g-kite .kt-act.lit{background:#ffc640;color:#1a2042;outline:5px solid #fff3b0;outline-offset:2px;animation:kt-lit .4s ease-in-out infinite alternate}
.g-kite .kt-act.dim{opacity:.7}
.g-kite .kt-act.hit{animation:kt-hit .18s ease-out}
@keyframes kt-lit{to{transform:scale(1.04)}}
@keyframes kt-hit{from{transform:translateY(5px) scale(.97)}}
.g-kite .kt-keys{margin:0}
.g-kite .kt-post{max-width:720px;width:100%;margin-inline:auto;border-radius:18px;overflow:hidden;border:4px solid #fff;box-shadow:0 10px 30px rgba(10,16,48,.28);line-height:0}
.g-kite .kt-post.card{transform:rotate(-1.2deg)}
.g-kite .kt-post svg{display:block;width:100%;height:auto}
.g-kite .kt-intro{display:grid;grid-template-columns:minmax(0,190px) minmax(0,1fr);gap:12px;max-width:720px;width:100%;margin-inline:auto;align-items:center}
.g-kite .kt-map{border-radius:16px;overflow:hidden;border:2px solid var(--line);line-height:0;background:var(--sea)}
.g-kite .kt-facts ul{margin:0;padding-inline-start:1.1em;display:flex;flex-direction:column;gap:6px}
.g-kite .kt-facts li{line-height:1.4;font-weight:600}
.g-kite .kt-safe{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center;max-width:720px;width:100%;margin-inline:auto}
.g-kite .kt-sico svg{width:44px;height:44px;display:block}
.g-kite .kt-safe p{font-weight:600;line-height:1.4}
.g-kite .kt-fc{display:flex;flex-direction:column;gap:8px;max-width:720px;width:100%;margin-inline:auto}
.g-kite .kt-fct{font-size:1.1rem}
.g-kite .kt-fcrow{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:10px}
.g-kite .kt-fci{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;background:var(--surface-2);border-radius:14px;padding:8px;font-weight:800}
.g-kite .kt-fci svg{width:60px;height:40px}
.g-kite .kt-fci b{font-size:1.15rem}
.g-kite .kt-fci small{color:var(--muted);font-weight:700}
.g-kite .kt-fci.kt-mini{justify-content:center;color:var(--wc);font-size:1.05rem}
.g-kite .kt-scale{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.g-kite .kt-scale span{background:var(--surface-2);border-radius:10px;padding:4px 6px;text-align:center;font-size:.85rem;font-weight:600;color:var(--muted);line-height:1.2}
.g-kite .kt-scale b{display:block;color:var(--ink)}
.g-kite .kt-kites{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:720px;width:100%;margin-inline:auto}
.g-kite .kt-kites.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.g-kite .kt-kc{justify-content:flex-start}
.g-kite .kt-kc .cart svg{max-height:84px}
.g-kite .kt-kc b{font-size:1.2rem}
.g-kite .kt-kc small{font-size:.82rem}
.g-kite .kt-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;max-width:680px;width:100%;margin-inline:auto}
.g-kite .kt-tiles.n4{grid-template-columns:repeat(4,minmax(0,1fr))}
.g-kite .kt-tiles.n3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g-kite .kt-tiles div{display:flex;flex-direction:column;align-items:center;background:var(--surface-2);border-radius:14px;padding:8px;text-align:center}
.g-kite .kt-tiles b{font-size:1.45rem;line-height:1.1;font-variant-numeric:tabular-nums}
.g-kite .kt-tiles small{color:var(--muted);font-weight:700}
.g-kite .kt-trk{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;max-width:680px;margin-inline:auto}
.g-kite .kt-trk .pill.off{background:var(--surface-2);color:var(--muted)}
.g-kite .kt-heat{max-width:680px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:6px}
.g-kite .kt-heat table{width:100%;border-collapse:separate;border-spacing:0 4px}
.g-kite .kt-heat td{padding:5px 8px;background:var(--surface-2);font-variant-numeric:tabular-nums}
.g-kite .kt-heat td:first-child{border-radius:10px 0 0 10px;font-weight:800;width:2em;text-align:center}
.g-kite .kt-heat td:last-child{border-radius:0 10px 10px 0;text-align:end}
.g-kite .kt-heat td i{display:inline-block;width:12px;height:12px;border-radius:50%;margin-inline-end:6px;border:2px solid #1a2042;vertical-align:-1px}
.g-kite .kt-heat tr.me td{background:var(--good-soft);font-weight:800}
.g-kite .kt-sum{max-width:680px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:6px;text-align:center;align-items:center}
.g-kite .kt-sum .kicker{font-weight:800;color:var(--wc);letter-spacing:.04em}
.g-kite .kt-sum p{font-size:1.06rem;font-weight:600}
@media (max-width:640px){
  .g-kite .kt-ctl{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"ku edge" "kd act"}
  .g-kite .kt-ctl.noact{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"ku edge" "kd edge"}
  .g-kite .kt-ku{grid-area:ku}.g-kite .kt-kd{grid-area:kd}.g-kite .kt-edge{grid-area:edge}.g-kite .kt-ctl:not(.one) .kt-act{grid-area:act}
  .g-kite .kt-btn{min-height:74px;border-radius:20px}
  .g-kite .kt-msg{font-size:1rem}
  .g-kite .kt-intro{grid-template-columns:minmax(0,130px) minmax(0,1fr);gap:8px}
  .g-kite .kt-facts{padding:12px}
  .g-kite .kt-facts li{font-size:.92rem}
  .g-kite .kt-kites.four{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-kite .kt-scale{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-kite .kt-fcrow{grid-template-columns:minmax(0,1fr)}
  .g-kite .kt-tiles.n4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-kite .kt-tiles b{font-size:1.25rem}
}
.g-kite .kt-wing{transform-box:fill-box;transform-origin:50% 100%;animation:kt-flap .45s ease-in-out infinite alternate}
.g-kite .kt-splash{transform-box:fill-box;transform-origin:50% 50%;animation:kt-spl .65s ease-out forwards}
@keyframes kt-spl{from{opacity:1;transform:scale(.5)}to{opacity:0;transform:scale(1.6)}}
@keyframes kt-flap{to{transform:scaleY(-.55)}}
@media (prefers-reduced-motion: reduce){.g-kite .kt-act.lit,.g-kite .kt-act.hit,.g-kite .kt-wing{animation:none}.g-kite .kt-post.card{transform:none}}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .g-kite .kt-msg{color:color-mix(in srgb,var(--wc) 45%,#fff)}:root:not([data-theme="light"]) .g-kite .kt-fci.kt-mini{color:color-mix(in srgb,var(--wc) 45%,#fff)}}
:root[data-theme="dark"] .g-kite .kt-msg,:root[data-theme="dark"] .g-kite .kt-fci.kt-mini{color:color-mix(in srgb,var(--wc) 45%,#fff)}

/* Desert Caravan */
.g-caravan .cv-hud{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;max-width:720px;width:100%;margin-inline:auto}
.g-caravan .cv-hud .chip{background:var(--ws);color:var(--ink)}
.g-caravan .cv-st{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:4px 10px;min-height:40px}
.g-caravan .cv-st b{font-size:1.08rem;font-variant-numeric:tabular-nums}
.g-caravan .cv-st small{color:var(--muted);font-weight:700;font-size:.78rem;line-height:1.1}
.g-caravan .cv-ico svg{width:22px;height:22px;display:block}
.g-caravan .cv-ico.wide svg{width:34px;height:22px}
.g-caravan .cv-bags{display:inline-flex;gap:1px}
.g-caravan .cv-bag svg{width:18px;height:18px;display:block}
.g-caravan .cv-bag.big svg{width:34px;height:34px}
.g-caravan .cv-bar{display:inline-block;width:54px;height:10px;border-radius:6px;background:var(--surface-2);overflow:hidden;border:1.5px solid var(--line)}
.g-caravan .cv-bar i{display:block;height:100%;background:#2fb57a;border-radius:6px}
.g-caravan .cv-bar i.low{background:#e5584d}
.g-caravan .cv-play{display:flex;flex-direction:column;gap:12px;width:100%;max-width:720px;margin-inline:auto}
.g-caravan .cv-stage{max-width:none;background:#e8b878}
.g-caravan .cv-stage > svg{display:block;width:100%;height:auto}
.g-caravan .cv-pano{border-bottom:3px solid var(--wc)}
.g-caravan .cv-map.night{background:#0b1030}
.g-caravan .cv-hit{cursor:pointer}
.g-caravan .cv-side{display:flex;flex-direction:column;gap:10px;min-width:0}
.g-caravan .cv-ctl{display:flex;flex-direction:column;align-items:center;gap:8px}
.g-caravan .cv-pad{display:grid;grid-template-columns:repeat(3,64px);grid-template-rows:repeat(3,58px);gap:6px}
.g-caravan .cv-dir,.g-caravan .cv-rest{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border:3px solid var(--line);background:var(--surface);border-radius:16px;color:var(--ink);font-weight:800;padding:2px;min-width:0}
.g-caravan .cv-dir svg{width:26px;height:26px;display:block}
.g-caravan .cv-dir small{font-size:.72rem;color:var(--muted);line-height:1}
.g-caravan .cv-dir:hover:not(:disabled),.g-caravan .cv-rest:hover:not(:disabled){border-color:var(--wc)}
.g-caravan .cv-dir:disabled{opacity:.35}
.g-caravan .cv-dir.on{border-color:#e9a312;background:#fff3c4;color:#1a2042;box-shadow:0 0 0 4px rgba(255,198,64,.45);animation:cvPulse 1.2s ease-in-out infinite}
.g-caravan .cv-dir.on small{color:#5b4a1a}
@keyframes cvPulse{50%{box-shadow:0 0 0 8px rgba(255,198,64,.15)}}
.g-caravan .cv-rest b{font-size:.95rem}
.g-caravan .cv-rest small{font-size:.7rem;color:var(--muted)}
.g-caravan .cv-padc{display:grid;place-items:center}
.g-caravan .cv-padc svg{width:52px;height:34px}
.g-caravan .cv-pad.rel .cv-dir{border-color:#5a5fa8}
.g-caravan .cv-turn{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-caravan .cv-turn .btn{min-height:44px}
.g-caravan .cv-msg{text-align:center;font-weight:700;color:var(--ink);min-height:1.4em;line-height:1.35}
.g-caravan .cv-ev{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;align-items:center;border:3px solid #e9a312;background:var(--surface)}
.g-caravan .cv-ev.storm{border-color:#c96a2a}
.g-caravan .cv-ev.night{border-color:#5a5fa8}
.g-caravan .cv-evart svg{display:block;width:110px;height:auto;border-radius:12px}
.g-caravan .cv-evtxt{display:flex;flex-direction:column;gap:8px;min-width:0}
.g-caravan .cv-evtxt p{font-weight:600;line-height:1.4}
.g-caravan .cv-evbtns{gap:8px;justify-content:flex-start}
.g-caravan .cv-bust{width:110px;height:110px;border-radius:50%;background:#dbe9fb;overflow:hidden}
.g-caravan .cv-bust svg{width:100%;height:100%;display:block}
.g-caravan .cv-best{display:flex;justify-content:center}
.g-caravan .cv-planart{max-width:720px}
.g-caravan .cv-camels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:720px;width:100%;margin-inline:auto}
.g-caravan .cv-cam{display:flex;flex-direction:column;align-items:center;gap:2px;border:3px solid var(--line);background:var(--surface);border-radius:16px;padding:8px 4px;color:var(--ink);min-width:0}
.g-caravan .cv-cam.on{border-color:var(--wc);background:var(--ws)}
.g-caravan .cv-cam b{font-size:1rem}
.g-caravan .cv-cam small{color:var(--muted);font-weight:700}
.g-caravan .cv-camart svg{width:86px;height:58px;display:block}
.g-caravan .cv-stat{display:flex;gap:1px;align-items:center;font-size:.8rem;color:#e9a312;letter-spacing:-1px}
.g-caravan .cv-stat i{font-style:normal;color:var(--muted);letter-spacing:0;font-weight:700;margin-inline-end:4px;font-size:.72rem;width:50px;text-align:end}
.g-caravan .cv-stat em{font-style:normal;color:var(--line)}
.g-caravan .cv-water{max-width:720px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:8px}
.g-caravan .cv-wrow{display:flex;align-items:center;justify-content:center;gap:10px}
.g-caravan .cv-wrow .btn{min-width:48px;min-height:48px;font-size:1.4rem;padding:0}
.g-caravan .cv-wbags{display:flex;flex-wrap:wrap;gap:2px;justify-content:center;min-width:0}
.g-caravan .cv-cfact{margin-inline:auto;width:100%}
.g-caravan .cv-camp{max-width:720px}
.g-caravan .cv-rep{max-width:560px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:8px;align-items:center}
.g-caravan .cv-rt{width:100%;border-collapse:collapse}
.g-caravan .cv-rt th{text-align:start;font-weight:800;padding:6px 4px;border-bottom:1px solid var(--line)}
.g-caravan .cv-rt td{padding:6px 4px;border-bottom:1px solid var(--line);color:var(--muted);font-weight:600;font-size:.92rem}
.g-caravan .cv-rt td:last-child{text-align:end;color:var(--ink)}
.g-caravan .cv-tot{display:flex;align-items:baseline;gap:8px;font-weight:800}
.g-caravan .cv-tot b{font-size:2rem}
.g-caravan .cv-title .stars{font-size:1.6rem}
.g-caravan .cv-finds{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.g-caravan .cv-find{display:flex;flex-direction:column;align-items:center;background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:6px 8px}
.g-caravan .cv-find svg{width:58px;height:50px}
.g-caravan .cv-find small{font-weight:700;font-size:.78rem}
.g-caravan .cv-colc{text-align:center}
.g-caravan .cv-post{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:0;max-width:760px;width:100%;margin-inline:auto;background:#fffaf0;color:#1a2042;border-radius:18px;border:2px solid #e2cfa6;box-shadow:0 10px 30px rgba(26,32,66,.18);overflow:hidden;transform:rotate(-1deg)}
.g-caravan .cv-pimg{position:relative;line-height:0}
.g-caravan .cv-pimg > svg{display:block;width:100%;height:100%;min-height:200px}
.g-caravan .cv-pstamp{position:absolute;top:8px;inset-inline-end:8px;transform:rotate(8deg)}
.g-caravan .cv-ptxt2{padding:16px 18px;display:flex;flex-direction:column;gap:6px;border-inline-start:2px dashed #e2cfa6}
.g-caravan .cv-ptxt2 h2{font-size:2rem;font-weight:800;color:#c1531d;line-height:1}
.g-caravan .cv-ptxt2 .kicker{font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#1d63b8;font-size:.8rem}
.g-caravan .cv-ptxt2 .ar{color:#8a5d00;font-size:1.15rem}
.g-caravan .cv-ptxt2 .sub{color:#5b6388}
.g-caravan text.cv-ptxt{font:800 10px var(--font-ui);fill:#fff;letter-spacing:.06em}
.g-caravan text.cv-ntxt{font:800 11px var(--font-ui);fill:#1a2042}
.g-caravan .cv-shs path{fill:#7a2e14}
.g-caravan .cv-tw{animation:cvTw 2.6s ease-in-out infinite}
.g-caravan .cv-tw:nth-of-type(3n){animation-delay:-1.1s}
.g-caravan .cv-tw:nth-of-type(4n){animation-delay:-1.9s}
@keyframes cvTw{50%{opacity:.35}}
.g-caravan .cv-flame{animation:cvFlick .45s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 100%}
@keyframes cvFlick{to{transform:scaleY(1.18) scaleX(.92)}}
.g-caravan .cv-spark{animation:cvSpark 1.6s ease-out infinite}
@keyframes cvSpark{0%{transform:translateY(8px);opacity:0}30%{opacity:1}100%{transform:translateY(-16px);opacity:0}}
.g-caravan .cv-glint{animation:cvGlint 1.4s ease-in-out infinite}
@keyframes cvGlint{50%{opacity:.2}}
.g-caravan .cv-mir{animation:cvMir 1.2s ease-in-out infinite alternate}
@keyframes cvMir{from{opacity:.45}to{opacity:.95}}
.g-caravan .cv-glow{animation:cvGlint 1.8s ease-in-out infinite}
.g-caravan .cv-smoke{animation:cvSmoke 3s ease-in-out infinite alternate}
@keyframes cvSmoke{to{transform:translate(var(--sx,0),0) scale(1.04)}}
.g-caravan .cv-foot{animation:cvGlint 1.2s ease-in-out infinite}
.g-caravan .cv-train.go .cv-legs{animation:cvStep .32s ease-in-out 1}
@keyframes cvStep{50%{transform:translateX(2px) skewX(-8deg)}}
.g-caravan .cv-dust{animation:cvDust 1s ease-in-out infinite alternate}
@keyframes cvDust{from{opacity:.4}to{opacity:.65}}
.g-caravan .cv-gust{animation:cvGust 1.2s linear infinite}
@keyframes cvGust{from{transform:translateX(-10px)}to{transform:translateX(10px)}}
@media (min-width:900px){
  .g-caravan .cv-play{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);max-width:none;align-items:start}
  .g-caravan .cv-hud{max-width:none}
}
@media (max-width:760px){
  .g-caravan .cv-camels{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-caravan .cv-ev{grid-template-columns:80px minmax(0,1fr)}
  .g-caravan .cv-evart svg,.g-caravan .cv-bust{width:80px}
  .g-caravan .cv-bust{height:80px}
  .g-caravan .cv-post{grid-template-columns:minmax(0,1fr);transform:none}
  .g-caravan .cv-ptxt2{border-inline-start:0;border-top:2px dashed #e2cfa6}
  .g-caravan .cv-st{padding:3px 7px}
}
@media (prefers-reduced-motion:reduce){.g-caravan *{animation:none!important}}
.g-caravan text.cv-vtxt{font:800 9px var(--font-ui);fill:#7a3a12}
.g-caravan .cv-dir{position:relative}
.g-caravan .cv-k{display:inline-block;width:10px;height:10px;border-radius:50%;border:1.5px solid #1a2042;flex:none}
.g-caravan .cv-dir .cv-k{position:absolute;top:4px;inset-inline-end:4px}
.g-caravan .cv-k.k0{background:#2fb57a}.g-caravan .cv-k.k1{background:#ffc640}.g-caravan .cv-k.k2{background:#e5584d}.g-caravan .cv-k.k3{background:#8a6a5a}
.g-caravan .cv-key{display:flex;flex-wrap:wrap;gap:4px 10px;justify-content:center;font-size:.8rem;color:var(--muted);font-weight:700}
.g-caravan .cv-key span{display:inline-flex;align-items:center;gap:4px}

/* Ouzoud Falls */
.g-ouzoud .ask,.g-ouzoud .fact{background:color-mix(in srgb,var(--wc) var(--tintmix),var(--surface))}
.g-ouzoud .oz-stage{background:#bfe3f5}
.g-ouzoud .oz-stage.oz-paused svg{filter:saturate(.75) brightness(.92)}
.g-ouzoud .oz-water svg{cursor:crosshair;touch-action:none}
.g-ouzoud .oz-tall{max-width:560px}
.g-ouzoud .oz-fl{animation:oz-flow .7s linear infinite}
@keyframes oz-flow{to{stroke-dashoffset:-28}}
.g-ouzoud .oz-mist{animation:oz-mist 3.2s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:center}
@keyframes oz-mist{from{transform:translateX(-6px) scale(1)}to{transform:translateX(6px) scale(1.06)}}
.g-ouzoud .oz-dbl{filter:drop-shadow(0 0 2px #fff)}
@media (prefers-reduced-motion: reduce){.g-ouzoud .oz-fl,.g-ouzoud .oz-mist{animation:none}}
/* controls */
.g-ouzoud .oz-ctl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:720px;width:100%;margin-inline:auto}
.g-ouzoud .oz-ctl.one{grid-template-columns:minmax(0,1fr);max-width:420px}
.g-ouzoud .oz-ctl.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-ouzoud .oz-btn{border:3px solid #1a2042;border-radius:22px;min-height:84px;background:#1d63b8;color:#fff;font-weight:800;font-size:1.2rem;letter-spacing:.04em;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px;
  touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;box-shadow:0 6px 0 #1a2042;transition:transform .08s,box-shadow .08s}
.g-ouzoud .oz-btn svg{width:34px;height:34px}
.g-ouzoud #oz-j{background:#1f8a63}
.g-ouzoud .oz-btn:active,.g-ouzoud .oz-btn.on{transform:translateY(4px);box-shadow:0 2px 0 #1a2042}
/* intro */
.g-ouzoud .oz-intro{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:12px;max-width:720px;width:100%;margin-inline:auto;align-items:start}
.g-ouzoud .oz-map{max-width:none}
.g-ouzoud .oz-facts{display:flex;flex-direction:column;gap:6px;padding:14px}
.g-ouzoud .oz-facts p{line-height:1.35}
.g-ouzoud .oz-parts{margin:4px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.g-ouzoud .oz-parts li{display:flex;align-items:center;gap:6px;background:var(--surface-2);border-radius:12px;padding:4px 8px;font-weight:700;font-size:.95rem;line-height:1.15}
.g-ouzoud .oz-parts li > svg{width:34px;height:34px;flex:none}
/* macaque encounter */
.g-ouzoud .oz-meet{display:flex;flex-direction:column;gap:10px;max-width:720px;width:100%;margin-inline:auto;padding:14px;border-color:var(--wc)}
.g-ouzoud .oz-meetq{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:center}
.g-ouzoud .oz-meetq > svg{width:72px;height:56px}
.g-ouzoud .oz-meetq p{font-size:1.15rem;line-height:1.35}
.g-ouzoud .oz-meet .fb{max-width:none}
/* photo */
.g-ouzoud .oz-photo{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px;max-width:900px;width:100%;margin-inline:auto;align-items:start}
.g-ouzoud .oz-photo .stage{max-width:none}
.g-ouzoud .oz-side{display:flex;flex-direction:column;gap:8px;padding:10px}
.g-ouzoud .oz-map2{max-width:340px;width:100%;margin-inline:auto}
.g-ouzoud .oz-map2 svg{display:block;width:100%;height:auto}
.g-ouzoud .oz-spot{cursor:pointer}
.g-ouzoud .oz-spot:focus{outline:none}.g-ouzoud .oz-spot:focus-visible circle:nth-child(2){stroke:#2f6fd6;stroke-width:3}
.g-ouzoud .oz-spotn{text-align:center;line-height:1.3}
.g-ouzoud .oz-time{display:flex;flex-direction:column;gap:4px;text-align:center;line-height:1.3}
.g-ouzoud .oz-time small{color:var(--muted);font-weight:700}
.g-ouzoud .oz-trow{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:6px;align-items:center}
.g-ouzoud .oz-trow .btn{min-height:44px;padding:0;font-size:1.4rem}
.g-ouzoud .oz-trow input{width:100%;accent-color:#1d63b8;height:30px}
.g-ouzoud .oz-shots{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;max-width:720px;width:100%;margin-inline:auto}
.g-ouzoud .oz-shots figure{margin:0;width:120px;border:3px solid #fff;border-radius:6px;box-shadow:0 3px 10px rgba(10,16,48,.25);background:#fff;line-height:0;position:relative;transform:rotate(-2deg)}
.g-ouzoud .oz-shots figure:nth-child(2){transform:rotate(2deg)}
.g-ouzoud .oz-shots figure.best{border-color:#ffc640}
.g-ouzoud .oz-shots svg{width:100%;height:auto;display:block}
.g-ouzoud .oz-shots figcaption{position:absolute;bottom:4px;right:4px;background:#1a2042;color:#fff;border-radius:999px;padding:0 8px;font-weight:800;font-size:.85rem;line-height:1.5}
.g-ouzoud .oz-snap svg{width:30px;height:30px}
/* end of a part */
.g-ouzoud .oz-end{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:center;max-width:820px;width:100%;margin-inline:auto;padding:14px}
.g-ouzoud .oz-endart{margin:0}
.g-ouzoud .oz-endtxt{display:flex;flex-direction:column;gap:10px}
.g-ouzoud .oz-endtxt .stars{font-size:1.2rem;vertical-align:-.15em}
.g-ouzoud .oz-endtxt .row{gap:6px}
.g-ouzoud .oz-bestr{text-align:center;margin:0}
/* postcard */
.g-ouzoud .oz-card{max-width:640px;width:100%;margin-inline:auto;transform:rotate(-1.2deg);filter:drop-shadow(0 8px 16px rgba(10,16,48,.25))}
.g-ouzoud .oz-card svg{display:block;width:100%;height:auto}
.g-ouzoud .oz-sum{max-width:420px;width:100%;margin-inline:auto;display:flex;flex-direction:column;align-items:center;gap:8px}
.g-ouzoud .oz-tb{width:100%;border-collapse:collapse}
.g-ouzoud .oz-tb th{text-align:start;font-weight:700;padding:5px 4px;border-bottom:1px solid var(--line)}
.g-ouzoud .oz-tb td{text-align:end;font-weight:800;font-variant-numeric:tabular-nums;padding:5px 4px;border-bottom:1px solid var(--line)}
.g-ouzoud .oz-tb small{color:var(--muted);font-weight:600}
.g-ouzoud .oz-tb tr.tot th,.g-ouzoud .oz-tb tr.tot td{font-size:1.15rem;border-bottom:0;color:var(--wc)}
.g-ouzoud .oz-sum .stars{font-size:1.8rem}
@media (max-width:640px){
  .g-ouzoud .oz-intro,.g-ouzoud .oz-photo,.g-ouzoud .oz-end{grid-template-columns:minmax(0,1fr)}
  .g-ouzoud .oz-intro .oz-map{max-width:300px;margin-inline:auto}
  .g-ouzoud .oz-btn{min-height:74px;font-size:1.05rem}
  .g-ouzoud .oz-shots figure{width:96px}
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .g-ouzoud .oz-tb tr.tot td,:root:not([data-theme="light"]) .g-ouzoud .oz-tb tr.tot th{color:color-mix(in srgb,var(--wc) 55%,#fff)}}
:root[data-theme="dark"] .g-ouzoud .oz-tb tr.tot td,:root[data-theme="dark"] .g-ouzoud .oz-tb tr.tot th{color:color-mix(in srgb,var(--wc) 55%,#fff)}
.g-ouzoud .fb{background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:10px 14px;width:100%;margin-inline:auto}
.g-ouzoud .fb.good{border-color:var(--good);background:var(--good-soft)}
.g-ouzoud .fb.bad{border-color:color-mix(in srgb,var(--bad) 55%,var(--line));background:var(--bad-soft)}

/* Road of a Thousand Kasbahs */
.g-kasbahs .ask,.g-kasbahs .fact{background:color-mix(in srgb,var(--wc) var(--tintmix),var(--surface))}
.g-kasbahs .kb-stage{background:#ffd9a8}
.g-kasbahs .kb-stage svg{touch-action:none}
/* intro */
.g-kasbahs .kb-intro{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:12px;max-width:720px;width:100%;margin-inline:auto;align-items:start}
.g-kasbahs .kb-map{max-width:none}
.g-kasbahs .kb-facts{display:flex;flex-direction:column;gap:8px;padding:14px}
.g-kasbahs .kb-route{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:0;counter-reset:st}
.g-kasbahs .kb-route li{position:relative;padding:3px 0 3px 26px;line-height:1.3}
.g-kasbahs .kb-route li::before{content:"";position:absolute;left:6px;top:9px;width:11px;height:11px;border-radius:50%;background:#c1272d;border:2px solid var(--surface);box-shadow:0 0 0 2px #c1272d}
.g-kasbahs .kb-route li:not(:last-child)::after{content:"";position:absolute;left:11px;top:20px;bottom:-6px;width:3px;background:#e9b6a0}
/* controls */
.g-kasbahs .kb-ctl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:720px;width:100%;margin-inline:auto;align-items:stretch}
.g-kasbahs .kb-ctl.one{grid-template-columns:minmax(0,1fr);max-width:420px}
.g-kasbahs .kb-ctl.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-kasbahs .kb-pedal{border:3px solid #1a2042;border-radius:22px;min-height:84px;color:#fff;font-weight:800;font-size:1.15rem;letter-spacing:.03em;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px;line-height:1.15;
  touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;box-shadow:0 6px 0 #1a2042;transition:transform .08s,box-shadow .08s}
.g-kasbahs .kb-pedal svg{width:32px;height:32px}
.g-kasbahs .kb-pedal.gas{background:#1f8a63}
.g-kasbahs .kb-pedal.brake{background:#c1272d}
.g-kasbahs .kb-pedal.stop,.g-kasbahs .kb-pedal.snap{background:#1b4f9c}
.g-kasbahs .kb-pedal.stop.near:not(:disabled){animation:kb-glow .7s ease-in-out infinite alternate;background:#2f6fd6}
@keyframes kb-glow{from{box-shadow:0 6px 0 #1a2042,0 0 0 0 rgba(255,198,64,.0)}to{box-shadow:0 6px 0 #1a2042,0 0 0 6px rgba(255,198,64,.75)}}
.g-kasbahs .kb-pedal:active,.g-kasbahs .kb-pedal.on{transform:translateY(4px);box-shadow:0 2px 0 #1a2042}
.g-kasbahs .kb-pedal:disabled{opacity:.6;animation:none}
.g-kasbahs .kb-auto{text-align:center;font-weight:800;color:var(--wc);margin:0;align-self:center}
@media (prefers-reduced-motion: reduce){.g-kasbahs .kb-pedal.stop{animation:none}}
/* plan */
.g-kasbahs .kb-plan{max-width:720px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:10px;padding:14px}
.g-kasbahs .kb-start{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.g-kasbahs .kb-trow{display:flex;align-items:center;gap:8px}
.g-kasbahs .kb-trow .btn{min-width:44px;min-height:44px;padding:0;font-size:1.4rem}
.g-kasbahs .kb-big{font-size:1.6rem;font-weight:800;font-variant-numeric:tabular-nums;min-width:70px;text-align:center}
.g-kasbahs .kb-plist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.g-kasbahs .kb-pr{background:var(--surface-2);border-radius:14px;padding:8px 10px;display:flex;flex-direction:column;gap:4px}
.g-kasbahs .kb-prh{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}
.g-kasbahs .kb-t{margin-inline-start:auto;font-weight:800;font-variant-numeric:tabular-nums}
.g-kasbahs .kb-opts{display:flex;flex-wrap:wrap;gap:6px}
.g-kasbahs .kb-opt{border:2px solid var(--line);background:var(--surface);border-radius:999px;padding:6px 12px;font-weight:700;font-size:.92rem;min-height:40px;color:var(--ink)}
.g-kasbahs .kb-opt small{color:var(--muted);font-weight:600}
.g-kasbahs .kb-opt[aria-pressed="true"]{border-color:var(--wc);background:color-mix(in srgb,var(--wc) 18%,var(--surface))}
.g-kasbahs .kb-opt[aria-pressed="true"]::before{content:"✓ ";color:var(--good)}
.g-kasbahs .kb-opt:disabled{opacity:.45}
.g-kasbahs .kb-sum{display:flex;flex-direction:column;gap:2px;border-radius:14px;padding:10px 12px;border:3px solid var(--line);text-align:center}
.g-kasbahs .kb-sum.ok{border-color:var(--good);background:var(--good-soft)}
.g-kasbahs .kb-sum.bad{border-color:var(--bad);background:var(--bad-soft)}
.g-kasbahs .kb-warn{color:var(--bad);font-weight:800;text-align:center;margin:0;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.g-kasbahs .kb-bad{color:var(--bad)}
.g-kasbahs .kb-ok{color:var(--good);font-weight:800;text-align:center;margin:0}
/* arrival */
.g-kasbahs .kb-arr{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:14px;align-items:center;max-width:820px;width:100%;margin-inline:auto;padding:14px}
.g-kasbahs .kb-art{margin:0}
.g-kasbahs .kb-arrtxt{display:flex;flex-direction:column;gap:10px}
.g-kasbahs .kb-fact{font-size:1.12rem;line-height:1.45;font-weight:600}
.g-kasbahs .kb-light{text-align:center;margin:0}
/* photo */
.g-kasbahs .kb-pctl{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:12px;max-width:720px;width:100%;margin-inline:auto;align-items:center}
.g-kasbahs .kb-pad{display:grid;grid-template-columns:repeat(3,48px);grid-template-rows:repeat(2,44px);gap:4px}
.g-kasbahs .kb-mv{padding:0;min-height:44px;font-size:1.1rem;touch-action:none;user-select:none;-webkit-user-select:none}
.g-kasbahs .kb-mv.up{grid-column:2;grid-row:1}.g-kasbahs .kb-mv.left{grid-column:1;grid-row:2}.g-kasbahs .kb-mv.down{grid-column:2;grid-row:2}.g-kasbahs .kb-mv.right{grid-column:3;grid-row:2}
.g-kasbahs .kb-zoom{display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:700;font-size:.85rem;color:var(--muted)}
.g-kasbahs .kb-zoom .btn{min-width:48px;min-height:40px;padding:0;font-size:1.3rem}
.g-kasbahs .kb-pres{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:center;max-width:720px;width:100%;margin-inline:auto}
.g-kasbahs .kb-print{margin:0;background:#fff;padding:8px 8px 4px;border-radius:4px;box-shadow:0 4px 14px rgba(10,16,48,.25);transform:rotate(-2deg);line-height:0}
.g-kasbahs .kb-print svg{width:100%;height:auto;aspect-ratio:4/3;display:block}
.g-kasbahs .kb-print figcaption{line-height:1.3;color:#1a2042;font-weight:700;font-size:.85rem;padding:4px 2px 2px;display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap}
.g-kasbahs .kb-print.gold{box-shadow:0 0 0 4px #ffc640,0 4px 14px rgba(10,16,48,.25)}
.g-kasbahs .kb-ptxt{display:flex;flex-direction:column;gap:6px}
.g-kasbahs .kb-ptxt .stars{font-size:1.3rem;vertical-align:-.15em}
/* roses */
.g-kasbahs .kb-rose{cursor:pointer}
.g-kasbahs .kb-rose:focus{outline:none}.g-kasbahs .kb-rose:focus-visible circle:first-child{stroke:#2f6fd6;stroke-width:3;stroke-opacity:1}
/* the wall */
.g-kasbahs .kb-wall{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;max-width:900px;width:100%;margin-inline:auto;align-items:start}
.g-kasbahs .kb-wall .stage{max-width:none}
.g-kasbahs .kb-steps{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}
.g-kasbahs .kb-step{font-size:.95rem;min-height:110px;justify-content:center}
.g-kasbahs .kb-step svg{width:52px;height:46px}
.g-kasbahs .kb-step small{font-size:.8rem}
.g-kasbahs .kb-calc{max-width:720px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:8px}
/* the end */
.g-kasbahs .kb-end,.g-kasbahs .kb-album{max-width:820px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:12px;align-items:center}
.g-kasbahs .kb-prints{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;width:100%}
.g-kasbahs .kb-prints .kb-print:nth-child(2n){transform:rotate(1.6deg)}
.g-kasbahs .kb-tb{width:100%;max-width:420px;border-collapse:collapse}
.g-kasbahs .kb-tb th{text-align:start;font-weight:700;padding:5px 4px;border-bottom:1px solid var(--line)}
.g-kasbahs .kb-tb td{text-align:end;font-weight:800;font-variant-numeric:tabular-nums;padding:5px 4px;border-bottom:1px solid var(--line)}
.g-kasbahs .kb-tb small{color:var(--muted);font-weight:600}
.g-kasbahs .kb-tb tr.tot th,.g-kasbahs .kb-tb tr.tot td{font-size:1.15rem;border-bottom:0}
.g-kasbahs .kb-end > p .stars{font-size:1.8rem}
.g-kasbahs .kb-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
.g-kasbahs .kb-card{margin:0;border-radius:10px;overflow:hidden;border:3px solid var(--line);background:var(--surface);line-height:0}
.g-kasbahs .kb-card svg{width:100%;height:auto;aspect-ratio:4/3;display:block}
.g-kasbahs .kb-card figcaption{line-height:1.25;font-weight:700;font-size:.82rem;padding:5px 6px;display:flex;flex-direction:column;gap:2px}
.g-kasbahs .kb-card.gold{border-color:#ffc640}
.g-kasbahs .kb-card.off{opacity:.7}
@media (max-width:640px){
  .g-kasbahs .kb-intro,.g-kasbahs .kb-arr,.g-kasbahs .kb-pres,.g-kasbahs .kb-wall{grid-template-columns:minmax(0,1fr)}
  .g-kasbahs .kb-intro .kb-map{max-width:300px;margin-inline:auto}
  .g-kasbahs .kb-pedal{min-height:74px;font-size:1rem}
  .g-kasbahs .kb-pctl{grid-template-columns:auto auto;}
  .g-kasbahs .kb-pctl .kb-pedal{grid-column:1 / -1}
  .g-kasbahs .kb-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-kasbahs .kb-prints{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.g-kasbahs .fb{background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:10px 14px;width:100%;margin-inline:auto}
.g-kasbahs .fb.good{border-color:var(--good);background:var(--good-soft)}
.g-kasbahs .fb.bad{border-color:color-mix(in srgb,var(--bad) 55%,var(--line));background:var(--bad-soft)}

/* Toubkal Climb */
.g-toubkal .ask,.g-toubkal .fact{background:color-mix(in srgb,var(--wc) var(--tintmix),var(--surface))}
.g-toubkal .tk-stage{background:#cfeaff}
.g-toubkal .tk-lbl{font:800 8.5px var(--font-ui);fill:#fff;stroke:#1a2042;stroke-width:2.2px;paint-order:stroke}
.g-toubkal .tk-cl{font:700 9px var(--font-ui);fill:#7a5a36}.g-toubkal .tk-cl.b{font-weight:800;fill:#1a2042}.g-toubkal .tk-cl.h{stroke:#f4ecd8;stroke-width:3px;paint-order:stroke}
.g-toubkal .tk-intro{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:12px;max-width:720px;width:100%;margin-inline:auto;align-items:start}
.g-toubkal .tk-map{max-width:none}
.g-toubkal .tk-facts{display:flex;flex-direction:column;gap:8px;padding:14px}
.g-toubkal .tk-alts{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2px}
.g-toubkal .tk-alts li{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;padding:3px 0;border-bottom:1px dashed var(--line);line-height:1.3}
.g-toubkal .tk-alt{margin-inline-start:auto;font-weight:800;font-variant-numeric:tabular-nums;color:var(--wc)}
.g-toubkal .tk-row1{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:12px;max-width:900px;width:100%;margin-inline:auto;align-items:start}
.g-toubkal .tk-row1 .stage{max-width:none}
.g-toubkal .tk-side{display:flex;flex-direction:column;gap:8px;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:10px}
.g-toubkal .tk-m{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;align-items:center}
.g-toubkal .tk-m small{font-weight:700;color:var(--muted);font-size:.82rem}
.g-toubkal .tk-m b{font-variant-numeric:tabular-nums;font-size:.95rem;text-align:end}
.g-toubkal .tk-bar{grid-column:1 / -1;height:10px;border-radius:5px;background:var(--surface-2);overflow:hidden}
.g-toubkal .tk-bar i{display:block;height:100%;border-radius:5px;background:#1f8a63;transition:width .3s}
.g-toubkal .tk-m.water .tk-bar i{background:#2f8fe0}.g-toubkal .tk-m.alt .tk-bar i{background:#8c6d55}
.g-toubkal .tk-m.low .tk-bar i{background:#e5483f}.g-toubkal .tk-m.low b{color:var(--bad)}
.g-toubkal .tk-sick{margin:0;font-weight:800;color:var(--bad);text-align:center}
.g-toubkal .tk-msg{text-align:center;font-weight:800;color:var(--wc);margin:0}
.g-toubkal .tk-prep,.g-toubkal .tk-day{display:flex;flex-direction:column;gap:10px;padding:14px}
.g-toubkal .tk-ev{max-width:720px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:10px;padding:14px;border-color:var(--wc)}
.g-toubkal .tk-ev.bad{border-color:var(--bad)}
.g-toubkal .tk-ev .fb{max-width:none}
.g-toubkal .tk-ctl{max-width:900px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:10px;padding:12px}
.g-toubkal .tk-pace{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;background:var(--surface-2);padding:5px;border-radius:16px}
.g-toubkal .tk-pace button{border:0;border-radius:12px;background:transparent;font-weight:800;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;color:var(--muted)}
.g-toubkal .tk-pace button svg{width:40px;height:24px}
.g-toubkal .tk-pace button[aria-pressed="true"]{background:var(--wc);color:#fff}
.g-toubkal .tk-lay{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.g-toubkal .tk-lay button{border:2px solid var(--line);background:var(--surface);border-radius:14px;padding:6px 4px;min-height:56px;display:flex;align-items:center;justify-content:center;gap:4px;font-weight:700;font-size:.9rem;color:var(--ink);line-height:1.1}
.g-toubkal .tk-lay button span{display:flex;flex-direction:column;align-items:flex-start}
.g-toubkal .tk-lay button small{color:var(--muted);font-weight:700;font-size:.75rem}
.g-toubkal .tk-lay button svg{width:30px;height:30px;flex:none;opacity:.45}
.g-toubkal .tk-lay button[aria-pressed="true"]{border-color:var(--wc);background:color-mix(in srgb,var(--wc) 16%,var(--surface))}
.g-toubkal .tk-lay button[aria-pressed="true"] svg{opacity:1}
.g-toubkal .tk-act{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.g-toubkal .tk-act .btn{padding:10px 6px;font-size:.98rem;min-height:48px}
.g-toubkal .tk-warn{color:var(--bad);font-weight:800;margin:0}
.g-toubkal .tk-ok{color:var(--good);font-weight:800;margin:0}
.g-toubkal .tk-alarm{max-width:720px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:10px;padding:14px}
.g-toubkal .tk-opts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.g-toubkal .tk-opts .btn{font-variant-numeric:tabular-nums;font-size:1.15rem}
.g-toubkal .tk-plan{max-width:820px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:10px;padding:14px}
.g-toubkal .tk-wxrow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.g-toubkal .tk-wx{border:3px solid var(--line);background:var(--surface);border-radius:16px;padding:8px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:.88rem;line-height:1.25;color:var(--ink);text-align:center}
.g-toubkal .tk-wx svg{width:56px;height:42px}
.g-toubkal .tk-wx.on{border-color:var(--wc);background:color-mix(in srgb,var(--wc) 14%,var(--surface))}
.g-toubkal .tk-cmap{max-width:560px;width:100%;margin-inline:auto;line-height:0;border-radius:12px;overflow:hidden;border:2px solid var(--line)}
.g-toubkal .tk-cmap svg{width:100%;height:auto;display:block}
.g-toubkal .tk-path{cursor:pointer}
.g-toubkal .tk-path:focus{outline:none}.g-toubkal .tk-path:focus-visible path:nth-child(2){stroke:#ffc640}
.g-toubkal .tk-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.g-toubkal .tk-pb{border:3px solid var(--line);background:var(--surface);border-radius:14px;padding:8px;display:flex;flex-direction:column;gap:2px;text-align:start;color:var(--ink);line-height:1.25;font-size:.9rem}
.g-toubkal .tk-pb small{color:var(--muted);font-weight:600}
.g-toubkal .tk-pb.on{border-color:var(--wc);background:color-mix(in srgb,var(--wc) 14%,var(--surface))}
.g-toubkal .tk-calc{display:flex;flex-direction:column;gap:8px}
.g-toubkal .tk-rule{background:var(--surface-2);border-radius:12px;padding:8px 10px;font-weight:600;margin:0}
.g-toubkal .tk-start{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px}
.g-toubkal .tk-trow{display:flex;align-items:center;gap:8px}
.g-toubkal .tk-trow .btn{min-width:44px;min-height:44px;padding:0;font-size:1.4rem}
.g-toubkal .tk-big{font-size:1.6rem;font-weight:800;font-variant-numeric:tabular-nums;min-width:70px;text-align:center}
.g-toubkal .tk-card{max-width:640px;width:100%;margin-inline:auto;transform:rotate(-1.2deg);filter:drop-shadow(0 8px 16px rgba(10,16,48,.25))}
.g-toubkal .tk-card svg{display:block;width:100%;height:auto}
.g-toubkal .tk-sum{max-width:420px;width:100%;margin-inline:auto;display:flex;flex-direction:column;align-items:center;gap:8px}
.g-toubkal .tk-tb{width:100%;border-collapse:collapse}
.g-toubkal .tk-tb th{text-align:start;font-weight:700;padding:5px 4px;border-bottom:1px solid var(--line)}
.g-toubkal .tk-tb td{text-align:end;font-weight:800;font-variant-numeric:tabular-nums;padding:5px 4px;border-bottom:1px solid var(--line)}
.g-toubkal .tk-tb small{color:var(--muted);font-weight:600}
.g-toubkal .tk-tb tr.tot th,.g-toubkal .tk-tb tr.tot td{font-size:1.15rem;border-bottom:0}
.g-toubkal .tk-sum .stars{font-size:1.8rem}
@media (max-width:640px){
  .g-toubkal .tk-intro,.g-toubkal .tk-row1{grid-template-columns:minmax(0,1fr)}
  .g-toubkal .tk-intro .tk-map{max-width:300px;margin-inline:auto}
  .g-toubkal .tk-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}
  .g-toubkal .tk-lay{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-toubkal .tk-wxrow,.g-toubkal .tk-paths{grid-template-columns:minmax(0,1fr)}
  .g-toubkal .tk-opts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-toubkal .tk-act .btn{font-size:.88rem}
}
.g-toubkal .fb{background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:10px 14px;width:100%;margin-inline:auto}
.g-toubkal .fb.good{border-color:var(--good);background:var(--good-soft)}
.g-toubkal .fb.bad{border-color:color-mix(in srgb,var(--bad) 55%,var(--line));background:var(--bad-soft)}
.g-toubkal .tk-hud{position:absolute;inset:0;pointer-events:none;line-height:1.15}
.g-toubkal .tk-h{position:absolute;top:8px;background:rgba(26,32,66,.74);color:#fff;border-radius:12px;padding:4px 10px;display:flex;flex-direction:column;align-items:center;font-variant-numeric:tabular-nums}
.g-toubkal .tk-h.l{left:8px}.g-toubkal .tk-h.r{right:8px}
.g-toubkal .tk-h b{font-size:1rem;color:#ffe08a}.g-toubkal .tk-h span{font-size:.78rem;font-weight:700}
.g-toubkal .tk-h.r b{color:#fff}.g-toubkal .tk-h.cold span,.g-toubkal .tk-h.cold b{color:#9fd6ff}.g-toubkal .tk-h.hot span,.g-toubkal .tk-h.hot b{color:#ffc08a}.g-toubkal .tk-h.ok span{color:#bfe8c8}
.g-toubkal .tk-hmsg{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);width:max-content;max-width:88%;background:rgba(26,32,66,.86);color:#fff;font-weight:800;font-size:.9rem;border-radius:12px;padding:5px 12px;text-align:center}
@media (min-width:700px){.g-toubkal .tk-lbl{font-size:6.5px;stroke-width:1.8px}}

/* Majorelle Garden */
.g-majorelle{--tint:color-mix(in srgb,var(--wc) 14%,var(--surface));--mb:#2747c7}
.g-majorelle .ask{background:var(--tint)}
.g-majorelle .mj-hud{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;max-width:620px;width:100%;margin-inline:auto}
.g-majorelle .mj-moves{display:flex;flex-direction:column;align-items:center;justify-content:center;width:66px;height:66px;border-radius:50%;background:var(--mb);color:#fff;border:3px solid #1a2042;box-shadow:0 3px 0 #1a2042;line-height:1}
.g-majorelle .mj-moves b{font-size:1.7rem;font-weight:800}
.g-majorelle .mj-moves small{font-size:.72rem;font-weight:700;opacity:.9}
.g-majorelle .mj-moves.low{background:#c1272d;animation:mjPulse .8s ease-in-out infinite alternate}
@keyframes mjPulse{to{transform:scale(1.07)}}
.g-majorelle .mj-goals{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-majorelle .mj-goal{display:inline-flex;align-items:center;gap:4px;background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:3px 10px 3px 4px;font-variant-numeric:tabular-nums}
.g-majorelle .mj-goal svg{width:34px;height:34px;display:block}
.g-majorelle .mj-goal b{font-size:1.05rem}
.g-majorelle .mj-goal.ok{border-color:var(--good);background:var(--good-soft);color:var(--good);padding-inline-start:10px}
.g-majorelle .mj-score{display:flex;flex-direction:column;align-items:flex-end;line-height:1.1;text-align:end}
.g-majorelle .mj-score b{font-size:1.3rem;font-weight:800;font-variant-numeric:tabular-nums;color:var(--wc)}
.g-majorelle .mj-score small{color:var(--muted);font-size:.8rem;font-weight:700}
.g-majorelle .mj-wrap{max-width:560px;width:100%;margin-inline:auto;padding:8px;border-radius:22px;background:linear-gradient(160deg,#2f56d8,#1b3596);border:3px solid #1a2042;box-shadow:0 6px 0 #14205a}
.g-majorelle .mj-board{position:relative;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:3px;touch-action:none;user-select:none;-webkit-user-select:none;overflow:hidden;border-radius:14px}
.g-majorelle .mj-c{position:relative;aspect-ratio:1;border:0;padding:6%;margin:0;border-radius:10px;background:#f3e6c9;box-shadow:inset 0 -3px 0 rgba(26,32,66,.12);display:block;min-width:0;cursor:pointer;line-height:0}
.g-majorelle .mj-c:nth-child(odd){background:#f7edd5}
.g-majorelle .mj-c svg{width:100%;height:100%;display:block;overflow:visible}
.g-majorelle .mj-c.dust{background:#d4bb92 radial-gradient(circle at 30% 30%,rgba(255,255,255,.35) 0 2px,transparent 3px) 0 0/12px 12px;box-shadow:inset 0 0 0 2px #b89a68}
.g-majorelle .mj-c.path{background:#3b5ee0 radial-gradient(circle at 50% 50%,rgba(255,215,64,.45) 0 3px,transparent 4px) 0 0/50% 50%}
.g-majorelle .mj-c.pond{background:#9fdcf0 linear-gradient(180deg,transparent 60%,rgba(31,127,143,.35))}
.g-majorelle .mj-c:focus{outline:none}
.g-majorelle .mj-c:focus-visible{box-shadow:inset 0 0 0 4px #ffc640}
.g-majorelle .mj-c.sel{background:#fff6c8;box-shadow:inset 0 0 0 4px #ffc640,0 0 12px 2px rgba(255,198,64,.8);z-index:1}
.g-majorelle .mj-c.sel svg{animation:mjBob .6s ease-in-out infinite alternate}
@keyframes mjBob{to{transform:translateY(-6%) scale(1.06)}}
.g-majorelle .mj-c.hint svg{animation:mjWig .5s ease-in-out 4 alternate}
@keyframes mjWig{from{transform:rotate(-9deg)}to{transform:rotate(9deg)}}
.g-majorelle .mj-c.fall svg{animation:mjFall .28s cubic-bezier(.35,.1,.5,1.25) both}
@keyframes mjFall{from{transform:translateY(calc(var(--f) * -112%))}to{transform:none}}
.g-majorelle .mj-c.pop svg{animation:mjPop .23s ease-in forwards}
@keyframes mjPop{0%{transform:scale(1)}40%{transform:scale(1.25);filter:brightness(1.4)}100%{transform:scale(.1);opacity:0}}
.g-majorelle .mj-c.born svg{animation:mjBorn .45s cubic-bezier(.2,1.6,.4,1) both}
@keyframes mjBorn{from{transform:scale(.3) rotate(-30deg)}to{transform:none}}
.g-majorelle .mj-c.bad{animation:mjShake .3s ease}
@keyframes mjShake{25%{transform:translateX(-12%)}75%{transform:translateX(12%)}}
.g-majorelle .mj-c.grow svg{animation:mjBorn .5s ease both}
.g-majorelle .mj-c.swL svg{animation:mjSwL .16s ease-out both}.g-majorelle .mj-c.swR svg{animation:mjSwR .16s ease-out both}
.g-majorelle .mj-c.swU svg{animation:mjSwU .16s ease-out both}.g-majorelle .mj-c.swD svg{animation:mjSwD .16s ease-out both}
@keyframes mjSwL{from{transform:translateX(-110%)}}@keyframes mjSwR{from{transform:translateX(110%)}}@keyframes mjSwU{from{transform:translateY(-110%)}}@keyframes mjSwD{from{transform:translateY(110%)}}
.g-majorelle .mj-jet{animation:mjJet .8s linear infinite}
@keyframes mjJet{to{stroke-dashoffset:-13}}
.g-majorelle .mj-spark{animation:mjTw 1s ease-in-out infinite alternate}
@keyframes mjTw{from{opacity:.2}to{opacity:1}}
.g-majorelle .mj-beam{position:absolute;pointer-events:none;z-index:2;background:linear-gradient(90deg,rgba(191,230,255,0),#bfe6ff 30%,#fff 50%,#bfe6ff 70%,rgba(191,230,255,0));border-radius:999px;animation:mjBeam .25s ease-out both}
.g-majorelle .mj-beam.h{left:0;right:0;height:calc(100% / var(--n) * .5);top:calc(100% / var(--n) * (var(--r) + .25))}
.g-majorelle .mj-beam.v{top:0;bottom:0;width:calc(100% / var(--n) * .5);left:calc(100% / var(--n) * (var(--c) + .25));background:linear-gradient(180deg,rgba(191,230,255,0),#bfe6ff 30%,#fff 50%,#bfe6ff 70%,rgba(191,230,255,0))}
.g-majorelle .mj-beam.b{inset:0;background:radial-gradient(circle,rgba(255,255,255,.85),rgba(74,106,240,.4) 60%,transparent 75%)}
@keyframes mjBeam{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
.g-majorelle .mj-msg{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);z-index:3;pointer-events:none;background:#ffc640;color:#1a2042;border:3px solid #1a2042;border-radius:999px;padding:4px 18px;font-weight:800;font-size:1.25rem;white-space:nowrap;box-shadow:0 4px 0 #1a2042;animation:mjMsg 1.4s ease-out both}
@keyframes mjMsg{0%{opacity:0;transform:translate(-50%,-30%) scale(.6)}15%{opacity:1;transform:translate(-50%,-50%) scale(1.1)}75%{opacity:1;transform:translate(-50%,-60%)}100%{opacity:0;transform:translate(-50%,-80%)}}
.g-majorelle .mj-keys{margin:0}
.g-majorelle .mj-mini{display:flex;align-items:center;gap:10px;max-width:560px;width:100%;margin-inline:auto;background:var(--tint);border-radius:16px;padding:8px 12px;font-weight:700}
.g-majorelle .mj-mini svg{width:120px;height:auto;border-radius:8px;border:2px solid var(--line);display:block}
.g-majorelle .mj-pic{max-width:640px;background:#cfe6a8}
.g-majorelle .mj-pic svg{display:block;width:100%;height:auto}
.g-majorelle .mj-cover{animation:none}
.g-majorelle .mj-glow{animation:mjGlow 1s ease-in-out infinite alternate}
@keyframes mjGlow{from{stroke-opacity:1}to{stroke-opacity:.3}}
.g-majorelle .mj-sway{transform-box:fill-box;transform-origin:50% 100%;animation:mjSway 4s ease-in-out infinite alternate}
.g-majorelle .mj-sway2{transform-box:fill-box;transform-origin:50% 100%;animation:mjSway 5s ease-in-out infinite alternate-reverse}
@keyframes mjSway{from{transform:rotate(-1.5deg)}to{transform:rotate(1.5deg)}}
.g-majorelle .mj-ripple{animation:mjRip 2s ease-in-out infinite alternate}
@keyframes mjRip{from{transform:translateX(-4px);opacity:.5}to{transform:translateX(4px);opacity:1}}
.g-majorelle .mj-card{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;max-width:860px;width:100%;margin-inline:auto;background:#fffaf0;color:#1a2042;border-radius:18px;padding:12px;border:2px solid #e6d8bb;box-shadow:0 10px 26px rgba(10,16,48,.18)}
.g-majorelle .mj-card .mj-pic{border-color:#2747c7;max-width:none}
.g-majorelle .mj-cardtxt{display:flex;flex-direction:column;gap:8px;padding:0 4px}
.g-majorelle .mj-cardtxt p{line-height:1.45}
.g-majorelle .mj-hand{font-size:1.12rem;font-weight:700;color:#2747c7}
.g-majorelle .mj-score{display:flex;flex-wrap:wrap;gap:6px}
.g-majorelle .mj-cardtxt .mj-score{align-items:center;flex-direction:row}
.g-majorelle .mj-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:640px;width:100%;margin-inline:auto}
.g-majorelle .mj-mode{display:flex;flex-direction:column;gap:4px;text-align:start;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:18px;padding:14px;min-width:0}
.g-majorelle .mj-mode:hover{border-color:var(--wc)}
.g-majorelle .mj-mode b{font-size:1.2rem;color:var(--wc)}
.g-majorelle .mj-mode span{color:var(--muted);line-height:1.35}
.g-majorelle .mj-mode small{font-weight:800}
@media (min-width:900px){.g-majorelle .mj-card{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}}
@media (max-width:560px){.g-majorelle .mj-modes{grid-template-columns:minmax(0,1fr)}.g-majorelle .mj-hud{gap:6px}.g-majorelle .mj-moves{width:56px;height:56px}.g-majorelle .mj-moves b{font-size:1.4rem}.g-majorelle .mj-goal svg{width:28px;height:28px}.g-majorelle .mj-wrap{padding:5px;border-radius:16px}.g-majorelle .mj-board{gap:2px}.g-majorelle .mj-c{border-radius:7px}}
@media (prefers-reduced-motion: reduce){.g-majorelle *{animation:none!important}}
.g-majorelle .mj-play{display:flex;flex-direction:column;gap:12px;max-width:980px;width:100%;margin-inline:auto}
.g-majorelle .mj-main{display:flex;flex-direction:column;gap:8px;min-width:0}
.g-majorelle .mj-side{display:flex;flex-direction:column;gap:10px;min-width:0}
.g-majorelle .mj-legend{display:grid;gap:6px;max-width:560px;width:100%;margin-inline:auto;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:8px 12px}
.g-majorelle .mj-legend > div{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center;font-size:.95rem;line-height:1.3}
.g-majorelle .mj-lg svg{width:40px;height:40px;display:block}
.g-majorelle .mj-legend b{color:var(--wc)}
@media (min-width:900px){
  .g-majorelle .mj-play{display:grid;grid-template-columns:minmax(0,560px) minmax(0,320px);justify-content:center;gap:20px;align-items:start}
  .g-majorelle .mj-mini{flex-direction:column;align-items:stretch;text-align:center}
  .g-majorelle .mj-mini svg{width:100%}
  .g-majorelle .mj-hud{max-width:900px}
}
.g-majorelle .mj-cloud{animation:mjCloud 14s ease-in-out infinite alternate}
@keyframes mjCloud{from{transform:translateX(-10px)}to{transform:translateX(14px)}}
.g-majorelle .mj-plus{position:absolute;transform:translate(-50%,-50%);z-index:3;pointer-events:none;font-weight:800;font-size:1.3rem;color:#fff;text-shadow:0 2px 0 #1a2042,0 0 6px #1a2042;animation:mjPlus .5s ease-out both}
@keyframes mjPlus{from{opacity:0;transform:translate(-50%,-10%) scale(.6)}to{opacity:1;transform:translate(-50%,-70%) scale(1.1)}}

/* Desert Stars */
.g-stars .st-stage{max-width:760px;background:#03061a;border-color:#2b3a8a}
.g-stars .st-sky{display:block;width:100%;height:auto}
.g-stars .st-line{stroke:#9fd0ff;stroke-width:1.6;stroke-linecap:round;opacity:.55}
.g-stars .st-line.on{stroke:#ffe9a8;stroke-width:2.6;opacity:.95;filter:drop-shadow(0 0 3px rgba(255,214,120,.8))}
.g-stars .st-line.faint{stroke:#8fb4ff;stroke-width:1.2;opacity:.38}
.g-stars .st-line.ghost{stroke:#e6ecff;stroke-width:2.6;stroke-dasharray:6 5;opacity:.9}
.g-stars .st-ghost.ok .st-line{stroke:#5fe0a0;opacity:1;stroke-dasharray:none}
.g-stars .st-ghost.bad .st-line{stroke:#ff8174;opacity:.9}
.g-stars .st-ghost.dim{opacity:.35}
.g-stars .st-gl{fill:#1b2a6a;stroke:#c9d6ff;stroke-width:2}
.g-stars .st-ghost.ok .st-gl{fill:#137f5f;stroke:#5fe0a0}
.g-stars text.st-glt{font:800 14px var(--font-ui);fill:#fff}
.g-stars text.st-num{font:800 15px var(--font-ui);fill:#ffd27a;paint-order:stroke;stroke:#03061a;stroke-width:3px}
.g-stars text.st-num.done{fill:#7f8fc0}
.g-stars text.st-big{font:800 24px var(--font-ui);fill:#ffc640;paint-order:stroke;stroke:#03061a;stroke-width:4px}
.g-stars text.st-cname{font:800 22px var(--font-ui);fill:#fff1c4;letter-spacing:.04em;paint-order:stroke;stroke:#03061a;stroke-width:4px}
.g-stars text.st-lbl{font:800 13px var(--font-ui);fill:#fff;paint-order:stroke;stroke:#03061a;stroke-width:4px}
.g-stars text.st-pl{font:800 14px var(--font-ui);fill:#ffd27a;letter-spacing:.05em}
.g-stars text.st-dirl{font:800 16px var(--font-ui);fill:#ffc640}
.g-stars text.st-lat{font:800 12px var(--font-ui);fill:#1b4f9c}
.g-stars text.st-ctxt{font:800 14px var(--font-ui);fill:#1a2042;paint-order:stroke;stroke:#fff;stroke-width:3px}
.g-stars text.st-ang{font:800 13px var(--font-ui);fill:#1a2042}
.g-stars .st-pulse{fill:none;stroke:#ffc640;stroke-width:3;animation:stPulse 1.1s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes stPulse{50%{transform:scale(1.35);opacity:.55}}
.g-stars .st-sel{fill:none;stroke:#ffc640;stroke-width:2.6}
.g-stars .st-ok{fill:none;stroke:#5fe0a0;stroke-width:3}
.g-stars .st-bad{fill:none;stroke:#ff8174;stroke-width:2.4;stroke-dasharray:3 3}
.g-stars .st-point{stroke:#ffc640;stroke-width:2;stroke-dasharray:4 6;opacity:.9}
.g-stars .st-hit{cursor:pointer}
.g-stars .st-hit:focus{outline:none}
.g-stars .st-hit:focus-visible{stroke:#ffc640;stroke-width:2;stroke-opacity:1}
.g-stars .st-tw{animation:stTw 2.8s ease-in-out infinite}
.g-stars .st-tw:nth-of-type(2n){animation-delay:-1.3s;animation-duration:3.4s}
@keyframes stTw{50%{opacity:.55}}
.g-stars .st-fire{animation:stFire .45s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 100%}
@keyframes stFire{to{transform:scaleY(1.2) scaleX(.9)}}
.g-stars .st-row{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:10px;max-width:760px;width:100%;margin-inline:auto;align-items:start}
.g-stars .st-ref{display:flex;flex-direction:column;align-items:center;gap:6px;background:#0b1440;border:2px solid #2b3a8a;border-radius:16px;padding:8px;color:#dbe3ff}
.g-stars .st-ref svg{width:100%;height:auto;max-height:120px}
.g-stars .st-ref small{font-weight:700;color:#aab6e8}
.g-stars .st-msg{min-height:1.4em;font-weight:700}
.g-stars .st-clocks{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.g-stars .st-clk{display:inline-flex;align-items:center;gap:6px;font-weight:800}
.g-stars .st-clk svg{width:40px;height:40px}
.g-stars .st-arr{font-size:1.4rem;font-weight:800;color:var(--muted)}
.g-stars .st-map{max-width:440px}
.g-stars .st-city{cursor:pointer}
.g-stars .st-cdot{fill:#c1272d;stroke:#fff;stroke-width:3}
.g-stars .st-city:hover .st-cdot,.g-stars .st-city:focus-visible .st-cdot{fill:#ffc640;stroke:#1a2042}
.g-stars .st-city.ok .st-cdot{fill:#137f5f}
.g-stars .st-city.bad .st-cdot{fill:#9aa0ac}
.g-stars .st-sight{stroke:#ffc640;stroke-width:2.4;stroke-dasharray:10 6}
.g-stars .st-meas svg{cursor:crosshair}
.g-stars .st-aim{justify-content:center;gap:8px;flex-wrap:nowrap}
.g-stars .st-nudge{min-width:56px;min-height:48px;padding:6px 8px}
.g-stars .st-read{font-size:1.6rem;min-width:62px;text-align:center;font-variant-numeric:tabular-nums}
.g-stars .st-astro,.g-stars .st-clue{margin-inline:auto;width:100%}
.g-stars .st-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;max-width:980px;width:100%;margin-inline:auto}
.g-stars .st-two .stage{margin:0}
.g-stars .st-bino{display:flex;flex-direction:column;align-items:center;gap:2px;flex:none}
.g-stars .st-bino svg{width:120px;height:60px}
.g-stars .st-bino small{font-weight:700;color:var(--muted)}
.g-stars .st-mhud{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-stars .st-mhud .chip{background:#0b1440;color:#dbe3ff;font-weight:700}
.g-stars .st-mhud b{color:#ffd27a;font-variant-numeric:tabular-nums;margin-inline-start:4px}
.g-stars .st-m{cursor:pointer}
.g-stars .st-blink{animation:stBlink .9s steps(2) infinite}
.g-stars .st-blink2{animation:stBlink .9s steps(2) infinite reverse}
@keyframes stBlink{50%{opacity:0}}
.g-stars .st-pts{background:var(--good-soft);color:var(--good)}
.g-stars .st-post{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);max-width:780px;width:100%;margin-inline:auto;background:#fffaf0;color:#1a2042;border-radius:18px;border:2px solid #e2cfa6;box-shadow:0 10px 30px rgba(26,32,66,.2);overflow:hidden;transform:rotate(1deg)}
.g-stars .st-pimg{position:relative;line-height:0}
.g-stars .st-pimg > svg{display:block;width:100%;height:100%;min-height:200px}
.g-stars .st-pstamp{position:absolute;top:8px;inset-inline-end:8px;transform:rotate(8deg)}
.g-stars .st-ptxt{padding:16px 18px;display:flex;flex-direction:column;gap:6px;border-inline-start:2px dashed #e2cfa6}
.g-stars .st-ptxt h2{font-size:1.9rem;font-weight:800;color:#1d3a8a;line-height:1.05}
.g-stars .st-ptxt .kicker{font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#c1531d;font-size:.8rem}
.g-stars .st-ptxt .ar{color:#3a4a94;font-size:1.1rem}
.g-stars .st-ptxt .sub{color:#5b6388}
.g-stars .st-total{display:flex;align-items:baseline;gap:6px;font-weight:800}
.g-stars .st-total b{font-size:1.8rem}
@media (max-width:760px){
  .g-stars .st-row{grid-template-columns:minmax(0,1fr)}
  .g-stars .st-ref{flex-direction:row;justify-content:center;padding:6px}
  .g-stars .st-ref svg{width:110px;max-height:70px}
  .g-stars .st-two{grid-template-columns:minmax(0,1fr)}
  .g-stars .st-post{grid-template-columns:minmax(0,1fr);transform:none}
  .g-stars .st-ptxt{border-inline-start:0;border-top:2px dashed #e2cfa6}
  .g-stars .st-nudge{min-width:48px;padding:6px 4px}
}
@media (prefers-reduced-motion:reduce){.g-stars *{animation:none!important}}
.g-stars .st-best{display:flex;justify-content:center}

/* Ski Oukaimeden */
.g-ski .ask,.g-ski .fact{background:color-mix(in srgb,var(--wc) var(--tintmix),var(--surface))}
.g-ski .sk-stage{background:#cfeaff;touch-action:none}
.g-ski .sk-go{position:absolute;left:50%;top:56%;transform:translate(-50%,-50%);min-width:150px;font-size:1.6rem;background:#178a52;color:#fff;box-shadow:0 5px 0 #0d5a35;border:3px solid #1a2042}
.g-ski .sk-rec{text-align:center;margin:-4px 0}
.g-ski .sk-msg{text-align:center;font-weight:800;font-size:1.1rem;line-height:1.3;min-height:1.35em;color:var(--wc);margin:0}
.g-ski .sk-ctl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1fr);gap:10px;max-width:640px;width:100%;margin-inline:auto}
.g-ski .sk-ctl.one{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-ski .sk-btn{border:3px solid #1a2042;border-radius:24px;min-height:92px;font-weight:800;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;box-shadow:0 7px 0 #1a2042;transition:transform .08s,box-shadow .08s}
.g-ski .sk-btn svg{width:44px;height:44px}
.g-ski .sk-l,.g-ski .sk-r{background:#1d63b8}
.g-ski .sk-tuck{background:#0a7d46}
.g-ski .sk-tuck b{font-size:1.2rem;letter-spacing:.04em}
.g-ski .sk-tuck small{font-size:.76rem;font-weight:700;opacity:.92;text-align:center;line-height:1.15}
.g-ski .sk-tuck.lit{background:#e2540f;outline:5px solid #ffc640;outline-offset:2px}
.g-ski .sk-btn.on{transform:translateY(5px);box-shadow:0 2px 0 #1a2042;filter:brightness(1.12)}
.g-ski .sk-keys{margin:0}
.g-ski .sk-post{max-width:720px;width:100%;margin-inline:auto;border-radius:18px;overflow:hidden;border:3px solid var(--wc);line-height:0}
.g-ski .sk-post.card{border:4px solid #fff;box-shadow:0 10px 30px rgba(10,16,48,.28);transform:rotate(1deg)}
.g-ski .sk-post svg{display:block;width:100%;height:auto}
.g-ski .sk-facts{max-width:680px;width:100%;margin-inline:auto}
.g-ski .sk-facts ul{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:6px}
.g-ski .sk-facts li{font-weight:600;line-height:1.4}
.g-ski .sk-liftst{background:#cfeaff}
.g-ski .sk-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(76px,1fr));gap:8px;max-width:680px;width:100%;margin-inline:auto}
.g-ski .sk-tiles div{display:flex;flex-direction:column;align-items:center;background:var(--surface-2);border-radius:14px;padding:8px;text-align:center}
.g-ski .sk-tiles b{font-size:1.3rem;line-height:1.1;font-variant-numeric:tabular-nums}
.g-ski .sk-tiles small{color:var(--muted);font-weight:700}
.g-ski .sk-trk{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.g-ski .sk-sum{max-width:680px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:6px;text-align:center;align-items:center}
.g-ski .sk-sum p{font-size:1.08rem;font-weight:600}
@media (max-width:640px){.g-ski .sk-btn{min-height:84px}.g-ski .sk-msg{font-size:1rem}.g-ski .sk-tuck small{font-size:.66rem}}
@media (prefers-reduced-motion: reduce){.g-ski .sk-post.card{transform:none}}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .g-ski .sk-msg{color:color-mix(in srgb,var(--wc) 45%,#fff)}}
:root[data-theme="dark"] .g-ski .sk-msg{color:color-mix(in srgb,var(--wc) 45%,#fff)}

/* ===== Time Machine ===== */
.g-time .tm-machine{max-width:600px;width:100%;margin-inline:auto;line-height:0;filter:drop-shadow(0 6px 8px rgba(70,40,0,.22))}
.g-time .tm-machine svg{display:block;width:100%;height:auto}
.g-time .tm-lever.ready{cursor:pointer}
.g-time .tm-lever.ready .knob{animation:tmKnob 1s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.g-time .tm-lever:focus{outline:none}
.g-time .tm-lever:focus-visible .knob{stroke:#2f6fd6;stroke-width:4}
@keyframes tmKnob{50%{transform:scale(1.35)}}
.g-time .tm-q{animation:tmBlink 1.4s ease-in-out infinite}
@keyframes tmBlink{50%{opacity:.4}}
.g-time .tm-track{max-width:760px;width:100%;margin-inline:auto;background:var(--ws);border:3px solid var(--wc);border-radius:22px;padding:8px 10px 12px}
.g-time .tm-ends{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--wc);font-size:.95rem;padding:0 4px 12px;line-height:1}
.g-time .tm-ends .ln{flex:1;height:4px;border-radius:2px;background:linear-gradient(90deg,color-mix(in srgb,var(--wc) 25%,transparent),var(--wc));position:relative}
.g-time .tm-ends .ln::after{content:"";position:absolute;right:-3px;top:-6px;border-style:solid;border-width:8px 0 8px 11px;border-color:transparent transparent transparent var(--wc)}
.g-time .tm-slots{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:8px}
.g-time .tm-slot{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:96px;border:3px dashed color-mix(in srgb,var(--wc) 45%,var(--line));background:color-mix(in srgb,var(--surface) 65%,transparent);border-radius:14px;padding:6px 5px;color:var(--ink);font-weight:800;text-align:center;line-height:1.15;font:inherit}
.g-time button.tm-slot{cursor:pointer}
.g-time .tm-slot.next{border-color:var(--wc);animation:tmNext 1.3s ease-in-out infinite}
@keyframes tmNext{50%{background:color-mix(in srgb,var(--wc) 22%,var(--surface))}}
.g-time .tm-slot.full{border-style:solid;border-color:var(--wc);background:var(--surface)}
.g-time .tm-slot.ok{border-style:solid;border-color:var(--good);background:var(--good-soft)}
.g-time .tm-slot.moved{border-color:#e8a33a;background:color-mix(in srgb,#ffc640 18%,var(--surface))}
.g-time .tm-slot .num{position:absolute;top:-11px;inset-inline-start:-7px;width:28px;height:28px;border-radius:50%;background:#ffc640;border:3px solid #1a2042;color:#1a2042;font-weight:800;display:grid;place-items:center;font-size:.95rem;z-index:1;line-height:1}
.g-time .tm-slot.ok .num{background:#2fc77a}
.g-time .tm-slot.just{animation:tmPop .38s cubic-bezier(.2,1.6,.4,1)}
@keyframes tmPop{0%{transform:scale(.6)}100%{transform:scale(1)}}
.g-time .cart.tm-hole{aspect-ratio:6/5;display:grid;place-items:center;border:0;background:transparent;font-size:1.7rem;font-weight:800;line-height:1;color:color-mix(in srgb,var(--wc) 55%,var(--muted))}
.g-time .tm-ph{visibility:hidden}
.g-time .fb{width:100%;margin-inline:auto}
.g-time .cart{display:block;width:100%;max-width:150px;border-radius:10px;overflow:hidden;border:2px solid #1a2042;line-height:0;flex:none}
.g-time .cart svg{display:block;width:100%;height:auto}
.g-time .tm-tx{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;width:100%}
.g-time .tm-tx b{font-size:.92rem;line-height:1.15;overflow-wrap:anywhere}
.g-time .tm-year{display:inline-block;background:var(--wc);color:#fff;border-radius:999px;padding:1px 8px;font-size:.82rem;font-weight:800;line-height:1.35;max-width:100%}
.g-time .tm-slot .tm-year{font-size:.74rem;padding:1px 6px}
.g-time .tm-pool{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:760px;width:100%;margin-inline:auto}
.g-time .tm-pool.n4{grid-template-columns:repeat(4,minmax(0,1fr))}
.g-time .tm-pool.n5{grid-template-columns:repeat(5,minmax(0,1fr))}
.g-time .tm-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;border:3px solid var(--line);background:var(--surface);border-radius:16px;padding:6px;color:var(--ink);min-width:0;text-align:center;box-shadow:0 4px 0 var(--line);font:inherit;font-weight:800}
.g-time .tm-card:hover:not(:disabled){border-color:var(--wc)}
.g-time .tm-card:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px 0 var(--line)}
.g-time .tm-card.gone{box-shadow:none;border-style:dashed;background:transparent;cursor:default}
.g-time .tm-card.gone > *{visibility:hidden}
.g-time .tm-card.back{border-color:var(--bad);background:var(--bad-soft);animation:tmShake .5s ease}
@keyframes tmShake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.g-time .tm-go{background:#b5761a;box-shadow:0 4px 0 #7a4a12}
.g-time .tm-note{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center;max-width:680px;width:100%;margin-inline:auto;background:var(--bad-soft);border-radius:16px;padding:8px 12px;font-weight:700}
.g-time .tm-note > svg{width:44px;height:44px;display:block}
.g-time .tm-note .speak{vertical-align:middle;width:36px;height:36px}
.g-time .tm-fact{display:grid;grid-template-columns:140px minmax(0,1fr);gap:14px;align-items:center;max-width:680px;width:100%;margin-inline:auto;background:var(--ws);border-radius:18px;padding:12px 14px;border:2px solid color-mix(in srgb,var(--wc) 40%,transparent)}
.g-time .tm-ftx{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.g-time .tm-trip{font-size:.85rem;font-weight:700;color:var(--wc);text-transform:uppercase;letter-spacing:.04em}
.g-time .tm-ftx b{font-size:1.2rem;line-height:1.15}
.g-time .tm-ftx p{font-size:1.06rem;line-height:1.45}
.g-time .tm-ftx .speak{vertical-align:middle;width:36px;height:36px}
@media (max-width:699px){
  .g-time .tm-pool.n4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-time .tm-pool.n4 .cart{max-width:132px}
  .g-time .tm-pool.n5{grid-template-columns:repeat(3,minmax(0,1fr))}
  .g-time .tm-slots{gap:6px}
  .g-time .tm-slots.lv2 .tm-slot{min-height:76px;padding:5px 3px;border-radius:12px}
  .g-time .tm-slots.lv2 .num{width:24px;height:24px;font-size:.82rem;top:-10px;inset-inline-start:-6px;border-width:2px}
  .g-time .tm-slots.lv2 .cart{border-radius:7px;border-width:1.5px}
  .g-time .tm-slots.lv2 .tm-year{font-size:.66rem;padding:0 4px;line-height:1.2;white-space:normal}
  .g-time .tm-pool.lv2 .tm-tx b{font-size:.8rem}
  .g-time .tm-pool.lv2 .tm-year{font-size:.72rem;padding:1px 5px;line-height:1.2}
  .g-time .tm-fact{grid-template-columns:96px minmax(0,1fr);gap:10px;padding:10px}
  .g-time .tm-ftx b{font-size:1.08rem}
}
/* dark mode: the world's soft color is a light cream, so give this screen a dark warm tint instead */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .g-time{--ws:color-mix(in srgb,#b5761a 26%,#1b2043)!important}}
:root[data-theme="dark"] .g-time{--ws:color-mix(in srgb,#b5761a 26%,#1b2043)!important}
/* levels 2 and 3: the timeline card game */
.g-time .tm-status{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center}
.g-time .tm-status .chip b{color:var(--ink);margin-inline:3px}
.g-time .tm-lives{display:inline-flex;gap:3px;align-items:center;margin-inline-end:4px}
.g-time .tm-lives svg{width:26px;height:22px;display:block;fill:var(--surface-2);stroke:#1a2042;stroke-width:2.4}
.g-time .tm-lives svg.on{fill:#e5483f}
.g-time .tm-streak{background:color-mix(in srgb,#2fc77a 22%,var(--surface));color:var(--ink)}
.g-time .tm-best{background:color-mix(in srgb,#ffc640 30%,var(--surface));color:var(--ink)}
.g-time .tm-now{position:sticky;top:0;z-index:4;display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:10px;align-items:center;max-width:760px;width:100%;margin-inline:auto;background:var(--surface);border:3px solid var(--wc);border-radius:16px;padding:6px 10px;box-shadow:0 6px 14px rgba(70,40,0,.16)}
.g-time .tm-now > div{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.g-time .tm-now b{font-size:1.1rem;line-height:1.15}
.g-time .tm-now .cart{max-width:76px}
.g-time .tm-now.placed{position:static;box-shadow:none}
.g-time .tm-era{display:inline-block;background:color-mix(in srgb,var(--wc) 16%,var(--surface));color:var(--ink);border:1.5px dashed var(--wc);border-radius:999px;padding:0 9px;font-size:.85rem;font-weight:800;line-height:1.5}
.g-time .tm-tl{max-width:760px;width:100%;margin-inline:auto;background:var(--ws);border:3px solid var(--wc);border-radius:22px;padding:8px 10px 12px}
.g-time .tm-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}
.g-time .tm-row{display:grid;grid-template-columns:60px minmax(0,1fr);gap:10px;align-items:center;background:var(--surface);border:2px solid var(--line);border-radius:12px;padding:5px 8px;min-height:52px;margin:3px 0}
.g-time .tm-row .cart{max-width:60px;border-radius:7px;border-width:1.5px}
.g-time .tm-rt{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
.g-time .tm-rt b{font-size:.98rem;line-height:1.2;overflow-wrap:anywhere}
.g-time .tm-row.new{grid-template-columns:72px minmax(0,1fr);border-width:3px;animation:tmPop .38s cubic-bezier(.2,1.6,.4,1)}
.g-time .tm-row.new .cart{max-width:72px}
.g-time .tm-row.new.ok{border-color:var(--good);background:var(--good-soft)}
.g-time .tm-row.new.bad{border-color:#e8a33a;border-style:dashed;background:color-mix(in srgb,#ffc640 16%,var(--surface))}
.g-time .tm-fbin{grid-column:1/-1;display:flex;flex-direction:column;gap:8px;padding:4px 2px 2px}
.g-time .tm-fbin p{font-size:1.04rem;line-height:1.45}
.g-time .tm-fbin .speak{vertical-align:middle;width:36px;height:36px}
.g-time .tm-gapli{display:flex}
.g-time .tm-gap{flex:1;min-height:44px;margin:-6px 0;position:relative;z-index:1;border:0;background:transparent;padding:0;display:flex;align-items:center;cursor:pointer;color:var(--wc);font:inherit;font-weight:800;font-size:.85rem}
.g-time .tm-gap span{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;height:26px;border:2px dashed color-mix(in srgb,var(--wc) 55%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--surface) 70%,transparent);transition:background .15s,transform .15s}
.g-time .tm-gap span::before{content:"+";display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--wc);color:#fff;font-size:.95rem;line-height:1}
.g-time .tm-gap:hover span,.g-time .tm-gap:focus-visible span{background:color-mix(in srgb,var(--wc) 22%,var(--surface));border-style:solid;transform:scaleY(1.08)}
.g-time .tm-gap:focus{outline:none}
.g-time .tm-miss{display:flex;justify-content:center;margin:2px 0}
.g-time .tm-miss span{border:2px solid var(--bad);background:var(--bad-soft);color:var(--bad);border-radius:999px;padding:1px 12px;font-weight:800;font-size:.85rem}
@media (max-width:420px){.g-time .tm-row{grid-template-columns:52px minmax(0,1fr);gap:8px;padding:4px 6px}.g-time .tm-row .cart{max-width:52px}.g-time .tm-rt b{font-size:.9rem}.g-time .tm-now{grid-template-columns:60px minmax(0,1fr) auto}.g-time .tm-now b{font-size:1rem}}
/* the new card sticks to the top while placing it, so the question bar does not */
.g-time:has(.tm-now) .ask{position:relative;top:auto}
.g-time .tm-dy{display:inline-block;border:1.5px solid var(--wc);color:var(--wc);background:var(--surface);border-radius:6px;padding:0 6px;font-size:.74rem;font-weight:800;line-height:1.4}
.g-time .tm-tags{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .g-time .tm-dy{color:#f2c46a;border-color:#f2c46a}}
:root[data-theme="dark"] .g-time .tm-dy{color:#f2c46a;border-color:#f2c46a}

/* ===== Monument Puzzle ===== */
.g-puzzle .pz-board{position:relative;display:grid;grid-template-columns:repeat(var(--c,3),minmax(0,1fr));grid-template-rows:repeat(var(--r,3),minmax(0,1fr));aspect-ratio:8/5;max-width:640px;width:100%;margin-inline:auto;border-radius:16px;border:4px solid var(--wc);overflow:hidden;touch-action:manipulation;user-select:none;-webkit-user-select:none;
  background:#3b2a22 radial-gradient(circle at 12px 12px,rgba(255,198,64,.28) 3px,transparent 4px) 0 0/24px 24px;box-shadow:0 6px 0 color-mix(in srgb,var(--wc) 45%,#000)}
.g-puzzle .pz-board.sq{aspect-ratio:1/1;max-width:440px}
.g-puzzle .pz-board.slide{padding:3px;gap:3px}
.g-puzzle .pz-board.ghosted{background:#f6ead0}
.g-puzzle .pz-ghost{position:absolute;inset:0;opacity:.34;filter:saturate(.55);pointer-events:none}
.g-puzzle .pz-ghost svg,.g-puzzle .pz-board.solved svg{display:block;width:100%;height:100%}
.g-puzzle .pz-tile{position:relative;display:block;width:100%;height:100%;min-width:0;min-height:0;margin:0;padding:0;border:0;background:#fff;border-radius:9px;overflow:hidden;cursor:pointer;scale:.9;box-shadow:0 0 0 2.5px #fff,0 5px 10px rgba(20,10,0,.45);transition:scale .2s ease,box-shadow .2s ease;line-height:0}
.g-puzzle .pz-tile svg{display:block;width:100%;height:100%}
.g-puzzle .pz-tile:hover:not(:disabled){scale:.93}
.g-puzzle .pz-tile.sel{scale:.97;z-index:2;box-shadow:0 0 0 4px #ffc640,0 0 0 7px #1a2042,0 10px 18px rgba(20,10,0,.5);animation:pzBob .9s ease-in-out infinite}
@keyframes pzBob{50%{translate:0 -4px}}
.g-puzzle .pz-tile.lock{scale:1;border-radius:0;box-shadow:none;cursor:default;z-index:1}
.g-puzzle .pz-tile.glow::after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 0 4px #ffe066,inset 0 0 22px 6px rgba(255,212,59,.9);animation:pzGlow 1.1s ease-out forwards;pointer-events:none}
@keyframes pzGlow{0%{opacity:1}100%{opacity:0}}
.g-puzzle .pz-tile.rt{scale:.94;border-radius:8px}
.g-puzzle .pz-tile.rt:hover{scale:.97}
.g-puzzle .pz-tile.sl{scale:1;border-radius:6px;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.9),0 3px 0 rgba(20,10,0,.5)}
.g-puzzle .pz-tile.sl:hover{scale:1;filter:brightness(1.06)}
.g-puzzle .pz-tile.nope{animation:pzNope .3s ease}
@keyframes pzNope{25%{translate:-4px 0}75%{translate:4px 0}}
.g-puzzle .pz-hole{border-radius:6px;background:rgba(0,0,0,.35);box-shadow:inset 0 3px 8px rgba(0,0,0,.6)}
.g-puzzle .pz-num{position:absolute;top:3px;left:3px;min-width:22px;height:22px;padding:0 4px;border-radius:11px;background:#ffc640;border:2px solid #1a2042;color:#1a2042;font-weight:800;font-size:.8rem;line-height:18px;text-align:center}
.g-puzzle .pz-tile:focus-visible{outline:4px solid #2f6fd6;outline-offset:-4px}
.g-puzzle .pz-board.solved{display:block;background:#3b2a22;padding:0}
.g-puzzle .pz-shine{position:absolute;inset:0;background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.7) 50%,transparent 60%) no-repeat;background-size:300% 100%;background-position:100% 0;animation:pzShine 1.4s .2s ease-out both;pointer-events:none}
@keyframes pzShine{from{background-position:100% 0}to{background-position:0% 0}}
.g-puzzle .pz-top{display:flex;align-items:center;justify-content:center;gap:14px;max-width:640px;width:100%;margin-inline:auto}
.g-puzzle .pz-prev{display:flex;flex-direction:column;align-items:center;gap:2px;font-weight:800;color:var(--wc);font-size:.9rem;flex:none}
.g-puzzle .pz-prev svg{display:block;width:150px;height:auto;aspect-ratio:8/5;border-radius:8px;border:3px solid var(--wc);box-shadow:0 4px 0 color-mix(in srgb,var(--wc) 40%,transparent)}
.g-puzzle .pz-prev svg[viewBox$=" 250 250"]{aspect-ratio:1/1;width:110px}
.g-puzzle .pz-moves{display:grid;grid-template-columns:auto auto;gap:2px 14px;align-items:end;justify-items:center;background:var(--ws);border-radius:16px;padding:8px 14px;line-height:1.1;text-align:center;min-width:0}
.g-puzzle .pz-stat{display:flex;flex-direction:column;align-items:center}
.g-puzzle .pz-stat b{font-size:2rem;font-weight:800;color:var(--wc);font-variant-numeric:tabular-nums;line-height:1}
.g-puzzle .pz-stat span{font-weight:800;font-size:.9rem}
.g-puzzle .pz-moves small{grid-column:1/-1;color:var(--muted);font-weight:700;font-size:.82rem}
.g-puzzle .pz-moves small b{color:var(--ink)}
.g-puzzle .pz-moves .stars{font-size:.85rem;vertical-align:-.1em}
.g-puzzle .pz-tools{justify-content:center}
.g-puzzle .pz-tools .btn[aria-pressed="true"]{border-color:var(--wc);color:var(--wc)}
.g-puzzle .pz-name{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.g-puzzle .pz-name > b{font-size:1.6rem;font-weight:800;line-height:1.1;color:var(--wc)}
.g-puzzle .pz-name > .ar{font-size:1.6rem;color:var(--ink);line-height:1.4}
.g-puzzle .pz-name .chip{background:var(--ws);color:var(--wc);font-size:1rem}
.g-puzzle .pz-name .chip .ar{color:var(--wc);font-size:1rem}
.g-puzzle .pz-res{font-weight:800;color:var(--muted);display:inline-flex;gap:8px;align-items:center;font-variant-numeric:tabular-nums}
.g-puzzle .pz-res .stars{font-size:1.3rem}
.g-puzzle .pz-rec{display:inline-flex;align-items:center;gap:6px;background:#ffc640;color:#1a2042;border:3px solid #1a2042;border-radius:999px;padding:4px 14px;font-weight:800;animation:pzRec .7s cubic-bezier(.2,1.6,.4,1) both}
.g-puzzle .pz-rec .st{width:1.1em;height:1.1em;color:#c1272d}
@keyframes pzRec{0%{scale:.3;rotate:-12deg}100%{scale:1;rotate:0deg}}
.g-puzzle .pz-best{font-weight:700;color:var(--muted);font-size:.95rem}
.g-puzzle .fb{width:100%;margin-inline:auto}
.g-puzzle .fb .speak{vertical-align:middle;width:36px;height:36px}
@media (max-width:560px){
  .g-puzzle .pz-top{gap:10px}
  .g-puzzle .pz-prev svg{width:118px}
  .g-puzzle .pz-prev svg[viewBox$=" 250 250"]{width:90px}
  .g-puzzle .pz-moves{padding:6px 10px;gap:2px 10px}
  .g-puzzle .pz-stat b{font-size:1.6rem}
  .g-puzzle .pz-moves small{font-size:.74rem}
  .g-puzzle .pz-tile{scale:.88;border-radius:7px}
  .g-puzzle .pz-tile.sl{scale:1;border-radius:4px}
  .g-puzzle .pz-board.slide{padding:2px;gap:2px}
  .g-puzzle .pz-num{min-width:18px;height:18px;line-height:14px;font-size:.7rem;top:2px;left:2px}
}
/* dark mode: the world's soft color is a light cream, so give this screen a dark warm tint instead */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .g-puzzle{--ws:color-mix(in srgb,#b5761a 26%,#1b2043)!important}}
:root[data-theme="dark"] .g-puzzle{--ws:color-mix(in srgb,#b5761a 26%,#1b2043)!important}
@media (prefers-reduced-motion: reduce){.g-puzzle .pz-tile.sel,.g-puzzle .pz-tile.nope,.g-puzzle .pz-rec,.g-puzzle .pz-shine{animation:none}}

/* ===== Draw the Flag ===== */
.g-flag .fl-stage{max-width:640px;background:#fff4dc}
.g-flag .fl-area.live{cursor:pointer}
.g-flag .fl-area.live .fl-hint{animation:flDrop 1.6s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.g-flag .fl-area.live:hover rect:first-child{fill:#fff3f3}
.g-flag .fl-area:focus{outline:none}
.g-flag .fl-area:focus-visible rect:first-child{fill:#ffe9ea}
@keyframes flDrop{50%{transform:translateY(-4px) scale(1.12)}}
.g-flag .fl-dot{cursor:pointer}
.g-flag .fl-dot:focus{outline:none}
.g-flag .fl-dot:focus-visible .fl-d{stroke:#2f6fd6;stroke-width:5}
.g-flag .fl-dot.next .fl-d{animation:flPulse 1s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes flPulse{50%{transform:scale(1.28);fill:#ffe066}}
.g-flag .fl-dot.wig{animation:flWig .45s ease;transform-box:fill-box;transform-origin:center}
@keyframes flWig{20%{transform:translateX(-7px)}40%{transform:translateX(7px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)}}
.g-flag .fl-done{animation:flGlow 1.4s ease-out both}
@keyframes flGlow{0%{stroke:#7dffb9;stroke-width:16}100%{stroke:#0a7d46;stroke-width:9}}
.g-flag .fl-spark{animation:flSpark 1.2s ease-out both;transform-box:fill-box;transform-origin:center}
@keyframes flSpark{0%{transform:scale(0) rotate(-90deg);opacity:0}60%{opacity:1}100%{transform:scale(1) rotate(0)}}
.g-flag .fl-choose{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;max-width:640px;width:100%;margin-inline:auto}
.g-flag .fl-ref{display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:800;color:var(--wc);font-size:.92rem}
.g-flag .fl-ref svg{width:96px;height:auto;display:block}
.g-flag .fl-pots{display:flex;gap:10px}
.g-flag .fl-pot{width:96px;height:96px;padding:6px;border:3px solid var(--line);background:var(--surface);border-radius:20px;display:grid;place-items:center;box-shadow:0 4px 0 var(--line)}
.g-flag .fl-pot svg{width:100%;height:100%;display:block}
.g-flag .fl-pot:hover{border-color:var(--wc)}
.g-flag .fl-pot:active{transform:translateY(2px);box-shadow:0 2px 0 var(--line)}
.g-flag .fl-pot.no{border-color:var(--bad);background:var(--bad-soft);animation:flShake .5s ease}
@keyframes flShake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.g-flag .fb{width:100%;margin-inline:auto}
.g-flag .fl-raise{background:#0a7d46;box-shadow:0 4px 0 #064f2c}
.g-flag .fl-raise:active{box-shadow:0 2px 0 #064f2c}
.g-flag .choices.fl-big .choice{font-size:1.6rem;min-height:72px}
.g-flag .choices .cart{max-width:120px}
.g-flag .choices.withart .cart svg{filter:drop-shadow(0 3px 0 rgba(26,32,66,.18))}
/* level 2 and 3: the flag rush */
.g-flag .fl-bestpill{text-align:center}
.g-flag .fl-bestpill .pill .st{color:#e9a312}
.g-flag .fl-ready{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:560px;width:100%;margin-inline:auto;text-align:center}
.g-flag .fl-fan{display:flex;justify-content:center;padding:8px 0 4px}
.g-flag .fl-fan span{display:block;width:96px;margin-inline:-14px;rotate:calc((var(--i) - 1.5) * 9deg);translate:0 calc(abs(var(--i) - 1.5) * 6px);filter:drop-shadow(0 4px 0 rgba(26,32,66,.2))}
.g-flag .fl-fan svg{display:block;width:100%;height:auto}
.g-flag .fl-rules{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px;font-size:1.05rem}
.g-flag .fl-rhead{display:flex;align-items:center;justify-content:space-between;gap:8px;max-width:680px;width:100%;margin-inline:auto}
.g-flag .fl-pts{font-weight:800;font-size:1.1rem}.g-flag .fl-pts b{font-size:1.6rem;color:var(--wc);font-variant-numeric:tabular-nums}
.g-flag .fl-combo{min-width:54px;text-align:center;font-weight:800;font-size:1.25rem;border-radius:999px;padding:2px 12px;background:var(--surface-2);color:var(--muted);border:3px solid var(--line)}
.g-flag .fl-combo.on{background:#ffc640;color:#1a2042;border-color:#1a2042}
.g-flag .fl-combo.pop{animation:flPop .45s cubic-bezier(.2,1.8,.4,1)}
@keyframes flPop{0%{scale:1}40%{scale:1.45}100%{scale:1}}
.g-flag .fl-timer{height:14px;border-radius:999px;background:var(--surface-2);border:2px solid var(--line);overflow:hidden;max-width:680px;width:100%;margin-inline:auto}
.g-flag .fl-timer i{display:block;height:100%;background:linear-gradient(90deg,#0a7d46,#2fc77a);border-radius:999px}
.g-flag .fl-timer i.low{background:linear-gradient(90deg,#c1272d,#ff7a6b)}
.g-flag .fl-big-flag{position:relative;max-width:300px;width:72%;margin-inline:auto;filter:drop-shadow(0 5px 0 rgba(26,32,66,.18))}
.g-flag .fl-big-flag svg{display:block;width:100%;height:auto}
.g-flag .fl-askname{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;background:var(--ws);border-radius:20px;padding:14px;max-width:680px;width:100%;margin-inline:auto}
.g-flag .fl-askname b{font-size:1.9rem;font-weight:800;line-height:1.1;text-align:center}
.g-flag .fl-askname .ar{font-size:1.4rem;color:var(--wc)}
.g-flag .fl-gain{position:absolute;right:6%;top:-6px;font-weight:800;font-size:1.6rem;color:#0a7d46;background:#fff;border:3px solid #0a7d46;border-radius:999px;padding:0 10px;animation:flGain .65s ease-out both}
@keyframes flGain{0%{translate:0 10px;opacity:0;scale:.6}40%{opacity:1;scale:1.1}100%{translate:0 -10px;opacity:1;scale:1}}
.g-flag .fl-q{text-align:center;font-weight:800;font-size:1.2rem}
.g-flag .fl-names .choice{min-height:70px;font-size:1.1rem}
.g-flag .fl-names .car{font-size:1rem}
.g-flag .fl-flags .choice{padding:8px}
.g-flag .fl-flags .cart{max-width:150px}
.g-flag .fl-flags .ct{font-size:.95rem}
.g-flag .fl-was{font-size:1.05rem;color:var(--ink)}
.g-flag .fl-over{display:flex;flex-direction:column;align-items:center;gap:8px;max-width:560px;width:100%;margin-inline:auto;text-align:center}
.g-flag .fl-score{display:flex;align-items:baseline;gap:8px}.g-flag .fl-score b{font-size:3rem;font-weight:800;color:var(--wc);line-height:1;font-variant-numeric:tabular-nums}.g-flag .fl-score span{font-weight:800;font-size:1.2rem}
.g-flag .fl-chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.g-flag .fl-rec{display:inline-flex;align-items:center;gap:6px;background:#ffc640;color:#1a2042;border:3px solid #1a2042;border-radius:999px;padding:4px 14px;font-weight:800;font-size:1.1rem;animation:flPop .6s cubic-bezier(.2,1.8,.4,1)}
.g-flag .fl-rec .st{color:#c1272d}
/* level 3: pixel embroidery and the geometry of the star */
.g-flag .fl-emb{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:14px;align-items:start;max-width:820px;width:100%;margin-inline:auto}
.g-flag .fl-hoop{max-width:none;background:#f6ead0;border-color:#8a5a1c;padding:2px}
.g-flag .fl-cells rect{cursor:pointer}
.g-flag .fl-cells rect:hover{fill:#fff;fill-opacity:.18}
.g-flag .fl-x.new{animation:flStitch .35s cubic-bezier(.2,1.8,.4,1);transform-box:fill-box;transform-origin:center}
@keyframes flStitch{0%{scale:.2;opacity:0}100%{scale:1;opacity:1}}
.g-flag .fl-bad{animation:flBad .9s ease-out forwards}
@keyframes flBad{0%,30%{opacity:1}100%{opacity:0}}
.g-flag .fl-show{animation:flPulse2 .8s ease-in-out 2}
@keyframes flPulse2{50%{fill-opacity:.9}}
.g-flag .fl-card{display:flex;flex-direction:column;gap:6px;background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:10px 12px}
.g-flag .fl-card > b{font-size:1.1rem}
.g-flag .fl-card p{font-size:.98rem;line-height:1.35}
.g-flag .fl-coords{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.g-flag .fl-co{text-align:center;font-weight:800;font-variant-numeric:tabular-nums;border-radius:10px;padding:4px 2px;background:var(--surface-2);border:2px solid var(--line);font-size:1.02rem}
.g-flag .fl-co.ok{background:var(--good-soft);border-color:var(--good);color:var(--muted);text-decoration:line-through}
.g-flag .fl-read{text-align:center;font-size:1rem;color:var(--muted)}
.g-flag .fl-read b{color:var(--ink);font-variant-numeric:tabular-nums}
.g-flag .fl-slip{color:var(--bad);font-weight:800}
.g-flag .fl-geo{max-width:560px;background:#fffaf0}
@media (max-width:560px){
  .g-flag .fl-pot{width:76px;height:76px}
  .g-flag .fl-ref svg{width:80px}
  .g-flag .fl-choose{gap:10px}
  .g-flag .fl-emb{grid-template-columns:minmax(0,1fr);gap:10px}
  .g-flag .fl-card{order:-1;padding:8px 10px;gap:4px}
  .g-flag .fl-card p{font-size:.9rem}
  .g-flag .fl-coords{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  .g-flag .fl-co{font-size:.95rem}
  .g-flag .fl-fan span{width:76px}
  .g-flag .fl-askname b{font-size:1.5rem}
  .g-flag .fl-big-flag{width:84%}
}
@media (min-width:561px) and (max-width:760px){.g-flag .fl-emb{grid-template-columns:minmax(0,1fr) 190px}}
/* dark mode: the world's soft color is a light cream, so give this screen a dark warm tint instead */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .g-flag{--ws:color-mix(in srgb,#b5761a 26%,#1b2043)!important}}
:root[data-theme="dark"] .g-flag{--ws:color-mix(in srgb,#b5761a 26%,#1b2043)!important}
@media (prefers-reduced-motion: reduce){.g-flag .fl-x.new,.g-flag .fl-combo.pop,.g-flag .fl-gain,.g-flag .fl-rec,.g-flag .fl-show,.g-flag .fl-dot.next .fl-d,.g-flag .fl-area.live .fl-hint{animation:none}}

/* ===== Lost in the Medina ===== */
/* readable in light and dark mode: the world soft color is light in both, so mix the world color with the surface instead */
.g-medina .ask,.g-medina .fact{background:color-mix(in srgb,var(--wc) 20%,var(--surface))}
.g-medina .md-route{display:flex;align-items:center;justify-content:center;gap:6px 10px;flex-wrap:wrap;background:color-mix(in srgb,var(--wc) 20%,var(--surface));border-radius:20px;padding:8px 12px;max-width:900px;width:100%;margin-inline:auto}
.g-medina .md-end{display:flex;align-items:center;gap:8px;min-width:0}
.g-medina .md-ico svg{width:46px;height:46px;display:block}
.g-medina .md-nm{display:flex;flex-direction:column;line-height:1.1;text-align:start}
.g-medina .md-nm b{font-size:1.05rem}
.g-medina .md-nm .ar{font-size:.95rem;color:var(--wc)}
.g-medina .md-to{font-size:1.5rem;font-weight:800;color:var(--wc)}
.g-medina .md-play{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:14px;align-items:start;max-width:900px;width:100%;margin-inline:auto}
.g-medina .md-stage{background:#cfdca6;max-width:none}
.g-medina .md-side{display:flex;flex-direction:column;gap:12px;min-width:0}
.g-medina .md-bag{display:flex;flex-direction:column;gap:8px;background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:10px 12px}
.g-medina .md-lbl{font-size:.95rem;color:var(--muted)}
.g-medina .md-slots{display:flex;gap:8px;flex-wrap:wrap}
.g-medina .md-slot{display:flex;flex-direction:column;align-items:center;gap:2px;width:64px;text-align:center;font-weight:700;line-height:1.1}
.g-medina .md-slot svg{width:48px;height:48px;display:block;border-radius:14px;background:var(--surface-2);padding:4px;border:2px dashed var(--line);filter:grayscale(1);opacity:.5}
.g-medina .md-slot small{font-size:.74rem;color:var(--muted)}
.g-medina .md-slot.on svg{filter:none;opacity:1;border:2px solid var(--good);background:var(--good-soft);animation:mdgot .5s cubic-bezier(.2,1.6,.4,1)}
.g-medina .md-slot.on small{color:var(--ink)}
@keyframes mdgot{0%{transform:scale(.4)}100%{transform:scale(1)}}
.g-medina .md-steps{display:flex;align-items:center;gap:8px;font-weight:700}
.g-medina .md-steps .md-num{font-size:2rem;font-weight:800;color:var(--wc);line-height:1;font-variant-numeric:tabular-nums;min-width:1.4em;text-align:center}
.g-medina .md-steps small{display:flex;align-items:center;gap:4px;font-size:.82rem;color:var(--muted);font-weight:600}
.g-medina .md-steps .stars{font-size:.8rem}
.g-medina .md-walk{font-size:.85rem;color:var(--muted);font-weight:700}
.g-medina .md-ctl{display:flex;flex-direction:column;align-items:center;gap:10px}
.g-medina .md-pad{display:grid;grid-template-columns:repeat(3,62px);grid-template-rows:repeat(3,62px);gap:6px;justify-content:center}
.g-medina .md-dir{border:3px solid var(--line);background:var(--surface);border-radius:18px;display:grid;place-items:center;color:var(--ink);box-shadow:0 4px 0 var(--line);padding:0}
.g-medina .md-dir svg{width:30px;height:30px}
.g-medina .md-dir:not(:disabled){border-color:var(--wc);color:var(--wc)}
.g-medina .md-dir:not(:disabled):active{transform:translateY(2px);box-shadow:0 2px 0 var(--line)}
.g-medina .md-dir:disabled{opacity:.28;box-shadow:none;cursor:default}
.g-medina .md-u{grid-area:1/2}.g-medina .md-l{grid-area:2/1}.g-medina .md-r{grid-area:2/3}.g-medina .md-d{grid-area:3/2}
.g-medina .md-padc{grid-area:2/2;display:grid;place-items:center;border-radius:50%;background:var(--ws)}
.g-medina .md-padc svg{width:34px;height:34px}
.g-medina .md-done{display:flex;flex-direction:column;gap:12px;align-items:center}
.g-medina .md-done .fb{width:100%}
.g-medina .md-found{margin-inline:auto;width:100%;max-width:900px;animation:mdin .35s ease-out}
.g-medina .md-found .md-fico svg{width:52px;height:52px;display:block;background:#fff;border-radius:50%;border:3px solid var(--wc);padding:4px}
.g-medina .md-found .ar{color:var(--wc)}
@keyframes mdin{from{transform:translateY(-8px);opacity:0}to{transform:none;opacity:1}}
.g-medina .md-hit{cursor:pointer}
.g-medina .md-hit:focus{outline:none}
.g-medina .md-hit:focus-visible{fill:#2f6fd6;fill-opacity:.18}
.g-medina .md-next circle{animation:mdpulse 1.2s ease-in-out infinite}
.g-medina .md-glow{animation:mdpulse 1.4s ease-in-out infinite}
@keyframes mdpulse{0%,100%{stroke-opacity:1}50%{stroke-opacity:.25}}
.g-medina .md-book{display:flex;flex-direction:column;gap:12px;max-width:760px;width:100%;margin-inline:auto}
.g-medina .md-pic{max-width:none}
.g-medina .md-txt{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.g-medina .md-txt p{font-size:1.2rem;line-height:1.45}
.g-medina .md-txt .sub{font-size:1rem}
.g-medina .md-txt .speak{vertical-align:middle}
.g-medina .md-qpic{width:130px;margin-inline:auto;line-height:0}
.g-medina .md-qpic svg{display:block;width:100%;height:auto}
/* levels 2 and 3: delivery missions */
.g-medina .md-mhead{justify-content:space-between}
.g-medina .md-nm span:not(.ar){font-size:.85rem;color:var(--muted);font-weight:700}
.g-medina .md-best{display:flex;flex-direction:column;align-items:center;line-height:1.1;font-size:.8rem;font-weight:700;color:var(--muted);text-align:center}
.g-medina .md-best b{font-size:1.35rem;color:var(--wc)}
.g-medina .md-mapcol{display:flex;flex-direction:column;gap:10px;min-width:0}
.g-medina .md-orders{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
.g-medina .md-ord{display:grid;grid-template-columns:30px 34px minmax(0,1fr);align-items:center;gap:6px;font-weight:700;border-radius:12px;padding:2px 6px 2px 2px}
.g-medina .md-ord small{font-size:.86rem;line-height:1.1}
.g-medina .md-oi svg{width:32px;height:32px;display:block}
.g-medina .md-ord.on{background:color-mix(in srgb,#ffc640 30%,var(--surface))}
.g-medina .md-ord.done{opacity:.55}.g-medina .md-ord.done small{text-decoration:line-through}
.g-medina .md-ord.done .md-no{background:var(--good)}
.g-medina .md-no{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--dc);color:#fff;font-weight:800;font-size:1rem;border:2.5px solid #1a2042;flex:none}
.g-medina .md-donk{display:flex;align-items:center;gap:6px;border-top:2px dashed var(--line);padding-top:6px}
.g-medina .md-dk svg{width:60px;height:42px;display:block}
.g-medina .md-dslot{position:relative;width:44px;height:44px;border-radius:12px;border:2px dashed var(--line);background:var(--surface-2);display:grid;place-items:center}
.g-medina .md-dslot.on{border:2px solid var(--wc);background:var(--ws);animation:mdgot .4s cubic-bezier(.2,1.6,.4,1)}
.g-medina .md-dslot svg{width:34px;height:34px}
.g-medina .md-dslot .md-no{position:absolute;right:-8px;top:-8px;width:22px;height:22px;font-size:.78rem;border-width:2px}
.g-medina .md-clock{display:flex;flex-direction:column;align-items:center;margin-inline-start:auto;line-height:1.05}
.g-medina .md-clock b{font-size:1.5rem;font-variant-numeric:tabular-nums;color:var(--ink)}
.g-medina .md-clock small{font-size:.75rem;color:var(--muted)}
.g-medina .md-clock.low b{color:#e0913a}
.g-medina .md-clock.late b{color:var(--bad)}
.g-medina .md-load{background:color-mix(in srgb,#ffc640 26%,var(--surface));border:3px solid #ffc640;border-radius:18px;padding:10px 12px;display:flex;flex-direction:column;gap:8px;animation:mdin .3s ease-out}
.g-medina .md-lbtns{display:flex;gap:8px;flex-wrap:wrap}
.g-medina .md-lb{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;width:84px;min-height:84px;padding:8px 4px 6px;border-radius:16px;border:3px solid var(--line);background:var(--surface);color:var(--ink);font-weight:700}
.g-medina .md-lb svg{width:38px;height:38px}
.g-medina .md-lb small{font-size:.74rem;line-height:1.1;text-align:center}
.g-medina .md-lb .md-no{position:absolute;left:-6px;top:-6px;width:24px;height:24px;font-size:.82rem}
.g-medina .md-lb.on{border-color:var(--good);background:var(--good-soft)}
.g-medina .md-lb.on::after{content:"✓";position:absolute;right:6px;top:2px;color:var(--good);font-weight:800}
.g-medina .md-score{display:flex;flex-direction:column;align-items:center;line-height:1}
.g-medina .md-score b{font-size:2.6rem;font-weight:800;color:var(--wc)}
.g-medina .md-score span{font-weight:800;color:var(--muted)}
.g-medina .md-cmp{text-align:center;font-weight:600;line-height:1.5}
.g-medina .md-key{display:inline-block;width:22px;height:6px;border-radius:3px;margin-inline-end:6px;vertical-align:middle}
.g-medina .md-key.you{background:repeating-linear-gradient(90deg,#e0913a 0 4px,transparent 4px 8px)}
.g-medina .md-key.short{background:repeating-linear-gradient(90deg,#0a7d46 0 9px,transparent 9px 13px)}
.g-medina .md-recb{display:inline-flex;align-items:center;gap:6px;background:#ffc640;color:#1a2042;border:3px solid #1a2042;border-radius:999px;padding:4px 14px;font-weight:800;animation:mdgot .6s cubic-bezier(.2,1.6,.4,1)}
.g-medina .md-recb .st{color:#c1272d}
.g-medina .md-waitc{background:color-mix(in srgb,var(--bad) 14%,var(--surface))}
.g-medina .md-mine circle:first-child{animation:mdpulse 1.1s ease-in-out infinite}
@media (max-width:760px){
  .g-medina .md-play{grid-template-columns:minmax(0,1fr);gap:10px}
  .g-medina .md-side{flex-direction:row;align-items:flex-start;gap:10px}
  .g-medina .md-bag{flex:1;min-width:0;padding:8px 10px}
  .g-medina .md-slots{gap:3px}
  .g-medina .md-slot{width:44px}
  .g-medina .md-hintb{font-size:.82rem;padding:6px 10px;max-width:166px;white-space:normal;line-height:1.15}
  .g-medina .md-slot svg{width:40px;height:40px}
  .g-medina .md-slot small{font-size:.66rem}
  .g-medina .md-pad{grid-template-columns:repeat(3,52px);grid-template-rows:repeat(3,52px);gap:5px}
  .g-medina .md-dir svg{width:26px;height:26px}
  .g-medina .md-done{flex:1}
  .g-medina .md-route{flex-wrap:nowrap;gap:6px;padding:8px 10px;justify-content:space-between}
  .g-medina .md-end{gap:5px}
  .g-medina .md-to{display:none}
  .g-medina .md-ico svg{width:34px;height:34px}
  .g-medina .md-nm b{font-size:.86rem}
  .g-medina .md-nm .ar{font-size:.8rem}
  .g-medina .md-side.arr{flex-direction:column;align-items:stretch}
  .g-medina .md-txt p{font-size:1.08rem}
  .g-medina .md-best{font-size:.7rem}.g-medina .md-best b{font-size:1.1rem}
  .g-medina .md-ord{grid-template-columns:26px 28px minmax(0,1fr);gap:4px;padding:1px 4px 1px 1px}
  .g-medina .md-no{width:24px;height:24px;font-size:.85rem}
  .g-medina .md-oi svg{width:26px;height:26px}
  .g-medina .md-ord small{font-size:.74rem}
  .g-medina .md-dk svg{width:44px;height:32px}
  .g-medina .md-dslot{width:38px;height:38px}.g-medina .md-dslot svg{width:28px;height:28px}
  .g-medina .md-clock b{font-size:1.2rem}
  .g-medina .md-lb{width:74px;min-height:76px}
}
@media (prefers-reduced-motion: reduce){.g-medina .md-mine circle:first-child,.g-medina .md-next circle,.g-medina .md-glow,.g-medina .md-load,.g-medina .md-recb,.g-medina .md-dslot.on{animation:none}}

/* ===== Treasure Memory ===== */
/* readable in light and dark mode: the world soft color is light in both, so mix the world color with the surface instead */
.g-memory .ask,.g-memory .fact{background:color-mix(in srgb,var(--wc) 20%,var(--surface))}
.g-memory .mm-bar{display:flex;align-items:center;justify-content:center;gap:8px 14px;flex-wrap:wrap;background:color-mix(in srgb,var(--wc) 20%,var(--surface));border-radius:20px;padding:8px 14px;max-width:900px;width:100%;margin-inline:auto}
.g-memory .mm-stat{font-weight:700;color:var(--muted)}
.g-memory .mm-stat b{font-size:1.4rem;color:var(--wc);font-variant-numeric:tabular-nums}
.g-memory .mm-bd{font-size:.9rem}
.g-memory .mm-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%;max-width:560px;margin-inline:auto}
.g-memory .mm-card{position:relative;display:block;aspect-ratio:5/6;border:0;padding:0;background:none;perspective:800px;min-width:0;border-radius:16px;color:var(--ink)}
.g-memory .mm-card:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.g-memory .mm-in{position:absolute;inset:0;display:block;transform-style:preserve-3d;transition:transform .5s cubic-bezier(.3,1.35,.5,1)}
.g-memory .mm-card.up .mm-in{transform:rotateY(180deg)}
.g-memory .mm-face{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:16px;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden;border:3px solid #1a2042;box-shadow:0 4px 0 rgba(26,32,66,.25)}
.g-memory .mm-back svg{display:block;width:100%;height:100%}
.g-memory .mm-front{transform:rotateY(180deg);background:var(--cbg,#fff);color:#1a2042;padding:6px 4px;gap:2px}
.g-memory .mm-card:not(.up):not(.done):hover .mm-in{transform:rotateY(10deg)}
.g-memory .mm-art{display:block;width:100%;flex:1;min-height:0;display:grid;place-items:center}
.g-memory .mm-art svg{display:block;width:100%;height:100%;max-height:100%}
.g-memory .mm-name{display:flex;flex-direction:column;align-items:center;line-height:1.05;text-align:center;font-size:.86rem}
.g-memory .mm-name b{font-weight:800}
.g-memory .mm-name .ar,.g-memory .mm-word .ar{color:#5b6388;font-size:.82rem}
.g-memory .mm-word{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;line-height:1.1;height:100%;width:100%;padding:4px;background:repeating-linear-gradient(45deg,rgba(181,118,26,.07) 0 6px,transparent 6px 12px)}
.g-memory .mm-word b{font-size:1.15rem;font-weight:800;overflow-wrap:normal;word-break:normal;hyphens:none}
.g-memory .mm-word small{font-size:.75rem;color:#137f5f;font-weight:700}
.g-memory .mm-wico svg{width:30px;height:30px;display:block}
.g-memory .mm-card.word .mm-front{background:#fffaf0}
.g-memory .mm-card.done .mm-front{border-color:#137f5f;box-shadow:0 0 0 3px #2fc77a,0 4px 0 rgba(26,32,66,.25)}
.g-memory .mm-card.done{cursor:default}
.g-memory .mm-card.fresh{animation:mmok .6s cubic-bezier(.2,1.6,.4,1) .35s both}
@keyframes mmok{0%{transform:scale(1)}40%{transform:scale(1.12) rotate(-3deg)}100%{transform:scale(1)}}
.g-memory .mm-fact{margin-inline:auto;width:100%;max-width:640px;animation:mmin .35s ease-out}
.g-memory .mm-fart svg{width:72px;height:60px;display:block;background:#fff;border-radius:14px;border:2px solid var(--line)}
.g-memory .mm-fact .ar{color:var(--wc)}
.g-memory .mm-link{font-weight:800;color:var(--wc)}
.g-memory .mm-tip{min-height:2.5em;display:grid;place-items:center}
@keyframes mmin{from{transform:translateY(6px);opacity:0}to{transform:none;opacity:1}}
@media (min-width:900px){
  .g-memory .mm-grid.mm-n8{grid-template-columns:repeat(4,minmax(0,1fr));max-width:600px}
  .g-memory .mm-grid.mm-n12{grid-template-columns:repeat(6,minmax(0,1fr));max-width:860px}
  .g-memory .mm-grid.mm-n16{grid-template-columns:repeat(8,minmax(0,1fr));max-width:1000px}
  .g-memory .mm-name{font-size:.92rem}
}
@media (max-width:560px){
  .g-memory .mm-grid{gap:7px}
  .g-memory .mm-card{aspect-ratio:4/5}
  .g-memory .mm-face{border-radius:12px;border-width:2.5px}
  .g-memory .mm-name{font-size:.68rem}
  .g-memory .mm-name .ar,.g-memory .mm-word .ar{font-size:.7rem}
  .g-memory .mm-word{padding:2px 1px;gap:2px}
  .g-memory .mm-word b{font-size:.78rem;letter-spacing:-.01em;line-height:1.05}
  .g-memory .mm-word small{font-size:.62rem}
  .g-memory .mm-wico svg{width:20px;height:20px}
  .g-memory .mm-fart svg{width:58px;height:48px}
}
@media (prefers-reduced-motion:reduce){.g-memory .mm-in{transition:none}.g-memory .mm-card.fresh{animation:none}}
/* ===== version 2: clock, combos, records, triples, shuffle twists ===== */
.g-memory .mm-ico{width:22px;height:22px;display:inline-block;vertical-align:-5px;margin-inline-end:3px}
.g-memory .mm-clock b{color:var(--ink)}
.g-memory .mm-pts{position:relative;display:inline-flex;align-items:center;gap:4px}
.g-memory .mm-combo{display:inline-grid;place-items:center;min-width:38px;height:30px;padding:0 6px;border-radius:999px;background:#ffc640;color:#1a2042;font-weight:800;font-size:1.05rem;border:2px solid #1a2042;margin-inline-start:4px}
.g-memory .mm-combo.pop{animation:mmcombo .55s cubic-bezier(.2,1.8,.4,1)}
@keyframes mmcombo{0%{transform:scale(.4) rotate(-20deg)}60%{transform:scale(1.35) rotate(6deg)}100%{transform:none}}
.g-memory .mm-plus{position:absolute;inset-inline-end:-6px;top:-18px;font-weight:800;color:var(--good);font-size:1.05rem;pointer-events:none;animation:mmplus 1.1s ease-out both}
@keyframes mmplus{0%{opacity:0;transform:translateY(8px)}20%{opacity:1}100%{opacity:0;transform:translateY(-16px)}}
.g-memory .mm-tw{display:inline-flex;align-items:center;font-size:.92rem;color:var(--muted)}
.g-memory .mm-tw b{font-size:1.1rem;margin-inline:3px}
.g-memory .mm-tw.hot{color:#c1272d}
.g-memory .mm-tw.hot b{color:#c1272d}
.g-memory .mm-tw.now{animation:mmcombo .6s cubic-bezier(.2,1.8,.4,1)}
.g-memory .mm-tw.now b{margin-inline:2px}
.g-memory .mm-tip{gap:6px}
.g-memory .mm-best{display:inline-flex;align-items:center;gap:4px;background:color-mix(in srgb,#ffc640 30%,var(--surface));color:var(--ink);font-weight:800}
.g-memory .mm-best .st,.g-memory .mm-rec .st{width:18px;height:18px;color:var(--star)}
.g-memory .mm-recrow{margin-top:6px}
.g-memory .mm-rec{display:inline-flex;align-items:center;gap:4px;font-size:1.05rem;animation:mmcombo .6s cubic-bezier(.2,1.8,.4,1) .4s both}
.g-memory .mm-was{display:inline-flex;font-weight:700}
.g-memory .mm-card.nm .mm-front{background:#eef5ff}
.g-memory .mm-card.nm .mm-word{background:repeating-linear-gradient(-45deg,rgba(47,111,214,.08) 0 6px,transparent 6px 12px)}
.g-memory .mm-card.nm .mm-word b{color:#1b4f9c}
.g-memory .mm-card.swapped{z-index:2}
.g-memory .mm-card.swapped .mm-back{box-shadow:0 0 0 4px #ffc640,0 0 18px 4px rgba(255,198,64,.8);animation:mmglow 1.4s ease-in-out 2}
@keyframes mmglow{50%{box-shadow:0 0 0 4px #c1272d,0 0 22px 6px rgba(193,39,45,.6)}}
/* level 3: 18 or 24 cards; rows stay centered */
.g-memory .mm-grid.mm-tri{display:flex;flex-wrap:wrap;justify-content:center;--per:4;--gap:7px;gap:var(--gap);max-width:560px}
.g-memory .mm-tri .mm-card{flex:0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));aspect-ratio:5/6}
@media (min-width:640px){.g-memory .mm-grid.mm-tri{--per:6;--gap:9px;max-width:780px}}
@media (min-width:1000px){.g-memory .mm-grid.mm-tri.mm-t24{--per:8;max-width:980px}}
@media (min-width:640px) and (max-width:999px){.g-memory .mm-tri .mm-word b{font-size:.9rem}}
@media (max-width:560px){.g-memory .mm-tri .mm-card{aspect-ratio:5/6}.g-memory .mm-combo{min-width:32px;height:26px;font-size:.95rem}.g-memory .mm-bar{gap:6px 10px;padding:8px 10px}.g-memory .mm-stat b{font-size:1.25rem}}
@media (prefers-reduced-motion:reduce){.g-memory .mm-combo.pop,.g-memory .mm-plus,.g-memory .mm-rec,.g-memory .mm-card.swapped .mm-back{animation:none}}

/* ===== Tifinagh Magic ===== */
/* readable in light and dark mode: the world soft color is light in both, so mix the world color with the surface instead */
.g-tifinagh .ask,.g-tifinagh .fact{background:color-mix(in srgb,var(--wc) 20%,var(--surface))}
.g-tifinagh .tf-g{display:block;width:100%;height:auto}
.g-tifinagh .tf-slate{max-width:520px;width:100%;margin-inline:auto;border-radius:18px;overflow:hidden;border:3px solid var(--wc);line-height:0;background:#1b2a5c}
.g-tifinagh .tf-slate svg{display:block;width:100%;height:auto}
.g-tifinagh .tf-magic path,.g-tifinagh .tf-draw path{stroke-dasharray:1 2;stroke-dashoffset:0;animation:tfdraw .75s ease-out both;animation-delay:calc(var(--i,0) * .32s + .15s)}
.g-tifinagh .tf-nt .tf-draw path{animation-delay:calc(var(--k,0) * .28s + var(--i,0) * .22s + .2s)}
.g-tifinagh .tf-still path,.g-tifinagh .tf-still .tf-draw path,.g-tifinagh .tf-nt.tf-still path{animation:none}
@keyframes tfdraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
.g-tifinagh .tf-tw{animation:tftw 1.8s ease-in-out infinite;animation-delay:var(--d,0s)}
@keyframes tftw{0%,100%{opacity:1}50%{opacity:.25}}
.g-tifinagh .tf-letters .choice{padding:10px 6px 8px;min-height:96px}
.g-tifinagh .tf-letters .cart{max-width:110px}
.g-tifinagh .tf-letters .choice .cart svg{color:var(--ink)}
.g-tifinagh .tf-letters .choice.yes .cart svg{color:var(--good)}
.g-tifinagh .tf-letters .choice.no .cart svg{color:var(--bad)}
.g-tifinagh .tf-nm{font-size:1.15rem;font-weight:800}
.g-tifinagh .tf-say{color:var(--wc);font-size:1.15em}
.g-tifinagh .tf-ear{width:120px;margin-inline:auto;line-height:0}
.g-tifinagh .tf-ear svg{display:block;width:100%;height:auto}
.g-tifinagh .tf-flagrow{display:flex;align-items:center;gap:10px;margin-top:8px;flex-wrap:wrap}
.g-tifinagh .tf-flag{max-width:150px;height:auto;display:block}
.g-tifinagh .tf-decode{display:flex;flex-direction:column;gap:12px;max-width:720px;width:100%;margin-inline:auto}
.g-tifinagh .tf-wordbox{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:6px 22px;color:var(--ink)}
.g-tifinagh .tf-wordbox .tf-word{height:clamp(62px,26vw,140px);width:auto;max-width:100%}
.g-tifinagh .tf-word{display:block}
.g-tifinagh .tf-wl{cursor:pointer}
.g-tifinagh .tf-wl rect{fill:var(--surface-2);stroke:var(--line);stroke-width:2}
.g-tifinagh .tf-wl.on rect{fill:color-mix(in srgb,#ffc640 30%,var(--surface));stroke:#e9a312}
.g-tifinagh .tf-word text{fill:var(--wc)}
.g-tifinagh .tf-wl:focus{outline:none}.g-tifinagh .tf-wl:focus-visible rect{stroke:#2f6fd6;stroke-width:4}
.g-tifinagh .tf-key{display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center}
.g-tifinagh .tf-key > b{font-size:.95rem;color:var(--muted)}
.g-tifinagh .tf-keys{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.g-tifinagh .tf-kt{display:flex;flex-direction:column;align-items:center;width:58px;padding:4px 4px 2px;border-radius:12px;background:color-mix(in srgb,var(--wc) 14%,var(--surface));border:2px solid var(--line)}
.g-tifinagh .tf-kt svg{width:40px;height:40px;color:var(--ink)}
.g-tifinagh .tf-kt b{font-size:1.1rem;color:var(--wc);line-height:1.1}
.g-tifinagh .tf-wopts .choice{font-size:1.25rem}
.g-tifinagh .tf-mean{display:block;font-size:.85rem;font-weight:600;color:var(--muted)}
.g-tifinagh .tf-pic{max-width:520px}
.g-tifinagh .tf-name{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;max-width:820px;width:100%;margin-inline:auto;overflow:hidden}
.g-tifinagh .tf-name .h2{font-size:1.8rem}
.g-tifinagh .tf-band{width:100%;line-height:0}
.g-tifinagh .tf-band svg{display:block;width:100%;height:16px}
.g-tifinagh .tf-tiles{display:flex;flex-wrap:wrap;gap:14px 30px;justify-content:center;max-width:100%}
.g-tifinagh .tf-wt{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;max-width:100%}
.g-tifinagh .tf-nt{display:flex;flex-direction:column;align-items:center;gap:2px;width:88px;padding:8px 6px 6px;border-radius:18px;border:3px solid var(--wc);background:#fff8e6;color:#1a2042;box-shadow:0 4px 0 color-mix(in srgb,var(--wc) 45%,transparent)}
.g-tifinagh .tf-nt svg{width:70px;height:70px}
.g-tifinagh .tf-nt b{font-size:1.15rem;color:#b5761a;min-height:1.3em}
.g-tifinagh .tf-fontline{font-size:2.2rem;color:var(--wc);line-height:1.2;overflow-wrap:anywhere;max-width:100%}
@media (max-width:560px){
  .g-tifinagh .tf-letters .choice{min-height:86px}
  .g-tifinagh .tf-nt{width:66px;border-radius:14px}
  .g-tifinagh .tf-wt{gap:8px}
  .g-tifinagh .tf-nt svg{width:52px;height:52px}
  .g-tifinagh .tf-kt{width:50px}
  .g-tifinagh .tf-kt svg{width:34px;height:34px}
  .g-tifinagh .tf-wopts .choice{font-size:1.08rem}
}
@media (prefers-reduced-motion:reduce){.g-tifinagh .tf-magic path,.g-tifinagh .tf-draw path,.g-tifinagh .tf-tw{animation:none}}
/* ===== version 2: stages, speed round, keyboard, race ===== */
.g-tifinagh{--tint:color-mix(in srgb,var(--wc) 14%,var(--surface))}
.g-tifinagh .tf-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 10px;text-align:center;max-width:720px;width:100%;margin-inline:auto}
.g-tifinagh .tf-stage{font-weight:700;color:var(--muted);font-size:.95rem}
.g-tifinagh .tf-ttl{font-size:1.3rem;font-weight:800;color:var(--wc)}
.g-tifinagh .tf-chips{display:inline-flex;gap:6px;flex-wrap:wrap;justify-content:center}
.g-tifinagh .tf-pts{background:var(--tint);color:var(--ink);font-weight:700}
.g-tifinagh .tf-pts b{color:var(--wc);font-size:1.1rem}
.g-tifinagh .tf-best{display:inline-flex;align-items:center;gap:4px;background:color-mix(in srgb,#ffc640 30%,var(--surface));color:var(--ink);font-weight:800}
.g-tifinagh .tf-best .st,.g-tifinagh .tf-rec .st{width:18px;height:18px;color:var(--star)}
.g-tifinagh .panel.tf-spd,.g-tifinagh .panel.tf-race,.g-tifinagh .panel.tf-spell{position:relative;display:flex;flex-direction:column;gap:12px;max-width:720px;width:100%;margin-inline:auto;padding:14px}
/* the hourglass bar */
.g-tifinagh .tf-timer{display:grid;grid-template-columns:30px minmax(0,1fr) 34px;align-items:center;gap:8px}
.g-tifinagh .tf-glass svg{width:30px;height:30px;display:block}
.g-tifinagh .tf-timer:not(.off) .tf-glass svg{animation:tfspin 2s ease-in-out infinite}
@keyframes tfspin{0%,70%{transform:none}100%{transform:rotate(180deg)}}
.g-tifinagh .tf-track{height:16px;border-radius:999px;background:var(--surface-2);border:2px solid var(--line);overflow:hidden}
.g-tifinagh .tf-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#e9a312,#f2c27a)}
.g-tifinagh .tf-timer b{font-size:1.25rem;font-variant-numeric:tabular-nums;text-align:end;color:var(--wc)}
.g-tifinagh .tf-go{position:absolute;inset:0;display:grid;place-items:center;background:color-mix(in srgb,var(--surface) 72%,transparent);border-radius:inherit;z-index:3}
.g-tifinagh .tf-go .btn{font-size:1.35rem;box-shadow:0 6px 0 color-mix(in srgb,var(--wc) 50%,#000)}
/* speed round */
.g-tifinagh .tf-sbar{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:700;color:var(--muted);position:relative}
.g-tifinagh .tf-sbar b{color:var(--ink);font-size:1.3rem}
.g-tifinagh .tf-combo{display:inline-grid;place-items:center;min-width:46px;height:34px;border-radius:999px;background:#ffc640;color:#1a2042;font-weight:800;font-size:1.2rem;border:2px solid #1a2042;animation:tfcombo .45s cubic-bezier(.2,1.8,.4,1)}
.g-tifinagh .tf-combo.off{background:var(--surface-2);color:var(--muted);border-color:var(--line);animation:none}
@keyframes tfcombo{0%{transform:scale(.5)}60%{transform:scale(1.3)}100%{transform:none}}
.g-tifinagh .tf-plus{position:absolute;left:50%;top:-14px;transform:translateX(30px);color:var(--good);font-weight:800;font-size:1.1rem;animation:tfplus 1s ease-out both;pointer-events:none}
@keyframes tfplus{0%{opacity:0;translate:0 8px}25%{opacity:1}100%{opacity:0;translate:0 -14px}}
.g-tifinagh .tf-target .tf-slate{max-width:300px;animation:tfpop .28s cubic-bezier(.2,1.5,.4,1)}
@keyframes tfpop{from{transform:scale(.85);opacity:.4}to{transform:none;opacity:1}}
.g-tifinagh .tf-opts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.g-tifinagh .tf-opts.n8{grid-template-columns:repeat(4,minmax(0,1fr))}
.g-tifinagh .tf-opt{position:relative;display:grid;place-items:center;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:16px;padding:8px;min-height:76px;min-width:0}
.g-tifinagh .tf-opt svg{width:100%;max-width:66px;height:auto}
.g-tifinagh .tf-opt:hover:not(:disabled){border-color:var(--wc)}
.g-tifinagh .tf-opt.bad{border-color:var(--bad);background:var(--bad-soft);color:var(--bad);animation:tfshake .35s}
.g-tifinagh .tf-opt.right{border-color:var(--good);background:var(--good-soft);color:var(--good)}
.g-tifinagh .tf-opt:disabled{cursor:default}
@keyframes tfshake{20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
.g-tifinagh .tf-k{position:absolute;top:3px;inset-inline-start:7px;font-size:.75rem;font-weight:700;color:var(--muted)}
@media (hover:none){.g-tifinagh .tf-k{display:none}}
/* the race */
.g-tifinagh .tf-msg{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:8px;border-radius:14px;background:#f6e7c8;border:2px dashed #c9a66b;color:#1a2042}
.g-tifinagh .tf-mw{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 8px;border-radius:12px;min-width:0;max-width:100%;color:#7d6a4a}
.g-tifinagh .tf-mw .tf-word{height:28px;width:auto;max-width:100%}
.g-tifinagh .tf-mw small{font-size:.78rem;line-height:1.1;text-align:center;color:#6b5a3e}
.g-tifinagh .tf-mw.now{background:#fff;color:#1a2042;box-shadow:0 0 0 3px #e9a312}
.g-tifinagh .tf-mw.ok{color:#137f5f}
.g-tifinagh .tf-mw.ok small{color:#137f5f}
.g-tifinagh .tf-cur{display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--ink)}
.g-tifinagh .tf-cur .tf-word{height:clamp(56px,20vw,96px);width:auto;max-width:100%}
.g-tifinagh .tf-ropts{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-tifinagh .tf-ropt{position:relative;font-size:1.25rem}
.g-tifinagh .tf-hintbtn{align-self:center;display:inline-flex;align-items:center;gap:6px}
.g-tifinagh .tf-bulb{width:22px;height:22px}
/* the keyboard */
.g-tifinagh .tf-tgt{display:flex;flex-direction:column;align-items:center;text-align:center;gap:0}
.g-tifinagh .tf-what{font-weight:700;color:var(--muted)}
.g-tifinagh .tf-word1{font-size:1.7rem;line-height:1.15;color:var(--wc)}
.g-tifinagh .tf-cnt{font-size:.9rem;color:var(--muted);font-weight:700;margin-top:2px}
.g-tifinagh .tf-clock{font-variant-numeric:tabular-nums;color:var(--ink)}
.g-tifinagh .tf-slots{display:flex;justify-content:center;gap:5px;width:100%}
.g-tifinagh .tf-slot{flex:1 1 0;max-width:58px;min-width:0;aspect-ratio:4/5;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:12px;border:3px dashed var(--line);background:var(--surface-2);color:var(--ink);padding:3px}
.g-tifinagh .tf-slot svg{width:100%;height:auto}
.g-tifinagh .tf-slot small{font-weight:800;color:var(--muted);font-size:.85rem;line-height:1}
.g-tifinagh .tf-slot.now{border-style:solid;border-color:var(--wc);background:var(--tint);animation:tfnow 1.2s ease-in-out infinite}
.g-tifinagh .tf-slot.now small{color:var(--wc)}
.g-tifinagh .tf-slot.ok{border-style:solid;border-color:var(--good);background:var(--good-soft);color:var(--good)}
@keyframes tfnow{50%{box-shadow:0 0 0 4px color-mix(in srgb,var(--wc) 30%,transparent)}}
.g-tifinagh .tf-gap{flex:0 0 12px}
.g-tifinagh .tf-kbd{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
@media (min-width:640px){.g-tifinagh .tf-kbd{grid-template-columns:repeat(6,minmax(0,1fr))}}
.g-tifinagh .tf-keyb{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:64px;border:3px solid var(--line);border-bottom-width:6px;background:var(--surface);color:var(--ink);border-radius:14px;padding:6px 4px 4px;min-width:0}
.g-tifinagh .tf-keyb svg{width:100%;max-width:44px;height:auto}
.g-tifinagh .tf-keyb b{font-size:1rem;color:var(--wc);line-height:1}
.g-tifinagh .tf-keyb:active:not(:disabled){transform:translateY(3px);border-bottom-width:3px}
.g-tifinagh .tf-keyb.bad{border-color:var(--bad);background:var(--bad-soft);color:var(--bad);animation:tfshake .35s}
.g-tifinagh .tf-keyb.hint{border-color:#e9a312;box-shadow:0 0 0 4px rgba(233,163,18,.45);animation:tfnow 1s ease-in-out infinite}
.g-tifinagh .tf-done{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.g-tifinagh .tf-big{display:block;color:var(--ink);width:100%}
.g-tifinagh .tf-big .tf-word{height:clamp(54px,18vw,96px);width:auto;max-width:100%;margin-inline:auto}
.g-tifinagh .tf-score{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;font-weight:700}
.g-tifinagh .tf-score > span:first-child{font-size:1.3rem}
.g-tifinagh .tf-score b{font-size:1.8rem;color:var(--wc)}
.g-tifinagh .tf-rec{display:inline-flex;align-items:center;gap:4px;font-size:1.05rem;animation:tfcombo .6s cubic-bezier(.2,1.8,.4,1) .3s both}
@media (max-width:560px){
  .g-tifinagh .tf-opt{min-height:68px;padding:6px}
  .g-tifinagh .tf-keyb{min-height:58px}
  .g-tifinagh .tf-keyb svg{max-width:38px}
  .g-tifinagh .tf-word1{font-size:1.45rem}
  .g-tifinagh .tf-slots{gap:3px}
  .g-tifinagh .tf-slot{border-radius:9px;border-width:2px}
  .g-tifinagh .panel.tf-spd,.g-tifinagh .panel.tf-race,.g-tifinagh .panel.tf-spell{padding:10px}
}
@media (prefers-reduced-motion:reduce){.g-tifinagh .tf-timer .tf-glass svg,.g-tifinagh .tf-combo,.g-tifinagh .tf-plus,.g-tifinagh .tf-target .tf-slate,.g-tifinagh .tf-opt.bad,.g-tifinagh .tf-keyb.bad,.g-tifinagh .tf-keyb.hint,.g-tifinagh .tf-slot.now,.g-tifinagh .tf-rec{animation:none}}

/* Ibn Battuta's Journey */
.g-battuta{--tint:color-mix(in srgb,var(--wc) 16%,var(--surface));--parch:#f6e7c4;--sepia:#5a3a1e}
.g-battuta .ask{background:var(--tint)}
.g-battuta .bt-stage{border-color:#8a5a2b;background:#cfe2d3;box-shadow:inset 0 0 0 3px #e9d2a2,0 6px 0 rgba(90,58,30,.18)}
.g-battuta .bt-map{display:block;width:100%;height:auto;aspect-ratio:7/4}
.g-battuta .bt-lbl{font-family:Georgia,"Times New Roman",serif;font-weight:700;fill:var(--sepia);paint-order:stroke;stroke:#f6e7c4;stroke-linejoin:round}
.g-battuta .bt-city.on .bt-lbl{fill:#8a2a1a}
.g-battuta .bt-city.next .bt-lbl{fill:#1a2042;font-weight:800}
.g-battuta .bt-reg{font-family:Georgia,"Times New Roman",serif;font-weight:700;letter-spacing:.18em;fill:#8a6a44;opacity:.55}
.g-battuta .bt-sea{font-family:Georgia,"Times New Roman",serif;font-style:italic;fill:#3f6f68;opacity:.75}
.g-battuta .bt-ma{font-family:Georgia,"Times New Roman",serif;font-weight:800;letter-spacing:.12em;fill:#a8432e}
.g-battuta .bt-ma.ar{font-family:var(--font-ar);letter-spacing:0}
.g-battuta .bt-ring{fill:none;stroke:#ffc640;stroke-width:3;vector-effect:non-scaling-stroke;animation:bt-ring 1.6s ease-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes bt-ring{0%{opacity:1;transform:scale(.5)}100%{opacity:0;transform:scale(1.4)}}
.g-battuta .bt-hud{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px;max-width:720px;width:100%;margin-inline:auto;background:var(--tint);border-radius:18px;padding:8px 14px;font-weight:700;color:var(--muted)}
.g-battuta .bt-steps{display:flex;gap:4px;flex-wrap:wrap;justify-content:center}
.g-battuta .bt-steps i{width:14px;height:14px;border-radius:50%;border:2px solid var(--line);background:var(--surface)}
.g-battuta .bt-steps i.ok{background:#c1272d;border-color:#8a2a1a}
.g-battuta .bt-steps i.now{background:#ffc640;border-color:var(--wc)}
.g-battuta .bt-stat{display:inline-flex;align-items:center;gap:4px}
.g-battuta .bt-stat b{color:var(--wc);font-size:1.2rem;font-variant-numeric:tabular-nums}
.g-battuta .bt-stat small{font-weight:700}
.g-battuta .bt-i{width:24px;height:24px;flex:none}
.g-battuta .bt-intro{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;align-items:start}
.g-battuta .bt-who .bust{width:120px;height:120px;border-radius:50%;background:#f6e7c4;border:3px solid #c9a66b}
.g-battuta .bt-kick{font-family:var(--font-ar);font-weight:700;color:var(--wc)}
.g-battuta .bt-legend{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.g-battuta .bt-legend li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;align-items:center;font-size:.95rem;line-height:1.3}
.g-battuta .bt-mi{width:44px;height:46px;display:block}
.g-battuta .bt-chips{gap:8px}
.g-battuta .bt-leg{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 10px;font-weight:700;color:var(--muted);text-align:center}
.g-battuta .bt-to b{color:var(--ink);font-size:1.2rem}
.g-battuta .bt-arrow{color:#b5452e;font-weight:800}
.g-battuta .bt-year{background:#f6e7c4;color:#5a3a1e}
.g-battuta .bt-modes{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-battuta .bt-modes .cart{max-width:120px}
.g-battuta .bt-msg{text-align:center;font-weight:800;font-size:1.08rem;line-height:1.35;margin:0;color:var(--wc)}
.g-battuta .bt-msg.bad{color:var(--bad)}
/* compass */
.g-battuta .bt-dirbox{display:grid;grid-template-columns:200px minmax(0,1fr);gap:14px;align-items:center;max-width:640px;width:100%;margin-inline:auto}
.g-battuta .bt-rose{position:relative;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,#fff8e6 0 40%,#f6e7c4 41% 100%);border:3px solid #8a5a2b;margin-inline:auto}
.g-battuta .bt-dir{position:absolute;width:48px;height:48px;margin:-24px 0 0 -24px;border-radius:50%;border:3px solid #8a5a2b;background:#fff8e6;color:#5a3a1e;font-weight:800;font-size:1rem;padding:0}
.g-battuta .bt-dir:hover:not(:disabled){background:#ffe7a8}
.g-battuta .bt-dir.yes{background:var(--good);border-color:var(--good);color:#fff}
.g-battuta .bt-dir.no{background:var(--bad);border-color:var(--bad);color:#fff}
.g-battuta .bt-dir.dim{opacity:.45}
.g-battuta .bt-rosec{position:absolute;left:50%;top:50%;width:40px;height:40px;margin:-20px 0 0 -20px}
.g-battuta .bt-rosei{width:40px;height:40px}
.g-battuta .bt-dirtxt{display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center}
/* plan */
.g-battuta .bt-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;max-width:720px;width:100%;margin-inline:auto}
.g-battuta .bt-opt{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;align-items:center;text-align:start;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:18px;padding:10px 12px;min-height:70px}
.g-battuta .bt-opt:hover{border-color:var(--wc)}
.g-battuta .bt-opt.sel{border-color:var(--wc);background:var(--tint);box-shadow:0 0 0 3px color-mix(in srgb,var(--wc) 30%,transparent)}
.g-battuta .bt-optm .bt-mi{width:52px;height:54px}
.g-battuta .bt-optt{display:flex;flex-direction:column;gap:2px;line-height:1.25;min-width:0}
.g-battuta .bt-optt b{font-size:1.05rem}
.g-battuta .bt-optt small{color:var(--muted);font-weight:600;font-size:.88rem}
.g-battuta .bt-food{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;max-width:640px;width:100%;margin-inline:auto;background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:12px}
.g-battuta .bt-food .sub{margin:0}
.g-battuta .bt-stepper{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:center}
.g-battuta .bt-stepper .btn{min-width:48px;min-height:44px}
.g-battuta .bt-buy{min-width:86px;text-align:center;font-size:1.05rem}
.g-battuta .bt-buy b{font-size:1.5rem;color:var(--wc);font-variant-numeric:tabular-nums}
/* events */
.g-battuta .bt-evstage{border-color:#8a5a2b;max-width:560px}
.g-battuta .bt-evsvg{display:block;width:100%;height:auto}
.g-battuta .bt-evt{position:absolute;left:50%;top:54%;width:42%;max-width:220px;aspect-ratio:6/5;transform:translate(-50%,-50%);border:4px solid #fff;border-radius:50%;background:rgba(255,255,255,.55);padding:6%;box-shadow:0 0 0 4px #ffc640,0 8px 18px rgba(26,32,66,.25);animation:bt-pulse 1.3s ease-in-out infinite}
.g-battuta .bt-evt svg{display:block;width:100%;height:100%}
@keyframes bt-pulse{0%,100%{box-shadow:0 0 0 4px #ffc640,0 8px 18px rgba(26,32,66,.25)}50%{box-shadow:0 0 0 10px rgba(255,198,64,.45),0 8px 18px rgba(26,32,66,.25)}}
/* the city postcard */
.g-battuta .bt-card{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:0;max-width:760px;width:100%;margin-inline:auto;background:#fffaf0;color:#1a2042;border-radius:22px;overflow:hidden;border:3px solid #c9a66b;box-shadow:0 8px 0 rgba(90,58,30,.15)}
.g-battuta .bt-pc{position:relative;line-height:0;border-right:3px dashed #e3cfa6}
.g-battuta .bt-pcsvg{display:block;width:100%;height:100%;min-height:200px;object-fit:cover}
.g-battuta .bt-stamp{position:absolute;right:10px;top:10px;line-height:1;padding:8px 10px;border:3px solid #c1272d;border-radius:8px;color:#c1272d;font-weight:800;font-size:1.1rem;background:rgba(255,250,240,.85);transform:rotate(8deg)}
.g-battuta .bt-pcbody{display:flex;flex-direction:column;gap:10px;padding:14px 16px}
.g-battuta .bt-pcbody .h2{color:#1a2042}
.g-battuta .bt-pcbody .ar{color:#8a5a2b}
.g-battuta .bt-pcbody .sub{color:#5b6388;margin:0}
.g-battuta .bt-fact{font-size:1.08rem;line-height:1.45;margin:0}
.g-battuta .bt-rep{display:flex;flex-wrap:wrap;gap:6px}
.g-battuta .bt-rep .chip{background:#f3ead8;color:#1a2042}
.g-battuta .bt-rep .chip.ok{background:#d2f1e4;color:#0d5c44}
.g-battuta .bt-rep .chip.bad{background:#fde2de;color:#9a2b22}
.g-battuta .bt-svrow{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.g-battuta .bt-svbtn{display:flex;align-items:center;gap:10px;border:3px dashed #c9a66b;background:#fff3d6;color:#1a2042;border-radius:18px;padding:8px 14px 8px 8px;font-weight:800;text-align:start;min-height:64px}
.g-battuta .bt-svbtn .bt-sv{width:52px;height:52px;flex:none}
.g-battuta .bt-svbtn:not(:disabled){animation:bt-wig 1.8s ease-in-out infinite}
.g-battuta .bt-svbtn.kept{border-style:solid;border-color:#2fc77a;background:#e6f8ef}
.g-battuta .bt-tap{color:#c1272d}
.g-battuta .bt-ok{color:#13865a;font-size:.9rem}
@keyframes bt-wig{0%,100%{transform:rotate(0)}10%{transform:rotate(-3deg)}20%{transform:rotate(3deg)}30%{transform:rotate(0)}}
/* the end */
.g-battuta .bt-end{gap:12px}
.g-battuta .bt-sumgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
.g-battuta .bt-sumgrid span{background:var(--tint);border-radius:14px;padding:10px;text-align:center;font-weight:700;color:var(--muted)}
.g-battuta .bt-sumgrid b{display:block;font-size:1.5rem;color:var(--wc)}
.g-battuta .bt-journal{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:8px}
.g-battuta .bt-jcell{margin:0;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fffaf0;border:2px solid #e3cfa6;border-radius:12px;padding:6px 4px;color:#1a2042;min-width:0}
.g-battuta .bt-jcell .bt-sv{width:40px;height:40px}
.g-battuta .bt-jcell figcaption{font-size:.72rem;font-weight:700;line-height:1.1;text-align:center;overflow-wrap:anywhere}
.g-battuta .bt-jcell.empty{background:var(--surface-2);border-style:dashed;border-color:var(--line);color:var(--muted);font-weight:800;justify-content:center;min-height:62px}
.g-battuta .bt-jcell.new{animation:bt-pop .6s cubic-bezier(.2,1.6,.4,1) .2s backwards;border-color:#2fc77a}
@keyframes bt-pop{from{transform:scale(.3);opacity:0}}
@media (max-width:760px){
  .g-battuta .bt-card{grid-template-columns:minmax(0,1fr)}
  .g-battuta .bt-pc{border-right:0;border-bottom:3px dashed #e3cfa6}
  .g-battuta .bt-pcsvg{min-height:0}
  .g-battuta .bt-intro{grid-template-columns:76px minmax(0,1fr);gap:10px}
  .g-battuta .bt-who .bust{width:76px;height:76px}
  .g-battuta .bt-dirbox{grid-template-columns:minmax(0,1fr)}
  .g-battuta .bt-hud{gap:4px 10px;padding:6px 10px}
  .g-battuta .bt-steps i{width:11px;height:11px}
}
@media (prefers-reduced-motion:reduce){.g-battuta .bt-ring,.g-battuta .bt-evt,.g-battuta .bt-svbtn{animation:none!important}}
.g-battuta .bt-goline{display:flex;align-items:center;gap:10px;max-width:520px;width:100%;margin-inline:auto}
.g-battuta .bt-gom .bt-mi{width:46px;height:48px}
.g-battuta .bt-gobar{flex:1;height:16px;border-radius:999px;background:var(--surface-2);border:2px solid var(--line);overflow:hidden}
.g-battuta .bt-gobar i{display:block;height:100%;background:repeating-linear-gradient(90deg,#b5452e 0 10px,#d9734f 10px 16px)}
.g-battuta .bt-goline b{min-width:5.5em;text-align:end;font-variant-numeric:tabular-nums;color:var(--wc)}

/* Mint Tea Master */
.g-tea .tea-stage{max-width:560px}
.g-tea .tea-chips{display:flex;justify-content:center;gap:5px;flex-wrap:wrap}
.g-tea .tea-chip{width:36px;height:36px;border-radius:12px;border:2px dashed var(--line);display:grid;place-items:center;font-weight:800;color:var(--muted);background:var(--surface);font-size:1rem}
.g-tea .tea-chip svg{width:30px;height:26px;display:block}
.g-tea .tea-chip.ok{border:2px solid var(--good);background:var(--good-soft)}
.g-tea .tea-chip.now{border:2px solid var(--wc);background:var(--tint);color:var(--wc);font-size:1.3rem}
.g-tea .tea-ctl{display:flex;flex-direction:column;align-items:center;gap:8px}
.g-tea .tea-pour{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;max-width:380px;min-height:78px;border:0;border-radius:24px;background:var(--wc);color:#fff;font-weight:800;font-size:1.35rem;box-shadow:0 6px 0 color-mix(in srgb,var(--wc) 55%,#000);touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;padding:8px 18px}
.g-tea .tea-pour svg{width:64px;height:50px;flex:none;pointer-events:none}
.g-tea .tea-pour span{pointer-events:none}
.g-tea .tea-pour.on{transform:translateY(4px);box-shadow:0 2px 0 color-mix(in srgb,var(--wc) 55%,#000);background:color-mix(in srgb,var(--wc) 82%,#000)}
.g-tea .tea-msg{font-weight:700;color:var(--muted);text-align:center;min-height:1.5em}
.g-tea .tea-msg.on{color:var(--wc);font-size:1.2rem}
.g-tea .tea-in{animation:teaIn .9s cubic-bezier(.2,1.3,.4,1) both}
@keyframes teaIn{0%{opacity:0;transform:translateY(-26px)}100%{opacity:1;transform:none}}
.g-tea .tea-steam path{animation:teaSteam 2.6s ease-in-out infinite}
.g-tea .tea-steam path:nth-child(2){animation-delay:.6s}
.g-tea .tea-steam path:nth-child(3){animation-delay:1.2s}
@keyframes teaSteam{0%{opacity:0;transform:translateY(8px)}40%{opacity:.9}100%{opacity:0;transform:translateY(-10px)}}
/* a soft tint of the world color that follows light and dark mode (--ws stays light in dark mode) */
.g-tea{--tint:color-mix(in srgb,var(--wc) 16%,var(--surface))}
.g-tea .ask,.g-tea .fact.tint{background:var(--tint)}
/* ===== the salon and the tea house rush ===== */
.g-tea .tea-hud{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px;max-width:720px;width:100%;margin-inline:auto;background:var(--tint);border-radius:18px;padding:8px 14px;font-weight:700;color:var(--muted)}
.g-tea .tea-day{position:relative;flex:1 1 120px;min-width:100px;height:14px;border-radius:999px;background:linear-gradient(90deg,#ffe7a8,#ffc640 50%,#f08a4b);border:2px solid var(--line)}
.g-tea .tea-sun{position:absolute;top:50%;width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:50%;background:#ffc640;border:2.5px solid #1a2042;box-shadow:0 0 0 4px rgba(255,198,64,.35)}
.g-tea .tea-clock{font-variant-numeric:tabular-nums;color:var(--ink);min-width:3.2em;text-align:center}
.g-tea .tea-stat b{color:var(--wc);font-size:1.25rem;font-variant-numeric:tabular-nums}
.g-tea .tea-avg{display:inline-flex;align-items:center;gap:3px}
.g-tea .tea-avg .st{width:18px;height:18px;color:var(--star)}
.g-tea .tea-salon{max-width:720px;width:100%;margin-inline:auto;border:3px solid var(--wc);border-radius:var(--radius);overflow:hidden;background:#f8e6c4;color:#1a2042}
.g-tea .tea-band svg{display:block;width:100%;height:22px}
.g-tea .tea-seats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px 10px 12px;background:linear-gradient(transparent 62%,#2f6fd6 62%)}
.g-tea .tea-seats.n2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:420px;margin-inline:auto;width:100%}
.g-tea .tea-seat{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;min-height:168px;padding:6px 4px 6px;border-radius:16px;border:3px solid #c9a66b;background:#fff8ec;color:#1a2042;box-shadow:0 4px 0 rgba(26,32,66,.25);animation:teaArrive .45s cubic-bezier(.2,1.4,.4,1)}
.g-tea .tea-seat.empty{border:0;background:none;box-shadow:none;animation:none}
.g-tea .tea-cush{position:absolute;left:12%;right:12%;bottom:20%;height:30px;border-radius:14px 14px 9px 9px;border:2.5px solid #1a2042;background:repeating-linear-gradient(90deg,#ffc640 0 9px,#f0a63a 9px 18px);box-shadow:0 3px 0 rgba(26,32,66,.25)}
.g-tea .tea-seat.can{border-color:#2fc77a;box-shadow:0 0 0 3px rgba(47,199,122,.35),0 4px 0 rgba(26,32,66,.25)}
.g-tea .tea-seat:hover:not(.empty){border-color:var(--wc)}
@keyframes teaArrive{from{transform:translateY(-14px);opacity:0}to{transform:none;opacity:1}}
.g-tea .tea-bust{display:block;width:62px;height:62px;border-radius:50%;background:#fde3c4;overflow:hidden}
.g-tea .tea-bust svg{display:block;width:100%;height:100%}
.g-tea .tea-pat{display:block;width:88%;height:8px;border-radius:999px;background:#e3e7ef;overflow:hidden}
.g-tea .tea-pat i{display:block;height:100%;border-radius:999px}
.g-tea .tea-ord{display:flex;flex-direction:column;align-items:center;gap:2px}
.g-tea .tea-orow{display:flex;align-items:center;justify-content:center;gap:1px;min-height:18px;flex-wrap:wrap}
.g-tea .tea-i{width:15px;height:20px;display:block;flex:none}
.g-tea .tea-lumps{display:inline-flex;gap:1px}
.g-tea .tea-lumps .tea-i{width:15px;height:15px}
.g-tea .tea-tag .tea-i{width:24px;height:18px}
.g-tea .tea-tag .tea-fill{width:15px;height:20px}
.g-tea .tea-flash{position:absolute;inset:auto 2px 34%;padding:4px 2px;border-radius:12px;font-weight:800;font-size:.85rem;line-height:1.15;text-align:center;pointer-events:none;animation:teaFlash 1.7s ease-out both;z-index:2}
.g-tea .tea-flash.ok{background:#d2f1e4;color:#0d6b4f;border:2px solid #2fc77a}
.g-tea .tea-flash.bad{background:#fde2de;color:#a8261c;border:2px solid #e5484d}
.g-tea .tea-rate{display:block;color:#e9a312;letter-spacing:-1px;font-size:.8rem}
@keyframes teaFlash{0%{opacity:0;transform:translateY(10px) scale(.8)}12%{opacity:1;transform:none}75%{opacity:1}100%{opacity:0;transform:translateY(-18px)}}
.g-tea .tea-counter{background:#a0612f;border-top:4px solid #1a2042;padding:10px;background-image:repeating-linear-gradient(90deg,transparent 0 46px,rgba(0,0,0,.08) 46px 48px)}
.g-tea .tea-pots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.g-tea .tea-pots.n1{grid-template-columns:minmax(0,180px);justify-content:center}
.g-tea .tea-potb{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:6px 4px;border-radius:16px;border:3px solid #6e3a1b;background:#fff8ec;color:#1a2042;box-shadow:0 4px 0 rgba(26,32,66,.3)}
.g-tea .tea-potb > svg{width:74px;height:74px;display:block}
.g-tea .tea-potb .tea-steam path{animation:teaSteam 2.6s ease-in-out infinite}
.g-tea .tea-plab{font-size:.95rem;line-height:1.1}
.g-tea .tea-potb.brew{border-color:#e9a312}
.g-tea .tea-potb.ready{border-color:#2fc77a;animation:teaReady 1.4s ease-in-out infinite}
.g-tea .tea-potb.ready .tea-plab{color:#0d6b4f}
.g-tea .tea-potb.stew{border-color:#c1272d;background:#fde2de}
.g-tea .tea-potb.stew .tea-plab{color:#a8261c}
.g-tea .tea-potb.sel,.g-tea .tea-potb.menu{transform:translateY(-4px);box-shadow:0 0 0 4px #ffc640,0 8px 0 rgba(26,32,66,.3)}
@keyframes teaReady{50%{box-shadow:0 0 0 4px rgba(47,199,122,.45),0 4px 0 rgba(26,32,66,.3)}}
.g-tea .tea-pinfo{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;min-height:20px}
.g-tea .tea-pinfo > .tea-i{width:18px;height:18px}
.g-tea .tea-left{display:inline-flex;align-items:center;font-weight:800;font-size:.85rem;gap:1px}
.g-tea .tea-menu{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:520px;width:100%;margin-inline:auto;border-color:#ffc640;animation:teaArrive .3s ease-out}
.g-tea .tea-herb{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.g-tea .tea-herb .chip{display:inline-flex;align-items:center;gap:4px;border:2px solid var(--line);background:var(--surface);color:var(--ink);font-weight:700;min-height:40px;padding:4px 12px}
.g-tea .tea-herb .chip[aria-pressed="true"]{border-color:var(--good);background:var(--good-soft)}
.g-tea .tea-herb .tea-i{width:20px;height:20px}
.g-tea .tea-sugs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
.g-tea .tea-sug{display:flex;flex-direction:column;align-items:center;gap:4px;min-height:72px;justify-content:center;border:3px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);font-weight:800}
.g-tea .tea-sug:hover{border-color:var(--wc)}
.g-tea .tea-sug .tea-i,.g-tea .tea-sug .tea-lumps .tea-i{width:24px;height:24px}
.g-tea .tea-msg.bad{color:var(--bad)}
.g-tea .tea-brief,.g-tea .tea-sum{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;max-width:640px;width:100%;margin-inline:auto}
.g-tea .tea-bart{width:100%;border-radius:16px;overflow:hidden;border:3px solid var(--wc);line-height:0}
.g-tea .tea-bart svg{display:block;width:100%;height:auto}
.g-tea .tea-legend{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;width:100%}
.g-tea .tea-legend li{display:flex;align-items:center;gap:6px;background:var(--surface-2);border-radius:12px;padding:6px 10px;text-align:start;font-weight:600;font-size:.95rem}
.g-tea .tea-legend .tea-i{width:20px;height:22px}
.g-tea .tea-legend .tea-lumps .tea-i{width:18px;height:18px}
.g-tea .tea-winter{display:flex;align-items:center;gap:10px;text-align:start}
.g-tea .tea-winter .tea-i{width:34px;height:34px}
.g-tea .tea-best,.g-tea .tea-rec{display:inline-flex;align-items:center;gap:5px;font-weight:800;background:color-mix(in srgb,#ffc640 30%,var(--surface));color:var(--ink)}
.g-tea .tea-best .st,.g-tea .tea-rec .st{width:18px;height:18px;color:var(--star)}
.g-tea .tea-rec{background:var(--good-soft);animation:teaIn .7s cubic-bezier(.2,1.6,.4,1) .3s both}
.g-tea .tea-sumgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
.g-tea .tea-sumgrid span{display:flex;flex-direction:column;align-items:center;background:var(--surface-2);border-radius:14px;padding:8px;font-weight:700;color:var(--muted)}
.g-tea .tea-sumgrid b{font-size:1.8rem;color:var(--wc);line-height:1.1}
.g-tea .tea-sumgrid .st{width:22px;height:22px;color:var(--star)}
.g-tea .tea-res{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:1.2rem;padding:10px 16px;border-radius:18px;max-width:520px;width:100%;margin-inline:auto;text-align:center;animation:teaIn .5s cubic-bezier(.2,1.3,.4,1)}
.g-tea .tea-res.good{background:var(--good-soft);color:var(--good)}
.g-tea .tea-res.bad{background:var(--bad-soft);color:var(--bad)}
.g-tea .tea-res .tea-rate{display:inline;font-size:1.1rem;letter-spacing:1px}
@media (max-width:560px){
  .g-tea .tea-seats{gap:5px;padding:8px 6px 10px}
  .g-tea .tea-seat{min-height:150px;border-radius:12px;padding:5px 2px}
  .g-tea .tea-bust{width:52px;height:52px}
  .g-tea .tea-i{width:13px;height:17px}
  .g-tea .tea-lumps .tea-i{width:13px;height:13px}
  .g-tea .tea-tag .tea-i{width:20px;height:15px}
  .g-tea .tea-potb > svg{width:60px;height:60px}
  .g-tea .tea-plab{font-size:.85rem}
  .g-tea .tea-hud{gap:4px 10px;padding:8px 10px}
}
@media (prefers-reduced-motion:reduce){.g-tea .tea-seat,.g-tea .tea-potb.ready,.g-tea .tea-flash,.g-tea .tea-menu,.g-tea .tea-res,.g-tea .tea-rec{animation:none}}

/* Tagine Catch */
.g-tagine .tg-card{background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:8px 10px;display:flex;flex-direction:column;gap:6px;max-width:560px;width:100%;margin-inline:auto}
.g-tagine .tg-dish{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.g-tagine .tg-dn{font-weight:800;font-size:1.2rem}
.g-tagine .tg-dish .ar{font-size:1.25rem;color:var(--wc)}
.g-tagine .tg-ings{display:grid;grid-template-columns:repeat(auto-fit,minmax(62px,1fr));gap:6px}
.g-tagine .tg-ing{position:relative;display:flex;flex-direction:column;align-items:center;gap:0;border:2px dashed var(--line);border-radius:12px;padding:4px 3px;background:var(--surface-2);line-height:1.1;text-align:center;min-width:0}
.g-tagine .tg-ing svg{width:40px;height:40px;display:block}
.g-tagine .tg-ing b{font-size:.78rem;font-weight:800}
.g-tagine .tg-ings.names .tg-ing b{font-size:.95rem}
.g-tagine .tg-ing i{font-style:normal;font-weight:800;font-size:.8rem;color:var(--muted)}
.g-tagine .tg-ing .tk{position:absolute;top:-8px;right:-6px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:.85rem}
.g-tagine .tg-ing.got{border:2px solid var(--good);background:var(--good-soft)}
.g-tagine .tg-ing.got .tk{background:var(--good);color:#fff}
.g-tagine .tg-stage{max-width:520px;touch-action:none;cursor:pointer}
.g-tagine .tg-dishstage{max-width:620px}
.g-tagine .tg-ready{position:absolute;inset:0;display:grid;place-items:center;background:rgba(26,32,66,.18);line-height:1.2}
.g-tagine .tg-go{font-size:1.4rem;padding:16px 30px}
.g-tagine .tg-ctl{display:flex;align-items:center;justify-content:center;gap:12px;max-width:520px;width:100%;margin-inline:auto}
.g-tagine .tg-ctl .hint{flex:1;min-width:0}
.g-tagine .tg-arr{width:72px;height:60px;border-radius:18px;border:3px solid var(--wc);background:var(--tint);color:var(--wc);font-size:1.7rem;font-weight:800;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;flex:none}
.g-tagine .tg-arr:active{background:var(--wc);color:#fff}
.g-tagine .tg-pop{animation:tgPop .9s ease-out both}
@keyframes tgPop{0%{opacity:0;transform:translateY(10px)}25%{opacity:1}100%{opacity:0;transform:translateY(-26px)}}
.g-tagine .tg-steam path{animation:tgSteam 2.8s ease-in-out infinite}
@keyframes tgSteam{0%{opacity:0;transform:translateY(10px)}40%{opacity:.9}100%{opacity:0;transform:translateY(-14px)}}
/* a soft tint of the world color that follows light and dark mode (--ws stays light in dark mode) */
.g-tagine{--tint:color-mix(in srgb,var(--wc) 16%,var(--surface))}
.g-tagine .ask,.g-tagine .fact.tint{background:var(--tint)}
/* levels 2 and 3: counters, waste, twists, the rush, the record */
.g-tagine .tg-ings.names{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.g-tagine .tg-ings.names .tg-ing{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px;padding:5px 7px;text-align:start}
.g-tagine .tg-ings.names .tg-ing svg{width:28px;height:28px}
.g-tagine .tg-ings.names .tg-ing i{white-space:nowrap;color:var(--ink);background:var(--surface);border-radius:999px;padding:1px 7px;border:1.5px solid var(--line)}
.g-tagine .tg-ings.names .tg-ing.got i{background:var(--good);color:#fff;border-color:var(--good)}
.g-tagine .tg-ings.words .tg-ing{grid-template-columns:minmax(0,1fr) auto;padding:8px 10px}
.g-tagine .tg-tw,.g-tagine .tg-waste{font-size:.8rem;font-weight:800;border-radius:999px;padding:2px 10px;line-height:1.4}
.g-tagine .tg-tw{background:#2f6fd6;color:#fff}
.g-tagine .tg-waste{background:var(--surface-2);color:var(--muted);border:1.5px solid var(--line)}
.g-tagine .tg-waste.on{background:var(--bad-soft);color:var(--bad);border-color:var(--bad)}
.g-tagine .tg-rrow{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.g-tagine .tg-ftour{display:flex;gap:2px;flex-wrap:wrap}
.g-tagine .tg-ftour svg{width:32px;height:32px}
.g-tagine .tg-cnt{font-weight:800;font-size:1.05rem}
.g-tagine .tg-cnt b{font-size:1.35rem;color:var(--wc)}
.g-tagine .tg-rbox{display:flex;flex-direction:column;align-items:center;gap:10px}
.g-tagine .tg-best{background:#fff;color:#1a2042;border:2.5px solid #1a2042;border-radius:999px;padding:4px 16px;font-weight:800;font-size:1.05rem}
.g-tagine .tg-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:620px;width:100%;margin-inline:auto}
.g-tagine .tg-stats div{background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:6px 4px;display:flex;flex-direction:column;align-items:center;line-height:1.15}
.g-tagine .tg-stats b{font-size:1.5rem;font-weight:800;color:var(--wc)}
.g-tagine .tg-stats small{color:var(--muted);font-weight:700}
.g-tagine .tg-new{display:flex;align-items:center;justify-content:center;gap:8px;font-size:1.5rem;font-weight:800;color:var(--wc);animation:tgRec 1s ease-in-out infinite alternate}
.g-tagine .tg-new svg{width:30px;height:30px}
@keyframes tgRec{from{transform:scale(1)}to{transform:scale(1.08)}}
@media (prefers-reduced-motion: reduce){.g-tagine .tg-new{animation:none}}

/* Dress for the Party */
.g-dress .dr-stage{max-width:520px}
.g-dress .dr-sex{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:520px;width:100%;margin-inline:auto}
.g-dress .dr-card{display:flex;flex-direction:column;align-items:center;gap:2px;border:3px solid var(--line);background:var(--surface);border-radius:18px;padding:8px 6px;font-weight:800;line-height:1.15;color:var(--ink);text-align:center;min-width:0}
.g-dress .dr-card:hover:not(:disabled){border-color:var(--wc)}
.g-dress .dr-card:disabled{cursor:default}
.g-dress .dr-card b{font-size:1rem}
.g-dress .dr-card .ar{font-size:1.05rem}
.g-dress .dr-art{display:block;width:100%;height:84px}
.g-dress .dr-art svg{display:block;width:100%;height:100%}
.g-dress .dr-who .dr-art{height:220px}
.g-dress .dr-who b{font-size:1.3rem}
.g-dress .dr-card.sel{border-color:var(--wc);background:var(--tint)}
.g-dress .dr-card.yes{border-color:var(--good);background:var(--good-soft)}
.g-dress .dr-card.no{border-color:var(--bad);background:var(--bad-soft)}
.g-dress .dr-card.dim{opacity:.5}
.g-dress .dr-opts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:620px;width:100%;margin-inline:auto}
.g-dress .dr-opts.four{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-dress .dr-opts.four .dr-art{height:110px}
.g-dress .dr-msg{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;font-weight:800;font-size:1.15rem;min-height:2em;text-align:center}
.g-dress .dr-msg.good{color:var(--good)} .g-dress .dr-msg.bad{color:var(--bad)}
.g-dress .dr-msg .ar{font-size:1.15rem}
.g-dress .dr-step{width:14px;height:14px;border-radius:50%;background:var(--surface-2);border:2px solid var(--line)}
.g-dress .dr-step.on{background:var(--good);border-color:var(--good)}
.g-dress .dr-step.now{background:var(--wc);border-color:var(--wc)}
.g-dress .dr-wrap{display:flex;flex-direction:column;gap:12px}
.g-dress .dr-side{display:flex;flex-direction:column;gap:12px}
.g-dress .dr-ward{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.g-dress .dr-ward .dr-card{padding:6px 4px;border-radius:14px}
.g-dress .dr-ward .dr-art{height:62px}
.g-dress .dr-ward .dr-card b{font-size:.86rem}
.g-dress .dr-ward .dr-card .ar{font-size:.92rem}
.g-dress .dr-qart{max-width:280px;padding:10px;background:var(--surface)}
.g-dress .dr-qart svg{max-height:200px}
.g-dress .dr-arw{font-family:var(--font-ar);font-size:1.7rem;line-height:1.4}
@media (min-width:860px){
  .g-dress .dr-wrap{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:start}
  .g-dress .dr-ward{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.g-dress .dr-en{display:block;font-size:.95rem;color:var(--muted);font-weight:700}
@media (max-width:859px){.g-dress .dr-wrap .dr-stage{max-width:320px}}
/* a soft tint of the world color that follows light and dark mode (--ws stays light in dark mode) */
.g-dress{--tint:color-mix(in srgb,var(--wc) 16%,var(--surface))}
.g-dress .ask,.g-dress .fact.tint{background:var(--tint)}
/* the caftan designer */
.g-dress .ds-best{align-self:center;background:var(--tint);color:var(--ink);border:2px solid var(--wc);border-radius:999px;padding:4px 16px;font-weight:800;text-align:center}
.g-dress .ds-client{display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px;align-items:start;max-width:860px;width:100%;margin-inline:auto}
.g-dress .ds-bust svg{width:76px;height:76px;display:block;border-radius:50%;background:var(--tint)}
.g-dress .ds-bub{position:relative;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:8px 12px;line-height:1.35}
.g-dress .ds-bub::before{content:"";position:absolute;left:-9px;top:24px;width:14px;height:14px;background:var(--surface);border-left:2px solid var(--line);border-bottom:2px solid var(--line);transform:rotate(45deg)}
.g-dress .ds-bub p{font-style:italic;margin:2px 0 6px}
.g-dress .ds-tags{display:flex;flex-wrap:wrap;gap:5px}
.g-dress .ds-tags span{display:inline-flex;align-items:center;gap:5px;background:var(--surface-2);border:1.5px solid var(--line);border-radius:999px;padding:1px 9px;font-weight:800;font-size:.85rem}
.g-dress .ds-tags .ds-sw{width:14px;height:14px;border-radius:50%;background:var(--c);border:2px solid #1a2042;padding:0}
.g-dress .ds-tags .ds-met.gold{background:#ffe9a8;color:#5a3d00;border-color:#e0a526}
.g-dress .ds-tags .ds-met.silver{background:#e9edf3;color:#2c3445;border-color:#aab3c2}
.g-dress .ds-wrap{display:grid;grid-template-columns:minmax(0,38%) minmax(0,1fr);gap:10px;align-items:start;max-width:860px;width:100%;margin-inline:auto}
.g-dress .ds-prev{position:sticky;top:8px;background:radial-gradient(circle at 50% 40%,#fff6e6,#f3e3c3);border:3px solid var(--wc);border-radius:18px;line-height:0;padding:6px 2px}
.g-dress .ds-prev svg{width:100%;height:auto;display:block;max-height:420px}
.g-dress .ds-side{display:flex;flex-direction:column;gap:8px;min-width:0}
.g-dress .ds-row{background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:6px 8px;display:flex;flex-direction:column;gap:5px}
.g-dress .ds-row.set{border-color:color-mix(in srgb,var(--good) 55%,var(--line))}
.g-dress .ds-lab{display:flex;align-items:center;gap:6px;font-weight:800;font-size:.95rem;flex-wrap:wrap}
.g-dress .ds-lab i{font-style:normal;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--wc);color:#fff;font-size:.8rem;flex:none}
.g-dress .ds-row.set .ds-lab i{background:var(--good)}
.g-dress .ds-lab .ar{font-size:.95rem}
.g-dress .ds-opts{display:flex;flex-wrap:wrap;gap:5px}
.g-dress .ds-opts.cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.g-dress .ds-o{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;border:2.5px solid var(--line);background:var(--surface-2);color:var(--ink);border-radius:12px;padding:4px 9px;font-weight:800;font-size:.86rem;line-height:1.1;min-width:0}
.g-dress .ds-o .ar{font-size:.85rem}
.g-dress .ds-opts.cols .ds-o{flex-direction:column;gap:2px;padding:4px 2px;font-size:.74rem}
.g-dress .ds-o.sw i{width:20px;height:20px;border-radius:50%;background:var(--c);border:2px solid #1a2042;flex:none}
.g-dress .ds-o:hover{border-color:var(--wc)}
.g-dress .ds-o.on{border-color:var(--wc);background:var(--tint);box-shadow:0 0 0 2px var(--wc) inset}
.g-dress .ds-notes{background:var(--surface);border:2px dashed var(--line);border-radius:14px;padding:6px 10px;font-size:.88rem;line-height:1.35}
.g-dress .ds-notes summary{font-weight:800;cursor:pointer;min-height:32px;display:flex;align-items:center}
.g-dress .ds-notes ul{margin:4px 0 2px;padding-inline-start:18px;display:flex;flex-direction:column;gap:4px}
.g-dress .ds-rate{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;font-weight:800;font-size:1.05rem;min-width:0}
.g-dress .ds-rate .stars{font-size:1.6rem}
.g-dress .ds-checks{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}
.g-dress .ds-checks li{border-radius:10px;padding:4px 8px;font-weight:700;font-size:.92rem;line-height:1.25}
.g-dress .ds-checks li.ok{background:var(--good-soft);color:var(--ink)}
.g-dress .ds-checks li.no{background:var(--bad-soft);color:var(--ink)}
.g-dress .ds-saved{font-weight:800;color:var(--muted);font-size:.9rem}
.g-dress .ds-look{display:flex;flex-wrap:wrap;gap:6px}
.g-dress .ds-mini{margin:0;width:62px;background:radial-gradient(circle at 50% 40%,#fff6e6,#f3e3c3);border:2px solid var(--line);border-radius:12px;padding:2px;display:flex;flex-direction:column;align-items:center;line-height:1}
.g-dress .ds-mini svg{width:100%;height:auto;display:block}
.g-dress .ds-mini figcaption .stars{font-size:.62rem}
.g-dress .ds-mini.new{border-color:var(--wc);box-shadow:0 0 0 2px var(--wc);animation:dsIn .5s cubic-bezier(.2,1.6,.4,1)}
@keyframes dsIn{from{transform:scale(.6)}to{transform:scale(1)}}
.g-dress .ds-new{font-weight:800;color:var(--wc);font-size:1rem}
.g-dress .ds-intro{display:flex;flex-direction:column;gap:12px;align-items:center;max-width:720px;width:100%;margin-inline:auto}
.g-dress .ds-intro .ds-look{justify-content:center}
.g-dress .ds-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;max-width:440px;background:radial-gradient(circle at 50% 40%,#fff6e6,#f3e3c3);border:3px solid var(--wc);border-radius:20px;padding:10px 6px}
.g-dress .ds-trio svg{width:100%;height:auto;display:block}
.g-dress .dr-word{display:grid;place-items:center;background:var(--surface);border:3px solid var(--wc);border-radius:18px;max-width:320px;width:100%;margin-inline:auto;padding:8px}
.g-dress .dr-word .ar{font-size:3rem;color:var(--ink);line-height:1.5}
@media (min-width:860px){
  .g-dress .ds-wrap{grid-template-columns:300px minmax(0,1fr);gap:16px}
  .g-dress .ds-mini{width:72px}
}
@media (prefers-reduced-motion: reduce){.g-dress .ds-mini.new{animation:none}}
.g-dress .ds-bust.sm svg{width:46px;height:46px}

/* Zellige Studio */
.g-zellige .zl-top{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap;max-width:640px;width:100%;margin-inline:auto}
.g-zellige .zl-master{display:flex;flex-direction:column;align-items:center;gap:0;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:8px 10px;line-height:1.15}
.g-zellige .zl-master .zl-tile{width:104px;height:104px;display:block;margin-bottom:4px}
.g-zellige .zl-master b{font-size:.95rem}
.g-zellige .zl-pal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:1;min-width:200px;max-width:340px}
.g-zellige .zl-pal:only-child{max-width:420px}
.g-zellige .zl-sw{display:flex;flex-direction:column;align-items:center;gap:0;border:3px solid var(--line);background:var(--surface);border-radius:14px;padding:5px 4px;font-weight:800;font-size:.85rem;line-height:1.1;color:var(--ink);min-height:64px}
.g-zellige .zl-sw i{display:block;width:34px;height:34px;border-radius:9px;background:var(--c);border:2.5px solid #1a2042;box-shadow:inset 6px 6px 0 -2px rgba(255,255,255,.35);transform:rotate(45deg) scale(.82);margin:2px 0 3px}
.g-zellige .zl-sw .ar{font-size:.85rem}
.g-zellige .zl-sw.on{border-color:var(--wc);background:var(--tint);box-shadow:0 0 0 3px var(--wc) inset}
.g-zellige .zl-sw.on i{transform:rotate(45deg) scale(1)}
.g-zellige .zl-board{max-width:440px;width:100%;margin-inline:auto;line-height:0}
.g-zellige .zl-board .zl-tile{width:100%;height:auto;display:block;touch-action:manipulation}
.g-zellige .zl-p{cursor:pointer;transition:filter .15s}
.g-zellige .zl-p:hover{filter:brightness(1.12)}
.g-zellige .zl-p:focus{outline:none}
.g-zellige .zl-p:focus-visible{stroke:#2f6fd6;stroke-width:4}
.g-zellige .zl-pop polygon{transform-box:fill-box;transform-origin:center;animation:zlPop .4s cubic-bezier(.2,1.6,.4,1)}
@keyframes zlPop{0%{transform:scale(.7)}100%{transform:scale(1)}}
.g-zellige .zl-wall{max-width:620px}
.g-zellige .zl-flow{animation:zlFlow .6s linear infinite}
@keyframes zlFlow{to{stroke-dashoffset:-13}}
.g-zellige .zl-mini{display:flex;gap:12px;align-items:center;max-width:620px;width:100%;margin-inline:auto;background:var(--tint);border-radius:16px;padding:10px 14px}
.g-zellige .zl-mini .zl-tile{width:72px;height:72px;flex:none}
.g-zellige .zl-mini p{font-size:1.02rem;line-height:1.4}
@media (max-width:760px){.g-zellige .zl-board{max-width:340px}}
.g-zellige .zl-play{display:flex;flex-direction:column;gap:12px}
.g-zellige .zl-right{display:flex;flex-direction:column;gap:10px}
.g-zellige .zl-master.big .zl-tile{width:150px;height:150px}
@media (min-width:860px){
  .g-zellige .zl-play{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;align-items:start;max-width:860px;width:100%;margin-inline:auto}
  .g-zellige .zl-top{flex-direction:column;align-items:stretch}
  .g-zellige .zl-master .zl-tile{width:150px;height:150px}
  .g-zellige .zl-master.big .zl-tile{width:240px;height:240px}
  .g-zellige .zl-pal{max-width:none;min-width:0}
}
/* a soft tint of the world color that follows light and dark mode (--ws stays light in dark mode) */
.g-zellige{--tint:color-mix(in srgb,var(--wc) 16%,var(--surface))}
.g-zellige .ask,.g-zellige .fact.tint{background:var(--tint)}
/* levels 2 and 3: walls to repair, tiles to turn, the 16-point star, the clock and the record */
.g-zellige .zl-bar{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-zellige .zl-pill{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:3px 12px;font-weight:800;background:var(--surface);border:2px solid var(--line);font-variant-numeric:tabular-nums}
.g-zellige .zl-pill.best{background:var(--tint);border-color:var(--wc)}
.g-zellige .zl-pill.count{background:#fff6d9;color:#5a3d00;border-color:#e0a526}
.g-zellige .zl-pill.low{background:var(--bad-soft);color:var(--bad);border-color:var(--bad)}
.g-zellige .zl-wstage{max-width:640px;background:#f3e3c3}
.g-zellige .zl-wallb{display:block;width:100%;height:auto;touch-action:manipulation}
.g-zellige .zl-cell,.g-zellige .zl-hole{cursor:pointer}
.g-zellige .zl-cell:focus,.g-zellige .zl-hole:focus{outline:none}
.g-zellige .zl-cell:focus-visible .zl-mt polygon:last-child,.g-zellige .zl-hole:focus-visible rect{stroke:#2f6fd6;stroke-width:6}
.g-zellige .zl-cell:hover .zl-mt{filter:brightness(1.08)}
.g-zellige .zl-hole.ready rect{stroke:var(--wc);animation:zlBlink 1s ease-in-out infinite alternate}
@keyframes zlBlink{from{stroke-opacity:1}to{stroke-opacity:.35}}
.g-zellige .zl-shake{animation:zlShake .4s ease}
@keyframes zlShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-9px)}75%{transform:translateX(9px)}}
.g-zellige .zl-in{animation:zlIn .35s cubic-bezier(.2,1.6,.4,1)}
@keyframes zlIn{from{transform:scale(.55)}to{transform:scale(1)}}
.g-zellige polygon.zl-in{transform-box:fill-box;transform-origin:center}
.g-zellige .zl-spincw{animation:zlCW .28s ease-out}
.g-zellige .zl-spinccw{animation:zlCCW .28s ease-out}
@keyframes zlCW{from{transform:rotate(-90deg)}to{transform:rotate(0)}}
@keyframes zlCCW{from{transform:rotate(90deg)}to{transform:rotate(0)}}
.g-zellige .zl-tray{display:grid;grid-template-columns:repeat(auto-fill,minmax(68px,1fr));gap:8px;max-width:640px;width:100%;margin-inline:auto;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:8px}
.g-zellige .zl-tt{border:3px solid transparent;background:transparent;border-radius:12px;padding:2px;line-height:0;min-height:64px}
.g-zellige .zl-tt svg{width:100%;height:auto;display:block}
.g-zellige .zl-tt:hover{border-color:var(--line)}
.g-zellige .zl-tt.on{border-color:var(--wc);background:var(--tint);transform:translateY(-3px)}
.g-zellige .zl-tt.hint{box-shadow:0 0 0 3px #ffc640}
.g-zellige .zl-dir{align-self:center}
.g-zellige .zl-hp{cursor:pointer}
.g-zellige .zl-flash{animation:zlFlash .45s ease}
@keyframes zlFlash{0%,100%{fill-opacity:1}50%{fill:#e5483f}}
.g-zellige .zl-sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:620px;width:100%;margin-inline:auto}
.g-zellige .zl-sum div{background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:6px 4px;display:flex;flex-direction:column;align-items:center;line-height:1.15;text-align:center}
.g-zellige .zl-sum b{font-size:1.35rem;font-weight:800;color:var(--wc)}
.g-zellige .zl-sum div:last-child b{font-size:1rem}
.g-zellige .zl-sum small{color:var(--muted);font-weight:700}
.g-zellige .zl-new{text-align:center;font-size:1.5rem;font-weight:800;color:var(--wc);animation:zlRec 1s ease-in-out infinite alternate}
@keyframes zlRec{from{transform:scale(1)}to{transform:scale(1.08)}}
.g-zellige .zl-fact{display:flex;gap:10px;align-items:center;max-width:640px;width:100%;margin-inline:auto;background:var(--tint);border-radius:14px;padding:8px 12px}
.g-zellige .zl-fact svg{width:30px;height:30px;flex:none}
.g-zellige .zl-fact p{font-size:.95rem;line-height:1.35}
@media (prefers-reduced-motion: reduce){.g-zellige .zl-new,.g-zellige .zl-hole.ready rect,.g-zellige .zl-spincw,.g-zellige .zl-spinccw,.g-zellige .zl-shake,.g-zellige .zl-in{animation:none}}
.g-zellige .zl-clk{width:18px;height:18px}

/* Souk Seek & Find */
.g-souk .sk-list{display:grid;gap:8px;max-width:720px;width:100%;margin-inline:auto}
.g-souk .sk-list.pics{grid-template-columns:repeat(4,minmax(0,1fr))}
.g-souk .sk-list.names{grid-template-columns:repeat(3,minmax(0,1fr))}
.g-souk .sk-li{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border:3px solid var(--line);background:var(--surface);border-radius:16px;padding:6px 4px;min-height:52px;min-width:0;color:var(--ink);line-height:1.15}
.g-souk .sk-li:hover{border-color:var(--wc)}
.g-souk .sk-li b{font-size:1.02rem;font-weight:800}
.g-souk .sk-li .ar{font-size:1.02rem;color:var(--wc)}
.g-souk .sk-li .pic{display:block;width:100%;max-width:74px;aspect-ratio:1/1}
.g-souk .sk-li .pic svg{display:block;width:100%;height:100%}
.g-souk .sk-li.got{border-color:var(--good);background:var(--good-soft)}
.g-souk .sk-li.got .pic,.g-souk .sk-li.got b,.g-souk .sk-li.got .ar{opacity:.55}
.g-souk .sk-li.got b{text-decoration:line-through;text-decoration-thickness:2px}
.g-souk .sk-li.hinted{border-color:#e9a312;box-shadow:0 0 0 3px #ffe08a}
.g-souk .sk-li .tick{position:absolute;top:-8px;inset-inline-end:-6px;width:26px;height:26px}
.g-souk .sk-li .tick svg{display:block;width:100%;height:100%}
.g-souk .sk-stage{max-width:760px;background:#f3cf8f}
.g-souk .sk-hc{cursor:pointer;outline:none}
.g-souk .sk-hc:focus-visible{stroke:#2f6fd6;stroke-width:4;stroke-opacity:1}
.g-souk .sk-it{transform-box:fill-box;transform-origin:50% 50%}
.g-souk .sk-it.pop{animation:skpop .7s cubic-bezier(.2,1.6,.4,1)}
@keyframes skpop{0%{transform:scale(1)}35%{transform:scale(1.28) rotate(-4deg)}100%{transform:scale(1)}}
.g-souk .sk-burst{opacity:0;transform-box:fill-box;transform-origin:50% 50%;animation:skburst 1s ease-out}
@keyframes skburst{0%{opacity:1;transform:scale(.4)}70%{opacity:1}100%{opacity:0;transform:scale(1.35)}}
.g-souk .sk-tw{transform-box:fill-box;transform-origin:50% 50%;animation:sktw 1.1s ease-in-out infinite}
@keyframes sktw{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(1.12)}}
.g-souk .sk-ok{transform-box:fill-box;transform-origin:50% 50%}
.g-souk .sk-meter{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--muted)}
.g-souk .sk-meter .stars{font-size:1.5rem}
.g-souk .sk-fact{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;align-items:center;background:var(--ws);border-radius:var(--radius);padding:10px 14px;max-width:760px;width:100%;margin-inline:auto}
.g-souk .sk-fact .pic{display:block;width:64px;height:64px;background:#fff;border-radius:16px;border:2px solid var(--line);padding:4px}
.g-souk .sk-fact .pic svg{display:block;width:100%;height:100%}
.g-souk .sk-fact p{font-size:1.06rem;line-height:1.4;font-weight:600}
.g-souk .sk-where{font-weight:800;color:var(--wc)}
@media (max-width:760px){
  .g-souk .sk-list.names .sk-li b{font-size:.92rem}
  .g-souk .sk-fact{grid-template-columns:52px minmax(0,1fr) auto;gap:8px;padding:8px 10px}
  .g-souk .sk-fact .pic{width:52px;height:52px}
  .g-souk .sk-fact p{font-size:.98rem}
}
.g-souk .sk-fact.no{background:var(--surface-2)}
.g-souk .sk-fact.no p{font-weight:700}
.g-souk .sk-fact.no .sub{display:block;font-weight:600;font-size:.95em}
.g-souk .sk-it.no{animation:skno .45s ease-in-out}
@keyframes skno{25%{transform:rotate(-7deg)}75%{transform:rotate(7deg)}}
/* levels 2 and 3: clock, points, combo, riddles, the long souk */
.g-souk .sk-hud{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 12px;max-width:760px;width:100%;margin-inline:auto}
.g-souk .sk-time{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:2px solid var(--line);border-radius:999px;padding:4px 12px 4px 8px;font-weight:800}
.g-souk .sk-time svg{width:22px;height:22px}
.g-souk .sk-time b{font-size:1.15rem;min-width:3.4ch;font-variant-numeric:tabular-nums}
.g-souk .sk-time i{display:block;width:64px;height:10px;border-radius:99px;background:var(--surface-2);overflow:hidden;border:1.5px solid var(--line)}
.g-souk .sk-time u{display:block;height:100%;background:#2fc77a;transition:width .25s linear}
.g-souk .sk-time.low{border-color:var(--bad)}
.g-souk .sk-time.low u{background:#e5483f}
.g-souk .sk-time.low b{color:var(--bad)}
.g-souk .sk-pts{display:inline-flex;align-items:baseline;gap:6px;font-weight:800}
.g-souk .sk-pts small{color:var(--muted);font-weight:700}
.g-souk .sk-pts b{font-size:1.25rem;font-variant-numeric:tabular-nums}
.g-souk .sk-combo{background:#ffc640;color:#1a2042;border:2px solid #1a2042;border-radius:999px;padding:2px 10px;font-weight:800;animation:skcombo .5s cubic-bezier(.2,1.6,.4,1)}
@keyframes skcombo{0%{transform:scale(.4)}100%{transform:scale(1)}}
.g-souk .sk-hintb svg{width:20px;height:20px}
.g-souk .sk-hintb small{font-weight:600;opacity:.75}
.g-souk .sk-best{font-size:.92rem;color:var(--muted);font-weight:700}
.g-souk .sk-list.rids{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.g-souk .sk-list.rids .sk-li{flex-direction:row;justify-content:flex-start;gap:8px;text-align:start;padding:6px 10px;min-height:46px;border-radius:14px}
.g-souk .sk-li .num{flex:none;width:26px;height:26px;border-radius:50%;background:#ffc640;border:2px solid #1a2042;color:#1a2042;font-weight:800;display:grid;place-items:center;font-size:.85rem}
.g-souk .sk-li .rt{font-size:.95rem;font-weight:700;line-height:1.25}
.g-souk .sk-list.rids .sk-li{padding-inline-end:22px}
.g-souk .sk-li .rt b{display:block;color:var(--good);font-weight:800}
.g-souk .sk-list.rids .sk-li.got b{text-decoration:none;opacity:1}
.g-souk .sk-list.rids .sk-li.got .rt{opacity:.85}
.g-souk .sk-pan{touch-action:pan-y;cursor:grab}
.g-souk .sk-arrow{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;border:3px solid #1a2042;background:rgba(255,255,255,.9);color:#1a2042;display:grid;place-items:center;padding:0;line-height:0;box-shadow:0 3px 8px rgba(10,16,48,.25)}
.g-souk .sk-arrow svg{width:26px;height:26px}
.g-souk .sk-arrow.l{left:6px}.g-souk .sk-arrow.r{right:6px}
.g-souk .sk-arrow:disabled{opacity:.2}
.g-souk .sk-mini{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:760px;width:100%;margin-inline:auto;border:2px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
.g-souk .sk-seg{border:0;background:transparent;color:var(--ink);font-weight:800;font-size:.95rem;padding:8px 4px;min-height:42px}
.g-souk .sk-seg+.sk-seg{border-inline-start:2px solid var(--line)}
.g-souk .sk-win{position:absolute;top:0;bottom:0;border:3px solid var(--wc);border-radius:10px;background:color-mix(in srgb,var(--wc) 16%,transparent);pointer-events:none}
.g-souk .sk-float{font:800 22px var(--font-ui);fill:#ffc640;stroke:#1a2042;stroke-width:4px;paint-order:stroke;animation:skfloat 1.1s ease-out forwards}
.g-souk .sk-float.neg{fill:#ff8174}
@keyframes skfloat{0%{opacity:0;transform:translateY(8px)}20%{opacity:1}100%{opacity:0;transform:translateY(-24px)}}
@media (max-width:560px){
  .g-souk .sk-li .rt{font-size:.86rem}
  .g-souk .sk-list.rids .sk-li{padding:5px 7px;gap:6px}
  .g-souk .sk-time i{width:44px}
  .g-souk .sk-meter small,.g-souk .sk-hintb small{display:none}
  .g-souk .sk-hud{gap:6px 10px}
}
@media (prefers-reduced-motion: reduce){.g-souk .sk-float,.g-souk .sk-combo{animation:none}}
/* dark mode: the world's soft color is light, so the question bar and tints get a dark version here */
@media (prefers-color-scheme: dark){
  .g-souk{--ws:#3f2522 !important;--wc:#ff8a6b !important}
}

/* Gnawa Rhythm */
.g-gnawa .gn-pads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:600px;width:100%;margin-inline:auto}
.g-gnawa .gn-pad{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;border:4px solid #1a2042;border-radius:26px;padding:10px 8px 8px;min-width:0;
  background:radial-gradient(circle at 50% 38%,color-mix(in srgb,var(--pc) 70%,#fff) 0,var(--pc) 58%,var(--pc2) 100%);color:var(--pt);
  box-shadow:0 6px 0 var(--pc2),0 8px 16px rgba(10,16,48,.18);transition:transform .12s ease,filter .12s ease,box-shadow .12s ease;touch-action:manipulation}
.g-gnawa .gn-pad:disabled{cursor:default}
.g-gnawa .gn-pad .art{display:block;width:100%;max-width:190px;aspect-ratio:6/5;border-radius:50%;background:rgba(255,255,255,.28)}
.g-gnawa .gn-pad .art svg{display:block;width:100%;height:100%}
.g-gnawa .gn-pad .nm{font-weight:800;font-size:1.2rem;line-height:1.1}
.g-gnawa .gn-pad .nm .ar{color:inherit;opacity:.85;font-size:1.05rem}
.g-gnawa .gn-pad.lit{transform:scale(1.06);filter:brightness(1.22) saturate(1.15);box-shadow:0 0 0 6px #fff,0 0 0 10px var(--pc),0 0 36px 12px var(--pc)}
.g-gnawa .gn-pad.hit{animation:gnhit .38s ease-out}
@keyframes gnhit{0%{transform:scale(1.08);filter:brightness(1.3);box-shadow:0 0 0 6px #fff,0 0 0 10px var(--pc),0 0 30px 10px var(--pc)}100%{transform:scale(1);filter:none}}
.g-gnawa .gn-pad:active:not(:disabled){transform:translateY(3px);box-shadow:0 3px 0 var(--pc2)}
.g-gnawa .gn-met{position:absolute;top:8px;inset-inline-end:10px;width:30px;height:30px;border-radius:50%;background:#2fc77a;color:#fff;border:3px solid #1a2042;display:grid;place-items:center;font-weight:800;font-size:1rem}
.g-gnawa .gn-top{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:center;max-width:600px;width:100%;margin-inline:auto}
.g-gnawa .gn-who{width:96px;height:96px;border-radius:50%;overflow:hidden;background:#ffc640;border:3px solid var(--wc)}
.g-gnawa .gn-who.playing .bust{animation:gnbob .45s ease-in-out infinite alternate}
@keyframes gnbob{to{transform:translateY(4px) rotate(2deg)}}
.g-gnawa .gn-bub{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center;background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:10px 14px}
.g-gnawa .gn-bub b{grid-column:1/-1;font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.g-gnawa .gn-bub p{font-size:1.05rem;line-height:1.4;font-weight:600}
.g-gnawa .gn-meta{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.g-gnawa .gn-shells{display:flex;gap:6px;flex-wrap:wrap}
.g-gnawa .gn-shell{width:24px;height:30px}
.g-gnawa .gn-shell.now{animation:gnpulse 1s ease-in-out infinite alternate}
@keyframes gnpulse{to{transform:scale(1.18)}}
.g-gnawa .gn-hearts{display:flex;gap:4px}
.g-gnawa .gn-hearts svg{width:28px;height:26px}
.g-gnawa .gn-beats{display:flex;gap:6px;flex-wrap:wrap}
.g-gnawa .gn-beats i{width:20px;height:20px;border-radius:50%;background:var(--surface-2);border:3px solid var(--line)}
.g-gnawa .gn-beats i.on{background:var(--wc);border-color:#1a2042}
.g-gnawa .gn-dance{max-width:720px;background:#3b2a6b}
.g-gnawa .gn-fact{margin-inline:auto}
@media (max-width:760px){
  .g-gnawa .gn-pads{gap:10px}
  .g-gnawa .gn-pad{border-radius:22px;padding:8px 6px 6px}
  .g-gnawa .gn-pad .nm{font-size:1.05rem}
  .g-gnawa .gn-pad .nm .ar{font-size:.95rem}
  .g-gnawa .gn-top{grid-template-columns:72px minmax(0,1fr);gap:10px}
  .g-gnawa .gn-who{width:72px;height:72px}
  .g-gnawa .gn-bub p{font-size:.98rem}
}
/* the rhythm songs (levels 2 and 3) */
.g-gnawa .gn-hud{display:flex;align-items:center;justify-content:space-between;gap:6px 14px;max-width:600px;width:100%;margin-inline:auto;flex-wrap:wrap}
.g-gnawa .gn-sn{font-weight:800;color:var(--wc);flex:1 1 100%;text-align:center}
.g-gnawa .gn-score,.g-gnawa .gn-cmb{display:inline-flex;align-items:baseline;gap:6px;font-weight:800}
.g-gnawa .gn-score small,.g-gnawa .gn-cmb small{color:var(--muted);font-weight:700}
.g-gnawa .gn-score b,.g-gnawa .gn-cmb b{font-size:1.6rem;font-variant-numeric:tabular-nums;line-height:1}
.g-gnawa .gn-cmb.hot b{color:#e9a312}
.g-gnawa .gn-hw{position:relative;max-width:600px;width:100%;margin-inline:auto;height:min(60vh,440px);min-height:330px;border-radius:22px;overflow:hidden;border:3px solid var(--wc);background:linear-gradient(#22163f,#3b2a6b 62%,#5a2f5f);touch-action:none;user-select:none;-webkit-user-select:none}
.g-gnawa .gn-lanes{position:absolute;inset:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.g-gnawa .gn-lane{position:relative;border:0;border-inline-end:2px solid rgba(255,255,255,.12);background:linear-gradient(to bottom,transparent 30%,color-mix(in srgb,var(--pc) 26%,transparent));padding:0;margin:0;color:#fff;cursor:pointer;touch-action:none;border-radius:0;min-width:0}
.g-gnawa .gn-lane:last-child{border-inline-end:0}
.g-gnawa .gn-lane:focus-visible{outline:3px solid #fff;outline-offset:-4px}
.g-gnawa .gn-lane.hit{animation:gnlane .25s ease-out}
@keyframes gnlane{0%{background-color:color-mix(in srgb,var(--pc) 60%,transparent)}100%{background-color:transparent}}
.g-gnawa .gn-target{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);width:64px;height:64px;border-radius:50%;border:4px solid var(--pc);background:rgba(255,255,255,.94);box-shadow:0 0 0 3px #1a2042,0 0 18px color-mix(in srgb,var(--pc) 70%,transparent);display:grid;place-items:center;overflow:hidden}
.g-gnawa .gn-target svg{width:56px;height:47px}
.g-gnawa .gn-key{position:absolute;left:50%;bottom:2px;transform:translateX(-50%);font-size:.75rem;font-weight:800;color:rgba(255,255,255,.7)}
.g-gnawa .gn-j{position:absolute;left:50%;bottom:98px;transform:translateX(-50%);font-weight:800;font-size:1.05rem;white-space:nowrap;opacity:0;pointer-events:none;text-shadow:0 2px 0 #1a2042,0 0 6px #1a2042}
.g-gnawa .gn-j.show{animation:gnj .6s ease-out forwards}
.g-gnawa .gn-j.k1{color:#ffd166}.g-gnawa .gn-j.k2{color:#7fe0b0}.g-gnawa .gn-j.k3{color:#d6d9e0}.g-gnawa .gn-j.k0{color:#ff9a8a}
@keyframes gnj{0%{opacity:1;transform:translate(-50%,6px) scale(.8)}30%{opacity:1;transform:translate(-50%,0) scale(1.15)}100%{opacity:0;transform:translate(-50%,-18px)}}
.g-gnawa .gn-line{position:absolute;left:0;right:0;top:calc(100% - 52px);height:4px;margin-top:-2px;background:#fff;box-shadow:0 0 14px #ffc640;pointer-events:none;opacity:.6}
.g-gnawa .gn-notes{position:absolute;inset:0;pointer-events:none}
.g-gnawa .gn-n{position:absolute;top:0;width:38px;height:38px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0 12%,var(--pc) 42%);border:3px solid #1a2042;box-shadow:0 0 10px var(--pc);will-change:transform}
.g-gnawa .gn-n.done{opacity:0;transition:opacity .12s}
.g-gnawa .gn-n.miss{filter:grayscale(1);opacity:.4}
.g-gnawa .gn-count.pop{animation:gncnt .9s ease-out forwards;color:#ffd166}
@keyframes gncnt{0%{transform:scale(.5);opacity:0}25%{transform:scale(1.15);opacity:1}100%{transform:scale(1);opacity:0}}
.g-gnawa .gn-count{position:absolute;left:0;right:0;top:30%;text-align:center;font-size:3.2rem;font-weight:800;color:#fff;text-shadow:0 3px 0 #1a2042;pointer-events:none;line-height:1}
.g-gnawa .gn-ready{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:center;max-width:600px;width:100%;margin-inline:auto}
.g-gnawa .gn-howto{background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:10px 14px;display:flex;flex-direction:column;gap:6px}
.g-gnawa .gn-howto p{line-height:1.4}
.g-gnawa .gn-legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:600px;width:100%;margin-inline:auto}
.g-gnawa .gn-legend span{display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:800;font-size:.9rem;background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:8px 4px;min-width:0}
.g-gnawa .gn-legend i{width:26px;height:26px;border-radius:50%;background:var(--pc);border:3px solid #1a2042}
.g-gnawa .gn-legend em{display:flex;gap:4px;font-style:normal}
.g-gnawa kbd{font:800 .8rem var(--font-ui);border:2px solid var(--line);border-bottom-width:4px;border-radius:7px;padding:0 6px;background:var(--surface-2);color:var(--ink)}
.g-gnawa .gn-bestl{text-align:center;font-weight:700;color:var(--muted)}
.g-gnawa .gn-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:600px;width:100%;margin-inline:auto}
.g-gnawa .gn-stats div{display:flex;flex-direction:column;align-items:center;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:10px 6px}
.g-gnawa .gn-stats small{color:var(--muted);font-weight:700}
.g-gnawa .gn-stats b{font-size:1.6rem;font-weight:800;font-variant-numeric:tabular-nums}
.g-gnawa .gn-stats .p b{color:#e9a312}.g-gnawa .gn-stats .g b{color:var(--good)}.g-gnawa .gn-stats .m b{color:var(--muted)}.g-gnawa .gn-stats .s{border-color:var(--wc)}
@media (max-width:760px){
  .g-gnawa .gn-ready{grid-template-columns:72px minmax(0,1fr);gap:10px}
  .g-gnawa .gn-target{width:56px;height:56px;bottom:22px}
  .g-gnawa .gn-target svg{width:48px;height:40px}
  .g-gnawa .gn-legend span{font-size:.8rem}
}
@media (prefers-reduced-motion: reduce){.g-gnawa .gn-count.pop{animation:none}.g-gnawa .gn-lane.hit{animation:none}.g-gnawa .gn-j.show{animation:none;opacity:1}}
/* dark mode: the world's soft color is light, so the question bar and tints get a dark version here */
@media (prefers-color-scheme: dark){
  .g-gnawa{--ws:#3f2522 !important;--wc:#ff8a6b !important}
}

/* Speak Darija */
.g-darija .dj-stage{max-width:640px;background:#fbe7c6}
.g-darija .dj-bub.said{animation:djpop .5s cubic-bezier(.2,1.6,.4,1)}
.g-darija .dj-bub{transform-box:fill-box;transform-origin:50% 100%}
@keyframes djpop{0%{transform:scale(.6)}100%{transform:scale(1)}}
.g-darija .dj-hearts{animation:djup 1.4s ease-out}
@keyframes djup{0%{transform:translateY(16px);opacity:0}40%{opacity:1}100%{transform:translateY(0)}}
.g-darija .choice .ct{font-size:1.25rem}
.g-darija .choice .car{font-size:1.2rem;color:var(--wc)}
.g-darija .choices.three.withart .cart{max-width:64px}
.g-darija .dj-mean{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;align-items:center;max-width:520px;width:100%;margin-inline:auto}
.g-darija .dj-mean .who{width:110px;height:110px;border-radius:50%;overflow:hidden;background:#0f8282}
.g-darija .dj-mean .bub{position:relative;display:flex;flex-direction:column;align-items:center;gap:0;background:var(--surface);border:3px solid var(--wc);border-radius:22px;padding:12px 16px}
.g-darija .dj-mean .bub::before{content:"";position:absolute;inset-inline-start:-13px;top:44%;width:20px;height:20px;background:var(--surface);border-inline-start:3px solid var(--wc);border-bottom:3px solid var(--wc);transform:rotate(45deg)}
.g-darija .dj-mean .bub b{font-size:2.2rem;line-height:1.1;font-weight:800}
.g-darija .dj-mean .bub .ar{font-size:1.9rem;color:var(--wc);line-height:1.4}
.g-darija .dj-mean .speak{position:absolute;top:8px;inset-inline-end:8px}
.g-darija .dj-lines{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;max-width:520px;width:100%;margin-inline:auto}
.g-darija .dj-line{display:flex;align-items:center;gap:12px;border:3px solid var(--line);background:var(--surface);border-radius:18px;padding:10px 14px;text-align:start;color:var(--ink);font-size:1.2rem;min-height:56px}
.g-darija .dj-line:hover:not(:disabled){border-color:var(--wc)}
.g-darija .dj-line .n{flex:none;width:34px;height:34px;border-radius:50%;background:#ffc640;border:3px solid #1a2042;color:#1a2042;display:grid;place-items:center;font-weight:800}
.g-darija .dj-line .ar{color:var(--wc);font-size:1.1rem}
.g-darija .dj-line.used{border-color:var(--good);background:var(--good-soft);opacity:.7}
.g-darija .dj-line.no{border-color:var(--bad);background:var(--bad-soft);animation:djshake .4s}
@keyframes djshake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.g-darija .dj-log{list-style:none;margin:0 auto;padding:0;display:flex;flex-direction:column;gap:6px;max-width:520px;width:100%}
.g-darija .dj-log li{border-radius:16px;padding:6px 12px;font-size:1.02rem;max-width:88%}
.g-darija .dj-log li b{font-size:.85rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.g-darija .dj-log li .ar{color:var(--wc)}
.g-darija .dj-log .me{align-self:flex-end;background:var(--ws)}
.g-darija .dj-log .them{align-self:flex-start;background:var(--surface-2)}
.g-darija .dj-hint{font-weight:700;color:var(--bad)}
@media (max-width:760px){
  .g-darija .dj-mean{grid-template-columns:84px minmax(0,1fr)}
  .g-darija .dj-mean .who{width:84px;height:84px}
  .g-darija .choices.three.withart .cart{max-width:52px}
  .g-darija .choice .ct{font-size:1.08rem}
  .g-darija .dj-line{font-size:1.08rem}
}
.g-darija .ar,.g-darija .car{direction:rtl;unicode-bidi:isolate}
/* levels 2 and 3 */
.g-darija .dj-build{display:flex;flex-direction:column;gap:10px;align-items:center;max-width:680px;width:100%;margin-inline:auto}
.g-darija .dj-slots{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.g-darija .dj-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:72px;min-height:58px;padding:4px 10px;border:3px dashed var(--line);border-radius:14px;color:var(--muted);font-weight:800;font-size:1.3rem;line-height:1.1}
.g-darija .dj-slot.now{border-color:var(--wc);border-style:solid;box-shadow:0 0 0 4px color-mix(in srgb,var(--wc) 20%,transparent)}
.g-darija .dj-slot.on{border-style:solid;border-color:var(--good);background:var(--good-soft);color:var(--ink);animation:djpop .35s cubic-bezier(.2,1.6,.4,1)}
.g-darija .dj-slot b{font-size:1.15rem}
.g-darija .dj-slot .ar{font-size:.95rem;color:var(--wc)}
.g-darija .dj-said{display:flex;align-items:center;gap:10px;background:var(--ws);border-radius:16px;padding:8px 14px;font-size:1.2rem}
.g-darija .dj-said .ar{color:var(--wc)}
.g-darija .dj-tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:680px;width:100%;margin-inline:auto}
.g-darija .dj-tile{display:flex;flex-direction:column;align-items:center;gap:0;min-width:84px;min-height:64px;padding:6px 12px;border:3px solid #1a2042;border-radius:16px;background:#fff6e0;color:#1a2042;box-shadow:0 4px 0 #c9a26a;line-height:1.15}
.g-darija .dj-tile b{font-size:1.2rem;font-weight:800}
.g-darija .dj-tile .ar{font-size:1rem;color:#9c3324}
.g-darija .dj-tile small{font-size:.78rem;color:#6b6250;font-weight:700}
.g-darija .dj-tile:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #c9a26a}
.g-darija .dj-tile.used{visibility:hidden}
.g-darija .dj-tile.no{background:#ffd9d4;border-color:#c1272d;animation:djshake .4s}
.g-darija .dj-math{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;max-width:680px;width:100%;margin-inline:auto}
.g-darija .dj-math i{font-style:normal;font-size:2rem;font-weight:800;color:var(--wc)}
.g-darija .dj-nb{display:flex;flex-direction:column;align-items:center;background:var(--surface);border:3px solid var(--line);border-radius:16px;padding:6px 14px;min-width:80px}
.g-darija .dj-nb b{font-size:1.5rem;font-weight:800}
.g-darija .dj-nb .ar{font-size:1.05rem;color:var(--wc)}
.g-darija .dj-nb.q{border-style:dashed;border-color:var(--wc)}
.g-darija .dj-count{max-width:520px}
.g-darija .dj-word{display:flex;flex-direction:column;align-items:center;gap:0;max-width:360px;width:100%;margin-inline:auto;background:var(--surface);border:3px solid var(--wc);border-radius:22px;padding:8px 16px}
.g-darija .dj-word b{font-size:2.4rem;font-weight:800;line-height:1.1}
.g-darija .dj-word .ar{font-size:1.8rem;color:var(--wc)}
.g-darija .choices.dj-sw{grid-template-columns:repeat(4,minmax(0,1fr))}
.g-darija .choices.dj-sw .choice{padding:8px;min-height:84px}
.g-darija .choices.dj-sw .cart{max-width:90px}
.g-darija .dj-food{max-width:220px;width:60%;margin-inline:auto;background:var(--surface);border:3px solid var(--line);border-radius:24px;padding:10px;line-height:0}
.g-darija .dj-food svg{width:100%;height:auto}
.g-darija .dj-list{display:flex;flex-direction:column;align-items:center;gap:2px;max-width:560px;width:100%;margin-inline:auto;background:#fffaf0;color:#1a2042;border:2px solid #c9a26a;border-radius:6px 18px 6px 18px;padding:10px 16px;box-shadow:0 4px 0 #e8d6b0;transform:rotate(-1deg)}
.g-darija .dj-list .lbl{font-size:.8rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#9c3324}
.g-darija .dj-list b{font-size:1.3rem;text-align:center}
.g-darija .dj-list .ar{font-size:1.15rem;color:#1b4f9c}
.g-darija .choices.dj-bk{max-width:460px}
.g-darija .choices.dj-bk .choice{flex-direction:row;gap:12px;padding:8px 14px}
.g-darija .choices.dj-bk .cart{max-width:300px;flex:1}
.g-darija .choices.dj-bk .ct{flex:none;font-size:1rem}
.g-darija .dj-hud{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 14px;max-width:680px;width:100%;margin-inline:auto;font-weight:800}
.g-darija .dj-time{display:inline-flex;align-items:center;gap:8px;background:var(--surface);border:2px solid var(--line);border-radius:999px;padding:4px 12px}
.g-darija .dj-time b{font-size:1.2rem;font-variant-numeric:tabular-nums;min-width:3.4ch}
.g-darija .dj-time i{display:block;width:80px;height:10px;border-radius:99px;background:var(--surface-2);overflow:hidden;border:1.5px solid var(--line)}
.g-darija .dj-time u{display:block;height:100%;background:#2fc77a;transition:width .2s linear}
.g-darija .dj-time.low{border-color:var(--bad)}.g-darija .dj-time.low u{background:#e5483f}.g-darija .dj-time.low b{color:var(--bad)}
.g-darija .dj-n b{font-size:1.4rem}.g-darija .dj-n small{color:var(--muted)}
.g-darija .dj-streak{background:#ffc640;color:#1a2042;border:2px solid #1a2042;border-radius:999px;padding:2px 10px;animation:djpop .4s cubic-bezier(.2,1.6,.4,1)}
.g-darija .dj-bst{color:var(--muted);font-size:.92rem}
.g-darija .dj-prompt{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:120px;max-width:420px;width:100%;margin-inline:auto;background:var(--surface);border:3px solid var(--wc);border-radius:24px;padding:10px 16px;text-align:center}
.g-darija .dj-prompt b{font-size:2rem;font-weight:800;line-height:1.15}
.g-darija .dj-prompt .ar{font-size:1.6rem;color:var(--wc)}
.g-darija .dj-prompt .pic{display:block;width:120px;line-height:0}
.g-darija .dj-prompt .pic svg{width:100%;height:auto}
.g-darija .dj-prompt small{font-weight:700;color:var(--muted)}
.g-darija .dj-prompt.ok{animation:djok .35s ease-out}.g-darija .dj-prompt.no{animation:djshake .35s}
@keyframes djok{0%{box-shadow:0 0 0 10px color-mix(in srgb,var(--good) 45%,transparent)}100%{box-shadow:0 0 0 0 transparent}}
.g-darija .dj-dig{font-size:2.2rem;font-weight:800;line-height:1}
.g-darija .dj-prompt .dj-dig{font-size:3.4rem}
.g-darija .dj-ropts .choice{position:relative;min-height:72px}
.g-darija .dj-ropts .cart{max-width:70px}
.g-darija .dj-ropts kbd{position:absolute;top:4px;inset-inline-start:6px;font:800 .7rem var(--font-ui);color:var(--muted);border:1.5px solid var(--line);border-radius:5px;padding:0 4px}
.g-darija .dj-rintro{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:center;max-width:560px;width:100%;margin-inline:auto}
.g-darija .dj-rintro .who{width:96px;height:96px;border-radius:50%;overflow:hidden;background:#0f8282}
.g-darija .dj-rintro .bub{display:flex;flex-direction:column;gap:6px;background:var(--surface);border:3px solid var(--wc);border-radius:20px;padding:12px 16px}
.g-darija .dj-rintro p{line-height:1.4;font-size:1.05rem}
@media (max-width:560px){.g-darija .dj-rintro{grid-template-columns:72px minmax(0,1fr)}.g-darija .dj-rintro .who{width:72px;height:72px}}
.g-darija .dj-best{color:var(--wc)}
.g-darija .dj-raceend{display:flex;flex-direction:column;align-items:center;gap:4px}
.g-darija .dj-raceend b{font-size:4rem;font-weight:800;line-height:1;color:var(--wc)}
.g-darija .dj-raceend > span:not(.chip){font-weight:800;color:var(--muted)}
.g-darija .dj-chat{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:start;max-width:620px;width:100%;margin-inline:auto}
.g-darija .dj-chat .who{width:96px;height:96px;border-radius:50%;overflow:hidden;background:#ffc640;border:3px solid var(--wc);position:sticky;top:110px}
.g-darija .dj-chat .dj-log{max-width:none}
.g-darija .dj-log li.them{display:flex;align-items:center;gap:8px;font-weight:600}
.g-darija .dj-log li.them.new{animation:djpop .4s cubic-bezier(.2,1.6,.4,1);transform-origin:0 50%}
.g-darija .dj-log li.me small,.g-darija .dj-line small{display:block;color:var(--muted);font-size:.85rem;font-weight:600}
.g-darija .dj-chat .dj-log li.me b{font-size:1.08rem;text-transform:none;letter-spacing:0;color:var(--ink);font-weight:800}
.g-darija .dj-chat .dj-log li.me .ar,.g-darija .dj-line .ar{display:block}
.g-darija .dj-chat .dj-log li{max-width:92%}
.g-darija .dj-log li .speak{width:34px;height:34px}
@media (max-width:760px){
  .g-darija .dj-tile{min-width:70px;padding:5px 9px}
  .g-darija .dj-tile b{font-size:1.05rem}
  .g-darija .dj-slot{min-width:58px;min-height:52px;padding:4px 7px}
  .g-darija .dj-slot b{font-size:1rem}
  .g-darija .choices.dj-sw{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-darija .dj-chat{grid-template-columns:64px minmax(0,1fr);gap:8px}
  .g-darija .dj-chat .who{width:64px;height:64px}
  .g-darija .dj-prompt b{font-size:1.6rem}
  .g-darija .dj-nb{min-width:64px;padding:4px 8px}
  .g-darija .dj-nb b{font-size:1.2rem}
  .g-darija .dj-math i{font-size:1.5rem}
}
@media (prefers-reduced-motion: reduce){.g-darija .dj-slot.on,.g-darija .dj-streak,.g-darija .dj-prompt.ok,.g-darija .dj-prompt.no,.g-darija .dj-log li.them.new,.g-darija .dj-tile.no{animation:none}}
/* dark mode: the world's soft color is light, so the question bar and tints get a dark version here */
@media (prefers-color-scheme: dark){
  .g-darija{--ws:#3f2522 !important;--wc:#ff8a6b !important}
}
.g-darija .dj-line .ar{text-align:left}

/* Celebration Calendar */
.g-fete .ft-day{display:flex;align-items:center;gap:12px;background:var(--surface);border:2px solid var(--line);border-radius:var(--radius);padding:10px 14px;max-width:680px;width:100%;margin-inline:auto}
.g-fete .ft-day > svg{width:64px;height:64px;flex:none}
.g-fete .ft-dn{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.2}
.g-fete .ft-dn b{font-size:1.3rem;font-weight:800}
.g-fete .ft-dn .ar{font-size:1.15rem;color:var(--wc);direction:rtl;unicode-bidi:isolate;align-self:flex-start}
.g-fete .ft-dn small{color:var(--muted);font-weight:600}
.g-fete .ft-thumb{flex:none;width:96px;border-radius:12px;overflow:hidden;border:2px solid var(--line);line-height:0}
.g-fete .ft-thumb svg{display:block;width:100%;height:auto}
.g-fete .choices.ft-pics .choice{padding:8px;gap:6px;font-size:1rem}
.g-fete .choices.ft-pics .cart{max-width:none;width:100%;border-radius:12px;overflow:hidden;border:2px solid var(--line)}
.g-fete .choices.ft-pics.withart .cart{max-width:none}
.g-fete .choices.ft-pics .ct{font-size:.98rem;line-height:1.15}
.g-fete .ft-wheel{max-width:460px;background:#fff6e6;border-radius:50%;aspect-ratio:1/1}
.g-fete .ft-w{cursor:pointer;outline:none}
.g-fete .ft-w:hover path{filter:brightness(1.06)}
.g-fete .ft-w:focus-visible path{stroke:#2f6fd6;stroke-width:5}
.g-fete .ft-w.ok path{fill:#2fc77a;stroke-width:4}
.g-fete .ft-w.no path{fill:#ff8174}
.g-fete .ft-mn{font:800 19px var(--font-ui);fill:#1a2042}
.g-fete .ft-ma{font:700 15px var(--font-ar);fill:#1a2042;opacity:.8}
.g-fete .ft-bd{font:800 13px var(--font-ui);fill:#1a2042}
.g-fete .ft-badge.fresh{transform-box:fill-box;transform-origin:50% 50%;animation:ftpop .6s cubic-bezier(.2,1.6,.4,1)}
@keyframes ftpop{0%{transform:scale(.2)}100%{transform:scale(1)}}
.g-fete .ft-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:680px;width:100%;margin-inline:auto}
.g-fete .ft-slot{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:110px;border:3px dashed var(--line);border-radius:16px;padding:8px;text-align:center;font-weight:800;line-height:1.15;background:var(--surface)}
.g-fete .ft-slot.on{border-style:solid;border-color:var(--good);background:var(--good-soft)}
.g-fete .ft-slot .num{position:absolute;top:-10px;inset-inline-start:-8px;width:32px;height:32px;border-radius:50%;background:#ffc640;border:3px solid #1a2042;color:#1a2042;font-weight:800;display:grid;place-items:center}
.g-fete .ft-slot .cart{display:block;width:100%;border-radius:10px;overflow:hidden;line-height:0}
.g-fete .ft-slot .cart svg{display:block;width:100%;height:auto}
.g-fete .ft-empty{font-size:2rem;color:var(--muted)}
.g-fete .ft-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.g-fete .ft-card .cart{border-radius:10px;overflow:hidden;line-height:0}
.g-fete .ft-card .ar{font-family:var(--font-ar);color:var(--wc);font-size:.95rem}
.g-fete .ft-card.no{animation:ftshake .4s}
@keyframes ftshake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.g-fete .ft-hint{font-weight:700;color:var(--bad)}
.g-fete .ft-moon{max-width:640px;background:#1b2a5c}
.g-fete .ft-lbl{font:700 14px var(--font-ui);fill:#1a2042}
.g-fete .ft-lbl.light{fill:#fff;font-size:13px}
.g-fete .ft-party{max-width:720px;background:#0c1240}
@media (max-width:760px){
  .g-fete .ft-day{padding:8px 10px;gap:10px}
  .g-fete .ft-day > svg{width:52px;height:52px}
  .g-fete .ft-dn b{font-size:1.12rem}
  .g-fete .ft-thumb{width:76px}
  .g-fete .choices.three.ft-pics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .g-fete .choices.ft-pics .choice{padding:6px;font-size:.88rem}
  .g-fete .choices.ft-pics .ct{font-size:.84rem}
  .g-fete .ft-slot{min-height:90px;padding:6px;font-size:.85rem}
  .g-fete .ft-card{font-size:.85rem;padding:6px}
}
.g-fete .ft-seasons{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.g-fete .ft-seasons span{border-radius:999px;padding:2px 12px;font-weight:800;font-size:.9rem;color:#1a2042;border:2px solid #1a2042}
.g-fete .ft-seasons .w{background:#9cc7ff}.g-fete .ft-seasons .sp{background:#8fd99a}.g-fete .ft-seasons .su{background:#ffd166}.g-fete .ft-seasons .au{background:#f4a261}
/* level 2: match the pictures, the race */
.g-fete .ft-mnames{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:680px;width:100%;margin-inline:auto}
.g-fete .ft-mname{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:58px;border:3px solid var(--line);background:var(--surface);border-radius:16px;padding:6px 8px;color:var(--ink);line-height:1.15;text-align:center}
.g-fete .ft-mname b{font-size:1rem;font-weight:800}
.g-fete .ft-mname .ar{font-family:var(--font-ar);color:var(--wc);font-size:.9rem}
.g-fete .ft-mpics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:680px;width:100%;margin-inline:auto}
.g-fete .ft-mpic{display:flex;flex-direction:column;gap:4px;align-items:stretch;border:3px solid var(--line);background:var(--surface);border-radius:16px;padding:6px;color:var(--ink);min-width:0}
.g-fete .ft-mpic .cart{display:block;border-radius:10px;overflow:hidden;line-height:0}
.g-fete .ft-mpic .cart svg{display:block;width:100%;height:auto}
.g-fete .ft-mpic small{font-weight:700;font-size:.8rem;line-height:1.15;text-align:center;color:var(--good)}
.g-fete .ft-mname.sel,.g-fete .ft-mpic.sel{border-color:#2f6fd6;background:color-mix(in srgb,#2f6fd6 14%,var(--surface));box-shadow:0 0 0 3px color-mix(in srgb,#2f6fd6 30%,transparent)}
.g-fete .ft-mname.yes,.g-fete .ft-mpic.yes{border-color:var(--good);background:var(--good-soft)}
.g-fete .ft-mname.no,.g-fete .ft-mpic.no{border-color:var(--bad);background:var(--bad-soft);animation:ftshake .4s}
.g-fete .ft-rintro{display:flex;flex-direction:column;gap:6px;max-width:680px;width:100%;margin-inline:auto}
.g-fete .ft-vs{text-align:center;font-weight:800;color:var(--muted)}
.g-fete .ft-hud{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 16px;max-width:680px;width:100%;margin-inline:auto;font-weight:800}
.g-fete .ft-time{display:inline-flex;align-items:center;gap:8px;background:var(--surface);border:2px solid var(--line);border-radius:999px;padding:4px 12px}
.g-fete .ft-time b{font-size:1.2rem;font-variant-numeric:tabular-nums;min-width:3.4ch}
.g-fete .ft-time i{display:block;width:80px;height:10px;border-radius:99px;background:var(--surface-2);overflow:hidden;border:1.5px solid var(--line)}
.g-fete .ft-time u{display:block;height:100%;background:#2fc77a;transition:width .2s linear}
.g-fete .ft-time.low{border-color:var(--bad)}.g-fete .ft-time.low u{background:#e5483f}.g-fete .ft-time.low b{color:var(--bad)}
.g-fete .ft-pts b{font-size:1.4rem;font-variant-numeric:tabular-nums}.g-fete .ft-pts small{color:var(--muted)}
.g-fete .ft-streak{background:#ffc640;color:#1a2042;border:2px solid #1a2042;border-radius:999px;padding:2px 10px}
.g-fete .ft-bst{color:var(--muted);font-size:.92rem}
.g-fete .ft-rq{text-align:center;font-weight:800;font-size:1.2rem}
.g-fete .ft-two{grid-template-columns:repeat(2,minmax(0,1fr));max-width:560px}
.g-fete .ft-rcard{font-size:1rem;gap:6px}
.g-fete .ft-rcard .cart{border-radius:10px;overflow:hidden;line-height:0}
.g-fete .ft-rcard .ar{font-family:var(--font-ar);color:var(--wc);font-size:.95rem}
.g-fete .ft-rlast{text-align:center;font-weight:700;font-size:.95rem;max-width:560px;margin-inline:auto}
.g-fete .ft-rlast.ok{color:var(--good)}.g-fete .ft-rlast.no{color:var(--bad)}
.g-fete .ft-rend{display:flex;flex-direction:column;align-items:center;gap:4px}
.g-fete .ft-rend b{font-size:4rem;font-weight:800;line-height:1;color:var(--wc)}
.g-fete .ft-rend > span:not(.chip){font-weight:800;color:var(--muted)}
/* level 3: the calendar challenge */
.g-fete .ft-q{display:flex;align-items:center;gap:12px;max-width:680px;width:100%;margin-inline:auto;background:var(--surface);border:3px solid var(--wc);border-radius:var(--radius);padding:12px 16px}
.g-fete .ft-q .ico{flex:none;width:56px;height:56px}.g-fete .ft-q .ico svg{width:100%;height:100%}
.g-fete .ft-q p{font-size:1.2rem;font-weight:700;line-height:1.35}
.g-fete .choices.ft-qopts .choice{font-size:1.05rem;min-height:58px}
.g-fete .ft-s5s{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;max-width:680px;width:100%;margin-inline:auto}
.g-fete .ft-s5{display:inline-flex;align-items:center;gap:6px;border:2px solid var(--good);background:var(--good-soft);border-radius:999px;padding:3px 10px 3px 4px;line-height:1.1;animation:ftpop .4s cubic-bezier(.2,1.6,.4,1)}
.g-fete .ft-s5 .num{flex:none;width:24px;height:24px;border-radius:50%;background:#ffc640;border:2px solid #1a2042;color:#1a2042;font-weight:800;font-size:.8rem;display:grid;place-items:center}
.g-fete .ft-s5 b{font-size:.9rem;font-weight:800}.g-fete .ft-s5 small{font-size:.8rem;color:var(--good);font-weight:800}
.g-fete .ft-s5.rest{border:2px dashed var(--line);background:transparent;color:var(--muted);font-weight:800;padding:3px 12px;animation:none}
.g-fete .ft-c5s{grid-template-columns:repeat(5,minmax(0,1fr))}
.g-fete .ft-c5 .cart{max-width:120px;margin-inline:auto}
.g-fete .ft-c5{font-size:.85rem;padding:6px}
.g-fete .ft-c5 .cart{border-radius:10px;overflow:hidden;line-height:0}
.g-fete .ft-c5.no{animation:ftshake .4s}
.g-fete .ft-sort{display:flex;flex-direction:column;gap:8px;max-width:680px;width:100%;margin-inline:auto}
.g-fete .ft-sth{display:block;width:60px;border-radius:8px;overflow:hidden;line-height:0;border:2px solid var(--line)}.g-fete .ft-sth svg{display:block;width:100%;height:auto}
.g-fete .ft-srow{display:grid;grid-template-columns:60px minmax(0,1fr) auto auto;gap:10px;align-items:center;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:6px 10px}
.g-fete .ft-srow .nm{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.g-fete .ft-srow .nm b{font-weight:800}
.g-fete .ft-srow .ar{font-family:var(--font-ar);color:var(--wc);font-size:.9rem;align-self:flex-start}
.g-fete .ft-sb{display:inline-flex;align-items:center;gap:4px;border:3px solid var(--line);background:var(--surface-2);color:var(--ink);border-radius:14px;padding:6px 10px;font-weight:800;min-height:44px}
.g-fete .ft-sb svg{width:22px;height:22px}
.g-fete .ft-sb.yes{border-color:var(--good);background:var(--good-soft)}.g-fete .ft-sb.yes.ghost{background:transparent;border-style:dashed}
.g-fete .ft-sb.no{border-color:var(--bad);background:var(--bad-soft)}
@media (max-width:760px){
  .g-fete .ft-mpics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-fete .ft-c5s{grid-template-columns:repeat(3,minmax(0,1fr))}
  .g-fete .ft-srow{grid-template-columns:44px minmax(0,1fr) auto auto;gap:6px;padding:6px 8px}
  .g-fete .ft-sth{width:44px}
  .g-fete .ft-sb{padding:6px 7px;font-size:.9rem}
  .g-fete .ft-q p{font-size:1.05rem}
}
/* dark mode: the world's soft color is light, so the question bar and tints get a dark version here */
@media (prefers-color-scheme: dark){
  .g-fete{--ws:#3f2522 !important;--wc:#ff8a6b !important}
}

/* Jemaa el-Fna Juice Stand */
.g-juice{--tint:color-mix(in srgb,var(--wc) 16%,var(--surface))}
.g-juice .ask,.g-juice .fact.tint{background:var(--tint)}
.g-juice .jc-stage{max-width:620px;border-color:#1f8a63;background:#2a2f55}
.g-juice .jc-sq,.g-juice .jc-scene{display:block;width:100%;height:auto}
.g-juice .jc-tw{animation:jc-tw 2.4s ease-in-out infinite alternate}
@keyframes jc-tw{from{opacity:.35}to{opacity:1}}
.g-juice .jc-smoke{animation:jc-smoke 4.5s ease-in-out infinite;transform-box:fill-box;transform-origin:center bottom}
@keyframes jc-smoke{0%{transform:translateY(6px) scaleY(.7);opacity:0}30%{opacity:1}100%{transform:translateY(-14px) scaleY(1.15);opacity:0}}
.g-juice .jc-hud{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px;max-width:620px;width:100%;margin-inline:auto;background:var(--tint);border-radius:18px;padding:8px 14px;font-weight:700;color:var(--muted)}
.g-juice .jc-day{position:relative;flex:1 1 110px;min-width:90px;height:14px;border-radius:999px;background:linear-gradient(90deg,#ffd07a,#f08a4b 25%,#8a4f8f 45%,#1d2357 70%,#0b1238);border:2px solid var(--line)}
.g-juice .jc-sun{position:absolute;top:50%;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;background:#ffe08a;border:2.5px solid #1a2042;box-shadow:0 0 0 4px rgba(255,198,64,.35)}
.g-juice .jc-clock{font-variant-numeric:tabular-nums;color:var(--ink);min-width:3.2em;text-align:center}
.g-juice .jc-stat{display:inline-flex;align-items:center;gap:4px}
.g-juice .jc-stat b{color:var(--wc);font-size:1.2rem;font-variant-numeric:tabular-nums}
.g-juice .jc-stat svg{width:18px;height:22px}
.g-juice .jc-stat .st{width:18px;height:18px;color:var(--star)}
.g-juice .jc-ci{width:22px!important;height:22px!important}
/* customers */
.g-juice .jc-seats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:620px;width:100%;margin-inline:auto}
.g-juice .jc-seats.n1{grid-template-columns:minmax(0,220px);justify-content:center}
.g-juice .jc-seatw{position:relative;display:flex;min-width:0}
.g-juice .jc-seat{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;min-height:150px;padding:6px 4px;border-radius:16px;border:3px solid #c9a66b;background:#fff8ec;color:#1a2042;box-shadow:0 4px 0 rgba(26,32,66,.2);animation:jc-arrive .45s cubic-bezier(.2,1.4,.4,1)}
@keyframes jc-arrive{from{transform:translateY(16px) scale(.9);opacity:0}}
.g-juice .jc-seat.empty{border:2px dashed var(--line);background:transparent;box-shadow:none;animation:none}
.g-juice .jc-seat.can{border-color:#2fc77a;box-shadow:0 0 0 3px rgba(47,199,122,.35),0 4px 0 rgba(26,32,66,.2)}
.g-juice .jc-seat:hover:not(.empty){border-color:var(--wc)}
.g-juice .jc-bust .bust{width:62px;height:62px;display:block}
.g-juice .jc-order{display:flex;align-items:center;gap:4px;text-align:start;line-height:1.1}
.g-juice .jc-order svg{width:20px;height:26px;flex:none}
.g-juice .jc-order b{display:block;font-size:.84rem}
.g-juice .jc-order small{display:block;font-weight:800;color:#a8642e}
.g-juice .jc-pat{width:84%;height:8px;border-radius:999px;background:#e8e2d4;overflow:hidden;margin-top:auto}
.g-juice .jc-pat i{display:block;height:100%;border-radius:999px}
.g-juice .jc-flash{position:absolute;left:4px;right:4px;top:38%;padding:6px 4px;border-radius:12px;font-weight:800;font-size:.85rem;text-align:center;animation:jc-flash 1.8s ease-out forwards}
.g-juice .jc-flash.ok{background:#d2f1e4;color:#0d5c44}
.g-juice .jc-flash.bad{background:#fde2de;color:#9a2b22}
@keyframes jc-flash{0%{transform:translateY(8px);opacity:0}15%{transform:none;opacity:1}75%{opacity:1}100%{transform:translateY(-14px);opacity:0}}
.g-juice .jc-salam{position:absolute;top:-8px;right:-4px;border:2.5px solid #1a2042;background:#ffc640;color:#1a2042;border-radius:999px;padding:6px 10px;font-weight:800;font-size:.85rem;min-height:36px;animation:jc-bob .8s ease-in-out infinite alternate;z-index:1}
@keyframes jc-bob{to{transform:translateY(-4px)}}
.g-juice .jc-greeted{position:absolute;top:2px;right:8px;color:#e5484d;font-size:1.1rem}
/* controls */
.g-juice .jc-ctl{display:flex;flex-direction:column;align-items:center;gap:8px;max-width:620px;width:100%;margin-inline:auto}
.g-juice .jc-fruits{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;width:100%}
.g-juice .jc-fruit{display:flex;align-items:center;gap:6px;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:16px;padding:6px 12px 6px 8px;font-weight:800;min-height:52px;flex:1 1 0;max-width:200px;justify-content:center}
.g-juice .jc-fruit svg{width:34px;height:36px;flex:none}
.g-juice .jc-fruit span{display:flex;flex-direction:column;line-height:1.1;text-align:start}
.g-juice .jc-fruit small{font-weight:700;color:var(--muted);font-size:.78rem}
.g-juice .jc-fruit.sel{border-color:var(--wc)}
.g-juice .jc-fruit:disabled{opacity:.45;cursor:default}
.g-juice .jc-acts{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:10px;width:100%}
.g-juice .jc-cut,.g-juice .jc-press{display:flex;align-items:center;justify-content:center;gap:8px;min-height:68px;border:0;border-radius:22px;color:#fff;font-weight:800;font-size:1.2rem;padding:8px 12px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.g-juice .jc-cut{background:#2f6fd6;box-shadow:0 6px 0 #1b4f9c}
.g-juice .jc-cut.on{animation:jc-glow 1s ease-in-out infinite alternate}
@keyframes jc-glow{to{box-shadow:0 6px 0 #1b4f9c,0 0 0 6px rgba(47,111,214,.3)}}
.g-juice .jc-press{background:var(--wc);box-shadow:0 6px 0 color-mix(in srgb,var(--wc) 55%,#000)}
.g-juice .jc-press.on{transform:translateY(4px);box-shadow:0 2px 0 color-mix(in srgb,var(--wc) 55%,#000)}
.g-juice .jc-cut:disabled,.g-juice .jc-press:disabled{background:#b9bfd0;box-shadow:0 6px 0 #9aa1b6;cursor:default}
.g-juice .jc-cut svg,.g-juice .jc-press svg{width:40px;height:40px;flex:none;pointer-events:none}
.g-juice .jc-cut span,.g-juice .jc-press span{pointer-events:none}
.g-juice .jc-msg{font-weight:800;color:var(--wc);text-align:center;min-height:1.4em;margin:0;font-size:1.05rem;line-height:1.3}
.g-juice .jc-msg.bad{color:var(--bad)}
.g-juice .jc-small{justify-content:center;gap:8px}
.g-juice .jc-fact{max-width:620px;margin-inline:auto}
/* change */
.g-juice .jc-modal{display:flex;flex-direction:column;align-items:center;gap:8px;max-width:620px;width:100%;margin-inline:auto;border:3px solid var(--wc);text-align:center}
.g-juice .jc-mhead{display:flex;align-items:center;gap:10px;text-align:start}
.g-juice .jc-mbust .bust{width:56px;height:56px;display:block}
.g-juice .jc-mhead b{display:block;font-size:1.1rem}
.g-juice .jc-paid{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--muted)}
.g-juice .jc-paid svg{height:28px;width:auto}
.g-juice .jc-tray{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center;min-height:58px;width:100%;border:2px dashed var(--line);border-radius:14px;padding:6px;background:var(--surface-2)}
.g-juice .jc-coin{border:0;background:none;padding:2px;min-width:44px;min-height:44px;display:grid;place-items:center}
.g-juice .jc-coin svg{height:38px;width:auto;display:block}
.g-juice .jc-coin.big svg{height:48px}
.g-juice .jc-drawer{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.g-juice .jc-drawer .jc-coin{border:2px solid var(--line);border-radius:14px;background:var(--surface);padding:4px 6px}
.g-juice .jc-total{font-weight:700;margin:0}
.g-juice .jc-total b{color:var(--wc);font-size:1.3rem}
/* brief, market, report */
.g-juice .jc-brief,.g-juice .jc-market,.g-juice .jc-report{gap:10px;max-width:620px;width:100%;margin-inline:auto}
.g-juice .jc-legend{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.g-juice .jc-legend li{display:flex;align-items:center;gap:8px}
.g-juice .jc-legend svg{width:22px;height:28px}
.g-juice .jc-best{align-self:center}
.g-juice .jc-crates{display:grid;gap:8px}
.g-juice .jc-crate{display:grid;grid-template-columns:70px minmax(0,1fr) auto;align-items:center;gap:8px;border:2px solid var(--line);border-radius:14px;padding:6px 10px;background:var(--surface)}
.g-juice .jc-crate svg{width:70px;height:46px}
.g-juice .jc-crate b{display:block;line-height:1.15}
.g-juice .jc-crate small{color:var(--muted);font-weight:700}
.g-juice .jc-step{display:flex;align-items:center;gap:8px}
.g-juice .jc-step b{font-size:1.4rem;min-width:1.2em;text-align:center;color:var(--wc)}
.g-juice .jc-step .btn{min-width:44px;min-height:44px}
.g-juice .jc-price{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.g-juice .jc-price .sub{margin:0}
.g-juice .jc-sumgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
.g-juice .jc-sumgrid span{background:var(--tint);border-radius:14px;padding:10px;text-align:center;font-weight:700;color:var(--muted)}
.g-juice .jc-sumgrid b{display:block;font-size:1.5rem;color:var(--wc)}
.g-juice .jc-sumgrid .st{width:18px;height:18px;color:var(--star)}
.g-juice .jc-profit{text-align:center;font-weight:700;margin:0}
.g-juice .jc-profit b{font-size:1.6rem;color:var(--wc)}
.g-juice .jc-profit small{display:block;color:var(--muted);font-weight:600}
@media (max-width:760px){
  .g-juice .jc-seat{min-height:136px}
  .g-juice .jc-bust .bust{width:52px;height:52px}
  .g-juice .jc-order b{font-size:.74rem}
  .g-juice .jc-fruit{padding:4px 8px 4px 6px;min-height:48px}
  .g-juice .jc-fruit svg{width:28px;height:30px}
  .g-juice .jc-fruit span{font-size:.85rem}
  .g-juice .jc-cut,.g-juice .jc-press{font-size:1.05rem;min-height:60px}
  .g-juice .jc-cut svg,.g-juice .jc-press svg{width:32px;height:32px}
}
@media (prefers-reduced-motion:reduce){.g-juice .jc-smoke,.g-juice .jc-tw,.g-juice .jc-salam,.g-juice .jc-seat,.g-juice .jc-cut.on{animation:none!important}}
.g-juice .jc-fruits{flex-wrap:nowrap}
.g-juice .jc-fruit{min-width:0}
@media (max-width:760px){
  .g-juice .jc-fruits{gap:6px}
  .g-juice .jc-fruit{flex-direction:column;gap:2px;padding:4px 4px;font-size:.8rem}
  .g-juice .jc-fruit span{text-align:center;font-size:.8rem}
  .g-juice .jc-crate{grid-template-columns:52px minmax(0,1fr) auto;padding:6px 8px;gap:6px}
  .g-juice .jc-crate svg{width:52px;height:36px}
  .g-juice .jc-step{gap:4px}
}

/* Five Pillars */
.g-pillars .pl-rise{animation:plRise 1s cubic-bezier(.2,1.25,.4,1) both}
@keyframes plRise{from{transform:translateY(100px)}}
.g-pillars .pl-move{animation:plMove 1.1s ease-in-out .25s both}
@keyframes plMove{from{transform:translateX(var(--dx))}}
.g-pillars .pl-settle{animation:plSettle .9s cubic-bezier(.2,1.5,.4,1) .8s both}
@keyframes plSettle{from{transform:translateY(-16px)}}
.g-pillars .pl-q{animation:plBob 1s ease-in-out infinite alternate}
@keyframes plBob{to{transform:translateY(-7px)}}
.g-pillars .pl-rays{transform-origin:200px 120px;animation:plSpin 40s linear infinite}
@keyframes plSpin{to{transform:rotate(360deg)}}
.g-pillars .pl-tw{transform-box:fill-box;transform-origin:center;animation:plTw 1.4s ease-in-out infinite alternate}
.g-pillars .pl-tw.t1{animation-delay:.45s}.g-pillars .pl-tw.t2{animation-delay:.9s}
@keyframes plTw{from{transform:scale(.6);opacity:.5}}
.g-pillars .pl-num{animation:plPop .4s cubic-bezier(.2,1.6,.4,1) both;transform-box:fill-box;transform-origin:center}
@keyframes plPop{from{transform:scale(0)}}
.g-pillars .pl-shake{animation:plShake .45s}
@keyframes plShake{20%{transform:translateX(-7px)}40%{transform:translateX(7px)}60%{transform:translateX(-5px)}80%{transform:translateX(4px)}}
.g-pillars .pl-row{grid-template-columns:repeat(5,minmax(0,1fr))}
.g-pillars .pl-row .tcard{font-size:1.1rem;padding:10px 6px}
.g-pillars .pl-row .tcard .ar{font-size:1.05rem}
.g-pillars .pl-ic{max-width:64px;margin-inline:auto}
.g-pillars .fb .ar{font-size:1.1rem;color:var(--wc)}
@media (max-width:760px){
  .g-pillars .pl-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .g-pillars .pl-ic{max-width:52px}
}
.g-pillars .pl-card{max-width:580px}
.g-pillars .pl-house.mini{max-width:480px}
/* soft panels that stay readable in dark mode */
.g-pillars .ask,.g-pillars .fact.tint{background:color-mix(in srgb,var(--wc) 18%,var(--surface))}
/* v2: the combo match (level 2) and the master challenge (level 3) */
.g-pillars .pl-hud{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;max-width:680px;width:100%;margin-inline:auto}
.g-pillars .pl-hud .chip{font-size:.95rem}
.g-pillars .pl-combo.hot{background:#ffc640;color:#1a2042;animation:plPop .35s cubic-bezier(.2,1.6,.4,1)}
.g-pillars .pl-pts{background:color-mix(in srgb,var(--wc) 20%,var(--surface));color:var(--ink)}
.g-pillars .pl-timer{position:relative;flex:1 1 100%;height:16px;border-radius:999px;background:var(--surface-2);overflow:hidden;border:2px solid var(--line)}
.g-pillars .pl-timer i{position:absolute;inset-block:0;inset-inline-start:0;background:var(--wc);border-radius:999px}
.g-pillars .pl-timer i.low{background:#e5583d}
.g-pillars .pl-timer b{position:absolute;inset-inline-end:8px;top:50%;transform:translateY(-50%);font-size:.78rem;line-height:1;color:var(--ink)}
.g-pillars .choices.pl-five{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.g-pillars .pl-five .choice{padding:8px 4px;font-size:1rem;min-height:56px}
.g-pillars .pl-five .cart{max-width:48px}
.g-pillars .pl-five .car{font-size:.95rem}
.g-pillars .pl-flash{animation:plPop .3s cubic-bezier(.2,1.6,.4,1)}
.g-pillars .pl-plus{display:inline-block;font-weight:800;color:var(--good)}
.g-pillars .pl-how{display:block;margin-top:6px;font-weight:700;color:var(--ink);background:color-mix(in srgb,var(--wc) 14%,var(--surface));border-radius:12px;padding:6px 10px}
.g-pillars .pl-zk{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:8px;max-width:680px;width:100%;margin-inline:auto;align-items:stretch}
.g-pillars .pl-zrow{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:8px 6px;line-height:1.15}
.g-pillars .pl-zrow span{color:var(--muted);font-weight:700;font-size:.9rem}
.g-pillars .pl-zrow small{font-weight:600;font-size:.75rem}
.g-pillars .pl-zrow b{font-size:1.25rem;font-weight:800}
.g-pillars .pl-zjar{grid-column:1/-1;line-height:0;max-width:300px;margin-inline:auto;width:100%}
.g-pillars .pl-zjar svg{width:100%;height:auto;display:block}
.g-pillars .pl-orow{grid-template-columns:repeat(2,minmax(0,1fr));max-width:680px}
.g-pillars .pl-ocard{flex-direction:row;text-align:start;gap:10px;padding:8px 10px;font-size:1rem;min-height:64px}
.g-pillars .pl-ocard .cart{width:48px;flex:none}
.g-pillars .pl-ot{display:flex;flex-direction:column;gap:2px;line-height:1.2}
.g-pillars .pl-ot .ar{font-size:.95rem}
.g-pillars .pl-sum{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;max-width:680px;width:100%;margin-inline:auto}
.g-pillars .pl-sum .kick{font-weight:800;color:var(--wc);text-transform:uppercase;letter-spacing:.06em;font-size:.85rem}
.g-pillars .pl-big{font-size:3rem;font-weight:800;line-height:1;color:var(--ink)}
.g-pillars .pl-big small{font-size:1.1rem;color:var(--muted)}
.g-pillars .pl-new{font-size:1.1rem;animation:plPop .5s cubic-bezier(.2,1.6,.4,1)}
.g-pillars .pl-sum .stage{max-width:460px}
@media (max-width:760px){
  .g-pillars .choices.pl-five{gap:5px}
  .g-pillars .pl-five .choice{padding:6px 2px;font-size:.8rem;border-width:2px;border-radius:14px}
  .g-pillars .pl-five .cart{max-width:34px}
  .g-pillars .pl-five .car{font-size:.78rem}
  .g-pillars .pl-orow{grid-template-columns:minmax(0,1fr)}
  .g-pillars .pl-ocard{min-height:56px}
  .g-pillars .pl-zrow b{font-size:1.05rem}
  .g-pillars .pl-zk{gap:6px}
}

/* Wudu Steps */
.g-wudu .wu-cards{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.g-wudu .wu-cards.l1{grid-template-columns:repeat(7,minmax(0,1fr))}
.g-wudu .wu-cards .tcard{padding:8px 4px;font-size:.98rem;gap:2px}
.g-wudu .wu-cards .cart{max-width:66px;margin-inline:auto}
.g-wudu .wu-cards.l1 .tcard{font-size:1.02rem}
.g-wudu .wu-cards.wait .tcard:not(.yes){opacity:.45}
.g-wudu .wu-n{line-height:1.1}
.g-wudu .wu-now{align-self:center;display:inline-flex;gap:8px;align-items:baseline;flex-wrap:wrap;justify-content:center;background:color-mix(in srgb,var(--wc) 18%,var(--surface));color:var(--ink);border-radius:999px;padding:4px 16px;font-size:1.1rem;margin-top:-4px}
.g-wudu .wu-now b{color:var(--wc)}
.g-wudu .wu-now .ar{font-size:1.15rem;color:var(--wc)}
.g-wudu .wu-counts .choice{min-width:140px;flex-direction:row;gap:10px;padding:10px 18px}
.g-wudu .wu-counts .cart{width:auto;max-width:none}
.g-wudu .wu-counts .cart svg{height:30px;width:auto}
.g-wudu .wu-go{gap:10px}
.g-wudu .wu-go svg{width:30px;height:30px}
.g-wudu .wu-go .ar{color:inherit;font-size:1.15rem}
.g-wudu .choices .cart{max-width:84px}
.g-wudu .wu-drop{animation:wuDrop 1.1s ease-in infinite}
.g-wudu .wu-drop.d1{animation-delay:.36s}.g-wudu .wu-drop.d2{animation-delay:.72s}
@keyframes wuDrop{0%{transform:translateY(-12px);opacity:0}25%{opacity:1}100%{transform:translateY(16px);opacity:0}}
.g-wudu .wu-glow{animation:wuGlow 1.2s ease-in-out infinite alternate}
@keyframes wuGlow{from{opacity:.55}}
.g-wudu .wu-stream{animation:wuFlow .5s linear infinite}
@keyframes wuFlow{to{stroke-dashoffset:-13}}
.g-wudu .wu-ripple{transform-box:fill-box;transform-origin:center;animation:wuRip 1s ease-out infinite}
@keyframes wuRip{from{transform:scale(.3);opacity:1}to{transform:scale(2.6);opacity:0}}
.g-wudu .wu-badge{transform-box:fill-box;transform-origin:center;animation:wuPop .5s cubic-bezier(.2,1.6,.4,1) both}
@keyframes wuPop{from{transform:scale(0)}}
.g-wudu .wu-tw{transform-box:fill-box;transform-origin:center;animation:wuTw 1.3s ease-in-out infinite alternate}
.g-wudu .wu-tw.t1{animation-delay:.4s}.g-wudu .wu-tw.t2{animation-delay:.8s}
@keyframes wuTw{from{transform:scale(.5);opacity:.4}}
.g-wudu .wu-shake{animation:wuShake .45s}
@keyframes wuShake{20%{transform:translateX(-7px)}40%{transform:translateX(7px)}60%{transform:translateX(-5px)}80%{transform:translateX(4px)}}
@media (max-width:760px){
  .g-wudu .wu-cards,.g-wudu .wu-cards.l1{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
  .g-wudu .wu-cards .tcard{font-size:.82rem;padding:5px 2px 6px;border-width:2px;border-radius:14px}
  .g-wudu .wu-cards .cart{max-width:46px}
  .g-wudu .wu-cards .num{width:28px;height:28px;font-size:.9rem;top:-8px;inset-inline-start:-6px}
  .g-wudu .wu-counts .choice{min-width:120px}
}
/* soft panels that stay readable in dark mode */
.g-wudu .ask,.g-wudu .fact.tint{background:color-mix(in srgb,var(--wc) 18%,var(--surface))}
/* v2: the race, the Maliki sort, a new wudu? */
.g-wudu .wu-hud{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center}
.g-wudu .wu-hud .chip{font-size:.95rem}
.g-wudu .wu-clock{background:#1a2042;color:#fff;font-variant-numeric:tabular-nums;min-width:96px;justify-content:center}
.g-wudu .wu-clock b{font-weight:800}
.g-wudu .wu-stages{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.g-wudu .wu-st{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 12px 3px 4px;background:var(--surface-2);color:var(--muted);font-weight:800;font-size:.92rem}
.g-wudu .wu-st b{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--surface);font-size:.85rem}
.g-wudu .wu-st.on{background:var(--wc);color:#fff}.g-wudu .wu-st.on b{color:var(--wc)}
.g-wudu .wu-st.done{background:var(--good-soft);color:var(--good)}
.g-wudu .wu-act{display:flex;align-items:center;gap:14px;max-width:560px;width:100%;margin-inline:auto;background:var(--surface);border:3px solid var(--line);border-radius:20px;padding:10px 16px;animation:wuPop .4s cubic-bezier(.2,1.6,.4,1)}
.g-wudu .wu-act.ok{border-color:var(--good)}.g-wudu .wu-act.bad{border-color:var(--bad)}
.g-wudu .wu-actart{width:76px;height:76px;flex:none;border-radius:50%;background:#e8f6ff;display:grid;place-items:center;border:2px solid var(--line)}
.g-wudu .wu-actart svg{width:62px;height:62px}
.g-wudu .wu-actt{display:flex;flex-direction:column;gap:2px;line-height:1.2}
.g-wudu .wu-actt b{font-size:1.25rem;font-weight:800}
.g-wudu .wu-actt .ar{font-size:1.1rem;color:var(--wc)}
.g-wudu .wu-bins .choice{border-color:color-mix(in srgb,var(--bc) 55%,var(--line));gap:2px;padding:10px 6px}
.g-wudu .wu-bins .choice:hover:not(:disabled){border-color:var(--bc)}
.g-wudu .wu-binname{font-size:1.15rem;color:var(--bc)}
.g-wudu .wu-bins small{color:var(--muted);font-weight:700;font-size:.82rem}
.g-wudu .wu-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:680px;width:100%;margin-inline:auto}
.g-wudu .wu-col{display:flex;flex-direction:column;gap:5px;border:2px dashed color-mix(in srgb,var(--bc) 60%,var(--line));border-radius:16px;padding:8px;min-height:70px;background:color-mix(in srgb,var(--bc) 7%,var(--surface))}
.g-wudu .wu-col > b{color:var(--bc);text-align:center;font-size:.95rem}
.g-wudu .wu-chip{background:var(--surface);border:2px solid color-mix(in srgb,var(--bc) 50%,var(--line));border-radius:10px;padding:3px 7px;font-size:.8rem;font-weight:700;line-height:1.2;animation:wuPop .4s cubic-bezier(.2,1.6,.4,1)}
.g-wudu .wu-chip.miss{border-style:dashed;opacity:.8}
.g-wudu .wu-sum{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;max-width:720px;width:100%;margin-inline:auto}
.g-wudu .wu-sum .kick{font-weight:800;color:var(--wc);text-transform:uppercase;letter-spacing:.06em;font-size:.85rem}
.g-wudu .wu-big{font-size:3rem;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.g-wudu .wu-new{font-size:1.1rem;animation:wuPop .5s cubic-bezier(.2,1.6,.4,1)}
@media (max-width:760px){
  .g-wudu .wu-bins.choices.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .g-wudu .wu-bins .choice{padding:8px 2px;font-size:.95rem}
  .g-wudu .wu-binname{font-size:.98rem}
  .g-wudu .wu-bins small{font-size:.72rem}
  .g-wudu .wu-board{gap:5px}
  .g-wudu .wu-col{padding:5px}
  .g-wudu .wu-chip{font-size:.72rem;padding:2px 5px}
  .g-wudu .wu-actart{width:64px;height:64px}.g-wudu .wu-actart svg{width:52px;height:52px}
  .g-wudu .wu-actt b{font-size:1.08rem}
}

/* Prayer Sky */
.g-prayer .pr-tw{transform-box:fill-box;transform-origin:center;animation:prTw 1.5s ease-in-out infinite alternate}
.g-prayer .pr-tw.t1{animation-delay:.5s}.g-prayer .pr-tw.t2{animation-delay:1s}
@keyframes prTw{from{transform:scale(.5);opacity:.4}}
.g-prayer .pr-cl{animation:prCl 12s ease-in-out infinite alternate}
@keyframes prCl{to{transform:translateX(28px)}}
.g-prayer .pr-rays{transform-origin:0 0;animation:prSpin 24s linear infinite}
@keyframes prSpin{to{transform:rotate(360deg)}}
.g-prayer .pr-ring{transform-box:fill-box;transform-origin:center;animation:prRing 1.8s ease-out infinite}
.g-prayer .pr-ring.r2{animation-delay:.9s}
@keyframes prRing{from{transform:scale(.6);opacity:1}to{transform:scale(2.8);opacity:0}}
.g-prayer .pr-pop{transform-box:fill-box;transform-origin:center;animation:prPop .45s cubic-bezier(.2,1.6,.4,1) both}
@keyframes prPop{from{transform:scale(0)}}
.g-prayer .pr-shake{animation:prShake .45s}
@keyframes prShake{20%{transform:translateX(-7px)}40%{transform:translateX(7px)}60%{transform:translateX(-5px)}80%{transform:translateX(4px)}}
.g-prayer .choices .cart{max-width:96px}
.g-prayer .pr-row{grid-template-columns:repeat(5,minmax(0,1fr))}
.g-prayer .pr-row .tcard{padding:10px 6px;font-size:1.08rem}
.g-prayer .pr-row .cart{max-width:84px;margin-inline:auto}
.g-prayer .pr-tally{display:flex;flex-direction:column;align-items:center;gap:0;color:var(--ink);max-width:560px;margin-inline:auto;width:100%;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:8px 12px 6px}
.g-prayer .pr-tally svg{width:100%;height:auto;display:block}
.g-prayer .pr-tally b{font-size:1rem;color:var(--wc)}
.g-prayer .fb .ar{font-size:1.1rem;color:var(--wc)}
@media (max-width:760px){
  .g-prayer .pr-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .g-prayer .choices.three.withart .cart{max-width:84px}
}
/* soft panels that stay readable in dark mode */
.g-prayer .ask,.g-prayer .fact.tint{background:color-mix(in srgb,var(--wc) 18%,var(--surface))}
/* v2: rak'ah beads, the structure of each prayer, the qibla compass, the speed round */
.g-prayer .pr-hud{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;max-width:720px;width:100%;margin-inline:auto}
.g-prayer .pr-hud .chip{font-size:.95rem}
.g-prayer .pr-combo{background:#ffc640;color:#1a2042;animation:prPop .35s cubic-bezier(.2,1.6,.4,1)}
.g-prayer .pr-pts{background:color-mix(in srgb,var(--wc) 20%,var(--surface));color:var(--ink)}
.g-prayer .pr-timer{position:relative;flex:1 1 100%;height:14px;border-radius:999px;background:var(--surface-2);overflow:hidden;border:2px solid var(--line)}
.g-prayer .pr-timer i{position:absolute;inset-block:0;inset-inline-start:0;background:var(--wc);border-radius:999px}
.g-prayer .pr-timer i.low{background:#e5583d}
.g-prayer .pr-beadbox{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:12px;align-items:center;max-width:760px;width:100%;margin-inline:auto}
.g-prayer .pr-beadbox .stage{margin:0}
.g-prayer .pr-strbox{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.g-prayer .pr-string{display:block;width:100%;height:auto}
.g-prayer .pr-bead[data-act]{cursor:pointer}
.g-prayer .pr-bead[data-act]:hover circle:first-child{stroke:var(--wc)}
.g-prayer .pr-bead:focus{outline:none}.g-prayer .pr-bead:focus-visible circle:first-child{stroke:#2f6fd6;stroke-width:5}
.g-prayer .pr-bead.on{animation:prPop .3s cubic-bezier(.2,1.6,.4,1);transform-box:fill-box;transform-origin:center}
.g-prayer .pr-n{text-align:center;font-weight:700;color:var(--muted)}
.g-prayer .pr-n b{font-size:1.6rem;color:var(--ink)}
.g-prayer .pr-legend{text-align:center;font-weight:700;color:var(--muted);font-size:.95rem}
.g-prayer .pr-legend .ar{font-size:1rem}
.g-prayer .pr-k{display:inline-block;width:14px;height:14px;border-radius:50%;border:2px solid #1a2042;vertical-align:-2px}
.g-prayer .pr-k.loud{background:#ffc640}.g-prayer .pr-k.quiet{background:#5aa9e6}
.g-prayer .pr-cnt .choice{min-height:48px;padding:8px 6px;font-size:1.05rem}
.g-prayer .pr-cnt .choice.sel{border-color:var(--wc);background:color-mix(in srgb,var(--wc) 18%,var(--surface))}
.g-prayer .pr-qbox{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:12px;align-items:center;max-width:720px;width:100%;margin-inline:auto}
.g-prayer .pr-map{max-width:none;margin:0}
.g-prayer .pr-comp{display:flex;flex-direction:column;gap:8px}
.g-prayer .pr-compass{display:block;width:100%;max-width:340px;height:auto;margin-inline:auto;touch-action:manipulation}
.g-prayer .pr-wedge{cursor:pointer}
.g-prayer .pr-needle{transition:transform .25s}
.g-prayer .pr-turn .btn.ghost{padding:9px 12px}
.g-prayer .pr-how{display:block;margin-top:6px;font-weight:700;color:var(--ink);background:color-mix(in srgb,var(--wc) 14%,var(--surface));border-radius:12px;padding:6px 10px}
.g-prayer .pr-plus{font-weight:800;color:var(--good)}
.g-prayer .choices.pr-five{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.g-prayer .pr-five .choice{padding:8px 4px;min-height:56px;font-size:1.05rem}
.g-prayer .pr-sum{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;max-width:680px;width:100%;margin-inline:auto}
.g-prayer .pr-sum .kick{font-weight:800;color:var(--wc);text-transform:uppercase;letter-spacing:.06em;font-size:.85rem}
.g-prayer .pr-big{font-size:3rem;font-weight:800;line-height:1}
.g-prayer .pr-big small{font-size:1.1rem;color:var(--muted)}
.g-prayer .pr-new{font-size:1.1rem;animation:prPop .5s cubic-bezier(.2,1.6,.4,1)}
@media (max-width:760px){
  .g-prayer .pr-beadbox{grid-template-columns:minmax(0,1fr);gap:8px}
  .g-prayer .pr-beadbox .pr-sm{max-width:300px;margin-inline:auto}
  .g-prayer .pr-qbox{grid-template-columns:minmax(0,.75fr) minmax(0,1fr);gap:6px}
  .g-prayer .pr-turn{gap:6px}
  .g-prayer .pr-turn .btn{padding:8px 10px;font-size:.95rem}
  .g-prayer .pr-turn .btn.big{flex:1 1 100%}
  .g-prayer .choices.pr-five{gap:5px}
  .g-prayer .pr-five .choice{padding:6px 2px;font-size:.85rem;border-width:2px;border-radius:14px}
  .g-prayer .pr-five .car{font-size:.82rem}
}
.g-prayer .pr-cnt.choices.three{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:760px){.g-prayer .pr-cnt.choices.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.g-prayer .pr-cnt .choice{font-size:.95rem;min-height:44px}}

/* Mosque Explorer */
.g-mosque .mq-stage{max-width:760px}
.g-mosque .mq-hot{cursor:pointer}
.g-mosque .mq-hot:hover > *,.g-mosque .mq-hot:focus-visible > *{fill-opacity:.22}
.g-mosque .mq-hot:focus{outline:none}
.g-mosque .mq-hot:focus-visible > *{stroke:#2f6fd6;stroke-width:3}
.g-mosque .mq-glow{animation:mqGlow 1.1s ease-in-out infinite alternate}
@keyframes mqGlow{from{opacity:.5}}
.g-mosque .mq-tag{transform-box:fill-box;transform-origin:center;animation:mqPop .45s cubic-bezier(.2,1.6,.4,1) both}
@keyframes mqPop{from{transform:scale(0)}}
.g-mosque .mq-water{animation:mqFlow .6s linear infinite}
@keyframes mqFlow{to{stroke-dashoffset:-9}}
.g-mosque .fb .ar{color:var(--wc);font-size:1.05rem}
.g-mosque .mq-hcard{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:14px;align-items:center;max-width:760px;width:100%;margin-inline:auto}
.g-mosque .mq-hcard .qart{margin:0}
.g-mosque .mq-hbody{display:flex;flex-direction:column;gap:8px}
.g-mosque .mq-hbody .ar{font-size:1.05rem;color:var(--wc)}
.g-mosque .mq-facts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.g-mosque .mq-facts li{background:color-mix(in srgb,var(--wc) 16%,var(--surface));border-radius:12px;padding:5px 12px;font-weight:700;line-height:1.3}
.g-mosque .mq-facts li::before{content:"";display:inline-block;width:10px;height:10px;border-radius:3px;background:var(--wc);margin-inline-end:8px;transform:rotate(45deg) translateY(-1px)}
.g-mosque .mq-mans{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-mosque .mq-man{flex-direction:row;justify-content:flex-start;text-align:start;gap:10px;font-size:1.05rem;min-height:60px}
.g-mosque .mq-box{width:30px;height:30px;border-radius:9px;border:3px solid var(--line);display:grid;place-items:center;flex:none;font-weight:900;font-size:1.1rem;color:var(--good);background:var(--surface)}
.g-mosque .mq-man.sel{border-color:var(--wc);background:color-mix(in srgb,var(--wc) 18%,var(--surface))}
.g-mosque .mq-man.sel .mq-box{border-color:var(--wc);background:var(--wc);color:#fff}
.g-mosque .mq-man.yes .mq-box{border-color:var(--good)}
.g-mosque .choices .cart{max-width:120px}
@media (max-width:760px){
  .g-mosque .mq-hcard{grid-template-columns:minmax(0,1fr)}
  .g-mosque .mq-man{font-size:.95rem;padding:10px 8px;gap:8px}
}
.g-mosque .mq-shine{animation:mqGlow 2s ease-in-out infinite alternate}
/* soft panels that stay readable in dark mode */
.g-mosque .ask,.g-mosque .fact.tint{background:color-mix(in srgb,var(--wc) 18%,var(--surface))}
/* v2: combo, famous mosques, craft words, build the mosque */
.g-mosque .mq-hud{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;max-width:760px;width:100%;margin-inline:auto}
.g-mosque .mq-hud .chip{font-size:.95rem}
.g-mosque .mq-combo{background:#ffc640;color:#1a2042;animation:mqPop .35s cubic-bezier(.2,1.6,.4,1)}
.g-mosque .mq-pts{background:color-mix(in srgb,var(--wc) 20%,var(--surface));color:var(--ink)}
.g-mosque .mq-clock{background:#1a2042;color:#fff;font-variant-numeric:tabular-nums}
.g-mosque .mq-plus{font-weight:800;color:var(--good)}
.g-mosque .mq-mini{max-width:420px}
.g-mosque .mq-clues{list-style:none;margin:0 auto;padding:0;display:flex;flex-direction:column;gap:8px;max-width:680px;width:100%}
.g-mosque .mq-clue{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:center;background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:8px 12px;font-weight:700;line-height:1.3;animation:mqPop .35s cubic-bezier(.2,1.6,.4,1)}
.g-mosque .mq-clue b{width:30px;height:30px;border-radius:50%;background:#ffc640;color:#1a2042;display:grid;place-items:center;border:2px solid #1a2042}
.g-mosque .mq-clue.off{color:var(--muted);border-style:dashed;animation:none}
.g-mosque .mq-clue.off b{background:var(--surface-2);border-color:var(--line);color:var(--muted)}
.g-mosque .mq-reveal{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr);gap:10px;align-items:center;max-width:680px;width:100%;margin-inline:auto}
.g-mosque .mq-reveal .qart{margin:0}
.g-mosque .mq-map{max-width:none;margin:0}
.g-mosque .mq-word{max-width:520px}
.g-mosque .mq-slot{cursor:pointer}
.g-mosque .mq-slot.live > g{fill:#fff3a0;stroke:#2f6fd6;stroke-opacity:.9}
.g-mosque .mq-slot:focus{outline:none}.g-mosque .mq-slot:focus-visible > g{stroke:#2f6fd6;stroke-width:4}
.g-mosque .mq-shake{animation:mqShake .45s}
@keyframes mqShake{20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
.g-mosque .mq-drop{animation:mqDrop .55s cubic-bezier(.2,1.5,.4,1) both}
@keyframes mqDrop{from{transform:translateY(-30px);opacity:0}}
.g-mosque .mq-tray{grid-template-columns:repeat(4,minmax(0,1fr));max-width:760px}
.g-mosque .mq-part{font-size:.92rem;padding:6px 4px;gap:2px}
.g-mosque .mq-part .cart{height:64px;display:grid;place-items:center}
.g-mosque .mq-part .cart svg{width:auto;height:100%;max-width:100%}
.g-mosque .mq-part.sel{border-color:var(--wc);background:color-mix(in srgb,var(--wc) 20%,var(--surface));box-shadow:0 0 0 3px color-mix(in srgb,var(--wc) 40%,transparent)}
.g-mosque .mq-sum{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;max-width:760px;width:100%;margin-inline:auto}
.g-mosque .mq-sum .kick{font-weight:800;color:var(--wc);text-transform:uppercase;letter-spacing:.06em;font-size:.85rem}
.g-mosque .mq-big{font-size:3rem;font-weight:800;line-height:1}
.g-mosque .mq-big small{font-size:1.1rem;color:var(--muted)}
.g-mosque .mq-new{font-size:1.1rem;animation:mqPop .5s cubic-bezier(.2,1.6,.4,1)}
@media (max-width:760px){
  .g-mosque .mq-tray{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .g-mosque .mq-part{font-size:.74rem;border-width:2px;padding:4px 2px}
  .g-mosque .mq-part .cart{height:48px}
  .g-mosque .mq-clue{font-size:.95rem;padding:6px 10px}
}

/* Good Deeds Garden */
.g-deeds .dg-grow{transform-box:fill-box;transform-origin:50% 100%;animation:dgGrow 1.2s cubic-bezier(.2,1.45,.4,1) .25s both}
@keyframes dgGrow{from{transform:scale(0)}}
.g-deeds .dg-fly{animation:dgFly 3s ease-in-out infinite alternate}
@keyframes dgFly{to{transform:translate(18px,-10px)}}
.g-deeds .dg-wing{transform-box:fill-box;transform-origin:center;animation:dgWing .28s ease-in-out infinite alternate}
@keyframes dgWing{to{transform:scaleX(.45)}}
.g-deeds .dg-bob{animation:dgBob 1.3s ease-in-out infinite alternate}
@keyframes dgBob{to{transform:translateY(-4px)}}
.g-deeds .dg-tw{transform-box:fill-box;transform-origin:center;animation:dgTw 1.3s ease-in-out infinite alternate}
.g-deeds .dg-tw.t1{animation-delay:.4s}.g-deeds .dg-tw.t2{animation-delay:.8s}
@keyframes dgTw{from{transform:scale(.5);opacity:.4}}
.g-deeds .dg-flow{animation:dgFlow .5s linear infinite}
@keyframes dgFlow{to{stroke-dashoffset:-10}}
.g-deeds .dg-small{max-width:520px}
.g-deeds .choices .cart{max-width:84px}
.g-deeds .choices .choice .ct{font-size:1.05rem}
.g-deeds .choices.one .choice{min-height:56px}
.g-deeds .dg-card{max-width:580px}
.g-deeds .dg-small{max-width:460px}
/* soft panels that stay readable in dark mode */
.g-deeds .ask,.g-deeds .fact.tint{background:color-mix(in srgb,var(--wc) 18%,var(--surface))}
/* v2: the garden that grows across plays, stories in steps */
.g-deeds .dg-hud{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-deeds .dg-count{background:color-mix(in srgb,#2f9e5b 22%,var(--surface));color:var(--ink)}
.g-deeds .dg-plus{display:inline-block;font-weight:800;color:var(--good)}
.g-deeds .dg-unl{align-self:center;font-size:1rem;animation:dgPop .5s cubic-bezier(.2,1.6,.4,1)}
@keyframes dgPop{from{transform:scale(.4);opacity:0}}
.g-deeds .dg-story{display:flex;flex-direction:column;gap:10px;max-width:640px;width:100%;margin-inline:auto}
.g-deeds .dg-stitle{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.g-deeds .dg-stitle b{font-size:1.2rem;color:var(--wc)}
.g-deeds .dg-story .qart{margin:0;max-width:none}
.g-deeds .dg-say .dg-text{font-size:1.15rem;font-weight:700;line-height:1.4;text-align:start}
.g-deeds .dg-flash{margin:0;border-radius:14px;padding:6px 12px;background:var(--surface-2);color:var(--muted);font-weight:700;animation:dgPop .4s cubic-bezier(.2,1.6,.4,1)}
.g-deeds .dg-flash.good{background:var(--good-soft);color:var(--ink)}
.g-deeds .dg-flash.good b{color:var(--good)}
.g-deeds .dg-opts .choice{min-height:56px;font-size:1.08rem}
@media (max-width:760px){.g-deeds .dg-say .dg-text{font-size:1.02rem}}

/* Moon Watcher */
.g-hilal{--tint:color-mix(in srgb,var(--wc) 16%,var(--surface));--night:#121a46}
.g-hilal .ask{background:var(--tint)}
.g-hilal .hl-best{display:flex;justify-content:center;margin:0}
.g-hilal .hl-msg{text-align:center;font-weight:800;margin:0;color:var(--wc);min-height:1.4em;line-height:1.35}
.g-hilal .hl-msg.bad{color:var(--bad)}
/* order */
.g-hilal .hl-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:520px;width:100%;margin-inline:auto}
.g-hilal .hl-slots.n8{grid-template-columns:repeat(8,minmax(0,1fr));max-width:720px;gap:5px}
.g-hilal .hl-slot{aspect-ratio:1;border-radius:14px;border:3px dashed var(--line);display:grid;place-items:center;background:var(--surface-2);color:var(--muted);font-weight:800;overflow:hidden}
.g-hilal .hl-slot svg{width:100%;height:100%;display:block}
.g-hilal .hl-slot.ok{border:3px solid #ffc640;background:var(--night)}
.g-hilal .hl-slot.now{border-color:var(--wc);color:var(--wc)}
.g-hilal .hl-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:560px;width:100%;margin-inline:auto}
.g-hilal .hl-cards.n8{grid-template-columns:repeat(4,minmax(0,1fr));max-width:620px}
.g-hilal .hl-card{padding:5px;background:var(--surface)}
.g-hilal .hl-card .cart svg{border-radius:12px}
.g-hilal .hl-card small{font-size:.74rem;line-height:1.1}
.g-hilal .hl-card.no{animation:hl-shake .4s}
@keyframes hl-shake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
.g-hilal .hl-pick .choice .cart{max-width:120px}
.g-hilal .hl-pick .choice .cart svg{border-radius:14px}
/* days */
.g-hilal .hl-days{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:560px;width:100%;margin-inline:auto}
.g-hilal .hl-day{display:flex;flex-direction:column;align-items:center;gap:4px;border:3px dashed var(--line);border-radius:16px;padding:6px;background:var(--surface-2);font-weight:800}
.g-hilal .hl-day svg{width:100%;height:auto;display:block;border-radius:10px}
.g-hilal .hl-day.ok{border:3px solid #ffc640}
.g-hilal .hl-day.now{border-color:var(--wc);background:var(--tint)}
.g-hilal .hl-q{display:grid;place-items:center;width:100%;aspect-ratio:1;font-size:2rem;color:var(--wc)}
/* orbit */
.g-hilal .hl-ost{max-width:560px;background:#0b1238;border-color:#2b3163}
.g-hilal .hl-orbit{display:block;width:100%;height:auto}
.g-hilal .hl-om{cursor:pointer}
.g-hilal .hl-om:focus{outline:none}
.g-hilal .hl-om:focus-visible circle:nth-child(2),.g-hilal .hl-om:hover circle:nth-of-type(2){stroke:#ffe08a;stroke-width:2.5}
.g-hilal .hl-om.yes circle:nth-of-type(2){stroke:#2fc77a;stroke-width:3}
/* months */
.g-hilal .hl-wheelbox{max-width:360px;width:100%;margin-inline:auto}
.g-hilal .hl-wheelbox.sm{max-width:300px}
.g-hilal .hl-wheel{display:block;width:100%;height:auto}
.g-hilal .hl-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;max-width:720px;margin-inline:auto}
.g-hilal .hl-chip{display:flex;flex-direction:column;align-items:center;gap:1px;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:14px;padding:6px 10px;min-height:52px;font-size:.95rem}
.g-hilal .hl-chip:hover{border-color:var(--wc)}
.g-hilal .hl-chip .ar{font-size:.9rem}
.g-hilal .hl-chip.no{border-color:var(--bad);background:var(--bad-soft);animation:hl-shake .4s}
.g-hilal .hl-spec{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:14px;align-items:center;max-width:760px;width:100%;margin-inline:auto}
.g-hilal .hl-event{display:flex;flex-direction:column;align-items:center;gap:4px;background:var(--night);color:#fff3c4;border-radius:18px;padding:14px;text-align:center;font-size:1.2rem}
.g-hilal .hl-event .ar{color:#ffe08a;font-size:1.1rem}
.g-hilal .hl-list{margin:0;padding-inline-start:18px;display:grid;gap:4px}
.g-hilal .choice.no{border-color:var(--bad);background:var(--bad-soft)}
/* hunt */
.g-hilal .hl-brief{gap:10px}
.g-hilal .hl-sheet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.g-hilal .hl-sheet span{display:flex;flex-direction:column;gap:2px;background:var(--night);color:#cfd5f5;border-radius:14px;padding:10px;text-align:center;font-weight:700;font-size:.9rem}
.g-hilal .hl-sheet b{color:#ffe08a;font-size:1.3rem}
.g-hilal .hl-timer{display:flex;align-items:center;gap:10px;max-width:720px;width:100%;margin-inline:auto}
.g-hilal .hl-bar{flex:1;height:14px;border-radius:999px;background:var(--surface-2);border:2px solid var(--line);overflow:hidden}
.g-hilal .hl-bar i{display:block;height:100%;background:linear-gradient(90deg,#ffb27a,#ffe08a)}
.g-hilal .hl-timer b{min-width:3em;font-variant-numeric:tabular-nums;color:var(--wc)}
.g-hilal .hl-stage{max-width:720px;background:#0b1238;border-color:#2b3163;cursor:zoom-in;touch-action:none}
.g-hilal .hl-stage.scope{cursor:grab}
.g-hilal .hl-stage.scope::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 50%,transparent 46%,rgba(3,5,26,.55) 60%,rgba(3,5,26,.92) 74%)}
.g-hilal .hl-sky{display:block;width:100%;height:auto;aspect-ratio:2/1}
.g-hilal .hl-ctl{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 14px;max-width:720px;width:100%;margin-inline:auto}
.g-hilal .hl-pad,.g-hilal .hl-zoom{display:flex;align-items:center;gap:6px}
.g-hilal .hl-pad .btn,.g-hilal .hl-zoom .btn{min-width:46px;min-height:46px;font-size:1.1rem}
.g-hilal .hl-zoom span{min-width:4.6em;text-align:center;font-weight:800;color:var(--muted)}
.g-hilal .hl-see{background:#ffc640;color:#1a2042;box-shadow:0 5px 0 #c99a1e}
.g-hilal .hl-star{animation:hl-tw 2.6s ease-in-out infinite alternate}
.g-hilal .hl-star:nth-child(3n){animation-delay:-1.2s}
@keyframes hl-tw{from{opacity:.25}}
@media (max-width:760px){
  .g-hilal .hl-slots.n8{grid-template-columns:repeat(4,minmax(0,1fr));max-width:360px}
  .g-hilal .hl-spec{grid-template-columns:minmax(0,1fr)}
  .g-hilal .hl-wheelbox.sm{max-width:260px}
  .g-hilal .hl-sheet{grid-template-columns:minmax(0,1fr)}
  .g-hilal .hl-chip{font-size:.85rem;padding:5px 8px}
}
@media (prefers-reduced-motion:reduce){.g-hilal .hl-star,.g-hilal .hl-card.no,.g-hilal .hl-chip.no{animation:none!important}}
.g-hilal .hl-night{max-width:720px;width:100%;margin-inline:auto;border-radius:20px;padding:12px;background:radial-gradient(circle at 20% 20%,#2b3a8a,#0b1238 70%);box-shadow:inset 0 0 0 3px #2b3163}
.g-hilal .hl-night .hl-slot{background:rgba(255,255,255,.06);border-color:#4b5294;color:#a9b0e0}
.g-hilal .hl-night .hl-slot.now{border-color:#ffc640;color:#ffe08a}
@media (max-width:760px){.g-hilal .hl-wheelbox{max-width:280px}}

/* Penalty Shootout */
.g-penalty{--pkw:600px}
.g-penalty .pk-fb .speak{vertical-align:middle;width:34px;height:34px}
.g-penalty .pk-stage{background:#0b1433;max-width:var(--pkw)}
.g-penalty .pk-svg{display:block;width:100%;height:auto}
.g-penalty .pk-board{position:relative;display:flex;flex-direction:column;gap:6px;max-width:var(--pkw);width:100%;margin-inline:auto;background:#0b1433;color:#fff;border-radius:18px;padding:10px 12px;border:3px solid var(--wc);box-shadow:0 4px 0 color-mix(in srgb,var(--wc) 55%,#000)}
.g-penalty .pk-team{display:grid;grid-template-columns:34px minmax(0,auto) minmax(0,1fr) 36px;align-items:center;gap:8px}
.g-penalty .pk-team b{font-weight:800;font-size:1.02rem;line-height:1.1;white-space:nowrap}
.g-penalty .pk-fl{width:34px;height:22px;display:block}
.g-penalty .pk-dots{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.g-penalty .pk-dots i{width:22px;height:22px;border-radius:50%;border:2px solid rgba(255,255,255,.45);display:grid;place-items:center;font-style:normal;font-weight:800;font-size:.8rem;line-height:1;color:#fff}
.g-penalty .pk-dots i svg{width:20px;height:20px;display:block}
.g-penalty .pk-dots i.g{border-color:#2fc77a;background:#2fc77a}
.g-penalty .pk-dots i.m{border-color:#ff6b6b;background:#e5483f}
.g-penalty .pk-dots i.now{border-color:#ffc640;box-shadow:0 0 0 3px rgba(255,198,64,.35);animation:pk-blink 1s ease-in-out infinite}
.g-penalty .pk-dots i.sd{border-style:dashed}
.g-penalty .pk-n{font-size:1.6rem;font-weight:800;color:#ffc640;text-align:end;font-variant-numeric:tabular-nums;line-height:1}
.g-penalty .pk-sdtag{position:absolute;top:-12px;inset-inline-end:14px;background:#ffc640;color:#1a2042;border-radius:999px;padding:0 10px;font-weight:800;font-size:.85rem;border:2px solid #1a2042}
@keyframes pk-blink{50%{box-shadow:0 0 0 6px rgba(255,198,64,.15)}}
/* the goal targets */
.g-penalty .pk-zone{cursor:pointer}
.g-penalty .pk-zr{fill:#fff;fill-opacity:0;stroke:#fff;stroke-opacity:.35;stroke-width:2;stroke-dasharray:5 5}
.g-penalty .pk-zone:hover .pk-zr,.g-penalty .pk-zone:focus-visible .pk-zr{fill-opacity:.18;stroke-opacity:.9}
.g-penalty .pk-zone.cur .pk-zr{stroke:#ffc640;stroke-opacity:1;stroke-dasharray:none;stroke-width:3}
.g-penalty .pk-zone:focus{outline:none}
.g-penalty .pk-ring{transform-box:fill-box;transform-origin:center;animation:pk-ring 1.4s ease-in-out infinite}
@keyframes pk-ring{50%{transform:scale(1.15);opacity:.7}}
.g-penalty .pk-hint{animation:pk-hintb .9s ease-in-out infinite}
@keyframes pk-hintb{50%{opacity:.55}}
.g-penalty .pk-dz g{cursor:pointer}
/* crowd: waving flags, and a stadium wave when Morocco is happy */
.g-penalty .pk-wflag{transform-box:fill-box;transform-origin:0% 100%;animation:pk-flag 1.1s ease-in-out infinite alternate;animation-delay:var(--d,0s)}
@keyframes pk-flag{from{transform:rotate(-12deg)}to{transform:rotate(10deg)}}
.g-penalty .pk-svg.wave .pk-col{animation:pk-ola 1.5s ease-in-out infinite;animation-delay:calc(var(--i) * .035s)}
@keyframes pk-ola{0%,45%,100%{transform:translateY(0)}20%{transform:translateY(-8px)}}
.g-penalty .pk-banner{transform-box:fill-box;transform-origin:center;animation:pk-pop .55s cubic-bezier(.2,1.6,.4,1) both}
@keyframes pk-pop{from{transform:scale(.2);opacity:0}}
.g-penalty .pk-fw{transform-box:fill-box;transform-origin:center;animation:pk-fw 1.8s ease-out infinite;animation-delay:var(--d,0s)}
@keyframes pk-fw{0%{transform:scale(.15);opacity:0}25%{opacity:1}70%{transform:scale(1.1);opacity:.9}100%{transform:scale(1.25);opacity:0}}
/* power bar (big explorers) */
.g-penalty .pk-power{display:flex;flex-direction:column;align-items:center;gap:8px;max-width:520px;width:100%;margin-inline:auto}
.g-penalty .pk-bar{position:relative;display:grid;grid-template-columns:36fr 38fr 26fr;width:100%;height:30px;border-radius:999px;overflow:hidden;border:3px solid var(--ink)}
.g-penalty .pk-bar i{display:block;height:100%}
.g-penalty .pk-bar .w{background:#ffd666}.g-penalty .pk-bar .gd{background:#2fc77a}.g-penalty .pk-bar .r{background:#e5483f}
.g-penalty .pk-power .pk-track{position:relative;width:100%;padding-top:20px}
.g-penalty .pk-track b{position:absolute;top:0;bottom:-4px;width:0;margin-left:0}
.g-penalty .pk-track b::before{content:"";position:absolute;left:-12px;top:-2px;border-left:12px solid transparent;border-right:12px solid transparent;border-top:20px solid var(--ink)}
.g-penalty .pk-track b::after{content:"";position:absolute;left:-3px;top:14px;bottom:0;width:6px;border-radius:3px;background:var(--ink);box-shadow:0 0 0 2px var(--surface)}
.g-penalty .pk-barlab{display:grid;grid-template-columns:36fr 38fr 26fr;width:100%;font-size:.85rem;font-weight:700;color:var(--muted);text-align:center}
.g-penalty .pk-kick{min-width:180px;font-size:1.35rem}
/* dive buttons */
.g-penalty .pk-dives{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:var(--pkw);width:100%;margin-inline:auto}
.g-penalty .pk-dive{display:flex;flex-direction:column;align-items:center;gap:2px;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:18px;padding:8px 6px;font-weight:800;font-size:1.1rem;min-height:72px}
.g-penalty .pk-dive svg{width:34px;height:34px;color:var(--wt)}
.g-penalty .pk-dive:hover:not(:disabled){border-color:var(--wc)}
.g-penalty .pk-dive.on{border-color:var(--wc);background:var(--ws)}
.g-penalty .pk-dive:disabled{cursor:default}
.g-penalty .pk-dive:disabled:not(.on){opacity:.55}
/* feedback and story */
.g-penalty .pk-fb{margin-inline:auto;width:100%;max-width:var(--pkw);border-radius:18px;padding:10px 14px;border:2px solid var(--line);background:var(--surface)}
.g-penalty .pk-fb.good{background:var(--good-soft);border-color:var(--good)}
.g-penalty .pk-fb.bad{background:var(--bad-soft);border-color:var(--bad)}
.g-penalty .pk-story{display:flex;flex-direction:column;gap:12px}
.g-penalty .pk-cap{max-width:var(--pkw);width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:6px;align-items:flex-start;background:color-mix(in srgb,var(--wc) 12%,var(--surface));border:2px solid color-mix(in srgb,var(--wc) 30%,var(--line));border-radius:18px;padding:12px 16px}
.g-penalty .pk-cap p{font-size:1.2rem;font-weight:700;line-height:1.4}
.g-penalty .pk-cap .speak,.g-penalty .pk-endtxt .speak{vertical-align:middle;margin-inline-start:4px}
.g-penalty .pk-endtxt{margin-inline:auto;width:100%;max-width:var(--pkw);background:color-mix(in srgb,var(--wc) 12%,var(--surface))}
.g-penalty .ask{background:color-mix(in srgb,var(--wc) 14%,var(--surface));max-width:var(--pkw);width:100%;margin-inline:auto}
.g-penalty .pk-endtxt b{color:var(--wt)}
@media (max-width:760px){
  .g-penalty .pk-board{padding:8px 10px}
  .g-penalty .pk-team{grid-template-columns:30px auto minmax(0,1fr) 28px;gap:6px}
  .g-penalty .pk-team b{font-size:.95rem}
  .g-penalty .pk-fl{width:30px;height:20px}
  .g-penalty .pk-dots{gap:3px}
  .g-penalty .pk-dots i{width:20px;height:20px}
  .g-penalty .pk-dots i svg{width:18px;height:18px}
  .g-penalty .pk-n{font-size:1.35rem}
  .g-penalty .pk-cap p{font-size:1.08rem}
}

/* dark mode: the shared .fact.tint and .ask use the light world color behind light text; tint from the surface instead */
.g-penalty .fact.tint{background:color-mix(in srgb,var(--wc) 14%,var(--surface))}

/* ===== version 2: the Lions Cup ===== */
.g-penalty .pk-hud{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;max-width:var(--pkw);width:100%;margin-inline:auto}
.g-penalty .pk-hud .pill{gap:6px}
.g-penalty .pk-hud .pk-streak{background:#ffc640;color:#1a2042;animation:pk-pop .5s cubic-bezier(.2,1.6,.4,1) both}
.g-penalty .pk-bd{width:24px;height:24px;display:block;flex:none}
.g-penalty .pk-bds{width:20px;height:20px;display:inline-block;vertical-align:middle}
.g-penalty .pk-bdl{width:44px;height:44px;display:block;flex:none}
/* wind gusts and the keeper's notes inside the stadium */
.g-penalty .pk-gl{animation:pk-gust var(--gs,2s) linear infinite;animation-delay:var(--d,0s)}
@keyframes pk-gust{0%{transform:translateX(-30px);opacity:0}15%{opacity:.75}70%{opacity:.6}100%{transform:translateX(150px);opacity:0}}
.g-penalty .pk-target{animation:pk-blinkt .8s ease-in-out infinite}
@keyframes pk-blinkt{50%{opacity:.6}}
/* curve bar (master explorers) */
.g-penalty .pk-cbar{position:relative;display:grid;grid-template-columns:42fr 16fr 42fr;width:100%;height:30px;border-radius:999px;overflow:hidden;border:3px solid var(--ink);background:linear-gradient(90deg,#7b4bd6,#5aa9e6 42%,#2fc77a 42%,#2fc77a 58%,#5aa9e6 58%,#7b4bd6)}
.g-penalty .pk-cbar i{display:block;height:100%}
.g-penalty .pk-cbar i.mid{box-shadow:inset 3px 0 0 rgba(26,32,66,.35),inset -3px 0 0 rgba(26,32,66,.35)}
.g-penalty .pk-clab{grid-template-columns:42fr 16fr 42fr}
.g-penalty .pk-clab span:first-child{text-align:start}.g-penalty .pk-clab span:last-child{text-align:end}
/* the cup screens */
.g-penalty .pk-cup{display:flex;flex-direction:column;gap:12px;max-width:var(--pkw);width:100%;margin-inline:auto}
.g-penalty .pk-cuphead{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;background:#0b1433;color:#fff;border-radius:18px;padding:10px 14px;border:3px solid #ffc640}
.g-penalty .pk-cuphead > svg{width:64px;height:68px;display:block}
.g-penalty .pk-cuphead .kicker{color:#ffc640;font-weight:800;letter-spacing:.14em;text-transform:uppercase;font-size:.8rem}
.g-penalty .pk-cuphead h3{font-size:1.45rem;font-weight:800;line-height:1.1}
.g-penalty .pk-rec{display:inline-flex;align-items:center;gap:5px;font-weight:800;font-size:.88rem;color:#ffe08a}
.g-penalty .pk-rec svg{width:15px;height:15px;fill:#ffc640}
.g-penalty .pk-rec2{align-self:center;color:var(--wt);background:color-mix(in srgb,var(--wc) 12%,var(--surface));border-radius:999px;padding:3px 14px}
.g-penalty .pk-rec2 svg{fill:var(--wc)}
.g-penalty .pk-next{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;background:color-mix(in srgb,var(--wc) 10%,var(--surface));border:2px solid color-mix(in srgb,var(--wc) 35%,var(--line));border-radius:18px;padding:12px}
.g-penalty .pk-next p{font-weight:700;color:var(--muted)}
.g-penalty .pk-next .speak{vertical-align:middle}
.g-penalty .pk-vs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;width:100%;font-size:1.15rem;font-weight:800;line-height:1.1}
.g-penalty .pk-side{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
.g-penalty .pk-vsx{background:#ffc640;color:#1a2042;border-radius:999px;padding:0 10px;border:2px solid #1a2042;font-size:.95rem}
.g-penalty .pk-tables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.g-penalty .pk-tbl{background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:8px 10px;min-width:0}
.g-penalty .pk-tt{display:block;font-weight:800;color:var(--wt);margin-bottom:2px}
.g-penalty .pk-tbl table{width:100%;border-collapse:collapse;font-size:.92rem;font-variant-numeric:tabular-nums}
.g-penalty .pk-tbl th{font-size:.72rem;color:var(--muted);font-weight:800;text-align:center;padding:2px}
.g-penalty .pk-tbl td{text-align:center;padding:3px 2px;border-top:1px solid var(--line)}
.g-penalty .pk-tbl .nm{text-align:start;font-weight:700;line-height:1.1}
.g-penalty .pk-tbl td:first-child{width:28px}
.g-penalty .pk-tbl tr.up td{background:color-mix(in srgb,var(--good) 10%,transparent)}
.g-penalty .pk-tbl tr.me td{background:color-mix(in srgb,var(--wc) 16%,transparent);font-weight:800}
.g-penalty .pk-bracket{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.g-penalty .pk-tie{display:flex;flex-direction:column;gap:4px;background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:8px;min-width:0}
.g-penalty .pk-tie.cur{border-color:#ffc640;box-shadow:0 0 0 3px rgba(255,198,64,.35)}
.g-penalty .pk-tl{font-size:.74rem;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.g-penalty .pk-tie-r{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:6px;align-items:center;font-weight:700;font-size:.9rem;line-height:1.1}
.g-penalty .pk-tie-r.me{color:var(--wt);font-weight:800}
.g-penalty .pk-tie-r.w b{color:var(--good)}
.g-penalty .pk-q{width:24px;height:24px;border-radius:50%;border:2px dashed var(--line);display:grid;place-items:center;font-weight:800;color:var(--muted);font-size:.8rem}
.g-penalty .pk-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.g-penalty .pk-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:10px 6px;min-width:0}
.g-penalty .pk-tile b{font-size:1.35rem;font-weight:800;color:var(--wt);line-height:1.1}
.g-penalty .pk-tile span{font-size:.82rem;color:var(--muted);font-weight:700}
.g-penalty .pk-favw{display:grid;grid-template-columns:200px minmax(0,1fr);gap:12px;align-items:center;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:10px}
.g-penalty .pk-heat{width:100%;height:auto;display:block}
.g-penalty .pk-favw p{font-weight:700;line-height:1.35}
.g-penalty .pk-new{align-self:center;display:inline-flex;gap:6px;align-items:center}
.g-penalty .pk-new svg{width:16px;height:16px;fill:currentColor}
.g-penalty .pk-endtxt .pk-new{margin-top:6px}
.g-penalty .pk-endtxt{flex-direction:column;align-items:flex-start}
@media (max-width:760px){
  .g-penalty .pk-tables{grid-template-columns:minmax(0,1fr)}
  .g-penalty .pk-bracket{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-penalty .pk-bracket .pk-tie:last-child{grid-column:1/-1}
  .g-penalty .pk-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-penalty .pk-favw{grid-template-columns:minmax(0,1fr)}
  .g-penalty .pk-heat{max-width:240px;margin-inline:auto}
  .g-penalty .pk-cuphead{grid-template-columns:52px minmax(0,1fr)}
  .g-penalty .pk-cuphead > svg{width:52px;height:56px}
  .g-penalty .pk-bdl{width:38px;height:38px}
}
@media (prefers-reduced-motion:reduce){.g-penalty .pk-gl,.g-penalty .pk-target{animation:none}.g-penalty .pk-gl{opacity:.5}}

/* text in the world color: lighter in dark mode so it stays readable */
.g-penalty{--wt:var(--wc)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .g-penalty{--wt:color-mix(in srgb,var(--wc) 50%,#fff)}}
:root[data-theme="dark"] .g-penalty{--wt:color-mix(in srgb,var(--wc) 50%,#fff)}

/* World Cup Road */
.g-road .rd-wrap{display:flex;flex-direction:column;gap:12px}
.g-road .rd-main,.g-road .rd-right{display:flex;flex-direction:column;gap:12px}
.g-road .rd-right .stage,.g-road .rd-right .choices,.g-road .rd-right .fb{max-width:620px}
@media (min-width:900px){.g-road .rd-main{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:16px;align-items:start}.g-road .rd-left .stage{max-width:none}.g-road .rd-right .stage,.g-road .rd-right .choices,.g-road .rd-right .fb{max-width:none}.g-road .ask{max-width:none}}
.g-road .rd-stop{align-self:center;font-weight:800;font-size:.92rem;color:var(--wt);background:color-mix(in srgb,var(--wc) 12%,var(--surface));border-radius:999px;padding:2px 14px}
.g-road .ask{background:color-mix(in srgb,var(--wc) 14%,var(--surface));max-width:680px;width:100%;margin-inline:auto}
.g-road .rd-board{max-width:620px;background:#f6e3b4}
.g-road .rd-board svg,.g-road .rd-skill svg,.g-road .rd-reveal svg{display:block;width:100%;height:auto}
.g-road .rd-lab{font:800 12.5px var(--font-ui);fill:#1a2042;paint-order:stroke;stroke:#fff8e6;stroke-width:3.5px;stroke-linejoin:round}
.g-road .rd-lab.cur{fill:#c1272d}
.g-road .rd-head{font:800 11.5px var(--font-ui);fill:#fff;letter-spacing:.1em}
.g-road .rd-zone{font:800 11px var(--font-ui);fill:#9a7a3e;letter-spacing:.12em}
.g-road .rd-ring{transform-box:fill-box;transform-origin:center;animation:rd-ring 1.3s ease-in-out infinite}
@keyframes rd-ring{50%{transform:scale(1.12);opacity:.6}}
.g-road .rd-skill{max-width:620px;background:#bfe3f5}
.g-road .rd-tap{cursor:pointer}
.g-road .rd-tap:focus-visible{outline:4px solid #ffc640;outline-offset:2px}
.g-road .rd-go{min-width:180px;font-size:1.3rem}
.g-road .rd-mate{cursor:pointer}
.g-road .rd-mate:hover .rd-hit,.g-road .rd-mate:focus-visible .rd-hit{fill-opacity:.55;stroke:#ffc640;stroke-width:4}
.g-road .rd-mate:focus{outline:none}
.g-road .rd-timer{max-width:620px;width:100%;margin-inline:auto;height:14px;border-radius:999px;background:var(--surface-2);overflow:hidden;border:2px solid var(--line)}
.g-road .rd-timer i{display:block;height:100%;background:linear-gradient(90deg,#e5483f,#ffc640 40%,#2fc77a);border-radius:999px}
.g-road .rd-reveal{max-width:620px;background:#0b1433;border-color:#ffc640}
.g-road .rd-fw{transform-box:fill-box;transform-origin:center;animation:rd-fw 1.9s ease-out infinite;animation-delay:var(--d,0s)}
@keyframes rd-fw{0%{transform:scale(.15);opacity:0}25%{opacity:1}70%{transform:scale(1.1);opacity:.9}100%{transform:scale(1.25);opacity:0}}
.g-road .fb{margin-inline:auto;width:100%;border-radius:18px;padding:10px 14px;border:2px solid var(--line);background:var(--surface)}
.g-road .fb.good{background:var(--good-soft);border-color:var(--good)}
.g-road .fb.bad{background:var(--bad-soft);border-color:var(--bad)}
.g-road .rd-story{display:block;margin-top:4px;font-weight:700}
.g-road .rd-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.g-road .rd-pics .choice{position:relative}
.g-road .rd-pics .choice{min-height:96px}
.g-road .rd-pics .cart{max-width:140px}
.g-road .rd-pics .ct{display:none}
.g-road .rd-text .choice{font-size:1.15rem}
@media (max-width:760px){
  .g-road .choices.three.rd-pics{grid-template-columns:repeat(3,minmax(0,1fr))}
  .g-road .rd-lab{font-size:13.5px}
}

/* the round dot: yellow, so it does not look like a wrong answer in the red Atlas Lions world */
.g-road .prog i.now{background:#ffc640;box-shadow:0 0 0 2px var(--wc)}

/* dark mode: the shared .fact.tint and .ask use the light world color behind light text; tint from the surface instead */
.g-road .fact.tint{background:color-mix(in srgb,var(--wc) 14%,var(--surface))}

/* ===== version 2 ===== */
.g-road .rd-top{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-road .rd-stop svg{width:14px;height:14px;fill:currentColor;vertical-align:-2px}
.g-road .rd-best{color:var(--ink);background:var(--surface-2)}
.g-road .rd-sc{display:block;margin-top:4px;font-size:.92rem;color:var(--muted);font-weight:700}
.g-road .rd-new{display:inline-flex;gap:5px;align-items:center;margin-top:6px}
.g-road .rd-new svg,.g-road .rd-final svg{width:15px;height:15px;fill:currentColor}
.g-road .rd-final{display:block;margin-top:6px;font-weight:800}
.g-road .rd-final .chip{display:inline-flex;gap:5px;align-items:center}
/* the save: three big dive buttons */
.g-road .rd-dives{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:620px;width:100%;margin-inline:auto}
.g-road .rd-dive{display:flex;flex-direction:column;align-items:center;gap:2px;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:18px;padding:8px 6px;font-weight:800;font-size:1.1rem;min-height:72px}
.g-road .rd-dive svg{width:34px;height:34px;color:var(--wt)}
.g-road .rd-dive:hover{border-color:var(--wc)}
/* level 3: the coach */
.g-road .rd-scout{background:#0b1433;color:#fff;border-radius:18px;border:3px solid #ffc640;padding:12px 14px;display:flex;flex-direction:column;gap:8px;max-width:620px;width:100%;margin-inline:auto}
.g-road .rd-scth{display:flex;gap:12px;align-items:center}
.g-road .rd-scth svg{width:60px;height:auto;flex:none}
.g-road .rd-scth .kicker{display:block;color:#ffc640;font-weight:800;letter-spacing:.12em;text-transform:uppercase;font-size:.78rem}
.g-road .rd-scth b{font-size:1.35rem;line-height:1.1}
.g-road .rd-rates{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;align-items:center;font-weight:700}
.g-road .rd-dots{display:inline-flex;gap:5px}
.g-road .rd-dots i{width:18px;height:18px;border-radius:50%;border:2px solid rgba(255,255,255,.5)}
.g-road .rd-dots i.on{background:#ffc640;border-color:#ffc640}
.g-road .rd-late{font-weight:800;color:#ffe08a}
.g-road .rd-note{font-size:.78rem;color:#aab3d6}
.g-road .rd-grp{display:flex;flex-direction:column;gap:6px;max-width:620px;width:100%;margin-inline:auto}
.g-road .rd-gt{font-weight:800;color:var(--wt)}
.g-road .rd-opts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.g-road .rd-opt{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:16px;padding:8px 6px;min-width:0;min-height:64px;line-height:1.15}
.g-road .rd-opt:hover{border-color:var(--wc)}
.g-road .rd-opt.on{border-color:var(--wc);background:color-mix(in srgb,var(--wc) 16%,var(--surface));box-shadow:0 0 0 3px color-mix(in srgb,var(--wc) 30%,transparent)}
.g-road .rd-opt svg{width:60px;height:40px;display:block}
.g-road .rd-opt b{font-size:1.02rem}
.g-road .rd-opt small{font-size:.78rem;font-weight:700;color:var(--muted)}
.g-road .rd-tip{font-size:.74rem;color:var(--muted);font-weight:600}
.g-road .rd-simw{max-width:620px;background:#0b1433;border-color:#ffc640}
.g-road .rd-simw svg{display:block;width:100%;height:auto}
.g-road .rd-tick{list-style:none;margin:0;padding:8px 12px;max-width:620px;width:100%;margin-inline:auto;background:var(--surface);border:2px solid var(--line);border-radius:16px;min-height:7.5em;max-height:9.6em;overflow:hidden;display:flex;flex-direction:column;gap:2px}
.g-road .rd-tick li{font-weight:700;line-height:1.35;animation:rd-in .35s ease both}
.g-road .rd-tick li b{color:var(--muted);display:inline-block;min-width:2.4em}
.g-road .rd-tick li.k-gm{color:var(--good);font-weight:800}
.g-road .rd-tick li.k-go{color:var(--bad);font-weight:800}
.g-road .rd-tick li.k-ft,.g-road .rd-tick li.k-pk,.g-road .rd-tick li.k-ht{color:var(--wt);font-weight:800}
@keyframes rd-in{from{opacity:0;transform:translateY(-6px)}}
.g-road .rd-cmp{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:10px;max-width:620px;width:100%;margin-inline:auto;align-items:stretch}
.g-road .rd-mine{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:color-mix(in srgb,var(--wc) 12%,var(--surface));border:2px solid color-mix(in srgb,var(--wc) 35%,var(--line));border-radius:16px;padding:10px}
.g-road .rd-mine .kicker{font-weight:800;color:var(--wt);letter-spacing:.1em;text-transform:uppercase;font-size:.78rem}
.g-road .rd-mscore{display:flex;align-items:center;gap:8px}
.g-road .rd-mscore svg{width:40px;height:auto}
.g-road .rd-mscore b{font-size:1.9rem;font-weight:800;line-height:1}
.g-road .rd-mine small{font-weight:700;color:var(--muted)}
.g-road .rd-ptsw{background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:6px 10px}
.g-road .rd-pts{width:100%;border-collapse:collapse;font-size:.92rem;font-variant-numeric:tabular-nums}
.g-road .rd-pts td{padding:2px 0;border-bottom:1px dashed var(--line)}
.g-road .rd-pts td:last-child{text-align:end;font-weight:800}
.g-road .rd-pts tr.tot td{border-bottom:2px solid var(--line);font-weight:800}
.g-road .rd-pts tr.all td{border:0;font-weight:800;color:var(--wt);font-size:1.02rem}
@media (min-width:900px){.g-road .rd-l3 .rd-main{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.g-road .rd-scout,.g-road .rd-grp,.g-road .rd-simw,.g-road .rd-tick,.g-road .rd-cmp,.g-road .rd-dives{max-width:none}}
@media (max-width:760px){
  .g-road .rd-opts{gap:6px}
  .g-road .rd-opt{padding:6px 4px}
  .g-road .rd-tip{font-size:.7rem}
  .g-road .rd-cmp{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){.g-road .rd-tick li{animation:none}}

/* text in the world color: lighter in dark mode so it stays readable */
.g-road{--wt:var(--wc)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .g-road{--wt:color-mix(in srgb,var(--wc) 50%,#fff)}}
:root[data-theme="dark"] .g-road{--wt:color-mix(in srgb,var(--wc) 50%,#fff)}

/* Champions Album */
.g-album .ask{background:color-mix(in srgb,var(--wc) 14%,var(--surface));max-width:720px;width:100%;margin-inline:auto}
.g-album .al-hud{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
/* a sticker: white edge, picture, year, name */
.g-album .stk{position:relative;width:100%;aspect-ratio:3/4;border-radius:12px;background:#fff;padding:4px;box-shadow:0 3px 0 rgba(26,32,66,.28),0 6px 14px rgba(26,32,66,.18);line-height:1.1}
.g-album .stk-in{position:relative;height:100%;border-radius:9px;overflow:hidden;display:flex;flex-direction:column;background:#8e1c21}
.g-album .stk-art{display:block;width:100%;height:auto;flex:none}
.g-album .stk-n{flex:1;display:grid;place-items:center;text-align:center;color:#fff;font-weight:800;font-size:.8rem;padding:2px 4px;line-height:1.08;min-height:0;overflow:hidden}
.g-album .stk-y{position:absolute;top:5px;left:5px;background:#1a2042;color:#ffc640;font-weight:800;font-size:.7rem;line-height:1.35;border-radius:999px;padding:0 6px;border:2px solid #fff;white-space:nowrap;max-width:calc(100% - 30px);overflow:hidden;text-overflow:ellipsis}
.g-album .stk-y.lg{font-size:.62rem;padding:0 4px}
.g-album .f-green .stk-in{background:#075c33}
.g-album .f-gold{background:linear-gradient(135deg,#fff6cf,#ffd666 45%,#fff6cf)}
.g-album .f-gold .stk-in{background:linear-gradient(135deg,#b07a06,#e9a312 38%,#fff1b8 50%,#e9a312 62%,#a06f05)}
.g-album .f-gold .stk-n{color:#1a2042}
.g-album .f-vintage{background:#f3e7cc}
.g-album .f-vintage .stk-in{background:#6b5132}
.g-album .f-vintage .stk-art{filter:sepia(.62) saturate(.9)}
.g-album .f-silver{background:linear-gradient(135deg,#f4f6fb,#c9d0e0 45%,#f4f6fb)}
.g-album .f-silver .stk-in{background:linear-gradient(135deg,#4d5876,#7b88a8 45%,#d9deea 52%,#7b88a8 60%,#4d5876)}
.g-album .stk.big .stk-n{font-size:1rem}
.g-album .stk.big .stk-y{font-size:.85rem}
/* foil shine on gold stickers */
.g-album .f-gold .stk-in::after,.g-album .stk.foil .stk-in::after{content:"";position:absolute;inset:-10%;background:linear-gradient(115deg,transparent 32%,rgba(255,255,255,.75) 46%,rgba(255,255,255,.15) 52%,transparent 64%);transform:translateX(-130%);animation:al-shine 3.6s ease-in-out infinite;pointer-events:none}
@keyframes al-shine{0%,50%{transform:translateX(-130%)}85%,100%{transform:translateX(130%)}}
/* rare foil stickers: a rainbow edge and a holographic shimmer */
.g-album .stk.foil{background:conic-gradient(from 0deg,#ff6b6b,#ffc640,#2fc77a,#5aa9e6,#b07bff,#ff6b9d,#ff6b6b);box-shadow:0 0 0 2px #fff,0 0 14px rgba(255,198,64,.75),0 3px 0 rgba(26,32,66,.28)}
.g-album .stk.foil .stk-in::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,107,107,.28),rgba(255,198,64,.22) 25%,rgba(47,199,122,.22) 50%,rgba(90,169,230,.25) 75%,rgba(176,123,255,.3));mix-blend-mode:screen;pointer-events:none;z-index:1}
.g-album .stk-foil{position:absolute;bottom:27%;right:5px;background:linear-gradient(90deg,#ff6b6b,#ffc640,#2fc77a,#5aa9e6,#b07bff);color:#1a2042;font-weight:800;font-size:.62rem;letter-spacing:.08em;border-radius:999px;padding:0 6px;border:2px solid #fff;z-index:2;line-height:1.35}
.g-album .stk-back .stk-n{background:#a51f25}
/* the album pages: printed paper, the same in light and dark mode */
.g-album .al-page{--pc:#c1272d;--pch:#c1272d;max-width:720px;width:100%;margin-inline:auto;background:#fffaf0;color:#1a2042;border-radius:18px;border:3px solid var(--pc);padding:12px;display:flex;flex-direction:column;gap:10px;box-shadow:0 4px 0 color-mix(in srgb,var(--pc) 55%,#000);background-image:radial-gradient(circle at 1px 1px,rgba(26,32,66,.07) 1px,transparent 0);background-size:16px 16px}
.g-album .pc-green{--pc:#0a7d46;--pch:#0a7d46}
.g-album .pc-gold{--pc:#e9a312;--pch:#9a6400}
.g-album .pc-vintage{--pc:#8a6a3e;--pch:#6b5132}
.g-album .pc-silver{--pc:#6f7d9c;--pch:#4d5876}
.g-album .al-page header{display:flex;align-items:baseline;gap:4px 10px;flex-wrap:wrap;border-bottom:3px dashed color-mix(in srgb,var(--pc) 60%,#fff);padding-bottom:6px}
.g-album .al-page h3{font-size:1.2rem;font-weight:800;line-height:1.15;color:var(--pch)}
.g-album .al-page .ar{font-size:1.05rem;color:var(--pch)}
.g-album .al-cnt{font-weight:800;font-size:.85rem;color:#5b6388}
.g-album .al-done{margin-inline-start:auto;display:inline-flex;align-items:center;gap:4px;font-weight:800;font-size:.85rem;background:#ffc640;color:#1a2042;border-radius:999px;padding:0 10px;border:2px solid #1a2042;align-self:center}
.g-album .al-done svg{width:15px;height:15px;fill:#c1272d}
.g-album .al-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.g-album .al-slot{min-width:0}
.g-album .al-slot.empty{aspect-ratio:3/4;border:3px dashed #cdbf9e;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#f6eedb;color:#7f765f;text-align:center;padding:6px}
.g-album .al-ghost{width:46%;opacity:.3;filter:grayscale(1)}
.g-album .al-no{font-weight:800;font-size:.85rem}
.g-album .al-cap{font-size:.74rem;font-weight:700;line-height:1.1}
.g-album .stk.fresh{animation:al-stick .75s cubic-bezier(.2,1.5,.4,1) both}
@keyframes al-stick{0%{transform:scale(1.7) rotate(-14deg);opacity:0}55%{opacity:1}100%{transform:none}}
.g-album .al-ribbon{display:flex;gap:8px;align-items:center;font-weight:700;font-size:.92rem;line-height:1.3;background:#fbe7c9;border-radius:12px;padding:6px 10px;color:#6b4a12}
.g-album .al-ribbon svg{width:28px;height:28px;flex:none}
.g-album .al-nw{white-space:nowrap}
/* the book: page tabs and flipping */
.g-album .al-book{display:flex;flex-direction:column;gap:10px;max-width:720px;width:100%;margin-inline:auto}
.g-album .al-tabs{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
.g-album .al-tab{display:flex;flex-direction:column;align-items:center;border:2px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:4px 2px;min-height:44px;line-height:1.1;min-width:0}
.g-album .al-tab span{font-weight:800;font-size:1rem}
.g-album .al-tab small{font-size:.72rem;color:var(--muted);font-weight:700}
.g-album .al-tab.full{background:color-mix(in srgb,#ffc640 30%,var(--surface));border-color:#e9a312}
.g-album .al-tab.on{border-color:var(--wc);box-shadow:0 0 0 3px color-mix(in srgb,var(--wc) 30%,transparent)}
.g-album .al-flip{justify-content:space-between;align-items:center}
.g-album .al-pgn{font-weight:800;color:var(--muted);font-size:.9rem}
/* the cover and the progress meter */
.g-album .al-cover{text-align:center;background:#c1272d;color:#fff;border-radius:20px;padding:16px 18px;border:3px solid #ffc640;display:flex;flex-direction:column;align-items:center;gap:8px;max-width:720px;width:100%;margin-inline:auto}
.g-album .al-cover h2{font-size:1.35rem;font-weight:800;line-height:1.25}
.g-album .al-cover .speak{vertical-align:middle;background:rgba(255,255,255,.2);color:#fff}
.g-album .al-cover .kicker{color:#ffe08a;font-weight:800;letter-spacing:.14em;text-transform:uppercase;font-size:.85rem}
.g-album .al-meter{width:100%;max-width:420px;display:flex;flex-direction:column;gap:6px;align-items:center}
.g-album .al-mtop{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:baseline;justify-content:center}
.g-album .al-mtop > b{font-size:1.6rem;font-weight:800;color:#ffc640;line-height:1}
.g-album .al-mtop > span:not(.al-chip){font-weight:700}
.g-album .al-chip{background:rgba(255,255,255,.18);border-radius:999px;padding:0 10px;font-weight:800;font-size:.85rem}
.g-album .al-chip.foil{background:linear-gradient(90deg,#ff6b6b,#ffc640,#2fc77a,#5aa9e6,#b07bff);color:#1a2042}
.g-album .al-bar{max-width:none;height:16px;border-radius:8px;background:rgba(255,255,255,.25)}
.g-album .al-bar i{border-radius:8px;background:linear-gradient(90deg,#ffc640,#ffe08a)}
.g-album .al-sum{font-weight:700;color:#ffe9ea}
.g-album .al-final{display:flex;flex-direction:column;gap:14px}
/* the sticker pack */
.g-album .al-packwrap{display:flex;justify-content:center;padding-block:6px}
.g-album .al-pack{border:0;background:transparent;padding:0;width:min(230px,62vw);animation:al-wiggle 2.6s ease-in-out infinite;filter:drop-shadow(0 8px 10px rgba(26,32,66,.3));border-radius:16px}
.g-album .al-pack svg{display:block;width:100%;height:auto}
@keyframes al-wiggle{0%,68%,100%{transform:rotate(0)}74%{transform:rotate(-5deg) scale(1.03)}80%{transform:rotate(5deg) scale(1.03)}86%{transform:rotate(-3deg)}92%{transform:rotate(2deg)}}
.g-album .al-open{display:flex;flex-direction:column;align-items:center;gap:6px}
.g-album .al-pack.torn{width:min(120px,32vw);animation:none;filter:none}
.g-album .al-pack.torn .al-flap{transform-box:fill-box;transform-origin:center;transform:translate(46px,-14px) rotate(24deg);opacity:0;animation:al-flap .8s ease-out both}
@keyframes al-flap{from{transform:none;opacity:1}}
.g-album .al-fan{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:540px;width:100%;margin-top:-30px;position:relative}
.g-album .al-fan.n2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:380px}
.g-album .al-fan.n4{grid-template-columns:repeat(4,minmax(0,1fr));max-width:680px}
.g-album .al-card{position:relative;animation:al-out .65s cubic-bezier(.2,1.4,.4,1) both;animation-delay:calc(.3s + var(--k) * .16s)}
.g-album .al-card:nth-child(odd){transform:rotate(-3deg)}.g-album .al-card:nth-child(even){transform:rotate(3deg)}
@keyframes al-out{from{transform:translateY(-110px) scale(.35) rotate(-10deg);opacity:0}}
.g-album .al-tag{position:absolute;top:-13px;left:50%;transform:translateX(-50%) rotate(-5deg);white-space:nowrap;text-align:center;background:#2fc77a;color:#0b1433;font-weight:800;font-size:.8rem;border-radius:999px;padding:1px 9px;border:2px solid #1a2042;z-index:3}
.g-album .al-tag.double{background:#ffc640}
.g-album .al-tag.foil{background:linear-gradient(90deg,#ff6b6b,#ffc640,#2fc77a,#5aa9e6,#b07bff)}
/* a question for each sticker */
.g-album .al-q{display:grid;grid-template-columns:190px minmax(0,1fr);gap:18px;align-items:center;max-width:760px;width:100%;margin-inline:auto}
.g-album .al-hand{display:flex;flex-direction:column;align-items:center;gap:8px}
.g-album .al-hand .stk{max-width:190px;transform:rotate(-3deg)}
.g-album .al-qtag{font-weight:800;font-size:.82rem;background:var(--surface-2);color:var(--ink);border-radius:999px;padding:1px 10px}
.g-album .al-qtag.foil{background:linear-gradient(90deg,#ff6b6b,#ffc640,#2fc77a,#5aa9e6,#b07bff);color:#1a2042}
.g-album .al-q .choices{max-width:none}
.g-album .al-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.g-album .al-pics .ct{display:none}
.g-album .al-pics .cart{max-width:110px}
.g-album .al-texts .choice{font-size:1.05rem;min-height:56px;padding:10px 14px}
.g-album .al-texts .choice small{display:block;font-weight:600;font-size:.82rem;color:var(--muted);margin-top:2px}
.g-album .al-fb{margin-inline:auto;width:100%;max-width:720px;border-radius:18px;padding:10px 14px;border:2px solid var(--line);background:var(--surface)}
.g-album .al-fb.good{background:var(--good-soft);border-color:var(--good)}
.g-album .al-fb.bad{background:var(--bad-soft);border-color:var(--bad)}
.g-album .al-fb .speak{vertical-align:middle}
/* Mima's stall */
.g-album .al-stall{display:grid;grid-template-columns:140px minmax(0,1fr);gap:16px;align-items:center;max-width:760px;width:100%;margin-inline:auto}
.g-album .al-mima{display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:800;text-align:center}
.g-album .al-mima .bust{width:120px;height:120px;border-radius:50%;background:#d6f1ef;border:3px solid #0f8282}
.g-album .al-pile{display:inline-flex;align-items:baseline;gap:4px;background:#ffc640;color:#1a2042;border:2px solid #1a2042;border-radius:999px;padding:0 10px;font-weight:700}
.g-album .al-pile b{font-size:1.2rem}
.g-album .al-offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.g-album .al-offers.n1{grid-template-columns:minmax(0,170px);justify-content:center}
.g-album .al-offers.n2{grid-template-columns:repeat(2,minmax(0,170px));justify-content:center}
.g-album .al-offer{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.g-album .al-price{font-weight:800;font-size:.82rem;background:var(--surface-2);border-radius:999px;padding:0 10px;color:var(--ink)}
.g-album .al-pgtag{font-weight:800;font-size:.75rem;color:var(--good);text-align:center;line-height:1.15}
.g-album .al-pgtag.foil{color:var(--wt)}
.g-album .al-offer .btn{min-width:96px;min-height:44px}
@media (max-width:760px){
  .g-album .al-q{grid-template-columns:minmax(0,1fr);gap:12px}
  .g-album .al-hand .stk{max-width:150px}
  .g-album .al-stall{grid-template-columns:minmax(0,1fr);gap:10px}
  .g-album .al-mima{flex-direction:row;justify-content:center;gap:10px;flex-wrap:wrap}
  .g-album .al-mima .bust{width:72px;height:72px}
  .g-album .al-offers{gap:8px}
  .g-album .al-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
  .g-album .al-slots{gap:8px}
  .g-album .al-page{padding:10px}
  .g-album .stk-n{font-size:.72rem}
  .g-album .stk-y{font-size:.6rem;padding:0 4px;top:4px;left:4px}
  .g-album .stk-y.lg{font-size:.52rem;padding:0 3px;letter-spacing:-.01em}
  .g-album .stk-foil{font-size:.52rem;padding:0 4px;right:4px}
  .g-album .al-fan{gap:10px}
  .g-album .al-fan.n4{grid-template-columns:repeat(2,minmax(0,1fr));max-width:330px;row-gap:22px}
  .g-album .al-cover h2{font-size:1.15rem}
}
@media (min-width:900px){.g-album .al-page,.g-album .al-book{max-width:640px}.g-album .stk-n{font-size:.92rem}.g-album .stk-y{font-size:.78rem}.g-album .stk-y.lg{font-size:.68rem}.g-album .al-offers .stk-n,.g-album .al-fan .stk-n{font-size:.85rem}}
@media (prefers-reduced-motion:reduce){.g-album .stk-in::after,.g-album .al-pack{animation:none!important}}

/* the round dot: yellow, so it does not look like a wrong answer in the red Atlas Lions world */
.g-album .prog i.now{background:#ffc640;box-shadow:0 0 0 2px var(--wc)}

/* dark mode: the shared .fact.tint and .ask use the light world color behind light text; tint from the surface instead */
.g-album .fact.tint{background:color-mix(in srgb,var(--wc) 14%,var(--surface))}

/* text in the world color: lighter in dark mode so it stays readable */
.g-album{--wt:var(--wc)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .g-album{--wt:color-mix(in srgb,var(--wc) 50%,#fff)}}
:root[data-theme="dark"] .g-album{--wt:color-mix(in srgb,var(--wc) 50%,#fff)}

/* Track Champions */
.g-track .ask,.g-track .fact{background:color-mix(in srgb,var(--wc) var(--tintmix),var(--surface))}
.g-track .tr-stage{background:#c4553a;touch-action:manipulation}
.g-track .tr-start{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);min-width:150px;font-size:1.5rem;background:#c1272d;color:#fff;border:3px solid #1a2042;box-shadow:0 5px 0 #7a1418}
.g-track .tr-msg{text-align:center;font-weight:800;font-size:1.1rem;line-height:1.3;min-height:1.35em;color:var(--wc);margin:0}
.g-track .tr-msg.warn{color:#b8590a}
.g-track .tr-status{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;grid-template-areas:"a b c" "d d c";gap:6px 12px;align-items:center;max-width:640px;width:100%;margin-inline:auto}
.g-track .tr-st{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;font-weight:800;font-size:.92rem}
.g-track .tr-bar{position:relative;display:block;height:16px;border-radius:8px;background:var(--surface-2);border:2px solid var(--line);overflow:hidden}
.g-track .tr-bar > i{position:absolute;inset-block:0;inset-inline-start:0;background:#2fc77a;border-radius:6px;transition:width .1s linear}
.g-track .tr-bar > i.low{background:#e5483f}
.g-track .tr-pace > i{background:#2f6fd6}
.g-track .tr-pace > i.hot{background:#ff8a1f}
.g-track .tr-pace > b{position:absolute;top:0;bottom:0;width:3px;margin-inline-start:-1.5px;background:var(--ink)}
.g-track .tr-draft{grid-area:d;justify-self:start;background:#1d63b8;color:#fff;border-radius:999px;padding:2px 12px;font-weight:800;font-size:.9rem}
.g-track .tr-oval{grid-area:c;width:96px;line-height:0}
.g-track .tr-oval svg{width:96px;height:auto}
.g-track .tr-ctl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr) minmax(0,1fr);gap:10px;max-width:640px;width:100%;margin-inline:auto}
.g-track .tr-ctl.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-track .tr-btn{border:3px solid #1a2042;border-radius:24px;min-height:100px;font-weight:800;color:#fff;font-size:1.15rem;letter-spacing:.04em;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;box-shadow:0 7px 0 #1a2042}
.g-track .tr-btn svg{width:40px;height:40px}
.g-track .tr-foot{background:#c1272d}
.g-track .tr-foot#tr-right{background:#0a7d46}
.g-track .tr-jump{background:#1d63b8}
.g-track .tr-jump.lit{background:#e8a40c;color:#1a2042;outline:5px solid #ffc640;outline-offset:2px}
.g-track .tr-jump.lit svg path{stroke:#1a2042}
.g-track .tr-btn.hit{animation:tr-hit .16s ease-out}
@keyframes tr-hit{from{transform:translateY(5px);box-shadow:0 2px 0 #1a2042}}
.g-track .tr-keys{margin:0}
.g-track .tr-flag{animation:tr-wave 1.2s ease-in-out infinite alternate}
@keyframes tr-wave{from{transform:rotate(-8deg)}to{transform:rotate(8deg)}}
.g-track .tr-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:14px;align-items:center;max-width:720px;width:100%;margin-inline:auto}
.g-track .tr-hero svg{display:block;width:100%;height:auto;border-radius:14px;border:2px solid var(--line)}
.g-track .tr-itxt{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.g-track .tr-chips{display:flex;flex-wrap:wrap;gap:6px}
.g-track .tr-fact{font-size:1.08rem;font-weight:600;line-height:1.45}
.g-track .tr-tip{color:var(--muted);line-height:1.4}
.g-track .tr-tip b{color:var(--ink)}
.g-track .tr-pod,.g-track .tr-photo{background:#1f3b78}
.g-track .tr-photo{background:#e9dcc4;border-color:#7a4a21}
.g-track .tr-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(84px,1fr));gap:8px;max-width:680px;width:100%;margin-inline:auto}
.g-track .tr-tiles div{display:flex;flex-direction:column;align-items:center;background:var(--surface-2);border-radius:14px;padding:8px;text-align:center}
.g-track .tr-tiles b{font-size:1.3rem;line-height:1.1;font-variant-numeric:tabular-nums}
.g-track .tr-tiles small{color:var(--muted);font-weight:700;font-size:.8rem}
.g-track .tr-res{max-width:680px;width:100%;margin-inline:auto;padding:8px 12px}
.g-track .tr-res table{width:100%;border-collapse:separate;border-spacing:0 3px}
.g-track .tr-res td{padding:4px 8px;background:var(--surface-2);font-variant-numeric:tabular-nums}
.g-track .tr-res td:first-child{border-radius:10px 0 0 10px;width:2.2em;text-align:center;font-weight:800}
.g-track .tr-res td:first-child i{display:inline-block;width:16px;height:16px;border-radius:50%;border:2px solid #1a2042;vertical-align:-3px}
.g-track .tr-res td:last-child{border-radius:0 10px 10px 0;text-align:end;font-weight:700}
.g-track .tr-res tr.me td{background:var(--good-soft);font-weight:800}
.g-track .tr-kit{display:inline-block;width:12px;height:12px;border-radius:3px;border:2px solid #1a2042;margin-inline-end:6px;vertical-align:-1px}
.g-track .tr-stand{max-width:680px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:6px}
.g-track .tr-chrow{display:flex;flex-wrap:wrap;gap:6px}
.g-track .tr-sum{max-width:680px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center}
.g-track .tr-sum ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:2px;font-weight:600}
.g-track .tr-sum p{font-size:1.08rem}
@media (max-width:640px){
  .g-track .tr-intro{grid-template-columns:minmax(0,1fr)}
  .g-track .tr-btn{min-height:88px;font-size:1rem}
  .g-track .tr-status{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"a c" "b c" "d c"}
  .g-track .tr-status .tr-st:first-child{grid-area:a}.g-track .tr-status .tr-st:nth-child(2){grid-area:b}
  .g-track .tr-msg{font-size:1rem}
}
@media (prefers-reduced-motion: reduce){.g-track .tr-flag,.g-track .tr-btn.hit{animation:none}}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .g-track .tr-msg{color:color-mix(in srgb,var(--wc) 45%,#fff)}:root:not([data-theme="light"]) .g-track .tr-msg.warn{color:#ffb36b}}
:root[data-theme="dark"] .g-track .tr-msg{color:color-mix(in srgb,var(--wc) 45%,#fff)}:root[data-theme="dark"] .g-track .tr-msg.warn{color:#ffb36b}

/* Souk Bargain */
.g-bargain .bg-play{display:flex;flex-direction:column;gap:12px;width:100%;max-width:720px;margin-inline:auto}
.g-bargain .bg-left,.g-bargain .bg-right{display:flex;flex-direction:column;gap:10px;min-width:0}
.g-bargain .bg-stage{max-width:none}
.g-bargain .bg-mini{max-width:460px}
.g-bargain .bg-meters{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.g-bargain .bg-meters .bg-wallet{justify-content:center;max-width:260px}
.g-bargain .bg-meters .bg-bestc{align-self:center}
.g-bargain .bg-meter{display:flex;align-items:center;gap:8px;background:var(--surface);border:2px solid var(--line);border-radius:999px;padding:4px 8px 4px 4px;flex:1 1 150px;min-width:0;max-width:340px}
.g-bargain .bg-meter b{font-size:.92rem;min-width:3.1em}
.g-bargain .bg-av{width:40px;height:40px;border-radius:50%;overflow:hidden;flex:none;background:var(--ws);display:block}
.g-bargain .bg-av.sell{background:#f6d2a8}
.g-bargain .bg-av svg{width:100%;height:100%;display:block}
.g-bargain .bg-bar{display:flex;gap:3px;flex:1;min-width:40px}
.g-bargain .bg-bar i{flex:1;height:12px;border-radius:4px;background:var(--surface-2);transition:background .3s}
.g-bargain .bg-bar i.on.m0,.g-bargain .bg-bar i.on.m1{background:#ff8174}
.g-bargain .bg-bar i.on.m2{background:#ffc640}
.g-bargain .bg-bar i.on.m3,.g-bargain .bg-bar i.on.m4{background:#2fc77a}
.g-bargain .bg-face svg{width:32px;height:32px;display:block}
.g-bargain .bg-wallet{flex:0 0 auto;margin-inline:auto;display:inline-flex;align-items:center;gap:8px;background:var(--ws);color:var(--ink);border-radius:999px;padding:4px 14px 4px 8px;font-weight:700}
.g-bargain .bg-wallet svg{width:34px;height:26px}
.g-bargain .bg-wallet b{color:var(--wc);font-size:1.1rem}
.g-bargain .bg-chat{display:flex;flex-direction:column;gap:6px}
.g-bargain .bg-say{display:flex;gap:8px;align-items:flex-end}
.g-bargain .bg-say.k{justify-content:flex-end}
.g-bargain .bg-say p{background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:8px 12px;font-weight:700;line-height:1.3;max-width:82%;font-size:1.05rem}
.g-bargain .bg-say.k p{background:var(--ws);border-color:var(--wc);border-end-end-radius:4px}
.g-bargain .bg-say.s p{border-end-start-radius:4px}
.g-bargain .bg-say .speak{width:32px;height:32px;vertical-align:middle;margin-inline-start:4px}
.g-bargain .bg-say .speak svg{width:16px;height:16px}
.g-bargain .bg-piles .choice .cart{max-width:150px}
.g-bargain .bg-piles .ct{font-size:1.3rem}
.g-bargain .bg-sub{font-size:.85rem;color:var(--muted);font-weight:700;line-height:1.1}
.g-bargain .bg-greet .ct{font-size:1.15rem}
.g-bargain .bg-kidface svg{width:54px;height:54px;display:block}
.g-bargain .choice.dim{opacity:.38}
.g-bargain .bg-seller.yay{animation:bgHop .45s ease 2}
.g-bargain .bg-seller.huh{animation:bgShake .5s ease}
.g-bargain .bg-seller.think{animation:bgTilt .9s ease}
.g-bargain .bg-seller{transform-box:fill-box;transform-origin:50% 100%}
@keyframes bgHop{40%{transform:translateY(-8px)}}
@keyframes bgShake{20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
@keyframes bgTilt{30%{transform:rotate(-4deg)}70%{transform:rotate(3deg)}}
.g-bargain .bg-line{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:center;font-weight:700}
.g-bargain .bg-line b{color:var(--ink)}
.g-bargain .bg-line i{display:inline-block;width:22px;height:3px;border-radius:2px;background:var(--wc)}
.g-bargain .bg-gauge svg{width:100%;max-width:420px;display:block;margin-inline:auto}
.g-bargain .bg-checks{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.g-bargain .fb{margin-inline:auto;width:100%}
.g-bargain .bg-two .cart{max-width:150px}
@media (min-width:900px){
  .g-bargain .bg-play{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);max-width:none;align-items:start}
}
@media (max-width:760px){
  .g-bargain .choices.three.bg-piles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .g-bargain .choices.three.bg-piles .ct{font-size:1.05rem}
}
@media (max-width:420px){
  .g-bargain .bg-meter{flex-basis:140px}
  .g-bargain .bg-piles .choice{padding:8px 6px}
}
/* records */
.g-bargain .bg-rec{display:flex;align-items:center;justify-content:center;gap:6px;font-weight:800;font-size:1.1rem;color:#8a5d00;background:#fff3c4;border:2px solid #e6bd4f;border-radius:14px;padding:6px 12px;max-width:560px;margin-inline:auto;width:100%;text-align:center}
.g-bargain .bg-rec .st{width:22px;height:22px;color:#e9a312;flex:none}
.g-bargain .bg-rec.dim{font-size:.98rem;color:var(--muted);background:var(--surface-2);border-color:var(--line)}
/* stalls and offers */
.g-bargain .bg-walletrow{display:flex;justify-content:center}
.g-bargain .bg-stalls{display:grid;gap:8px;width:100%;max-width:720px;margin-inline:auto}
.g-bargain .bg-stalls.n3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g-bargain .bg-stalls.n2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:520px}
.g-bargain .bg-stall{display:flex;flex-direction:column;align-items:center;gap:3px;border:3px solid var(--line);background:var(--surface);border-radius:16px;padding:6px 6px 8px;color:var(--ink);min-width:0;font-weight:800;text-align:center}
.g-bargain .bg-stall:hover:not(:disabled){border-color:var(--wc)}
.g-bargain .bg-stall:disabled{cursor:default}
.g-bargain .bg-stall.yes{border-color:var(--good);background:var(--good-soft)}
.g-bargain .bg-stall.no{border-color:var(--bad);background:var(--bad-soft)}
.g-bargain .bg-stall.dim{opacity:.62}
.g-bargain .bg-stall .cart{display:block;width:100%;border-radius:10px;overflow:hidden;line-height:0}
.g-bargain .bg-stall .cart svg{display:block;width:100%;height:auto}
.g-bargain .bg-snum{font-size:.82rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.g-bargain .bg-unit{font-size:1.12rem;line-height:1.15}
.g-bargain .bg-offer{font-size:.9rem;background:#ffc640;color:#1a2042;border-radius:999px;padding:1px 10px;line-height:1.35}
.g-bargain .bg-offer.none{background:transparent;color:var(--muted);font-weight:700}
.g-bargain .bg-tot{display:flex;flex-direction:column;gap:1px;border-top:2px dashed var(--line);padding-top:4px;width:100%}
.g-bargain .bg-tot b{font-size:1.2rem}
.g-bargain .bg-tot small{font-size:.76rem;color:var(--muted);font-weight:700;line-height:1.2}
/* the shopping list */
.g-bargain .bg-list{padding:8px 12px;display:flex;flex-direction:column;gap:6px;width:100%;max-width:720px;margin-inline:auto}
.g-bargain .bg-lh{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.g-bargain .bg-lh > b{font-size:1.05rem;margin-inline-end:auto}
.g-bargain .bg-lh > b small{font-size:.75rem;color:var(--muted);font-weight:700}
.g-bargain .bg-list .bg-wallet{margin:0;padding:2px 12px 2px 6px}
.g-bargain .bg-list ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.g-bargain .bg-list li{display:inline-flex;align-items:center;gap:6px;border:2px solid var(--line);border-radius:999px;padding:2px 10px 2px 3px;font-weight:700;font-size:.92rem;background:var(--surface)}
.g-bargain .bg-list li small{color:var(--muted);font-weight:700}
.g-bargain .bg-li{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);font-size:.82rem;font-weight:800;flex:none}
.g-bargain .bg-list li.now{border-color:var(--wc);background:var(--ws)}
.g-bargain .bg-list li.now .bg-li{background:var(--wc);color:#fff}
.g-bargain .bg-list li.got .bg-li{background:var(--good);color:#fff}
.g-bargain .bg-list li.skip{opacity:.6}
.g-bargain .bg-list li.skip .bg-li{background:var(--bad);color:#fff}
/* patience and the offer picker */
.g-bargain .bg-pat{display:flex;align-items:center;gap:8px;background:var(--surface);border:2px solid var(--line);border-radius:999px;padding:4px 6px 4px 14px;font-weight:800;font-size:.92rem}
.g-bargain .bg-hg{display:flex;gap:4px;flex:1}
.g-bargain .bg-hg i{flex:1;height:14px;border-radius:5px;background:var(--surface-2);transition:background .3s}
.g-bargain .bg-hg i.on.p1{background:#ff8174}.g-bargain .bg-hg i.on.p2,.g-bargain .bg-hg i.on.p3{background:#ffc640}.g-bargain .bg-hg i.on.p4,.g-bargain .bg-hg i.on.p5{background:#2fc77a}
.g-bargain .bg-picker{display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px}
.g-bargain .bg-prow{display:flex;align-items:center;gap:10px}
.g-bargain .bg-sb{width:56px;height:52px;border-radius:14px;border:2px solid var(--line);background:var(--surface-2);color:var(--ink);font-weight:800;font-size:1.15rem}
.g-bargain .bg-sb:disabled{opacity:.35}
.g-bargain .bg-sb:active:not(:disabled){transform:scale(.94)}
.g-bargain .bg-x{display:flex;flex-direction:column;align-items:center;min-width:120px}
.g-bargain .bg-x b{font-size:1.7rem;line-height:1.1;font-variant-numeric:tabular-nums}
.g-bargain .bg-x small{color:var(--muted);font-weight:700;font-size:.82rem}
.g-bargain .bg-chips{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.g-bargain .bg-chip{border:2px solid var(--line);min-height:36px;padding:2px 14px;font-size:.95rem;cursor:pointer}
.g-bargain .bg-chip.on{border-color:var(--wc);background:var(--ws);color:var(--ink)}
.g-bargain .bg-offerbtn{min-width:200px}
.g-bargain .bg-more{justify-content:center;gap:8px}
.g-bargain .bg-fx .choice{min-height:58px}
/* the receipt */
.g-bargain .bg-rc{width:100%;max-width:520px;margin-inline:auto;background:#fffdf6;color:#1a2042;border-radius:6px;padding:14px 14px 18px;box-shadow:0 6px 18px rgba(20,24,60,.18);border-top:6px dashed #c9a66b;font-variant-numeric:tabular-nums}
.g-bargain .bg-rch{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px dashed #c9a66b;padding-bottom:6px;margin-bottom:6px;letter-spacing:.12em}
.g-bargain .bg-rch .ar{color:#8b6a3a;letter-spacing:0;font-size:1.2rem}
.g-bargain .bg-rc table{width:100%;border-collapse:collapse}
.g-bargain .bg-rc th,.g-bargain .bg-rc td{padding:5px 3px;text-align:end;border-bottom:1px dotted #d8cbb0;font-size:.95rem}
.g-bargain .bg-rc thead th{font-size:.8rem;color:#6b6250}
.g-bargain .bg-rc th[scope=row],.g-bargain .bg-rc thead th:first-child{text-align:start}
.g-bargain .bg-rc th[scope=row] small{display:block;font-weight:600;color:#6b6250;font-size:.78rem}
.g-bargain .bg-rc tr.skip{opacity:.55}
.g-bargain .bg-rc tfoot th,.g-bargain .bg-rc tfoot td{border-bottom:0;border-top:2px solid #1a2042;font-weight:800;font-size:1.05rem}
.g-bargain .bg-rcf{display:flex;flex-direction:column;gap:2px;margin-top:8px;font-weight:700}
@media (max-width:480px){
  .g-bargain .bg-stalls.n3{gap:5px}
  .g-bargain .bg-stall{padding:4px 3px 6px;border-radius:13px}
  .g-bargain .bg-unit{font-size:.95rem}
  .g-bargain .bg-offer{font-size:.78rem;padding:1px 6px}
  .g-bargain .bg-tot b{font-size:1.02rem}
  .g-bargain .bg-tot small{font-size:.68rem}
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .g-bargain .bg-rec{background:#3a3016;color:#ffd76a;border-color:#a8811f}
  :root:not([data-theme="light"]) .g-bargain .bg-rec.dim{background:var(--surface-2);color:var(--muted);border-color:var(--line)}
  :root:not([data-theme="light"]) .g-bargain .bg-list .bg-wallet{background:color-mix(in srgb,var(--wc) 32%,var(--surface))}
}
:root[data-theme="dark"] .g-bargain .bg-rec{background:#3a3016;color:#ffd76a;border-color:#a8811f}
:root[data-theme="dark"] .g-bargain .bg-rec.dim{background:var(--surface-2);color:var(--muted);border-color:var(--line)}
:root[data-theme="dark"] .g-bargain .bg-list .bg-wallet{background:color-mix(in srgb,var(--wc) 32%,var(--surface))}
/* dark mode: the world's soft color is light, so text boxes get a deeper tint */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .g-bargain .ask,:root:not([data-theme="light"]) .g-bargain .fact,:root:not([data-theme="light"]) .g-bargain .bg-say.k p,:root:not([data-theme="light"]) .g-bargain .bg-wallet{background:color-mix(in srgb,var(--wc) 32%,var(--surface))}
  :root:not([data-theme="light"]) .g-bargain .ask .ar,:root:not([data-theme="light"]) .g-bargain .bg-wallet b{color:#cdbbff}
}
:root[data-theme="dark"] .g-bargain .ask,:root[data-theme="dark"] .g-bargain .fact,:root[data-theme="dark"] .g-bargain .bg-say.k p,:root[data-theme="dark"] .g-bargain .bg-wallet{background:color-mix(in srgb,var(--wc) 32%,var(--surface))}
:root[data-theme="dark"] .g-bargain .ask .ar,:root[data-theme="dark"] .g-bargain .bg-wallet b{color:#cdbbff}

/* The Hanout */
.g-hanout .hn-play{display:flex;flex-direction:column;gap:12px;width:100%;max-width:720px;margin-inline:auto}
.g-hanout .hn-side{display:flex;flex-direction:column;gap:12px;min-width:0}
.g-hanout .hn-stage{max-width:none}
.g-hanout .hn-cust.enter{animation:hnIn .75s cubic-bezier(.2,1.25,.4,1) both}
.g-hanout .hn-cust.yay{animation:hnHop .5s ease 2}
@keyframes hnIn{from{transform:translateX(170px);opacity:0}}
@keyframes hnHop{40%{transform:translateY(-9px)}}
.g-hanout .hn-counter{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:18px;background:linear-gradient(180deg,#c48a50,#9b6537);border:3px solid #6e4422;box-shadow:inset 0 3px 0 rgba(255,255,255,.25)}
.g-hanout .hn-paid{flex:none}
.g-hanout .hn-paid svg{display:block;width:62px;height:auto}
.g-hanout .hn-lcd{display:flex;align-items:center;gap:10px;background:#17302a;color:#a6f3c8;border:3px solid #0b1915;border-radius:12px;padding:5px 8px 5px 14px;font-weight:700}
.g-hanout .hn-lab{flex:1;min-width:0;font-size:.95rem;line-height:1.2;color:#7fd6a8}
.g-hanout .hn-lab b{color:#fff;font-size:1rem;letter-spacing:0;white-space:nowrap}
.g-hanout .hn-lcd > b{font-size:1.75rem;line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:.02em;white-space:nowrap}
.g-hanout .hn-lcd.good b{color:#ffe08a}
.g-hanout .hn-lcd .speak{background:#24473e;color:#a6f3c8}
.g-hanout .hn-trayrow{display:flex;gap:8px;align-items:stretch}
.g-hanout .hn-act{display:flex;flex-direction:column;gap:8px;justify-content:center;flex:none}
.g-hanout .hn-act .btn.big{padding:12px 16px}
.g-hanout .hn-tray{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:4px;justify-content:center;align-items:center;min-height:62px;padding:5px;border-radius:12px;background:rgba(40,20,5,.22);box-shadow:inset 0 2px 6px rgba(0,0,0,.25)}
.g-hanout .hn-empty{color:#fbe6c8;font-weight:700;font-size:.95rem}
.g-hanout .hn-m{border:0;background:transparent;padding:0;width:52px;height:52px;display:grid;place-items:center;border-radius:50%}
.g-hanout .hn-m.note{width:84px;border-radius:8px}
.g-hanout .hn-m svg{width:100%;height:100%;display:block;filter:drop-shadow(0 2px 0 rgba(0,0,0,.3))}
.g-hanout .hn-m:not(:disabled):hover svg{transform:translateY(-2px)}
.g-hanout .hn-m.pop svg{animation:hnPop .35s cubic-bezier(.2,1.6,.4,1)}
@keyframes hnPop{from{transform:translateY(-26px) scale(1.25);opacity:.4}}
.g-hanout .hn-timer{height:12px;border-radius:6px;background:rgba(0,0,0,.25);overflow:hidden}
.g-hanout .hn-timer i{display:block;height:100%;background:#ffc640;border-radius:6px}
.g-hanout .hn-timer.late i{background:#ff8174}
.g-hanout .hn-hint{background:#fff3d6;color:#7a3b10;border-radius:12px;padding:6px 12px;font-weight:700;text-align:center}
.g-hanout .hn-drawer{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;padding:10px;border-radius:18px;background:#5b3a22;border:3px solid #3a2414;box-shadow:inset 0 4px 10px rgba(0,0,0,.35)}
.g-hanout .hn-slot{flex:0 0 auto;width:64px;height:64px;border:0;border-radius:14px;background:#3a2414;display:grid;place-items:center;padding:4px;box-shadow:inset 0 2px 5px rgba(0,0,0,.45)}
.g-hanout .hn-slot.note{width:110px}
.g-hanout .hn-drawer.l1 .hn-slot{width:76px;height:76px}
.g-hanout .hn-slot svg{width:100%;height:100%;display:block;filter:drop-shadow(0 2px 0 rgba(0,0,0,.35))}
.g-hanout .hn-slot:hover{background:#4a2e19}
.g-hanout .hn-slot:active svg{transform:scale(.92)}
.g-hanout .choices.hn-tot{grid-template-columns:repeat(3,minmax(0,1fr))}
.g-hanout .hn-tot .choice{font-size:1.35rem;font-variant-numeric:tabular-nums;white-space:nowrap;padding-inline:4px}
@media (max-width:420px){.g-hanout .hn-tot .choice{font-size:1.1rem}}
.g-hanout .fb{margin-inline:auto;width:100%}
@media (min-width:900px){
  .g-hanout .hn-play{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);max-width:none;align-items:start}
}
@media (max-width:600px){
  .g-hanout .hn-stage svg{aspect-ratio:400/222}
  .g-hanout .hn-sign{display:none}
}
@media (max-width:420px){
  .g-hanout .hn-slot{width:58px;height:58px}
  .g-hanout .hn-slot.note{width:88px}
  .g-hanout .hn-drawer.l1 .hn-slot{width:70px;height:70px}
  .g-hanout .hn-m{width:44px;height:44px}
  .g-hanout .hn-m.note{width:70px}
  .g-hanout .hn-drawer{gap:5px;padding:8px}
}
/* level 2: score, combo, records */
.g-hanout .hn-top{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-hanout .hn-top .pill{font-size:.92rem}
.g-hanout .hn-top .pill.hn-rushp{background:#e5483f;color:#fff}
.g-hanout .hn-top .pill.hn-combo{background:#ffc640;color:#1a2042;animation:hnPop .4s cubic-bezier(.2,1.6,.4,1)}
.g-hanout .hn-top .pill.hn-best{background:var(--surface-2);color:var(--muted)}
.g-hanout .hn-pts{display:inline-block;margin-top:2px;font-weight:800;color:var(--good)}
.g-hanout .hn-rec{display:flex;align-items:center;justify-content:center;gap:6px;font-weight:800;font-size:1.15rem;color:#8a5d00;background:#fff3c4;border:2px solid #e6bd4f;border-radius:14px;padding:6px 12px;max-width:520px;margin-inline:auto;width:100%;text-align:center}
.g-hanout .hn-rec .st{width:22px;height:22px;color:#e9a312}
.g-hanout .hn-rec.dim{font-size:1rem;color:var(--muted);background:var(--surface-2);border-color:var(--line)}
/* level 3: a week in the hanout */
.g-hanout .hn-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;max-width:560px;width:100%;margin-inline:auto}
.g-hanout .hn-dchip{display:flex;flex-direction:column;align-items:center;gap:1px;border-radius:12px;background:var(--surface);border:2px solid var(--line);padding:3px 0 2px;font-weight:800;font-size:.8rem;color:var(--muted);line-height:1.1}
.g-hanout .hn-dchip i svg{width:20px;height:20px;display:block}
.g-hanout .hn-dchip.now{border-color:var(--wc);background:var(--ws);color:var(--ink)}
.g-hanout .hn-dchip.up{border-color:var(--good);box-shadow:inset 0 -4px 0 var(--good)}
.g-hanout .hn-dchip.down{border-color:var(--bad);box-shadow:inset 0 -4px 0 var(--bad)}
.g-hanout .hn-stats{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-hanout .hn-stat{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:2px solid var(--line);border-radius:999px;padding:3px 12px}
.g-hanout .hn-stat small{color:var(--muted);font-weight:700;font-size:.82rem;line-height:1.05;display:inline-flex;flex-direction:column}
.g-hanout .hn-stat small i{font-style:normal;font-size:.68rem;font-weight:600;opacity:.85}
.g-hanout .hn-stat b{font-variant-numeric:tabular-nums}
.g-hanout .hn-hearts{display:inline-flex;gap:2px}
.g-hanout .hn-hearts svg{width:16px;height:15px;display:block}
.g-hanout .hn-hearts path{fill:var(--surface-2);stroke:var(--muted);stroke-width:1.6}
.g-hanout .hn-hearts path.on{fill:#e5483f;stroke:#1a2042}
.g-hanout .hn-l3{display:flex;flex-direction:column;gap:12px;width:100%;max-width:720px;margin-inline:auto}
.g-hanout .hn-truck{max-width:none}
.g-hanout .hn-list{display:flex;flex-direction:column;gap:0;padding:4px 12px}
.g-hanout .hn-wide{max-width:720px;width:100%;margin-inline:auto}
.g-hanout .hn-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;grid-template-areas:"ib nm st" "ib inf inf";gap:2px 10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}
.g-hanout .hn-row > .hn-ib{grid-area:ib;align-self:start}
.g-hanout .hn-row > .hn-nm{grid-area:nm;font-size:1.05rem;line-height:1.15;min-width:0}
.g-hanout .hn-row > .hn-step{grid-area:st}
.g-hanout .hn-inf{grid-area:inf;display:flex;flex-direction:column;align-items:flex-start;gap:2px;line-height:1.2;min-width:0}
.g-hanout .hn-inf small{color:var(--muted);font-size:.84rem}
.g-hanout .hn-inf small b{color:var(--ink)}
.g-hanout .ask .sub .hn-evb{width:26px;height:26px;display:inline-block;vertical-align:-7px}
.g-hanout .hn-row:last-child{border-bottom:0}
.g-hanout .hn-ib{width:46px;height:46px;border-radius:12px;background:#fff7e6;display:grid;place-items:center;border:2px solid var(--line)}
.g-hanout .hn-ib.sm{width:30px;height:30px;border-radius:8px;display:inline-grid;vertical-align:middle;margin-inline-end:6px;border-width:1px}
.g-hanout .hn-ico{width:84%;height:84%;display:block}
.g-hanout .hn-rt{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.g-hanout .hn-rt b{font-size:1.05rem}
.g-hanout .hn-rt small{color:var(--muted);font-size:.84rem}
.g-hanout .hn-mul{display:inline-block;font-size:.78rem;font-weight:800;border-radius:8px;padding:0 6px;margin-inline-start:4px;vertical-align:1px}
.g-hanout .hn-mul.up{background:var(--good-soft);color:var(--good)}
.g-hanout .hn-mul.down{background:var(--bad-soft);color:var(--bad)}
.g-hanout .hn-step{display:inline-flex;align-items:center;gap:0;border:2px solid var(--line);border-radius:14px;background:var(--surface-2);overflow:hidden}
.g-hanout .hn-step b{min-width:74px;text-align:center;font-variant-numeric:tabular-nums;font-size:1rem;padding:0 2px;white-space:nowrap}
.g-hanout .hn-sb{width:44px;height:44px;border:0;background:var(--surface);color:var(--ink);font-size:1.5rem;font-weight:800;line-height:1;display:grid;place-items:center}
.g-hanout .hn-sb:hover:not(:disabled){background:var(--ws)}
.g-hanout .hn-sb:active:not(:disabled){transform:scale(.92)}
.g-hanout .hn-sb:disabled{opacity:.35;cursor:default}
.g-hanout .hn-pc{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.g-hanout .hn-mood{font-size:.8rem;font-weight:800;border-radius:8px;padding:1px 8px;white-space:nowrap}
.g-hanout .hn-mood.cheap{background:#dff3ff;color:#1b4f9c}
.g-hanout .hn-mood.fair{background:var(--good-soft);color:var(--good)}
.g-hanout .hn-mood.pricey{background:#fff1d6;color:#8a5200}
.g-hanout .hn-mood.high,.g-hanout .hn-mood.loss{background:var(--bad-soft);color:var(--bad)}
.g-hanout .hn-foot{text-align:center;font-weight:700;color:var(--muted)}
.g-hanout .hn-foot b{color:var(--ink)}
.g-hanout .hn-btns{justify-content:center;gap:10px}
.g-hanout .hn-paidc{display:flex;gap:2px;flex:none}
.g-hanout .hn-paidc svg{width:26px;height:26px;display:block}
.g-hanout .hn-rep{display:flex;flex-direction:column;gap:12px;width:100%;max-width:720px;margin-inline:auto}
.g-hanout .hn-tablep{padding:8px 10px;overflow:hidden}
.g-hanout .hn-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.g-hanout .hn-table th,.g-hanout .hn-table td{padding:5px 4px;text-align:end;border-bottom:1px solid var(--line);font-size:.95rem}
.g-hanout .hn-table thead th{color:var(--muted);font-size:.82rem;font-weight:800}
.g-hanout .hn-table th[scope=row],.g-hanout .hn-table thead th:first-child{text-align:start;font-weight:800;white-space:nowrap}
.g-hanout .hn-table tr:last-child th,.g-hanout .hn-table tr:last-child td{border-bottom:0}
.g-hanout .hn-miss{color:var(--bad);font-weight:800;font-size:.85rem;white-space:nowrap}
.g-hanout .hn-sum{display:flex;flex-direction:column;gap:4px;padding:12px 14px}
.g-hanout .hn-line{display:flex;justify-content:space-between;gap:10px;font-weight:700}
.g-hanout .hn-line b{font-variant-numeric:tabular-nums;white-space:nowrap}
.g-hanout .hn-line.big{font-size:1.3rem;border-top:2px solid var(--line);padding-top:6px;margin-top:2px}
.g-hanout .hn-line.big.pos b{color:var(--good)}
.g-hanout .hn-line.big.neg b{color:var(--bad)}
.g-hanout .hn-trust{font-weight:800;font-size:.95rem}
.g-hanout .hn-trust.up{color:var(--good)}
.g-hanout .hn-trust.down{color:var(--bad)}
.g-hanout .hn-notes,.g-hanout .hn-kpis{display:flex;flex-wrap:wrap;gap:6px}
.g-hanout .hn-notes .chip{white-space:normal;line-height:1.25;padding:3px 10px}
.g-hanout .chip.warn{background:#fff1d6;color:#8a5200}
.g-hanout .hn-chartp{display:flex;flex-direction:column;gap:4px;padding:10px 10px 4px}
.g-hanout .hn-ct{font-size:.95rem;color:var(--muted)}
.g-hanout .hn-chart{width:100%;height:auto;display:block}
.g-hanout .hn-bar.pos path{fill:var(--good)}
.g-hanout .hn-bar.neg path{fill:var(--bad)}
.g-hanout .hn-cv{fill:var(--ink)}
.g-hanout .hn-cl{fill:var(--muted)}
.g-hanout .hn-zero{stroke:var(--muted);stroke-width:1.5;opacity:.6}
.g-hanout .hn-tips{margin:0;padding:10px 14px 10px 30px;display:flex;flex-direction:column;gap:4px;color:var(--muted);font-size:.92rem;line-height:1.3}
.g-hanout .hn-tips b{color:var(--good)}
@media (min-width:900px){
  .g-hanout .hn-l3{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);grid-template-areas:"truck side" "tips side";grid-template-rows:auto 1fr;max-width:none;align-items:start}
  .g-hanout .hn-l3 > .hn-truck{grid-area:truck}.g-hanout .hn-l3 > .hn-side{grid-area:side}.g-hanout .hn-l3 > .hn-tips{grid-area:tips}
  .g-hanout .hn-rep{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);max-width:none;align-items:start}
}
@media (max-width:480px){
  .g-hanout .hn-row{grid-template-columns:40px minmax(0,1fr) auto;gap:2px 8px;padding:7px 0}
  .g-hanout .hn-ib{width:40px;height:40px}
  .g-hanout .hn-step b{min-width:64px;font-size:.95rem}
  .g-hanout .hn-list{padding:2px 10px}
  .g-hanout .hn-dchip{font-size:.72rem}
  .g-hanout .hn-table th,.g-hanout .hn-table td{font-size:.88rem;padding:5px 2px}
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .g-hanout .hn-ib{background:#3a3016}
  :root:not([data-theme="light"]) .g-hanout .hn-mood.cheap{background:#16304f;color:#9cc8ff}
  :root:not([data-theme="light"]) .g-hanout .hn-mood.pricey,:root:not([data-theme="light"]) .g-hanout .chip.warn{background:#3a2c12;color:#ffd38a}
  :root:not([data-theme="light"]) .g-hanout .hn-rec{background:#3a3016;color:#ffd76a;border-color:#a8811f}
  :root:not([data-theme="light"]) .g-hanout .hn-rec.dim{background:var(--surface-2);color:var(--muted);border-color:var(--line)}
}
:root[data-theme="dark"] .g-hanout .hn-ib{background:#3a3016}
:root[data-theme="dark"] .g-hanout .hn-mood.cheap{background:#16304f;color:#9cc8ff}
:root[data-theme="dark"] .g-hanout .hn-mood.pricey,:root[data-theme="dark"] .g-hanout .chip.warn{background:#3a2c12;color:#ffd38a}
:root[data-theme="dark"] .g-hanout .hn-rec{background:#3a3016;color:#ffd76a;border-color:#a8811f}
:root[data-theme="dark"] .g-hanout .hn-rec.dim{background:var(--surface-2);color:var(--muted);border-color:var(--line)}
/* dark mode: the world's soft color is light, so text boxes get a deeper tint */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .g-hanout .ask,:root:not([data-theme="light"]) .g-hanout .fact{background:color-mix(in srgb,var(--wc) 32%,var(--surface))}
  :root:not([data-theme="light"]) .g-hanout .ask .ar{color:#cdbbff}
}
:root[data-theme="dark"] .g-hanout .ask,:root[data-theme="dark"] .g-hanout .fact{background:color-mix(in srgb,var(--wc) 32%,var(--surface))}
:root[data-theme="dark"] .g-hanout .ask .ar{color:#cdbbff}

/* Argan Cooperative */
.g-argan .ar-play{display:flex;flex-direction:column;gap:12px;width:100%;max-width:720px;margin-inline:auto}
.g-argan .ar-side{display:flex;flex-direction:column;gap:10px;min-width:0}
.g-argan .ar-stage{max-width:none}
.g-argan .ar-path{display:flex;gap:4px;justify-content:center;flex-wrap:wrap;max-width:720px;margin-inline:auto}
.g-argan .ar-dot{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--surface);border:2px dashed var(--line);overflow:hidden;flex:none}
.g-argan .ar-dot b{font-size:.85rem;color:var(--muted)}
.g-argan .ar-dot.now{border:3px solid var(--wc);background:var(--ws)}
.g-argan .ar-dot.now b{color:var(--wc)}
.g-argan .ar-dot.on{border:2px solid var(--good);background:#fff7e6}
.g-argan .ar-dot svg{width:120%;height:auto;display:block}
.g-argan .ar-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.g-argan .ar-cards.n4{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-argan .ar-cards.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-argan .ar-card{display:flex;flex-direction:column;align-items:center;gap:4px;border:3px solid var(--line);background:var(--surface);border-radius:16px;padding:6px;font-weight:800;line-height:1.15;color:var(--ink);min-width:0;text-align:center}
.g-argan .ar-card:hover:not(:disabled){border-color:var(--wc)}
.g-argan .ar-card .cart{display:block;width:100%;border-radius:10px;background:#fff7e6;overflow:hidden}
.g-argan .ar-card .cart svg{display:block;width:100%;height:auto}
.g-argan .ar-card .ct{font-size:.98rem}
.g-argan .ar-card.no{border-color:var(--bad);background:var(--bad-soft);opacity:.55;animation:arShake .4s ease}
@keyframes arShake{25%{transform:translateX(-5px)}50%{transform:translateX(5px)}75%{transform:translateX(-3px)}}
.g-argan .ar-crackbtn{padding:0;cursor:pointer;display:block}
.g-argan .ar-tapbtn{align-self:center;font-size:1.35rem;padding:16px 30px}
.g-argan .ar-hit2{animation:arHit .28s ease}
@keyframes arHit{50%{transform:translateY(16px)}}
.g-argan .ar-fall{animation:arFall 2.4s ease-in infinite}
@keyframes arFall{0%,20%{transform:translateY(-14px);opacity:0}35%{opacity:1}85%{transform:translateY(22px);opacity:1}100%{transform:translateY(22px);opacity:0}}
.g-argan .ar-spin{animation:arSpin 6s linear infinite;transform-box:fill-box;transform-origin:center}
@keyframes arSpin{to{transform:rotate(360deg)}}
.g-argan .ar-hit{animation:arHit 1s ease-in-out infinite}
.g-argan .ar-flame{animation:arFlick .5s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 100%}
@keyframes arFlick{to{transform:scaleY(1.15) scaleX(.94)}}
.g-argan .ar-steam{animation:arSteam 2s ease-in-out infinite}
@keyframes arSteam{0%{transform:translateY(6px);opacity:0}50%{opacity:.9}100%{transform:translateY(-8px);opacity:0}}
.g-argan .ar-turn{animation:arTurn 1.4s ease-in-out infinite alternate}
@keyframes arTurn{from{transform:translateX(-50px)}to{transform:translateX(0)}}
.g-argan .ar-drip,.g-argan .ar-drop{animation:arDrop 1.3s ease-in infinite}
@keyframes arDrop{0%{transform:translateY(-6px);opacity:0}30%{opacity:1}100%{transform:translateY(10px);opacity:0}}
.g-argan .ar-squish{animation:arSquish 1s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 100%}
@keyframes arSquish{to{transform:scaleY(.6)}}
.g-argan .ar-pour{animation:arPour .6s linear infinite}
@keyframes arPour{to{stroke-dashoffset:-11}}
.g-argan .ar-share{display:flex;flex-direction:column;gap:12px;width:100%;max-width:720px;margin-inline:auto}
.g-argan .ar-basket{position:relative;max-width:300px;width:100%;margin-inline:auto}
.g-argan .ar-basket svg{display:block;width:100%;height:auto}
.g-argan .ar-basket .pill{position:absolute;bottom:-6px;inset-inline-end:-6px}
.g-argan .ar-women{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.g-argan .ar-woman{display:flex;flex-direction:column;align-items:center;gap:2px;border:3px solid var(--line);background:var(--surface);border-radius:18px;padding:8px 4px;color:var(--ink);font-weight:800;min-width:0}
.g-argan .ar-woman:hover:not(:disabled){border-color:var(--wc)}
.g-argan .ar-woman:disabled{cursor:default}
.g-argan .ar-woman.got{border-color:var(--good)}
.g-argan .ar-bust{width:76px;height:76px;border-radius:50%;background:var(--ws);overflow:hidden;display:block}
.g-argan .ar-bust svg{width:100%;height:100%;display:block}
.g-argan .ar-purse{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;min-height:30px;align-items:center}
.g-argan .ar-purse svg{width:28px;height:28px}
.g-argan .ar-purse i{font-style:normal;color:var(--muted)}
.g-argan .ar-wait{color:var(--bad);font-weight:700}
.g-argan .fb{margin-inline:auto;width:100%}
@media (min-width:900px){
  .g-argan .ar-play{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);max-width:none;align-items:start}
  .g-argan .ar-path{max-width:none}
}
@media (max-width:760px){
  .g-argan .ar-women{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-argan .ar-cards .ct{font-size:.9rem}
}
/* level 2 seasons */
.g-argan .ar-top{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-argan .ar-top .pill.ar-bestp{background:var(--surface-2);color:var(--muted)}
.g-argan .ar-news{display:grid;grid-template-columns:52px minmax(0,1fr);gap:10px;align-items:center;background:#fff3c4;color:#1a2042;border:2px solid #e6bd4f;border-radius:16px;padding:8px 12px;max-width:720px;width:100%;margin-inline:auto}
.g-argan .ar-news .ar-ni svg{width:52px;height:52px;display:block}
.g-argan .ar-news b{display:block;font-size:1.05rem}
.g-argan .ar-news span{font-weight:600;line-height:1.3}
.g-argan .ar-pcards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.g-argan .ar-pcard{display:flex;flex-direction:column;align-items:center;gap:2px;border:3px solid var(--line);background:var(--surface);border-radius:16px;padding:8px 4px;color:var(--ink);font-weight:800;min-width:0;text-align:center}
.g-argan .ar-pcard:hover{border-color:var(--wc)}
.g-argan .ar-pcard .cart svg{width:64px;height:64px;display:block}
.g-argan .ar-pcard .ar{font-size:.9rem}
.g-argan .ar-lv{padding:12px 4px;gap:4px}
.g-argan .ar-pp{font-size:1.3rem;font-variant-numeric:tabular-nums}
.g-argan .ar-lv small{color:var(--muted);font-weight:700}
.g-argan .ar-verdict{font-weight:800;border-radius:12px;padding:6px 12px;text-align:center;display:flex;align-items:center;justify-content:center;gap:8px;max-width:720px;width:100%;margin-inline:auto}
.g-argan .ar-verdict svg{width:30px;height:30px;flex:none}
.g-argan .ar-verdict.ok{background:var(--good-soft);color:var(--good)}
.g-argan .ar-verdict.no{background:#fff1d6;color:#8a5200}
.g-argan .ar-res{padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.g-argan .ar-tbl{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.g-argan .ar-tbl th,.g-argan .ar-tbl td{padding:4px 3px;text-align:end;border-bottom:1px solid var(--line);font-size:.92rem}
.g-argan .ar-tbl thead th{font-size:.78rem;color:var(--muted);font-weight:800}
.g-argan .ar-tbl th[scope=row],.g-argan .ar-tbl thead th:first-child{text-align:start;white-space:nowrap}
.g-argan .ar-left{color:#b5651d;font-weight:800}
.g-argan .ar-sum{display:flex;flex-direction:column;gap:2px;font-weight:700}
.g-argan .ar-sum span{display:flex;justify-content:space-between;gap:10px}
.g-argan .ar-sum b{font-variant-numeric:tabular-nums;white-space:nowrap}
.g-argan .ar-sum .big{font-size:1.2rem;border-top:2px solid var(--line);padding-top:4px;margin-top:2px}
.g-argan .ar-sum .big b{color:var(--good)}
/* level 3: the cooperative */
.g-argan .ar-seasons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;max-width:560px;width:100%;margin-inline:auto}
.g-argan .ar-sc{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0;overflow:hidden;border:2px solid var(--line);background:var(--surface);border-radius:12px;padding:3px 2px;font-weight:800;font-size:.85rem;line-height:1.15;color:var(--muted)}
.g-argan .ar-sc small{font-size:.72rem;font-weight:700;text-align:center;white-space:nowrap}
.g-argan .ar-sc.now{border-color:var(--wc);background:var(--ws);color:var(--ink)}
.g-argan .ar-sc.up{border-color:var(--good);box-shadow:inset 0 -4px 0 var(--good)}
.g-argan .ar-sc.down{border-color:var(--bad);box-shadow:inset 0 -4px 0 var(--bad)}
.g-argan .ar-head{display:flex;flex-direction:column;gap:8px;padding:8px 12px;max-width:720px;width:100%;margin-inline:auto}
.g-argan .ar-wrow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.g-argan .ar-wrow small{color:var(--muted);font-weight:700;margin-inline-end:auto}
.g-argan .ar-ws{display:flex}
.g-argan .ar-wf{width:34px;height:34px;border-radius:50%;overflow:hidden;background:var(--ws);border:2px solid var(--surface);margin-inline-start:-6px}
.g-argan .ar-wf:first-child{margin-inline-start:0}
.g-argan .ar-wf svg{width:100%;height:100%;display:block}
.g-argan .ar-funds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.g-argan .ar-fund{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:6px;align-items:center}
.g-argan .ar-fi svg{width:30px;height:30px;display:block}
.g-argan .ar-fund small{display:block;font-size:.76rem;color:var(--muted);font-weight:700;line-height:1.1}
.g-argan .ar-fbar{display:block;height:9px;border-radius:5px;background:var(--surface-2);overflow:hidden;margin-top:2px}
.g-argan .ar-fbar i{display:block;height:100%;background:var(--good);border-radius:5px;transition:width .5s}
.g-argan .ar-fund b{font-size:.78rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.g-argan .ar-step{display:inline-flex;align-items:center;border:2px solid var(--line);border-radius:14px;background:var(--surface-2);overflow:hidden}
.g-argan .ar-step b{min-width:62px;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.g-argan .ar-sb{width:44px;height:44px;border:0;background:var(--surface);color:var(--ink);font-size:1.5rem;font-weight:800;display:grid;place-items:center}
.g-argan .ar-sb:disabled{opacity:.35;cursor:default}
.g-argan .ar-sb:hover:not(:disabled){background:var(--ws)}
.g-argan .ar-plan{display:flex;flex-direction:column;gap:0;padding:4px 12px;max-width:720px;width:100%;margin-inline:auto}
.g-argan .ar-prow{display:grid;grid-template-columns:48px minmax(0,1fr) auto;grid-template-areas:"pi pt st" "lv lv lv";gap:6px 10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.g-argan .ar-pi{grid-area:pi}.g-argan .ar-pi svg{width:48px;height:48px;display:block}
.g-argan .ar-pt{grid-area:pt;display:flex;flex-direction:column;min-width:0;line-height:1.2}
.g-argan .ar-pt b{font-size:1.05rem}
.g-argan .ar-pt .ar{font-size:.9rem;line-height:1.3}
.g-argan .ar-pt small{color:var(--muted);font-size:.84rem}
.g-argan .ar-prow > .ar-step{grid-area:st}
.g-argan .ar-lvs{grid-area:lv;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.g-argan .ar-lvb{display:flex;flex-direction:column;align-items:center;border:2px solid var(--line);background:var(--surface);border-radius:12px;padding:5px 2px;font-weight:800;color:var(--ink);min-height:44px;line-height:1.15}
.g-argan .ar-lvb small{font-size:.76rem;color:var(--muted);font-weight:700}
.g-argan .ar-lvb.on{border-color:var(--wc);background:var(--ws)}
.g-argan .ar-mul{display:inline-block;font-size:.76rem;border-radius:8px;padding:0 6px;vertical-align:2px}
.g-argan .ar-mul.up{background:var(--good-soft);color:var(--good)}
.g-argan .ar-mul.down{background:var(--bad-soft);color:var(--bad)}
.g-argan .ar-pfoot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;padding:8px 0 4px;font-weight:700;color:var(--muted)}
.g-argan .ar-pfoot b{color:var(--ink)}
.g-argan .ar-pay{display:flex;flex-direction:column;gap:8px;padding:12px;max-width:720px;width:100%;margin-inline:auto}
.g-argan .ar-rate{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 12px;font-weight:800}
.g-argan .ar-fairtag{border-radius:999px;padding:2px 12px;font-weight:800}
.g-argan .ar-fairtag.ok{background:var(--good-soft);color:var(--good)}
.g-argan .ar-fairtag.no{background:var(--bad-soft);color:var(--bad)}
.g-argan .ar-wcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:6px}
.g-argan .ar-wcard{display:flex;flex-direction:column;align-items:center;gap:1px;border:2px solid var(--line);border-radius:14px;padding:6px 2px;background:var(--surface);line-height:1.15}
.g-argan .ar-wcard .ar-bust{width:48px;height:48px}
.g-argan .ar-wcard small{color:var(--muted);font-weight:700}
.g-argan .ar-wpay{font-weight:800;color:var(--good);font-variant-numeric:tabular-nums}
.g-argan .ar-split{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;font-weight:800}
.g-argan .ar-split .ar-lvb{padding:6px 12px;min-width:92px}
.g-argan .ar-rec{display:flex;align-items:center;justify-content:center;gap:6px;font-weight:800;font-size:1.1rem;color:#8a5d00;background:#fff3c4;border:2px solid #e6bd4f;border-radius:14px;padding:6px 12px;max-width:560px;width:100%;margin-inline:auto;text-align:center}
.g-argan .ar-rec .st{width:22px;height:22px;color:#e9a312;flex:none}
.g-argan .ar-rec.dim{font-size:.98rem;color:var(--muted);background:var(--surface-2);border-color:var(--line)}
.g-argan .ar-final{display:flex;flex-direction:column;gap:12px;width:100%;max-width:720px;margin-inline:auto}
.g-argan .ar-chartp{display:flex;flex-direction:column;gap:4px;padding:10px 10px 4px}
.g-argan .ar-ct{font-size:.95rem;color:var(--muted)}
.g-argan .ar-chart{width:100%;height:auto;display:block}
.g-argan .ar-bar.pos rect{fill:var(--good)}.g-argan .ar-bar.neg rect{fill:var(--bad)}
.g-argan .ar-cv{fill:var(--ink)}.g-argan .ar-cl{fill:var(--muted)}
.g-argan .ar-zero{stroke:var(--muted);stroke-width:1.5;opacity:.6}
.g-argan .ar-rain{animation:arRain .8s linear infinite}
@keyframes arRain{from{transform:translateY(-6px)}to{transform:translateY(8px)}}
@media (min-width:900px){
  .g-argan .ar-final{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);max-width:none;align-items:start}
  .g-argan .ar-head,.g-argan .ar-plan,.g-argan .ar-pay,.g-argan .ar-news{max-width:900px}
}
@media (max-width:480px){
  .g-argan .ar-funds{grid-template-columns:minmax(0,1fr)}
  .g-argan .ar-prow{grid-template-columns:40px minmax(0,1fr) auto;gap:6px 8px}
  .g-argan .ar-pi svg{width:40px;height:40px}
  .g-argan .ar-pcard .cart svg{width:52px;height:52px}
  .g-argan .ar-tbl th,.g-argan .ar-tbl td{font-size:.84rem;padding:4px 2px}
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .g-argan .ar-news{background:#3a3016;color:#fff3d0;border-color:#a8811f}
  :root:not([data-theme="light"]) .g-argan .ar-verdict.no{background:#3a2c12;color:#ffd38a}
  :root:not([data-theme="light"]) .g-argan .ar-rec{background:#3a3016;color:#ffd76a;border-color:#a8811f}
  :root:not([data-theme="light"]) .g-argan .ar-rec.dim{background:var(--surface-2);color:var(--muted);border-color:var(--line)}
}
:root[data-theme="dark"] .g-argan .ar-news{background:#3a3016;color:#fff3d0;border-color:#a8811f}
:root[data-theme="dark"] .g-argan .ar-verdict.no{background:#3a2c12;color:#ffd38a}
:root[data-theme="dark"] .g-argan .ar-rec{background:#3a3016;color:#ffd76a;border-color:#a8811f}
:root[data-theme="dark"] .g-argan .ar-rec.dim{background:var(--surface-2);color:var(--muted);border-color:var(--line)}
/* dark mode: the world's soft color is light, so text boxes get a deeper tint */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .g-argan .ask,:root:not([data-theme="light"]) .g-argan .fact{background:color-mix(in srgb,var(--wc) 32%,var(--surface))}
  :root:not([data-theme="light"]) .g-argan .ask .ar{color:#cdbbff}
}
:root[data-theme="dark"] .g-argan .ask,:root[data-theme="dark"] .g-argan .fact{background:color-mix(in srgb,var(--wc) 32%,var(--surface))}
:root[data-theme="dark"] .g-argan .ask .ar{color:#cdbbff}

/* Carpet Weaver */
.g-carpet{--tint:color-mix(in srgb,var(--wc) 14%,var(--surface))}
.g-carpet .ask{background:var(--tint)}
.g-carpet .fact.tint{background:var(--tint)}
.g-carpet .cp-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:640px;width:100%;margin-inline:auto}
.g-carpet .cp-card{display:flex;flex-direction:column;align-items:center;gap:6px;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:18px;padding:10px;min-width:0}
.g-carpet .cp-card:hover{border-color:var(--wc)}
.g-carpet .cp-card svg{width:100%;max-width:150px;height:auto;display:block}
.g-carpet .cp-card b{font-size:1rem;line-height:1.2;text-align:center}
.g-carpet .cp-dyeplay{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;max-width:860px;width:100%;margin-inline:auto}
.g-carpet .cp-prev{display:flex;gap:14px;align-items:center;justify-content:center;background:var(--tint);border-radius:18px;padding:10px}
.g-carpet .cp-prev svg{width:120px;height:auto;display:block}
.g-carpet .cp-slots{display:flex;flex-direction:column;gap:6px}
.g-carpet .cp-slots span{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--muted);border:2px solid transparent;border-radius:12px;padding:3px 8px}
.g-carpet .cp-slots span.on{border-color:var(--wc);color:var(--ink);background:var(--surface)}
.g-carpet .cp-slots i,.g-carpet .cp-sw{display:inline-block;width:22px;height:22px;border-radius:6px;border:2px dashed #9aa0ac;vertical-align:-5px}
.g-carpet .cp-slots i[style*="#"],.g-carpet .cp-sw{border:2px solid #1a2042}
.g-carpet .cp-pots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.g-carpet .cp-pot{display:flex;flex-direction:column;align-items:center;gap:1px;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:16px;padding:6px 4px;min-width:0;line-height:1.15}
.g-carpet .cp-pot:hover{border-color:var(--wc)}
.g-carpet .cp-pot svg{width:56px;height:56px;display:block}
.g-carpet .cp-pot b{font-size:.86rem;text-align:center}
.g-carpet .cp-pot .ar{font-size:.8rem}
.g-carpet .cp-order{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;max-width:860px;width:100%;margin-inline:auto}
.g-carpet .cp-chart{display:flex;flex-direction:column;align-items:center;gap:6px;background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:10px}
.g-carpet .cp-chart svg{width:150px;height:auto;display:block}
.g-carpet .cp-chart small{color:var(--muted);font-weight:700}
.g-carpet .cp-dq{display:flex;flex-direction:column;gap:10px}
.g-carpet .cp-qq{font-weight:800;font-size:1.15rem;text-align:center}
.g-carpet .cp-sw{width:30px;height:30px;border-radius:8px;vertical-align:-8px;margin-inline-start:6px}
.g-carpet .cp-done{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-carpet .cp-done span{display:inline-flex;align-items:center;gap:5px;font-weight:700;font-size:.9rem;background:var(--surface-2);border-radius:999px;padding:2px 10px 2px 4px;color:var(--muted)}
.g-carpet .cp-done span.ok{background:var(--good-soft);color:var(--good)}
.g-carpet .cp-done span.now{outline:2px solid var(--wc)}
.g-carpet .cp-done i{width:18px;height:18px;border-radius:50%;border:2px solid #1a2042;display:inline-block}
.g-carpet .cp-msg{text-align:center;font-weight:700;color:var(--good)}
.g-carpet .cp-msg.bad{color:var(--bad)}
/* the loom */
.g-carpet .cp-hud{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center}
.g-carpet .cp-hud .chip{font-variant-numeric:tabular-nums}
.g-carpet .cp-hud .cp-bad b{color:var(--bad)}
.g-carpet .cp-weave{display:flex;flex-direction:column;gap:10px;max-width:980px;width:100%;margin-inline:auto}
.g-carpet .cp-stage{max-width:520px;background:#ecd0a4}
.g-carpet .cp-stage > svg{display:block;width:100%;height:auto}
.g-carpet .cp-flash{position:absolute;left:50%;top:10px;transform:translateX(-50%);margin:0;background:#1a2042;color:#fff;border-radius:999px;padding:3px 14px;font-weight:800;opacity:0;pointer-events:none;line-height:1.4;white-space:nowrap}
.g-carpet .cp-flash.show{animation:cpFlash 1s ease-out}
@keyframes cpFlash{0%{opacity:0;transform:translate(-50%,6px)}15%{opacity:1;transform:translate(-50%,0)}80%{opacity:1}100%{opacity:0}}
.g-carpet .cp-paused{position:absolute;inset:0;display:grid;place-items:center;background:rgba(26,32,66,.45);color:#fff;font-weight:800;font-size:1.6rem;line-height:1}
.g-carpet .cp-ctl{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:stretch}
.g-carpet .cp-ctl.one{justify-content:center}
.g-carpet .cp-tie,.g-carpet .cp-beat{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:3px solid #1a2042;border-radius:20px;padding:10px 26px;font-weight:800;font-size:1.3rem;color:#fff;background:var(--wc);box-shadow:0 5px 0 #1a2042;min-width:150px;min-height:58px}
.g-carpet .cp-tie svg,.g-carpet .cp-beat svg{width:34px;height:34px}
.g-carpet .cp-tie:active,.g-carpet .cp-beat:active{transform:translateY(3px);box-shadow:0 2px 0 #1a2042}
.g-carpet .cp-beat{background:#7d8594}
.g-carpet .cp-beat.on{background:#e0a526;color:#1a2042;animation:cpGlow .5s ease-in-out infinite alternate}
@keyframes cpGlow{to{transform:scale(1.05)}}
.g-carpet .cp-yarns{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.g-carpet .cp-yarn{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:16px;padding:6px 8px;min-width:70px;min-height:58px;font-weight:700;font-size:.85rem;line-height:1.1}
.g-carpet .cp-yarn i{width:30px;height:30px;border-radius:50%;background:var(--c);border:2.5px solid #1a2042;box-shadow:inset 4px 4px 0 -1px rgba(255,255,255,.3)}
.g-carpet .cp-yarn b{position:absolute;top:2px;inset-inline-start:6px;font-size:.75rem;color:var(--muted)}
.g-carpet .cp-yarn.on{border-color:var(--wc);background:var(--tint);box-shadow:0 0 0 3px var(--wc) inset;transform:translateY(-3px)}
.g-carpet .cp-next{display:flex;justify-content:center;align-items:center;gap:8px;font-weight:700;color:var(--muted)}
.g-carpet .cp-next span{display:inline-flex;gap:4px}
.g-carpet .cp-next i{width:24px;height:24px;border-radius:6px;border:2px solid #1a2042;display:inline-block}
.g-carpet .cp-next i.now{width:32px;height:32px;box-shadow:0 0 0 3px #ffc640}
@media (min-width:900px){
  .g-carpet .cp-weave{display:grid;grid-template-columns:minmax(0,520px) minmax(0,300px);justify-content:center;gap:20px;align-items:center}
  .g-carpet .cp-weave .cp-ctl{flex-direction:column;align-items:stretch}
  .g-carpet .cp-weave .cp-yarns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-carpet .cp-dyeplay,.g-carpet .cp-order{grid-template-columns:240px minmax(0,1fr);align-items:start}
  .g-carpet .cp-prev{flex-direction:column}
  .g-carpet .cp-prev svg{width:170px}
}
/* the souk and the buyers */
.g-carpet .cp-souk{max-width:640px;background:#ffe9c4}
.g-carpet .cp-souk > svg{display:block;width:100%;height:auto}
.g-carpet .cp-sway{transform-box:fill-box;transform-origin:50% 0;animation:cpSway 3s ease-in-out infinite alternate}
@keyframes cpSway{from{transform:rotate(-1deg)}to{transform:rotate(1deg)}}
.g-carpet .cp-buyers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:680px;width:100%;margin-inline:auto}
.g-carpet .cp-buyers.one{grid-template-columns:minmax(0,1fr);max-width:420px}
.g-carpet .cp-buyer{display:grid;grid-template-columns:70px minmax(0,1fr);gap:8px;align-items:start;text-align:start;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:18px;padding:8px;min-width:0}
.g-carpet button.cp-buyer:hover:not(:disabled){border-color:var(--wc)}
.g-carpet .cp-buyer .bust{width:70px;height:70px;border-radius:50%;background:var(--tint)}
.g-carpet .cp-buyer b{font-size:1.05rem}
.g-carpet .cp-buyer p{font-size:.95rem;line-height:1.3;margin:2px 0}
.g-carpet .cp-buyer.chosen{border-color:var(--good);background:var(--good-soft)}
.g-carpet .cp-buyer.dim{opacity:.6}
.g-carpet .cp-price{display:inline-block;margin-top:4px;background:#ffc640;color:#1a2042;border:2px solid #1a2042;border-radius:999px;padding:1px 10px;font-weight:800}
.g-carpet .cp-ok{color:var(--good);font-weight:800}.g-carpet .cp-no{color:var(--bad);font-weight:800}
.g-carpet .cp-stats{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-carpet .cp-gal{max-width:860px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:10px}
.g-carpet .cp-ghead{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.g-carpet .cp-glist{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:10px}
.g-carpet .cp-glist figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}
.g-carpet .cp-glist svg{width:100%;max-width:90px;height:auto;display:block;filter:drop-shadow(0 3px 3px rgba(10,16,48,.2))}
.g-carpet .cp-glist figcaption{font-size:.78rem;font-weight:800;text-align:center;line-height:1.15;display:flex;flex-direction:column}
.g-carpet .cp-glist small{color:var(--muted);font-weight:700}
.g-carpet .cp-glist .fresh{animation:cpPop .6s cubic-bezier(.2,1.6,.4,1) .2s backwards}
@keyframes cpPop{from{transform:scale(.3) rotate(-10deg);opacity:0}}
/* level 3: the brief, the design, the math, the bill */
.g-carpet .cp-brief{max-width:680px;width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:10px}
.g-carpet .cp-bhead{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px;align-items:center}
.g-carpet .cp-bhead .bust{width:80px;height:80px;border-radius:50%;background:var(--tint)}
.g-carpet .cp-brief ul{margin:0;padding-inline-start:20px;line-height:1.5}
.g-carpet .cp-costs{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:.92rem}
.g-carpet .cp-costs span{display:inline-flex;align-items:center;gap:4px}
.g-carpet .cp-costs i{width:14px;height:14px;border-radius:4px;border:1.5px solid #1a2042;display:inline-block}
.g-carpet .cp-design{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;max-width:980px;width:100%;margin-inline:auto}
.g-carpet .cp-dleft,.g-carpet .cp-dright{display:flex;flex-direction:column;gap:10px;min-width:0}
.g-carpet .cp-grid{display:grid;grid-template-columns:repeat(var(--q),minmax(0,1fr));gap:2px;background:#7a4a21;border:3px solid #1a2042;border-radius:10px;padding:3px;max-width:420px;width:100%;margin-inline:auto}
.g-carpet .cp-cell{aspect-ratio:1;border:0;border-radius:3px;min-width:0;padding:0;cursor:pointer}
.g-carpet .cp-cell:focus-visible{outline:3px solid #ffc640;outline-offset:-3px}
.g-carpet .cp-dpal{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.g-carpet .cp-dw{display:flex;align-items:center;gap:6px;border:2px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:5px 6px;min-width:0;min-height:46px;text-align:start}
.g-carpet .cp-dw i{flex:none;width:24px;height:24px;border-radius:50%;background:var(--c);border:2px solid #1a2042}
.g-carpet .cp-dw span{display:flex;flex-direction:column;font-size:.8rem;font-weight:700;line-height:1.1;min-width:0}
.g-carpet .cp-dw small{color:var(--muted);font-weight:700}
.g-carpet .cp-dw.on{border-color:var(--wc);box-shadow:0 0 0 2px var(--wc) inset;background:var(--tint)}
.g-carpet .cp-stamps{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center}
.g-carpet .cp-stamps > span{font-weight:700;color:var(--muted);font-size:.92rem}
.g-carpet .cp-full{display:flex;justify-content:center;background:var(--tint);border-radius:16px;padding:10px}
.g-carpet .cp-full svg{width:180px;height:auto;display:block}
.g-carpet .cp-cost{text-align:center;font-size:1.1rem}
.g-carpet .cp-cost b{font-size:1.4rem;color:var(--good)}
.g-carpet .cp-cost.over b{color:var(--bad)}
.g-carpet .cp-cost small{display:block;color:var(--muted);font-weight:700}
.g-carpet .cp-checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:.95rem}
.g-carpet .cp-checks li{background:var(--surface-2);border-radius:10px;padding:4px 10px;color:var(--muted);font-weight:600}
.g-carpet .cp-checks li.ok{background:var(--good-soft);color:var(--good)}
.g-carpet .cp-mq{max-width:680px;width:100%;margin-inline:auto;font-size:1.15rem;font-weight:700;line-height:1.45}
.g-carpet .cp-bill{max-width:520px;width:100%;margin-inline:auto;display:flex;flex-direction:column;align-items:center;gap:8px}
.g-carpet .cp-bill table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.g-carpet .cp-bill th{text-align:start;font-weight:600;padding:5px 4px;border-bottom:1px solid var(--line)}
.g-carpet .cp-bill td{text-align:end;font-weight:800;padding:5px 4px;border-bottom:1px solid var(--line);white-space:nowrap}
.g-carpet .cp-bill tr.tot th,.g-carpet .cp-bill tr.tot td{font-size:1.12rem;font-weight:800;color:var(--wc)}
@media (min-width:900px){.g-carpet .cp-design{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:start}}
@media (max-width:560px){.g-carpet .cp-pots{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.g-carpet .cp-pot svg{width:46px;height:46px}.g-carpet .cp-pot b{font-size:.74rem}
  .g-carpet .cp-buyers{grid-template-columns:minmax(0,1fr)}.g-carpet .cp-cards{gap:8px}.g-carpet .cp-dpal{grid-template-columns:repeat(2,minmax(0,1fr))}.g-carpet .cp-tie,.g-carpet .cp-beat{min-width:130px;padding:10px 18px}}
@media (prefers-reduced-motion: reduce){.g-carpet *{animation:none!important}}
.g-carpet .cp-stage > svg{max-height:calc(100vh - 250px);width:auto;max-width:100%;margin-inline:auto}
@media (max-width:899px){
  .g-carpet .cp-stage > svg{max-height:max(300px,calc(100vh - 330px))}
  .g-carpet .cp-weave{gap:6px}
  .g-carpet .cp-yarn{min-width:62px;padding:4px 6px}
  .g-carpet .cp-beat{min-height:52px}
}
.g-carpet .cp-dtop{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:10px;align-items:start}
.g-carpet .cp-dtop .cp-grid{max-width:none}
.g-carpet .cp-full{flex-direction:column;align-items:center;gap:6px}
.g-carpet .cp-full > span{font-weight:800;font-size:.85rem;color:var(--muted)}
.g-carpet .cp-full svg{width:100%;max-width:180px}
.g-carpet .cp-full .cp-cost{font-size:.9rem}
.g-carpet .cp-full .cp-cost b{font-size:1.15rem;display:block}
.g-carpet .cp-atl{max-width:640px;background:#e8f4fb}
.g-carpet .cp-atl > svg{display:block;width:100%;height:auto}
.g-carpet .cp-pot.hint{border-color:#ffc640;box-shadow:0 0 0 3px #ffc640;animation:cpGlow .6s ease-in-out infinite alternate}

/* ===== My riad: the reward world (every selector starts with .rd- or .riadview) ===== */
.riadview{display:flex;flex-direction:column;gap:14px;--rd-gold:#d9a62e;--rd-soft:color-mix(in srgb,#e6bd4f 20%,var(--surface))}
.rd-head{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:center;justify-content:space-between}
.rd-hl{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1 1 240px}
.rd-hl .h2 .ar{font-size:1.05rem}
.rd-rate{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rd-rate .stars{font-size:1.45rem}
.rd-bar{height:12px;border-radius:6px;background:var(--surface-2);overflow:hidden;max-width:360px;width:100%}
.rd-bar i{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#ffc640,#e9a312);transition:width .6s ease}
.rd-wallet{display:flex;flex-direction:column;align-items:center;background:var(--rd-soft);border:2px solid var(--rd-gold);border-radius:18px;padding:8px 18px}
.rd-coins{display:inline-flex;align-items:center;gap:6px;font-size:1.9rem;font-weight:800;line-height:1.1;font-variant-numeric:tabular-nums}
.rd-coins > span{font-size:1rem}
.rd-wallet small{color:var(--muted);font-size:.82rem;font-weight:600}
.rd-says .bub{font-size:1.05rem}
.rd-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.rd-skyseg button{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:5px 12px}
.rd-skyseg svg{width:20px;height:20px;flex:none}
.rd-main{display:flex;flex-direction:column;gap:14px}
.rd-stage{position:sticky;top:6px;z-index:2;border-radius:var(--radius);overflow:hidden;border:3px solid var(--rd-gold);background:#d6f0fb;line-height:0;box-shadow:0 6px 18px rgba(10,16,48,.2);touch-action:manipulation;user-select:none;-webkit-user-select:none}
.rd-svg{display:block;width:100%;height:auto}
@media (max-height:620px){.rd-stage{position:relative;top:auto}}
@media (min-width:900px){.rd-main{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:start}.rd-stage{top:12px}}

/* things in the picture */
.rd-spark,.rd-it,.rd-lock,.rd-sun{cursor:pointer}
.rd-spark .rd-halo{transform-box:fill-box;transform-origin:center;animation:rdpulse 1.6s ease-in-out infinite}
@keyframes rdpulse{50%{transform:scale(1.7);opacity:.06}}
.rd-lock > circle:nth-child(2){transform-box:fill-box;transform-origin:center;animation:rdbeat 2.4s ease-in-out infinite}
@keyframes rdbeat{50%{transform:scale(1.12)}}
.rd-it{transform-box:fill-box;transform-origin:50% 100%}
.rd-it.rd-poke{animation:rdwig .6s ease}
@keyframes rdwig{25%{transform:rotate(-4deg) scale(1.05)}50%{transform:rotate(3deg)}75%{transform:rotate(-2deg)}}
.rd-it.rd-new{animation:rdnew .75s cubic-bezier(.2,1.6,.4,1) both}
@keyframes rdnew{0%{transform:scale(.2);opacity:0}100%{transform:none;opacity:1}}
.rd-s-fount.rd-poke,.rd-s-lamp.rd-poke,.rd-s-nest.rd-poke,.rd-s-flag.rd-poke,.rd-s-bird.rd-poke{animation:none}
.rd-splash circle{opacity:0}
.rd-s-fount.rd-poke .rd-splash circle{animation:rdsplash .9s ease-out both}
@keyframes rdsplash{0%{opacity:1;transform:translate(0,0)}100%{opacity:0;transform:translate(var(--dx),var(--dy))}}
.rd-s-cat.rd-poke{animation:rdjump .55s ease}
@keyframes rdjump{40%{transform:translateY(-12px) rotate(-6deg)}}
.rd-s-lamp{transform-origin:50% 0}
.rd-s-lamp.rd-poke{animation:rdflick 1s ease}
@keyframes rdflick{10%,50%,90%{opacity:.35}30%,70%{opacity:1}20%{transform:rotate(8deg)}60%{transform:rotate(-6deg)}}
.rd-s-door.rd-poke{animation:rdknock .5s ease}
@keyframes rdknock{20%,60%{transform:scaleX(.94)}40%,80%{transform:none}}
.rd-canary{transform-box:fill-box;transform-origin:50% 100%;animation:rdhop 3.2s ease-in-out infinite}
@keyframes rdhop{0%,78%,100%{transform:none}84%,94%{transform:translateY(-2.5px)}89%{transform:none}}
.rd-s-bird.rd-poke .rd-canary{animation:rdhop2 .22s ease 4}
@keyframes rdhop2{50%{transform:translateY(-4px) rotate(-8deg)}}
.rd-stork,.rd-stork2{transform-box:fill-box;transform-origin:50% 100%;animation:rdbob 4.2s ease-in-out infinite}
.rd-stork2{animation-delay:-2s}
@keyframes rdbob{0%,70%,100%{transform:none}80%{transform:rotate(-14deg)}90%{transform:rotate(4deg)}}
.rd-s-nest.rd-poke .rd-stork,.rd-s-nest.rd-poke .rd-stork2{animation:rdclap .18s ease 5}
@keyframes rdclap{50%{transform:rotate(-18deg)}}
.rd-wave{transform-box:fill-box;transform-origin:0 50%;animation:rdwave 2.2s ease-in-out infinite}
@keyframes rdwave{50%{transform:skewY(5deg) scaleX(.93)}}
.rd-s-flag.rd-poke .rd-wave{animation:rdwave .35s ease-in-out 3}
.rd-tail{transform-box:fill-box;transform-origin:0 100%;animation:rdtail 2.6s ease-in-out infinite}
@keyframes rdtail{50%{transform:rotate(16deg)}}
.rd-tort{animation:rdwalk 14s ease-in-out infinite}
@keyframes rdwalk{0%,100%{transform:translateX(0)}50%{transform:translateX(12px)}}
.rd-flow{stroke-dasharray:5 4;animation:rdflow .7s linear infinite}
@keyframes rdflow{to{stroke-dashoffset:-9}}
.rd-drops circle{animation:rddrop 1.1s ease-in-out infinite alternate}
.rd-drops circle:nth-child(2n){animation-delay:-.5s}
@keyframes rddrop{to{transform:translateY(-4px);opacity:.4}}
.rd-ring{transform-box:fill-box;transform-origin:center;animation:rdring 2.6s ease-out infinite}
.rd-ring2{animation-delay:-1.3s}
@keyframes rdring{0%{transform:scale(.3);opacity:1}100%{transform:scale(2);opacity:0}}
.rd-ripple{animation:rdrip 3s ease-in-out infinite alternate}
@keyframes rdrip{to{transform:translateX(3px)}}
.rd-steam path{animation:rdsteam 2.6s ease-in-out infinite}
.rd-steam path:nth-child(2){animation-delay:1.1s}
@keyframes rdsteam{0%{opacity:0;transform:translateY(6px)}40%{opacity:.9}100%{opacity:0;transform:translateY(-10px)}}
.rd-s-cook.rd-poke .rd-steam path{animation-duration:.6s}
.rd-coal circle{animation:rdcoal 1.3s ease-in-out infinite alternate}
.rd-coal circle:nth-child(2n){animation-delay:-.6s}
@keyframes rdcoal{to{fill:#ffd43b}}
.rd-kite{transform-box:fill-box;transform-origin:50% 100%;animation:rdkite 3.4s ease-in-out infinite}
@keyframes rdkite{50%{transform:rotate(7deg) translate(3px,-3px)}}
.rd-sway{transform-box:fill-box;transform-origin:50% 100%;animation:rdsway 5s ease-in-out infinite}
@keyframes rdsway{50%{transform:rotate(1.6deg)}}
.rd-cloud{animation:rdcloud 26s ease-in-out infinite alternate}
@keyframes rdcloud{to{transform:translateX(36px)}}
.rd-rays{transform-box:fill-box;transform-origin:center;animation:rdspin 24s linear infinite}
@keyframes rdspin{to{transform:rotate(360deg)}}
.rd-stars polygon{animation:rdtw 2.4s ease-in-out infinite}
.rd-stars polygon:nth-child(3n){animation-delay:-.8s}
.rd-stars polygon:nth-child(3n+1){animation-delay:-1.6s}
@keyframes rdtw{50%{opacity:.25}}
.rd-glow{animation:rdglow 2.6s ease-in-out infinite}
@keyframes rdglow{50%{opacity:.7}}
.rd-shoot{stroke-dasharray:24 300;stroke-dashoffset:24;opacity:0;animation:rdshoot 6s ease-in infinite}
@keyframes rdshoot{0%,82%{stroke-dashoffset:24;opacity:0}85%{opacity:1}100%{stroke-dashoffset:-110;opacity:0}}
.rd-fruit{transform-box:fill-box;transform-origin:50% 0}
.rd-s-tree.rd-poke .rd-fruit{animation:rdfruit .5s ease 2}
@keyframes rdfruit{50%{transform:translateY(2px)}}

/* the souk */
.rd-shop{position:relative;display:flex;flex-direction:column;gap:12px;min-width:0}
.rd-shophead{display:flex;flex-direction:column;gap:2px}
.rd-shophead .ar{font-size:1.05rem}
.rd-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;background:var(--surface-2);padding:5px;border-radius:16px}
.rd-gbtn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:0;background:transparent;border-radius:12px;padding:8px 4px;font-weight:700;color:var(--muted);min-height:44px;min-width:0;font-size:.98rem;line-height:1.1}
.rd-gbtn[aria-selected="true"]{background:var(--surface);color:var(--ink);box-shadow:0 2px 0 var(--line)}
.rd-lk{width:14px;height:14px;flex:none}
.rd-lk rect{fill:currentColor}.rd-lk path{stroke:currentColor}.rd-lk circle{fill:var(--surface-2)}
.rd-dot{position:absolute;top:5px;right:6px;width:10px;height:10px;border-radius:50%;background:#ffc640;box-shadow:0 0 0 2px var(--surface);animation:rdbeat 1.8s ease-in-out infinite}
.rd-slots{display:flex;flex-wrap:wrap;gap:6px}
.rd-chip{position:relative;border:2px solid var(--line);background:var(--surface);border-radius:999px;padding:6px 14px;font-weight:700;min-height:44px;color:var(--ink)}
.rd-chip[aria-pressed="true"]{border-color:var(--rd-gold);background:var(--rd-soft)}
.rd-chip .rd-dot{top:-3px;right:-3px}
.rd-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(136px,1fr));gap:10px}
.rd-card{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:4px;border:3px solid var(--line);background:var(--surface);border-radius:16px;padding:6px 6px 8px;text-align:center;color:var(--ink);min-width:0}
.rd-card:hover{border-color:var(--rd-gold)}
.rd-card.can{border-color:color-mix(in srgb,#e6bd4f 70%,var(--line))}
.rd-card.on{border-color:var(--good);background:color-mix(in srgb,var(--good) 8%,var(--surface))}
.rd-card.cant .rd-prev{filter:saturate(.55);opacity:.75}
.rd-prev{display:block;border-radius:11px;overflow:hidden;line-height:0}
.rd-prev svg{display:block;width:100%;height:auto}
.rd-prev.rd-av{width:74%;margin-inline:auto;border-radius:50%;aspect-ratio:1}
.rd-prev.rd-av svg{height:100%}
.rd-nm{font-size:.98rem;line-height:1.15;font-weight:800;overflow-wrap:anywhere}
.rd-tag{display:inline-flex;align-items:center;justify-content:center;gap:4px;font-weight:800;font-size:.88rem;border-radius:999px;padding:2px 9px;align-self:center;line-height:1.35}
.rd-tag.price{background:var(--rd-soft);color:var(--ink)}
.rd-tag.on{background:var(--good-soft);color:var(--good)}
.rd-tag.own{background:var(--surface-2);color:var(--muted)}
.rd-need{color:var(--muted);font-weight:700;font-size:.8rem;line-height:1.2}
.rd-unlock{display:grid;grid-template-columns:minmax(0,150px) minmax(0,1fr);gap:12px;align-items:center;background:var(--rd-soft);border:2px dashed var(--rd-gold);border-radius:16px;padding:10px}
.rd-unlock .btn{align-self:flex-start}
.rd-me{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:center}
.rd-meav{display:block;width:96px;height:96px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 3px var(--rd-gold)}
.rd-meav svg{width:100%;height:100%;display:block}
.rd-meav.rd-new{animation:rdnew .7s cubic-bezier(.2,1.6,.4,1)}

/* buying: the question, and the coins that fly away */
.rd-sheetbg{position:fixed;inset:0;background:rgba(10,16,48,.45);z-index:8}
.rd-sheet{position:fixed;z-index:9;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:min(540px,calc(100vw - 32px));background:var(--surface);color:var(--ink);border-radius:22px;border:3px solid var(--rd-gold);padding:14px;display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;align-items:center;box-shadow:0 16px 40px rgba(10,16,48,.45);animation:rdup .35s cubic-bezier(.2,1.3,.4,1) both}
@keyframes rdup{0%{transform:translate(-50%,40px);opacity:0}100%{transform:translate(-50%,0);opacity:1}}
.rd-sheetbody{display:flex;flex-direction:column;gap:6px;min-width:0}
.rd-sheetbody .row .btn{flex:1 1 auto}
.rd-sheet .rd-prev.rd-av{width:100%}
.rd-burst{position:absolute;width:0;height:0;z-index:4;pointer-events:none;line-height:1}
.rd-fly{position:absolute;left:-12px;top:-12px;width:24px;height:24px;animation:rdfly 1.1s cubic-bezier(.2,.8,.3,1) both}
.rd-fly .coin{width:24px;height:24px;display:block}
@keyframes rdfly{0%{transform:translate(0,0) scale(.4);opacity:0}20%{opacity:1}100%{transform:translate(var(--dx),var(--dy)) scale(1);opacity:0}}
.rd-minus{position:absolute;left:0;top:-26px;white-space:nowrap;font-weight:800;font-size:1.15rem;color:#8a5d00;background:#fff6d9;border:2px solid #e6bd4f;border-radius:999px;padding:1px 10px;animation:rdminus 1.5s ease-out both}
@keyframes rdminus{0%{opacity:0;transform:translate(-50%,8px)}15%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,-44px)}}
.rd-burst > i{position:absolute;left:-30px;top:-30px;width:60px;height:60px;border-radius:50%;border:4px solid #ffc640;animation:rdbring .8s ease-out both}
@keyframes rdbring{0%{transform:scale(.2);opacity:1}100%{transform:scale(1.8);opacity:0}}

/* the card on the games page */
.rd-teaser{--rd-gold:#d9a62e;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);border-radius:24px;overflow:hidden;border:3px solid var(--rd-gold);background:color-mix(in srgb,#e6bd4f 16%,var(--surface))}
.rd-tart{border:0;padding:0;background:#d6f0fb;line-height:0;display:block;min-width:0}
.rd-tart svg{display:block;width:100%;height:auto}
.rd-tbody{display:flex;flex-direction:column;gap:6px;padding:14px 18px;align-items:flex-start;justify-content:center;min-width:0}
.rd-kick{font-weight:800;text-transform:uppercase;letter-spacing:.06em;font-size:.82rem;color:var(--muted)}
.rd-tt{font-size:1.35rem;font-weight:800;line-height:1.15}
.rd-tbody .stars{font-size:1.2rem}
.rd-tline{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap;font-weight:600;line-height:1.35}
@media (max-width:760px){
  .rd-teaser{grid-template-columns:minmax(0,.95fr) minmax(0,1fr);align-items:center}
  .rd-tart{background:transparent;padding:10px 0 10px 10px}
  .rd-tart svg{border-radius:12px;border:2px solid var(--rd-gold)}
  .rd-tbody{padding:10px 12px 12px;gap:4px}
  .rd-tt{font-size:1.08rem}
  .rd-tline{font-size:.88rem;line-height:1.3}
  .rd-tbody .stars{font-size:1rem}
  .rd-tbody .btn{padding:8px 14px;font-size:.98rem}
  .rd-coins{font-size:1.6rem}
  .rd-wallet{padding:6px 14px}
  .rd-unlock{grid-template-columns:minmax(0,1fr)}
  .rd-unlock > .rd-prev{max-width:220px}
  .rd-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .rd-sheet{grid-template-columns:84px minmax(0,1fr);gap:10px;padding:12px}
  .rd-skyseg button span{font-size:.9rem}
}
.riadview.rd-dress .rd-stage{position:relative;top:auto}
@media (min-width:900px){.rd-tools [data-act="rd_souk"]{display:none}}
.rd-cl,.rd-cr{transform-box:fill-box;transform-origin:0 50%;animation:rdcl 1.3s cubic-bezier(.5,0,.7,1) .25s both}
.rd-cr{transform-origin:100% 50%}
@keyframes rdcl{to{transform:scaleX(.06);opacity:0}}
.rd-cv{animation:rdcv 1.2s ease .3s both}
@keyframes rdcv{to{transform:translateY(-16px);opacity:0}}


/* ===== Play with Haydar: the website =====
   Palette: Majorelle #2448c6, saffron #ffc640, mint tea #12a06a, flag red #c1272d, plaster #f7efe2, ink #1a2042.
   One loud thing: the living rooftop at the top. Everything below is calm: plain surfaces, arched windows for game art. */
:root{--maj:#2448c6;--saf:#ffc640;--saf-d:#b88708;--mint:#12a06a;--plaster:#f7efe2;
  --zp-dark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.16' stroke-width='2'%3E%3Cpath d='M28 6l6 14 14 6-14 6-6 14-6-14-14-6 14-6z'/%3E%3Crect x='18' y='18' width='20' height='20' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
  --zp-light:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%231a2042' stroke-opacity='.08' stroke-width='2'%3E%3Cpath d='M28 6l6 14 14 6-14 6-6 14-6-14-14-6 14-6z'/%3E%3Crect x='18' y='18' width='20' height='20' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E")}
html{overflow-x:clip}
body{margin:0}
img{max-width:100%}
.app{max-width:1180px}
.tabs{display:none}

/* ---------- top bar ---------- */
.bar{position:sticky;top:0;z-index:30;gap:14px;flex-wrap:nowrap;min-height:64px;padding-block:8px;margin-block:-12px 0}
.bar::before{content:"";position:absolute;inset:0 calc(50% - 50vw);background:color-mix(in srgb,var(--bg) 86%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:2px solid color-mix(in srgb,var(--line) 70%,transparent);z-index:-1}
.logo{border:0;background:none;padding:0;display:flex;align-items:center;gap:10px;color:var(--ink);flex:none}
.logo-mark{width:46px;height:46px;border-radius:15px;background:#c1272d;display:grid;place-items:center;box-shadow:0 3px 0 #8f1c21;transform:rotate(-4deg)}
.logo-mark svg{width:34px;height:34px}
.logo-t{display:flex;flex-direction:column;align-items:flex-start;line-height:.9}
.logo-a{font-size:.82rem;font-weight:700;color:var(--muted)}
.logo-b{font-size:1.6rem;font-weight:800;letter-spacing:-.01em}
.topnav{display:flex;gap:4px;margin-inline:auto}
.nv{border:0;background:transparent;color:var(--muted);font-weight:800;font-size:1rem;display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:14px}
.nv svg{width:22px;height:22px}
.nv:hover{color:var(--ink);background:var(--surface-2)}
.nv[aria-current="page"]{color:var(--ink);background:var(--surface);box-shadow:inset 0 -4px 0 var(--saf),0 0 0 2px var(--line)}
.bar-end{display:flex;align-items:center;gap:8px;flex:none;margin-inline-start:auto}
.topnav:not(:empty) + .bar-end{margin-inline-start:0}
.pill{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:2px solid var(--line);border-radius:999px;padding:4px 12px 4px 6px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--ink)}
.pill svg{width:24px;height:24px}
.pill .coin{width:22px;height:22px}
.streakpill:not(.lit) svg{filter:grayscale(1);opacity:.55}
.coinpill.pop{animation:pop .5s ease}
.avbtn{display:flex;align-items:center;gap:8px;border:2px solid var(--line);background:var(--surface);border-radius:999px;padding:3px 14px 3px 3px;font-weight:800;color:var(--ink);max-width:220px;min-width:0}
.avbtn .av{width:38px;height:38px;border-radius:50%;flex:none}
.avbtn .kname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sndbtn{width:44px;height:44px;justify-content:center;padding:0;border-radius:50%}
.sndbtn svg{width:20px;height:20px}

/* ---------- the living rooftop ---------- */
.hero2{position:relative;width:100vw;margin-inline:calc(50% - 50vw);height:clamp(500px,66vh,640px);overflow:hidden;isolation:isolate;margin-top:-16px;background:#8fd0f7}
.hs-svg{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:-1}
.hero2-in{position:relative;max-width:1180px;margin-inline:auto;padding:clamp(28px,7vh,72px) 24px 0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.hero2-hi{margin:0;display:inline-block;background:rgba(255,255,255,.9);color:var(--ink);font-weight:800;border-radius:999px;padding:4px 14px;box-shadow:0 3px 0 rgba(26,32,66,.25)}
.wordmark{margin:0;display:flex;flex-direction:column;line-height:.86;letter-spacing:-.01em}
.wordmark span{color:#fff;-webkit-text-stroke:.16em #1a2042;paint-order:stroke fill;text-shadow:0 .09em 0 #1a2042}
.wm-a{font-size:clamp(1.8rem,4vw,3rem);font-weight:800;margin-inline-start:.08em}
.wm-b{font-size:clamp(4.4rem,12vw,9rem);font-weight:800;color:var(--saf)!important;transform:rotate(-2deg);transform-origin:left bottom}
.hero2-sub{margin:4px 0 0;color:#fff;background:rgba(16,22,58,.62);border-radius:14px;padding:6px 14px;font-size:clamp(1rem,1.6vw,1.2rem);font-weight:700;max-width:34ch}
.hero2-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.hero2-cta .btn{font-size:1.25rem;padding:14px 26px;border-radius:20px}
.hero2-cta .btn svg{width:24px;height:24px}
.cta-main{background:var(--saf)!important;color:#1a2042!important;box-shadow:0 6px 0 var(--saf-d)!important}
.cta-main:active{box-shadow:0 2px 0 var(--saf-d)!important}
.cta-alt{background:#fff!important;color:#1a2042!important;box-shadow:0 6px 0 rgba(26,32,66,.35)!important}
.todbtn{position:absolute;top:14px;right:16px;display:flex;align-items:center;gap:6px;border:0;border-radius:999px;background:rgba(255,255,255,.88);color:var(--ink);font-weight:800;font-size:.9rem;padding:6px 12px 6px 8px;box-shadow:0 3px 0 rgba(26,32,66,.25)}
.todbtn svg{width:20px;height:20px;color:#e9a312}
.tod-night .todbtn svg{color:#5b63c9}
.hs-say{font:800 38px var(--font-ui);fill:#1a2042}
.hs-cloud{animation:hsdrift linear infinite}
@keyframes hsdrift{from{transform:translateX(-340px)}to{transform:translateX(1900px)}}
.hs-birdpath{animation:hsfly linear infinite}
@keyframes hsfly{from{transform:translateX(1720px)}to{transform:translateX(-160px)}}
.hs-wing{animation:hsflap .45s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:center}
@keyframes hsflap{to{transform:scaleY(.35)}}
.hs-tw{animation:hstw 2.4s ease-in-out infinite alternate}
@keyframes hstw{from{opacity:.25}to{opacity:1}}
.hs-glow{animation:hsglow 4s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:center}
@keyframes hsglow{to{transform:scale(1.08);opacity:.28}}
.hs-lant{animation:hsswing 3.4s ease-in-out infinite alternate}
@keyframes hsswing{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}
.hs-haydar{animation:hsbob 3.4s ease-in-out infinite}
@keyframes hsbob{50%{transform:translateY(-7px)}}
.hero2.intro .hs-pop{animation:hspop .9s cubic-bezier(.3,1.5,.5,1) .25s both}
@keyframes hspop{from{transform:translateY(240px)}to{transform:none}}
.hs-bub{transform-box:fill-box;transform-origin:30% 100%}
.hero2.intro .hs-bub{animation:hsbub .45s cubic-bezier(.3,1.6,.5,1) 1.05s both}
.hs-bub.pop{animation:hsbub .4s cubic-bezier(.3,1.6,.5,1)}
@keyframes hsbub{from{transform:scale(.2);opacity:0}to{transform:none;opacity:1}}
.hero2.intro .hero2-in > *{animation:hsin .6s ease both}
.hero2.intro .wordmark{animation-delay:.08s}.hero2.intro .hero2-sub{animation-delay:.16s}.hero2.intro .hero2-cta{animation-delay:.24s}
@keyframes hsin{from{opacity:0;transform:translateY(14px)}}

/* ---------- today: gift, streak, missions ---------- */
.hubs{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) minmax(0,1.3fr);gap:14px;margin-top:-8px}
.hub{background:var(--surface);border:2px solid var(--line);border-radius:24px;padding:14px 16px;display:flex;flex-direction:column;gap:8px;min-width:0}
.hub h3{margin:0;font-size:1.15rem;font-weight:800;display:flex;align-items:center;gap:6px;line-height:1.2}
.hub h3 svg{width:26px;height:26px;flex:none}
.hub p{margin:0;color:var(--muted);font-size:.95rem;line-height:1.3}
.hub-gift{align-items:center;text-align:center}
.hub-gift.ready{border-color:var(--saf);background:color-mix(in srgb,var(--saf) 12%,var(--surface))}
.chest{border:0;background:none;padding:0;width:132px;height:110px;cursor:pointer}
.chest:disabled{cursor:default;opacity:.85}
.chest svg{width:100%;height:100%;overflow:visible}
.hub-gift.ready .chest svg{animation:chwig 3s ease-in-out infinite;transform-origin:50% 90%}
@keyframes chwig{0%,72%,100%{transform:none}76%{transform:rotate(-6deg)}80%{transform:rotate(6deg)}84%{transform:rotate(-4deg)}88%{transform:rotate(3deg)}}
.ch-spark{animation:hstw 1.2s ease-in-out infinite alternate}
.chest.opening .ch-lid{transform:translateY(-34px) rotate(-14deg);transition:transform .5s cubic-bezier(.3,1.6,.5,1);transform-box:fill-box;transform-origin:left bottom}
.chest.opening svg{animation:none}
[data-cd]{font-variant-numeric:tabular-nums;color:var(--ink)}
.sdays{list-style:none;margin:2px 0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.sdays li{display:flex;flex-direction:column;align-items:center;gap:2px}
.sdays li span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);border:2px solid var(--line)}
.sdays li span svg{width:18px;height:18px}
.sdays li .coin{width:20px;height:20px;filter:grayscale(.8);opacity:.6}
.sdays li.got span{background:#ff7a1a;border-color:#c85a0a;color:#fff}
.sdays li.next span{border-color:#ff7a1a;animation:nextpulse 1.6s ease-in-out infinite}
.sdays li.next .coin{filter:none;opacity:1}
@keyframes nextpulse{50%{box-shadow:0 0 0 5px color-mix(in srgb,#ff7a1a 25%,transparent)}}
.sdays small{font-size:.72rem;font-weight:800;color:var(--muted)}
.mlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.mlist li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center}
.mtick{width:28px;height:28px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;color:#fff}
.mtick svg{width:16px;height:16px}
.mlist li.done .mtick{background:var(--mint);border-color:#0b7a50}
.mlist li.done .mtx b{text-decoration:line-through;color:var(--muted)}
.mtx{display:flex;flex-direction:column;gap:4px;min-width:0}
.mtx b{font-size:.95rem;line-height:1.2}
.mbar{height:8px;border-radius:5px;background:var(--surface-2);overflow:hidden}
.mbar i{display:block;height:100%;border-radius:5px;background:var(--mint)}
.mdh{display:inline-flex;align-items:center;gap:3px;font-weight:800;font-size:.9rem}
.mdh .coin{width:18px;height:18px}
.mbonus{font-weight:700}
.mbonus.got{color:var(--mint)!important;display:flex;align-items:center;gap:4px}
.mbonus svg{width:18px;height:18px}

/* ---------- game of the day + explorer card ---------- */
.duo{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:14px}
.gotd{position:relative;display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;align-items:center;text-align:start;border:0;border-radius:26px;padding:16px 20px 16px 16px;color:#fff;background:var(--zp-dark),linear-gradient(135deg,var(--wc),color-mix(in srgb,var(--wc) 70%,#1a2042));box-shadow:0 6px 0 color-mix(in srgb,var(--wc) 55%,#1a2042);overflow:hidden}
.gotd:hover .gotd-art{transform:rotate(-3deg) scale(1.04)}
.gotd:active{transform:translateY(3px);box-shadow:0 3px 0 color-mix(in srgb,var(--wc) 55%,#1a2042)}
.gotd-art{width:150px;height:170px;border-radius:50% 50% 18px 18px / 42% 42% 18px 18px;background:#fff;display:grid;place-items:center;border:4px solid #1a2042;box-shadow:0 5px 0 rgba(0,0,0,.25);transition:transform .25s}
.gotd-art .gicon{width:104px;height:104px}
.gotd-tx{display:flex;flex-direction:column;gap:4px;min-width:0}
.gotd-k{font-weight:800;font-size:.95rem;color:#ffe08a}
.gotd-tx b{font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.05;font-weight:800}
.gotd-tx small{font-size:1rem;opacity:.92;line-height:1.3}
.gotd-go{margin-top:6px;display:inline-flex;align-items:center;gap:6px;align-self:flex-start;background:var(--saf);color:#1a2042;font-weight:800;border-radius:999px;padding:5px 14px 5px 8px;box-shadow:0 3px 0 var(--saf-d)}
.gotd-go .coin{width:22px;height:22px}
.gotd-go .stars{color:#c97a00}
.excard{display:grid;grid-template-columns:76px minmax(0,1fr);grid-template-rows:auto auto;gap:6px 14px;align-items:center;background:var(--surface);border:2px solid var(--line);border-radius:26px;padding:16px 18px}
.ex-av{grid-row:1;width:76px;height:76px;border-radius:50%;border:3px solid var(--line);padding:0;overflow:hidden;background:none}
.ex-av svg{width:100%;height:100%;display:block}
.ex-main{display:flex;flex-direction:column;gap:3px;min-width:0}
.ex-main p{margin:0}
.ex-name{font-weight:700;color:var(--muted);display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
.ex-rank{font-size:1.5rem;font-weight:800;line-height:1.05}
.ex-bar{height:12px;border-radius:7px;background:var(--surface-2);overflow:hidden;border:2px solid var(--line)}
.ex-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--saf),#ff9f1a)}
.ex-next{font-size:.88rem;color:var(--muted)}
.ex-stats{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:6px 0 0}
.ex-stats div{background:var(--surface-2);border-radius:14px;padding:6px 10px}
.ex-stats dt{font-size:.78rem;font-weight:700;color:var(--muted)}
.ex-stats dd{margin:0;font-size:1.3rem;font-weight:800;line-height:1.1}
.ex-stats small{font-size:.8rem;color:var(--muted);font-weight:700}
.linkbtn{border:0;background:none;padding:0;color:var(--accent);font-weight:800;font-size:.85rem;text-decoration:underline;text-underline-offset:3px}

/* ---------- shelves, doors, game cards ---------- */
.shelf{display:flex;flex-direction:column;gap:10px}
.shelf-h{margin:0;font-size:1.55rem;font-weight:800;line-height:1.1}
.keep-row{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.keep-row .gcard{flex:none;width:150px;scroll-snap-align:start}
.finder{display:flex;flex-direction:column;gap:14px;scroll-margin-top:76px}
.finder-top{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between}
.search{position:relative;flex:1;max-width:420px;min-width:220px}
.search-ic{position:absolute;inset-inline-start:14px;top:50%;transform:translateY(-50%);width:22px;height:22px;color:var(--muted);pointer-events:none}
.search-ic svg{width:22px;height:22px;display:block}
.search input{font:inherit;font-size:1.05rem;width:100%;padding:11px 14px 11px 46px;border-radius:999px;border:2px solid var(--line);background:var(--surface);color:var(--ink);-webkit-appearance:none;appearance:none}
.search input:focus{border-color:var(--maj);outline:none;box-shadow:0 0 0 4px color-mix(in srgb,var(--maj) 18%,transparent)}
.doors{display:grid;grid-template-columns:repeat(7,minmax(104px,1fr));gap:10px;overflow-x:auto;padding:4px 2px 8px;scroll-snap-type:x proximity}
.door{border:0;background:none;padding:0;display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--ink);scroll-snap-align:start;min-width:0}
.door svg{width:86px;height:112px;transition:transform .2s;filter:drop-shadow(0 4px 0 rgba(26,32,66,.18))}
.door:hover svg{transform:translateY(-4px)}
.door b{font-size:.92rem;line-height:1.1;text-align:center}
.door small{font-size:.78rem;font-weight:700;color:var(--muted)}
.lvrow{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center}
.lvlab{font-weight:800}
.wsec{display:flex;flex-direction:column;gap:14px;scroll-margin-top:80px}
.wsec-h{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:14px;align-items:center;color:#fff;border-radius:22px;padding:12px 16px;background:var(--zp-dark),linear-gradient(120deg,var(--wc),color-mix(in srgb,var(--wc) 72%,#1a2042))}
.wsec-h h2{margin:0;font-size:1.5rem;font-weight:800;line-height:1.1;color:#fff}
.wsec-h .ar{color:rgba(255,255,255,.85);font-size:.85em}
.wsec-h p{margin:0;opacity:.9;font-size:.95rem}
.wsec-ic{width:56px;height:56px;border-radius:50%;background:#fff;display:grid;place-items:center;border:3px solid #1a2042}
.wsec-ic svg{width:38px;height:38px}
.wsec-n{background:rgba(255,255,255,.2);border-radius:999px;padding:3px 12px;font-weight:800}
.ggrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(178px,1fr));gap:16px}
.gcard{position:relative;display:flex;flex-direction:column;gap:8px;text-align:start;border:2px solid var(--line);background:var(--surface);border-radius:24px;padding:10px 10px 12px;color:var(--ink);transition:transform .18s ease,border-color .18s,box-shadow .18s;min-width:0}
.gcard:hover{transform:translateY(-5px);border-color:var(--wc);box-shadow:0 10px 0 -3px color-mix(in srgb,var(--wc) 30%,transparent)}
.gcard:active{transform:translateY(-1px)}
.gc-arch{position:relative;display:grid;place-items:center;aspect-ratio:1/1.02;border-radius:50% 50% 16px 16px / 44% 44% 16px 16px;background:var(--zp-light),radial-gradient(circle at 50% 38%,#fff 0,var(--ws) 70%);border:2px solid color-mix(in srgb,var(--wc) 45%,transparent);overflow:visible}
.gc-arch .gicon{width:64%;height:auto;transition:transform .25s ease}
.gcard:hover .gc-arch .gicon{transform:scale(1.07) rotate(-3deg)}
.gc-stamp{position:absolute;right:-8px;bottom:-8px;transform:rotate(-14deg)}
.gc-stamp svg{display:block}
.gc-tag{position:absolute;top:10px;left:50%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:3px;background:var(--saf);color:#1a2042;font-weight:800;font-size:.82rem;border-radius:999px;padding:2px 10px 2px 4px;box-shadow:0 2px 0 var(--saf-d)}
.gc-tag .coin{width:18px;height:18px}
.gc-tx{display:flex;flex-direction:column;gap:2px;padding-inline:4px;min-width:0}
.gc-tx b{font-size:1.06rem;font-weight:800;line-height:1.15}
.gc-tx small{color:var(--muted);font-size:.86rem;line-height:1.25}
.gc-tx .stars{font-size:.95rem;margin-top:2px}
.gcard.mini .gc-tx b{font-size:.95rem}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .gc-arch{--ws:color-mix(in srgb,var(--wc) 30%,var(--surface));background:var(--zp-dark),radial-gradient(circle at 50% 38%,color-mix(in srgb,var(--wc) 45%,var(--surface)) 0,var(--ws) 70%)}}
:root[data-theme="dark"] .gc-arch{--ws:color-mix(in srgb,var(--wc) 30%,var(--surface));background:var(--zp-dark),radial-gradient(circle at 50% 38%,color-mix(in srgb,var(--wc) 45%,var(--surface)) 0,var(--ws) 70%)}
.empty{display:flex;flex-direction:column;gap:8px;align-items:center;text-align:center}

/* ---------- invite band ---------- */
.invite{display:grid;grid-template-columns:150px minmax(0,1fr);gap:20px;align-items:center;border-radius:28px;padding:20px 24px;color:#fff;background:var(--zp-dark),linear-gradient(120deg,var(--maj),#1a2d8a)}
.inv-art .bust{width:150px;height:150px;border-radius:50%;background:#ffe8b0;border:4px solid #1a2042}
.inv-tx h2{margin:0;font-size:clamp(1.5rem,3vw,2rem);font-weight:800;line-height:1.1}
.inv-tx p{margin:6px 0 12px;opacity:.95;max-width:56ch}
.btn.wa{background:#25d366;color:#0b2b18;box-shadow:0 4px 0 #128c4a}
.btn.wa svg{width:22px;height:22px}
.invite .btn.ghost{background:#fff;color:#1a2042;box-shadow:0 4px 0 rgba(0,0,0,.3)}

/* ---------- after a game ---------- */
.rw-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;width:100%;max-width:520px}
.rw-list li{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;align-items:center;background:var(--surface-2);border-radius:14px;padding:6px 12px;text-align:start;animation:hsin .4s ease both}
.rw-list li:nth-child(2){animation-delay:.12s}.rw-list li:nth-child(3){animation-delay:.24s}.rw-list li:nth-child(4){animation-delay:.36s}
.rw-ic svg{width:26px;height:26px}
.rw-list b{display:inline-flex;align-items:center;gap:3px;font-weight:800;color:#8a5d00}
.rw-list .coin{width:20px;height:20px}
.vsres{display:flex;gap:12px;align-items:center;max-width:520px;border-radius:18px;padding:10px 14px;text-align:start;border:2px solid var(--line)}
.vsres.win{background:var(--good-soft);border-color:var(--good)}
.vsres.lose{background:var(--bad-soft);border-color:var(--bad)}
.vsres p{margin:0}
.chalbox{display:flex;flex-direction:column;gap:8px;align-items:center;max-width:560px;width:100%;background:color-mix(in srgb,#25d366 10%,var(--surface));border:2px dashed #25d366;border-radius:20px;padding:12px 14px}
.chalbox p{margin:0}
.chalbox p b{display:block;font-size:1.15rem}
.pm-av{width:64px;height:64px;border-radius:50%;overflow:hidden;flex:none;border:3px solid #1a2042;display:block}
.pm-av svg{width:100%;height:100%;display:block}

/* ---------- modal and flying coins ---------- */
.pmodal{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:16px}
.pm-back{position:absolute;inset:0;background:rgba(10,14,40,.55);opacity:0;transition:opacity .2s}
.pmodal.on .pm-back{opacity:1}
.pm-card{position:relative;width:min(440px,100%);background:var(--surface);color:var(--ink);border-radius:28px;padding:26px 22px 22px;text-align:center;box-shadow:0 20px 60px rgba(10,14,40,.4);transform:scale(.85);opacity:0;transition:transform .3s cubic-bezier(.3,1.5,.5,1),opacity .2s}
.pmodal.on .pm-card{transform:none;opacity:1}
.pm-card h2{margin:6px 0;font-size:1.6rem;font-weight:800;line-height:1.15}
.pm-card p{margin:0 0 14px;color:var(--muted)}
.pm-x{position:absolute;top:10px;right:10px;width:38px;height:38px;border-radius:50%;border:0;background:var(--surface-2);color:var(--ink);display:grid;place-items:center}
.pm-x svg{width:18px;height:18px}
.pm-chest{position:relative;width:180px;margin:0 auto}
.pm-chest svg{width:180px;height:150px}
.pm-dh{position:absolute;left:50%;top:6px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:4px;font-size:2rem;font-weight:800;color:#8a5d00;background:#fff6d9;border:3px solid #e6bd4f;border-radius:999px;padding:2px 14px 2px 6px;animation:hsbub .5s cubic-bezier(.3,1.6,.5,1) .1s both}
.pm-badge .lionb{width:120px;height:120px}
.pm-vs{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:6px}
.pm-vs .pm-av{width:76px;height:76px}
.pm-vsx{font-weight:800;font-size:1.4rem;color:#c1272d}
.pm-name input{font:inherit;font-size:1.2rem;width:100%;padding:12px 14px;border-radius:16px;border:2px solid var(--line);background:var(--bg);color:var(--ink);margin-bottom:12px}
.pm-name .avpick{justify-content:center;margin-bottom:14px}
.pm-name .avpick button{width:52px;height:52px}
.shake{animation:shake .4s}
@keyframes shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.flycoin{position:fixed;z-index:70;width:28px;height:28px;margin:-14px 0 0 -14px;pointer-events:none;animation:coinfly .95s cubic-bezier(.5,0,.6,1) both}
.flycoin .coin{width:28px;height:28px}
@keyframes coinfly{0%{transform:translate(0,0) scale(.6);opacity:0}15%{opacity:1;transform:translate(calc(var(--dx)*.05),-50px) scale(1.15)}100%{transform:translate(var(--dx),var(--dy)) scale(.55);opacity:.7}}

/* ---------- players, result, misc ---------- */
.kid.now{border-color:var(--accent);box-shadow:0 4px 0 color-mix(in srgb,var(--accent) 30%,transparent)}
.btn svg{width:20px;height:20px;flex:none}
.pm-card .btn{font-size:1.15rem}
.status{margin-top:4px}
/* the first picture while the games load */
.splash{position:relative;width:100vw;margin-inline:calc(50% - 50vw);margin-top:-16px;min-height:clamp(420px,60vh,600px);display:grid;place-items:center;text-align:center;color:#fff;background:var(--zp-dark),linear-gradient(160deg,#2448c6,#16206a)}
.splash .sp-head{width:120px;height:120px;border-radius:34px;background:#c1272d;display:grid;place-items:center;margin:0 auto 14px;box-shadow:0 6px 0 #8f1c21;animation:hsbob 1.4s ease-in-out infinite}
.splash .sp-head svg{width:92px;height:92px}
.splash .wordmark{align-items:center}
.splash p{margin:14px 0 0;font-weight:700;opacity:.9}
.seo{padding:24px 0}
.seo h1{font-size:1.8rem;margin:0 0 8px}
.seo h2{font-size:1.25rem;margin:18px 0 6px}
.seo ul{margin:0;padding-inline-start:20px}
.seo li{margin:4px 0}
.seo a{color:var(--accent);font-weight:700}
.sitefoot{margin-top:28px;padding:18px 0 8px;border-top:2px solid var(--line);display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:center;color:var(--muted);font-size:.92rem;text-align:center}
.sitefoot b{color:var(--ink)}

/* ---------- tablets and phones ---------- */
@media (max-width:980px){
  .hubs{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(290px,82%);overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 10px;margin-inline:-16px;padding-inline:16px;scroll-padding-inline:16px}
  .hub{scroll-snap-align:start}
  .duo{grid-template-columns:minmax(0,1fr)}
  .doors{grid-template-columns:repeat(7,104px);margin-inline:-16px;padding-inline:16px}
}
@media (max-width:760px){
  body{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  .topnav{display:none}
  .tabs:not([hidden]){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:40;gap:0;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));border-radius:22px 22px 0 0;background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:2px solid var(--line);box-shadow:0 -6px 20px rgba(26,32,66,.08)}
  .tabs .nv{flex-direction:column;gap:2px;font-size:.82rem;padding:6px 4px;border-radius:14px}
  .tabs .nv svg{width:26px;height:26px}
  .tabs .nv[aria-current="page"]{box-shadow:none;background:color-mix(in srgb,var(--saf) 22%,var(--surface))}
  .bar{gap:8px;min-height:58px}
  .logo-mark{width:40px;height:40px;border-radius:13px}
  .logo-mark svg{width:30px;height:30px}
  .logo-a{font-size:.72rem}
  .logo-b{font-size:1.3rem}
  .bar-end{gap:6px}
  .pill{padding:3px 9px 3px 4px;font-size:.95rem}
  .pill svg,.pill .coin{width:20px;height:20px}
  .avbtn{padding:2px}
  .avbtn .av{width:36px;height:36px}
  .avbtn .kname{display:none}
  .sndbtn{width:40px;height:40px}
  .hero2{height:clamp(600px,84vh,700px)}
  .hs-svg{top:210px;height:calc(100% - 210px)}
  .hero2-in{position:static;padding:20px 18px 0;gap:10px}
  .wm-b{font-size:4.6rem}
  .hero2-cta{position:absolute;left:16px;right:16px;bottom:14px;margin:0;flex-wrap:nowrap;gap:10px}
  .hero2-cta .btn{flex:1 1 0;font-size:1.08rem;padding:12px 10px;min-width:0}
  .todbtn{top:14px;right:14px}
  .gotd{grid-template-columns:96px minmax(0,1fr);gap:14px;padding:14px}
  .gotd-art{width:96px;height:112px;border-width:3px}
  .gotd-art .gicon{width:70px;height:70px}
  .ggrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .gc-tx small{display:none}
  .wsec-h{grid-template-columns:44px minmax(0,1fr) auto;gap:10px;padding:10px 12px}
  .wsec-ic{width:44px;height:44px}
  .wsec-ic svg{width:30px;height:30px}
  .wsec-h h2{font-size:1.2rem}
  .wsec-h p{font-size:.85rem}
  .invite{grid-template-columns:minmax(0,1fr);text-align:center;justify-items:center;padding:18px}
  .inv-art .bust{width:110px;height:110px}
  .invite .row{justify-content:center}
  .search{max-width:none}
}
@media (max-width:400px){
  .logo-a{display:none}
  .streakpill{display:none}
}
@media (prefers-reduced-motion: reduce){
  .hs-cloud,.hs-birdpath,.hs-wing,.hs-tw,.hs-glow,.hs-lant,.hs-haydar,.hero2.intro .hs-pop,.hero2.intro .hs-bub,.hs-bub.pop,.hero2.intro .hero2-in > *,.hub-gift.ready .chest svg,.sdays li.next span,.splash .sp-head{animation:none!important}
  .gcard,.door svg,.gc-arch .gicon{transition:none}
}

/* ===== new game: stork ===== */
.g-stork{--tint:color-mix(in srgb,var(--wc) 14%,var(--surface))}
.g-stork .ask,.g-stork .fact.tint{background:var(--tint)}
.g-stork .sk-stage{max-width:720px;touch-action:none;cursor:pointer;-webkit-touch-callout:none;background:#bfe6ff}
.g-stork .sk-stage.ready{cursor:default}
.g-stork .sk-endstage{max-width:620px;background:#bfe6ff}
.g-stork .sk-mapstage{max-width:470px}
.g-stork .sk-svg{display:block;width:100%;height:auto}
.g-stork .sk-hl{font:800 10.5px var(--font-ui);fill:#1a2042}
.g-stork .sk-bt{font:800 11.5px var(--font-ui);fill:#1a2042}
.g-stork .sk-mt{font:800 13px var(--font-ui);fill:#1a2042}
.g-stork .sk-ms{font:700 11.5px var(--font-ui);fill:#4a5170}
.g-stork .sk-pop{font:800 15px var(--font-ui);paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round;animation:skPop .9s ease-out both}
.g-stork .sk-zz{font:800 20px var(--font-ui);fill:#2448c6;animation:skZz 2.4s ease-in-out infinite}
.g-stork .sk-up{animation:skUp 2.2s linear infinite}
.g-stork .sk-wind{animation:skWind 1s linear infinite}
.g-stork .sk-rain{stroke-dasharray:7 6;animation:skRain .45s linear infinite}
.g-stork .sk-jump{animation:skJump 1.3s ease-in-out infinite}
.g-stork .sk-ring{animation:skRing 1s ease-in-out infinite alternate}
.g-stork .sk-boat{animation:skBob 2.6s ease-in-out infinite}
.g-stork .sk-spot{animation:skRing 1.1s ease-in-out infinite alternate}
.g-stork .sk-cheer{animation:skCheer .6s ease-in-out infinite alternate}
.g-stork .sk-land{animation:skLand .5s ease-out both}
.g-stork .sk-twk{animation:skTwk 1.4s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.g-stork .sk-route{animation:skDash 1.2s linear infinite}
@keyframes skPop{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-22px)}}
@keyframes skUp{0%{opacity:0;transform:translateY(0)}20%{opacity:1}100%{opacity:0;transform:translateY(-120px)}}
@keyframes skWind{from{transform:translateX(0)}to{transform:translateX(-36px)}}
@keyframes skRain{to{stroke-dashoffset:-13}}
@keyframes skJump{0%,60%,100%{transform:translateY(0)}75%{transform:translateY(-7px)}}
@keyframes skRing{from{opacity:.35}to{opacity:1}}
@keyframes skBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes skCheer{from{transform:translateY(0)}to{transform:translateY(-8px)}}
@keyframes skLand{from{transform:translateY(-30px);opacity:.6}to{transform:translateY(0);opacity:1}}
@keyframes skTwk{0%,100%{transform:scale(.6);opacity:.4}50%{transform:scale(1.15);opacity:1}}
@keyframes skZz{0%,100%{transform:translateY(0);opacity:.5}50%{transform:translateY(-6px);opacity:1}}
@keyframes skDash{to{stroke-dashoffset:-24}}
.g-stork .sk-ctl{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:720px;width:100%;margin-inline:auto}
.g-stork .sk-flap{width:min(100%,440px);min-height:74px;border:3px solid #1a2042;border-radius:24px;background:#2448c6;color:#fff;font-weight:800;font-size:1.4rem;display:flex;align-items:center;justify-content:center;gap:12px;box-shadow:0 6px 0 #1a2042;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transition:transform .06s,box-shadow .06s,background .12s;cursor:pointer}
.g-stork .sk-flap svg{width:44px;height:38px;flex:none}
.g-stork .sk-flap.on{transform:translateY(4px);box-shadow:0 2px 0 #1a2042;background:#1636a0}
.g-stork .sk-ctl .hint{max-width:440px}
.g-stork .sk-card{background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:12px 14px;max-width:720px;width:100%;margin-inline:auto;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.g-stork .sk-brief{margin:0;font-weight:700;font-size:1.08rem;line-height:1.35;max-width:560px}
.g-stork .sk-dar{margin:0;display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;color:var(--muted);font-weight:700;font-size:.95rem;line-height:1.2}
.g-stork .sk-dar .ar{font-family:var(--font-ar);font-size:1.45rem;color:var(--wc);line-height:1.2}
.g-stork .sk-go{font-size:1.45rem;padding:13px 48px}
.g-stork .sk-q{margin:0;font-weight:800;font-size:1.15rem;display:flex;align-items:center;gap:8px;justify-content:center;flex-wrap:wrap}
.g-stork .sk-cross{display:grid;gap:8px;width:100%;max-width:560px}
.g-stork .sk-opt{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:10px;text-align:start;border:2px solid var(--line);background:var(--surface-2);color:var(--ink);border-radius:14px;padding:9px 12px;font-weight:700;font-size:1rem;min-height:52px;line-height:1.25;cursor:pointer;font-family:inherit}
.g-stork .sk-opt:hover,.g-stork .sk-opt:focus-visible{border-color:var(--wc)}
.g-stork .sk-ok{width:30px;height:30px;border-radius:50%;background:var(--wc);color:#fff;display:grid;place-items:center;font-weight:800}
.g-stork .sk-chosen{margin:0;font-weight:700;border-radius:12px;padding:6px 12px;line-height:1.3;color:var(--ink)}
.g-stork .sk-chosen.good{background:var(--good-soft);border:2px solid var(--good)}
.g-stork .sk-chosen.bad{background:var(--bad-soft);border:2px solid var(--bad)}
.g-stork .sk-trip{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 6px;max-width:720px;width:100%;margin-inline:auto}
.g-stork .sk-tc{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:2px 10px 2px 4px;font-weight:800;font-size:.9rem;border:2px solid var(--line);background:var(--surface);color:var(--muted);line-height:1.4}
.g-stork .sk-tc i{font-style:normal;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:.75rem;background:var(--surface-2);color:var(--muted)}
.g-stork .sk-tc.ok{background:var(--good-soft);border-color:var(--good);color:var(--ink)}
.g-stork .sk-tc.ok i{background:var(--good);color:#fff}
.g-stork .sk-tc.rest{color:var(--ink)}
.g-stork .sk-tc.rest i{background:#2448c6;color:#fff}
.g-stork .sk-tl{width:12px;height:3px;border-radius:2px;background:var(--line)}
.g-stork .sk-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:620px;width:100%;margin-inline:auto}
.g-stork .sk-stats div{background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:6px 4px;display:flex;flex-direction:column;align-items:center;line-height:1.15}
.g-stork .sk-stats b{font-size:1.4rem;font-weight:800;color:var(--wc)}
.g-stork .sk-stats small{color:var(--muted);font-weight:700;font-size:.8rem;text-align:center}
.g-stork .sk-fact{display:block;margin-top:4px;color:var(--muted);font-weight:600}
@media (prefers-reduced-motion: reduce){.g-stork .sk-up,.g-stork .sk-wind,.g-stork .sk-rain,.g-stork .sk-jump,.g-stork .sk-ring,.g-stork .sk-boat,.g-stork .sk-spot,.g-stork .sk-cheer,.g-stork .sk-land,.g-stork .sk-twk,.g-stork .sk-zz,.g-stork .sk-route,.g-stork .sk-pop{animation:none!important}}
.g-stork .fb{width:100%;max-width:620px;margin-inline:auto}


/* ===== new game: regions ===== */
.g-regions{--tint:color-mix(in srgb,var(--wc) 14%,var(--surface))}
.g-regions .fact.tint{background:var(--tint)}
.g-regions .rg-bar{position:sticky;top:calc(8px + env(safe-area-inset-top,0px));z-index:3;background:var(--tint);color:var(--ink);border-radius:18px;padding:8px 12px;display:flex;flex-direction:column;gap:6px;align-items:center;box-shadow:0 6px 18px rgba(10,16,48,.12);max-width:880px;width:100%;margin-inline:auto}
.g-regions .rg-qq{display:flex;align-items:center;gap:8px;justify-content:center;text-align:center}
.g-regions .rg-qt{font-size:1.2rem;font-weight:800;line-height:1.2}
.g-regions .rg-chips{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;align-items:center}
.g-regions .rg-chips .chip{background:var(--surface);color:var(--ink);font-variant-numeric:tabular-nums}
.g-regions .rg-clock{position:relative;display:inline-flex;align-items:center;min-width:120px;height:26px;border-radius:999px;background:var(--surface);border:2px solid var(--line);overflow:hidden}
.g-regions .rg-clock i{position:absolute;left:0;top:0;bottom:0;background:var(--wc);opacity:.4;transition:width .25s linear}
.g-regions .rg-clock b{position:relative;width:100%;text-align:center;font-size:.9rem;font-variant-numeric:tabular-nums}
.g-regions .rg-play{display:grid;gap:10px;width:100%;max-width:880px;margin-inline:auto;justify-items:center}
.g-regions .rg-stage{max-width:560px;cursor:pointer;touch-action:manipulation}
.g-regions .rg-map{display:block;width:100%;height:auto}
.g-regions .rg-reg{stroke:#1a2042;stroke-width:1.3;stroke-linejoin:round}
.g-regions .rg-reg.soft{opacity:.8}
.g-regions .rg-reg.hl{stroke-width:2.4}
.g-regions .rg-slot.e{fill:#fff;fill-opacity:.55;stroke:#1a2042;stroke-width:1.8;stroke-dasharray:5 4;stroke-linejoin:round}
.g-regions .rg-slot.f{fill:none;stroke:#1a2042;stroke-opacity:.3;stroke-width:1.1;stroke-linejoin:round}
.g-regions .rg-outline{fill:none;stroke:#1a2042;stroke-width:2.5;stroke-linejoin:round;pointer-events:none}
.g-regions .rg-no{fill:#e5483f;fill-opacity:.55;stroke:#c1272d;stroke-width:2.5;stroke-linejoin:round;animation:rgNo 1s ease-out forwards;pointer-events:none}
.g-regions .rg-no.stay{animation:none;fill-opacity:.3}
.g-regions .rg-glow{fill:none;stroke:#ffc640;stroke-width:4.5;stroke-linejoin:round;animation:rgGlow .9s ease-in-out infinite alternate;pointer-events:none}
.g-regions .rg-glow.ok{stroke:#13a35e;stroke-width:4}
.g-regions .rg-cur{fill:#ffc640;fill-opacity:.35;stroke:#ffc640;stroke-width:3;stroke-linejoin:round;pointer-events:none}
.g-regions .rg-snap{animation:rgSnap .55s cubic-bezier(.3,1.6,.5,1) both;transform-box:fill-box;transform-origin:center}
.g-regions .rg-star{fill:#ffc640;stroke:#1a2042;stroke-width:1.6;pointer-events:none}
.g-regions .rg-lab{font:800 12px var(--font-ui);fill:#1a2042;paint-order:stroke;stroke:rgba(255,255,255,.8);stroke-width:3px;stroke-linejoin:round;pointer-events:none}
.g-regions .rg-q{font:800 16px var(--font-ui);fill:#1a2042;opacity:.5;pointer-events:none}
.g-regions .rg-dot{pointer-events:none}
.g-regions .rg-dc{fill:#fff;stroke:#1a2042;stroke-width:2.2}
.g-regions .rg-dot.ok .rg-dc{fill:#2fc77a}
.g-regions .rg-dot.no .rg-dc{fill:#8b93b8}
.g-regions .rg-dot.cur .rg-dc{stroke:#e9a312;stroke-width:4}
.g-regions .rg-dot.bad .rg-dc{fill:#e5483f}
.g-regions .rg-dl{font-size:11.5px}
.g-regions .rg-hay{transform-box:fill-box;transform-origin:50% 100%}
.g-regions .rg-hay.yay{animation:rgJump .6s ease-out}
.g-regions .rg-hay.hmm{animation:rgTilt .7s ease-in-out}
.g-regions .rg-spark circle{animation:rgSpark .8s ease-out forwards}
.g-regions .rg-bub{position:absolute;left:1.5%;top:11%;width:40%;background:#fff;color:#1a2042;border:2.5px solid #1a2042;border-radius:14px;padding:5px 8px;font-weight:700;font-size:clamp(.7rem,2.6vw,.9rem);line-height:1.25;pointer-events:none;box-shadow:0 3px 0 rgba(26,32,66,.22)}
.g-regions .rg-bub::after{content:"";position:absolute;left:16%;bottom:-12px;border:10px solid transparent;border-top-color:#1a2042;border-bottom:0}
.g-regions .rg-bub.yay{border-color:#0f8a4e;background:#ecfbf2}
.g-regions .rg-bub.yay::after{border-top-color:#0f8a4e}
.g-regions .rg-bub.hmm{border-color:#c1272d;background:#fff1f1}
.g-regions .rg-bub.hmm::after{border-top-color:#c1272d}
.g-regions .rg-tray{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;width:100%;max-width:560px}
.g-regions .rg-pc{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:1px;border:2px solid var(--line);background:var(--surface);border-radius:14px;padding:4px 2px 3px;min-height:66px;min-width:0;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;font-family:inherit;color:var(--ink);transition:transform .12s,box-shadow .12s,opacity .12s}
.g-regions .rg-pc svg{width:100%;max-width:56px;aspect-ratio:1/1;height:auto;display:block}
.g-regions .rg-pc span{font-size:.62rem;font-weight:800;line-height:1.05;text-align:center;overflow-wrap:anywhere;max-width:100%}
.g-regions .rg-pc:hover{border-color:var(--wc)}
.g-regions .rg-pc.on{border-color:var(--wc);box-shadow:0 0 0 3px #ffc640;transform:translateY(-3px)}
.g-regions .rg-pc.no{animation:rgShake .45s}
.g-regions .rg-pc.lift{opacity:.35}
.g-regions .rg-ghost{position:fixed;left:0;top:0;width:84px;height:84px;margin:-42px 0 0 -42px;pointer-events:none;z-index:50;filter:drop-shadow(0 6px 8px rgba(0,0,0,.3))}
.g-regions .rg-ghost svg{width:100%;height:100%}
.g-regions .rg-hint{max-width:560px;margin-inline:auto}
.g-regions .rg-side{display:flex;flex-direction:column;gap:12px;width:100%;max-width:560px}
.g-regions .rg-side .fb{width:100%;max-width:none}
@media (max-width:700px){
  .g-regions .rg-keys{display:none}
  .g-regions .rg-bar{padding:6px 10px;gap:4px}
  .g-regions .rg-qt{font-size:1.05rem}
  .g-regions .rg-chips .chip{font-size:.82rem;padding:1px 9px}
  .g-regions .rg-pc{min-height:54px;padding:2px 1px;border-radius:12px}
  .g-regions .rg-pc svg{max-width:40px}
  .g-regions .rg-pc span{font-size:.56rem;overflow-wrap:normal;letter-spacing:-.01em}
}
@media (min-width:900px){
  .g-regions .rg-play.puz{grid-template-columns:minmax(0,560px) 290px;justify-content:center;align-items:start}
  .g-regions .rg-play.puz .rg-tray{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:290px}
  .g-regions .rg-pc{min-height:92px;padding:6px 4px}
  .g-regions .rg-pc svg{max-width:64px}
  .g-regions .rg-pc span{font-size:.78rem}
  .g-regions .rg-play.ans{grid-template-columns:minmax(0,560px) 300px;justify-content:center;align-items:center;column-gap:18px}
}
@keyframes rgNo{0%{fill-opacity:.6}100%{fill-opacity:0;stroke-opacity:0}}
@keyframes rgGlow{from{stroke-opacity:.45}to{stroke-opacity:1}}
@keyframes rgSnap{0%{transform:scale(1.18);opacity:.4}100%{transform:scale(1);opacity:1}}
@keyframes rgJump{0%,100%{transform:translateY(0)}40%{transform:translateY(-18px)}}
@keyframes rgTilt{0%,100%{transform:rotate(0)}30%{transform:rotate(-8deg)}70%{transform:rotate(6deg)}}
@keyframes rgSpark{0%{opacity:1;transform:translate(0,0)}100%{opacity:0;transform:translate(var(--dx),var(--dy))}}
@keyframes rgShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}50%{transform:translateX(5px)}75%{transform:translateX(-3px)}}
@media (prefers-reduced-motion: reduce){.g-regions .rg-no,.g-regions .rg-glow,.g-regions .rg-snap,.g-regions .rg-hay,.g-regions .rg-spark circle,.g-regions .rg-pc,.g-regions .rg-bub{animation:none!important;transition:none!important}}


/* ===== new game: balloon ===== */
.g-balloon{--tint:color-mix(in srgb,var(--wc) 14%,var(--surface))}
.g-balloon .ask,.g-balloon .fact.tint{background:var(--tint)}
.g-balloon .bl-card{background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:8px 10px;display:flex;flex-direction:column;gap:6px;max-width:560px;width:100%;margin-inline:auto}
.g-balloon .bl-fn{display:flex;align-items:center;justify-content:center;gap:8px;font-size:1.12rem;font-weight:800;line-height:1.2;text-align:center}
.g-balloon .bl-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(58px,1fr));gap:6px}
.g-balloon .bl-ph{position:relative;display:flex;flex-direction:column;align-items:center;border:2px dashed var(--line);border-radius:12px;padding:4px 3px 3px;background:var(--surface-2);line-height:1.1;text-align:center;min-width:0}
.g-balloon .bl-ph svg{width:100%;max-width:66px;height:auto;border-radius:6px;display:block}
.g-balloon .bl-ph b{font-size:.76rem;font-weight:800;margin-top:2px;line-height:1.05}
.g-balloon .bl-list.five{gap:4px}
.g-balloon .bl-list.five .bl-ph{padding:3px 2px 2px}
.g-balloon .bl-list.five .bl-ph b{font-size:.68rem}
.g-balloon .bl-ph i{font-style:normal;font-size:.68rem;color:var(--muted);font-weight:700}
.g-balloon .bl-ph.got{border:2px solid var(--good);background:var(--good-soft)}
.g-balloon .bl-st{min-height:2px}
.g-balloon .bl-st .stars{font-size:.78rem}
.g-balloon .bl-stage{max-width:560px;touch-action:none}
.g-balloon .bl-ready{position:absolute;inset:0;display:grid;place-items:start center;padding-top:15%;background:rgba(26,32,66,.2);line-height:1.2}
.g-balloon .bl-rbox{display:flex;flex-direction:column;align-items:center;gap:10px}
.g-balloon .bl-tip{background:#fff;color:#1a2042;border:2.5px solid #1a2042;border-radius:999px;padding:4px 16px;font-weight:800;font-size:1rem}
.g-balloon .bl-go{font-size:1.4rem;padding:16px 30px}
.g-balloon .bl-ctl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:560px;width:100%;margin-inline:auto}
.g-balloon .bl-btn{border:3px solid #1a2042;border-radius:20px;min-height:80px;font-weight:800;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:6px 4px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;box-shadow:0 6px 0 #1a2042;transition:transform .08s,box-shadow .08s,background .15s,opacity .15s;line-height:1.1;min-width:0;cursor:pointer}
.g-balloon .bl-btn svg{width:30px;height:30px;flex:none}
.g-balloon .bl-btn b{font-size:1.1rem}
.g-balloon .bl-btn small{font-size:.74rem;font-weight:700;opacity:.95}
.g-balloon .bl-burn{background:#c8553d}
.g-balloon .bl-vent{background:#2448c6}
.g-balloon .bl-photo{background:#6b7390}
.g-balloon .bl-photo.on{background:#0a7d46}
.g-balloon .bl-photo.pf{background:#12a06a;animation:blPulse .55s ease-in-out infinite alternate}
.g-balloon .bl-btn.on,.g-balloon .bl-btn:active{transform:translateY(5px);box-shadow:0 1px 0 #1a2042;animation:none}
.g-balloon .bl-burn.off{opacity:.45}
@keyframes blPulse{from{box-shadow:0 6px 0 #1a2042,0 0 0 0 rgba(255,198,64,.9)}to{box-shadow:0 6px 0 #1a2042,0 0 0 7px rgba(255,198,64,.55)}}
.g-balloon .bl-keys{font-size:.85rem}
@media (hover:none){.g-balloon .bl-keys{display:none}}
.g-balloon .bl-endstage{max-width:640px}
.g-balloon .bl-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:640px;width:100%;margin-inline:auto}
.g-balloon .bl-stats div{background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:6px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.15;text-align:center}
.g-balloon .bl-stats div.ok{border-color:var(--good);background:var(--good-soft)}
.g-balloon .bl-stats div.no{border-color:var(--bad);background:var(--bad-soft)}
.g-balloon .bl-stats b{font-size:1.1rem;font-weight:800;color:var(--ink)}
.g-balloon .bl-stats small{color:var(--muted);font-weight:700;font-size:.8rem}
.g-balloon .bl-album{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;max-width:640px;width:100%;margin-inline:auto;padding:4px 2px}
.g-balloon .bl-pol{margin:0;background:#fff;border-radius:6px;padding:0 0 8px;box-shadow:0 4px 12px rgba(10,16,48,.2);color:#1a2042;transform:rotate(-1.4deg)}
.g-balloon .bl-pol:nth-child(even){transform:rotate(1.4deg)}
.g-balloon .bl-pol > svg{display:block;width:100%;height:auto;border-radius:6px 6px 0 0}
.g-balloon .bl-pol figcaption{padding:0 9px;display:flex;flex-direction:column;align-items:flex-start;gap:2px;line-height:1.22}
.g-balloon .bl-pol figcaption b{font-size:.95rem}
.g-balloon .bl-pol figcaption .stars{font-size:1rem}
.g-balloon .bl-pol figcaption small{font-size:.8rem;color:#4a5068}
.g-balloon .bl-pol .speak{width:30px;height:30px;background:#eef1fb;color:#1d63b8}
.g-balloon .bl-pol .speak svg{width:16px;height:16px}
.g-balloon .bl-pol.miss{opacity:.85}
.g-balloon .bl-miss{font-weight:800;color:#c1272d;font-size:.85rem}
.g-balloon .bl-blur{filter:blur(1.3px)}
.g-balloon .fb{width:100%;max-width:640px;margin-inline:auto}
@media (min-width:700px){.g-balloon .bl-ph svg{max-width:78px}.g-balloon .bl-ph b{font-size:.86rem}.g-balloon .bl-ph i{font-size:.76rem}.g-balloon .bl-list.five .bl-ph b{font-size:.8rem}}
@media (prefers-reduced-motion:reduce){.g-balloon .bl-photo.pf{animation:none}.g-balloon .bl-btn{transition:none}}


/* ===== new game: dig ===== */
.g-dig{--tint:color-mix(in srgb,var(--wc) 14%,var(--surface))}
.g-dig .ask,.g-dig .fact.tint{background:var(--tint)}
.g-dig .vd-says{display:grid;grid-template-columns:54px minmax(0,1fr);gap:10px;align-items:center;max-width:600px;width:100%;margin-inline:auto}
.g-dig .vd-who{width:54px;height:54px;border-radius:50%;overflow:hidden;border:2px solid var(--line);background:#f3e2c2}
.g-dig .vd-who svg{display:block;width:100%;height:100%}
.g-dig .vd-bub{position:relative;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:7px 12px;font-weight:700;font-size:.98rem;line-height:1.3;min-height:48px;display:flex;align-items:center;gap:8px;justify-content:space-between}
.g-dig .vd-bub:before{content:"";position:absolute;left:-9px;top:50%;margin-top:-7px;border:7px solid transparent;border-right-color:var(--line);border-left:0}
.g-dig .vd-bub .speak{width:34px;height:34px}
.g-dig .vd-stage{max-width:470px;touch-action:manipulation;cursor:pointer}
.g-dig .vd-who.joy{animation:vdJoy .7s ease-out both}
.g-dig .vd-who.oops{animation:vdOops .5s ease-in-out both}
@keyframes vdJoy{0%,100%{transform:translateY(0)}30%{transform:translateY(-10px) rotate(-6deg)}60%{transform:translateY(0) rotate(4deg)}}
@keyframes vdOops{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.g-dig .vd-svg{display:block;width:100%;height:auto}
.g-dig .vd-cell{cursor:pointer}
.g-dig .vd-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:520px;width:100%;margin-inline:auto}
.g-dig .vd-tools.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-dig .vd-tool{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:6px;align-items:center;text-align:start;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:16px;padding:6px 8px;min-height:56px;line-height:1.1;min-width:0}
.g-dig .vd-tool svg{grid-row:1 / span 2;width:34px;height:34px}
.g-dig .vd-tool b{font-size:1.02rem;font-weight:800}
.g-dig .vd-tool small{font-size:.72rem;color:var(--muted);font-weight:700;line-height:1.05}
.g-dig .vd-tool.on{border-color:var(--wc);background:var(--ws);box-shadow:0 3px 0 var(--wc)}
.g-dig .vd-tool.on small{color:var(--ink)}
.g-dig .vd-tool.act{border-style:dashed}
.g-dig .vd-tool.act:active{background:var(--ws)}
.g-dig .vd-keys{font-size:.85rem}
@media (hover:none){.g-dig .vd-keys{display:none}}
.g-dig .vd-dust circle{animation:vdDust .6s ease-out both}
@keyframes vdDust{from{transform:translate(0,0);opacity:.9}to{transform:translate(var(--dx),var(--dy));opacity:0}}
.g-dig .vd-burst{animation:vdBurst .8s ease-out both;transform-box:fill-box;transform-origin:center}
@keyframes vdBurst{from{opacity:1;transform:scale(.6)}to{opacity:0;transform:scale(1.25)}}
.g-dig .vd-flashr{animation:vdFlash .7s ease-out both}
@keyframes vdFlash{0%{opacity:.55}100%{opacity:0}}
.g-dig .vd-pop{animation:vdPop .7s cubic-bezier(.3,1.6,.5,1) both;transform-box:fill-box;transform-origin:center}
@keyframes vdPop{from{transform:scale(.3)}to{transform:scale(1)}}
.g-dig .vd-shake{animation:vdShake .5s ease-in-out both}
@keyframes vdShake{0%,100%{translate:0 0}25%{translate:-4px 0}50%{translate:4px 0}75%{translate:-3px 0}}
.g-dig .vd-ring{animation:vdRing 1s ease-in-out infinite alternate}
@keyframes vdRing{from{stroke-opacity:1}to{stroke-opacity:.25}}
.g-dig .vd-shelf{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;max-width:600px;width:100%;margin-inline:auto}
.g-dig .vd-sh{width:46px;height:46px;border-radius:12px;border:2px dashed var(--line);background:var(--surface-2);display:grid;place-items:center;padding:3px}
.g-dig .vd-sh svg{width:100%;height:100%}
.g-dig .vd-sh.done{border-style:solid;border-color:var(--good);background:var(--good-soft)}
.g-dig .vd-sh.now{border:3px solid var(--wc);background:var(--ws)}
.g-dig .vd-big{max-width:300px;background:#f3e2c2;padding:10px 18px}
.g-dig .vd-big svg{display:block;width:100%;height:auto;max-height:150px}
.g-dig .vd-big{max-width:260px;padding:8px 14px}
.g-dig .choices.vd-ch3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g-dig .choices.vd-ch1{grid-template-columns:minmax(0,1fr);gap:8px}
.g-dig .choices.vd-ch1 .choice{min-height:52px;font-size:1.05rem;padding:8px 10px}
.g-dig .choices.vd-ch3 .choice{font-size:1rem;padding:10px 4px}
.g-dig .mz-row{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:12px;align-items:start;max-width:600px;width:100%;margin-inline:auto}
.g-dig .mz-stage{max-width:none;margin:0}
.g-dig .mz-svg{display:block;width:100%;height:auto}
.g-dig .mz-tile{cursor:pointer}
.g-dig .mz-side{display:flex;flex-direction:column;gap:8px}
.g-dig .mz-goal{background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:6px;display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:800;font-size:.8rem;color:var(--muted)}
.g-dig .mz-goal svg{width:100%;height:auto;border-radius:6px;display:block}
.g-dig .mz-moves{background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:4px;display:flex;flex-direction:column;align-items:center;line-height:1.1}
.g-dig .mz-moves b{font-size:1.4rem;font-weight:800;color:var(--wc)}
.g-dig .mz-moves small{color:var(--muted);font-weight:700}
.g-dig .mz-pop{animation:mzPop .35s cubic-bezier(.3,1.5,.5,1) both}
@keyframes mzPop{from{transform:scale(.82)}to{transform:scale(1)}}
.g-dig .mz-spin{animation:mzSpin .3s ease-out both}
@keyframes mzSpin{from{transform:rotate(-90deg)}to{transform:rotate(0)}}
.g-dig .mz-shine{animation:mzShine 1s ease-out both}
@keyframes mzShine{0%{opacity:0}30%{opacity:.6}100%{opacity:0}}
@media (max-width:560px){
  .g-dig .mz-row{grid-template-columns:minmax(0,1fr)}
  .g-dig .mz-side{flex-direction:row;align-items:stretch}
  .g-dig .mz-goal{flex-direction:row;flex:1;justify-content:center}
  .g-dig .mz-goal svg{width:64px}
  .g-dig .mz-moves{min-width:74px;justify-content:center}
}
.g-dig .fb{width:100%;max-width:600px;margin-inline:auto}
@media (max-width:560px){.g-dig .vd-big{padding:6px 12px}.g-dig .vd-big svg{max-height:100px}}
@media (prefers-reduced-motion:reduce){.g-dig .vd-dust circle,.g-dig .vd-burst,.g-dig .vd-pop,.g-dig .vd-shake,.g-dig .vd-ring,.g-dig .vd-who.joy,.g-dig .vd-who.oops,.g-dig .mz-pop,.g-dig .mz-spin,.g-dig .mz-shine{animation:none}}


/* ===== new game: saltgold ===== */
.g-saltgold .sg-wrap{display:grid;gap:12px;margin-top:12px}
.g-saltgold .sg-l,.g-saltgold .sg-r{display:flex;flex-direction:column;gap:10px;min-width:0}
@media (min-width:900px){.g-saltgold .sg-wrap{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:start}.g-saltgold .sg-l{position:sticky;top:84px}}
.g-saltgold .sg-stage{max-width:620px;width:100%;margin-inline:auto;background:#f3e0b0}
.g-saltgold .sg-stage>svg{display:block;width:100%;height:auto}
.g-saltgold .sg-tapgo{cursor:pointer;touch-action:manipulation}
.g-saltgold .sg-ar{font-family:var(--font-ar);font-weight:700;color:var(--wc);margin-inline-start:6px}
.g-saltgold svg text{font-family:var(--font-ui)}
/* the map */
.g-saltgold .sg-mold{font-size:8.5px;font-weight:700;fill:#7a5a36;font-style:italic}
.g-saltgold .sg-mn{font-size:9px;font-weight:800;fill:#5a3a1e}
.g-saltgold .sg-mma{font-size:10px;font-weight:800;fill:#a0452e;font-style:italic;opacity:.85}
.g-saltgold .sg-mreg{font-size:19px;font-weight:800;fill:#a87b3e;opacity:.55}
.g-saltgold .sg-mreg2{font-size:10px;font-weight:800;fill:#4d7a35;font-style:italic;opacity:.85}
.g-saltgold .sg-msea{font-size:9.5px;font-weight:700;fill:#3f7a78;font-style:italic}
.g-saltgold .sg-mriv{font-size:8.5px;font-weight:700;fill:#2f6f9c;font-style:italic}
.g-saltgold .sg-done{stroke:#b5452e;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:.9}
.g-saltgold .sg-opt{stroke-width:2.6;stroke-dasharray:6 5;stroke-linecap:round;stroke-linejoin:round;opacity:.8}
.g-saltgold .sg-opt0{stroke:#8a3b1c}.g-saltgold .sg-opt1{stroke:#2448c6}
.g-saltgold .sg-opt.on{stroke-width:4;opacity:1}
.g-saltgold .sg-going{stroke:#c1272d;stroke-width:4.2;stroke-linecap:round;stroke-linejoin:round}
.g-saltgold .sg-well circle{fill:#5aa9e6;stroke:#1a2042;stroke-width:1.4}
.g-saltgold .sg-well path{stroke:#fff;stroke-width:1.3;stroke-linecap:round}
.g-saltgold .sg-well.hid circle{fill:#12a06a}
.g-saltgold .sg-tdot{fill:#fff8e6;stroke:#1a2042;stroke-width:1.8}
.g-saltgold .sg-tdot.camp{fill:#5aa9e6}
.g-saltgold .sg-town.been .sg-tdot{fill:#c1272d}
.g-saltgold .sg-town.next .sg-tdot{fill:#ffc640}
.g-saltgold .sg-ring{fill:none;stroke:#c1272d;stroke-width:2;animation:sgRing 1.6s ease-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes sgRing{from{opacity:.9;transform:scale(.5)}to{opacity:0;transform:scale(1.4)}}
.g-saltgold .sg-tl{font-size:11.5px;font-weight:800;fill:#1a2042;paint-order:stroke;stroke:rgba(255,248,225,.95);stroke-width:3.2px;stroke-linejoin:round}
.g-saltgold .sg-tag circle{stroke:#1a2042;stroke-width:1.5}
.g-saltgold .sg-tagc0{fill:#f6d7b8}.g-saltgold .sg-tagc1{fill:#d6e0ff}
.g-saltgold .sg-tag text{font-size:10px;font-weight:800;fill:#1a2042}
.g-saltgold .sg-tag.on circle{stroke-width:2.6}
/* scenes */
.g-saltgold .sg-signt{font-size:15px;font-weight:800;fill:#1a2042}
.g-saltgold .sg-signa{font-family:var(--font-ar);font-size:15px;font-weight:700;fill:#b5761a}
.g-saltgold .sg-wind path{animation:sgWind 1.2s linear infinite}
@keyframes sgWind{to{stroke-dashoffset:-140}}
.g-saltgold .sg-drip path{animation:sgDrip 1.4s ease-in infinite}
.g-saltgold .sg-drip path:nth-child(2){animation-delay:.45s}.g-saltgold .sg-drip path:nth-child(3){animation-delay:.9s}
@keyframes sgDrip{from{transform:translateY(-6px);opacity:0}30%{opacity:1}to{transform:translateY(16px);opacity:0}}
/* top stats */
.g-saltgold .sg-hud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;max-width:620px;width:100%;margin-inline:auto}
.g-saltgold .sg-st{display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto;column-gap:5px;align-items:center;background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:5px 7px;line-height:1.05}
.g-saltgold .sg-st .sg-di{grid-row:1 / span 2;width:24px;height:24px}
.g-saltgold .sg-st b{font-size:1.12rem;font-variant-numeric:tabular-nums}
.g-saltgold .sg-st small{font-size:.68rem;color:var(--muted);font-weight:700;line-height:1}
.g-saltgold .sg-st.low{border-color:var(--bad);background:var(--bad-soft);animation:sgLow 1s ease-in-out infinite alternate}
.g-saltgold .sg-st.fill{animation:sgFill .6s ease-out}
@keyframes sgLow{to{box-shadow:0 0 0 4px color-mix(in srgb,var(--bad) 30%,transparent)}}
@keyframes sgFill{from{background:#bfe6fa}}
.g-saltgold .sg-di{width:22px;height:22px;flex:none;vertical-align:middle}
/* Haydar's tip */
.g-saltgold .sg-tip{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:center;background:var(--ws);border-radius:18px;padding:8px 12px}
.g-saltgold .sg-tip p{margin:0;font-weight:700;line-height:1.3}
.g-saltgold .sg-tip.warn{background:var(--bad-soft);outline:2px solid var(--bad)}
.g-saltgold .sg-tf svg{width:48px;height:48px;display:block}
/* panels */
.g-saltgold .sg-panel{background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.g-saltgold .sg-h{margin:0;font-size:1.08rem;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.g-saltgold .sg-h small{font-size:.78rem;color:var(--muted);font-weight:700}
.g-saltgold .sg-row{display:grid;grid-template-columns:40px minmax(0,1fr) 46px auto;gap:8px;align-items:center;padding:4px 0;border-top:1px dashed var(--line)}
.g-saltgold .sg-row:first-of-type{border-top:0}
.g-saltgold .sg-row.have .sg-gi{background:var(--ws)}
.g-saltgold .sg-gi{width:40px;height:40px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center}
.g-saltgold .sg-ico{width:34px;height:34px;display:block}
.g-saltgold .sg-gn{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.g-saltgold .sg-gn small{font-size:.78rem;color:var(--muted);font-weight:600}
.g-saltgold .sg-gn .sg-best{color:var(--good);font-weight:700}
.g-saltgold .sg-price{display:flex;align-items:center;gap:3px;justify-content:flex-end}
.g-saltgold .sg-price b{font-size:1.15rem;font-variant-numeric:tabular-nums}
.g-saltgold .sg-btns{display:flex;gap:6px;flex-wrap:wrap}
.g-saltgold .sg-btns .btn{min-height:44px;min-width:56px;padding:6px 10px}
.g-saltgold .sg-wrow{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;border-top:1px dashed var(--line);padding-top:8px}
.g-saltgold .sg-wtxt{display:flex;gap:8px;align-items:center;min-width:0}
.g-saltgold .sg-wtxt .sg-di{width:30px;height:30px}
.g-saltgold .sg-wtxt>span{display:flex;flex-direction:column;line-height:1.2}
.g-saltgold .sg-wtxt small{font-size:.78rem;color:var(--muted);font-weight:600}
.g-saltgold .sg-camels{display:flex;flex-wrap:wrap;gap:2px 4px;justify-content:center}
.g-saltgold .sg-cam{width:74px;height:auto;display:block}
@media (min-width:900px){.g-saltgold .sg-cam{width:88px}}
.g-saltgold .sg-none p{margin:0;font-weight:700;color:var(--muted)}
.g-saltgold .sg-bookrow{justify-content:center}
.g-saltgold .sg-tbl{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(var(--cols),minmax(0,1fr));gap:3px;font-size:.86rem}
.g-saltgold .sg-th{font-weight:800;font-size:.72rem;text-align:center;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.g-saltgold .sg-th.here{color:var(--wc)}
.g-saltgold .sg-td{text-align:center;background:var(--surface-2);border-radius:8px;padding:3px 0;font-weight:800;font-variant-numeric:tabular-nums}
.g-saltgold .sg-td.no{opacity:.45}
.g-saltgold .sg-td.lo{background:var(--good-soft);color:var(--good)}
.g-saltgold .sg-td.hi{background:color-mix(in srgb,#ffc640 40%,var(--surface));color:var(--ink)}
.g-saltgold .sg-tg{display:flex;align-items:center;gap:4px;text-align:left;background:none;font-weight:700;font-size:.78rem;line-height:1.05}
.g-saltgold .sg-tg .sg-ico{width:22px;height:22px;flex:none}
.g-saltgold .sg-note{margin:0;font-size:.84rem;color:var(--muted);font-weight:600}
.g-saltgold .sg-note .sg-di{width:18px;height:18px}
.g-saltgold .sg-go{justify-content:center;gap:10px;flex-wrap:wrap}
/* roads */
.g-saltgold .sg-routes{display:flex;flex-direction:column;gap:8px}
.g-saltgold .sg-route{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;text-align:left;background:var(--surface);color:var(--ink);border:2px solid var(--line);border-radius:16px;padding:9px 12px;font:inherit;cursor:pointer;min-height:56px}
.g-saltgold .sg-route.on{border-color:var(--wc);box-shadow:0 0 0 3px color-mix(in srgb,var(--wc) 30%,transparent);background:var(--ws)}
.g-saltgold .sg-rl{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:800;border:2px solid #1a2042;color:#1a2042}
.g-saltgold .sg-rl0{background:#f6d7b8}.g-saltgold .sg-rl1{background:#d6e0ff}
.g-saltgold .sg-rt{display:flex;flex-direction:column;gap:2px;line-height:1.2}
.g-saltgold .sg-rt small{color:var(--muted);font-weight:600;font-size:.82rem}
.g-saltgold .sg-chk{align-self:flex-start;font-size:.8rem;font-weight:800;border-radius:999px;padding:1px 9px}
.g-saltgold .sg-chk.ok{background:var(--good-soft);color:var(--good)}
.g-saltgold .sg-chk.tight{background:color-mix(in srgb,#ffc640 35%,var(--surface));color:var(--ink)}
.g-saltgold .sg-chk.bad{background:var(--bad-soft);color:var(--bad)}
.g-saltgold .sg-offer{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;align-items:start;background:var(--surface);border:2px solid var(--wc);border-radius:16px;padding:8px 10px}
.g-saltgold .sg-offer p{margin:0 0 6px;font-weight:600;line-height:1.3}
.g-saltgold .sg-of svg{width:64px;height:64px;display:block;border-radius:50%;background:var(--ws)}
.g-saltgold .sg-offer .chip{margin:0;display:inline-block}
/* on the road */
.g-saltgold .sg-bar{height:12px;border-radius:999px;background:var(--surface-2);overflow:hidden;border:2px solid var(--line)}
.g-saltgold .sg-bar i{display:block;height:100%;background:linear-gradient(90deg,#e9c98a,#c1272d);border-radius:999px}
.g-saltgold .sg-event p{margin:0;font-weight:600;line-height:1.35}
.g-saltgold .sg-evt{font-size:1.3rem}
.g-saltgold .sg-choices{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.g-saltgold .sg-choices .btn{width:100%;justify-content:flex-start;text-align:left}
.g-saltgold .sg-k{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.55);font-size:.95rem;flex:none}
.g-saltgold .sg-fact{display:flex;gap:8px;align-items:flex-start;margin-top:8px;font-weight:600}
.g-saltgold .sg-fact svg{width:30px;height:30px;flex:none}
.g-saltgold .sg-intro .sg-facts{display:flex;flex-direction:column;gap:8px}
.g-saltgold .sg-facts p{margin:0;display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:center;font-weight:600;line-height:1.3}
.g-saltgold .sg-facts .sg-di,.g-saltgold .sg-facts .st{width:28px;height:28px}
.g-saltgold .sg-goal{background:var(--ws);border-radius:12px;padding:6px 8px}
.g-saltgold .sg-pulse{animation:sgPulse 1.1s ease-in-out infinite;position:relative;z-index:1}
@keyframes sgPulse{50%{box-shadow:0 0 0 6px color-mix(in srgb,var(--wc) 45%,transparent),0 4px 0 #b88708}}
.g-saltgold .fb{margin:0}
.g-saltgold .sg-arr .sg-hay{animation:sgHop .55s ease-out 3;transform-box:fill-box;transform-origin:50% 100%}
@keyframes sgHop{40%{transform:translateY(-12px)}}
@media (prefers-reduced-motion:reduce){.g-saltgold .sg-arr .sg-hay,.g-saltgold .sg-ring,.g-saltgold .sg-wind path,.g-saltgold .sg-drip path,.g-saltgold .sg-pulse,.g-saltgold .sg-st.low{animation:none}}
@media (max-width:420px){.g-saltgold .sg-row{grid-template-columns:36px minmax(0,1fr) 40px auto;gap:6px}.g-saltgold .sg-btns .btn{min-width:50px;padding:6px 8px}.g-saltgold .sg-gi{width:36px;height:36px}.g-saltgold .sg-cam{width:64px}}
@media (max-width:899px){.g-saltgold .sg-wrap.sg-rf .sg-r{order:-1}}
.g-saltgold .sg-nextw{margin:0;display:flex;gap:8px;align-items:center;font-weight:700}
.g-saltgold .sg-nextw .sg-di{width:26px;height:26px}
.g-saltgold .sg-intro>.sg-tip{order:-2}.g-saltgold .sg-intro>.row{order:-1}


/* ===== new game: kharbga ===== */
.g-kharbga{--tint:color-mix(in srgb,var(--wc) 14%,var(--surface))}
.g-kharbga .kh-wrap{display:flex;flex-direction:column;gap:10px;width:100%;max-width:560px;margin-inline:auto}
.g-kharbga .kh-sidecol{display:flex;flex-direction:column;gap:10px;min-width:0}
.g-kharbga .kh-main{min-width:0}
.g-kharbga .kh-lv{margin:0;text-align:center;font-weight:700;color:var(--muted);font-size:.92rem}

.g-kharbga .kh-band{display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px;align-items:center}
.g-kharbga .kh-hay{width:58px;height:58px;border-radius:50%;background:#cdeedd;border:3px solid var(--wc);overflow:hidden;display:block;flex:none}
.g-kharbga .kh-hay svg{display:block;width:100%;height:100%;transform:translateY(3px)}
.g-kharbga .kh-m-happy svg{animation:khHop .6s ease-out}
.g-kharbga .kh-m-wave svg{animation:khHop .7s ease-out}
.g-kharbga .kh-m-oops svg{animation:khShake .55s ease-in-out}
.g-kharbga .kh-m-think svg{animation:khTilt .9s ease-in-out}
@keyframes khHop{0%,100%{transform:translateY(3px)}35%{transform:translateY(-6px) scale(1.06)}65%{transform:translateY(5px)}}
@keyframes khShake{0%,100%{transform:translateY(3px) rotate(0)}20%{transform:translateY(3px) rotate(-12deg)}45%{transform:translateY(3px) rotate(10deg)}70%{transform:translateY(3px) rotate(-6deg)}}
@keyframes khTilt{0%,100%{transform:translateY(3px) rotate(0)}50%{transform:translateY(3px) rotate(-9deg)}}
.g-kharbga .kh-bub{position:relative;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:5px 12px 6px;font-weight:700;line-height:1.25;min-height:54px;display:flex;flex-direction:column;justify-content:center;font-size:.98rem}
.g-kharbga .kh-bub::before{content:"";position:absolute;left:-9px;top:50%;width:14px;height:14px;background:var(--surface);border-left:2px solid var(--line);border-bottom:2px solid var(--line);transform:translateY(-50%) rotate(45deg)}
.g-kharbga .kh-bub b{display:block;color:var(--wc);font-size:.78rem;font-weight:800;line-height:1.1}
.g-kharbga .kh-dots{display:inline-flex;gap:3px;margin-inline-start:6px;vertical-align:middle}
.g-kharbga .kh-dots i{width:6px;height:6px;border-radius:50%;background:var(--wc);animation:khBlink 1s ease-in-out infinite}
.g-kharbga .kh-dots i:nth-child(2){animation-delay:.15s}.g-kharbga .kh-dots i:nth-child(3){animation-delay:.3s}
@keyframes khBlink{0%,100%{opacity:.25}50%{opacity:1}}
.g-kharbga .kh-ms{width:28px;height:28px;display:block;flex:none}
.g-kharbga .stage.kh-stage{max-width:540px;border:0;background:transparent;border-radius:20px;cursor:pointer;box-shadow:0 6px 0 rgba(26,32,66,.18)}
.g-kharbga .stage.kh-menu{max-width:270px;cursor:default}
.g-kharbga .stage.kh-over{cursor:default}
.g-kharbga .kh-svg{display:block;width:100%;height:auto}
.g-kharbga .kh-dot{animation:khPulse 1.1s ease-in-out infinite}
@keyframes khPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.25)}}
.g-kharbga .kh-sel{animation:khDash 1.2s linear infinite}
@keyframes khDash{to{stroke-dashoffset:-30}}
.g-kharbga .kh-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.g-kharbga .kh-side{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:6px;border:2px solid var(--line);background:var(--surface);border-radius:14px;padding:5px 10px;transition:border-color .2s,box-shadow .2s}
.g-kharbga .kh-side.on{border-color:var(--wc);background:var(--tint);box-shadow:0 0 0 3px color-mix(in srgb,var(--wc) 25%,transparent)}
.g-kharbga .kh-side b{display:block;font-weight:800;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-kharbga .kh-side small{display:block;color:var(--muted);font-size:.78rem;font-weight:600;line-height:1.15}
.g-kharbga .kh-side em{font-style:normal;font-weight:800;font-size:1.55rem;line-height:1;font-variant-numeric:tabular-nums}
.g-kharbga .kh-turn{text-align:center;margin:0;color:var(--muted);font-size:.95rem;line-height:1.3}
.g-kharbga .kh-turn b{color:var(--ink)}
.g-kharbga .kh-q{display:block;color:var(--bad);font-weight:700}
.g-kharbga .kh-btns{justify-content:center;gap:10px}
.g-kharbga .kh-modes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.g-kharbga .kh-mode{border:3px solid var(--line);background:var(--surface);border-radius:18px;padding:10px 8px 12px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;box-shadow:0 4px 0 var(--line);min-height:44px;color:var(--ink)}
.g-kharbga .kh-mode:hover{border-color:var(--wc)}
.g-kharbga .kh-mode:active{transform:translateY(2px);box-shadow:0 2px 0 var(--line)}
.g-kharbga .kh-mode b{display:block;font-size:1.08rem;font-weight:800;line-height:1.15}
.g-kharbga .kh-mode small{display:block;color:var(--muted);font-size:.84rem;line-height:1.2}
.g-kharbga .kh-mi{width:60px;height:60px;display:grid;place-items:center}
.g-kharbga .kh-mi svg{width:100%;height:100%;display:block}
.g-kharbga .kh-mih{border-radius:50%;background:#cdeedd;border:3px solid var(--wc);overflow:hidden}
.g-kharbga .kh-mih svg{transform:translateY(3px)}
.g-kharbga .kh-tcard{background:var(--tint);border:2px solid var(--line);border-radius:18px;padding:10px 14px;display:flex;flex-direction:column;gap:6px}
.g-kharbga .kh-th{display:flex;align-items:center;gap:8px;font-size:1.2rem}
.g-kharbga .kh-tcard p{margin:0;font-weight:600;line-height:1.35}
.g-kharbga .kh-tdots{display:flex;gap:7px;justify-content:center}
.g-kharbga .kh-tdots i{width:10px;height:10px;border-radius:50%;background:var(--line)}
.g-kharbga .kh-tdots i.on{background:var(--wc)}
.g-kharbga .ask{background:var(--tint)}
@media (prefers-reduced-motion:reduce){.g-kharbga .kh-dot,.g-kharbga .kh-sel,.g-kharbga .kh-hay svg,.g-kharbga .kh-dots i{animation:none!important}}
@media (min-width:900px){
  .g-kharbga .kh-wrap{display:grid;max-width:900px;grid-template-columns:minmax(0,540px) minmax(270px,330px);grid-template-areas:"main band" "main side";grid-template-rows:auto 1fr;column-gap:22px;row-gap:12px;align-items:start;justify-content:center}
  .g-kharbga .kh-band{grid-area:band}
  .g-kharbga .kh-main{grid-area:main}
  .g-kharbga .kh-sidecol{grid-area:side}
  .g-kharbga .kh-bar{grid-template-columns:minmax(0,1fr)}
  .g-kharbga .kh-modes{grid-template-columns:minmax(0,1fr)}
  .g-kharbga .kh-mode{flex-direction:row;text-align:start;padding:10px 14px}
  .g-kharbga .kh-menuw .stage.kh-menu{max-width:460px}
  .g-kharbga .kh-sidecol .fb + .row{justify-content:flex-start}
}@media (max-width:899px){.g-kharbga #kh-tstage{max-width:300px}}


/* ===== new game: ferran ===== */
.g-ferran{--tint:color-mix(in srgb,var(--wc) 14%,var(--surface))}
.g-ferran .fr-wrap{display:flex;flex-direction:column;gap:10px;width:100%;max-width:660px;margin-inline:auto}
.g-ferran .fr-main,.g-ferran .fr-sidecol{min-width:0}
.g-ferran .fr-sidecol{display:flex;flex-direction:column;gap:10px}
.g-ferran .fr-steps{display:flex;gap:5px;justify-content:center;flex-wrap:wrap;align-items:center}
.g-ferran .fr-step{display:inline-flex;align-items:center;gap:5px;border:2px solid var(--line);background:var(--surface);border-radius:999px;padding:2px 10px 2px 3px;font-weight:800;font-size:.86rem;color:var(--muted)}
.g-ferran .fr-step i{font-style:normal;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);color:var(--muted);font-size:.85rem}
.g-ferran .fr-step.on{border-color:var(--wc);color:var(--ink);background:var(--tint)}
.g-ferran .fr-step.on i{background:var(--wc);color:#fff}
.g-ferran .fr-step.done i{background:var(--good);color:#fff}
.g-ferran .fr-warm{display:inline-flex;align-items:center;gap:3px;border-radius:999px;padding:1px 10px;font-size:.9rem;background:#ff8a1f;color:#fff;font-weight:800;border:2px solid #1a2042}
.g-ferran .fr-warm svg{width:20px;height:20px}
.g-ferran .fr-warm.low{background:#c1272d;animation:frBeat .8s ease-in-out infinite}
.g-ferran .fr-warm.cold{background:#7f8aa6}
@keyframes frBeat{50%{transform:scale(1.08)}}
.g-ferran .fr-band{display:grid;grid-template-columns:54px minmax(0,1fr);gap:10px;align-items:center}
.g-ferran .fr-hay{width:54px;height:54px;border-radius:50%;background:#cdeedd;border:3px solid var(--wc);overflow:hidden;display:block}
.g-ferran .fr-hay svg{display:block;width:100%;height:100%;transform:translateY(3px)}
.g-ferran .fr-m-happy svg,.g-ferran .fr-m-wave svg{animation:frHop .6s ease-out}
.g-ferran .fr-m-oops svg{animation:frShake .55s ease-in-out}
.g-ferran .fr-m-think svg{animation:frTilt .9s ease-in-out}
@keyframes frHop{0%,100%{transform:translateY(3px)}35%{transform:translateY(-6px) scale(1.06)}65%{transform:translateY(5px)}}
@keyframes frShake{0%,100%{transform:translateY(3px) rotate(0)}25%{transform:translateY(3px) rotate(-12deg)}50%{transform:translateY(3px) rotate(10deg)}75%{transform:translateY(3px) rotate(-5deg)}}
@keyframes frTilt{50%{transform:translateY(3px) rotate(-9deg)}}
.g-ferran .fr-bub{position:relative;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:5px 12px 6px;font-weight:700;line-height:1.25;min-height:50px;display:flex;flex-direction:column;justify-content:center;font-size:.97rem}
.g-ferran .fr-bub::before{content:"";position:absolute;left:-9px;top:50%;width:14px;height:14px;background:var(--surface);border-left:2px solid var(--line);border-bottom:2px solid var(--line);transform:translateY(-50%) rotate(45deg)}
.g-ferran .fr-bub b{display:block;color:var(--wc);font-size:.78rem;font-weight:800;line-height:1.1}
.g-ferran .stage.fr-stage{max-width:660px;cursor:pointer;border-color:#a8743a}
.g-ferran .stage.fr-sum{cursor:default}
.g-ferran .fr-svg{display:block;width:100%;height:auto}
.g-ferran .fr-tray{background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:6px 10px 8px;display:flex;flex-direction:column;gap:4px}
.g-ferran .fr-tl{font-size:.8rem;font-weight:800;color:var(--muted);line-height:1.2}
.g-ferran .fr-chips{display:flex;flex-wrap:wrap;gap:6px}
.g-ferran .fr-chip{position:relative;width:62px;height:42px;border:2px solid var(--line);border-radius:12px;background:#f7efe2;display:grid;place-items:center;padding:0;color:var(--ink)}
.g-ferran .fr-chip svg{width:58px;height:32px;display:block}
.g-ferran button.fr-chip{cursor:pointer;box-shadow:0 3px 0 var(--line)}
.g-ferran button.fr-chip:active{transform:translateY(2px);box-shadow:none}
.g-ferran .fr-chip.sel{border-color:var(--wc);box-shadow:0 0 0 3px color-mix(in srgb,var(--wc) 45%,transparent);background:#fff3d6}
.g-ferran .fr-chip.empty{border-style:dashed;background:transparent}
.g-ferran .fr-chip.wait{opacity:.55}
.g-ferran .fr-chip.home{opacity:.5}
.g-ferran .fr-chip em{position:absolute;top:-7px;right:-6px;width:22px;height:22px;border-radius:50%;background:var(--good);color:#fff;font-style:normal;font-weight:800;font-size:.8rem;display:grid;place-items:center}
.g-ferran .fr-chip small{position:absolute;bottom:-9px;left:50%;transform:translateX(-50%);font-size:.68rem;font-weight:800;line-height:1;padding:2px 6px;border-radius:999px;background:var(--surface);border:1.5px solid var(--line);white-space:nowrap}
.g-ferran .fr-chip.q-golden small{color:var(--good);border-color:var(--good)}
.g-ferran .fr-chip.q-pale small,.g-ferran .fr-chip.q-dark small{color:var(--bad);border-color:var(--bad)}
.g-ferran .fr-chips:has(small){padding-bottom:8px}
.g-ferran .fr-none{font-weight:700;color:var(--muted);font-size:.9rem;padding:8px 0}
.g-ferran .fr-ctl{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px}
.g-ferran .fr-ctl .hint{flex:1;min-width:0}
.g-ferran .fr-arr{position:absolute;bottom:8px;width:52px;height:48px;border-radius:16px;border:3px solid #1a2042;background:rgba(255,255,255,.88);color:#cc4b33;font-size:1.35rem;font-weight:800;line-height:1;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;box-shadow:0 3px 0 rgba(26,32,66,.35)}
.g-ferran .fr-arr.l{left:8px}.g-ferran .fr-arr.r{right:8px}
.g-ferran .fr-arr:active{background:#cc4b33;color:#fff}
.g-ferran .fr-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.g-ferran .fr-stats div{background:var(--surface);border:2px solid var(--line);border-radius:14px;padding:4px;display:flex;flex-direction:column;align-items:center;line-height:1.15}
.g-ferran .fr-stats b{font-size:1.45rem;font-weight:800;color:var(--wc)}
.g-ferran .fr-stats small{color:var(--muted);font-weight:700;text-align:center;line-height:1.15}
.g-ferran .fr-ress{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:6px}
.g-ferran .fr-res{display:flex;flex-direction:column;align-items:center;gap:2px;border:2px solid var(--line);background:var(--surface);border-radius:12px;padding:4px 2px 5px}
.g-ferran .fr-rc svg{width:62px;height:34px;display:block}
.g-ferran .fr-tag{font-size:.7rem;font-weight:800;border-radius:999px;padding:0 7px;line-height:1.5;white-space:nowrap}
.g-ferran .fr-tag.ok{background:var(--good-soft);color:var(--good)}
.g-ferran .fr-tag.no{background:var(--bad-soft);color:var(--bad)}
.g-ferran .fr-smoke{animation:frSmoke 3s ease-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes frSmoke{0%{transform:translate(0,10px) scale(.6);opacity:0}25%{opacity:.8}100%{transform:translate(-12px,-14px) scale(1.5);opacity:0}}
.g-ferran .fr-flame{animation:frFlick .5s ease-in-out infinite alternate}
@keyframes frFlick{0%{transform:scale(1,1)}100%{transform:scale(1.06,1.14)}}
.g-ferran .fr-puff{animation:frPuff 1.4s ease-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes frPuff{0%{transform:translateY(4px);opacity:0}30%{opacity:.9}100%{transform:translateY(-16px);opacity:0}}
.g-ferran .fr-pop{animation:frPop 1.1s ease-out both}
@keyframes frPop{0%{transform:translateY(6px);opacity:0}20%{opacity:1}100%{transform:translateY(-26px);opacity:0}}
.g-ferran .fr-ring{animation:frDash 1s linear infinite}
@keyframes frDash{to{stroke-dashoffset:-28}}
.g-ferran .ask{background:var(--tint)}
.g-ferran .fr-hop{animation:frJump .7s ease-out}
.g-ferran .fr-bob{animation:frBob .9s ease-in-out infinite}
@keyframes frBob{50%{transform:translateY(7px)}}
@keyframes frJump{0%,100%{transform:translateY(0)}35%{transform:translateY(-12px)}65%{transform:translateY(3px)}}
@media (prefers-reduced-motion:reduce){.g-ferran .fr-smoke,.g-ferran .fr-flame,.g-ferran .fr-puff,.g-ferran .fr-ring,.g-ferran .fr-hay svg,.g-ferran .fr-hop,.g-ferran .fr-bob,.g-ferran .fr-warm.low{animation:none!important}.g-ferran .fr-pop{animation-duration:.01s}}
@media (min-width:980px){
  .g-ferran .fr-wrap{display:grid;max-width:960px;grid-template-columns:minmax(0,610px) minmax(260px,320px);grid-template-areas:"steps steps" "main band" "main side";grid-template-rows:auto auto 1fr;column-gap:20px;row-gap:10px;align-items:start;justify-content:center}
  .g-ferran .fr-steps{grid-area:steps}
  .g-ferran .fr-band{grid-area:band}
  .g-ferran .fr-main{grid-area:main}
  .g-ferran .fr-sidecol{grid-area:side}
  .g-ferran .fr-sidecol .fb + .row{justify-content:flex-start}
  .g-ferran .fr-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* ===== new game: ramadan ===== */
.g-ramadan .rm-stage{max-width:640px;position:relative}
.g-ramadan .rm-stage.rm-month{max-width:560px}
.g-ramadan .rm-svg{display:block;width:100%;height:auto}
.g-ramadan .ask{max-width:720px;width:100%;margin-inline:auto;background:color-mix(in srgb,var(--wc) 16%,var(--surface))}
.g-ramadan .fb,.g-ramadan .rm-flash{max-width:680px;width:100%;margin-inline:auto}
.g-ramadan .hint{margin:0}

/* the clock of the day */
.g-ramadan .rm-clock{display:flex;align-items:center;justify-content:center;gap:4px;max-width:640px;width:100%;margin-inline:auto;flex-wrap:nowrap}
.g-ramadan .rm-ck{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px;background:var(--surface-2);border:2px solid var(--line);flex:none;opacity:.7}
.g-ramadan .rm-ck svg{width:24px;height:24px;display:block;border-radius:50%;background:#18245c}
.g-ramadan .rm-ck.past{opacity:.95;border-color:color-mix(in srgb,var(--wc) 55%,var(--line))}
.g-ramadan .rm-ck.on{opacity:1;padding:3px 12px 3px 3px;background:color-mix(in srgb,var(--wc) 20%,var(--surface));border-color:var(--wc);min-width:0;flex:0 1 auto}
.g-ramadan .rm-ck.on b{font-size:.95rem;color:var(--ink);white-space:nowrap}
.g-ramadan .rm-ck.on small{font-size:.8rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-ramadan .rm-ckl{flex:0 1 18px;height:3px;border-radius:2px;background:var(--line);min-width:6px}

/* the shelf of foods and dishes */
.g-ramadan .rm-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:620px;width:100%;margin-inline:auto}
.g-ramadan .rm-shelf.rm-dishes{grid-template-columns:repeat(4,minmax(0,1fr))}
.g-ramadan .rm-food{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:76px;padding:6px 4px;border-radius:16px;border:3px solid var(--line);background:var(--surface);color:var(--ink);font-weight:800;font-size:.95rem;line-height:1.1;text-align:center;min-width:0;transition:transform .12s ease}
.g-ramadan .rm-food:not(:disabled):active{transform:scale(.95)}
.g-ramadan .rm-food:not(:disabled):hover{border-color:var(--wc)}
.g-ramadan .rm-fart{display:block;width:44px;height:44px}
.g-ramadan .rm-fart svg{width:100%;height:100%;display:block;overflow:visible}
.g-ramadan .rm-food.got{opacity:.38;border-style:dashed}
.g-ramadan .rm-food:disabled:not(.got){opacity:.6}
.g-ramadan .rm-food.held{border-color:var(--wc);background:color-mix(in srgb,var(--wc) 22%,var(--surface));box-shadow:0 0 0 3px color-mix(in srgb,var(--wc) 35%,transparent)}
.g-ramadan .rm-food.rm-prayb{border-color:#0a7d46}
.g-ramadan .rm-shelf.c4{grid-template-columns:repeat(4,minmax(0,1fr))}
.g-ramadan .rm-shelf.c5{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.g-ramadan .rm-shelf.c5 .rm-food,.g-ramadan .rm-shelf.c4 .rm-food{min-height:70px;font-size:.8rem;padding:5px 2px;border-radius:14px}
.g-ramadan .rm-shelf.c5 .rm-fart,.g-ramadan .rm-shelf.c4 .rm-fart{width:36px;height:36px}
.g-ramadan .rm-shint{font-weight:700}
.g-ramadan .rm-shint.bad{color:var(--bad)}
.g-ramadan .rm-step{margin:0;text-align:center;color:var(--wc);font-size:1.05rem}
.g-ramadan .rm-shake{animation:rmShake .45s}

/* Haydar's speech bubble in the scene */
.g-ramadan .rm-bub{position:absolute;top:8px;right:8px;max-width:min(64%,330px);line-height:1.3;font-size:.95rem;font-weight:700;padding:8px 12px;border-radius:14px;background:var(--surface);color:var(--ink);border:2.5px solid var(--good);box-shadow:0 4px 14px rgba(10,16,48,.22);animation:rmBub 3.6s ease forwards;pointer-events:none}
.g-ramadan .rm-bub.bad{border-color:#e5583d}

/* the start box under a scene */
.g-ramadan .rm-ready{display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px 12px;align-items:center;max-width:640px;width:100%;margin-inline:auto;padding:10px 14px;border-radius:20px;background:color-mix(in srgb,var(--wc) 16%,var(--surface));border:2px solid color-mix(in srgb,var(--wc) 40%,var(--line))}
.g-ramadan .rm-ready p{margin:0;font-weight:700;font-size:1.02rem;line-height:1.35;color:var(--ink)}
.g-ramadan .rm-rface svg{width:52px;height:52px;display:block}
.g-ramadan .rm-ready .btn{grid-column:1 / -1;justify-self:center;flex:none}

/* the time bar */
.g-ramadan .rm-timer{display:flex;align-items:center;gap:8px;max-width:640px;width:100%;margin-inline:auto}
.g-ramadan .rm-tl{font-weight:800;font-size:.9rem;color:var(--muted);min-width:58px}
.g-ramadan .rm-bar{position:relative;flex:1;height:14px;border-radius:999px;background:var(--surface-2);border:2px solid var(--line);overflow:hidden}
.g-ramadan .rm-bar i{position:absolute;inset-block:0;inset-inline-start:0;background:var(--wc);border-radius:999px}
.g-ramadan .rm-bar i.low{background:#e5583d}

/* answers, steps and the feedback line */
.g-ramadan .rm-opts{max-width:620px}
.g-ramadan .rm-opt{flex-direction:row;justify-content:flex-start;gap:12px;text-align:start;min-height:58px;font-size:1.05rem;padding:8px 14px}
.g-ramadan .rm-opt .cart{width:40px;height:40px;max-width:none;flex:none}
.g-ramadan .rm-opt .cart svg{width:100%;height:100%;display:block}
.g-ramadan .rm-opt .ct{flex:1}
.g-ramadan .rm-multi{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:640px;width:100%;margin-inline:auto}
.g-ramadan .rm-mo{font-size:.95rem;padding:8px 10px;gap:8px}
.g-ramadan .rm-mo.sel{border-color:var(--wc);background:color-mix(in srgb,var(--wc) 20%,var(--surface))}
.g-ramadan .rm-flash{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center;margin-block:0;padding:8px 12px;border-radius:16px;border:2.5px solid var(--good);background:var(--good-soft);color:var(--ink);font-weight:700;line-height:1.35;animation:rmPop .35s cubic-bezier(.2,1.5,.4,1)}
.g-ramadan .rm-flash.bad{border-color:color-mix(in srgb,var(--bad) 55%,var(--line));background:var(--bad-soft)}
.g-ramadan .rm-fface svg{width:40px;height:40px;display:block}
.g-ramadan .rm-count{display:flex;align-items:center;justify-content:center;gap:6px;margin:0;font-weight:800;color:var(--muted);font-size:.92rem}
.g-ramadan .rm-count i{width:14px;height:14px;border-radius:50%;background:var(--surface-2);border:2px solid var(--line)}
.g-ramadan .rm-count i.on{background:#ffc640;border-color:#b88708;box-shadow:0 0 8px #ffc640}
.g-ramadan .rm-count i.now{border-color:var(--wc)}
.g-ramadan .rm-count span{margin-inline-start:4px}

/* the evening cards */
.g-ramadan .rm-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:640px}
.g-ramadan .rm-tc{flex-direction:row;justify-content:flex-start;text-align:start;font-size:.92rem;padding:6px 8px;min-height:56px;gap:8px}
.g-ramadan .rm-tct{display:flex;flex-direction:column;gap:1px;min-width:0}
.g-ramadan .rm-seq{list-style:none;margin:0 auto;padding:0;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;max-width:640px;width:100%}
.g-ramadan .rm-seq li{display:inline-flex;align-items:center;gap:4px;padding:3px 10px 3px 4px;border-radius:999px;background:var(--good-soft);border:2px solid var(--good);font-weight:800;font-size:.82rem;color:var(--ink)}
.g-ramadan .rm-seq li b{width:20px;height:20px;border-radius:50%;background:var(--good);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:.78rem}
.g-ramadan .rm-seq li svg{width:20px;height:20px}
.g-ramadan .rm-seq .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.g-ramadan .rm-seq li.new{animation:rmPop .4s cubic-bezier(.2,1.6,.4,1)}
.g-ramadan .rm-tc .num{position:absolute;top:-8px;left:-6px;width:26px;height:26px;border-radius:50%;background:var(--good);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.9rem;animation:rmPop .35s cubic-bezier(.2,1.6,.4,1)}
.g-ramadan .rm-tci{width:34px;height:34px;display:block;flex:none}
.g-ramadan .rm-tci svg{width:100%;height:100%;display:block}
.g-ramadan .rm-tc .ar{font-size:.85rem;color:var(--muted);font-weight:700}
.g-ramadan .rm-tc.yes{opacity:.75}

/* SVG pieces: doors and night tiles you can tap */
.g-ramadan .rm-door,.g-ramadan .rm-tile{cursor:pointer;outline:none}
.g-ramadan .rm-door.done{cursor:default}
.g-ramadan .rm-door:focus-visible path,.g-ramadan .rm-tile:focus-visible rect{stroke:#ffc640;stroke-width:3.5}
.g-ramadan .rm-tile:hover rect{filter:brightness(1.25)}
.g-ramadan .rm-tile.ok rect{fill:#12a06a}
.g-ramadan .rm-tile.bad rect{fill:#e5583d}

/* animations */
.g-ramadan .rm-hay{transform-box:fill-box;transform-origin:50% 100%}
.g-ramadan .rm-hop{animation:rmHop .7s cubic-bezier(.2,1.4,.4,1)}
.g-ramadan .rm-tilt{animation:rmTilt .6s ease}
.g-ramadan .rm-pop{transform-box:fill-box;transform-origin:50% 80%;animation:rmPop .45s cubic-bezier(.2,1.6,.4,1) both}
.g-ramadan .rm-fan{transform-box:fill-box;transform-origin:50% 0}
.g-ramadan .rm-swing{animation:rmSwing 3.4s ease-in-out infinite alternate}
.g-ramadan .rm-swing.s2{animation-delay:-1.7s}
.g-ramadan .rm-lightup{animation:rmLight 1s cubic-bezier(.2,1.5,.4,1) both}
.g-ramadan .rm-halo{animation:rmHalo 2.2s ease-in-out infinite alternate}
.g-ramadan .rm-tw{animation:rmTw 1.6s ease-in-out infinite alternate}
.g-ramadan .rm-tw.t1{animation-delay:.5s}
.g-ramadan .rm-tw.t2{animation-delay:1s}
.g-ramadan .rm-nstep{animation:rmBob .5s ease-in-out infinite alternate}
.g-ramadan .rm-walking{animation:rmBob .22s ease-in-out infinite alternate}
.g-ramadan .rm-want{transform-box:fill-box;transform-origin:50% 100%;animation:rmFloat 1.6s ease-in-out infinite alternate}
.g-ramadan .rm-float{transform-box:fill-box;transform-origin:center;animation:rmFloatUp 1.8s ease-out both}
.g-ramadan .rm-float.f1{animation-delay:.2s}
.g-ramadan .rm-float.f2{animation-delay:.4s}
.g-ramadan .rm-adhan{transform-box:fill-box;transform-origin:0 100%;animation:rmPop .6s cubic-bezier(.2,1.5,.4,1) .2s both}
@keyframes rmShake{0%,100%{transform:translateX(0)}20%{transform:translateX(-7px)}40%{transform:translateX(7px)}60%{transform:translateX(-5px)}80%{transform:translateX(5px)}}
@keyframes rmBub{0%{opacity:0;transform:translateY(-6px)}8%{opacity:1;transform:none}82%{opacity:1}100%{opacity:0}}
@keyframes rmHop{0%{transform:translateY(0)}35%{transform:translateY(-9%)}65%{transform:translateY(0) scale(1.04,.96)}100%{transform:none}}
@keyframes rmTilt{0%,100%{transform:rotate(0)}30%{transform:rotate(-6deg)}65%{transform:rotate(4deg)}}
@keyframes rmPop{0%{transform:scale(.2);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes rmSwing{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}
@keyframes rmLight{0%{transform:scale(.6);filter:brightness(.6)}60%{transform:scale(1.25);filter:brightness(1.5)}100%{transform:scale(1);filter:none}}
@keyframes rmHalo{from{opacity:.65}to{opacity:1}}
@keyframes rmTw{from{opacity:.25}to{opacity:1}}
@keyframes rmBob{from{transform:translateY(0)}to{transform:translateY(-2.5px)}}
@keyframes rmFloat{from{transform:translateY(0)}to{transform:translateY(-4px)}}
@keyframes rmFloatUp{0%{transform:translateY(10px) scale(.4);opacity:0}40%{opacity:1}100%{transform:translateY(-14px) scale(1);opacity:.9}}
@media (min-width:700px){
  .g-ramadan .rm-shelf{grid-template-columns:repeat(3,minmax(0,1fr))}
  .g-ramadan .rm-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
  .g-ramadan .rm-multi{grid-template-columns:repeat(3,minmax(0,1fr))}
  .g-ramadan .rm-opts{grid-template-columns:repeat(3,minmax(0,1fr))}
  .g-ramadan .rm-opts .rm-opt{flex-direction:column;text-align:center;justify-content:center}
}
@media (max-width:480px){.g-ramadan .rm-clock.many .rm-ck.on small{display:none}.g-ramadan .rm-clock.many .rm-ckl{flex-basis:10px}}
@media (min-width:900px){.g-ramadan .rm-stage{max-width:560px}.g-ramadan .rm-stage.rm-month{max-width:520px}}
@media (prefers-reduced-motion:reduce){
  .g-ramadan .rm-swing,.g-ramadan .rm-halo,.g-ramadan .rm-tw,.g-ramadan .rm-nstep,.g-ramadan .rm-walking,.g-ramadan .rm-want,.g-ramadan .rm-hop,.g-ramadan .rm-tilt,.g-ramadan .rm-float{animation:none}
}
.g-ramadan .rm-ready p .speak{vertical-align:middle;margin-block:-8px;margin-inline-start:2px}


/* ===== new game: hajj ===== */
.g-hajj .hj-stage{max-width:640px;position:relative}
.g-hajj .hj-svg{display:block;width:100%;height:auto}
.g-hajj .ask{max-width:720px;width:100%;margin-inline:auto;background:color-mix(in srgb,var(--wc) 16%,var(--surface))}
.g-hajj .fb,.g-hajj .hj-flash{max-width:680px;width:100%;margin-inline:auto}
.g-hajj .hint{margin:0}

/* the steps of the round */
.g-hajj .hj-steps{display:flex;align-items:center;justify-content:center;gap:6px;margin:0;font-weight:800;color:var(--muted);font-size:.92rem}
.g-hajj .hj-steps i{width:13px;height:13px;border-radius:50%;background:var(--surface-2);border:2px solid var(--line)}
.g-hajj .hj-steps i.on{background:var(--wc);border-color:var(--wc)}
.g-hajj .hj-steps i.now{border-color:var(--wc)}
.g-hajj .hj-steps span{margin-inline-start:4px;color:var(--wc)}

/* places to tap */
.g-hajj .hj-places{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;max-width:680px}
.g-hajj .hj-pl{padding:6px 2px;min-height:56px;font-size:.88rem;gap:1px}
.g-hajj .hj-pl .car{font-size:.82rem;color:var(--muted)}
.g-hajj .hj-pl.pic .cart{width:46px;max-width:none}
.g-hajj .hj-pl.pic .cart svg{width:100%;height:auto;display:block;border-radius:10px}
.g-hajj .hj-place{cursor:pointer;outline:none}
.g-hajj .hj-place:focus-visible circle{stroke:#ffc640;stroke-width:3}
.g-hajj .hj-place:hover .hj-lab rect{fill:#e5f5f3}
.g-hajj .hj-ring{transform-box:fill-box;transform-origin:center;animation:hjRing 1.6s ease-in-out infinite}

/* the bag */
.g-hajj .hj-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:620px;width:100%;margin-inline:auto}
.g-hajj .hj-shelf.c5{grid-template-columns:repeat(3,minmax(0,1fr))}
.g-hajj .hj-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:68px;padding:6px 4px;border-radius:16px;border:3px solid var(--line);background:var(--surface);color:var(--ink);line-height:1.1;text-align:center;min-width:0}
.g-hajj .hj-item b{font-size:.88rem}
.g-hajj .hj-item small{font-size:.76rem;color:var(--muted);font-weight:700}
.g-hajj .hj-item:not(:disabled):hover{border-color:var(--wc)}
.g-hajj .hj-item:not(:disabled):active{transform:scale(.95)}
.g-hajj .hj-item.got{opacity:.38;border-style:dashed}
.g-hajj .hj-iart{width:36px;height:36px;display:block}
.g-hajj .hj-iart svg{width:100%;height:100%;display:block;overflow:visible}

/* talbiyah, answers, cards */
.g-hajj .hj-tb{flex:none;font-size:1.25rem}
.g-hajj .hj-talb{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:640px;width:100%;margin-inline:auto}
.g-hajj .hj-tp{font-size:.95rem;min-height:72px;padding:8px}
.g-hajj .hj-tp .car{font-size:1.05rem;font-family:var(--font-ar);color:var(--muted)}
.g-hajj .hj-tp.yes{opacity:.6}
.g-hajj .choices.one{max-width:620px}
.g-hajj .hj-opt{font-size:1.05rem;min-height:58px}
.g-hajj .hj-art .cart{max-width:96px}
.g-hajj .hj-art .cart svg{width:100%;height:auto;display:block;border-radius:12px}
.g-hajj .hj-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:620px}
.g-hajj .hj-tc{font-size:.95rem;min-height:84px;gap:4px}
.g-hajj .hj-tci{width:40px;height:40px;display:block}
.g-hajj .hj-tci svg{width:100%;height:100%;display:block}
.g-hajj .hj-count{flex:none;min-width:200px;font-size:1.3rem}
.g-hajj .row .btn.big{flex:0 1 auto}
.g-hajj .hj-flash{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center;margin-block:0;padding:8px 12px;border-radius:16px;border:2.5px solid var(--good);background:var(--good-soft);color:var(--ink);font-weight:700;line-height:1.35;animation:hjPop .35s cubic-bezier(.2,1.5,.4,1)}
.g-hajj .hj-flash.bad{border-color:color-mix(in srgb,var(--bad) 55%,var(--line));background:var(--bad-soft)}
.g-hajj .hj-fface svg{width:40px;height:40px;display:block}

/* things to tap in the scenes */
.g-hajj .hj-tent,.g-hajj .hj-st,.g-hajj .hj-jam{cursor:pointer;outline:none}
.g-hajj .hj-tent:hover path,.g-hajj .hj-jam:hover path{filter:brightness(1.06)}
.g-hajj .hj-tent.bad{opacity:.55}
.g-hajj .hj-tent.ok path:first-child{fill:#d2f1e4}
.g-hajj .hj-st:focus-visible ellipse,.g-hajj .hj-tent:focus-visible path,.g-hajj .hj-jam:focus-visible path{stroke:#ffc640;stroke-width:3}
.g-hajj .hj-jam.done{cursor:default}

/* motion */
.g-hajj .hj-hay{transform-box:fill-box;transform-origin:50% 100%}
.g-hajj .hj-hop{animation:hjHop .7s cubic-bezier(.2,1.4,.4,1)}
.g-hajj .hj-tilt{animation:hjTilt .6s ease}
.g-hajj .hj-pop{transform-box:fill-box;transform-origin:50% 80%;animation:hjPop .45s cubic-bezier(.2,1.6,.4,1) both}
.g-hajj .hj-shake{animation:hjShake .45s}
.g-hajj .hj-lamp{transition:fill .2s}
.g-hajj .hj-lamp.near{fill:#7dffb1;filter:drop-shadow(0 0 6px #22d36b)}
.g-hajj .hj-lamp.on{fill:#fff;filter:drop-shadow(0 0 10px #22d36b)}
.g-hajj .hj-glow{animation:hjGlow 1.4s ease-in-out infinite alternate}
.g-hajj .hj-set{animation:hjSet 2.4s ease-out both}
.g-hajj .hj-tw{animation:hjTw 1.6s ease-in-out infinite alternate}
.g-hajj .hj-tw.t1{animation-delay:.5s}
.g-hajj .hj-tw.t2{animation-delay:1s}
.g-hajj .hj-tk{animation:hjUp .9s ease-out both}
@keyframes hjRing{0%,100%{opacity:.35;transform:scale(.92)}50%{opacity:1;transform:scale(1.06)}}
@keyframes hjHop{0%{transform:translateY(0)}35%{transform:translateY(-9%)}65%{transform:translateY(0) scale(1.04,.96)}100%{transform:none}}
@keyframes hjTilt{0%,100%{transform:rotate(0)}30%{transform:rotate(-6deg)}65%{transform:rotate(4deg)}}
@keyframes hjPop{0%{transform:scale(.2);opacity:0}100%{transform:scale(1);opacity:1}}
@keyframes hjShake{0%,100%{transform:translateX(0)}20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)}}
@keyframes hjGlow{from{opacity:.55}to{opacity:1}}
@keyframes hjSet{from{transform:translateY(-70px)}to{transform:none}}
@keyframes hjTw{from{opacity:.25}to{opacity:1}}
@keyframes hjUp{0%{opacity:0;transform:translateY(6px)}20%{opacity:1}100%{opacity:0;transform:translateY(-26px)}}
@media (max-width:560px){
  .g-hajj .hj-places{grid-template-columns:repeat(6,minmax(0,1fr))}
  .g-hajj .hj-places .hj-pl{grid-column:span 2}
  .g-hajj .hj-places .hj-pl:nth-child(4):nth-last-child(2){grid-column:2 / span 2}
  .g-hajj .hj-places .hj-pl:not(.pic){min-height:52px}
  .g-hajj .hj-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
  .g-hajj .hj-tc{font-size:.85rem;padding:6px 4px}
}
@media (min-width:700px){
  .g-hajj .hj-shelf.c5{grid-template-columns:repeat(5,minmax(0,1fr))}
  .g-hajj .choices.one.hj-keys{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:900px){.g-hajj .hj-stage{max-width:580px}}
@media (prefers-reduced-motion:reduce){.g-hajj .hj-ring,.g-hajj .hj-hop,.g-hajj .hj-tilt,.g-hajj .hj-glow,.g-hajj .hj-tw,.g-hajj .hj-set{animation:none}}


/* ===== new game: freekick ===== */
.g-freekick{--fkw:590px;--wt:var(--wc)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .g-freekick{--wt:color-mix(in srgb,var(--wc) 50%,#fff)}}
:root[data-theme="dark"] .g-freekick{--wt:color-mix(in srgb,var(--wc) 50%,#fff)}
.g-freekick .fk-wrap{display:flex;flex-direction:column;gap:12px}
.g-freekick .ask{max-width:var(--fkw);width:100%;margin-inline:auto;background:color-mix(in srgb,var(--wc) 14%,var(--surface))}
.g-freekick .fk-stage{max-width:var(--fkw);background:#141a3e;touch-action:none;cursor:crosshair}
.g-freekick .fk-stage.pow{cursor:pointer}
.g-freekick .fk-svg{display:block;width:100%;height:auto;user-select:none;-webkit-user-select:none}
.g-freekick .fk-ctl{max-width:var(--fkw);width:100%;margin-inline:auto;display:flex;flex-direction:column;gap:10px}
.g-freekick .fk-curl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.g-freekick .fk-cb{display:flex;align-items:center;justify-content:center;gap:6px;min-height:50px;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:16px;font-weight:800;font-size:1rem;line-height:1.1;padding:4px 6px}
.g-freekick .fk-cb svg{width:28px;height:28px;flex:none;color:var(--wt)}
.g-freekick .fk-cb:hover:not(:disabled){border-color:var(--wc)}
.g-freekick .fk-cb[aria-pressed="true"]{border-color:var(--wc);background:var(--ws);box-shadow:0 3px 0 color-mix(in srgb,var(--wc) 45%,transparent)}
.g-freekick .fk-cb:disabled{opacity:.55;cursor:default}
.g-freekick .fk-pow{display:flex;flex-direction:column;gap:3px;transition:opacity .2s}
.g-freekick .fk-pow.idle{opacity:.5}
.g-freekick .fk-track{position:relative;width:100%;padding-top:16px}
.g-freekick .fk-bar{display:grid;width:100%;height:24px;border-radius:999px;overflow:hidden;border:3px solid var(--ink)}
.g-freekick .fk-bar i{display:block;height:100%}
.g-freekick .fk-bar .lo{background:#ffd666}.g-freekick .fk-bar .ok{background:#2fc77a}.g-freekick .fk-bar .hi{background:#e5483f}
.g-freekick .fk-track b{position:absolute;top:0;bottom:-3px;width:0}
.g-freekick .fk-track b::before{content:"";position:absolute;left:-10px;top:-2px;border-left:10px solid transparent;border-right:10px solid transparent;border-top:16px solid var(--ink)}
.g-freekick .fk-track b::after{content:"";position:absolute;left:-3px;top:11px;bottom:0;width:6px;border-radius:3px;background:var(--ink);box-shadow:0 0 0 2px var(--surface)}
.g-freekick .fk-lab{display:grid;width:100%;font-size:.82rem;font-weight:700;color:var(--muted);text-align:center}
.g-freekick .fk-row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.g-freekick .fk-kick{min-width:170px;font-size:1.3rem}
.g-freekick .hint{margin:0}
.g-freekick .fk-fact{display:block;margin-top:4px;color:var(--muted);font-weight:600}
.g-freekick .fk-fin{display:block;margin-top:4px;color:var(--wt)}
.g-freekick .fb{max-width:var(--fkw);width:100%;margin-inline:auto}
@media (hover:none),(max-width:600px){.g-freekick .fk-keys{display:none}}
@media (max-width:420px){.g-freekick .fk-cb{font-size:.9rem;gap:4px}.g-freekick .fk-cb svg{width:24px;height:24px}}
/* the scene */
.g-freekick .fk-wflag{transform-box:fill-box;transform-origin:0% 100%;animation:fk-flagw 1.1s ease-in-out infinite alternate;animation-delay:var(--d,0s)}
@keyframes fk-flagw{from{transform:skewY(-6deg)}to{transform:skewY(6deg)}}
.g-freekick .fk-flag{transform-box:fill-box;transform-origin:0% 50%;animation:fk-flap var(--fd,.8s) ease-in-out infinite alternate}
@keyframes fk-flap{from{transform:scaleY(.82) skewY(-5deg)}to{transform:scaleY(1.06) skewY(5deg)}}
.g-freekick .fk-tgt{animation:fk-pulse 1.1s ease-in-out infinite}
@keyframes fk-pulse{50%{opacity:.7}}
.g-freekick .fk-ring{animation:fk-pulse 1.3s ease-in-out infinite}
.g-freekick .fk-svg.cheer .fk-col{animation:fk-ola 1.4s ease-in-out infinite;animation-delay:calc(var(--i) * .03s)}
@keyframes fk-ola{0%,60%,100%{transform:translateY(0)}25%{transform:translateY(-6px)}}
.g-freekick .fk-hop.on{transform-box:fill-box;transform-origin:50% 100%;animation:fk-hop .6s ease-in-out infinite}
@keyframes fk-hop{0%,100%{transform:translateY(0)}50%{transform:translateY(-34px)}}
.g-freekick .fk-banner,.g-freekick .fk-bub{transform-box:fill-box;transform-origin:center;animation:fk-pop .5s cubic-bezier(.2,1.6,.4,1) both}
.g-freekick .fk-bub{animation-delay:.15s}
@keyframes fk-pop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}
.g-freekick .fk-burst{transform-box:fill-box;transform-origin:center;animation:fk-burst .7s cubic-bezier(.2,1.5,.4,1) both}
@keyframes fk-burst{from{transform:scale(.2);opacity:0}60%{opacity:1}to{transform:scale(1);opacity:.9}}
.g-freekick .fk-flashes circle{opacity:0;animation:fk-flash 1.6s ease-out infinite}
@keyframes fk-flash{0%,100%{opacity:0}6%{opacity:1}18%{opacity:0}}
@media (prefers-reduced-motion:reduce){.g-freekick .fk-burst,.g-freekick .fk-flashes circle{animation:none!important}.g-freekick .fk-flashes{display:none}.g-freekick .fk-wflag,.g-freekick .fk-flag,.g-freekick .fk-tgt,.g-freekick .fk-ring,.g-freekick .fk-col,.g-freekick .fk-hop,.g-freekick .fk-banner,.g-freekick .fk-bub{animation:none!important}}


/* ===== new game: coach ===== */
.g-coach .cl-wrap{display:flex;flex-direction:column;gap:12px;width:100%;max-width:1040px;margin-inline:auto}
.g-coach .cl-main,.g-coach .cl-lmain,.g-coach .cl-setup{display:flex;flex-direction:column;gap:12px}
.g-coach .cl-left,.g-coach .cl-right,.g-coach .cl-lside{display:flex;flex-direction:column;gap:12px;min-width:0}
@media (min-width:900px){
  .g-coach .cl-main{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start}
  .g-coach .cl-lmain{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
  .g-coach .cl-setup{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:start}
}
.g-coach .cl-stage{max-width:720px;background:#1d2a5c}
.g-coach .cl-svg,.g-coach .cl-ssvg{display:block;width:100%;height:auto}
.g-coach .cl-lstage{max-width:460px;background:#2f9e4f}

/* the scoreboard */
.g-coach .cl-score{display:flex;align-items:center;gap:10px;background:#0b1433;color:#fff;border-radius:18px;padding:8px 14px;border:3px solid var(--wc)}
.g-coach .cl-tm{display:flex;align-items:center;gap:7px;min-width:0;flex:1;font-size:1.02rem}
.g-coach .cl-tm.r{justify-content:flex-end}
.g-coach .cl-tm b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-coach .cl-fl{width:30px;height:20px;flex:none;display:block}
.g-coach .cl-bd{width:28px;height:28px;flex:none;display:block}
.g-coach .cl-sc{display:flex;align-items:center;gap:6px;font-size:1.75rem;font-weight:800;color:#ffc640;font-variant-numeric:tabular-nums;line-height:1}
.g-coach .cl-sc i{font-style:normal;color:#fff;opacity:.7}
.g-coach .cl-min{display:flex;flex-direction:column;align-items:center;background:#ffc640;color:#1a2042;border-radius:10px;padding:2px 8px;min-width:46px;font-variant-numeric:tabular-nums;line-height:1.15}
.g-coach .cl-min small{font-size:.7rem;font-weight:800}
.g-coach .cl-chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-coach .cl-chips .chip{font-size:.85rem}
.g-coach .cl-redc{background:var(--bad-soft);color:var(--bad)}

/* ticker and facts */
.g-coach .cl-tick{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;min-height:40px}
.g-coach .cl-tick li{background:var(--surface);border:2px solid var(--line);border-inline-start:6px solid var(--line);border-radius:12px;padding:6px 10px;font-size:.98rem;line-height:1.3;animation:cltick .35s ease both}
.g-coach .cl-tick li b{color:var(--muted);margin-inline-end:4px;font-variant-numeric:tabular-nums}
.g-coach .cl-tick li.k-gu{border-inline-start-color:#12a06a;background:var(--good-soft);font-weight:800}
.g-coach .cl-tick li.k-gt{border-inline-start-color:#e5484d;background:var(--bad-soft)}
.g-coach .cl-tick li.k-card,.g-coach .cl-tick li.k-red{border-inline-start-color:#ffc640}
.g-coach .cl-tick li.k-sub,.g-coach .cl-tick li.k-coach{border-inline-start-color:var(--wc)}
.g-coach .cl-tick li.k-inj{border-inline-start-color:#e5484d}
.g-coach .cl-tick li.k-ht,.g-coach .cl-tick li.k-ft,.g-coach .cl-tick li.k-ko{border-inline-start-color:#1a2042;font-weight:700}
@keyframes cltick{from{opacity:0;transform:translateY(-6px)}}
.g-coach .cl-fact{max-width:none;margin:0}
.g-coach .cl-row{justify-content:center}

/* a call */
.g-coach .cl-dec{display:flex;flex-direction:column;gap:10px;padding:14px}
.g-coach .cl-dh{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center}
.g-coach .cl-di svg{width:44px;height:44px;display:block}
.g-coach .cl-dh h3{font-size:1.22rem;font-weight:800;line-height:1.2;margin:1px 0}
.g-coach .cl-dh .sub{font-size:.95rem;line-height:1.3}
.g-coach .kicker{font-size:.8rem;font-weight:800;color:var(--wc);letter-spacing:.02em}
.g-coach .cl-hint{display:flex;gap:10px;align-items:center;background:var(--ws);border-radius:14px;padding:8px 10px}
.g-coach .cl-hint p{font-size:.98rem;line-height:1.35;font-weight:600}
.g-coach .cl-hface{width:46px;height:46px;flex:none;border-radius:50%;background:#cdeedd;overflow:hidden;display:block}
.g-coach .cl-hface svg{width:100%;height:100%;display:block}
.g-coach .cl-opts{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
@media (min-width:560px){ .g-coach .cl-opts.cl-two{grid-template-columns:repeat(2,minmax(0,1fr))} }
.g-coach .cl-opt{display:flex;align-items:center;gap:10px;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:16px;padding:7px 12px;min-height:58px;text-align:start;width:100%}
.g-coach .cl-opt:hover:not(:disabled){border-color:var(--wc)}
.g-coach .cl-opt:disabled{cursor:default}
.g-coach .cl-opt.yes{border-color:var(--good);background:var(--good-soft)}
.g-coach .cl-opt.no{border-color:var(--bad);background:var(--bad-soft)}
.g-coach .cl-opt.dim{opacity:.5}
.g-coach .cl-oi{width:40px;height:40px;flex:none;border-radius:12px;background:var(--surface-2);display:grid;place-items:center}
.g-coach .cl-oi svg{width:32px;height:32px;display:block}
.g-coach .cl-ot{display:flex;flex-direction:column;min-width:0;gap:1px}
.g-coach .cl-ot b{font-size:1.06rem;line-height:1.2}
.g-coach .cl-ot small{color:var(--muted);font-size:.88rem;line-height:1.25}
.g-coach .cl-k{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;background:var(--surface-2);color:var(--muted);font-size:.75rem;margin-inline-end:6px;vertical-align:1px}
.g-coach .cl-ob{display:flex;align-items:center;gap:6px;margin-top:3px}
.g-coach .cl-notes{display:block;margin-top:6px;font-size:.95rem;color:var(--muted)}

/* players as chips: bench, substitutions, penalties */
.g-coach .cl-swap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.g-coach .cl-scol{display:flex;flex-direction:column;gap:6px;min-width:0}
.g-coach .cl-sh{font-weight:800;font-size:1rem;display:flex;flex-wrap:wrap;gap:2px 8px;align-items:baseline}
.g-coach .cl-sh small{color:var(--muted);font-weight:600;font-size:.82rem}
.g-coach .cl-chip{position:relative;display:flex;align-items:center;gap:7px;border:2px solid var(--line);background:var(--surface);color:var(--ink);border-radius:14px;padding:5px 8px;min-height:50px;text-align:start;width:100%;min-width:0}
.g-coach .cl-chip > svg:first-child{width:30px;height:26px;flex:none;display:block}
.g-coach .cl-chip > span{display:flex;flex-direction:column;min-width:0;flex:1;gap:1px}
.g-coach .cl-chip b{font-size:.98rem;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-coach .cl-chip small{font-size:.76rem;color:var(--muted);line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-coach .cl-chip.on{border-color:var(--wc);background:var(--ws);box-shadow:0 0 0 2px var(--wc)}
.g-coach .cl-chip:disabled{opacity:.45;cursor:default}
.g-coach .cl-chip.on:disabled{opacity:1}
.g-coach .cl-chip.out{opacity:.6;border-style:dashed}
.g-coach .cl-tag{position:absolute;top:-8px;inset-inline-end:-6px;background:var(--bad);color:#fff;border-radius:999px;font-size:.72rem;font-weight:800;padding:0 7px;line-height:1.5}
.g-coach .cl-tag.in{background:var(--good)}
.g-coach .cl-bar{display:block;width:100%;max-width:96px;height:7px;border-radius:4px;background:var(--surface-2);overflow:hidden;margin-top:2px}
.g-coach .cl-bar i{display:block;height:100%;border-radius:4px}
.g-coach .cl-fm{width:16px;height:16px;flex:none;display:block}
.g-coach .cl-queue{display:flex;flex-wrap:wrap;gap:6px}
.g-coach .cl-qi{border:2px solid var(--good);background:var(--good-soft);color:var(--ink);border-radius:12px;padding:5px 10px;font-size:.92rem}
.g-coach .cl-qi small{color:var(--muted)}

.g-coach p.cl-subl{text-align:center;font-size:.92rem}
.g-coach .cl-pk{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}

/* the shootout board */
.g-coach .cl-pboard{display:flex;flex-direction:column;gap:8px;padding:14px}
.g-coach .cl-prow{display:grid;grid-template-columns:30px 76px minmax(0,1fr);gap:8px;align-items:center}
.g-coach .cl-pdots{display:flex;flex-wrap:wrap;gap:5px}
.g-coach .cl-pdots i{width:24px;height:24px;border-radius:50%;border:2px solid var(--line);background:var(--surface-2);display:grid;place-items:center;font-style:normal;font-weight:800;font-size:.85rem;color:#fff}
.g-coach .cl-pdots i.ok{background:var(--good);border-color:var(--good)}
.g-coach .cl-pdots i.no{background:var(--bad);border-color:var(--bad)}
.g-coach .cl-now{font-weight:700;text-align:center;min-height:1.4em}
.g-coach .cl-pkw{display:flex;gap:8px;align-items:center;background:var(--bad-soft);border-radius:12px;padding:6px 10px;font-size:.95rem}
.g-coach .cl-pkw.ok{background:var(--good-soft)}
.g-coach .cl-pkw svg{width:30px;height:30px;flex:none}

/* full time and the cup */
.g-coach .cl-ft{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:14px}
.g-coach .cl-fts{display:flex;align-items:center;gap:14px;font-size:2.3rem;font-weight:800;line-height:1}
.g-coach .cl-fts .cl-fl{width:48px;height:32px}
.g-coach .cl-fts .cl-bd{width:40px;height:40px}
.g-coach .cl-ftp{font-weight:700;color:var(--muted)}
.g-coach .cl-cup{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}
.g-coach .cl-cup > i{font-style:normal;color:var(--muted);font-weight:800}
.g-coach .cl-cs{display:flex;flex-direction:column;align-items:center;border:2px solid var(--line);border-radius:12px;padding:4px 10px;background:var(--surface);min-width:88px}
.g-coach .cl-cs b{font-size:.88rem}
.g-coach .cl-cs small{font-size:.76rem;color:var(--muted)}
.g-coach .cl-cs.now{border-color:var(--wc);background:var(--ws)}
.g-coach .cl-cs.won{border-color:var(--good);background:var(--good-soft)}
.g-coach .cl-cs.lost{border-color:var(--bad);background:var(--bad-soft)}
.g-coach .cl-cupw{display:flex;flex-direction:column;gap:6px;align-items:center;padding:10px}

/* setting up: scout report, formations, the team sheet */
.g-coach .cl-says{margin:0}
.g-coach .cl-scout{display:flex;gap:12px;align-items:center;padding:12px}
.g-coach .cl-tab{width:150px;flex:none}
.g-coach .cl-tab svg{display:block;width:100%;height:auto}
.g-coach .cl-scb{display:flex;flex-direction:column;gap:4px;min-width:0}
.g-coach .cl-scb h3{display:flex;align-items:center;gap:8px;font-size:1.2rem;font-weight:800}
.g-coach .cl-scb p{font-size:.98rem;line-height:1.4}

.g-coach .cl-forms{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:6px}
.g-coach .cl-fbtn{display:flex;align-items:center;gap:12px;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:16px;padding:8px 12px;text-align:start;width:100%}
.g-coach .cl-fbtn svg{width:96px;height:auto;flex:none;display:block}
.g-coach .cl-fbtn span{display:flex;flex-direction:column;min-width:0}
.g-coach .cl-fbtn b{font-size:1.25rem;line-height:1.1}
.g-coach .cl-fbtn small{color:var(--muted);font-size:.9rem;line-height:1.3}
.g-coach .cl-fbtn:hover:not(:disabled){border-color:var(--wc)}
.g-coach .cl-fbtn.on{border-color:var(--wc);background:var(--ws);box-shadow:0 0 0 2px var(--wc)}
.g-coach .cl-fbtn.yes{border-color:var(--good);background:var(--good-soft)}
.g-coach .cl-fbtn.no{border-color:var(--bad);background:var(--bad-soft)}
.g-coach .cl-fbtn.dim{opacity:.5}
.g-coach .cl-fbtn:disabled{cursor:default}
.g-coach .cl-tok{cursor:pointer}
.g-coach .cl-tok.dim{opacity:.45}
.g-coach .cl-tok:focus{outline:none}
.g-coach .cl-tok:focus-visible rect:first-child{stroke:#fff;stroke-width:3}
.g-coach .cl-bench,.g-coach .cl-capw{display:flex;flex-direction:column;gap:6px}
.g-coach .cl-bgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.g-coach .cl-caps{display:flex;flex-wrap:wrap;gap:6px}
.g-coach .cl-cap{display:flex;flex-direction:column;align-items:flex-start;border:2px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:4px 10px;text-align:start;min-height:44px;justify-content:center}
.g-coach .cl-cap b{font-size:.95rem;line-height:1.1}
.g-coach .cl-cap small{font-size:.74rem;color:var(--muted);line-height:1.15}
.g-coach .cl-cap.on{border-color:#e9a312;background:color-mix(in srgb,#ffc640 30%,var(--surface));box-shadow:0 0 0 2px #e9a312}
.g-coach .cl-cap.on small{color:var(--ink)}
.g-coach .cl-cap:disabled{cursor:default}
.g-coach .cl-vs{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;font-size:1.15rem;padding:10px}
.g-coach .cl-vs i{font-style:normal;color:var(--muted);font-weight:800}
.g-coach .cl-vs .cl-fl{width:36px;height:24px}
.g-coach .cl-vs .cl-bd{width:30px;height:30px}

/* little life in the stadium */
.g-coach .cl-hy{transform-box:fill-box;transform-origin:50% 100%}
.g-coach .cl-hy.hop{animation:clhop .45s ease 3}
.g-coach .cl-hy.sad{animation:clsad .8s ease 1}
@keyframes clhop{50%{transform:translateY(-7px)}}
@keyframes clsad{40%{transform:rotate(-6deg)}80%{transform:rotate(4deg)}}
.g-coach .cl-crowd.cheer{animation:clcheer .3s ease 5}
@keyframes clcheer{50%{transform:translateY(-2.5px)}}
.g-coach .cl-flag{transform-box:fill-box;transform-origin:0 100%;animation:clwave 1.8s ease-in-out infinite;animation-delay:var(--d)}
@keyframes clwave{50%{transform:rotate(-7deg)}}
.g-coach .cl-rain rect{animation:clrain .45s linear infinite}
@keyframes clrain{to{transform:translate(-18px,22px)}}
.g-coach .cl-ring{animation:clring 1s ease-in-out infinite}
@keyframes clring{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){
  .g-coach .cl-hy,.g-coach .cl-crowd,.g-coach .cl-flag,.g-coach .cl-rain rect,.g-coach .cl-ring,.g-coach .cl-tick li{animation:none!important}
}
@media (max-width:899px){ .g-coach .cl-call .cl-right{order:-1} }
@media (max-width:440px){
  .g-coach .cl-score{gap:6px;padding:7px 9px}
  .g-coach .cl-tm{font-size:.9rem;gap:5px}
  .g-coach .cl-sc{font-size:1.5rem;gap:4px}
  .g-coach .cl-fl{width:26px;height:17px}
  .g-coach .cl-bd{width:24px;height:24px}
  .g-coach .cl-min{min-width:40px;padding:2px 6px}
}
.g-coach .cl-tab{position:relative}
.g-coach .cl-thy{position:absolute;right:-8px;bottom:-10px;width:40px;height:40px;border-radius:50%;background:#cdeedd;border:2px solid var(--line);overflow:hidden}
.g-coach .cl-thy svg{width:100%;height:100%;display:block}
.g-coach .cl-fcol{display:flex;flex-direction:column;gap:8px}
.g-coach .cl-forms.sm{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:0}
.g-coach .cl-forms.sm .cl-fbtn{flex-direction:column;gap:4px;padding:6px;align-items:center;text-align:center}
.g-coach .cl-forms.sm .cl-fbtn svg{width:100%;max-width:110px}
.g-coach .cl-forms.sm .cl-fbtn b{font-size:1.05rem}
.g-coach .cl-fdesc{font-size:.95rem;color:var(--muted)}
.g-coach .cl-cupw{display:flex;justify-content:center}
@media (max-width:460px){ .g-coach .cl-scout{flex-direction:row;align-items:center} .g-coach .cl-tab{width:112px;max-width:none;align-self:center} .g-coach .cl-scb p{font-size:.92rem} .g-coach .cl-thy{width:32px;height:32px} }
@media (max-width:560px){ .g-coach .cl-scol.onp .cl-chip:nth-of-type(n+5){display:none} }
.g-coach .fb{background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:10px 14px;width:100%;max-width:none;margin-inline:auto;font-size:1.02rem;line-height:1.4}
.g-coach .fb.good{border-color:var(--good);background:var(--good-soft)}
.g-coach .fb.bad{border-color:color-mix(in srgb,var(--bad) 55%,var(--line));background:var(--bad-soft)}
.g-coach .cl-says .bub .speak,.g-coach .cl-scb p .speak,.g-coach .cl-fact p .speak,.g-coach .cl-hint p .speak{vertical-align:middle;margin-block:-8px}


/* ===== new game: keepy ===== */
.g-keepy{--kpw:600px;--wt:var(--wc)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .g-keepy{--wt:color-mix(in srgb,var(--wc) 50%,#fff)}}
:root[data-theme="dark"] .g-keepy{--wt:color-mix(in srgb,var(--wc) 50%,#fff)}
.g-keepy .kp-wrap{display:flex;flex-direction:column;gap:10px}
.g-keepy .ask{max-width:var(--kpw);width:100%;margin-inline:auto;background:color-mix(in srgb,var(--wc) 14%,var(--surface))}
.g-keepy .kp-place{max-width:var(--kpw);width:100%;margin-inline:auto;display:flex;justify-content:space-between;align-items:center;gap:8px}
.g-keepy .kp-try{font-weight:800;color:var(--muted);font-size:.95rem}
.g-keepy .kp-stage{max-width:var(--kpw);touch-action:none;cursor:pointer;background:#8fd0f5}
.g-keepy .kp-svg{display:block;width:100%;height:auto;user-select:none;-webkit-user-select:none}
.g-keepy .hint{margin:0;max-width:var(--kpw);margin-inline:auto}
.g-keepy .kp-row{display:flex;justify-content:center}
.g-keepy .kp-fact{display:block;margin-top:4px;color:var(--muted);font-weight:600}
.g-keepy .fb{max-width:var(--kpw);width:100%;margin-inline:auto}
.g-keepy .kp-list{max-width:var(--kpw);width:100%;margin-inline:auto;display:flex;flex-wrap:wrap;gap:6px;align-items:center;background:var(--surface);border:2px solid var(--line);border-radius:16px;padding:8px 10px}
.g-keepy .kp-list b{font-size:.9rem;color:var(--muted);margin-inline-end:4px}
.g-keepy .kp-chip{display:inline-flex;align-items:center;border-radius:999px;padding:2px 10px;font-weight:800;font-size:.92rem;background:var(--surface-2);color:var(--muted);border:2px solid transparent}
.g-keepy .kp-chip.next{background:var(--ws);color:var(--ink);border-color:var(--wc)}
.g-keepy .kp-chip.done{background:var(--good-soft);color:var(--good)}
@media (hover:none),(max-width:600px){.g-keepy .kp-keys{display:none}}
/* the places */
.g-keepy .kp-cloud{animation:kp-drift 26s linear infinite}
@keyframes kp-drift{from{transform:translateX(-60px)}to{transform:translateX(460px)}}
.g-keepy .kp-waves{animation:kp-wave 3s ease-in-out infinite alternate}
@keyframes kp-wave{from{transform:translateX(-10px)}to{transform:translateX(10px)}}
.g-keepy .kp-boat{animation:kp-bob 2.4s ease-in-out infinite alternate}
@keyframes kp-bob{from{transform:translate(250px,160px) rotate(-3deg)}to{transform:translate(250px,163px) rotate(3deg)}}
.g-keepy .kp-sway{animation:kp-sway 3.2s ease-in-out infinite alternate}
@keyframes kp-sway{from{transform:rotate(-2deg)}to{transform:rotate(2.5deg)}}
.g-keepy .kp-gulls{animation:kp-gull 14s linear infinite}
@keyframes kp-gull{from{transform:translate(-200px,10px)}50%{transform:translate(60px,-6px)}to{transform:translate(320px,8px)}}
.g-keepy .kp-lamp{transform-box:fill-box;transform-origin:50% 0;animation:kp-lamp 2.6s ease-in-out infinite alternate}
@keyframes kp-lamp{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}
.g-keepy .kp-water{stroke-dasharray:4 4;animation:kp-flow .5s linear infinite}
@keyframes kp-flow{to{stroke-dashoffset:-8}}
.g-keepy .kp-wind path{opacity:0;animation:kp-gust 1.5s linear infinite}
.g-keepy .kp-wind.left{transform:scale(-1,1);transform-origin:200px 0}
@keyframes kp-gust{0%{opacity:0;transform:translateX(-30px)}30%{opacity:.8}100%{opacity:0;transform:translateX(70px)}}
.g-keepy .kp-svg.cheer .kp-col{animation:kp-ola 1.3s ease-in-out infinite;animation-delay:calc(var(--i) * .03s)}
@keyframes kp-ola{0%,60%,100%{transform:translateY(0)}25%{transform:translateY(-6px)}}
/* the play */
.g-keepy .kp-tapme{animation:kp-pulse 1s ease-in-out infinite}
@keyframes kp-pulse{50%{opacity:.35}}
.g-keepy .kp-pop{animation:kp-up 1s ease-out forwards}
.g-keepy .kp-pop.big{animation-duration:1.2s}
@keyframes kp-up{from{transform:translateY(6px);opacity:0}15%{opacity:1}70%{opacity:1}to{transform:translateY(-30px);opacity:0}}
.g-keepy .kp-puff{transform-box:fill-box;transform-origin:center;animation:kp-puff .45s ease-out forwards}
@keyframes kp-puff{from{transform:scale(.7);opacity:.9}to{transform:scale(1.6);opacity:0}}
.g-keepy .kp-spark > g{animation:kp-spark .75s ease-out forwards}
@keyframes kp-spark{from{transform:translate(0,0) scale(.4);opacity:1}to{transform:translate(var(--dx),var(--dy)) scale(1);opacity:0}}
.g-keepy .kp-bubin,.g-keepy .kp-banner{transform-box:fill-box;transform-origin:center;animation:kp-in .4s cubic-bezier(.2,1.6,.4,1) both}
@keyframes kp-in{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.g-keepy .kp-cloud,.g-keepy .kp-waves,.g-keepy .kp-boat,.g-keepy .kp-sway,.g-keepy .kp-gulls,.g-keepy .kp-lamp,.g-keepy .kp-water,.g-keepy .kp-col,.g-keepy .kp-tapme,.g-keepy .kp-spark > g,.g-keepy .kp-bubin,.g-keepy .kp-banner{animation:none!important}.g-keepy .kp-wind path{animation:none;opacity:.5}.g-keepy .kp-pop{animation:none}}


/* ===== new game: taxi ===== */
.g-taxi .tx-wrap{display:grid;gap:12px;margin-top:12px}
.g-taxi .tx-l,.g-taxi .tx-r{display:flex;flex-direction:column;gap:10px;min-width:0}
@media (min-width:900px){.g-taxi .tx-wrap{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start}.g-taxi .tx-l{position:sticky;top:84px}}
@media (max-width:899px){.g-taxi .tx-wrap.tx-rf .tx-r{order:-1}}
.g-taxi .tx-stage{max-width:640px;width:100%;margin-inline:auto;background:#f1e9d8}
.g-taxi .tx-stage>svg{display:block;width:100%;height:auto}
.g-taxi .tx-mapst{touch-action:manipulation;cursor:pointer}
.g-taxi svg text{font-family:var(--font-ui)}
/* the map */
.g-taxi .tx-lbl{font-size:8.6px;font-weight:800;fill:#1a2042;paint-order:stroke;stroke:rgba(255,250,240,.92);stroke-width:2.6px;stroke-linejoin:round}
.g-taxi .tx-lbl.sm{font-size:7.5px;fill:#2f6b3a}
.g-taxi .tx-sea{font-size:9px;font-weight:700;font-style:italic;fill:#e8f6ff;opacity:.9}
.g-taxi .tx-route{fill:none;stroke:#ffc640;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;opacity:.85;stroke-dasharray:1 9;animation:txDash 1s linear infinite}
@keyframes txDash{to{stroke-dashoffset:-20}}
.g-taxi .tx-pinring{fill:none;stroke:#c1272d;stroke-width:2.4;animation:txRing 1.6s ease-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes txRing{from{opacity:.9;transform:scale(.5)}to{opacity:0;transform:scale(1.6)}}
.g-taxi .tx-arr{cursor:pointer}
.g-taxi .tx-arrc{fill:rgba(255,255,255,.78);stroke:#1a2042;stroke-width:1.6}
.g-taxi .tx-arrp{fill:#1a2042}
.g-taxi .tx-arr.want .tx-arrc{fill:#ffc640;stroke-width:2.2}
.g-taxi .tx-arr.want{animation:txPop 1s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes txPop{50%{opacity:.65}}
.g-taxi .tx-led{font-family:"Courier New",ui-monospace,monospace;font-size:30px;font-weight:800;fill:#3ddc84;letter-spacing:1px}
.g-taxi .tx-led.big{font-size:40px}
.g-taxi .tx-ml{font-size:9px;font-weight:800;fill:#ffc640;letter-spacing:.5px}
.g-taxi .tx-bub{font-size:13px;font-weight:800;fill:#1a2042}
.g-taxi .tx-cn{font-size:10px;font-weight:800;fill:#1a2042}
.g-taxi .tx-signt{font-size:14px;font-weight:800;fill:#1a2042}
.g-taxi .tx-wave,.g-taxi .tx-bye{animation:txWave .9s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 100%}
@keyframes txWave{to{transform:rotate(-3deg)}}
/* cabin and controls */
.g-taxi .tx-cabin{display:block;width:100%;height:auto;max-width:640px;margin-inline:auto;border-radius:14px}
.g-taxi .tx-colors{display:block;width:100%;height:auto;background:linear-gradient(#cfeaf8,#f6efe0)}
.g-taxi .tx-ctrl{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}
.g-taxi .tx-pad{display:grid;grid-template-columns:repeat(3,52px);grid-template-rows:repeat(2,52px);gap:6px}
.g-taxi .tx-d{min-width:52px;min-height:52px;padding:0;border-radius:14px;background:var(--surface-2);color:var(--ink);box-shadow:0 4px 0 var(--line)}
.g-taxi .tx-d svg{width:24px;height:24px}
.g-taxi .tx-d:disabled{opacity:.3}
.g-taxi .tx-d-up{grid-column:2;grid-row:1}.g-taxi .tx-d-left{grid-column:1;grid-row:2}.g-taxi .tx-d-down{grid-column:2;grid-row:2}.g-taxi .tx-d-right{grid-column:3;grid-row:2}
.g-taxi .tx-d.tx-want:not(:disabled){background:#ffc640;color:#1a2042;box-shadow:0 4px 0 #b88708;animation:txWant 1s ease-in-out infinite}
@keyframes txWant{50%{transform:translateY(-3px)}}
.g-taxi .tx-sg{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:118px;height:110px;border:0;border-radius:24px;font:800 1.25rem var(--font-ui);color:#fff;cursor:pointer;box-shadow:0 6px 0 rgba(0,0,0,.25)}
.g-taxi .tx-sg svg{width:40px;height:40px}
.g-taxi .tx-sg.stop{background:#d62f2f}
.g-taxi .tx-sg.go{background:#12a06a}
.g-taxi .tx-sg:disabled{background:var(--surface-2);color:var(--muted);box-shadow:none;cursor:default}
.g-taxi .tx-sg:disabled svg *{fill:var(--muted)}
.g-taxi .tx-sg:not(:disabled):active{transform:translateY(3px);box-shadow:0 3px 0 rgba(0,0,0,.25)}
.g-taxi .tx-haz{text-align:center;font-weight:800;border-radius:14px;padding:8px 12px;background:var(--surface-2);border:2px solid var(--line)}
.g-taxi .tx-haz.warn{background:var(--bad-soft);border-color:var(--bad);color:var(--ink);animation:txWarn .6s ease-in-out infinite alternate}
.g-taxi .tx-haz.wait{background:color-mix(in srgb,#ffc640 30%,var(--surface));border-color:#e9a312}
.g-taxi .tx-haz.go{background:var(--good-soft);border-color:var(--good)}
.g-taxi .tx-haz.pick{background:var(--ws);border-color:var(--wc)}
@keyframes txWarn{to{box-shadow:0 0 0 4px color-mix(in srgb,var(--bad) 30%,transparent)}}
.g-taxi .tx-tip{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;background:var(--ws);border-radius:18px;padding:8px 12px}
.g-taxi .tx-tip[hidden]{display:none}
.g-taxi .tx-tip p{margin:0;font-weight:700;line-height:1.3}
.g-taxi .tx-tf svg{width:44px;height:44px;display:block}
.g-taxi .tx-panel{background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:10px 12px;display:flex;flex-direction:column;gap:10px}
.g-taxi .tx-p{margin:0;font-weight:600;line-height:1.35}
.g-taxi .tx-p.ok{color:var(--good);font-weight:800}
.g-taxi .tx-p.no{color:var(--bad);font-weight:800}
.g-taxi .tx-note{margin:0;font-size:.84rem;color:var(--muted);font-weight:600}
.g-taxi .tx-h{margin:0;font-size:1.05rem;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
.g-taxi .tx-h small{color:var(--muted);font-size:.8rem}
.g-taxi .tx-meterbox{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px;align-items:center}
.g-taxi .tx-meterbox svg{width:120px;height:auto;display:block}
.g-taxi .tx-meterbox p{margin:0;font-weight:600;line-height:1.3}
.g-taxi .tx-req{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;align-items:center}
.g-taxi .tx-who svg{width:76px;height:76px;display:block;border-radius:50%;background:var(--ws)}
.g-taxi .tx-dar{margin:0;font-size:1.3rem;font-weight:800;color:var(--wc);line-height:1.2}
:root:not([data-theme="light"]) .g-taxi .tx-dar{color:color-mix(in srgb,var(--wc) 50%,#fff)}
:root[data-theme="dark"] .g-taxi .tx-dar{color:color-mix(in srgb,var(--wc) 50%,#fff)}
.g-taxi .tx-en{margin:2px 0 0;font-weight:600;color:var(--muted)}
.g-taxi .tx-go{justify-content:center;gap:10px;flex-wrap:wrap}
.g-taxi .tx-pulse{animation:txWant 1.1s ease-in-out infinite}
/* paying */
.g-taxi .tx-qs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.g-taxi .tx-qs .btn{font-variant-numeric:tabular-nums}
.g-taxi .tx-cash{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.g-taxi .tx-c{border:2px solid var(--line);background:var(--surface-2);border-radius:14px;padding:4px;cursor:pointer;display:grid;place-items:center;min-width:52px;min-height:52px}
.g-taxi .tx-c:active{transform:scale(.94)}
.g-taxi .tx-c .tx-mn.coin{width:46px;height:46px}
.g-taxi .tx-c .tx-mn.note{width:86px;height:46px}
.g-taxi .tx-mn{display:block}
.g-taxi .tx-tray{border:2px dashed var(--wc);border-radius:14px;padding:8px;min-height:64px;display:flex;flex-direction:column;gap:6px;background:color-mix(in srgb,var(--ws) 55%,transparent)}
.g-taxi .tx-trl{font-weight:700}
.g-taxi .tx-trl b{font-size:1.15rem;font-variant-numeric:tabular-nums}
.g-taxi .tx-tri{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.g-taxi .tx-tri i{color:var(--muted);font-size:.9rem}
.g-taxi .tx-tr{border:0;background:none;padding:0;cursor:pointer;min-width:44px;min-height:44px;display:grid;place-items:center}
.g-taxi .tx-tr .tx-mn.coin{width:38px;height:38px}
.g-taxi .tx-tr .tx-mn.note{width:66px;height:36px}
.g-taxi .tx-sum{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:3px;font-weight:600}
.g-taxi .tx-sum li.ok{color:var(--good)}
.g-taxi .tx-sum li.no{color:var(--bad)}
.g-taxi .tx-fact{display:flex;gap:8px;align-items:flex-start;margin-top:8px;font-weight:600}
.g-taxi .tx-fact svg{width:30px;height:30px;flex:none}
.g-taxi .fb{margin:0}
@media (prefers-reduced-motion:reduce){.g-taxi .tx-route,.g-taxi .tx-pinring,.g-taxi .tx-arr.want,.g-taxi .tx-d.tx-want,.g-taxi .tx-haz.warn,.g-taxi .tx-wave,.g-taxi .tx-bye,.g-taxi .tx-pulse{animation:none}}
@media (max-width:420px){.g-taxi .tx-pad{grid-template-columns:repeat(3,48px);grid-template-rows:repeat(2,48px)}.g-taxi .tx-d{min-width:48px;min-height:48px}.g-taxi .tx-sg{width:104px;height:102px}.g-taxi .tx-c .tx-mn.note{width:76px;height:41px}.g-taxi .tx-c .tx-mn.coin{width:42px;height:42px}}
@media (min-width:900px){.g-taxi .tx-wrap:has(.tx-colors){grid-template-columns:minmax(0,1fr);max-width:720px;width:100%;margin-inline:auto}.g-taxi .tx-wrap:has(.tx-colors) .tx-l{position:static}.g-taxi .tx-wrap:has(.tx-colors) .tx-stage{max-width:none}}


/* ===== new game: spice ===== */
.g-spice .sp-wrap{display:flex;flex-direction:column;gap:12px;width:100%;max-width:1040px;margin-inline:auto}
.g-spice .sp-main{display:flex;flex-direction:column;gap:12px}
.g-spice .sp-side{display:flex;flex-direction:column;gap:12px;min-width:0}
@media (min-width:900px){ .g-spice .sp-main{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start} }
.g-spice .sp-stage{max-width:720px;background:#e2a76f}
.g-spice .sp-svg{display:block;width:100%;height:auto}
.g-spice .sp-row{justify-content:center}
.g-spice .sp-says{margin:0}

/* the top line: day, cash, goal */
.g-spice .sp-hud{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;justify-content:center}
.g-spice .sp-hud > span{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 12px;font-weight:800;font-size:.95rem;background:var(--surface);border:2px solid var(--line)}
.g-spice .sp-cash svg{width:30px;height:18px;display:block}
.g-spice .sp-cash b{font-variant-numeric:tabular-nums}
.g-spice .sp-goal{background:var(--ws)!important;border-color:var(--wc)!important;color:var(--ink)}
.g-spice .sp-ev{background:#ffc640!important;border-color:#e9a312!important;color:#1a2042}

/* the price board (easy) */
.g-spice .sp-board{display:flex;flex-direction:column;gap:6px;padding:12px}
.g-spice .sp-bt{font-size:1.1rem}
.g-spice .sp-brow{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;border-top:2px dashed var(--line);padding-top:6px}
.g-spice .sp-brow svg{width:44px;height:52px;display:block}
.g-spice .sp-brow span{display:flex;flex-wrap:wrap;gap:0 8px;align-items:baseline}
.g-spice .sp-brow i,.g-spice .sp-mn i{font-style:normal;font-family:var(--font-ar);color:var(--wc);font-size:1.05rem}
.g-spice .sp-brow small{color:var(--muted);width:100%}
.g-spice .sp-bp{font-size:1.15rem;text-align:end;line-height:1.1}
.g-spice .sp-bp small{display:block;font-size:.75rem;color:var(--muted);font-weight:600}

/* the wholesaler and the prices */
.g-spice .sp-market{display:flex;flex-direction:column;gap:8px;padding:12px}
.g-spice .sp-mrow{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:8px;align-items:center;border-top:2px dashed var(--line);padding-top:8px}
.g-spice .sp-mrow > svg{width:40px;height:48px;display:block}
.g-spice .sp-mn{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.g-spice .sp-mn b{font-size:1rem}
.g-spice .sp-mn small{color:var(--muted);font-size:.8rem}
.g-spice .sp-fc{color:var(--wc);font-weight:800}
.g-spice .sp-step{display:flex;align-items:center;gap:4px}
.g-spice .sp-step .btn{min-width:40px;min-height:40px;padding:4px 8px;font-size:1.2rem}
.g-spice .sp-step b{min-width:58px;text-align:center;font-variant-numeric:tabular-nums;line-height:1.1;font-size:.98rem}
.g-spice .sp-step b small{display:block;font-size:.7rem;color:var(--muted);font-weight:600}
.g-spice .sp-total{text-align:center;font-size:.98rem}
.g-spice .sp-rx{font-size:.8rem;font-weight:800;border-radius:999px;padding:0 8px;align-self:flex-start;margin-top:2px}
.g-spice .sp-rx.ok{background:var(--good-soft);color:var(--good)}
.g-spice .sp-rx.mid{background:color-mix(in srgb,#ffc640 30%,var(--surface));color:var(--ink)}
.g-spice .sp-rx.bad{background:var(--bad-soft);color:var(--bad)}

/* weighing, price and money panels */
.g-spice .sp-weigh{display:flex;flex-direction:column;gap:8px;padding:12px}
.g-spice .sp-order{display:flex;align-items:center;gap:10px}
.g-spice .sp-order > svg{width:38px;height:46px;flex:none;display:block}
.g-spice .sp-order > span:not(.sp-paid){display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.2}
.g-spice .sp-order small{color:var(--muted);font-size:.85rem}
.g-spice .sp-order b{font-size:1.15rem}
.g-spice .sp-lampt{font-size:.8rem;font-weight:800;border-radius:999px;padding:2px 8px;background:var(--surface-2)}
.g-spice .sp-sh{font-size:.95rem;display:flex;flex-wrap:wrap;gap:0 8px;align-items:baseline}
.g-spice .sp-sh small{color:var(--muted);font-weight:600;font-size:.82rem}
.g-spice .sp-wts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.g-spice .sp-wts:has(> :nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
.g-spice .sp-wt{display:flex;flex-direction:column;align-items:center;gap:2px;border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:14px;padding:4px;min-height:58px;font-weight:800;font-size:.9rem}
.g-spice .sp-wt svg{width:28px;height:32px;display:block}
.g-spice .sp-wt.on{border-color:#e9a312;background:color-mix(in srgb,#ffc640 28%,var(--surface));box-shadow:0 0 0 2px #e9a312}
.g-spice .sp-scs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.g-spice .sp-scs:has(> :nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
.g-spice .sp-scs:has(> :nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.g-spice .sp-sc{display:flex;flex-direction:column;align-items:center;justify-content:center;border:3px solid var(--line);background:var(--surface-2);color:var(--ink);border-radius:14px;padding:5px 4px;min-height:52px;line-height:1.1}
.g-spice .sp-sc b{font-size:.95rem}
.g-spice .sp-sc small{font-size:.72rem;color:var(--muted);font-weight:600}
.g-spice .sp-sc:active:not(:disabled){transform:translateY(2px)}
.g-spice .sp-sc:disabled{opacity:.45;cursor:default}
.g-spice .sp-msg{font-weight:700;border-radius:12px;padding:6px 10px;background:var(--good-soft);color:var(--ink);font-size:.95rem}
.g-spice .sp-msg.bad{background:var(--bad-soft)}
.g-spice .sp-hint{font-size:.92rem;color:var(--muted);background:var(--ws);border-radius:12px;padding:6px 10px}
.g-spice .sp-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.g-spice .sp-opt{border:3px solid var(--line);background:var(--surface);color:var(--ink);border-radius:16px;padding:10px;font-weight:800;font-size:1.25rem;min-height:56px;font-variant-numeric:tabular-nums}
.g-spice .sp-opt:hover{border-color:var(--wc)}
.g-spice .sp-kd{display:flex;justify-content:center}
.g-spice .sp-kv{min-width:160px;text-align:center;font-size:1.6rem;font-weight:800;border:3px solid var(--line);border-radius:14px;padding:4px 14px;background:var(--surface-2);font-variant-numeric:tabular-nums}
.g-spice .sp-keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.g-spice .sp-key{border:2px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;min-height:46px;font-weight:800;font-size:1.2rem}
.g-spice .sp-kok{grid-column:1 / -1}
.g-spice .sp-coins{display:flex;flex-wrap:wrap;gap:6px;min-height:52px;align-items:center;border-radius:14px;padding:6px;background:var(--surface-2)}
.g-spice .sp-coins.tray{background:color-mix(in srgb,#c98f4a 30%,var(--surface));border:2px dashed color-mix(in srgb,#a8642e 60%,var(--line))}
.g-spice .sp-coin{border:0;background:transparent;padding:0;width:48px;height:48px;display:grid;place-items:center;border-radius:50%}
.g-spice .sp-coin.note{width:76px;border-radius:8px}
.g-spice .sp-coin svg{width:100%;height:100%;display:block}
.g-spice .sp-coin:active{transform:scale(.94)}
.g-spice .sp-paid{display:flex;gap:2px;flex:none}
.g-spice .sp-paid svg{width:56px;height:32px;display:block}

/* evening: the report and the upgrades */
.g-spice .sp-rep{display:flex;flex-direction:column;gap:8px;padding:12px}
.g-spice .sp-sum{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.g-spice .sp-sum span{background:var(--surface-2);border-radius:12px;padding:6px 10px;font-size:.9rem;line-height:1.25}
.g-spice .sp-sum span b{display:block;font-size:1.15rem}
.g-spice .sp-sum span.ok{background:var(--good-soft)}
.g-spice .sp-sum span.bad{background:var(--bad-soft)}
.g-spice .sp-warn{margin:0;padding-inline-start:20px;font-size:.92rem;color:var(--bad)}
.g-spice .sp-final{text-align:center;font-weight:700}
.g-spice .sp-final small{display:block;color:var(--muted);font-weight:600}
.g-spice .sp-upw{display:flex;flex-direction:column;gap:8px;padding:12px}
.g-spice .sp-ups{display:flex;flex-direction:column;gap:8px}
.g-spice .sp-up{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;border:2px solid var(--line);border-radius:14px;padding:8px}
.g-spice .sp-uic{width:42px;height:42px;display:block}
.g-spice .sp-up span{display:flex;flex-direction:column;line-height:1.25}
.g-spice .sp-up small{color:var(--muted);font-size:.82rem}
.g-spice .sp-fcast{margin:0;max-width:none}
.g-spice .sp-plus{color:var(--good);white-space:nowrap}
.g-spice .fb{background:var(--surface);border:2px solid var(--line);border-radius:18px;padding:10px 14px;width:100%;max-width:none;margin-inline:auto;font-size:1.02rem;line-height:1.4}
.g-spice .fb.good{border-color:var(--good);background:var(--good-soft)}
.g-spice .fb.bad{border-color:color-mix(in srgb,var(--bad) 55%,var(--line));background:var(--bad-soft)}
@media (max-width:420px){
  .g-spice .sp-sc small{display:none}
  .g-spice .sp-mrow{grid-template-columns:34px minmax(0,1fr) auto;gap:6px}
  .g-spice .sp-mrow > svg{width:34px;height:42px}
  .g-spice .sp-step b{min-width:50px}
}

/* a little life */
.g-spice .sp-hy{transform-box:fill-box;transform-origin:50% 100%}
.g-spice .sp-hy.hop{animation:sphop .45s ease 3}
@keyframes sphop{50%{transform:translateY(-6px)}}
.g-spice .sp-cust{transform-box:fill-box}
.g-spice .sp-enter{animation:spin .5s ease both}
@keyframes spin{from{transform:translateX(60px);opacity:0}}
.g-spice .sp-leave{animation:spout .9s ease .4s both}
@keyframes spout{to{transform:translateX(90px);opacity:0}}
.g-spice .sp-happy{animation:sphop .45s ease 2}
.g-spice .sp-glow{animation:spglow 1.2s ease-in-out infinite}
@keyframes spglow{50%{opacity:.15}}
@media (prefers-reduced-motion:reduce){ .g-spice .sp-hy,.g-spice .sp-cust,.g-spice .sp-glow{animation:none!important} }
@media (max-width:560px){
  .g-spice .sp-crop .sp-svg{aspect-ratio:400 / 194}
  .g-spice .sp-ctl1 .sp-side{order:-1}
}
.g-spice .sp-lampt{align-self:center;background:var(--surface-2)}
.g-spice .sp-lampt.on{background:var(--good-soft);color:var(--good)}
.g-spice .sp-wt svg{width:34px;height:38px}
.g-spice .sp-fact{max-width:none;margin:0}
.g-spice .sp-fact p{font-size:.98rem}
.g-spice .sp-gchip{align-self:center;background:var(--ws);color:var(--ink)}
.g-spice .sp-sc b{text-wrap:balance}
.g-spice .sp-says .bub .speak,.g-spice .fact p .speak,.g-spice .sp-fcast > span .speak{vertical-align:middle;margin-block:-8px}


/* ===== module: 50_account.css ===== */
/* ===== family accounts: the sign-up wall and its screens, the players panel, the privacy page ===== */
:root{--ac-edge:#1a2042;--ac-dim:rgba(10,14,40,.62)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--ac-edge:#3a4384;--ac-dim:rgba(3,5,18,.74)}}
:root[data-theme="dark"]{--ac-edge:#3a4384;--ac-dim:rgba(3,5,18,.74)}
html.ac-lock,html.ac-lock body{overflow:hidden}

/* the window */
.ac-modal{position:fixed;inset:0;z-index:90;display:flex;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom))}
.ac-back{position:fixed;inset:0;background:var(--ac-dim);opacity:0;transition:opacity .2s}
.ac-modal.on .ac-back{opacity:1}
.ac-card{position:relative;margin:auto;width:min(460px,100%);background:var(--surface);color:var(--ink);border:3px solid var(--ac-edge);border-radius:28px;padding:24px 20px 20px;text-align:center;box-shadow:0 8px 0 rgba(10,14,40,.28),0 24px 60px rgba(10,14,40,.4);transform:translateY(18px) scale(.96);opacity:0;transition:transform .32s cubic-bezier(.3,1.4,.5,1),opacity .2s;outline:none}
.ac-modal.on .ac-card{transform:none;opacity:1}
.ac-card h2{margin:4px 0 6px;font-size:1.7rem;font-weight:800;line-height:1.12;letter-spacing:-.01em}
.ac-card p{margin:0}
.ac-lead{color:var(--muted);font-size:1.06rem;line-height:1.45;margin:0 auto 16px!important;max-width:36ch}
.ac-small{color:var(--muted);font-size:.92rem;margin:0 0 14px!important}
.ac-x{position:absolute;top:10px;right:10px;width:40px;height:40px;border-radius:50%;border:0;background:var(--surface-2);color:var(--ink);display:grid;place-items:center;z-index:2}
.ac-x svg{width:18px;height:18px}
.ac-x ~ h2,.ac-x ~ .ac-kick{margin-inline:34px!important}
.ac-art{width:118px;height:118px;margin:-4px auto 6px}
.ac-art .bust{width:118px;height:118px}
.ac-win .bust{animation:ac-hop .9s cubic-bezier(.3,1.6,.5,1) both}
@keyframes ac-hop{0%{transform:scale(.6) rotate(-8deg)}60%{transform:scale(1.08) rotate(3deg)}100%{transform:none}}
.ac-icon{width:84px;height:84px;margin:0 auto 6px;display:grid;place-items:center}
.ac-icon svg{width:84px;height:84px}
.ac-icon.ac-cloud{width:72px;height:72px;border-radius:50%;background:color-mix(in srgb,#2448c6 14%,var(--surface));color:#2448c6}
.ac-icon.ac-cloud svg{width:44px;height:44px}
.ac-kick{display:inline-block;font-weight:800;font-size:.9rem;letter-spacing:.02em;color:#8a5d00;background:#fff3c8;border:2px solid #e6bd4f;border-radius:999px;padding:2px 12px;margin-bottom:6px!important}
.ac-btns{display:flex;flex-direction:column;gap:12px;margin-top:4px}
.ac-btns .btn{width:100%;min-height:56px}
.ac-btns .btn svg{width:22px;height:22px}
.ac-alt{margin-top:12px!important}
.ac-alt .linkbtn{font-size:1rem;padding:6px 4px}
.ac-backlink{margin-top:12px;border:0;background:none;color:var(--muted);font-weight:800;font-size:1rem;padding:8px 14px;border-radius:12px;text-decoration:underline;text-underline-offset:3px}
.ac-backlink:hover{color:var(--ink)}
.ac-danger{background:var(--bad)!important;color:#fff!important;box-shadow:0 4px 0 color-mix(in srgb,var(--bad) 55%,#000)!important}
.ac-mail{display:inline-flex;align-items:center;gap:8px;max-width:100%;font-weight:800;background:var(--surface-2);border-radius:999px;padding:6px 16px;margin:0 auto 16px!important;overflow-wrap:anywhere}
.ac-mail svg{width:22px;height:22px;flex:none;color:var(--good)}

/* what the player has, on the first screen */
.ac-have{list-style:none;margin:0 0 16px;padding:0;display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.ac-have li{display:inline-flex;align-items:center;gap:5px;background:var(--surface-2);border:2px solid var(--line);border-radius:999px;padding:4px 12px 4px 6px;font-weight:700}
.ac-have li b{font-weight:800;font-variant-numeric:tabular-nums}
.ac-have li span{color:var(--muted);font-size:.92rem}
.ac-have svg{width:22px;height:22px;flex:none}
.ac-have .st{color:var(--star)}
.ac-have li:nth-child(2) svg{color:#2448c6}

/* the grown-up check */
.ac-q{font-size:2.3rem!important;font-variant-numeric:tabular-nums;margin-bottom:12px!important}
.ac-ans{display:flex;justify-content:center;gap:10px;margin-bottom:8px}
.ac-ans span{width:64px;height:74px;border-radius:18px;border:3px dashed var(--line);background:var(--bg);display:grid;place-items:center;font-size:2.4rem;font-weight:800;font-variant-numeric:tabular-nums}
.ac-ans span.on{border-style:solid;border-color:var(--accent)}
.ac-ans span:not(:empty){border-style:solid;border-color:var(--ink)}
.ac-ans.ac-bad span{border-color:var(--bad);color:var(--bad)}
.ac-shake{animation:ac-shake .42s}
@keyframes ac-shake{20%{transform:translateX(-8px)}40%{transform:translateX(7px)}60%{transform:translateX(-5px)}80%{transform:translateX(3px)}}
.ac-tries{display:flex;justify-content:center;gap:6px;margin-bottom:4px}
.ac-tries i{width:10px;height:10px;border-radius:50%;background:var(--good)}
.ac-tries i.used{background:var(--line)}
.ac-msg{min-height:1.6em;font-weight:800;color:var(--bad);margin-bottom:8px!important}
.ac-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:330px;margin:0 auto}
.ac-key{height:64px;border:0;border-radius:18px;background:var(--surface-2);color:var(--ink);font-size:1.8rem;font-weight:800;box-shadow:0 4px 0 var(--line);display:grid;place-items:center;font-variant-numeric:tabular-nums;touch-action:manipulation}
.ac-key:active{transform:translateY(3px);box-shadow:0 1px 0 var(--line)}
.ac-key-s{font-size:1rem;color:var(--muted)}
.ac-key svg{width:28px;height:28px}

/* the forms */
.ac-form{display:flex;flex-direction:column;gap:14px;text-align:start}
.ac-field{display:flex;flex-direction:column;gap:6px}
.ac-field > label{font-weight:800;font-size:1.02rem}
.ac-field input[type=email],.ac-field input[type=password],.ac-field input[type=text]{font:inherit;font-size:1.18rem;width:100%;min-height:58px;padding:12px 16px;border-radius:16px;border:2px solid var(--line);background:var(--bg);color:var(--ink);outline:none;transition:border-color .15s,box-shadow .15s}
.ac-field input:focus{border-color:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 22%,transparent)}
.ac-field input[aria-invalid=true]{border-color:var(--bad)}
.ac-pw{position:relative}
.ac-pw input{padding-inline-end:62px!important}
.ac-eye{position:absolute;inset-inline-end:6px;top:50%;transform:translateY(-50%);width:48px;height:48px;border:0;border-radius:12px;background:transparent;color:var(--muted);display:grid;place-items:center}
.ac-eye:hover,.ac-eye[aria-pressed=true]{color:var(--ink);background:var(--surface-2)}
.ac-eye svg{width:26px;height:26px}
.ac-hint{color:var(--muted);font-size:.9rem}
.ac-check{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:center;background:var(--surface-2);border:2px solid transparent;border-radius:16px;padding:12px 14px;cursor:pointer;font-weight:700;line-height:1.35}
.ac-check input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.ac-box{width:32px;height:32px;border-radius:10px;border:3px solid var(--ink);background:var(--surface);display:grid;place-items:center;color:#fff;transition:background .15s}
.ac-box svg{width:22px;height:22px;opacity:0;transform:scale(.5);transition:opacity .15s,transform .2s}
.ac-check input:checked + .ac-box{background:#12a06a;border-color:#0b6e48}
.ac-check input:checked + .ac-box svg{opacity:1;transform:none}
.ac-check input:focus-visible + .ac-box{outline:3px solid var(--accent);outline-offset:2px}
.ac-check:has(input[aria-invalid=true]){border-color:var(--bad)}
.ac-link{align-self:flex-start;color:var(--accent);font-weight:800;font-size:.95rem;text-underline-offset:3px;padding:2px 4px}
.ac-err{margin:0;color:var(--bad);background:var(--bad-soft);border-radius:12px;padding:8px 12px;font-weight:700;font-size:.95rem;line-height:1.4}
.ac-err .linkbtn{font-size:.95rem;margin-inline-start:4px}
.ac-ok{display:flex;align-items:center;gap:8px;justify-content:center;text-align:start;color:var(--good);background:var(--good-soft);border-radius:14px;padding:10px 14px;font-weight:800;margin:4px 0 16px!important}
.ac-ok svg{width:22px;height:22px;flex:none}
.ac-submit{width:100%;min-height:58px;margin-top:2px}
.ac-hide{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none;border:0!important;padding:0!important}
.ac-wait{padding:40px 0;display:grid;gap:12px;justify-items:center;color:var(--muted);font-weight:700}
.ac-spin{width:42px;height:42px;border-radius:50%;border:5px solid var(--surface-2);border-top-color:var(--accent);animation:ac-spin .8s linear infinite}
@keyframes ac-spin{to{transform:rotate(360deg)}}

/* the players page */
.ac-panel{display:flex;flex-direction:column;gap:12px;border-width:3px}
.ac-ph{display:flex;align-items:center;gap:14px}
.ac-pic{width:52px;height:52px;flex:none;border-radius:16px;display:grid;place-items:center;background:color-mix(in srgb,#2448c6 14%,var(--surface));color:#2448c6;border:2px solid color-mix(in srgb,#2448c6 30%,var(--line))}
.ac-pic svg{width:32px;height:32px}
.ac-ph .h3{margin:0}
.ac-pmail{font-weight:800;overflow-wrap:anywhere;color:var(--ink)}
.ac-prow{display:flex;flex-wrap:wrap;gap:10px}
.ac-del{color:var(--bad)!important}

/* the privacy page */
.ac-priv{max-width:760px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.ac-priv .back{align-self:flex-start}
.ac-priv-h{display:flex;align-items:center;gap:18px;padding:4px 0 6px}
.ac-priv-art{width:96px;height:96px;flex:none}
.ac-priv-art .bust{width:96px;height:96px}
.ac-priv h1{margin:0;font-size:2.4rem;font-weight:800;line-height:1}
.ac-priv-h p{color:var(--muted);font-weight:700;margin-top:6px}
.ac-psec{background:var(--surface);border:2px solid var(--line);border-radius:var(--radius);padding:16px 18px;display:flex;flex-direction:column;gap:8px}
.ac-psec h2{margin:0;font-size:1.3rem;font-weight:800}
.ac-psec ul{margin:0;padding-inline-start:22px;display:flex;flex-direction:column;gap:6px}
.ac-psec a{color:var(--accent);font-weight:800;overflow-wrap:anywhere}
.ac-psec .row{margin-top:4px}
.ac-pdate{color:var(--muted);font-size:.9rem;text-align:center}
.ac-footlink{color:var(--muted);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.ac-footlink:hover{color:var(--ink)}

@media (min-width:761px){
  .ac-card{padding:30px 32px 26px}
  .ac-btns{flex-direction:column}
}
@media (max-width:380px){
  .ac-card{padding:20px 14px 16px;border-radius:24px}
  .ac-card h2{font-size:1.5rem}
  .ac-q{font-size:2rem!important}
  .ac-key{height:58px}
  .ac-priv h1{font-size:2rem}
  .ac-priv-art,.ac-priv-art .bust{width:72px;height:72px}
}
@media (prefers-reduced-motion: reduce){
  .ac-card,.ac-back,.ac-box,.ac-box svg{transition:none}
  .ac-win .bust,.ac-shake,.ac-spin{animation:none}
}


/* ===== module: 60_events.css ===== */
/* ===== Events: the celebrations of the year, the weekly challenge, the World Cup 2030 countdown =====
   Every rule is scoped with .ev- classes. Theme colors of a celebration: --ev1 (deep), --ev2 (bright), --evh (highlight). */
.ev-ban,.ev-shopin,.ev-gtab{--ev1:#1d2a6e;--ev2:#2f4bd6;--evh:#ffd23f}

/* ---------- the banner of a celebration (home, under the rooftop) ---------- */
.ev-ban{border-radius:28px;overflow:hidden;border:2px solid color-mix(in srgb,var(--ev1) 60%,var(--line));background:var(--surface);box-shadow:0 6px 0 color-mix(in srgb,var(--ev1) 40%,transparent);margin-top:-8px}
.ev-ban + .ev-ban{margin-top:0}
.ev-ban-top{display:grid;grid-template-columns:150px minmax(0,1fr);gap:20px;align-items:center;padding:18px 22px;color:#fff;background:var(--zp-dark),linear-gradient(135deg,var(--ev2),var(--ev1))}
.ev-ban-art{width:150px;height:172px;border-radius:50% 50% 18px 18px / 42% 42% 18px 18px;overflow:hidden;border:4px solid #1a2042;box-shadow:0 5px 0 rgba(0,0,0,.25);background:#fff}
.ev-ban-art svg{display:block;width:100%;height:100%}
.ev-ban-tx{min-width:0}
.ev-kick{margin:0;display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font-weight:800;color:var(--evh);font-size:.98rem}
.ev-left{background:rgba(255,255,255,.18);color:#fff;border-radius:999px;padding:1px 10px;font-size:.86rem}
.ev-ban-tx h2{margin:2px 0 6px;font-size:clamp(1.6rem,3.4vw,2.4rem);line-height:1.05;font-weight:800;text-shadow:0 2px 0 rgba(0,0,0,.18)}
.ev-line{margin:0;font-size:1.04rem;line-height:1.35;max-width:62ch}
.ev-dates{margin:8px 0 0;font-size:.86rem;opacity:.88;line-height:1.3;max-width:64ch}
.ev-ban-in{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px;padding:16px 18px 18px}
.ev-blk{min-width:0}
.ev-blk h3{margin:0 0 8px;font-size:1.12rem;font-weight:800;line-height:1.2;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.ev-blk h3 small{color:var(--muted);font-size:.86rem;font-weight:700}
.ev-fgs{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px}
.ev-fg,.ev-wg{position:relative;display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center;border:2px solid var(--line);background:var(--surface);border-radius:20px;padding:8px 8px 10px;color:var(--ink);min-width:0;transition:transform .18s ease,border-color .18s}
.ev-fg:hover,.ev-wg:hover{transform:translateY(-3px);border-color:var(--wc)}
.ev-fg-a,.ev-wg-a{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1/.92;border-radius:50% 50% 14px 14px / 44% 44% 14px 14px;background:var(--zp-light),radial-gradient(circle at 50% 38%,#fff 0,var(--ws) 70%);border:2px solid color-mix(in srgb,var(--wc) 45%,transparent)}
.ev-fg-a .gicon,.ev-wg-a .gicon{width:62%;height:62%}
.ev-fg{padding-top:12px}
.ev-wg-a{max-width:150px}
.ev-fg b,.ev-wg b{font-size:.92rem;line-height:1.15;overflow-wrap:anywhere}
.ev-fg .stars svg{width:15px;height:15px}
.ev-x{position:absolute;top:-10px;left:50%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:2px;background:var(--evh);color:#1a2042;font-weight:800;font-size:.8rem;border-radius:999px;padding:1px 8px 1px 3px;box-shadow:0 2px 0 rgba(0,0,0,.2);white-space:nowrap}
.ev-x .coin{width:16px;height:16px}
.ev-prize-l{display:flex;align-items:center;gap:10px;margin:10px 0 0;font-weight:700;color:var(--muted);font-size:.93rem;line-height:1.25}
.ev-prize-l .ev-badge{width:46px;height:46px;flex:none}
.ev-prize-l.got{color:var(--good)}
.ev-blk-s{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;border-radius:18px;padding:10px 14px;background:color-mix(in srgb,var(--evh) 16%,var(--surface));border:2px dashed color-mix(in srgb,var(--evh) 75%,var(--line))}
.ev-souk-tx{min-width:0;flex:1 1 260px}
.ev-souk-tx h3{margin:0}
.ev-souk-tx p{margin:2px 0 0;color:var(--muted);font-size:.93rem;line-height:1.3}
.ev-badge{display:block;overflow:visible}
.ev-badge.off{filter:grayscale(1);opacity:.42}
.ev-sway{transform-box:fill-box;transform-origin:50% 0;animation:evsway 4s ease-in-out infinite}
@keyframes evsway{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}

/* ---------- weekly challenge, coming soon, World Cup ---------- */
.ev-mid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:14px;align-items:start}
.ev-side{display:grid;gap:14px;min-width:0}
.ev-week,.ev-soon{background:var(--surface);border:2px solid var(--line);border-radius:24px;padding:14px 16px;min-width:0}
.ev-week{display:flex;flex-direction:column;gap:10px}
.ev-week.won{border-color:var(--saf);background:color-mix(in srgb,var(--saf) 10%,var(--surface))}
.ev-week-h{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px}
.ev-week-h h3,.ev-soon h3{margin:0;font-size:1.15rem;font-weight:800;line-height:1.2;display:flex;align-items:center;gap:6px}
.ev-week-h h3 svg{width:26px;height:26px;flex:none}
.ev-wleft{font-weight:700;font-size:.86rem;color:var(--muted);background:var(--surface-2);border-radius:999px;padding:2px 10px}
.ev-week > p{margin:0;color:var(--muted);font-size:.95rem;line-height:1.3}
.ev-wgs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ev-wg.done{border-color:var(--good);background:color-mix(in srgb,var(--good) 8%,var(--surface))}
.ev-wg small{font-size:.76rem;color:var(--muted);line-height:1.2}
.ev-wg.done small{color:var(--good);font-weight:800;font-size:.85rem}
.ev-wtick{position:absolute;top:-6px;right:-6px;width:30px;height:30px;border-radius:50%;border:2px solid var(--line);background:var(--surface);display:grid;place-items:center;color:#fff}
.ev-wg.done .ev-wtick{background:var(--mint);border-color:#0b7a50}
.ev-wtick svg{width:16px;height:16px}
.ev-wfoot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.ev-wfoot > b{font-size:.95rem}
.ev-wbar{flex:1 1 120px;height:10px;border-radius:6px;background:var(--surface-2);overflow:hidden}
.ev-wbar i{display:block;height:100%;background:var(--saf);border-radius:6px}
.ev-wn{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-weight:700;font-size:.88rem}
.ev-cups{display:block;height:22px;width:auto;flex:none;overflow:visible}
.ev-cups.big{height:42px}
.ev-soon ul{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:9px}
.ev-soon li{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center}
.ev-soon li .ev-badge{width:40px;height:40px}
.ev-soon li b{display:block;font-size:1rem;line-height:1.2}
.ev-soon li small{display:block;color:var(--muted);font-size:.85rem;line-height:1.25}
.ev-soon li.first{grid-template-columns:52px minmax(0,1fr)}
.ev-soon li.first .ev-badge{width:52px;height:52px}
.ev-soon li.first b{font-size:1.3rem}
.ev-soon > p{margin:10px 0 0;color:var(--muted);font-size:.84rem;line-height:1.3}
.ev-wc{display:grid;grid-template-columns:84px minmax(0,1fr);gap:14px;align-items:center;border-radius:24px;padding:14px 16px;color:#fff;background:var(--zp-dark),linear-gradient(135deg,#0a7d46,#06492b);box-shadow:0 5px 0 #043620}
.ev-wc-art svg{width:84px;height:84px;display:block;overflow:visible}
.ev-wc h3{margin:0;font-size:1.1rem;font-weight:800;color:#ffe08a}
.ev-wc-n{margin:2px 0 0;display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px}
.ev-wc-n b{font-size:2.3rem;line-height:1;font-weight:800;font-variant-numeric:tabular-nums}
.ev-wc-n span{font-weight:700}
.ev-wc-tx > p:not(.ev-wc-n){margin:6px 0 10px;font-size:.88rem;opacity:.93;line-height:1.3}
.ev-wc .btn{background:var(--saf);color:#1a2042;box-shadow:0 4px 0 var(--saf-d)}
.ev-wc .btn svg{width:16px;height:16px}

/* ---------- tags on the game cards ---------- */
.ev-gt{position:absolute;z-index:2;display:inline-flex;align-items:center;gap:3px;font-weight:800;font-size:.78rem;border-radius:999px;line-height:1.25;pointer-events:none;white-space:nowrap}
.ev-gx{top:10px;left:50%;transform:translateX(-50%);color:#fff;background:linear-gradient(135deg,var(--ev2),var(--ev1));padding:2px 10px 2px 4px;box-shadow:0 2px 0 rgba(0,0,0,.25)}
.ev-gx .coin{width:18px;height:18px}
.ev-gw{bottom:-9px;left:50%;transform:translateX(-50%);background:var(--saf);color:#1a2042;padding:2px 9px 2px 5px;box-shadow:0 2px 0 var(--saf-d)}
.ev-gw svg{width:15px;height:15px}
.ev-gw.done{background:var(--mint);color:#fff;box-shadow:0 2px 0 #0b7a50}

/* ---------- the result screen ---------- */
.ev-res{display:flex;flex-direction:column;gap:6px;align-items:center;width:100%;max-width:520px}
.ev-x2{display:inline-flex;align-items:center;gap:4px}
.ev-x2 .coin{width:18px;height:18px}
.ev-rline{margin:0;display:flex;align-items:center;gap:8px;font-weight:700;color:var(--muted);font-size:.95rem;text-align:start}
.ev-rline svg{width:26px;height:26px;flex:none}
.ev-pm .ev-pmart{display:grid;place-items:center;margin:0 auto 4px}
.ev-pm .ev-pmart .ev-badge{width:112px;height:112px}
.ev-pm .ev-pmart .ev-cups{height:66px}
.ev-also{display:flex!important;align-items:center;gap:8px;justify-content:center;font-weight:700}
.ev-also .ev-badge{width:36px;height:36px;flex:none}

/* ---------- the players page ---------- */
.ev-pl ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.ev-pl li{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;background:var(--surface-2);border-radius:16px;padding:8px 12px}
.ev-pl .av{display:block;width:44px;height:44px;border-radius:50%;overflow:hidden}
.ev-pl .av svg{display:block;width:100%;height:100%}
.ev-pl-tx{display:flex;flex-direction:column;min-width:0}
.ev-pl-tx b{overflow-wrap:anywhere}
.ev-pl-n{display:inline-flex;align-items:center;gap:4px;color:var(--muted);font-weight:700;font-size:.88rem}
.ev-pl-n svg{width:18px;height:18px}
.ev-pl-b{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end;max-width:180px}
.ev-pl-b small{color:var(--muted);font-weight:700}
.ev-pl-bd .ev-badge{width:34px;height:34px}
.ev-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* ---------- the riad: limited things, the tab of the celebration, the trophy shelf ---------- */
.rd-card.ev-off .rd-prev{filter:grayscale(.75);opacity:.6}
.rd-tag.ev-back{background:var(--surface-2);color:var(--muted);border-radius:12px;line-height:1.2;padding:3px 9px;text-wrap:balance}
.ev-lim{position:absolute;top:2px;left:2px;z-index:1;font-size:.74rem;font-weight:800;line-height:1.3;color:#fff;background:#c1272d;border-radius:999px;padding:1px 8px;box-shadow:0 2px 0 rgba(0,0,0,.2)}
.rd-gbtn.ev-gtab{grid-column:1/-1;flex-direction:column;gap:0;color:#fff;background:var(--zp-dark),linear-gradient(135deg,var(--ev2),var(--ev1));padding:6px 10px}
.rd-gbtn.ev-gtab small{font-size:.76rem;font-weight:700;color:var(--evh)}
.rd-gbtn.ev-gtab[aria-selected="true"]{color:#fff;box-shadow:inset 0 0 0 3px var(--evh),0 2px 0 var(--line)}
.ev-shopin{display:flex;align-items:center;gap:12px;border-radius:16px;padding:10px 12px;margin:0 0 10px;color:#fff;background:var(--zp-dark),linear-gradient(135deg,var(--ev2),var(--ev1))}
.ev-shopin .ev-badge{width:52px;height:52px;flex:none}
.ev-shopin b{font-size:1.1rem}
.ev-shopin p{margin:2px 0 0;font-size:.9rem;opacity:.95;line-height:1.3}
.ev-shelf{display:flex;flex-direction:column;gap:10px}
.ev-shelf-h{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.ev-shelf-h h3{margin:0;display:flex;align-items:center;gap:6px;flex:1 1 auto}
.ev-shelf-h h3 svg{width:28px;height:28px}
.ev-shelf .sub{margin:0}
.ev-shelf-row{align-self:flex-start;min-width:min(100%,320px);max-width:100%;display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:12px 14px 8px;border-radius:14px;background:linear-gradient(#0000 calc(100% - 12px),#8a5a34 calc(100% - 12px)),color-mix(in srgb,#e9d3b0 45%,var(--surface));border:2px solid color-mix(in srgb,#8a5a34 40%,var(--line))}
.ev-shelf-cups{display:flex;align-items:flex-end;gap:6px;padding-bottom:10px}
.ev-shelf-cups b{font-weight:800}
.ev-shelf-b{display:flex;flex-direction:column;align-items:center;gap:2px;width:78px;padding-bottom:12px;text-align:center}
.ev-shelf-b .ev-badge{width:52px;height:52px}
.ev-shelf-b small{font-size:.74rem;font-weight:800;line-height:1.15;color:var(--ink)}

/* ---------- dark mode ---------- */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .ev-fg-a,:root:not([data-theme="light"]) .ev-wg-a{background:var(--zp-dark),radial-gradient(circle at 50% 38%,color-mix(in srgb,var(--wc) 45%,var(--surface)) 0,color-mix(in srgb,var(--wc) 30%,var(--surface)) 70%)}
  :root:not([data-theme="light"]) .ev-ban{box-shadow:0 6px 0 rgba(0,0,0,.35)}
  :root:not([data-theme="light"]) .ev-shelf-row{background:linear-gradient(#0000 calc(100% - 12px),#6b4428 calc(100% - 12px)),color-mix(in srgb,#8a5a34 22%,var(--surface))}
}
:root[data-theme="dark"] .ev-fg-a,:root[data-theme="dark"] .ev-wg-a{background:var(--zp-dark),radial-gradient(circle at 50% 38%,color-mix(in srgb,var(--wc) 45%,var(--surface)) 0,color-mix(in srgb,var(--wc) 30%,var(--surface)) 70%)}
:root[data-theme="dark"] .ev-ban{box-shadow:0 6px 0 rgba(0,0,0,.35)}
:root[data-theme="dark"] .ev-shelf-row{background:linear-gradient(#0000 calc(100% - 12px),#6b4428 calc(100% - 12px)),color-mix(in srgb,#8a5a34 22%,var(--surface))}

/* ---------- phones and tablets ---------- */
@media (max-width:980px){
  .ev-mid{grid-template-columns:minmax(0,1fr)}
  .ev-side{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
}
@media (max-width:760px){
  .ev-ban{border-radius:24px}
  .ev-ban-top{grid-template-columns:96px minmax(0,1fr);gap:14px;padding:14px}
  .ev-ban-art{width:96px;height:112px;border-width:3px}
  .ev-ban-tx h2{font-size:1.55rem}
  .ev-line{font-size:.95rem}
  .ev-dates{grid-column:1/-1}
  .ev-ban-in{grid-template-columns:minmax(0,1fr);padding:14px}
  .ev-fgs{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(118px,36%);overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 8px;margin-inline:-14px;padding-inline:14px;scroll-padding-inline:14px}
  .ev-fg{scroll-snap-align:start}
  .ev-blk-s .btn{width:100%}
  .ev-wgs{gap:8px}
  .ev-wg{padding:6px 6px 8px;border-radius:16px}
  .ev-wg b{font-size:.84rem}
  .ev-wc{grid-template-columns:64px minmax(0,1fr);gap:12px}
  .ev-wc-art svg{width:64px;height:64px}
  .ev-pl li{grid-template-columns:40px minmax(0,1fr)}
  .ev-pl .av{width:40px;height:40px}
  .ev-pl-b{grid-column:1/-1;justify-content:flex-start;max-width:none}
}
@media (prefers-reduced-motion: reduce){
  .ev-sway{animation:none}
  .ev-fg,.ev-wg{transition:none}
  .ev-fg:hover,.ev-wg:hover{transform:none}
}

