/* Eso bere, the playful look. Loaded after style.css: it only restyles, the markup and logic stay.

   Four rules, everywhere:
   1. A STICKER is anything you tap: the card colour, a thick outline, a solid shadow under it; pointed
      at it rises and tilts a little, pressed it sinks. (Buttons, rows, games, lessons, players.)
   2. A WELL holds information: a soft grey patch, no outline, round corners. Never a box in a box.
   3. A BADGE is flat colour with a white sign, no outline. (Icons, titles, counters, little pills.)
   4. A CHOICE is a grey track; the chosen one is a dark pill.
   One palette (green is play and yours, red is danger, then blue, purple, pink, orange, gold, teal),
   one typeface (Sets Grotesk L; Manrope stands in until its files are here), plain case, no glow.
   The light room and the dark room are mirror images: only the tokens change between them. Playing
   cards stay white with a black edge in both, like real ones. */

/* ================= tokens ================= */
:root{
  color-scheme:light;
  --ink:#141518;--on-ink:#ffffff;
  --room:#ffffff;--surface:#ffffff;--surface-2:#f0f1f3;--surface-3:#e5e7ea;--sheet-end:#e6e8eb;
  --muted:#5b6068;--faint:#868b93;--edge-soft:rgba(20,21,24,.12);--stk:#ffffff;
  --primary:#22b358;--primary-text:#12803c;--primary-soft:rgba(34,179,88,.14);
  --danger:#e5484d;--danger-text:#c62f35;--warn-text:#b06a00;--ash:#7d848c;--stroke:#141518;
  --mark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 52'%3E%3Crect x='27' y='6' width='26' height='36' rx='9' transform='rotate(16 40 24)' fill='%23fff' stroke='%23141518' stroke-width='4'/%3E%3Crect x='8' y='9' width='26' height='36' rx='9' transform='rotate(-12 21 27)' fill='%23fff' stroke='%23141518' stroke-width='4'/%3E%3Cpath transform='translate(21 27) rotate(-12)' d='M0-1.6C-1-4.6-6-4.4-6-.6-6 2.6-2.2 4.6 0 6.6 2.2 4.6 6 2.6 6-.6 6-4.4 1-4.6 0-1.6Z' fill='%23e5484d'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --ink:#f1f2f4;--on-ink:#141518;
    --room:#0f1013;--surface:#1b1d21;--surface-2:#26292e;--surface-3:#30343a;--sheet-end:#23262b;
    --muted:#a7acb4;--faint:#7e848c;--edge-soft:rgba(241,242,244,.14);--stk:#2b2e34;
    --primary:#2fc566;--primary-text:#4fdc84;--primary-soft:rgba(47,197,102,.17);
    --danger:#ff5f63;--danger-text:#ff7a7d;--warn-text:#f2b544;--ash:#9aa1a9;--stroke:#000000;
    --mark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 52'%3E%3Crect x='27' y='6' width='26' height='36' rx='9' transform='rotate(16 40 24)' fill='%231b1d21' stroke='%23f1f2f4' stroke-width='4'/%3E%3Crect x='8' y='9' width='26' height='36' rx='9' transform='rotate(-12 21 27)' fill='%231b1d21' stroke='%23f1f2f4' stroke-width='4'/%3E%3Cpath transform='translate(21 27) rotate(-12)' d='M0-1.6C-1-4.6-6-4.4-6-.6-6 2.6-2.2 4.6 0 6.6 2.2 4.6 6 2.6 6-.6 6-4.4 1-4.6 0-1.6Z' fill='%23ff5f63'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --ink:#f1f2f4;--on-ink:#141518;
  --room:#0f1013;--surface:#1b1d21;--surface-2:#26292e;--surface-3:#30343a;--sheet-end:#23262b;
  --muted:#a7acb4;--faint:#7e848c;--edge-soft:rgba(241,242,244,.14);--stk:#2b2e34;
  --primary:#2fc566;--primary-text:#4fdc84;--primary-soft:rgba(47,197,102,.17);
  --danger:#ff5f63;--danger-text:#ff7a7d;--warn-text:#f2b544;--ash:#9aa1a9;--stroke:#000000;
  --mark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 52'%3E%3Crect x='27' y='6' width='26' height='36' rx='9' transform='rotate(16 40 24)' fill='%231b1d21' stroke='%23f1f2f4' stroke-width='4'/%3E%3Crect x='8' y='9' width='26' height='36' rx='9' transform='rotate(-12 21 27)' fill='%231b1d21' stroke='%23f1f2f4' stroke-width='4'/%3E%3Cpath transform='translate(21 27) rotate(-12)' d='M0-1.6C-1-4.6-6-4.4-6-.6-6 2.6-2.2 4.6 0 6.6 2.2 4.6 6 2.6 6-.6 6-4.4 1-4.6 0-1.6Z' fill='%23ff5f63'/%3E%3C/svg%3E");
}
/* the same in both rooms: the palette, sizes, and the old sheet's tokens pointed at these */
:root,.table,.table>.overlay,.table>.endcard,.table>.review,.table>.toast,.table>.invite-card,.table>.nudge-card{
  --c-green:#22b358;--c-blue:#2a9fdc;--c-purple:#8e5cf0;--c-pink:#e64980;--c-orange:#f59f2f;--c-gold:#ffc93c;--c-teal:#14b8a6;
  --o:3px;--o-card:5px;--lift:4px;
  --card-edge:#141518;
  /* motion, one system: --ease-move for anything that travels across the screen by itself, slow, fast, slow again
     (easeInOutQuart: the camera, cards played by others and taken, the top card's frame, a pill sliding to its choice);
     --ease-out for the answer to your own touch and for windows coming and going (at once, then settling); --ease-pop
     and --ease-pop-strong for what pops (rewards, badges, a box coming in). Loops keep their own even curves. */
  --ease-move:cubic-bezier(.76,0,.24,1);
  --ease-out:cubic-bezier(.23,1,.32,1);
  --ease-pop:cubic-bezier(.34,1.56,.64,1);
  --ease-pop-strong:cubic-bezier(.2,1.4,.4,1);
  --spring:var(--ease-pop);
  --font-display:"Sets Grotesk L","Manrope","Segoe UI",system-ui,sans-serif;
  --font-ui:"Sets Grotesk L","Manrope","Segoe UI",system-ui,sans-serif;
  --bg:var(--surface-2);--rail:var(--room);--surface-hi:var(--surface);--raised:var(--surface);--raised-2:var(--surface-2);
  --line:var(--edge-soft);--hair:var(--edge-soft);--hair-2:var(--edge-soft);--fg:var(--ink);
  --accent:var(--primary);--accent-hi:var(--primary-text);--accent-ink:#fff;--accent-soft:var(--primary-soft);
  --hot:var(--danger);--hot-fill:var(--danger);--safe:var(--primary-text);--warn:var(--warn-text);
  --joker:var(--c-purple);--joker-glow:transparent;
  --felt-1:var(--surface);--felt-2:var(--sheet-end);
  --glass:color-mix(in srgb,var(--surface) 94%,transparent);
  --sh-row:none;--sh-float:none;--sh-sheet:none;
  /* the players, the teams and the islands, from the one palette */
  --p0:var(--c-green);--p1:var(--c-blue);--p2:var(--c-purple);--p3:var(--c-pink);--p4:var(--c-orange);--p5:var(--c-teal);
  --team0:var(--c-orange);--team1:var(--c-blue);--team2:var(--c-purple);
  --isA:var(--c-teal);--isB:var(--c-orange);
  /* a hint's colour: safe, a small risk, a real risk, taking, ash */
  --h-safe:var(--primary-text);--h-low:var(--primary-text);--h-mid:var(--warn-text);--h-take:var(--danger-text);--h-ash:var(--ash);
}

/* ================= one voice ================= */
body,body *{font-style:normal!important;text-transform:none!important;letter-spacing:normal!important;text-shadow:none!important}
html,body{background:var(--room)}
body{color:var(--ink)}
::selection{background:var(--primary-soft);color:var(--ink)}
:focus-visible{outline:2.5px solid var(--ink);outline-offset:2px}
h2,h3,.menu-title,.sheet h2,.page-head h2,.gt-txt b,.mc-txt b,.rk-main .rk-elo,.acc-main b,.ladder-game,.rv-h h2,.sh-stxt b,.hr-sec h3,.banner b,.intro-title{font-family:var(--font-ui)!important;font-weight:800!important;letter-spacing:-.025em!important}
.label{color:var(--muted);font-size:13px;font-weight:700}
.menu-note,.hc-note{color:var(--muted)}
.hc-title{font-size:16px;font-weight:800;color:var(--ink)}
.legal-links a{color:var(--faint)}
.step-back,.link-btn{color:var(--ink);font-weight:800}

/* ================= 1. stickers ================= */
.iconbtn,.ghost,.cta,.choice,.game-tile,.lesson,.rv-cta,.sh-btn,#menu .modes .mode-card.tour,.hub-more .hub-links,.toast,.invite-card,.nudge-card,.guide-card,.coach,.emo-tray,.aw-pop,.joker-pick,.combo-btn{
  border:var(--o) solid var(--stroke)!important;box-shadow:0 var(--lift) 0 var(--stroke)!important}
.iconbtn,.ghost,.cta,.choice,.game-tile,.lesson,.rv-cta,.sh-btn,#menu .modes .mode-card.tour,.combo-btn{
  transition:transform .28s var(--spring),box-shadow .2s var(--spring),background .15s ease,color .15s ease}
.iconbtn,.ghost,.choice,.game-tile,.lesson,.rv-cta,.sh-btn,#menu .modes .mode-card.tour,.toast,.invite-card,.nudge-card,.guide-card,.coach,.emo-tray,.aw-pop,.joker-pick{background:var(--surface)!important;color:var(--ink)}
.iconbtn,.ghost{--lift:3px;border-radius:14px}
.ghost .i,.iconbtn .i{color:var(--ink)}
.iconbtn[aria-pressed="false"]{color:var(--faint)}
.cta{background:var(--primary)!important;color:#fff;border-radius:16px;font-weight:800}
.cta::after{display:none!important}
.cta .i{color:#fff}
@media (hover:hover) and (pointer:fine){
  .iconbtn:hover,.ghost:hover,.choice:hover,.game-tile:hover,.lesson:hover,.rv-cta:hover,.sh-btn:not(:disabled):hover,#menu .modes .mode-card.tour:not(.locked):hover,.combo-btn:hover{
    transform:translateY(-3px) rotate(-1deg);box-shadow:0 calc(var(--lift) + 3px) 0 var(--stroke)!important;filter:none;border-color:var(--stroke)!important}
  .cta:hover{transform:translateY(-3px) rotate(-1deg) scale(1.02);box-shadow:0 calc(var(--lift) + 3px) 0 var(--stroke)!important;filter:none}
  .ghost.leave:hover{color:var(--danger-text);border-color:var(--danger)!important;box-shadow:0 6px 0 var(--danger)!important}
}
.iconbtn:active,.ghost:active,.cta:active,.choice:active,.game-tile:active,.lesson:active,.rv-cta:active,.sh-btn:not(:disabled):active,#menu .modes .mode-card.tour:active,.combo-btn:active{
  transform:translateY(var(--lift));box-shadow:0 0 0 var(--stroke)!important;transition-duration:.08s}

/* ================= 2. wells ================= */
.hub-card,.acct-card,#m-profile>.p-sec,.gloss,.elo-plot,.end-rank,.rank-info .tiers li,.hr-row,.rv-accbox,.rv-tile,.rv-gwrap,.rv-grades,.rv-after,.sh-item,#menu .mode-card:not(.tour),.dtile{
  background:var(--surface-2)!important;border:0!important;box-shadow:none!important;color:var(--ink)}
.hub-card,#m-profile>.p-sec{border-radius:22px!important;padding:16px!important;margin:0!important}
.acct-card{border-radius:18px!important;padding:12px 14px!important}
.gloss{border-radius:18px;padding:14px 16px 15px}
.page-body,#m-profile{gap:14px}
#m-profile>.p-sec.pic-sec{background:none!important;padding:0!important}
.p-sec{border-top:0}

/* a well inside a well is the card colour, so it still shows */
#m-profile .elo-plot,#player .elo-plot,.hub-card .hub-card,.p-sec .gloss{background:var(--surface)!important}
#player .p-sec{background:var(--surface-2);border:0;border-radius:22px;padding:16px;margin-top:12px}
/* the profile windows scroll, and a scroller cuts off what sticks out: room round the content for a frame's
   bats and pumpkin (the content itself stays where it was) */
/* (the window's top band a little deeper, the title clear of what scrolls under it: it was cut right at the title) */
.prof-head{padding-bottom:12px}
.prof-body{margin:-16px -16px 0;padding:16px 18px 0 16px}
.fr{background:var(--surface);border-radius:16px;padding:9px 12px}

/* ================= 3. badges ================= */
.hl-ico,.ch-ico,.lesson .ln,.q .qi,.tour-art,.rv-coach,.ttl{box-shadow:none!important;border:0!important}
.badge{background:var(--danger);color:#fff;box-shadow:0 0 0 2.5px var(--surface)}
.badge.hot{animation:none}
/* the titles: flat gold, silver and bronze, dark letters, no shine */
.ttl{min-width:28px;height:18px;padding:0 5px;border-radius:6px;background:var(--c-gold);color:#141518;font:800 10.5px/1 var(--font-ui)}
.ttl-IM{background:#cfd6dd}
.ttl-FM{background:#e2a46f}
.ttl-GM::after{display:none}
.rk-main .ttl{height:24px;min-width:38px;font-size:13px;border-radius:8px}
.rank-info .tiers li .ttl{height:22px;min-width:34px;font-size:12px}
.norm-bar{background:var(--surface-3);box-shadow:none}
.norm-bar::after{background:var(--primary)}
.titles{border-top:2px solid var(--edge-soft)}
.claim .cta{animation:none}
.rank-card.just .rk-main .ttl{animation:titleStamp .8s var(--spring)}

/* ================= 4. choices ================= */
.seg,.tabs,.sh-tabs,.rew-bar,.hr-seg{background:var(--surface-2)!important;box-shadow:none!important;border:0!important;border-radius:14px;padding:4px}
.seg button,.tabs button,.rew-bar button,.hr-seg button{color:var(--muted);border-radius:10px;font-weight:800;box-shadow:none}
.seg button[aria-pressed="true"],.tabs button[aria-selected="true"],.rew-bar button[aria-selected="true"],.hr-seg button[aria-pressed="true"]{background:var(--ink)!important;color:var(--on-ink)!important;box-shadow:none!important}
.rew-bar button[aria-selected="true"] .i,.rew-bar button[aria-selected="true"] .rb-n{color:var(--on-ink)}
@media (hover:hover) and (pointer:fine){.seg button:not([aria-pressed="true"]):hover,.tabs button:not([aria-selected="true"]):hover,.rew-bar button:not([aria-selected="true"]):hover,.hr-seg button:not([aria-pressed="true"]):not(:disabled):hover{color:var(--ink);background:var(--surface-3)}}
.levels button,.ma-games button,.pmode{background:var(--surface-2)!important;border:0!important;box-shadow:none!important;color:var(--ink);border-radius:14px}
.levels button[aria-pressed="true"],.pmode.sel{background:var(--ink)!important;color:var(--on-ink)!important}
.levels button span{color:inherit;opacity:.75}
@media (hover:hover) and (pointer:fine){.levels button:not([aria-pressed="true"]):hover,.ma-games button:not(:disabled):hover{background:var(--surface-3)!important}}
.emo-grid button,.col-grid button{background:var(--surface-2);border:0;box-shadow:none}
.emo-grid button.sel,.col-grid button.sel{box-shadow:0 0 0 3px var(--stroke)!important;background:var(--surface-2)!important}

/* text fields and the switch */
input:not([type="checkbox"]):not([type="radio"]),textarea,select{background:var(--surface)!important;color:var(--ink)!important;border:var(--o) solid var(--stroke)!important;border-radius:14px!important;box-shadow:none!important}
input:not([type="checkbox"]):not([type="radio"]):focus,textarea:focus{border-color:var(--primary)!important;box-shadow:0 0 0 4px var(--primary-soft)!important}
input::placeholder{color:var(--faint)}
.toggle{background:var(--surface-2)!important;border:0!important;border-radius:16px;color:var(--ink);box-shadow:none}
.toggle input{width:46px;height:28px;border-radius:999px;background:var(--surface-3)!important;border:0!important;box-shadow:none!important;transition:background .2s ease}
.toggle input::after{top:4px;left:4px;width:20px;height:20px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .3s var(--spring)}
.toggle input:checked{background:var(--primary)!important}
.toggle input:checked::after{transform:translateX(18px);background:#fff}

/* ================= sheets and overlays ================= */
.overlay,.endcard{background:color-mix(in srgb,var(--room) 62%,transparent);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.sheet,.rew-pop{background:linear-gradient(180deg,var(--surface) 0%,var(--surface) 58%,var(--sheet-end) 100%);border:var(--o-card) solid var(--stroke);border-radius:38px;box-shadow:none;color:var(--ink)}
.rew-pop{border-width:var(--o);border-radius:24px;padding:16px 18px 18px}
.sheet h2{font-size:30px;line-height:1.05}
.chips-pill{background:var(--surface-2);box-shadow:none;color:var(--ink)}

/* ================= the frame ================= */
.app{background:none;box-shadow:none;margin:0;height:100%;border-radius:0;padding:6px 14px 14px}
.topbar{min-height:62px}
.brand .mark{width:46px;height:38px;filter:none;background:var(--mark) center/contain no-repeat}
.brand .mark *{display:none}
.brand h1{font:800 30px/1 var(--font-ui);letter-spacing:-.035em!important;color:var(--ink)}
.brand h1 span{color:inherit}
.brand p{display:none}
.app.hub-up .brand-text{opacity:1;pointer-events:auto}

/* ================= the menu: one card in the room ================= */
#menu,#queue{background:var(--room);backdrop-filter:none;-webkit-backdrop-filter:none;overflow:hidden}
#table.table.menu-up,#table.table.queue-up{border-color:transparent!important;background:none!important;overflow:visible}
#menu .menu-sheet,#menu .menu-sheet.wide{position:relative;z-index:1;width:min(480px,100%)!important;height:min(780px,100%);max-height:100%;padding:34px 36px 30px}
#menu .step.hub{grid-template-columns:minmax(0,1fr)!important;gap:18px}
#menu .step.hub .hub-main{display:contents}
#menu .step.hub .hub-play{order:1;display:flex;flex-direction:column;align-items:stretch;gap:12px}
#menu .step.hub .hub-side{order:2;padding:0;border:0;margin:0}
#menu .step.hub .hub-more{order:3;display:flex!important;flex-direction:column;gap:12px;padding:0!important;border:0!important}
.menu-lead{text-align:center;color:var(--muted);font-weight:600}
.menu-title{display:flex;align-items:center;justify-content:center;gap:8px;font-size:44px!important;line-height:1;color:var(--ink);text-align:center;margin:6px 0 10px}
.menu-title span{color:inherit}
.menu-title .title-aces{display:none!important}
.menu-title::after{content:"";flex:none;width:58px;height:47px;background:var(--mark) center/contain no-repeat}
.step.page .menu-title{justify-content:flex-start;font-size:32px!important;margin:0}
.step.page .menu-title::after{display:none}
.step.signin #m-signin{display:flex;flex-direction:column;gap:12px}
.hub-back{align-self:flex-start}
.live{justify-content:center;color:var(--muted)}
.live.on i,.gt-on i,.sdot{box-shadow:none!important;animation:none!important}
.live i::after,.gt-on i::after{display:none!important}

/* the three ways to play */
.cta.big.quick{display:flex;flex-direction:column;align-items:center;gap:2px;padding:15px 20px 14px;border-radius:20px}
.cta.big.quick .qp-t{font-size:24px;font-weight:800}
.cta.big.quick .qp-s{font-size:12.5px;opacity:.92}
.cta.big.quick .qp-bolt{display:none}
.ghost.big.alt{--lift:4px;border-radius:20px}
.ghost.big.alt .qp-t{font-size:18px;font-weight:800;color:var(--ink)}
.ghost.big.alt .qp-s{color:var(--muted)}

/* the menu's pages: one sticker, four rows */
.hub-more .hub-links{display:flex;flex-direction:column;gap:0;width:100%;margin:6px 0 2px;padding:0;background:var(--surface);border-radius:24px;overflow:hidden}
.hub-more .hub-link{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;width:100%;min-height:0;padding:13px 16px 13px 13px;border:0;border-radius:0;
  background:transparent;color:var(--ink);text-align:left;box-shadow:none;grid-column:auto!important;transition:background .15s ease}
.hub-more .hub-link+.hub-link{border-top:2px solid var(--edge-soft)}
.hub-more .hub-link .hl-ico{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:15px;font-size:23px;color:#fff;background:var(--hl);transition:transform .3s var(--spring)}
.hub-more .hub-link>span:nth-child(2){display:flex;flex-direction:column;align-items:flex-start;gap:1px;flex:1;min-width:0}
.hub-more .hub-link b{color:var(--ink);font-size:17px;font-weight:800}
.hub-more .hub-link small{display:block;color:var(--muted);font-size:13px;font-weight:600}
.hub-more .hub-link .ch-go{display:grid;flex:none;font-size:20px;color:var(--ink);transition:transform .3s var(--spring)}
.hub-more .hub-link[data-go="friends"]{--hl:var(--c-green)}
.hub-more .hub-link[data-go="shop"]{--hl:var(--c-orange)}
.hub-more .hub-link[data-go="ladder"]{--hl:var(--c-purple)}
.hub-more .hub-link[data-go="profile"]{--hl:var(--c-blue)}
.hub-more .hub-link.tut{--hl:var(--primary)}
.hub-more .hub-link .badge{position:absolute;top:7px;left:46px;right:auto;min-width:22px;height:22px;line-height:22px;border-radius:11px;font-size:12px}
@media (hover:hover) and (pointer:fine){
  .hub-more .hub-link:hover{background:var(--surface-2)}
  .hub-more .hub-link:hover .hl-ico{transform:rotate(-10deg) scale(1.1)}
  .hub-more .hub-link:hover .ch-go{transform:translateX(4px)}
}
.hub-more .hub-link:active{background:var(--surface-2)}
.hub-more .hub-link:active .hl-ico{transform:scale(.9)}

/* the games: stickers one under another, Eso bere's tinted green */
#menu .game-tiles{grid-template-columns:minmax(0,1fr);gap:14px}
.game-tile{border-radius:22px;padding:14px 16px 12px}
.game-tile.g-esobere{background:linear-gradient(180deg,var(--surface),var(--primary-soft))!important}
.gt-txt b{font-size:21px;line-height:1.1}
.gt-txt small{color:var(--muted)}
.gt-art .gt-card{border-radius:5px;box-shadow:0 0 0 2px var(--card-edge)}
.gt-meta i{background:var(--surface-2);color:var(--ink)}
.gt-meta .i,.gt-meta em{color:var(--primary-text)}

/* a row to tap with an icon badge (Vlastní hra, Vlastní pravidla, Další možnosti) */
.choice{flex-direction:row;align-items:center;gap:14px;border-radius:20px}
.choice .ch-ico{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:15px;font-size:22px;color:var(--ink);background:var(--surface-2)}
.choice .ch-txt{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.choice b{color:var(--ink)}
.choice span{color:var(--muted)}
.hr-open.on{background:var(--primary-soft)!important}
.hr-open.on .ch-ico{background:var(--primary);color:#fff}
.hr-open.on #hr-sub{color:var(--primary-text)}

/* which game: a well per way to play, a little table, its two buttons */
#menu .modes{grid-template-columns:minmax(0,1fr)!important;gap:14px}
#menu .mode-card{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-rows:auto auto;column-gap:14px;row-gap:8px;align-items:center;padding:12px 14px 14px 12px;border-radius:22px}
#menu .mode-card .mode-art{grid-row:1/3;width:96px;height:66px;border-radius:14px;background:var(--surface);box-shadow:none}
#menu .mode-card .mc-play{grid-column:1/-1;gap:10px}
#menu .mc-play .cta,#menu .mc-play .ghost{--lift:3px;padding:10px 8px;border-radius:14px;font-size:14px}
#menu .mode-card.sel:not(.tour){background:var(--primary-soft)!important}
.mc-txt b{font-size:19px;color:var(--ink)}
.mc-tags i{background:var(--surface);color:var(--ink)}
.mode-card.isl .mc-tags i:last-child{color:#141518;background:linear-gradient(90deg,var(--isA),var(--isB))}
/* the little table: a white oval with an edge, the seats in the players' colours */
.mode-art ellipse{fill:var(--surface-2);stroke:var(--ink);stroke-width:2.2}
.mode-art circle[stroke]{stroke:none}
.mode-art rect{fill:#fff;stroke:var(--card-edge);stroke-width:1.1;opacity:1}
.mode-art line{stroke:var(--ink);opacity:.35}
/* the title tournament: a sticker with a gold badge; locked, plainly grey */
#menu .modes .mode-card.tour{display:flex;flex-direction:row;align-items:center;gap:14px;border-radius:22px}
.mode-card.tour .tour-art{width:52px;height:52px;border-radius:16px;font-size:28px;color:#141518;background:var(--c-gold)}
.mode-card.tour .mc-txt b,.mode-card.tour .ch-go{color:var(--ink)}
.mode-card.tour .mc-tags i{color:var(--ink);background:var(--surface-2)}
#menu .modes .mode-card.tour.locked{filter:none;opacity:1;box-shadow:none!important;border-color:var(--edge-soft)!important}
.mode-card.tour.locked .tour-art{background:var(--surface-2);color:var(--faint)}
.mode-card.tour.locked .mc-txt b,.mode-card.tour.locked .ch-go{color:var(--muted)}
/* the options for a game against the computer stand one under another */
#menu .bot-opts{grid-template-columns:minmax(0,1fr)}
#menu .bot-opts .seg{grid-auto-columns:auto;grid-auto-flow:row;grid-template-columns:repeat(auto-fit,minmax(88px,1fr))}
/* house rules: a well per rule, a changed one marked green */
.hr-row.ch{background:var(--primary-soft)!important;box-shadow:inset 4px 0 0 var(--primary)!important}
.hr-chip{background:var(--primary-soft);border:0;color:var(--primary-text)}
.watch-pill{background:var(--surface-2);border:0;color:var(--muted)}

/* the shop: wells two to a row, the rarity a coloured word, the button a sticker */
#menu .sh-grid>.sh-item{flex:0 0 calc((100% - 12px) / 2)}
.sh-item{border-radius:22px;padding:0 12px 12px;animation:none!important}
.sh-item::before,.sh-item::after,.sh-sparks,.sh-rays{display:none!important}
.sh-item.on{background:var(--primary-soft)!important}
.sh-item b{color:var(--ink)}
.sh-item .rar{color:color-mix(in srgb,var(--rc) 70%,var(--ink));font-weight:800}
.sh-item.r0 .rar{color:var(--muted)}
.sh-item.feat .sh-btn,.sh-item.feat .eq-badge{min-width:0!important;width:100%!important;max-width:100%}
.sh-btn{--lift:3px;border-radius:14px;font-weight:800}
.sh-btn.buy{background:var(--primary)!important;color:#fff}
.sh-btn.buy:disabled{background:var(--surface)!important;color:var(--muted);border-color:transparent!important;box-shadow:none!important}
.sh-btn.buy .coin{animation:none!important}
.eq-badge{color:#fff;background:var(--primary);box-shadow:none;border-radius:14px}
.eq-badge .i{color:#fff}
.sh-price{color:var(--ink)}

/* the tutorial: each lesson a sticker, its number in a round badge, a done one ticked in green */
.lessons{gap:12px;border:0;border-radius:0;overflow:visible}
.lessons li+li{border-top:0}
.lesson{gap:14px;padding:14px 16px 14px 14px;border-radius:20px}
.lesson .ln{width:38px;height:38px;font:800 16px/1 var(--font-ui);color:var(--ink);background:var(--surface-2)}
.lesson.done .ln{background:var(--primary);color:#fff}
.lesson .lt b{color:var(--ink);font-size:16px}
.lesson .lt small{color:var(--muted)}
.lesson .ch-go{color:var(--ink)}

/* the profile */
.p-top .pava.big,.pl-top .pava.big{box-shadow:none}
.elo-plot{border-radius:16px}
.elo-in .ln{stroke:var(--primary)}
.elo-in .tl{stroke:var(--ink);opacity:.3}
.elo-ch.up{color:var(--primary-text)}.elo-ch.down{color:var(--danger-text)}
.elo-cur{border-left-color:var(--ink)}
.elo-cur i{background:var(--primary);box-shadow:0 0 0 3px var(--surface-2)}
.elo-cur b{background:var(--ink);color:var(--on-ink);box-shadow:none}
.p-stats td{border-top-color:var(--edge-soft)}
.fr-tag{background:var(--surface-2);box-shadow:none;color:var(--ink)}
.fr-tag.on{background:var(--primary-soft);color:var(--primary-text)}
.ladder-list li.me,.lad-row.me{background:var(--primary-soft)!important;box-shadow:none!important}
.rank-info .tiers li{border-radius:14px}

/* friends and the party */
.pm{background:var(--surface);box-shadow:none;border-radius:16px}
.pm.invited{background:transparent;outline:2px dashed var(--edge-soft)}
.pava{box-shadow:none}

/* the day's reward and challenges: one card, nothing boxed inside */
.rew-pop .hub-card{background:none!important;padding:0!important;border-radius:0!important}
.rew-pop .hc-title{font-size:18px}
.streak{color:var(--danger-text)}
.dtile{border-radius:14px}
.dtile small{color:var(--muted)}
.dtile b{color:var(--ink)}
.dtile.today,.dtile.seventh.today{background:var(--primary-soft)!important;box-shadow:none!important}
.dtile.today b{color:var(--primary-text)}
.dtile.done{opacity:.5}
.dtile .gift7,.gift-bounce{animation:none!important}
.q .qi{background:var(--surface-2);color:var(--ink);animation:none}
.q .qi .i{animation:none}
.q .qbar{background:var(--surface-2);box-shadow:none;height:8px}
.q .qbar i{background:var(--primary)}
.q .qrw{color:var(--ink)}
.q.done .qi{background:var(--primary);color:#fff}
.q+.q{padding-top:12px;border-top:2px solid var(--edge-soft)}

/* the rules */
.rules .rh{font-size:16px;margin-top:22px;color:var(--primary-text)}
.gloss>b{font-size:14.5px;color:var(--ink)!important;margin-bottom:8px}
.rules b,.rules .lead{color:var(--ink)}
.rules-tut button{--lift:4px}

/* waiting for players */
.q-seats span{border:2px dashed var(--edge-soft);background:transparent;border-radius:9px}
.q-seats span.on{border:3px solid var(--card-edge);background:var(--back-sm) center/cover no-repeat;box-shadow:0 3px 0 var(--card-edge)}

/* ================= the table: a big card ================= */
.table{border:var(--o-card) solid var(--stroke);border-radius:36px}
.table::before{display:none}
.table::after{box-shadow:none;outline:0}
.print{opacity:.3}
.print text{fill:var(--ink)}
.print .rule{stroke:var(--ink)}
/* the corners: plain words */
.hud .corner{font-size:12.5px;font-weight:800;color:var(--ink)}
.hud .corner.elem-lbl,.hud .corner.pyr-lbl{color:var(--primary-text)}
/* the ash's name as wide in every language ("Popel · 33" the widest, 4.7em): the Element's names beside it start at
   the same place in all of them, and so do the Element's cards over them (placeCorner in app.js) */
.hud-row>#ashlbl{min-width:5em;flex:none}
/* a lone Element's name: as wide as in its widest language, its words centred under the cards */
.hud .corner.solo{text-align:center}
.places div{font-size:12px;font-weight:700;color:var(--muted)}
.places div i{font-family:var(--font-ui);color:var(--ink)}
.places div.on{color:var(--ink)}.places div.on i{color:var(--primary-text)}
/* the ash: a dashed place for the pile; burned cards turn grey, like ash */
.tray{border:2px dashed var(--edge-soft);background:transparent;border-radius:14px}
.card.charred .face{filter:grayscale(1) brightness(1.04) contrast(.88)}
.tk{background:var(--surface-2);box-shadow:none;border-radius:8px}
.tk b{font-family:var(--font-ui);font-weight:800;color:var(--ink)}
.tk i span{background:var(--edge-soft)}
.tk i span.on{background:var(--danger);box-shadow:none}
.tk.gone{opacity:.4}
.elem-tag{background:var(--ink);border:0;color:var(--on-ink);font-weight:800;box-shadow:none;text-transform:none;letter-spacing:0;transition:left var(--t),top var(--t)}
/* the Element's name under it when it is shown at the end: a sticker like the status pill (the surface, the table's
   outline, a hard shadow, ink words), no glow, no capitals */
.elem-tag.up{background:var(--surface);color:var(--ink);border:2.5px solid var(--stroke);box-shadow:0 3px 0 var(--stroke);padding:5px 14px;font-size:13px}
.pyr-shape i{border:2px dashed var(--edge-soft)}
.pyr-shape i.got{border:2.5px solid var(--pc);background:color-mix(in srgb,var(--pc) 14%,transparent)}
/* the players: stickers; whose turn it is, in their colour */
.pod{background:var(--surface);border:var(--o) solid var(--stroke);box-shadow:0 3px 0 var(--stroke);color:var(--ink)}
.pod b{color:var(--ink)}
.pod small,.pod .n{color:var(--muted)}
.pod .ava{box-shadow:none;color:#fff}
.pod.turn,.pod.me.turn{border-color:var(--pc,var(--primary));box-shadow:0 3px 0 var(--pc,var(--primary))}
.pod.me.turn b{color:var(--ink)}
.pod.hit{animation:none}
.pod.bot b::after{background:var(--surface-2);color:var(--muted)}
/* the buttons inside your label: grey chips, not stickers on a sticker */
.pod .fold,.pod .emo-btn,.pod .ghost{background:var(--surface-2)!important;border:0!important;color:var(--ink);box-shadow:none!important;transform:none!important}
@media (hover:hover) and (pointer:fine){.pod .ghost:hover,.pod .emo-btn:hover{background:var(--surface-3)!important}}
.pod .fold.arm{background:var(--danger)!important;color:#fff;animation:none}
.pod[data-isl]{background:var(--surface);border-color:var(--ic)}
/* the line in the middle: a dark pill; yours green; a hot one red */
.status{background:var(--ink)!important;color:var(--on-ink)!important;border:0!important;box-shadow:none!important;font-weight:800}
.status b{color:inherit}
.status.you{background:var(--primary)!important;color:#fff!important}
.status.hot{background:var(--danger)!important;color:#fff!important}
.status.ash{background:var(--surface-2)!important;color:var(--ink)!important}
.slot{border:2px dashed var(--edge-soft);background:transparent;border-radius:16%/11%}
.slot.next,.table.drop-hot .slot.next{border:2.5px solid var(--pc,var(--primary));background:color-mix(in srgb,var(--pc,var(--primary)) 10%,transparent);box-shadow:none}
.tag{color:var(--ink)}
.tag.burn{color:var(--danger-text)}
.clock{background:var(--edge-soft)}
/* little pills that pop up at the table: flat colour, a darker side, white words */
.callout,.plus{border:0!important;color:#fff;font-weight:800;box-shadow:0 3px 0 color-mix(in srgb,var(--pill) 62%,#000)!important;background:var(--pill)!important}
.callout{padding:5px 10px;font-size:11.5px}
.callout.low{--pill:var(--c-blue)}
.callout.high{--pill:var(--c-orange)}
.callout:not(.low):not(.high){--pill:var(--c-purple)}
.plus{--pill:var(--danger)}
.plus::before{background:#fff;box-shadow:3px -3px 0 rgba(255,255,255,.55)}
.prsi-badge{background:var(--surface);border:2.5px solid var(--stroke);color:var(--ink);box-shadow:0 3px 0 var(--stroke)}
.sn-btns button{background:var(--surface)}
/* the joker's value, the combos */
.joker-pick{border-radius:22px}
.jp-ranks button{background:#fff;color:#141518;border:2px solid var(--card-edge);box-shadow:0 2px 0 var(--card-edge)}
.jp-ranks button i{border:0}
.combo-btn{--lift:3px;background:var(--c-purple)!important;color:#fff;animation:comboIn .35s var(--spring)}
/* the hint over a card and its tooltip */
.card .hb{height:21px;min-width:28px;padding:0 6px;top:-12px;border-radius:8px;background:var(--surface);color:var(--hc,var(--primary-text));
  border:2px solid var(--stroke);box-shadow:0 2px 0 var(--stroke);font:800 11.5px/1 var(--font-ui)}
.narrow .card .hb{height:19px;min-width:24px;font-size:10.5px;top:-11px}
.tip{background:var(--surface);border:2.5px solid var(--stroke);color:var(--ink);box-shadow:0 3px 0 var(--stroke);border-radius:14px}
.tip::after{display:none}
/* the emotes: a round sticker bubble beside the player (no tail: nothing to break its edge) */
.emote{background:var(--surface);border:var(--o) solid var(--stroke);box-shadow:0 3px 0 var(--stroke);color:var(--ink);padding:7px 9px;border-radius:999px}
.emote::after{display:none}
.emo-tray{border-radius:20px}
.emo-tray button:hover,.emo-tray button:focus-visible{background:var(--surface-2)}
/* the big moments: a card in the middle */
.banner{background:var(--surface);border:var(--o-card) solid var(--stroke);border-radius:28px;box-shadow:0 6px 0 var(--stroke);backdrop-filter:none;-webkit-backdrop-filter:none}
.banner b{color:var(--ink);font-size:clamp(34px,5.5vw,64px)}
.banner span{color:var(--primary-text);font-size:13px}
.banner.place b{color:var(--primary-text)}
.banner.place span{color:var(--ink)}
.flash{background:radial-gradient(circle at 50% 45%,color-mix(in srgb,var(--surface) 50%,transparent),transparent 70%)}
.intro-card{background:var(--surface);border:var(--o-card) solid var(--stroke);border-radius:30px;box-shadow:0 6px 0 var(--stroke);backdrop-filter:none;-webkit-backdrop-filter:none}
.intro-title{color:var(--ink);font-size:clamp(26px,4.6vw,38px)}
.intro-title i{color:var(--muted)}
.intro-tag{font-family:var(--font-ui);font-weight:800;font-size:16px;color:var(--primary-text)}
.intro-how{color:var(--muted);font-size:13.5px}
.intro-card .label{color:var(--muted)}
.ic{border-radius:4px;box-shadow:0 0 0 2px var(--card-edge),0 2px 0 var(--card-edge);background:var(--back-sm) center/cover no-repeat!important}
.ia-aside em{font:800 26px/1 var(--font-ui);color:var(--primary-text)}
.ia-sword .thread{background:var(--ink)}
/* the tutorial's coach: a sticker with dark words (the bold ones too) */
.coach{border-radius:22px;font-weight:500}
.coach-text,.coach-text b{color:var(--ink)}
.coach-tag{color:var(--primary-text)}
.coach-x{background:var(--surface-2);color:var(--ink)}
@media (hover:hover) and (pointer:fine){.coach-x:hover{background:var(--surface-3);color:var(--ink)}}
.coach-dim{background:color-mix(in srgb,var(--room) 40%,transparent)}
.mc{box-shadow:0 0 0 1.5px var(--card-edge);background:#fff;color:#141518}
.ma-panel .ps{background:#fff;box-shadow:0 0 0 1.5px var(--card-edge)}
.ma-games button i{color:var(--primary-text)}
.ma-games button small{color:var(--muted)}

/* ================= the playing cards: Tic Tac round, a black edge, a faint gradient, springy ================= */
.card .face,.table.photo .card .face{border-radius:16%/11%;border:max(3px,calc(var(--cw)*.05)) solid var(--card-edge);background:#fff;box-shadow:0 4px 0 rgba(20,21,24,.85)}
.card .back,.table.photo .card .back{border:max(3px,calc(var(--cw)*.05)) solid var(--card-edge);border-radius:16%/11%;box-shadow:0 4px 0 rgba(20,21,24,.85)}
.card .front::after,.table.photo .card .front::after{border-radius:inherit;box-shadow:none;background:linear-gradient(180deg,rgba(255,255,255,.2) 0%,rgba(255,255,255,0) 40%,rgba(0,0,0,0) 70%,rgba(20,21,24,.08) 100%)}
.card .lift{transition:transform .38s var(--spring)}
.card .flip{transition:transform calc(var(--t) * 1.15) var(--spring)}
/* a card at rest is flat, its hidden side simply not shown: drawn sharp at its real size, the skins on its
   back in full; it turns in 3D only while it turns over (.flipping: setCard animates the turn itself) */
.card:not(.flipping) .flip{transform:none!important;transform-style:flat;transition:none}
.card:not(.flipping) .face{backface-visibility:visible;-webkit-backface-visibility:visible}
.card:not(.flipping) .back{transform:none}
.card.down:not(.flipping) .front,.card:not(.down):not(.flipping) .back{visibility:hidden}
.card.flipping .flip{transition:none!important}
@media (hover:hover) and (pointer:fine){.card.playable:hover .lift{transform:translateY(-16%) rotate(-3deg) scale(1.04)}}
.card.sel .lift,.card.playable:focus-visible .lift{transform:translateY(-16%) rotate(-3deg) scale(1.04)}
.card.playable:active .lift{transform:translateY(-10%) scale(.97)}
.card .idx{background:var(--ink);color:var(--on-ink)}
/* Dudák's chip: the rank and the suit (a white disc, as the suits stand on the seats) */
.table.dudak .card .idx{display:inline-flex;align-items:center;gap:3px;padding:1px 2px 1px 4px}
.card .idx .ps{display:inline-grid;place-items:center;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px var(--card-edge)}
.card .idx .ps svg{width:9px;height:9px}
/* what a card is doing: a crisp ring in a colour, never a glow */
.table.myturn .card.mine .front{animation:none}
.card.top:not(.burn) .front,.card.top:not(.burn):not([data-tense]) .front{animation:none;box-shadow:0 0 0 3px var(--primary)}
/* Eso bere: the card that would take right now (the highest, or the last of a tie) in a thick yellow frame that glows
   (the user's wish, over the rule above: it must be clear at a glance which card is on top), one frame for the table
   that goes from card to card (syncTopRing in app.js): a card's size, its transform the top card's, over every card
   (in flight too: 850) and under the words above them (the tip, the callouts, the banners). Its glow is drawn once;
   it moves by its transform alone, slow, then fast, then slow again as it nears its card (easeInOutQuart, 1.15 x a
   card's flight, var(--t)); it comes up as the card lands (180 ms, after most of the flight) and goes in 150 ms. */
.top-ring{position:absolute;left:0;top:0;z-index:890;width:var(--cw);height:var(--ch);transform-origin:50% 50%;border-radius:16%/11%;pointer-events:none;
  box-shadow:0 0 0 3.5px #ffc629,0 0 0 5.5px var(--stroke,#141518),0 0 22px 6px rgba(255,198,41,.5);
  transition:transform calc(var(--t,400ms)*1.15) var(--ease-move),opacity .18s var(--ease-out)}
.top-ring.off{opacity:0;transition:opacity .15s ease-out}
.top-ring.jump{transition:opacity .18s var(--ease-out) calc(var(--t,400ms)*.6)}
.table.lobby .top-ring{display:none}
@media (prefers-reduced-motion:reduce){.top-ring{transition:opacity .15s ease-out}}
.card.burn .front{animation:none;box-shadow:0 0 0 3px var(--danger)}
.card.tut-hl .face{animation:none;box-shadow:0 0 0 4px var(--primary),0 4px 0 rgba(20,21,24,.85)}
.tut-hl:not(.card){animation:none;outline:3px solid var(--primary)}
.card.joker .lift::before{animation:none;box-shadow:0 0 0 3px var(--c-purple)}
.card .g6 b{filter:none}
.card .jk{background:var(--c-purple);box-shadow:none}
.card.playable:focus-visible .front{box-shadow:0 0 0 3px var(--primary)}
.table.prsi .card.mine.playable .face,.table.snapsa .card.mine.playable .face,.table.sedma .card.mine.playable .face,.table.marias .card.mine.playable .face{box-shadow:0 0 0 3px var(--primary),0 4px 0 rgba(20,21,24,.85)}
.table.marias .card.mine.sel .face{box-shadow:0 0 0 4px var(--primary),0 4px 0 rgba(20,21,24,.85)}

/* ================= the look you choose in the shop ================= */
/* card backs: a colour, a pattern in a white frame, the heart in a badge; one picture per back */
:root{--bk-classic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2090%20130%27%3E%3Cdefs%3E%3Cpattern%20id%3D%27p%27%20width%3D%2712%27%20height%3D%2712%27%20patternUnits%3D%27userSpaceOnUse%27%3E%3Cpath%20d%3D%27M6%201L11%206L6%2011L1%206Z%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.26%27%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%2790%27%20height%3D%27130%27%20fill%3D%27%23e5484d%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%278%27%20width%3D%2774%27%20height%3D%27114%27%20rx%3D%2711%27%20fill%3D%27url(%23p)%27%20stroke%3D%27%23fff%27%20stroke-width%3D%272.6%27%2F%3E%3Ccircle%20cx%3D%2745%27%20cy%3D%2765%27%20r%3D%2716%27%20fill%3D%27%23fff%27%20stroke%3D%27%23141518%27%20stroke-width%3D%273%27%2F%3E%3Cpath%20transform%3D%27translate(45%2063)%20scale(.85)%27%20d%3D%27M0-3.2C-2-9.2-12-8.8-12-1.2-12%205.2-4.4%209.2%200%2013.2%204.4%209.2%2012%205.2%2012-1.2%2012-8.8%202-9.2%200-3.2Z%27%20fill%3D%27%23e5484d%27%2F%3E%3C%2Fsvg%3E");}
.card .back,.table.photo .card .back,.table.photo .card[data-bk] .back{background-color:transparent!important;background-image:var(--back-img)!important;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;filter:none!important}
.table[data-back] .card .back{filter:none!important}
.pv-back i{background:var(--bk-classic) center/cover no-repeat;filter:none!important;border:3px solid var(--card-edge);border-radius:9px;box-shadow:0 3px 0 var(--card-edge)}
.ic{background:var(--back-sm) center/cover no-repeat!important}

/* table colours: the table card in a soft tint (the room's own white, or its dark) */
.table{--ft:var(--surface);--fb:var(--sheet-end);background:linear-gradient(180deg,var(--ft) 0%,var(--ft) 55%,var(--fb) 100%)}
.pv-felt{--ft:var(--surface);--fb:var(--sheet-end)}
.table[data-felt="green"],.pv-felt[data-id="green"]{--ft:color-mix(in srgb,var(--surface) 84%,var(--c-green));--fb:color-mix(in srgb,var(--sheet-end) 70%,var(--c-green))}
.table[data-felt="bordeaux"],.pv-felt[data-id="bordeaux"]{--ft:color-mix(in srgb,var(--surface) 84%,var(--c-pink));--fb:color-mix(in srgb,var(--sheet-end) 70%,var(--c-pink))}
.table[data-felt="navy"],.pv-felt[data-id="navy"]{--ft:color-mix(in srgb,var(--surface) 84%,var(--c-blue));--fb:color-mix(in srgb,var(--sheet-end) 70%,var(--c-blue))}
.table[data-felt="graphite"],.pv-felt[data-id="graphite"]{--ft:color-mix(in srgb,var(--surface) 84%,#6b7280);--fb:color-mix(in srgb,var(--sheet-end) 70%,#6b7280)}
.table[data-felt="violet"],.pv-felt[data-id="violet"]{--ft:color-mix(in srgb,var(--surface) 84%,var(--c-purple));--fb:color-mix(in srgb,var(--sheet-end) 70%,var(--c-purple))}
.table[data-felt="wood"]{background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 58%,transparent),color-mix(in srgb,var(--sheet-end) 48%,transparent)),url(felt-wood.webp) center/min(620px,80vmin) repeat}
.table[data-felt="wood"]::after{box-shadow:none;outline:0}
.pv-felt{width:132px;height:84px;margin:12px auto;border-radius:20px;background:linear-gradient(180deg,var(--ft) 0%,var(--ft) 50%,var(--fb) 100%)!important;box-shadow:inset 0 0 0 3px var(--stroke)!important}
.pv-felt[data-id="wood"]{background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 58%,transparent),color-mix(in srgb,var(--sheet-end) 48%,transparent)),url(felt-wood.webp) center/170px!important}
.sh-item.feat .pv-felt{border-radius:22px}
.pv-felt i{background:#fff;border:2px solid var(--card-edge);border-radius:4px;box-shadow:0 2px 0 var(--card-edge)}

/* ================= the end card and the review ================= */
.standings,.standings li{border-color:var(--edge-soft)}
.standings li.me{background:var(--primary-soft)!important;box-shadow:none!important;border-color:transparent;border-radius:14px}
.standings li.me .pl{color:var(--primary-text)}
.standings .ava{box-shadow:none}
.standings .aw{color:var(--primary-text)}
.standings .aw-lowballer,.aw-pop.aw-lowballer b{color:color-mix(in srgb,var(--c-blue) 78%,var(--ink))}
.standings .aw-highballer,.aw-pop.aw-highballer b{color:color-mix(in srgb,var(--c-orange) 78%,var(--ink))}
.standings .aw-teflon,.standings .aw-ashMaster,.aw-pop.aw-teflon b,.aw-pop.aw-ashMaster b{color:var(--ash)}
.aw-info{border:0;background:var(--surface-2);color:var(--muted)}
.aw-info[aria-expanded="true"]{background:var(--ink);color:var(--on-ink)}
@media (hover:hover) and (pointer:fine){.aw-info:hover{background:var(--ink);color:var(--on-ink)}}
.aw-pop{border-radius:18px;--lift:3px}
.aw-pop::before{display:none}
.aw-pop b{font-family:var(--font-ui);color:var(--primary-text)}
.aw-pop p{color:var(--ink)}
.end-rank{border-radius:16px}
.end-rank .elo-up{color:var(--primary-text)}.end-rank .elo-down{color:var(--danger-text)}
.rv-cta{border-radius:20px}
.rv-cta::after{display:none}
.rv-coach{background:var(--primary)!important;color:#fff!important}
.rv-coach .i{color:#fff}
.rv-coach.big::after{border-top-color:var(--primary);border-right-color:var(--primary-soft)}
.review{background:var(--room)}
.rv-stage{background:linear-gradient(180deg,var(--surface),var(--sheet-end));border:4px solid var(--stroke);box-shadow:none;border-radius:26px}
.rv-eval{background:#2b2f36;box-shadow:0 0 0 2px var(--stroke)}
.rv-eval i{background:#fff}
.rv-cb{background:color-mix(in srgb,var(--gc) 13%,var(--surface-2))!important;border:0!important;box-shadow:inset 4px 0 0 var(--gc)!important}
.rv-mv{background:var(--surface-2);border:0;color:var(--ink)}
.rv-mv[aria-current="true"],.rv-mv.on{background:var(--ink);color:var(--on-ink)}
.rv-tools [aria-pressed="true"]{background:var(--ink)!important;color:var(--on-ink)!important}
.rv-tools [aria-pressed="true"] .i{color:var(--on-ink)}

/* ================= little cards that come and go ================= */
.toast{border-radius:999px;--lift:3px}
.invite-card,.nudge-card{border-radius:20px}
.guide-card{border-radius:22px}
.guide-spot{box-shadow:0 0 0 9999px color-mix(in srgb,var(--room) 70%,transparent),0 0 0 3px var(--primary)!important}
.rt-dot{box-shadow:none!important}

/* ================= a phone: the card fills the screen ================= */
@media (max-width:560px){
  :root{--o-card:4px}
  .app{padding:4px 8px 8px}
  #menu{padding:6px 2px 4px}
  #menu .menu-sheet,#menu .menu-sheet.wide{height:100%;padding:26px 20px 22px;border-radius:32px}
  .menu-title{font-size:38px!important}
  .menu-title::after{width:50px;height:40px}
  .table{border-radius:28px}
}
@media (prefers-reduced-motion:reduce){.card .lift,.card .flip,.hub-more .hub-link,.cta,.ghost,.iconbtn,.game-tile,.rv-cta,.choice,.lesson,.sh-btn{transition-duration:1ms!important}}

/* small corrections */
#menu .step.hub .hub-side:empty{display:none}
.sh-prog{background:var(--surface-2);height:4px}
.sh-prog::after{background:var(--primary)}
/* a card you cannot play now: faded, not darkened */
.table.prsi .card.mine.dim .face,.table.snapsa .card.mine.dim .face,.table.sedma .card.mine.dim .face,.table.marias .card.mine.dim .face{filter:grayscale(.7) contrast(.85) brightness(1.04)}
.table .card.mine.dim .lift{opacity:.6}
/* a button that cannot be pressed yet: a quiet grey patch, no edge, no shadow, no motion */
.cta:disabled,.ghost:disabled{background:var(--surface-2)!important;color:var(--faint)!important;border-color:transparent!important;box-shadow:none!important;transform:none!important;opacity:1;cursor:default}
.cta:disabled .i,.ghost:disabled .i{color:var(--faint)}
/* a phone: the bar keeps only the little mark, the name is big on the card anyway */
@media (max-width:560px){
  .brand-text,.app.hub-up .brand-text{display:none!important}
  .top-actions{gap:5px}
  .iconbtn{width:38px;height:38px}
}
/* the review's graph: like the ELO line, green on the card colour */
.rv-graph .bg{fill:var(--surface)}
.rv-graph .area{fill:var(--primary-soft)}
.rv-graph .mid{stroke:var(--edge-soft);stroke-dasharray:4 5}
.rv-graph .ln{stroke:var(--primary);stroke-width:2}
.rv-graph .gd{stroke:var(--surface)}
.rv-graph .mk{stroke:var(--ink)}
/* the review stands in the room like the menu, without the table's edge round it */
.table.review-up{border-color:transparent!important;background:none!important}

/* ================= round 4 ================= */
/* the menu's pages: pointing at a row keeps its icon white (an old rule painted it in its own badge colour) */
.hub-more .hub-link:hover .hl-ico,.hub-more .hub-link:active .hl-ico{color:#fff}

/* the ash: burned cards keep their colours, faded under a soft veil, not black and white */
.card.charred .face{filter:saturate(.7) brightness(1.02)}
.card.charred .front::after{background:color-mix(in srgb,var(--surface-2) 42%,transparent)!important}

/* each player's colour on their label: the solid shadow under it is theirs (online: from their picture) */
.pod{box-shadow:0 4px 0 var(--pc,var(--stroke))}
.pod .ava{box-shadow:0 0 0 2.5px var(--surface),0 0 0 4.5px var(--pc,transparent)}
.pod.turn,.pod.me.turn{border-color:var(--pc,var(--primary));box-shadow:0 4px 0 var(--pc,var(--primary))}
.pod b{color:var(--ink)}

/* choosing the joker's value: a row of little playing cards, each lifting like a card in the hand */
.joker-pick{padding:14px 14px 10px;gap:12px}
.joker-pick p{font-size:15px;font-weight:800;color:var(--ink)}
.jp-ranks{grid-template-columns:repeat(9,46px);gap:8px;padding:2px 2px 12px}
.narrow .jp-ranks{grid-template-columns:repeat(5,46px)}
.jp-ranks button{height:66px;border-radius:10px;background:#fff!important;color:#141518;border:2.5px solid var(--card-edge)!important;box-shadow:0 3px 0 var(--card-edge)!important;
  font:800 20px/1 var(--font-ui);transition:transform .28s var(--spring),box-shadow .2s var(--spring)}
.jp-ranks button b{font-weight:800}
.jp-ranks button svg{width:26px;height:26px}
.jp-ranks button i{bottom:-11px;min-width:30px;padding:2px 6px;border-radius:7px;border:0;background:var(--hc,var(--surface-2));color:#fff;font:800 10px/1.2 var(--font-ui);box-shadow:none}
.jp-ranks button:not(.hc) i{color:var(--ink)}
@media (hover:hover) and (pointer:fine){.jp-ranks button:hover{transform:translateY(-6px) rotate(-3deg);box-shadow:0 7px 0 var(--card-edge)!important}}
.jp-ranks button:focus-visible{transform:translateY(-6px) rotate(-3deg);box-shadow:0 7px 0 var(--card-edge),0 0 0 3px var(--primary)!important;outline:none}
.jp-ranks button:active{transform:translateY(1px);box-shadow:0 0 0 var(--card-edge)!important}
.jp-cancel{color:var(--muted);font-weight:800;border-radius:12px;padding:7px 14px}
@media (hover:hover) and (pointer:fine){.jp-cancel:hover{color:var(--ink);background:var(--surface-2)}}

/* ================= the review, in the same look ================= */
.rv-h h2{font-size:26px}
.rv-say p,.rv-say .bub,.rv-say>span:not(.rv-coach){color:var(--ink)}
/* the accuracy: a plain ring, no glow */
.rv-ring .fg{filter:none!important}
.rv-ring .tr{stroke:var(--surface-3)}
.rv-ring b{font-weight:800;color:var(--ink)}
.rv-tile b{font-weight:800}
.rv-meter{opacity:1;height:8px}
.rv-meter::after{background:var(--ink);box-shadow:0 0 0 3px var(--surface-2)}
.rv-bar{background:var(--surface-2);box-shadow:none}
.rv-bar i{background:var(--primary)}
/* the grades: flat round badges */
.gb{box-shadow:none!important;text-shadow:none!important}
.rv-grades li b{font-weight:800}
/* move by move: a small table card, the cards as on the real table, crisp coloured rings instead of glows */
.rv-stage{border-width:4px}
.rv-rn{color:var(--muted)}
.rv-play .nm{color:var(--ink)}
.rv-c{border:max(2px,calc(var(--cw,46px)*.05)) solid var(--card-edge);border-radius:14%/9%!important;background:#fff!important;box-shadow:0 3px 0 rgba(20,21,24,.85)!important}
.rv-c em{box-shadow:none;background:var(--c-purple)}
.rv-slot{border:2px dashed var(--edge-soft);border-radius:12px;background:transparent}
.rv-slot.q{display:flex;align-items:center;justify-content:center;padding:0;border:2.5px solid var(--pc);border-radius:12px;background:color-mix(in srgb,var(--pc) 12%,transparent);
  color:var(--pc);font:800 26px/1 var(--font-ui);box-shadow:none!important;animation:none!important}
.rv-hc.played .rv-c,.rv-hc.tried .rv-c{box-shadow:0 0 0 3px var(--gc),0 3px 0 rgba(20,21,24,.85)!important}
.rv-hc.best .rv-c{box-shadow:0 0 0 3px var(--g-best),0 3px 0 rgba(20,21,24,.85)!important}
button.rv-hc:focus-visible .rv-c{box-shadow:0 0 0 3px var(--stroke)!important}
.rv-hc>.gb{top:-11px;right:-9px}
.rv-tag,.rv-val{box-shadow:none!important;border-radius:8px}
.rv-rk{background:color-mix(in srgb,var(--gc) 14%,var(--surface-2));border:0;color:var(--ink)}
.rv-rk.on{box-shadow:inset 0 0 0 2px var(--gc)}
.rv-gt{font-weight:800}
.rv-cb p{color:var(--ink)}
.rv-retry.on{background:var(--ink)!important;color:var(--on-ink)!important;border-color:var(--stroke)!important}
.rv-after{border-radius:16px}
.rv-after .res{color:var(--ink)}
.rv-mv.on{background:color-mix(in srgb,var(--gc) 16%,var(--surface-2));color:var(--ink);box-shadow:inset 0 0 0 2px var(--gc)}
@media (hover:hover){.rv-mv:not(.on):hover{background:var(--surface-3)}}
.rv-eval{border-radius:10px}

/* "Uložit" with nothing to save: a quiet grey patch the height of the name field; changed, it turns green */
.p-row .cta{align-self:stretch;padding:0 18px;border-radius:14px;font-size:15px}
.p-row .cta.quiet{background:var(--surface-2)!important;color:var(--muted)!important;border-color:transparent!important;box-shadow:none!important;transform:none!important}

/* the ELO line, simpler: no box, a flat green area, a thicker line, round dots */
#m-profile .elo-plot,#player .elo-plot,.elo-plot{background:none!important;box-shadow:none!important;padding:8px 6px 6px 38px;height:124px}
.elo-in .ar{fill:var(--primary-soft)!important}
.elo-in .ln{stroke:var(--primary);stroke-width:3}
.elo-in>i{width:10px;height:10px;margin:-5px 0 0 -5px;background:var(--primary);box-shadow:0 0 0 2.5px var(--surface-2)}
.elo-in svg{border-bottom:2px solid var(--edge-soft)}
.elo-y,.elo-x{color:var(--faint);font-weight:700}
.elo-x{padding-left:38px}
.elo-head b{font-size:14px}
.elo-range{background:var(--surface)!important}
.p-sec .seg,.hub-card .seg,.rew-pop .seg{background:var(--surface)!important}

/* the party card */
.hub-card.party .hc-title{color:var(--ink)}
.pmodes{background:var(--surface)!important;box-shadow:none!important;border:0!important;border-radius:14px;padding:4px;gap:3px}
.pmodes .pmode{background:transparent!important;color:var(--muted);border-radius:10px}
.pmodes .pmode.sel{background:var(--ink)!important;color:var(--on-ink)!important}
@media (hover:hover) and (pointer:fine){.pmodes .pmode:not(.sel):hover{background:var(--surface-2)!important;color:var(--ink)}}
.pgames button{white-space:nowrap;padding:8px 6px}

/* the line in the middle of the table: a white sticker; yours green, a hot one red */
.status{background:var(--surface)!important;color:var(--ink)!important;border:2.5px solid var(--stroke)!important;box-shadow:0 3px 0 var(--stroke)!important;padding:7px 16px}
.status.you{background:var(--primary)!important;color:#fff!important}
.status.hot{background:var(--danger)!important;color:#fff!important}
.status.ash{background:var(--surface-2)!important;color:var(--ink)!important}
/* someone thinking: three dots in their colour in a little grey bubble on their label */
.pod .flag:has(.d){gap:4px;padding:4px 7px;border-radius:999px;background:var(--surface-2)}
.pod .flag .d{width:6px;height:6px}
/* who laid which card: a small grey chip with their colour; the card that burns in red, the taker dark */
.tag{gap:6px;padding:4px 10px 4px 8px;border-radius:999px;background:var(--surface-2);color:var(--ink);font-size:11.5px;font-weight:800}
.tag i{width:9px;height:9px;box-shadow:none}
.tag.burn{background:color-mix(in srgb,var(--danger) 15%,var(--surface-2));color:var(--danger-text)}
.tag.takes{background:var(--ink);color:var(--on-ink)}
.tag.takes i{box-shadow:0 0 0 1.5px var(--on-ink)}
.tag.takes{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 2px var(--stroke)}
.tag.takes i{box-shadow:none}

/* a choice moving: the dark pill slides under the words to the new choice */
.seg,.tabs,.sh-tabs,.pmodes,.hr-seg,.levels,.rk-chips{position:relative}
.seg>button,.tabs>button,.pmodes>button,.hr-seg>button,.levels>button,.rk-chips>button{position:relative;z-index:1;transition:color .18s ease}
.choice-pill{position:absolute;z-index:0;background:var(--ink);pointer-events:none;transform-origin:0 0}
/* (while the pill slides, a button under the pointer shows no ground of its own: the buttons lie over the pill so their
   words read, and a hovered one's lighter ground covered the pill as it passed; the hover comes back once it lands.
   Specific enough to win over every row's hover rule.) */
:is(.seg,.tabs,.pmodes,.hr-seg,.levels,.rk-chips).choice-moving.choice-moving.choice-moving>:hover{background:transparent!important}
:is(.seg,.tabs,.pmodes,.hr-seg,.levels,.rk-chips).choice-moving>:is([aria-pressed="true"],[aria-selected="true"],.pmode.sel){background:transparent!important;color:var(--muted)!important;transition:none!important}
:is(.seg,.tabs,.pmodes,.hr-seg,.levels,.rk-chips).choice-moving>:is([aria-pressed="true"],[aria-selected="true"],.pmode.sel) *{color:inherit!important}

/* the switch: the knob glides with a little spring and stretches while pressed */
.toggle input{transition:background .25s ease}
.toggle input::after{transition:transform .38s var(--ease-pop),width .2s ease}
.toggle input:active::after{width:25px}
.toggle input:checked:active::after{transform:translateX(13px)}

/* the party: tidy little player cards */
.pm{padding:14px 8px 10px}
.pm .crown{top:7px;right:8px;left:auto;transform:none;font-size:15px;color:var(--c-gold);filter:none}
.pm .pm-x{border:0;background:var(--surface-2);color:var(--muted)}
@media (hover:hover) and (pointer:fine){.pm .pm-x:not(.sure):hover{color:var(--danger-text);background:color-mix(in srgb,var(--danger) 14%,var(--surface-2))}}
.pm b{color:var(--ink)}
.pm small{color:var(--muted)}
.hub-card .hc-time{background:var(--surface);color:var(--ink);padding:3px 9px;border-radius:999px;font-weight:800}
.hub-card.party .pchosen{color:var(--ink)}
/* words in a player's colour stay readable on either room */
.pod .flag{color:color-mix(in srgb,var(--pc) 72%,var(--ink))}
.pod .flag .d{background:var(--pc)}
/* while the pill slides, it is the only dark shape in the row: the new choice waits for it, the old one lets go at once */
.seg>button,.tabs>button,.pmodes>button,.hr-seg>button{transition:color .18s ease}
.seg.choice-moving>button[aria-pressed="true"],.tabs.choice-moving>button[aria-selected="true"],.sh-tabs.choice-moving>button[aria-selected="true"],.pmodes.choice-moving>button.pmode.sel,.hr-seg.choice-moving>button[aria-pressed="true"]{background:transparent!important;color:var(--muted)!important}
/* deleting the account: inside its card, a quiet red button; armed, solid red */
.acct-more .p-sec{padding:12px 0 0;margin:0}
.acct-more .ghost.wide,.acct-more .danger-btn{width:100%!important;max-width:100%;margin:6px 0 0;box-sizing:border-box}
.p-sec.danger>.label{color:var(--danger-text)}
.acct-more [data-act="delete"]{color:var(--danger-text)}
.acct-more .danger-btn{background:var(--danger)!important;color:#fff!important}

/* hover without artefacts: stickers rise straight up (no tilt, which left jagged edges and trails),
   each on its own layer so the edge and the shadow move as one piece */
.iconbtn,.ghost,.cta,.choice,.game-tile,.lesson,.rv-cta,.sh-btn,#menu .modes .mode-card.tour,.combo-btn{
  backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:translateZ(0);
  transition:transform .26s var(--ease-pop-strong),box-shadow .26s var(--ease-pop-strong),background .15s ease,color .15s ease}
@media (hover:hover) and (pointer:fine){
  .iconbtn:hover,.ghost:hover,.choice:hover,.game-tile:hover,.lesson:hover,.rv-cta:hover,.sh-btn:not(:disabled):hover,#menu .modes .mode-card.tour:not(.locked):hover,.combo-btn:hover,.cta:hover{
    transform:translate3d(0,-3px,0)}
}
.iconbtn:active,.ghost:active,.cta:active,.choice:active,.game-tile:active,.lesson:active,.rv-cta:active,.sh-btn:not(:disabled):active,#menu .modes .mode-card.tour:active,.combo-btn:active{
  transform:translate3d(0,var(--lift),0)}
.hub-more .hub-link:hover .hl-ico{transform:scale(1.08)}

/* hover, take three: no layer promotion (its edges drew hairlines), no animated shadow (fractional
   offsets left seams); the sticker just moves, its solid shadow moving with it in whole pixels */
.iconbtn,.ghost,.cta,.choice,.game-tile,.lesson,.rv-cta,.sh-btn,#menu .modes .mode-card.tour,.combo-btn,.hub-more .hub-links{
  backface-visibility:visible!important;-webkit-backface-visibility:visible!important;will-change:auto!important;transform:none;
  transition:transform .18s ease-out,background .15s ease,color .15s ease!important}
@media (hover:hover) and (pointer:fine){
  .iconbtn:hover,.ghost:hover,.choice:hover,.game-tile:hover,.lesson:hover,.rv-cta:hover,.sh-btn:not(:disabled):hover,#menu .modes .mode-card.tour:not(.locked):hover,.combo-btn:hover,.cta:hover{
    transform:translateY(-2px);box-shadow:0 var(--lift) 0 var(--stroke)!important}
  .ghost.leave:hover{box-shadow:0 var(--lift) 0 var(--danger)!important}
}
.iconbtn:active,.ghost:active,.cta:active,.choice:active,.game-tile:active,.lesson:active,.rv-cta:active,.sh-btn:not(:disabled):active,#menu .modes .mode-card.tour:active,.combo-btn:active{
  transform:translateY(var(--lift));box-shadow:0 0 0 var(--stroke)!important;transition-duration:.06s!important}
/* the scrollbar's room is kept on both sides, so the card's content stays truly centred */
#menu .menu-sheet,.sheet{scrollbar-gutter:stable both-edges}

/* Trosečník: an island is a flat soft patch with a dashed shore, not a glow; a seat wears its island's
   colour as its edge and solid shadow */
.isle{background:color-mix(in srgb,var(--ic) 9%,transparent)!important;box-shadow:inset 0 0 0 2.5px color-mix(in srgb,var(--ic) 45%,transparent);filter:none}
.pod[data-isl]{background:var(--surface)!important;border:var(--o) solid var(--ic)!important;box-shadow:0 4px 0 var(--ic)!important}
.pod[data-isl].turn{box-shadow:0 4px 0 var(--ic),0 0 0 4px color-mix(in srgb,var(--ic) 25%,transparent)!important}
.pod .tm{color:#141518;border-radius:7px}
.table[data-isl] .status{box-shadow:0 3px 0 var(--stroke)!important}
.table[data-isl="A"] .slot{border-color:color-mix(in srgb,var(--isA) 50%,transparent)}
.table[data-isl="B"] .slot{border-color:color-mix(in srgb,var(--isB) 50%,transparent)}
/* no island circles on the table: the seats' colours and their A/B badges say who is where */
.isle{display:none!important}


/* ================= round 5 ================= */
/* a table colour from the shop is the same in either room: its dark shade, so everything on it uses the dark room's colours; the windows laid over it keep the room's own */
.table:is([data-felt="green"],[data-felt="bordeaux"],[data-felt="navy"],[data-felt="graphite"],[data-felt="violet"],[data-felt="wood"],[data-felt="poker"],[data-felt-dark]){color-scheme:dark;
  --ink:#f1f2f4;--on-ink:#141518;
  --room:#0f1013;--surface:#1b1d21;--surface-2:#26292e;--surface-3:#30343a;--sheet-end:#23262b;
  --muted:#a7acb4;--faint:#7e848c;--edge-soft:rgba(241,242,244,.14);--stk:#2b2e34;
  --primary:#2fc566;--primary-text:#4fdc84;--primary-soft:rgba(47,197,102,.17);
  --danger:#ff5f63;--danger-text:#ff7a7d;--warn-text:#f2b544;--ash:#9aa1a9;--stroke:#000000;}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]) .table:is([data-felt="green"],[data-felt="bordeaux"],[data-felt="navy"],[data-felt="graphite"],[data-felt="violet"],[data-felt="wood"],[data-felt="poker"],[data-felt-dark])>:is(.overlay,.endcard,.review,.toast,.invite-card,.nudge-card){color-scheme:light;
  --ink:#141518;--on-ink:#ffffff;
  --room:#ffffff;--surface:#ffffff;--surface-2:#f0f1f3;--surface-3:#e5e7ea;--sheet-end:#e6e8eb;
  --muted:#5b6068;--faint:#868b93;--edge-soft:rgba(20,21,24,.12);--stk:#ffffff;
  --primary:#22b358;--primary-text:#12803c;--primary-soft:rgba(34,179,88,.14);
  --danger:#e5484d;--danger-text:#c62f35;--warn-text:#b06a00;--ash:#7d848c;--stroke:#141518;}}
:root[data-theme="light"] .table:is([data-felt="green"],[data-felt="bordeaux"],[data-felt="navy"],[data-felt="graphite"],[data-felt="violet"],[data-felt="wood"],[data-felt="poker"],[data-felt-dark])>:is(.overlay,.endcard,.review,.toast,.invite-card,.nudge-card){color-scheme:light;
  --ink:#141518;--on-ink:#ffffff;
  --room:#ffffff;--surface:#ffffff;--surface-2:#f0f1f3;--surface-3:#e5e7ea;--sheet-end:#e6e8eb;
  --muted:#5b6068;--faint:#868b93;--edge-soft:rgba(20,21,24,.12);--stk:#ffffff;
  --primary:#22b358;--primary-text:#12803c;--primary-soft:rgba(34,179,88,.14);
  --danger:#e5484d;--danger-text:#c62f35;--warn-text:#b06a00;--ash:#7d848c;--stroke:#141518;}
/* rings that mark a choice stay visible on black edges */
.emo-grid button.sel,.col-grid button.sel{box-shadow:0 0 0 3px var(--primary)!important}

/* the accuracy titles: flat chips like the other titles, dark words, no shine */
.acc-chip{background:var(--surface-3)!important;color:#141518!important;box-shadow:none!important;border-radius:7px;padding:2px 7px;font-size:9.5px;font-weight:800}
.acc-chip.lv0{background:#cfd6dd!important}
.acc-chip.lv1{background:#a8d98a!important}
.acc-chip.lv2{background:#7fdcc0!important}
.acc-chip.lv3{background:#8fd0f5!important}
.acc-chip.lv4{background:var(--c-gold)!important}
.acc-chip.big{padding:4px 11px;font-size:11.5px}

/* a window over the menu blurs only the menu's card, not the whole room (as the end card blurs only the table) */
#table.table.menu-up.ov-up > .overlay:not(#menu):not(#queue){background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
#table.table.ov-up > #menu > .menu-sheet{filter:blur(5px);transition:filter .2s ease}

/* a sticker's fill: white in the light room, a step lighter than the card in the dark one, so it stands out with its black edge */
.iconbtn,.ghost,.choice,.game-tile,.lesson,.rv-cta,.sh-btn,#menu .modes .mode-card.tour,.toast,.invite-card,.nudge-card,.guide-card,.coach,.emo-tray,.aw-pop,.joker-pick,.hub-more .hub-links,.hub-more .hub-links .hub-link{background-color:var(--stk)}
.iconbtn,.ghost,.choice,.lesson,.rv-cta,.sh-btn:not(.buy),#menu .modes .mode-card.tour,.toast,.invite-card,.nudge-card,.guide-card,.coach,.emo-tray,.aw-pop,.joker-pick,.hub-more .hub-links{background:var(--stk)!important}
.game-tile:not(.g-esobere){background:var(--stk)!important}
@media (hover:hover) and (pointer:fine){.hub-more .hub-link:hover{background:var(--surface-2)!important}}

/* a bought table colour shows its constant dark shade in the shop window (the default one follows the room) */
.pv-felt:not([data-id="teal"]){--surface:#1b1d21;--sheet-end:#23262b}

/* the Element and other small cards: a plain back (its colour, a frame, one heart) so tiny cards read as clean shapes; the sword keeps its point uncut */
:root{--bks-classic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2090%20130%27%3E%3Crect%20width%3D%2790%27%20height%3D%27130%27%20fill%3D%27%23e5484d%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%2710%27%20width%3D%2770%27%20height%3D%27110%27%20rx%3D%2712%27%20fill%3D%27none%27%20stroke%3D%27%23fff%27%20stroke-width%3D%275%27%20stroke-opacity%3D%27.85%27%2F%3E%3Cpath%20transform%3D%27translate(45%2063)%20scale(1.5)%27%20d%3D%27M0-3.2C-2-9.2-12-8.8-12-1.2-12%205.2-4.4%209.2%200%2013.2%204.4%209.2%2012%205.2%2012-1.2%2012-8.8%202-9.2%200-3.2Z%27%20fill%3D%27%23fff%27%2F%3E%3C%2Fsvg%3E");}
.table{--back-sm:var(--bks-classic)!important}
/* (a small card shows the very same picture as a big one: always the full one) */
.ic{background:var(--back-sm) center/cover no-repeat!important;border-radius:5px;box-shadow:0 0 0 2px var(--card-edge),0 2px 0 var(--card-edge)}
.ia-sword .blade .ic.point{clip-path:none}
.ia-sword .thread{width:2px;background:var(--ink)}

/* the accuracy titles (Učeň … Stroj): the same chip as FM/IM/GM, one palette colour per step */
.acc-chip{display:inline-grid!important;place-items:center;height:18px;padding:0 7px!important;margin-right:5px;border-radius:6px!important;
  font:800 10.5px/1 var(--font-ui)!important;letter-spacing:normal;vertical-align:1px;color:#fff!important;box-shadow:none!important}
.acc-chip.lv0{background:#cfd6dd!important;color:#141518!important}
.acc-chip.lv1{background:var(--c-green)!important}
.acc-chip.lv2{background:var(--c-blue)!important}
.acc-chip.lv3{background:var(--c-purple)!important}
.acc-chip.lv4{background:var(--c-gold)!important;color:#141518!important}
.acc-chip.big{height:24px;padding:0 11px!important;font-size:12.5px!important;border-radius:8px!important}
.narrow .pod .acc-chip{height:15px;padding:0 5px!important;font-size:9px!important}
.acc-main b{font-weight:800}

/* ================= the menu's pages, variant B: one sticker, four big colour icons in a row ================= */
.hub-more .hub-links{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:14px 6px 12px;border-radius:24px}
.hub-more .hub-link,.hub-more .hub-links .hub-link{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;padding:4px 2px;min-height:0;border:0!important;border-radius:16px;
  background:transparent!important;text-align:center;box-shadow:none}
.hub-more .hub-link+.hub-link{border-top:0!important}
.hub-more .hub-link .hl-ico{width:56px;height:56px;border-radius:18px;font-size:26px}
.hub-more .hub-link>span:nth-child(2){align-items:center;flex:none}
.hub-more .hub-link b{font-size:13.5px;line-height:1.15}
.hub-more .hub-link small,.hub-more .hub-link .ch-go{display:none!important}
.hub-more .hub-link .badge{top:-2px;left:auto;right:calc(50% - 34px)}
@media (hover:hover) and (pointer:fine){
  .hub-more .hub-link:hover{background:transparent!important}
  .hub-more .hub-link:hover .hl-ico{transform:translateY(-3px) scale(1.06)}
}
.hub-more .hub-link:active .hl-ico{transform:scale(.92)}
.hub-more .hub-link .hl-ico{transition:transform .22s var(--ease-pop-strong)}
@media (max-width:380px){.hub-more .hub-link .hl-ico{width:50px;height:50px;font-size:23px}.hub-more .hub-link b{font-size:12.5px}}
/* the filled pictures in the page badges; the row shares its width among however many pages there are */
.i.fill{fill:currentColor;stroke:none}
.hub-more .hub-link .hl-ico .i{width:28px;height:28px}
.hub-more .hub-links{display:flex!important;justify-content:space-around}
.hub-more .hub-link,.hub-more .hub-links .hub-link{flex:1 1 0;min-width:0}
.hub-more .hub-links{flex-direction:row!important;align-items:flex-start;overflow:visible}
/* the page badges get the same black edge as every sticker */
.hub-more .hub-link .hl-ico{border:2.5px solid var(--stroke)!important;box-sizing:border-box}
/* the pages as four colour buttons in a row, the same sticker as every button; no card around them */
.hub-more .hub-links{background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 0 0!important;gap:10px}
.hub-more .hub-link .hl-ico{width:62px;height:62px;border-radius:20px;border:3px solid var(--stroke)!important;box-shadow:0 4px 0 var(--stroke);
  transition:transform .18s ease-out!important}
.hub-more .hub-link .hl-ico .i{width:30px;height:30px}
.hub-more .hub-link b{font-size:14px}
@media (hover:hover) and (pointer:fine){.hub-more .hub-link:hover .hl-ico{transform:translateY(-2px)!important}}
.hub-more .hub-link:active .hl-ico{transform:translateY(4px)!important;box-shadow:0 0 0 var(--stroke);transition-duration:.06s!important}
@media (max-width:380px){.hub-more .hub-link .hl-ico{width:54px;height:54px;border-radius:18px}}
/* the page buttons stand on the same solid shadow as "Hrát s lidmi" (an older badge rule switched it off) */
.hub-more .hub-link .hl-ico{box-shadow:0 5px 0 var(--stroke)!important}
.hub-more .hub-link:active .hl-ico{transform:translateY(5px)!important;box-shadow:0 0 0 var(--stroke)!important}

/* the pages' buttons sit right under the name and the account, above "Hrát s lidmi": the hub's parts
   are laid out one by one in this order */
#menu .step.hub .hub-play,#menu .step.hub .hub-more{display:contents!important}
#menu .step.hub{gap:12px}
#menu .step.hub .hub-back{order:1}
#menu .step.hub #menu-title{order:2}
#menu .step.hub #hub-party{order:3}
#menu .step.hub .menu-lead{order:4}
#menu .step.hub #acct-box{order:5}
#menu .step.hub #hub-pass{order:5;margin-top:-4px}
#menu .step.hub #nick-wrap{order:6}
#menu .step.hub #hub-links{order:7;margin:4px 0 10px}
#menu .step.hub #btn-quick{order:9}
#menu .step.hub #btn-bots{order:10}
#menu .step.hub #btn-learn{order:11}
/* the two quiet ways to play (more options, the easy page) side by side, in one row */
#menu .step.hub .more-row{order:12;display:flex;flex-wrap:wrap;justify-content:center;gap:0 14px;margin-top:-2px}
#menu .step.hub .more-row .link-btn.more-ways{margin:0}
/* how many are online, right above the way to play with them */
#menu .step.hub #live{order:8;margin:0 0 -4px}
/* the weekend tournament high up: right under the game's name and its one line */
#menu .step.hub #hub-wk{order:4}
#menu .step.hub #hub-wk:empty{display:none}
#menu .step.hub #hub-wk .news{margin:4px 0 0!important}
/* The news: a tab for each poster (the dark pill slides to the one in view, a line in it running out
   before the next comes by itself), the posters side by side under them, one in view, gliding */
#hub-wk .news{position:relative;display:flex;flex-direction:column;gap:10px;padding:0!important;background:none!important;box-shadow:none!important;border:0!important;
  touch-action:pan-y;user-select:none;-webkit-user-select:none}
#hub-wk.dragging .news{cursor:grabbing}
@media (hover:hover) and (pointer:fine){#hub-wk .news-view{cursor:grab}#hub-wk .news :is(button,a){cursor:pointer}}
.news-tabs{position:relative;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));padding:4px;border-radius:14px;background:var(--surface-2)}
.nt-pill{position:absolute;top:4px;bottom:4px;left:4px;width:calc((100% - 8px) / var(--n));border-radius:10px;background:var(--ink);pointer-events:none;
  transform:translateX(calc(var(--i) * 100%));transition:transform .36s var(--ease-move)}
.news-tabs button{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:0;height:36px;padding:0 10px;border:0;border-radius:10px;
  background:none;color:var(--muted);font:inherit;font-size:13.5px;font-weight:800;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:transparent;transition:color .18s ease}
.news-tabs button[aria-selected="true"]{color:var(--on-ink)}
@media (hover:hover) and (pointer:fine){.news-tabs button[aria-selected="false"]:hover{color:var(--ink)}}
.news-tabs button:focus-visible{outline:3px solid var(--primary);outline-offset:-3px}
.news-tabs .wk-dot{flex:none;width:7px;height:7px}
/* (the line: a faint track the width of the pill, filling as the poster's time runs) */
.nt-time{position:absolute;left:10px;right:10px;bottom:4px;height:2px;border-radius:2px;opacity:0;pointer-events:none;background:color-mix(in srgb,currentColor 18%,transparent)}
.nt-time::after{content:"";position:absolute;inset:0;border-radius:inherit;background:currentColor;opacity:.5;transform:scaleX(0);transform-origin:0 50%}
.news-tabs button[aria-selected="true"] .nt-time{opacity:1}
.news-tabs button[aria-selected="true"] .nt-time::after{animation:ntTime 6.5s linear forwards}
@keyframes ntTime{to{transform:scaleX(1)}}
@media (hover:hover) and (pointer:fine){#hub-wk .news:hover .nt-time::after{animation-play-state:paused}}
#hub-wk .news:has(:focus-visible) .nt-time::after,#hub-wk.dragging .nt-time::after{animation-play-state:paused}
.news-view{overflow:hidden;padding:0 0 6px;margin:0 0 -6px}
#hub-wk .news-track{display:flex;gap:14px;transform:translateX(calc(var(--i,0) * (-100% - 14px)));transition:transform .4s var(--ease-move)}
#hub-wk .news-slide{flex:0 0 100%;min-width:0;padding:0}
/* A poster (newsSlide): the slide's own night (its deep colour, the season's on the season's), the scene on
   it, and a band under the scene with the title, its line and what to do */
.ns{position:relative;display:flex;flex-direction:column;height:100%;border:3px solid var(--stroke);border-radius:24px;box-shadow:0 5px 0 var(--stroke);overflow:hidden;color:#fff;
  background:linear-gradient(170deg,color-mix(in srgb,var(--tone-d) 78%,#000),color-mix(in srgb,var(--tone-d) 40%,#000))}
.ns-stage{position:relative;isolation:isolate;flex:1;display:grid;place-items:center;min-height:176px;overflow:hidden}
.ns-stage .pv{margin:0}
.ns-stage .pv-frame{height:auto}
.ns-stage .pv-frame .pava.big{width:104px;height:104px;font-size:50px}
.ns-stage .pv-back{width:150px;height:140px}
.ns-stage .pv-back i{width:74px;height:112px}
.ns-stage .pv-back i:first-child{transform:translateX(-26px) rotate(-11deg)}.ns-stage .pv-back i:last-child{transform:translateX(26px) rotate(9deg)}
.ns-stage .pv-felt{width:180px;height:112px}
.ns-txt{display:flex;align-items:center;justify-content:space-between;gap:10px 14px;flex-wrap:wrap;min-width:0;padding:12px 14px 14px 16px;background:rgba(0,0,0,.26);box-shadow:inset 0 2px 0 rgba(255,255,255,.07)}
.ns-name{display:flex;flex-direction:column;gap:2px;min-width:0}
.ns-name b{font-size:20px;font-weight:900;line-height:1.1;letter-spacing:-.01em}
.ns-name small{font-size:12.5px;font-weight:700;color:rgba(255,255,255,.78)}
.ns-act{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ns-act .cta,.ns-act .ghost{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;font-size:14px}
.ns-act .cta .i{width:16px;height:16px}
.ns-act .cta .i:last-child{margin-right:-4px}
.ns-own{display:inline-flex;align-items:center;gap:6px;font-weight:800;color:#7ef0a8}
.ns-own .i{width:16px;height:16px}
@media (max-width:420px){.ns-tour .ns-stage{padding:10px 10px 0}.ns-tour .wk-podium{gap:6px}.wk-name.none{white-space:normal;font-size:12px;line-height:1.15}.ns-stage{min-height:150px}.ns-stage .pv-frame .pava.big{width:88px;height:88px;font-size:42px}.ns-name b{font-size:17px}.ns-txt{padding:11px 12px 12px 14px}}
@media (prefers-reduced-motion:reduce){#hub-wk .news-track,.nt-pill{transition:none}.nt-time{display:none}}
#menu .step.hub .hub-side{order:13}
#menu .step.hub .hub-more .legal-links{order:14}
#menu .step.hub .hub-back{justify-self:start;width:auto}
/* the game's line under its name sits in the middle of the card, not just its words */
#menu .step.hub .menu-lead{justify-self:center;margin-left:auto;margin-right:auto;max-width:100%}
/* a party always leads the card, right under "Všechny hry", on every screen (its copy in the side column goes) */
#menu .step.hub #hub-party:not(:empty){display:block!important;order:2}
#menu .step.hub #hub-party .hub-card.party{display:block}
#menu .step.hub .hub-side .hub-card.party{display:none!important}
#menu .step.hub #menu-title{order:3}
/* the party: right under the game's name, above its line and your name */
#menu .step.hub #menu-title{order:2}
#menu .step.hub #hub-party:not(:empty){order:3}
#menu .hub-card.party > .cta,#menu .hub-card.party [data-act="pstart"]{width:100%;display:flex;justify-content:center}
/* in a party: the game's name, its line, then the party */
#menu .step.hub .menu-lead{order:3}
#menu .step.hub #hub-party:not(:empty){order:4}

/* the party card, calmer: one line says what the party plays; the choices open under it */
#menu .hub-card.party{display:flex!important;flex-direction:column;gap:14px}
#menu .hub-card.party>header{margin:0}
.hub-card.party .pset{display:flex;align-items:center;gap:12px;padding:12px 12px 12px 16px;border-radius:18px;background:var(--surface)}
.hub-card.party .pset-what{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.hub-card.party .pset-what small{font-size:12px;font-weight:700;color:var(--muted)}
.hub-card.party .pset-what b{font-size:16px;font-weight:800;color:var(--ink);line-height:1.25}
.hub-card.party .pset-go{flex:none;height:40px;padding:0 16px;border-radius:14px;border:3px solid var(--stroke);background:var(--stk);color:var(--ink);
  font:800 14px var(--font-ui);cursor:pointer;box-shadow:0 3px 0 var(--stroke);transition:transform .18s ease-out;touch-action:manipulation}
.hub-card.party .pset-go:active{transform:translateY(3px);box-shadow:0 0 0 var(--stroke)}
.hub-card.party .pset-go.on{background:var(--ink);color:var(--on-ink)}
@media (hover:hover) and (pointer:fine){.hub-card.party .pset-go:hover{transform:translateY(-2px)}}
.hub-card.party .ppick{display:flex;flex-direction:column;gap:10px;margin-top:-4px;animation:ppick-in .2s ease-out}
.hub-card.party .ppick>*{margin:0!important}
@keyframes ppick-in{from{opacity:0;transform:translateY(-6px)}}
@media (prefers-reduced-motion:reduce){.hub-card.party .ppick{animation:none}}
.hub-card.party .prow.quiet{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 4px;margin:0;padding:0;border:0}
.hub-card.party .pq-chip{white-space:nowrap;padding:0 11px!important}
.hub-card.party .pq-chip{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border:0;border-radius:999px;background:transparent;
  color:var(--muted);font:800 13.5px var(--font-ui);cursor:pointer;touch-action:manipulation}
.hub-card.party .pq-chip svg{width:16px;height:16px}
.hub-card.party .pq-chip.leave{color:var(--danger-text)}
@media (hover:hover) and (pointer:fine){.hub-card.party .pq-chip:hover{background:var(--surface-2);color:var(--ink)}.hub-card.party .pq-chip.leave:hover{color:var(--danger-text)}}

/* a big screen: the party is its own island beside the menu's card, only on the menu's first page, and only where
   there is room for it beside the card (the wide game page needs a very wide screen); otherwise it sits in the page */
.party-float{display:none}
@media (min-width:1200px) and (max-height:599px),(min-width:1720px){
  #menu[data-step="start"] .party-float:not(:empty){display:block;position:absolute;z-index:2;top:50%;left:calc(50% + 240px + 28px);width:320px;
    max-height:calc(100% - 32px);overflow:auto;transform:translateY(-50%);animation:pfloat-in .35s var(--ease-out)}
  #menu[data-step="start"]:has(.party-float:not(:empty)) #hub-party{display:none!important}
  #menu .party-float .hub-card.party{display:flex!important;margin:0;padding:22px;border-radius:34px;border:5px solid var(--stroke)!important;
    background:linear-gradient(180deg,var(--surface) 0%,var(--surface) 70%,var(--sheet-end) 100%)!important;box-shadow:none!important}
  #menu .party-float .pm,#menu .party-float .pset{background:var(--surface-2)!important}
  #menu .party-float .pmodes{background:var(--surface-2)!important}
}
@media (min-width:1720px) and (min-height:600px){#menu[data-step="start"] .party-float:not(:empty){left:calc(50% + 490px + 24px)}}
@keyframes pfloat-in{from{opacity:0;transform:translateY(-50%) translateX(-24px)}}
@media (prefers-reduced-motion:reduce){.party-float{animation:none!important}}
#table.table.ov-up > #menu > .party-float{filter:blur(5px);transition:filter .2s ease}
@media (min-width:1200px){#menu .party-float .seg.pgames,#menu .party-float .toggle{background:var(--surface-2)!important;border-radius:14px}#menu .party-float .toggle{padding:10px 12px}}

/* the deep review: a sticker under the summary's buttons, its progress, and the note once it is done */
.rv-go .rv-deep{grid-column:1/-1;margin:4px 0 0}
.rv-deep.run{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:6px 12px;padding:12px 14px;border-radius:18px;background:var(--surface-2)}
.rv-deep.run .rv-bar{grid-column:1/-1;margin:0;background:var(--surface)}
.rv-deep.run small{font-size:13px;font-weight:700;color:var(--ink)}
.rv-deep.done{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;background:var(--primary-soft);color:var(--primary-text);font-size:13px;font-weight:800}
.rv-deep.done .i{width:18px;height:18px;flex:none}
/* the copy of the page that slides away: exactly as it stood, no animation of its own replaying */
.ghost-copy,.ghost-copy *,.ghost-copy *::before,.ghost-copy *::after{animation:none!important;transition:none!important}

/* a phone: the seats' words (Venku, S kartami, the thinking dots) stand under the seat, as in Trosečník,
   so two seats on one row never push into each other; and neither is wider than half the table */
.table.narrow .pod:not(.me) .flag{position:absolute;left:50%;top:100%;transform:translateX(-50%);margin-top:6px;padding:2px 9px;border-radius:999px;background:var(--glass);white-space:nowrap}
.table.narrow .pod:not(.me) .flag:empty{display:none}
.table.narrow .pod:not(.me):is([data-a="l"],[data-a="r"]){max-width:calc(50% - 18px)}
.table.narrow .pod:not(.me) .who{min-width:0}
.table.narrow .pod:not(.me) .who b,.table.narrow .pod:not(.me) .who small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* friends: a friend's status on one line; Dívat se a small chip, not a big button */
.fr-who small{display:flex;align-items:center;gap:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fr-act .sh-btn.watch{--lift:2px;padding:5px 11px;font-size:13px;border-radius:12px;gap:5px}
.fr-act .sh-btn.watch .i{width:15px;height:15px}
/* a row keeps to one line while the name and the buttons fit; when not (a phone, a long name, Dívat se
   beside Pozvat) the buttons move under the name, flush right, and wrap among themselves if they must */
.fr{flex-wrap:wrap;row-gap:8px}
.fr-who{flex:1 0 auto;max-width:calc(100% - 47px)}
.fr-act{margin-left:auto;flex-wrap:wrap;justify-content:flex-end;row-gap:6px;max-width:100%}
.fr-act>.pm-x.sure{white-space:nowrap}

/* ================= chat ================= */
/* the speech bubble on your seat, beside the reactions; a red count while lines wait unread */
.pod .chat-btn{position:relative;flex:none;width:26px;height:26px;margin-left:6px;padding:0;border-radius:50%;border:0;background:var(--surface-2);color:var(--ink);display:grid;place-items:center;cursor:pointer;touch-action:manipulation}
.pod .chat-btn[hidden]{display:none}
.pod .chat-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linejoin:round}
.pod .chat-btn[aria-expanded="true"]{background:var(--ink);color:var(--on-ink)}
.pod .chat-btn:active{transform:scale(.9)}
@media (hover:hover) and (pointer:fine){.pod .chat-btn:not([aria-expanded="true"]):hover{background:var(--surface-3)}}
.chat-n{position:absolute;top:-7px;right:-8px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--danger);color:#fff;font:800 11px/14px var(--font-ui);text-align:center;border:2px solid var(--surface);box-sizing:border-box}
.chat-n[hidden]{display:none}
/* the panel: a card like the rest, the lines in bubbles (yours on the right), the box to type at the foot */
.chat-panel{position:fixed;right:16px;z-index:1300;width:min(340px,calc(100vw - 32px));display:flex;flex-direction:column;background:var(--surface);color:var(--ink);
  border:var(--o,4px) solid var(--stroke);border-radius:24px;box-shadow:0 5px 0 var(--stroke);overflow:hidden;font-family:var(--font-ui)}
.chat-panel[hidden]{display:none}
.chat-panel.narrow{left:8px;right:8px;width:auto}
.chat-panel.show{animation:chatIn .22s cubic-bezier(.2,.9,.3,1)}
@keyframes chatIn{from{opacity:0;transform:translateY(8px) scale(.98)}}
@media (prefers-reduced-motion:reduce){.chat-panel.show{animation:none}}
.chat-panel header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 10px 6px 16px}
.chat-h{font-size:17px;font-weight:800}
.chat-x{flex:none;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:var(--surface-2);color:var(--ink);display:grid;place-items:center;cursor:pointer}
.chat-x .i{width:18px;height:18px}
.chat-list{list-style:none;margin:0;padding:4px 12px 10px;overflow-y:auto;flex:1 1 auto;min-height:56px;display:flex;flex-direction:column;gap:6px;overscroll-behavior:contain}
.chat-row{display:flex;flex-direction:column;gap:1px;max-width:85%;align-self:flex-start;padding:7px 11px;border-radius:16px 16px 16px 6px;background:var(--surface-2);overflow-wrap:anywhere}
.chat-row b{font-size:12px;font-weight:800;color:color-mix(in srgb,var(--pc) 72%,var(--ink))}
.chat-row span{font-size:14.5px;font-weight:600;line-height:1.35}
.chat-row.me{align-self:flex-end;border-radius:16px 16px 6px 16px;background:var(--primary-soft)}
.chat-row.me b{display:none}
.chat-empty{color:var(--muted);font-size:13.5px;font-weight:600;text-align:center;padding:14px 4px}
.chat-form{display:flex;gap:8px;padding:8px 10px 10px;border-top:2px solid var(--edge-soft)}
.chat-form[hidden]{display:none}
/* 16px: a phone does not zoom in on a box it can read */
.chat-form input{flex:1;min-width:0;height:44px;padding:0 14px;border-radius:14px;border:2px solid var(--edge-soft);background:var(--surface-2);color:var(--ink);font:600 16px var(--font-ui)}
.chat-form input::placeholder{color:var(--muted)}
.chat-form input:focus{outline:none;border-color:var(--ink)}
.chat-send{flex:none;width:46px;height:44px;padding:0;border-radius:14px;border:0;background:var(--primary);color:#fff;display:grid;place-items:center;cursor:pointer}
.chat-send .i{width:21px;height:21px;stroke-width:2.1}
.chat-send:active{transform:scale(.94)}
.chat-ro{margin:0;padding:10px 16px 14px;color:var(--muted);font-size:13px;font-weight:600;text-align:center;border-top:2px solid var(--edge-soft)}
/* a line by its writer's seat while the panel is shut: the reaction's bubble, with words, a little longer */
.emote.say{font-size:13.5px;font-weight:700;line-height:1.3;padding:7px 12px;border-radius:16px;max-width:min(220px,46vw);width:max-content;white-space:normal;overflow-wrap:anywhere;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;animation-duration:5s}
.narrow .emote.say{font-size:13px;padding:6px 10px}
.fr-who .link{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;text-align:left}
/* a phone: the buttons of a row a little tighter, so Dívat se, Pozvat and the cross fit one line under the name */
@media (max-width:560px){
  .fr-act{gap:5px}
  .fr-act .sh-btn{padding:6px 10px;font-size:13px}
  .fr-act .sh-btn.watch{padding:5px 9px;font-size:12.5px;gap:4px}
}
.pod.me.tight .flag{display:none}
.table.narrow .pod.fup:not(.me) .flag{top:auto;bottom:100%;margin:0 0 6px}
@media (max-width:560px){
  .fr{padding-left:10px;padding-right:10px}
  .fr-act .sh-btn{padding:6px 9px}
  .fr-act .sh-btn.watch{padding:5px 8px}
}

/* ================= the swap ================= */
/* "Vyměnit karty": a sticker above your seat; while your offer waits, the same place says so, quietly */
.swap-bar{position:absolute;left:0;top:0;transform:translate(-50%,-50%);z-index:765;display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 16px;
  border-radius:14px;border:3px solid var(--stroke);background:var(--stk);color:var(--ink);font:800 14px var(--font-ui);white-space:nowrap;cursor:pointer;
  box-shadow:0 3px 0 var(--stroke);transition:transform .18s ease-out;touch-action:manipulation}
.swap-bar[hidden]{display:none}
.swap-bar .i{width:18px;height:18px;stroke-width:2.1}
.swap-bar:active:not(:disabled){transform:translate(-50%,-50%) translateY(3px);box-shadow:0 0 0 var(--stroke)}
@media (hover:hover) and (pointer:fine){.swap-bar:hover:not(:disabled){transform:translate(-50%,-50%) translateY(-2px)}}
.swap-bar.wait{cursor:default;border-color:transparent;box-shadow:none;background:var(--glass);color:var(--muted);font-weight:700;font-size:13px}
.sw-dots{display:inline-flex;gap:3px}
.sw-dots i{width:5px;height:5px;border-radius:50%;background:currentColor;animation:blink 1s infinite}
.sw-dots i:nth-child(2){animation-delay:.15s}.sw-dots i:nth-child(3){animation-delay:.3s}
/* whom to offer it: a small card above the button, a button for each player who may still swap */
.swap-tray{position:absolute;left:0;top:0;z-index:960;width:min(300px,calc(100% - 24px));padding:14px;border-radius:22px;background:var(--surface);color:var(--ink);
  border:var(--o,4px) solid var(--stroke);box-shadow:0 4px 0 var(--stroke)}
.swap-tray[hidden]{display:none}
.swap-tray.show{animation:popIn .2s var(--ease-out)}
.sw-h{display:block;font-size:15px;font-weight:800;margin:0 0 10px}
.sw-list{display:flex;flex-direction:column;gap:7px}
.sw-list button{display:flex;align-items:center;gap:10px;width:100%;padding:7px 12px 7px 7px;border-radius:14px;border:0;background:var(--surface-2);color:var(--ink);
  font:800 14.5px var(--font-ui);text-align:left;cursor:pointer;touch-action:manipulation}
.sw-list button:active{transform:scale(.98)}
@media (hover:hover) and (pointer:fine){.sw-list button:hover{background:var(--surface-3)}}
.sw-ava{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--pc);color:#fff;font-size:13px;font-weight:800;overflow:hidden}
.sw-ava img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.sw-note{margin:10px 2px 0;font-size:12px;font-weight:600;line-height:1.4;color:var(--muted)}
/* someone offers you: who, a note, yes or no, and a bar running down the time left */
.swap-ask{position:absolute;left:0;top:0;transform:translate(-50%,-100%);z-index:970;display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 12px;align-items:center;
  width:min(340px,calc(100% - 24px));padding:14px 14px 18px;border-radius:22px;background:var(--surface);color:var(--ink);border:var(--o,4px) solid var(--stroke);
  box-shadow:0 4px 0 var(--stroke);overflow:hidden}
.swap-ask[hidden]{display:none}
.swap-ask.show{animation:swapAskIn .25s cubic-bezier(.2,.9,.3,1)}
@keyframes swapAskIn{from{opacity:0;transform:translate(-50%,-100%) translateY(10px) scale(.97)}}
.swap-ask .sw-ava{width:38px;height:38px;font-size:15px}
.sw-q{display:flex;flex-direction:column;gap:2px;min-width:0}
.sw-q b{font-size:15px;font-weight:800;line-height:1.3}
.sw-q small{font-size:12.5px;font-weight:600;color:var(--muted)}
.sw-btns{grid-column:1/-1;display:flex;gap:8px}
.sw-btns .cta{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.sw-btns .cta .i{width:18px;height:18px}
.sw-btns .ghost{flex:none}
.sw-time{position:absolute;left:0;right:0;bottom:0;height:5px;background:var(--primary);transform-origin:0 50%;animation:swapTime linear forwards}
@keyframes swapTime{to{transform:scaleX(0)}}
@media (prefers-reduced-motion:reduce){.swap-ask.show,.swap-tray.show{animation:none}.sw-dots i{animation:none}}
/* the reactions' and the chat's buttons on your seat are small: a finger gets a wider target than the eye */
.pod .emo-btn,.pod .chat-btn{position:relative}
.pod .emo-btn::after,.pod .chat-btn::after{content:"";position:absolute;inset:-7px -4px}

/* a profile on its way: its own shape in soft grey, breathing gently (still for reduced motion) */
.pl-skel .sk{display:block;background:var(--surface-2);border-radius:10px;animation:skBreathe 1.3s ease-in-out infinite}
.pl-skel .p-sec{display:grid;gap:10px}
.pl-skel .sk-ava{flex:none;width:72px;height:72px;border-radius:50%}
.pl-skel .sk-ava.has{display:grid;place-items:center;background:var(--pc);color:#fff;font-size:30px;font-weight:800;overflow:hidden}
.pl-skel .sk-ava.has img{width:100%;height:100%;object-fit:cover}
.pl-skel .sk-line{height:14px}.pl-skel .sk-line.w30{width:30%}.pl-skel .sk-line.w50{width:50%}.pl-skel .sk-line.w60{width:60%;height:20px}
.pl-skel .sk-pill{width:150px;height:38px;border-radius:14px}
.pl-skel .sk-big{width:46%;height:44px;border-radius:12px}
.pl-skel .sk-chart{height:120px;border-radius:16px}
.pl-skel .sk-row{height:28px;border-radius:8px}
/* inside a grey section the shapes are a shade apart from it */
.pl-skel .p-sec .sk{background:var(--surface-3)}
.pl-skel .p-sec .sk:nth-child(2){animation-delay:.12s}.pl-skel .p-sec .sk:nth-child(3){animation-delay:.24s}.pl-skel .p-sec .sk:nth-child(4){animation-delay:.36s}
@keyframes skBreathe{0%,100%{opacity:1}50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){.pl-skel .sk{animation:none}}
/* a player who is gone: a picture and the sentence, centred */
.pl-gone{display:grid;justify-items:center;gap:10px;padding:34px 12px;text-align:center;color:var(--muted)}
.pl-gone .i{width:44px;height:44px;padding:12px;box-sizing:content-box;border-radius:50%;background:var(--surface-2);color:var(--ink)}
.pl-gone p{margin:0;font-size:15px;font-weight:700;color:var(--ink)}
.pl-skel .pava{width:72px;height:72px;font-size:36px}

/* the reactions' tray holds nine: one row on a wide screen, three by three on a phone */
.emo-tray{grid-template-columns:repeat(9,36px)}
.narrow .emo-tray{grid-template-columns:repeat(3,44px)}
.narrow .emo-tray button{width:44px;height:44px}

/* ================= vláček ================= */
.banner.train b{color:var(--c-orange,#f59e0b);-webkit-text-stroke:0}
.banner.train.show{animation:banner 2.1s cubic-bezier(.2,.8,.2,1) forwards}
.banner.train.show b{animation:vlBounce .5s cubic-bezier(.3,1.6,.5,1) .1s 2}
@keyframes vlBounce{40%{transform:translateY(-8px) rotate(-2deg)}}
.vl-engine{display:block;width:100%;height:100%;animation:vlChug .18s ease-in-out infinite alternate}
@keyframes vlChug{to{transform:translateY(-2px)}}
.vl-puff{position:absolute;left:69%;top:4px;width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid #141518;opacity:0;animation:vlPuff .9s ease-out infinite}
.vl-puff:nth-of-type(2){animation-delay:.3s}.vl-puff:nth-of-type(3){animation-delay:.6s}
@keyframes vlPuff{0%{opacity:0;transform:translate(0,0) scale(.4)}20%{opacity:1}100%{opacity:0;transform:translate(-26px,-30px) scale(1.25)}}
@media (prefers-reduced-motion:reduce){.banner.train.show b{animation:none}}
/* the vláček call stands above the table's cards, so the engine and the hopping wagons show under it */
.banner.train{top:25%}

/* ================= profiles: game chips, three numbers, the chart card, result boxes ================= */
.rk-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:16px 0 12px;padding:2px 0}
.rk-chips::-webkit-scrollbar{display:none}
.rk-chips button{flex:none;border:0;border-radius:999px;padding:8px 14px;background:var(--surface-2);color:var(--muted);font:800 13.5px var(--font-ui);cursor:pointer;touch-action:manipulation;white-space:nowrap}
.rk-chips button[aria-pressed="true"]{background:var(--ink);color:var(--on-ink)}
@media (hover:hover) and (pointer:fine){.rk-chips button[aria-pressed="false"]:hover{background:var(--surface-3);color:var(--ink)}}
.rk-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rk-tile{background:var(--surface-2);border-radius:18px;padding:12px 12px 11px;min-width:0}
.rk-tile b{display:flex;align-items:center;gap:5px;font-size:25px;font-weight:800;letter-spacing:-.02em;line-height:1.1;color:var(--ink)}
.rk-tile b .tbadge,.rk-tile b [class*="title"]{font-size:11px}
.rk-tile small{display:block;margin-top:3px;font-size:12px;font-weight:700;line-height:1.25;color:var(--muted)}
.rk-chart .rk-peak{display:block;margin-top:6px;font-size:12px;font-weight:700;color:var(--muted)}
#m-profile>.p-sec.rk-res,#player .p-sec.rk-res{background:none!important;padding:4px 0 0!important}
.rk-boxes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.rk-box{background:var(--surface-2);border-radius:18px;padding:12px 13px;min-width:0}
.rk-box span{display:block;font-size:12.5px;font-weight:800;color:var(--muted);line-height:1.25}
.rk-box b{display:block;margin-top:4px;font-size:23px;font-weight:800;color:var(--ink)}
.rk-box small{display:block;font-size:12px;font-weight:700;color:var(--muted)}
.rk-box small.rk-last{margin-top:2px;color:var(--danger-text)}
#m-profile .rk-wrap{margin:0}
#m-profile .rk-wrap .rk-chips{margin-top:2px}
#player .pl-act{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
/* (its sections, one under the other; on a wide screen in two columns: the wide-screen block) */
.pl-cols{display:flex;flex-direction:column;gap:12px}
/* in the player's sheet (a scrolling column) these must keep their height; the chart is lower in a profile */
.rk-chips,.rk-tiles,.rk-boxes,.rk-chart{flex-shrink:0}
.rk-chart .elo-plot{height:104px}

/* ================= the ELO card (E1) ================= */
.elo-head{margin-bottom:6px}
.elo-chip{display:inline-flex;align-items:center;gap:3px;padding:3px 10px;border-radius:999px;background:var(--surface-3);color:var(--muted);font-size:12.5px;font-weight:800;font-variant-numeric:tabular-nums}
.elo-chip.up{background:var(--primary-soft);color:var(--primary-text)}
.elo-chip.down{background:color-mix(in srgb,var(--danger) 14%,transparent);color:var(--danger-text)}
.elo-plot{padding:12px 6px 8px!important;background:transparent!important;box-shadow:none!important}
.elo-in .ln{stroke-width:3.2}
.elo-in>i.end{width:13px;height:13px;margin:-6.5px 0 0 -6.5px;background:var(--primary);box-shadow:0 0 0 3px var(--surface-2)}
.elo-x{padding-left:0!important;font-size:12px!important;font-weight:700;color:var(--muted)!important}
.elo-x b{color:var(--ink);font-weight:800}
/* ================= the history (H3, by day) ================= */
.hx-day{margin:14px 2px 7px;font-size:12.5px;font-weight:800;color:var(--faint)}
.hx-day:first-child{margin-top:4px}
.hx{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
.hx-row{display:flex;align-items:stretch;width:100%;min-height:52px;padding:0;border:0;border-radius:16px;background:var(--surface);color:var(--ink);font:inherit;text-align:left;overflow:hidden}
button.hx-row{cursor:pointer;touch-action:manipulation}
@media (hover:hover) and (pointer:fine){button.hx-row:hover{background:var(--surface-3)}}
.hx-strip{flex:none;width:7px;background:var(--surface-3)}
.hx-strip.win{background:var(--primary)}.hx-strip.lost{background:var(--danger)}.hx-strip.mid{background:var(--c-gold,#f5b82e)}.hx-strip.fold{background:var(--faint)}
.hx-main{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:9px 12px}
.hx-main b{font-size:14.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hx-main small{font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hx-go{display:flex;align-items:center;padding-right:12px;color:var(--faint)}
.hx-go .i{width:16px;height:16px}
.elo-chip{align-self:flex-start;justify-self:start;width:max-content;max-width:100%}

/* the history's title and accuracy as chips, so they catch the eye */
.hx-sub{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap;row-gap:4px;margin-top:2px}
.hx-sub small{flex:none}
.hx-aw,.hx-acc,.hx-score{display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap;line-height:1.5}
.hx-aw{background:var(--primary-soft);color:var(--primary-text)}
.hx-aw.aw-lowballer{background:color-mix(in srgb,var(--c-blue,#3b82f6) 16%,transparent);color:color-mix(in srgb,var(--c-blue,#3b82f6) 75%,var(--ink))}
.hx-aw.aw-highballer{background:color-mix(in srgb,var(--c-orange,#f59e0b) 18%,transparent);color:color-mix(in srgb,var(--c-orange,#f59e0b) 70%,var(--ink))}
.hx-aw.aw-teflon,.hx-aw.aw-ashMaster{background:var(--surface-3);color:var(--ink)}
.hx-acc{background:color-mix(in srgb,var(--tone) 16%,transparent);color:var(--muted)}
.hx-acc b{color:color-mix(in srgb,var(--tone) 75%,var(--ink));font-weight:800}
.hx-score{background:var(--surface-3);color:var(--ink)}
.hx-sub b{font-size:12px;overflow:visible}

/* four numbers: a row of four, two by two on a phone */
.rk-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:460px){.rk-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* a party member's name opens their profile */
.pm b .link{all:unset;display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;color:inherit;font:inherit}
@media (hover:hover) and (pointer:fine){.pm b .link:hover{text-decoration:underline;text-underline-offset:3px}}
.pm b .link:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:4px}

/* the DEV badge: crisp pixels, a little lift off the line it sits on */
.dev-b{display:inline-flex;vertical-align:middle;margin:0 0 0 6px;line-height:0;font-style:normal;flex:none;position:relative;top:-1px}
.dev-b svg{height:14px;width:auto;image-rendering:pixelated}
.pod .dev-b svg,.pm .dev-b svg,.fr-who .dev-b svg{height:12px}
.pm b .link{display:inline-block;vertical-align:middle;max-width:100%}
.acct-id .acct-uid{display:block;margin:4px 0;padding:8px 10px;border-radius:10px;background:var(--surface-3);font:700 13px ui-monospace,Consolas,monospace;user-select:all;word-break:break-all}

/* the Danajský gift: the button in purple, and while you pick, your cards show they can be given */
.dj-bar{background:var(--c-purple,#8b5cf6)!important;color:#fff!important}
.dj-bar.on{background:var(--stk)!important;color:var(--ink)!important}
.table.dj-pick .card.mine .lift{box-shadow:0 0 0 3px var(--c-purple,#8b5cf6)!important}
.table.dj-pick .card.mine{cursor:pointer}

/* a developer's switch in another player's profile */
.dev-sw{display:inline-flex;align-items:center;gap:6px;padding:5px 11px!important;font-size:13px!important}
.dev-sw .dev-b{margin:0}
.dev-sw.on{color:var(--danger-text)}

/* a game for chips: the bank at the top of the table, the bet button in gold, the gains on the end card */
.stake-chip{position:absolute;left:0;top:0;transform:translate(-50%,0);z-index:690;display:flex;align-items:center;gap:8px;padding:5px 12px;border-radius:999px;
  background:var(--surface);border:2.5px solid var(--stroke);font-size:12.5px;font-weight:800;white-space:nowrap;pointer-events:none}
.stake-chip[hidden]{display:none}
.stake-chip small{font-size:12px;font-weight:800;color:var(--muted)}
.stake-chip small.up{color:var(--primary-text)}.stake-chip small.down{color:var(--danger-text)}
.bet-bar{background:var(--c-gold,#f5b82e)!important;color:#141518!important}
/* the mode for chips: its card on the mode page, a golden edge */
.mode-card.chips-mode{box-shadow:0 4px 0 color-mix(in srgb,var(--c-gold,#f5b82e) 70%,var(--stroke))!important}
.mode-card.chips-mode .mc-tags i:first-child{display:inline-flex;align-items:center;gap:4px}
/* a game for chips: the account under the standings, everyone's win or loss and how it came about */
.end-stakes{margin:12px 0 4px;padding:12px 14px;border-radius:18px;background:var(--surface-2)}
.end-stakes[hidden]{display:none}
.end-stakes header{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.end-stakes header b{font-size:16px;font-weight:900}
.end-stakes header span{font-size:13px;font-weight:700;color:var(--muted)}
.end-stakes ul{list-style:none;margin:0;padding:0}
.end-stakes li{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:2px solid var(--edge-soft)}
.end-stakes li:first-child{border-top:0}
.end-stakes li.me .stk-who b{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.end-stakes .ava{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:var(--pc);color:#fff;font-weight:800;font-size:13px}
.end-stakes .ava img{width:100%;height:100%;object-fit:cover}
.stk-who{display:flex;flex:1;flex-direction:column;min-width:0}
.stk-who b{font-weight:800;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stk-who small{font-size:12px;font-weight:700;color:var(--muted)}
.stk-sum{flex:none;display:inline-flex;align-items:center;gap:5px;padding:5px 11px;border-radius:999px;font-size:17px;font-weight:900;background:var(--surface);white-space:nowrap}
.stk-sum.up{background:var(--primary-soft);color:var(--primary-text)}
.stk-sum.down{background:color-mix(in srgb,var(--danger) 16%,var(--surface));color:var(--danger-text)}
.stk-d{flex:none;margin-left:auto;padding:3px 9px;border-radius:999px;font-size:13px;font-weight:800;white-space:nowrap}
.stk-d.up{background:var(--primary-soft);color:var(--primary-text)}.stk-d.down{background:color-mix(in srgb,var(--danger) 14%,transparent);color:var(--danger-text)}

/* friends: online on top with the full row, offline below as a quiet list */
.fr-sec{margin:4px 2px 8px;font-size:12.5px;font-weight:800;color:var(--faint)}
/* live games (Přátelé): the ones waiting for confirmation, and writing one down (the players picked in the order they
   finished, a picked one dark with its place) */
.live-card .lv-item{display:flex;flex-direction:column;gap:9px;margin:0 0 10px;padding:12px;border-radius:16px;background:var(--surface)}
.live-card .lv-item.mine{box-shadow:inset 0 0 0 2px var(--primary)}
.lv-head{margin:0;font-size:12.5px;font-weight:800;color:var(--muted)}
.lv-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.lv-p{display:flex;align-items:center;gap:9px;min-width:0}
.lv-p .pava,.lv-chip .pava{width:28px;height:28px;font-size:14px;flex:none}
.lv-n{min-width:20px;font-weight:900;font-variant-numeric:tabular-nums}
.lv-name{flex:1;min-width:0;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lv-st{display:inline-flex;align-items:center;gap:4px;flex:none;font-size:12px;font-weight:800;color:var(--faint)}
.lv-p.ok .lv-st{color:var(--primary-text)}
.lv-st .i{width:14px;height:14px}
.lv-act{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lv-act .cta,.lv-act .ghost{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;font-size:14px}
.lv-act .cta .i{width:16px;height:16px}
.lv-wait{flex:1;min-width:120px;font-size:13px;font-weight:700;color:var(--muted)}
.lv-open{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;padding:11px 14px}
.lv-open .i{width:17px;height:17px}
.lv-new{display:flex;flex-direction:column;gap:12px}
.lv-how{margin:0;font-size:13.5px;font-weight:700;line-height:1.45}
.lv-chips{display:flex;flex-wrap:wrap;gap:8px}
.lv-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:5px 13px 5px 5px;border:0;border-radius:999px;background:var(--surface-2);color:var(--ink);font:inherit;font-size:14px;font-weight:800;cursor:pointer;transition:transform .16s var(--ease-out)}
.lv-chip>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lv-chip.on{padding-left:11px;background:var(--ink);color:var(--on-ink)}
.lv-chip .lv-n{min-width:0}
.lv-chip:active{transform:scale(.97)}
.lv-rules{text-align:left;line-height:1.45}
@media (prefers-reduced-motion:reduce){.lv-chip{transition:none}}
.frl+.fr-sec{margin-top:14px}
.frl.quiet{display:flex;flex-direction:column;gap:0;border-radius:16px;background:var(--surface);padding:2px 10px}
.frl.quiet .fr{background:none;border-radius:0;padding:8px 0;border-top:2px solid var(--edge-soft)}
.frl.quiet .fr:first-child{border-top:0}
.fr-quiet .pava{width:32px;height:32px;font-size:16px}
.fr-quiet .fr-who .link{color:var(--muted);font-weight:700}
.fr-plus{flex:none;width:32px;height:32px;padding:0;border-radius:50%;border:2.5px solid var(--stroke);background:var(--stk);color:var(--ink);display:grid;place-items:center;cursor:pointer}
.fr-plus .i{width:16px;height:16px;stroke-width:2.2}
@media (hover:hover) and (pointer:fine){.fr-plus:hover{background:var(--primary);color:#fff}}

/* the history (HC): a plain table, one game a row */
.hc{list-style:none;margin:0;padding:2px 10px;border-radius:16px;background:var(--surface)}
.hc li+li .hc-row{border-top:2px solid var(--edge-soft)}
.hc-row{display:grid;grid-template-columns:54px 30px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;padding:10px 2px;border:0;background:none;color:var(--ink);font:inherit;text-align:left}
button.hc-row{cursor:pointer;touch-action:manipulation;border-radius:10px}
@media (hover:hover) and (pointer:fine){button.hc-row:hover{background:var(--surface-2)}}
.hc-when{font-size:12px;font-weight:700;color:var(--muted)}
.hc-medal{font-size:20px;text-align:center;line-height:1}
.hc-what{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.hc-what b{font-size:13.5px;font-weight:800;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-acc{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;padding-right:4px}
.hc-none{color:var(--faint);font-weight:700;padding-right:6px}

/* the poker table: the felt from before the redesign (green cloth, its grain, light from above, the
   rail's shadow and the stitch), a rare table in the shop */
.table[data-felt="poker"]{background:radial-gradient(70% 55% at 50% 0%,rgba(255,214,150,.08),transparent 70%),radial-gradient(120% 90% at 50% 42%,#1f6a3d 0%,#0b2a17 72%)!important}
.table[data-felt="poker"]::before{display:block!important;content:"";position:absolute;inset:0;pointer-events:none;background-image:var(--felt-tex,none);background-size:180px 180px;opacity:.55;mix-blend-mode:soft-light;border-radius:inherit}
.table[data-felt="poker"]::after{box-shadow:inset 0 0 0 1px rgba(0,0,0,.55),inset 0 3px 8px rgba(0,0,0,.55),inset 0 0 110px rgba(0,0,0,.42)!important;outline:1px dashed rgba(255,206,130,.2)!important;outline-offset:-10px}
.pv-felt[data-id="poker"]{background:radial-gradient(70% 55% at 50% 0%,rgba(255,214,150,.1),transparent 70%),radial-gradient(120% 90% at 50% 42%,#1f6a3d 0%,#0b2a17 78%)!important;outline:1px dashed rgba(255,206,130,.3);outline-offset:-7px}

/* the weekend tournament's card, at the top of the ladder */

/* the club: the friends' quiet list, the green button, inputs as "Máš kód od kamaráda?" */
.club-sub{margin:-2px 2px 10px;font-size:13.5px;font-weight:700;color:var(--muted)}
.club-list .fr{gap:10px}
.club-pos{flex:none;min-width:22px;font-weight:800;color:var(--muted);font-variant-numeric:tabular-nums}
.club-list .fr.me .fr-who .link{color:var(--ink);font-weight:900}
.club-pts{flex:none;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.club-card .club-play{margin-top:12px}
.club-note{text-align:left!important;margin:10px 2px 0!important;font-size:13px}
.club-or{margin:16px 2px 8px;font-size:14px;font-weight:800;color:var(--ink)}
.club-code{margin:10px 2px 0;font-size:13.5px;color:var(--muted)}
.club-code b{color:var(--ink);letter-spacing:.12em}
.club-leave{display:block;margin:14px auto 0;padding:7px 14px;border:0;border-radius:999px;background:none;color:var(--danger-text);font:800 13.5px var(--font-ui);cursor:pointer;touch-action:manipulation}
.club-leave.sure{background:var(--danger);color:#fff}
.club-leave:active{transform:scale(.97)}
#club-name,#club-code,#g-name{flex:1;width:100%;min-width:0;font:600 16px/1.2 var(--font-ui);padding:12px 14px}
#club-code{font-weight:800;letter-spacing:.14em;text-transform:uppercase}
#club-code::placeholder{text-transform:none;letter-spacing:0;font-weight:600}
.club-card .p-row .cta{flex:none}
.plink-note{text-align:left!important;margin:6px 4px 4px!important;font-size:12.5px}
/* "Ještě jednu?": a whole row above the end card's two buttons */
.end-actions .rematch{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px}
.end-actions .rematch .i{width:18px;height:18px}
.end-actions .rematch.waiting{color:#fff!important;cursor:default}
.end-actions .rematch.waiting .i{animation:rmWait 1.6s ease-in-out infinite}
@keyframes rmWait{50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){.end-actions .rematch.waiting .i{animation:none}}

/* vláčky and popílky in a profile, and the engine driver's badge by the name */
.fun-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:6px}
.fun-box{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 6px;border-radius:14px;background:var(--surface);text-align:center}
.fun-ic{display:grid;place-items:center;height:26px;color:var(--c-orange)}
.fun-ic .i{width:22px;height:22px}
.fun-box b{font-size:18px;font-weight:900;font-variant-numeric:tabular-nums}
.fun-box small{font-size:11.5px;font-weight:700;color:var(--muted);line-height:1.2}
.fun-badge{display:flex;align-items:center;gap:8px;margin:10px 0 0;padding:8px 12px;border-radius:14px;background:var(--primary-soft);color:var(--primary-text)}
.fun-badge .i{flex:none;width:22px;height:22px}
.fun-badge b{font-weight:900}
.fun-badge small{font-size:12px;font-weight:700;opacity:.85}
.drv-b{display:inline-block;width:24px;height:16px;margin-left:5px;vertical-align:-2px;font-style:normal}
.drv-b .vl-ico,.vl-ico{display:block;width:100%;height:100%}


/* seasonal: the Christmas card back and the winter table (snow lies still, nothing drifts) */
:root{--bk-xmas:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2090%20130%27%3E%3Cdefs%3E%3Cpattern%20id%3D%27p%27%20width%3D%2714%27%20height%3D%2714%27%20patternUnits%3D%27userSpaceOnUse%27%3E%3Cpath%20d%3D%27M7%203.5v7M3.5%207h7M4.5%204.5l5%205M9.5%204.5l-5%205%27%20stroke%3D%27%23fff%27%20stroke-opacity%3D%27.42%27%20stroke-width%3D%271.1%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%2790%27%20height%3D%27130%27%20fill%3D%27%23c62f35%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%278%27%20width%3D%2774%27%20height%3D%27114%27%20rx%3D%2711%27%20fill%3D%27url(%23p)%27%20stroke%3D%27%23fff%27%20stroke-width%3D%272.6%27%2F%3E%3Ccircle%20cx%3D%2745%27%20cy%3D%2765%27%20r%3D%2717%27%20fill%3D%27%23fff%27%20stroke%3D%27%23141518%27%20stroke-width%3D%273%27%2F%3E%3Cpath%20d%3D%27M45%2050L54%2062H49.5L56%2072H34L40.5%2062H36Z%27%20fill%3D%27%232f9e44%27%20stroke%3D%27%23141518%27%20stroke-width%3D%272%27%20stroke-linejoin%3D%27round%27%2F%3E%3Crect%20x%3D%2742.5%27%20y%3D%2772%27%20width%3D%275%27%20height%3D%275%27%20fill%3D%27%238a5a2b%27%20stroke%3D%27%23141518%27%20stroke-width%3D%271.6%27%2F%3E%3Ccircle%20cx%3D%2745%27%20cy%3D%2749%27%20r%3D%272.6%27%20fill%3D%27%23f5c542%27%20stroke%3D%27%23141518%27%20stroke-width%3D%271.4%27%2F%3E%3Ccircle%20cx%3D%2742%27%20cy%3D%2766%27%20r%3D%271.5%27%20fill%3D%27%23e5484d%27%2F%3E%3Ccircle%20cx%3D%2748.5%27%20cy%3D%2760%27%20r%3D%271.4%27%20fill%3D%27%23f5c542%27%2F%3E%3Ccircle%20cx%3D%2749%27%20cy%3D%2768.5%27%20r%3D%271.4%27%20fill%3D%27%235cc8ff%27%2F%3E%3C%2Fsvg%3E");--bks-xmas:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2090%20130%27%3E%3Crect%20width%3D%2790%27%20height%3D%27130%27%20fill%3D%27%23c62f35%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%2710%27%20width%3D%2770%27%20height%3D%27110%27%20rx%3D%2712%27%20fill%3D%27none%27%20stroke%3D%27%23fff%27%20stroke-width%3D%275%27%20stroke-opacity%3D%27.85%27%2F%3E%3Cpath%20transform%3D%27translate(45%2065)%20scale(1.6)%20translate(-45%20-63)%27%20d%3D%27M45%2050L54%2062H49.5L56%2072H34L40.5%2062H36Z%27%20fill%3D%27%23fff%27%2F%3E%3C%2Fsvg%3E")}
/* (its still picture too: a card under the top of a hand, and a pile's, wears --back-still; without it, it took the table's,
   so another player's seasonal back showed only on their top card and the viewer's own on the rest. The picture does not
   move, so it is its own still copy.) */
.table[data-back="xmas"]{--back-img:var(--bk-xmas)!important;--back-md:var(--bk-xmas)!important;--back-sm:var(--bks-xmas)!important;--back-still:var(--bk-xmas)!important}
.card[data-own="xmas"]{--back-img:var(--bk-xmas);--back-md:var(--bk-xmas);--back-sm:var(--bks-xmas);--back-still:var(--bk-xmas)}
.pv-back[data-id="xmas"] i{background-image:var(--bk-xmas)}
.table[data-felt="winter"],.pv-felt[data-id="winter"]{--ft:color-mix(in srgb,var(--surface) 78%,#9fd3ff);--fb:color-mix(in srgb,var(--sheet-end) 60%,#6fa9e0)}
.table[data-felt="winter"],.pv-felt[data-id="winter"]{background:
  radial-gradient(circle at 22% 30%,rgba(255,255,255,.75) 0 1.3px,transparent 1.8px) 0 0/48px 48px,
  radial-gradient(circle at 68% 72%,rgba(255,255,255,.6) 0 1px,transparent 1.5px) 0 0/33px 33px,
  radial-gradient(55% 38% at 0 0,rgba(255,255,255,.45),transparent 70%),radial-gradient(55% 38% at 100% 0,rgba(255,255,255,.45),transparent 70%),
  linear-gradient(180deg,var(--ft) 0%,var(--ft) 55%,var(--fb) 100%)}
.table[data-felt="pumpkin"],.pv-felt[data-id="pumpkin"]{--ft:color-mix(in srgb,var(--surface) 80%,#ff7a1a);--fb:color-mix(in srgb,var(--sheet-end) 58%,#6b21a8)}
.table[data-felt="pumpkin"]{background:
  radial-gradient(circle at 30% 40%,rgba(255,170,60,.55) 0 1.4px,transparent 2px) 0 0/52px 52px,
  radial-gradient(circle at 70% 75%,rgba(190,120,255,.45) 0 1.1px,transparent 1.6px) 0 0/37px 37px,
  radial-gradient(60% 45% at 50% 0,rgba(255,140,40,.3),transparent 70%),
  radial-gradient(55% 40% at 0 100%,rgba(120,50,200,.35),transparent 70%),radial-gradient(55% 40% at 100% 100%,rgba(120,50,200,.35),transparent 70%),
  linear-gradient(180deg,var(--ft) 0%,var(--ft) 50%,var(--fb) 100%)}
.pv-felt[data-id="pumpkin"]{background:
  radial-gradient(circle at 30% 40%,rgba(255,170,60,.7) 0 1.2px,transparent 1.8px) 0 0/22px 22px,
  radial-gradient(60% 50% at 50% 0,rgba(255,140,40,.4),transparent 70%),
  radial-gradient(70% 50% at 50% 100%,rgba(120,50,200,.45),transparent 70%),
  linear-gradient(180deg,var(--ft) 0%,var(--ft) 50%,var(--fb) 100%)!important}
.sea-tag{display:inline-block;margin-top:2px;padding:1px 8px;border-radius:999px;background:color-mix(in srgb,var(--c-blue) 18%,var(--surface));color:var(--ink);font-size:11px;font-weight:800;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* a guest from a party's link: the card to sit down, then waiting for the leader */
.guest-wrap{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;padding:16px;background:rgba(20,21,24,.45)}
.guest-wrap[hidden]{display:none}
.guest-card{width:min(420px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border-radius:22px;background:var(--surface);border:3px solid var(--stroke);box-shadow:0 6px 0 var(--stroke);color:var(--ink)}
.guest-card h2{margin:0 0 8px;font-size:20px;font-weight:900;line-height:1.25}
.guest-card .p-row{margin:12px 0 16px}
.guest-card .label{display:block;margin:4px 0 6px}
.g-list{list-style:none;margin:0 0 14px;padding:2px 10px;border-radius:14px;background:var(--surface-2)}
.g-list li{display:flex;align-items:center;gap:9px;padding:7px 0;border-top:2px solid var(--edge-soft);font-weight:700}
.g-list li:first-child{border-top:0}
.g-list li.me{font-weight:900}
.g-list .pava{width:32px;height:32px;font-size:16px;flex:none}
.g-list small{color:var(--muted);font-weight:700}
.g-wait{display:flex;align-items:center;gap:10px;margin:10px 0 16px;padding:12px 14px;border-radius:14px;background:var(--primary-soft);color:var(--primary-text);font-weight:800}
.g-dot{width:10px;height:10px;border-radius:50%;background:currentColor;flex:none;animation:g-dot 1.2s ease-in-out infinite}
@keyframes g-dot{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.g-dot{animation:none}}
.pava.gst .emo-ava{background:var(--surface-3)!important;color:var(--muted);display:grid;place-items:center}
.pava.gst .emo-ava{overflow:hidden}
.pava.gst .emo-ava .i{width:.95em;height:.95em}
.plink-big{margin-top:8px}

/* sharing the result as a picture */
.endcard .sheet{position:relative}
.end-share{position:absolute;top:calc(var(--sp,24px) - 6px);right:calc(var(--sp,24px) - 6px);z-index:3;display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 13px;font-size:14px;font-weight:800}
.end-share .i{width:18px;height:18px}
.endcard .sheet.has-share #end-title{padding-right:96px}

/* the DEV panel */
.dev-open{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 10px}
.dev-card{width:min(560px,100%)}
.dev-card .hc-note{text-align:left}
.dp-give{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px}
.dp-give .coin{width:15px;height:15px;margin:0 0 0 2px}
.dp-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.dp-head h2{flex:1;margin:0;display:flex;align-items:center;gap:8px}
.dev-card .dp-big{margin:0;font-size:40px!important;font-weight:900;line-height:1.1;font-variant-numeric:tabular-nums}
.dp-days,.dp-errs{list-style:none;margin:0 0 14px;padding:2px 10px;border-radius:14px;background:var(--surface-2)}
.dp-days li{display:grid;grid-template-columns:78px 1fr auto;align-items:center;gap:10px;padding:6px 0;font-size:13px;border-top:2px solid var(--edge-soft)}
.dp-days li:first-child,.dp-errs li:first-child{border-top:0}
.dp-days i{height:10px;border-radius:5px;background:var(--surface-3);position:relative;overflow:hidden}
.dp-days i::after{content:"";position:absolute;inset:0;width:calc(var(--p)*100%);background:var(--primary);border-radius:5px}
.dp-days b{font-weight:800;white-space:nowrap}
.dp-errs li{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-top:2px solid var(--edge-soft);min-width:0}
.dp-errs code{font-size:12.5px;white-space:pre-wrap;word-break:break-word;color:var(--danger-text)}
.dp-errs small{font-size:11.5px;color:var(--muted)}
.dp-ua{opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* the turning point, played again on the table: your card and the better one ringed and named, the
   coach's card on the felt */
@keyframes tpIn{from{opacity:0;transform:translate(-50%,-10px) scale(.96)}}

/* for beginners and older players: the way in on the first page, the page itself */
.easy-row{display:flex;align-items:center;gap:12px;width:100%;margin:14px 0 4px;padding:12px 14px;border-radius:18px;border:var(--o) solid var(--stroke);background:var(--surface);color:var(--ink);box-shadow:0 4px 0 var(--stroke);text-align:left;font:inherit;cursor:pointer;touch-action:manipulation;transition:transform .16s var(--ease-out)}
.easy-row:active{transform:translateY(3px);box-shadow:0 1px 0 var(--stroke)}
@media (hover:hover) and (pointer:fine){.easy-row:hover{transform:translateY(-2px) rotate(-.4deg)}}
.er-ico{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:var(--c-pink,#ff7eb3);color:#fff}
.er-ico .i{width:24px;height:24px}
.er-t{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.er-t b{font-size:16px;font-weight:800}
.er-t small{font-size:13px;font-weight:700;color:var(--muted)}
.easy-row>.i{flex:none;width:20px;height:20px;color:var(--muted)}
.easy-link{margin-top:2px}
.easy-card+.easy-card{margin-top:12px}
.easy-lead{margin:2px 2px 12px;font-size:13.5px;color:var(--muted);text-align:left}
.easy-tg{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 2px;border-top:2px solid var(--edge-soft)}
.easy-tg>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.easy-tg b{font-size:15px;font-weight:800}
.easy-tg small{font-size:12.5px;color:var(--muted);font-weight:600}
.easy-tg input{flex:none}
.easy-speed{display:flex;flex-direction:column;gap:8px;padding:12px 2px 2px;border-top:2px solid var(--edge-soft)}
.easy-speed .seg{display:flex}
.easy-speed .seg button{flex:1}
/* (on the narrowest phones three choices fit side by side, comfortable mode's larger letters too) */
@media (max-width:360px){html body .easy-speed .seg button{padding-inline:3px;font-size:13.5px;letter-spacing:-.01em}}
.st-bar{display:block;height:10px;margin:0 2px 10px;border-radius:5px;background:var(--surface-3);position:relative;overflow:hidden}
.st-bar::after{content:"";position:absolute;inset:0;width:calc(var(--p)*100%);border-radius:5px;background:var(--primary)}
.st-list{list-style:none;margin:0;padding:2px 10px;border-radius:16px;background:var(--surface)}
.st{border-top:2px solid var(--edge-soft)}
.st:first-child{border-top:0}
.st-row{display:flex;align-items:center;gap:11px;width:100%;padding:10px 0;border:0;background:none;color:var(--ink);font:inherit;text-align:left}
button.st-row{cursor:pointer;touch-action:manipulation;border-radius:10px}
button.st-row:active{transform:scale(.985)}
@media (hover:hover) and (pointer:fine){button.st-row:hover{background:var(--surface-2)}}
.st-row>.i{flex:none;width:18px;height:18px;color:var(--muted)}
.st-ic{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:var(--surface-2);color:var(--muted)}
.st-ic .i{width:18px;height:18px}
.st.done .st-ic{background:var(--primary);color:#fff}
.st-t{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.st-t b{font-size:14px;font-weight:800}
.st-t small{font-size:12px;color:var(--muted)}
.st.done .st-t b{color:var(--muted);text-decoration:line-through;text-decoration-thickness:2px}
.easy-help{display:flex;align-items:center;justify-content:center;gap:8px}
.easy-help+.easy-help{margin-top:10px}
/* "Proč beru?": a card on the felt under the status, gone by itself or by a tap */
.why-bub{position:absolute;left:50%;top:auto;bottom:120px;z-index:1060;width:min(400px,calc(100% - 24px));transform:translateX(-50%);display:flex;flex-direction:column;gap:3px;padding:11px 15px;border-radius:18px;background:var(--surface);border:var(--o) solid var(--stroke);box-shadow:0 4px 0 var(--stroke);color:var(--ink);cursor:pointer}
.why-bub[hidden]{display:none}
.why-bub b{font-size:14px;font-weight:900;color:var(--danger-text)}
.why-bub span{font-size:14px;line-height:1.4}
.why-bub.in{animation:tpIn .42s cubic-bezier(.34,1.45,.64,1) both}
@media (prefers-reduced-motion:reduce){.why-bub.in{animation:none}}
/* the comfortable mode: bigger text on the menu, the end card, the coach's cards and the status */
html.comfy #menu .menu-lead{font-size:17px}
html.comfy .menu-note,html.comfy .hc-note,html.comfy .easy-lead,html.comfy .club-note{font-size:15px!important}
html.comfy #menu .label,html.comfy .endcard .label{font-size:14.5px}
html.comfy .hc-title{font-size:18.5px}
html.comfy .gt-txt b{font-size:22px}
html.comfy .gt-txt p,html.comfy .gt-txt small,html.comfy .gt-txt span{font-size:15.5px}
html.comfy .qp-s{font-size:14.5px!important}
html.comfy #menu .cta:not(.big){font-size:17px}
html.comfy #menu .ghost:not(.big),html.comfy .link-btn{font-size:16px}
html.comfy .seg button,html.comfy .tabs button{font-size:15.5px}
html.comfy .toggle span,html.comfy .easy-tg b,html.comfy .st-t b{font-size:16.5px}
html.comfy .easy-tg small,html.comfy .st-t small{font-size:14px}
html.comfy .fr-who .link,html.comfy .fr-who b,html.comfy .hub-link b{font-size:16px}
html.comfy .fr-who small,html.comfy .hub-link small{font-size:13.5px}
html.comfy .standings .nm{font-size:17px}
html.comfy .standings .aw-line,html.comfy .standings .d,html.comfy .standings .d2,html.comfy #end-eyebrow{font-size:14.5px}
html.comfy .status{font-size:17px}
html.comfy .pod b{font-size:15px}
html.comfy .pod small{font-size:12.5px}
html.comfy .toast{font-size:16px}
html.comfy .why-bub span{font-size:16.5px}
html.comfy .why-bub b{font-size:16.5px}

/* a vláček's cards on the table (vlacek in app.js): ringed in the engine cab's blue (yellow is the top card's) inside
   the table's dark outline, each
   as its wagon hops (--vd), until the round is settled. In: 200 ms strong ease-out from 96 %; out: the same, at once. */
.vl-ring{position:absolute;inset:0;z-index:6;border-radius:16%/11%;pointer-events:none;opacity:0;scale:.96;
  box-shadow:0 0 0 4px #3b82f6,0 0 0 6.5px var(--stroke,#141518);
  transition:opacity .2s var(--ease-out),scale .2s var(--ease-out)}
.card.vl-on .vl-ring{opacity:1;scale:1;transition-delay:var(--vd,0ms)}
/* (a vláček's cards over the top card's frame, 890: when the top card is in the run, its blue ring shows over the yellow) */
.card.vl-on{z-index:895!important}
@media (prefers-reduced-motion:reduce){.vl-ring{scale:1;transition-property:opacity}}
/* the vláček's call: one box, as the Element is introduced; the engine pulls the run's cards over a track */
.vl-pop{position:absolute;inset:0;z-index:1105;display:flex;justify-content:center;align-items:flex-start;padding:max(56px,8%) 16px 16px;pointer-events:none}
.vl-pop[hidden]{display:none}
.vl-card{width:min(380px,100%);padding:16px 16px 14px!important;gap:6px!important;opacity:0;transform:scale(.92) translateY(10px);transform-origin:50% 0}
.vl-pop.in .vl-card{animation:introIn .5s cubic-bezier(.2,1.25,.35,1) forwards}
.vl-pop.out .vl-card{animation:introOut .32s ease-in forwards}
.vl-title{font:900 34px/1.05 var(--font-ui);letter-spacing:-.02em;color:var(--c-orange,#f59e0b)}
.vl-pop.in .vl-title{animation:vlBounce .5s cubic-bezier(.3,1.6,.5,1) .15s 2}
.vl-scene{position:relative;width:100%;height:100px;overflow:hidden;border-radius:16px;background:var(--surface-2)}
.vl-rails{position:absolute;left:0;right:0;bottom:12px;height:10px;
  background:linear-gradient(var(--ink),var(--ink)) 0 1px/100% 2.5px no-repeat,linear-gradient(var(--ink),var(--ink)) 0 7px/100% 2.5px no-repeat,
  repeating-linear-gradient(90deg,#a0703f 0 6px,transparent 6px 15px)}
.vl-convoy{position:absolute;left:0;bottom:18px;display:flex;align-items:flex-end;will-change:transform}
.vl-wagon{position:relative;flex:none;padding:0 3px 7px}
.vl-wagon .mc{height:40px;width:29px;flex-direction:column;justify-content:center;gap:2px;font-size:13px;border-radius:5px}
.vl-wagon .mc svg{width:14px;height:14px}
.vl-wh{position:absolute;bottom:0;left:4px;width:10px;height:10px;border-radius:50%;background:#141518}
.vl-wh.r{left:auto;right:4px}
.vl-link{flex:none;width:7px;height:3px;margin-bottom:12px;border-radius:2px;background:var(--ink)}
.vl-loco{position:relative;flex:none;width:78px;height:52px;margin-bottom:-4px}
.vl-loco .vl-engine{width:100%;height:100%}
.vl-loco .vl-sp{transform-box:fill-box;transform-origin:center;animation:vlSpin .32s linear infinite}
.vl-loco .vl-toot{top:-24px;left:52%}
.vl-sub{font-size:14px;font-weight:800;color:var(--muted)}
@media (prefers-reduced-motion:reduce){.vl-pop.in .vl-card{animation:none;opacity:1;transform:none}.vl-loco .vl-sp,.vl-loco .vl-engine,.vl-pop .vl-puff,.vl-pop.in .vl-title{animation:none}}
@keyframes vlSpin{to{transform:rotate(360deg)}}
.vl-toot{position:absolute;left:58%;top:-26px;padding:1px 8px;border-radius:10px;background:#fff;border:2.5px solid #141518;color:#141518;font:900 13px/1.4 var(--font-ui);white-space:nowrap;opacity:0;animation:vlToot 1.1s cubic-bezier(.3,1.5,.5,1) .1s forwards}
@keyframes vlToot{0%{opacity:0;transform:translateY(6px) scale(.6)}25%{opacity:1;transform:none}70%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-6px)}}

/* every choice of several, one control: the bots' levels, the party's modes and the profile's games
   on the same grey track as the rest, the chosen one the dark pill */
.levels,.pmodes,.rk-chips{background:var(--surface-2)!important;box-shadow:none!important;border:0!important;border-radius:14px;padding:4px;gap:4px}
.levels>button,.pmodes>.pmode,.rk-chips>button{background:transparent!important;color:var(--muted)!important;border:0!important;border-radius:10px;box-shadow:none!important}
.levels>button[aria-pressed="true"],.pmodes>.pmode.sel,.rk-chips>button[aria-pressed="true"]{background:var(--ink)!important;color:var(--on-ink)!important}
.levels>button[aria-pressed="true"] span{color:var(--on-ink)}
@media (hover:hover) and (pointer:fine){.levels>button:not([aria-pressed="true"]):hover,.pmodes>.pmode:not(.sel):not(:disabled):hover,.rk-chips>button:not([aria-pressed="true"]):hover{background:var(--surface-3)!important;color:var(--ink)!important}}
.hub-card .pmodes,.p-sec .rk-chips,.hub-card .levels{background:var(--surface)!important}
.rk-chips{margin:16px 0 12px}

/* on a phone the end card's share button is its icon alone, and the title keeps its width */
@media (max-width:560px){.end-share{width:40px;padding:0;justify-content:center}.end-share span{display:none}.endcard .sheet.has-share #end-title{padding-right:48px}}

/* a place as a badge (history, the weekend's winners): gold, silver, bronze with the number; left holding
   cards red with cards; folded grey with a flag */
.pl-badge{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--surface-2);color:var(--ink);font:900 13px/1 var(--font-ui);font-variant-numeric:tabular-nums;vertical-align:middle}
.pl-badge.m1{background:#f5c542;color:#141518}
.pl-badge.m2{background:#c3ccd6;color:#141518}
.pl-badge.m3{background:#e0a36b;color:#141518}
.pl-badge.lost{background:color-mix(in srgb,var(--danger) 20%,var(--surface));color:var(--danger-text)}
.pl-badge.fold{background:var(--surface-3);color:var(--muted)}
.pl-badge .i{width:16px;height:16px}
.hc-medal{display:grid;place-items:center}
.clm .i{width:14px;height:14px;vertical-align:-2px}

/* the status pill sits clear of the turn clock under it (the thick outline made the pill taller) */
#status{margin-top:-8px}

/* the party's five games: three to a row, as the modes under them, so no name is cut */
.seg.pgames{grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr))}
.seg.pgames>button{min-width:0;padding:8px 4px}

/* the profile's games share the whole track, as every other choice does (no empty end) */
.rk-chips>button{flex:1 1 auto}
@media (max-width:560px){.rk-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}.rk-chips>button{min-width:0;padding-left:4px;padding-right:4px}}

/* seasonal: the Halloween card back (October and November): bats over a night sky, the moon, a jack-o'-lantern */
:root{--bk-halloween:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2090%20130%27%3E%3Cdefs%3E%3Cpattern%20id%3D%27p%27%20width%3D%2722%27%20height%3D%2722%27%20patternUnits%3D%27userSpaceOnUse%27%3E%3Cpath%20d%3D%27M2%207c2-3%204-3%205-1%201-2%202-2.4%203.2-2.4C11.4%203.6%2012.4%204%2013.4%206c1-2%203-2%205%201-1.6-.6-3%200-3.6%201.2-1-.8-2.4-.6-3%20.6-.8-1-2.2-1-3%200-.6-1.2-2-1.4-3-.6C5%207%203.6%206.4%202%207Z%27%20fill%3D%27%23ff9f1c%27%20fill-opacity%3D%27.55%27%2F%3E%3Ccircle%20cx%3D%2716%27%20cy%3D%2717%27%20r%3D%271%27%20fill%3D%27%23ffd27a%27%20fill-opacity%3D%27.7%27%2F%3E%3Ccircle%20cx%3D%275%27%20cy%3D%2718%27%20r%3D%27.6%27%20fill%3D%27%23ffd27a%27%20fill-opacity%3D%27.5%27%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%2790%27%20height%3D%27130%27%20fill%3D%27%232e1846%27%2F%3E%3Crect%20x%3D%278%27%20y%3D%278%27%20width%3D%2774%27%20height%3D%27114%27%20rx%3D%2711%27%20fill%3D%27url(%23p)%27%20stroke%3D%27%23ff9f1c%27%20stroke-width%3D%272.6%27%2F%3E%3Ccircle%20cx%3D%2745%27%20cy%3D%2762%27%20r%3D%2719%27%20fill%3D%27%23fbe7a1%27%20stroke%3D%27%23141518%27%20stroke-width%3D%273%27%2F%3E%3Cpath%20d%3D%27M45%2055.5c-1.2-2.6-.4-4.6%201.6-5.6%27%20fill%3D%27none%27%20stroke%3D%27%23141518%27%20stroke-width%3D%272.4%27%20stroke-linecap%3D%27round%27%2F%3E%3Cpath%20d%3D%27M45%2056.5c-7.8-2.6-15.2%201.4-15.2%2010.6%200%207.4%206.6%2011.4%2015.2%2011.4s15.2-4%2015.2-11.4c0-9.2-7.4-13.2-15.2-10.6Z%27%20fill%3D%27%23ff8a1f%27%20stroke%3D%27%23141518%27%20stroke-width%3D%272.4%27%20stroke-linejoin%3D%27round%27%2F%3E%3Cpath%20d%3D%27M38.5%2057.5c-3.4%205-3.4%2015%200%2020M51.5%2057.5c3.4%205%203.4%2015%200%2020%27%20fill%3D%27none%27%20stroke%3D%27%23141518%27%20stroke-opacity%3D%27.45%27%20stroke-width%3D%271.4%27%2F%3E%3Cpath%20d%3D%27M36.5%2066.5l3.4-4.6%203.2%204.6ZM46.9%2066.5l3.2-4.6%203.4%204.6Z%27%20fill%3D%27%23141518%27%2F%3E%3Cpath%20d%3D%27M36%2070c5.4%205.6%2012.6%205.6%2018%200l-2%20.4-1.6%201.8-1.8-1.6-1.8%201.8-1.8-1.6-1.8%201.8-1.6-1.8-2-1.8-1.8%201.6-1.6-1.8Z%27%20fill%3D%27%23141518%27%2F%3E%3C%2Fsvg%3E");--bks-halloween:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2090%20130%27%3E%3Crect%20width%3D%2790%27%20height%3D%27130%27%20fill%3D%27%232e1846%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%2710%27%20width%3D%2770%27%20height%3D%27110%27%20rx%3D%2712%27%20fill%3D%27none%27%20stroke%3D%27%23ff9f1c%27%20stroke-width%3D%275%27%20stroke-opacity%3D%27.9%27%2F%3E%3Cg%20transform%3D%27translate(45%2066)%20scale(1.7)%20translate(-45%20-66)%27%3E%3Cpath%20d%3D%27M45%2055.5c-1.2-2.6-.4-4.6%201.6-5.6%27%20fill%3D%27none%27%20stroke%3D%27%23141518%27%20stroke-width%3D%272.4%27%20stroke-linecap%3D%27round%27%2F%3E%3Cpath%20d%3D%27M45%2056.5c-7.8-2.6-15.2%201.4-15.2%2010.6%200%207.4%206.6%2011.4%2015.2%2011.4s15.2-4%2015.2-11.4c0-9.2-7.4-13.2-15.2-10.6Z%27%20fill%3D%27%23ff8a1f%27%20stroke%3D%27%23141518%27%20stroke-width%3D%272.4%27%20stroke-linejoin%3D%27round%27%2F%3E%3Cpath%20d%3D%27M38.5%2057.5c-3.4%205-3.4%2015%200%2020M51.5%2057.5c3.4%205%203.4%2015%200%2020%27%20fill%3D%27none%27%20stroke%3D%27%23141518%27%20stroke-opacity%3D%27.45%27%20stroke-width%3D%271.4%27%2F%3E%3Cpath%20d%3D%27M36.5%2066.5l3.4-4.6%203.2%204.6ZM46.9%2066.5l3.2-4.6%203.4%204.6Z%27%20fill%3D%27%23141518%27%2F%3E%3Cpath%20d%3D%27M36%2070c5.4%205.6%2012.6%205.6%2018%200l-2%20.4-1.6%201.8-1.8-1.6-1.8%201.8-1.8-1.6-1.8%201.8-1.6-1.8-2-1.8-1.8%201.6-1.6-1.8Z%27%20fill%3D%27%23141518%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}
.table[data-back="halloween"]{--back-img:var(--bk-halloween)!important;--back-md:var(--bk-halloween)!important;--back-sm:var(--bks-halloween)!important;--back-still:var(--bk-halloween)!important}
.card[data-own="halloween"]{--back-img:var(--bk-halloween);--back-md:var(--bk-halloween);--back-sm:var(--bks-halloween);--back-still:var(--bk-halloween)}
.pv-back[data-id="halloween"] i{background-image:var(--bk-halloween)}

/* the back a player bought, on the cards in their hand as the others see them (any table's own back underneath) */
.card[data-own] .back{filter:none!important}

/* seasonal frames, animated: Christmas (a Santa hat, snowflakes circling and twinkling) and Halloween
   (a glowing pumpkin, bats flapping round the picture). In a seat the page puts the picture's place
   and size in --ax, --ay, --aw (frameFx); in a list the picture is the box itself. */
.pod[data-frame="xmas"] .ava,.pava[data-frame="xmas"]{box-shadow:0 0 0 var(--rw,2px) #e5484d,0 0 0 calc(var(--rw,2px) + 2px) #fff,0 0 12px 2px rgba(255,255,255,.55)!important}
.pod[data-frame="halloween"] .ava,.pava[data-frame="halloween"]{box-shadow:0 0 0 var(--rw,2px) #ff8a1f,0 0 12px 2px rgba(150,70,220,.75)!important;animation:hwRing 1.8s ease-in-out infinite alternate}
@keyframes hwRing{to{box-shadow:0 0 0 var(--rw,2px) #ffb347,0 0 18px 5px rgba(170,80,255,.85)}}
.pod[data-frame="xmas"],.pod[data-frame="halloween"]{--ax:7px;--ay:10px;--aw:30px}
.pod[data-frame="xmas"]::before,.pod[data-frame="xmas"]::after,.pod[data-frame="halloween"]::before,.pod[data-frame="halloween"]::after,
.pava[data-frame="xmas"]::before,.pava[data-frame="xmas"]::after,.pava[data-frame="halloween"]::before,.pava[data-frame="halloween"]::after{content:"";position:absolute;z-index:2;pointer-events:none;background:center/contain no-repeat}
/* what circles round the picture: as wide as 1.75 pictures, centred on it */
.pod[data-frame="xmas"]::after,.pod[data-frame="halloween"]::after{left:calc(var(--ax) + var(--aw) / 2);top:calc(var(--ay) + var(--aw) / 2);width:calc(var(--aw) * 1.75);height:calc(var(--aw) * 1.75);translate:-50% -50%}
.pava[data-frame="xmas"]::after,.pava[data-frame="halloween"]::after{left:50%;top:50%;width:175%;height:175%;translate:-50% -50%}
.pod[data-frame="xmas"]::after,.pava[data-frame="xmas"]::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-50%20-50%20100%20100%27%3E%3Cg%20transform%3D%27translate(41%200)%20scale(1.15)%27%3E%3Cpath%20d%3D%27M0%200L0%20-5.4M0%20-2.6L-1.5%20-3.9M0%20-2.6L1.5%20-3.9M0%20-4L-0.9%20-4.9M0%20-4L0.9%20-4.9M0%200L4.68%20-2.7M2.25%20-1.3L2.63%20-3.25M2.25%20-1.3L4.13%20-0.65M3.46%20-2L3.79%20-3.23M3.46%20-2L4.69%20-1.67M0%200L4.68%202.7M2.25%201.3L4.13%200.65M2.25%201.3L2.63%203.25M3.46%202L4.69%201.67M3.46%202L3.79%203.23M0%200L0%205.4M0%202.6L1.5%203.9M0%202.6L-1.5%203.9M0%204L0.9%204.9M0%204L-0.9%204.9M0%200L-4.68%202.7M-2.25%201.3L-2.63%203.25M-2.25%201.3L-4.13%200.65M-3.46%202L-3.79%203.23M-3.46%202L-4.69%201.67M0%200L-4.68%20-2.7M-2.25%20-1.3L-4.13%20-0.65M-2.25%20-1.3L-2.63%20-3.25M-3.46%20-2L-4.69%20-1.67M-3.46%20-2L-3.79%20-3.23%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.25%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%3E%3Canimate%20attributeName%3D%27opacity%27%20values%3D%271%3B.3%3B1%27%20dur%3D%272.4s%27%20begin%3D%270.0s%27%20repeatCount%3D%27indefinite%27%2F%3E%3C%2Fpath%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate(12.67%2038.99)%20scale(0.95)%27%3E%3Cpath%20d%3D%27M0%200L0%20-5.4M0%20-2.6L-1.5%20-3.9M0%20-2.6L1.5%20-3.9M0%20-4L-0.9%20-4.9M0%20-4L0.9%20-4.9M0%200L4.68%20-2.7M2.25%20-1.3L2.63%20-3.25M2.25%20-1.3L4.13%20-0.65M3.46%20-2L3.79%20-3.23M3.46%20-2L4.69%20-1.67M0%200L4.68%202.7M2.25%201.3L4.13%200.65M2.25%201.3L2.63%203.25M3.46%202L4.69%201.67M3.46%202L3.79%203.23M0%200L0%205.4M0%202.6L1.5%203.9M0%202.6L-1.5%203.9M0%204L0.9%204.9M0%204L-0.9%204.9M0%200L-4.68%202.7M-2.25%201.3L-2.63%203.25M-2.25%201.3L-4.13%200.65M-3.46%202L-3.79%203.23M-3.46%202L-4.69%201.67M0%200L-4.68%20-2.7M-2.25%20-1.3L-4.13%20-0.65M-2.25%20-1.3L-2.63%20-3.25M-3.46%20-2L-4.69%20-1.67M-3.46%20-2L-3.79%20-3.23%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.25%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%3E%3Canimate%20attributeName%3D%27opacity%27%20values%3D%271%3B.3%3B1%27%20dur%3D%272.4s%27%20begin%3D%270.5s%27%20repeatCount%3D%27indefinite%27%2F%3E%3C%2Fpath%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate(-33.17%2024.1)%20scale(1.15)%27%3E%3Cpath%20d%3D%27M0%200L0%20-5.4M0%20-2.6L-1.5%20-3.9M0%20-2.6L1.5%20-3.9M0%20-4L-0.9%20-4.9M0%20-4L0.9%20-4.9M0%200L4.68%20-2.7M2.25%20-1.3L2.63%20-3.25M2.25%20-1.3L4.13%20-0.65M3.46%20-2L3.79%20-3.23M3.46%20-2L4.69%20-1.67M0%200L4.68%202.7M2.25%201.3L4.13%200.65M2.25%201.3L2.63%203.25M3.46%202L4.69%201.67M3.46%202L3.79%203.23M0%200L0%205.4M0%202.6L1.5%203.9M0%202.6L-1.5%203.9M0%204L0.9%204.9M0%204L-0.9%204.9M0%200L-4.68%202.7M-2.25%201.3L-2.63%203.25M-2.25%201.3L-4.13%200.65M-3.46%202L-3.79%203.23M-3.46%202L-4.69%201.67M0%200L-4.68%20-2.7M-2.25%20-1.3L-4.13%20-0.65M-2.25%20-1.3L-2.63%20-3.25M-3.46%20-2L-4.69%20-1.67M-3.46%20-2L-3.79%20-3.23%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.25%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%3E%3Canimate%20attributeName%3D%27opacity%27%20values%3D%271%3B.3%3B1%27%20dur%3D%272.4s%27%20begin%3D%271.0s%27%20repeatCount%3D%27indefinite%27%2F%3E%3C%2Fpath%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate(-33.17%20-24.1)%20scale(0.95)%27%3E%3Cpath%20d%3D%27M0%200L0%20-5.4M0%20-2.6L-1.5%20-3.9M0%20-2.6L1.5%20-3.9M0%20-4L-0.9%20-4.9M0%20-4L0.9%20-4.9M0%200L4.68%20-2.7M2.25%20-1.3L2.63%20-3.25M2.25%20-1.3L4.13%20-0.65M3.46%20-2L3.79%20-3.23M3.46%20-2L4.69%20-1.67M0%200L4.68%202.7M2.25%201.3L4.13%200.65M2.25%201.3L2.63%203.25M3.46%202L4.69%201.67M3.46%202L3.79%203.23M0%200L0%205.4M0%202.6L1.5%203.9M0%202.6L-1.5%203.9M0%204L0.9%204.9M0%204L-0.9%204.9M0%200L-4.68%202.7M-2.25%201.3L-2.63%203.25M-2.25%201.3L-4.13%200.65M-3.46%202L-3.79%203.23M-3.46%202L-4.69%201.67M0%200L-4.68%20-2.7M-2.25%20-1.3L-4.13%20-0.65M-2.25%20-1.3L-2.63%20-3.25M-3.46%20-2L-4.69%20-1.67M-3.46%20-2L-3.79%20-3.23%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.25%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%3E%3Canimate%20attributeName%3D%27opacity%27%20values%3D%271%3B.3%3B1%27%20dur%3D%272.4s%27%20begin%3D%271.5s%27%20repeatCount%3D%27indefinite%27%2F%3E%3C%2Fpath%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate(12.67%20-38.99)%20scale(1.15)%27%3E%3Cpath%20d%3D%27M0%200L0%20-5.4M0%20-2.6L-1.5%20-3.9M0%20-2.6L1.5%20-3.9M0%20-4L-0.9%20-4.9M0%20-4L0.9%20-4.9M0%200L4.68%20-2.7M2.25%20-1.3L2.63%20-3.25M2.25%20-1.3L4.13%20-0.65M3.46%20-2L3.79%20-3.23M3.46%20-2L4.69%20-1.67M0%200L4.68%202.7M2.25%201.3L4.13%200.65M2.25%201.3L2.63%203.25M3.46%202L4.69%201.67M3.46%202L3.79%203.23M0%200L0%205.4M0%202.6L1.5%203.9M0%202.6L-1.5%203.9M0%204L0.9%204.9M0%204L-0.9%204.9M0%200L-4.68%202.7M-2.25%201.3L-2.63%203.25M-2.25%201.3L-4.13%200.65M-3.46%202L-3.79%203.23M-3.46%202L-4.69%201.67M0%200L-4.68%20-2.7M-2.25%20-1.3L-4.13%20-0.65M-2.25%20-1.3L-2.63%20-3.25M-3.46%20-2L-4.69%20-1.67M-3.46%20-2L-3.79%20-3.23%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.25%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%3E%3Canimate%20attributeName%3D%27opacity%27%20values%3D%271%3B.3%3B1%27%20dur%3D%272.4s%27%20begin%3D%272.0s%27%20repeatCount%3D%27indefinite%27%2F%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");animation:frSpin 16s linear infinite}
.pod[data-frame="halloween"]::after,.pava[data-frame="halloween"]::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-50%20-50%20100%20100%27%3E%3Cg%3E%3CanimateMotion%20dur%3D%277.5s%27%20repeatCount%3D%27indefinite%27%20begin%3D%270.0s%27%20path%3D%27M0%20-34A34%2034%200%201%201%20-.01%20-34Z%27%2F%3E%3Cg%20transform%3D%27scale(1.25)%27%3E%3Cpath%20d%3D%27M0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-3.4%206.2%20-4.6%209.2%20-4.2C11%20-3.9%2012.2%20-2.7%2012.8%20-1.2C11.6%20-1.7%2010.4%20-1.3%209.8%20-0.2C8.8%20-1.2%207.4%20-1%206.8%200.3C5.8%20-0.5%204.4%20-0.1%203.8%201.1C3.1%200.8%202.3%201.2%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.2%20-3.1%200.8%20-3.8%201.1C-4.4%20-0.1%20-5.8%20-0.5%20-6.8%200.3C-7.4%20-1%20-8.8%20-1.2%20-9.8%20-0.2C-10.4%20-1.3%20-11.6%20-1.7%20-12.8%20-1.2C-12.2%20-2.7%20-11%20-3.9%20-9.2%20-4.2C-6.2%20-4.6%20-3.6%20-3.4%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z%27%20fill%3D%27%231d1029%27%20stroke%3D%27%23ffb347%27%20stroke-width%3D%27.75%27%20stroke-linejoin%3D%27round%27%3E%3Canimate%20attributeName%3D%27d%27%20values%3D%27M0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-3.4%206.2%20-4.6%209.2%20-4.2C11%20-3.9%2012.2%20-2.7%2012.8%20-1.2C11.6%20-1.7%2010.4%20-1.3%209.8%20-0.2C8.8%20-1.2%207.4%20-1%206.8%200.3C5.8%20-0.5%204.4%20-0.1%203.8%201.1C3.1%200.8%202.3%201.2%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.2%20-3.1%200.8%20-3.8%201.1C-4.4%20-0.1%20-5.8%20-0.5%20-6.8%200.3C-7.4%20-1%20-8.8%20-1.2%20-9.8%20-0.2C-10.4%20-1.3%20-11.6%20-1.7%20-12.8%20-1.2C-12.2%20-2.7%20-11%20-3.9%20-9.2%20-4.2C-6.2%20-4.6%20-3.6%20-3.4%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z%3BM0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-2.48%206.2%20-2.19%209.2%20-0.07C11%201.27%2012.2%203.16%2012.8%205C11.6%203.81%2010.4%203.52%209.8%204.28C8.8%202.7%207.4%202.1%206.8%203.06C5.8%201.68%204.4%201.28%203.8%202.13C3.1%201.43%202.3%201.37%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.37%20-3.1%201.43%20-3.8%202.13C-4.4%201.28%20-5.8%201.68%20-6.8%203.06C-7.4%202.1%20-8.8%202.7%20-9.8%204.28C-10.4%203.52%20-11.6%203.81%20-12.8%205C-12.2%203.16%20-11%201.27%20-9.2%20-0.07C-6.2%20-2.19%20-3.6%20-2.48%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z%3BM0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-3.4%206.2%20-4.6%209.2%20-4.2C11%20-3.9%2012.2%20-2.7%2012.8%20-1.2C11.6%20-1.7%2010.4%20-1.3%209.8%20-0.2C8.8%20-1.2%207.4%20-1%206.8%200.3C5.8%20-0.5%204.4%20-0.1%203.8%201.1C3.1%200.8%202.3%201.2%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.2%20-3.1%200.8%20-3.8%201.1C-4.4%20-0.1%20-5.8%20-0.5%20-6.8%200.3C-7.4%20-1%20-8.8%20-1.2%20-9.8%20-0.2C-10.4%20-1.3%20-11.6%20-1.7%20-12.8%20-1.2C-12.2%20-2.7%20-11%20-3.9%20-9.2%20-4.2C-6.2%20-4.6%20-3.6%20-3.4%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z%27%20dur%3D%27.5s%27%20begin%3D%270.00s%27%20repeatCount%3D%27indefinite%27%2F%3E%3C%2Fpath%3E%3Ccircle%20cx%3D%27-.65%27%20cy%3D%27-1.5%27%20r%3D%27.42%27%20fill%3D%27%23ffd23f%27%2F%3E%3Ccircle%20cx%3D%27.65%27%20cy%3D%27-1.5%27%20r%3D%27.42%27%20fill%3D%27%23ffd23f%27%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3CanimateMotion%20dur%3D%277.5s%27%20repeatCount%3D%27indefinite%27%20begin%3D%27-2.5s%27%20path%3D%27M0%20-34A34%2034%200%201%201%20-.01%20-34Z%27%2F%3E%3Cg%20transform%3D%27scale(1.25)%27%3E%3Cpath%20d%3D%27M0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-3.4%206.2%20-4.6%209.2%20-4.2C11%20-3.9%2012.2%20-2.7%2012.8%20-1.2C11.6%20-1.7%2010.4%20-1.3%209.8%20-0.2C8.8%20-1.2%207.4%20-1%206.8%200.3C5.8%20-0.5%204.4%20-0.1%203.8%201.1C3.1%200.8%202.3%201.2%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.2%20-3.1%200.8%20-3.8%201.1C-4.4%20-0.1%20-5.8%20-0.5%20-6.8%200.3C-7.4%20-1%20-8.8%20-1.2%20-9.8%20-0.2C-10.4%20-1.3%20-11.6%20-1.7%20-12.8%20-1.2C-12.2%20-2.7%20-11%20-3.9%20-9.2%20-4.2C-6.2%20-4.6%20-3.6%20-3.4%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z%27%20fill%3D%27%231d1029%27%20stroke%3D%27%23ffb347%27%20stroke-width%3D%27.75%27%20stroke-linejoin%3D%27round%27%3E%3Canimate%20attributeName%3D%27d%27%20values%3D%27M0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-3.4%206.2%20-4.6%209.2%20-4.2C11%20-3.9%2012.2%20-2.7%2012.8%20-1.2C11.6%20-1.7%2010.4%20-1.3%209.8%20-0.2C8.8%20-1.2%207.4%20-1%206.8%200.3C5.8%20-0.5%204.4%20-0.1%203.8%201.1C3.1%200.8%202.3%201.2%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.2%20-3.1%200.8%20-3.8%201.1C-4.4%20-0.1%20-5.8%20-0.5%20-6.8%200.3C-7.4%20-1%20-8.8%20-1.2%20-9.8%20-0.2C-10.4%20-1.3%20-11.6%20-1.7%20-12.8%20-1.2C-12.2%20-2.7%20-11%20-3.9%20-9.2%20-4.2C-6.2%20-4.6%20-3.6%20-3.4%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z%3BM0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-2.48%206.2%20-2.19%209.2%20-0.07C11%201.27%2012.2%203.16%2012.8%205C11.6%203.81%2010.4%203.52%209.8%204.28C8.8%202.7%207.4%202.1%206.8%203.06C5.8%201.68%204.4%201.28%203.8%202.13C3.1%201.43%202.3%201.37%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.37%20-3.1%201.43%20-3.8%202.13C-4.4%201.28%20-5.8%201.68%20-6.8%203.06C-7.4%202.1%20-8.8%202.7%20-9.8%204.28C-10.4%203.52%20-11.6%203.81%20-12.8%205C-12.2%203.16%20-11%201.27%20-9.2%20-0.07C-6.2%20-2.19%20-3.6%20-2.48%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z%3BM0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-3.4%206.2%20-4.6%209.2%20-4.2C11%20-3.9%2012.2%20-2.7%2012.8%20-1.2C11.6%20-1.7%2010.4%20-1.3%209.8%20-0.2C8.8%20-1.2%207.4%20-1%206.8%200.3C5.8%20-0.5%204.4%20-0.1%203.8%201.1C3.1%200.8%202.3%201.2%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.2%20-3.1%200.8%20-3.8%201.1C-4.4%20-0.1%20-5.8%20-0.5%20-6.8%200.3C-7.4%20-1%20-8.8%20-1.2%20-9.8%20-0.2C-10.4%20-1.3%20-11.6%20-1.7%20-12.8%20-1.2C-12.2%20-2.7%20-11%20-3.9%20-9.2%20-4.2C-6.2%20-4.6%20-3.6%20-3.4%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z%27%20dur%3D%27.5s%27%20begin%3D%270.17s%27%20repeatCount%3D%27indefinite%27%2F%3E%3C%2Fpath%3E%3Ccircle%20cx%3D%27-.65%27%20cy%3D%27-1.5%27%20r%3D%27.42%27%20fill%3D%27%23ffd23f%27%2F%3E%3Ccircle%20cx%3D%27.65%27%20cy%3D%27-1.5%27%20r%3D%27.42%27%20fill%3D%27%23ffd23f%27%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3CanimateMotion%20dur%3D%277.5s%27%20repeatCount%3D%27indefinite%27%20begin%3D%27-5.0s%27%20path%3D%27M0%20-34A34%2034%200%201%201%20-.01%20-34Z%27%2F%3E%3Cg%20transform%3D%27scale(1.25)%27%3E%3Cpath%20d%3D%27M0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-3.4%206.2%20-4.6%209.2%20-4.2C11%20-3.9%2012.2%20-2.7%2012.8%20-1.2C11.6%20-1.7%2010.4%20-1.3%209.8%20-0.2C8.8%20-1.2%207.4%20-1%206.8%200.3C5.8%20-0.5%204.4%20-0.1%203.8%201.1C3.1%200.8%202.3%201.2%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.2%20-3.1%200.8%20-3.8%201.1C-4.4%20-0.1%20-5.8%20-0.5%20-6.8%200.3C-7.4%20-1%20-8.8%20-1.2%20-9.8%20-0.2C-10.4%20-1.3%20-11.6%20-1.7%20-12.8%20-1.2C-12.2%20-2.7%20-11%20-3.9%20-9.2%20-4.2C-6.2%20-4.6%20-3.6%20-3.4%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z%27%20fill%3D%27%231d1029%27%20stroke%3D%27%23ffb347%27%20stroke-width%3D%27.75%27%20stroke-linejoin%3D%27round%27%3E%3Canimate%20attributeName%3D%27d%27%20values%3D%27M0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-3.4%206.2%20-4.6%209.2%20-4.2C11%20-3.9%2012.2%20-2.7%2012.8%20-1.2C11.6%20-1.7%2010.4%20-1.3%209.8%20-0.2C8.8%20-1.2%207.4%20-1%206.8%200.3C5.8%20-0.5%204.4%20-0.1%203.8%201.1C3.1%200.8%202.3%201.2%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.2%20-3.1%200.8%20-3.8%201.1C-4.4%20-0.1%20-5.8%20-0.5%20-6.8%200.3C-7.4%20-1%20-8.8%20-1.2%20-9.8%20-0.2C-10.4%20-1.3%20-11.6%20-1.7%20-12.8%20-1.2C-12.2%20-2.7%20-11%20-3.9%20-9.2%20-4.2C-6.2%20-4.6%20-3.6%20-3.4%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z%3BM0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-2.48%206.2%20-2.19%209.2%20-0.07C11%201.27%2012.2%203.16%2012.8%205C11.6%203.81%2010.4%203.52%209.8%204.28C8.8%202.7%207.4%202.1%206.8%203.06C5.8%201.68%204.4%201.28%203.8%202.13C3.1%201.43%202.3%201.37%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.37%20-3.1%201.43%20-3.8%202.13C-4.4%201.28%20-5.8%201.68%20-6.8%203.06C-7.4%202.1%20-8.8%202.7%20-9.8%204.28C-10.4%203.52%20-11.6%203.81%20-12.8%205C-12.2%203.16%20-11%201.27%20-9.2%20-0.07C-6.2%20-2.19%20-3.6%20-2.48%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z%3BM0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-3.4%206.2%20-4.6%209.2%20-4.2C11%20-3.9%2012.2%20-2.7%2012.8%20-1.2C11.6%20-1.7%2010.4%20-1.3%209.8%20-0.2C8.8%20-1.2%207.4%20-1%206.8%200.3C5.8%20-0.5%204.4%20-0.1%203.8%201.1C3.1%200.8%202.3%201.2%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.2%20-3.1%200.8%20-3.8%201.1C-4.4%20-0.1%20-5.8%20-0.5%20-6.8%200.3C-7.4%20-1%20-8.8%20-1.2%20-9.8%20-0.2C-10.4%20-1.3%20-11.6%20-1.7%20-12.8%20-1.2C-12.2%20-2.7%20-11%20-3.9%20-9.2%20-4.2C-6.2%20-4.6%20-3.6%20-3.4%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z%27%20dur%3D%27.5s%27%20begin%3D%270.34s%27%20repeatCount%3D%27indefinite%27%2F%3E%3C%2Fpath%3E%3Ccircle%20cx%3D%27-.65%27%20cy%3D%27-1.5%27%20r%3D%27.42%27%20fill%3D%27%23ffd23f%27%2F%3E%3Ccircle%20cx%3D%27.65%27%20cy%3D%27-1.5%27%20r%3D%27.42%27%20fill%3D%27%23ffd23f%27%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E")}
@keyframes frSpin{to{rotate:360deg}}
/* the hat: on the picture's top, tilted */
.pod[data-frame="xmas"]::before{left:calc(var(--ax) - var(--aw) * .18);top:calc(var(--ay) - var(--aw) * .55);width:calc(var(--aw) * 1.02);height:calc(var(--aw) * .87);rotate:-14deg}
.pava[data-frame="xmas"]::before{left:-18%;top:-55%;width:102%;height:87%;rotate:-14deg}
.pod[data-frame="xmas"]::before,.pava[data-frame="xmas"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2040%2034%27%3E%3Cpath%20d%3D%27M5%2025C8%2012%2016%204%2027%205c6%201%209%206%209%2011-3-3-7-4-9-2-3%203-1%208%201%2011Z%27%20fill%3D%27%23e5484d%27%20stroke%3D%27%237a1f22%27%20stroke-width%3D%271.8%27%20stroke-linejoin%3D%27round%27%2F%3E%3Crect%20x%3D%272%27%20y%3D%2723%27%20width%3D%2730%27%20height%3D%279%27%20rx%3D%274.5%27%20fill%3D%27%23fff%27%20stroke%3D%27%239aa4ad%27%20stroke-width%3D%271.4%27%2F%3E%3Ccircle%20cx%3D%2735.5%27%20cy%3D%2717%27%20r%3D%274.2%27%20fill%3D%27%23fff%27%20stroke%3D%27%239aa4ad%27%20stroke-width%3D%271.4%27%2F%3E%3C%2Fsvg%3E")}
/* the pumpkin: at the picture's lower right, bobbing a little */
.pod[data-frame="halloween"]::before{left:calc(var(--ax) + var(--aw) * .58);top:calc(var(--ay) + var(--aw) * .52);width:calc(var(--aw) * .62);height:calc(var(--aw) * .58)}
.pava[data-frame="halloween"]::before{left:58%;top:52%;width:62%;height:58%}
.pod[data-frame="halloween"]::before,.pava[data-frame="halloween"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2030%2028%27%3E%3Cpath%20d%3D%27M15%206.5c-.6-2.3.4-4%202-4.8%27%20fill%3D%27none%27%20stroke%3D%27%232f6b2c%27%20stroke-width%3D%272.2%27%20stroke-linecap%3D%27round%27%2F%3E%3Cpath%20d%3D%27M15%207C8.4%204.6%202%207.8%202%2015.4%202%2021.6%207.6%2025%2015%2025s13-3.4%2013-9.6C28%207.8%2021.6%204.6%2015%207Z%27%20fill%3D%27%23ff8a1f%27%20stroke%3D%27%235a2a08%27%20stroke-width%3D%271.8%27%20stroke-linejoin%3D%27round%27%2F%3E%3Cpath%20d%3D%27M9.6%208.2c-2.8%204.2-2.8%2012.6%200%2016.6M20.4%208.2c2.8%204.2%202.8%2012.6%200%2016.6%27%20fill%3D%27none%27%20stroke%3D%27%235a2a08%27%20stroke-opacity%3D%27.4%27%20stroke-width%3D%271.1%27%2F%3E%3Cg%20fill%3D%27%23ffd23f%27%3E%3Cpath%20d%3D%27M7.6%2015l2.8-3.8%202.6%203.8ZM17%2015l2.6-3.8%202.8%203.8Z%27%2F%3E%3Cpath%20d%3D%27M7.2%2018.2c4.6%204.6%2011%204.6%2015.6%200l-1.8.4-1.4%201.6-1.6-1.4-1.6%201.6-1.6-1.4-1.6%201.6-1.4-1.6-1.8-1.6-1.6%201.4-1.4-1.6Z%27%2F%3E%3Canimate%20attributeName%3D%27opacity%27%20values%3D%271%3B.55%3B.9%3B.6%3B1%27%20dur%3D%271.6s%27%20repeatCount%3D%27indefinite%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");animation:frBob 2.2s ease-in-out infinite}
@keyframes frBob{50%{translate:0 -2px;rotate:-6deg}}
@media (prefers-reduced-motion:reduce){.pod[data-frame]::after,.pava[data-frame]::after,.pod[data-frame]::before,.pava[data-frame]::before,.pod[data-frame="halloween"] .ava,.pava[data-frame="halloween"]{animation:none!important}}

/* The seasonal frames at a seat, moved by the graphics card. Their bats, pumpkin and snowflakes used to move inside
   their pictures (animation in an SVG), and the Halloween ring's glow was a shadow growing and shrinking: neither can
   be handed to the graphics card, so with one such frame at the table the page drew every frame of the whole game
   itself, and each time worked out the style of every moving card again (measured: fifty times a second, a third of
   a phone's time). Now each moving part is an element of its own (.ffx, put into the seat by frameFx in app.js) and
   only its transform or its opacity changes: the same drawings, the same paths and timings. In the menus and lists
   (.pava) the frames stand still, as before. */
.pod[data-frame="halloween"]::after,.pod[data-frame="halloween"]::before,.pod[data-frame="xmas"]::after{content:none}
.pod[data-frame="halloween"] .ava{animation:none!important}
.pod>.ffx{position:absolute;left:var(--ax);top:var(--ay);width:var(--aw);height:var(--aw);z-index:2;pointer-events:none}
.ffx>*,.ffx b{position:absolute;pointer-events:none;background:center/contain no-repeat}
/* the ring's glow: the brighter ring over the plain one, coming and going */
.ffx-glow{inset:0;border-radius:50%;box-shadow:0 0 0 var(--rw,2px) #ffb347,0 0 18px 5px rgba(170,80,255,.85);opacity:0;animation:ffxGlow 1.8s ease-in-out infinite alternate}
@keyframes ffxGlow{to{opacity:1}}
/* a bat: round the picture on a circle 0.595 pictures wide, upright all the way (turned, carried out, turned back),
   three of them a third of the way apart; its wings, two pictures taking turns */
.ffx-bat{left:calc(50% - var(--aw) * 0.2975);top:calc(50% - var(--aw) * 0.11375);width:calc(var(--aw) * 0.595);height:calc(var(--aw) * 0.245);
  transform-origin:50% 46.43%;animation:ffxOrbit 7.5s linear infinite}
.ffx-bat.b1{animation-delay:-2.5s}.ffx-bat.b2{animation-delay:-5s}
@keyframes ffxOrbit{from{transform:rotate(0deg) translateY(calc(var(--aw) * -0.595)) rotate(0deg)}to{transform:rotate(360deg) translateY(calc(var(--aw) * -0.595)) rotate(-360deg)}}
.ffx-bat b{inset:0;animation:ffxWingA .5s linear infinite}
.ffx-bat b:first-child{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-17%20-6.5%2034%2014%27%3E%3Cg%20transform%3D%27scale%281.25%29%27%3E%3Cpath%20d%3D%27M0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-3.4%206.2%20-4.6%209.2%20-4.2C11%20-3.9%2012.2%20-2.7%2012.8%20-1.2C11.6%20-1.7%2010.4%20-1.3%209.8%20-0.2C8.8%20-1.2%207.4%20-1%206.8%200.3C5.8%20-0.5%204.4%20-0.1%203.8%201.1C3.1%200.8%202.3%201.2%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.2%20-3.1%200.8%20-3.8%201.1C-4.4%20-0.1%20-5.8%20-0.5%20-6.8%200.3C-7.4%20-1%20-8.8%20-1.2%20-9.8%20-0.2C-10.4%20-1.3%20-11.6%20-1.7%20-12.8%20-1.2C-12.2%20-2.7%20-11%20-3.9%20-9.2%20-4.2C-6.2%20-4.6%20-3.6%20-3.4%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z%27%20fill%3D%27%231d1029%27%20stroke%3D%27%23ffb347%27%20stroke-width%3D%27.75%27%20stroke-linejoin%3D%27round%27%2F%3E%3Ccircle%20cx%3D%27-.65%27%20cy%3D%27-1.5%27%20r%3D%27.42%27%20fill%3D%27%23ffd23f%27%2F%3E%3Ccircle%20cx%3D%27.65%27%20cy%3D%27-1.5%27%20r%3D%27.42%27%20fill%3D%27%23ffd23f%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}
.ffx-bat b:last-child{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-17%20-6.5%2034%2014%27%3E%3Cg%20transform%3D%27scale%281.25%29%27%3E%3Cpath%20d%3D%27M0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-2.48%206.2%20-2.19%209.2%20-0.07C11%201.27%2012.2%203.16%2012.8%205C11.6%203.81%2010.4%203.52%209.8%204.28C8.8%202.7%207.4%202.1%206.8%203.06C5.8%201.68%204.4%201.28%203.8%202.13C3.1%201.43%202.3%201.37%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.37%20-3.1%201.43%20-3.8%202.13C-4.4%201.28%20-5.8%201.68%20-6.8%203.06C-7.4%202.1%20-8.8%202.7%20-9.8%204.28C-10.4%203.52%20-11.6%203.81%20-12.8%205C-12.2%203.16%20-11%201.27%20-9.2%20-0.07C-6.2%20-2.19%20-3.6%20-2.48%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z%27%20fill%3D%27%231d1029%27%20stroke%3D%27%23ffb347%27%20stroke-width%3D%27.75%27%20stroke-linejoin%3D%27round%27%2F%3E%3Ccircle%20cx%3D%27-.65%27%20cy%3D%27-1.5%27%20r%3D%27.42%27%20fill%3D%27%23ffd23f%27%2F%3E%3Ccircle%20cx%3D%27.65%27%20cy%3D%27-1.5%27%20r%3D%27.42%27%20fill%3D%27%23ffd23f%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");animation-name:ffxWingB}
.ffx-bat.b1 b{animation-delay:-.33s}.ffx-bat.b2 b{animation-delay:-.16s}
@keyframes ffxWingA{0%,28%,72%,100%{opacity:1}42%,58%{opacity:0}}
@keyframes ffxWingB{0%,28%,72%,100%{opacity:0}42%,58%{opacity:1}}
/* the pumpkin: at the picture's lower right, bobbing a little; its face flickers (the face in the pumpkin's own
   orange over the lit one) */
.ffx-pk{left:58%;top:52%;width:62%;height:58%;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2030%2028%27%3E%3Cpath%20d%3D%27M15%206.5c-.6-2.3.4-4%202-4.8%27%20fill%3D%27none%27%20stroke%3D%27%232f6b2c%27%20stroke-width%3D%272.2%27%20stroke-linecap%3D%27round%27%2F%3E%3Cpath%20d%3D%27M15%207C8.4%204.6%202%207.8%202%2015.4%202%2021.6%207.6%2025%2015%2025s13-3.4%2013-9.6C28%207.8%2021.6%204.6%2015%207Z%27%20fill%3D%27%23ff8a1f%27%20stroke%3D%27%235a2a08%27%20stroke-width%3D%271.8%27%20stroke-linejoin%3D%27round%27%2F%3E%3Cpath%20d%3D%27M9.6%208.2c-2.8%204.2-2.8%2012.6%200%2016.6M20.4%208.2c2.8%204.2%202.8%2012.6%200%2016.6%27%20fill%3D%27none%27%20stroke%3D%27%235a2a08%27%20stroke-opacity%3D%27.4%27%20stroke-width%3D%271.1%27%2F%3E%3Cg%20fill%3D%27%23ffd23f%27%3E%3Cpath%20d%3D%27M7.6%2015l2.8-3.8%202.6%203.8ZM17%2015l2.6-3.8%202.8%203.8Z%27%2F%3E%3Cpath%20d%3D%27M7.2%2018.2c4.6%204.6%2011%204.6%2015.6%200l-1.8.4-1.4%201.6-1.6-1.4-1.6%201.6-1.6-1.4-1.6%201.6-1.4-1.6-1.8-1.6-1.6%201.4-1.4-1.6Z%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");animation:frBob 2.2s ease-in-out infinite}
.ffx-pk b{inset:0;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2030%2028%27%3E%3Cg%20fill%3D%27%23ff8a1f%27%3E%3Cpath%20d%3D%27M7.6%2015l2.8-3.8%202.6%203.8ZM17%2015l2.6-3.8%202.8%203.8Z%27%2F%3E%3Cpath%20d%3D%27M7.2%2018.2c4.6%204.6%2011%204.6%2015.6%200l-1.8.4-1.4%201.6-1.6-1.4-1.6%201.6-1.6-1.4-1.6%201.6-1.4-1.6-1.8-1.6-1.6%201.4-1.4-1.6Z%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");opacity:0;animation:ffxFace 1.6s linear infinite}
@keyframes ffxFace{0%,100%{opacity:0}25%{opacity:.45}50%{opacity:.1}75%{opacity:.4}}
/* the snowflakes: circling together, twinkling one after another */
.ffx-snow{left:50%;top:50%;width:175%;height:175%;translate:-50% -50%;animation:frSpin 16s linear infinite}
.ffx-snow b{inset:0;animation:ffxTwinkle 2.4s linear infinite}
.ffx-snow b:nth-child(1){background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-50%20-50%20100%20100%27%3E%3Cg%20transform%3D%27translate%2841%200%29%20scale%281.15%29%27%3E%3Cpath%20d%3D%27M0%200L0%20-5.4M0%20-2.6L-1.5%20-3.9M0%20-2.6L1.5%20-3.9M0%20-4L-0.9%20-4.9M0%20-4L0.9%20-4.9M0%200L4.68%20-2.7M2.25%20-1.3L2.63%20-3.25M2.25%20-1.3L4.13%20-0.65M3.46%20-2L3.79%20-3.23M3.46%20-2L4.69%20-1.67M0%200L4.68%202.7M2.25%201.3L4.13%200.65M2.25%201.3L2.63%203.25M3.46%202L4.69%201.67M3.46%202L3.79%203.23M0%200L0%205.4M0%202.6L1.5%203.9M0%202.6L-1.5%203.9M0%204L0.9%204.9M0%204L-0.9%204.9M0%200L-4.68%202.7M-2.25%201.3L-2.63%203.25M-2.25%201.3L-4.13%200.65M-3.46%202L-3.79%203.23M-3.46%202L-4.69%201.67M0%200L-4.68%20-2.7M-2.25%20-1.3L-4.13%20-0.65M-2.25%20-1.3L-2.63%20-3.25M-3.46%20-2L-4.69%20-1.67M-3.46%20-2L-3.79%20-3.23%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.25%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E")}
.ffx-snow b:nth-child(2){background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-50%20-50%20100%20100%27%3E%3Cg%20transform%3D%27translate%2812.67%2038.99%29%20scale%280.95%29%27%3E%3Cpath%20d%3D%27M0%200L0%20-5.4M0%20-2.6L-1.5%20-3.9M0%20-2.6L1.5%20-3.9M0%20-4L-0.9%20-4.9M0%20-4L0.9%20-4.9M0%200L4.68%20-2.7M2.25%20-1.3L2.63%20-3.25M2.25%20-1.3L4.13%20-0.65M3.46%20-2L3.79%20-3.23M3.46%20-2L4.69%20-1.67M0%200L4.68%202.7M2.25%201.3L4.13%200.65M2.25%201.3L2.63%203.25M3.46%202L4.69%201.67M3.46%202L3.79%203.23M0%200L0%205.4M0%202.6L1.5%203.9M0%202.6L-1.5%203.9M0%204L0.9%204.9M0%204L-0.9%204.9M0%200L-4.68%202.7M-2.25%201.3L-2.63%203.25M-2.25%201.3L-4.13%200.65M-3.46%202L-3.79%203.23M-3.46%202L-4.69%201.67M0%200L-4.68%20-2.7M-2.25%20-1.3L-4.13%20-0.65M-2.25%20-1.3L-2.63%20-3.25M-3.46%20-2L-4.69%20-1.67M-3.46%20-2L-3.79%20-3.23%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.25%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");animation-delay:0.5s}
.ffx-snow b:nth-child(3){background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-50%20-50%20100%20100%27%3E%3Cg%20transform%3D%27translate%28-33.17%2024.1%29%20scale%281.15%29%27%3E%3Cpath%20d%3D%27M0%200L0%20-5.4M0%20-2.6L-1.5%20-3.9M0%20-2.6L1.5%20-3.9M0%20-4L-0.9%20-4.9M0%20-4L0.9%20-4.9M0%200L4.68%20-2.7M2.25%20-1.3L2.63%20-3.25M2.25%20-1.3L4.13%20-0.65M3.46%20-2L3.79%20-3.23M3.46%20-2L4.69%20-1.67M0%200L4.68%202.7M2.25%201.3L4.13%200.65M2.25%201.3L2.63%203.25M3.46%202L4.69%201.67M3.46%202L3.79%203.23M0%200L0%205.4M0%202.6L1.5%203.9M0%202.6L-1.5%203.9M0%204L0.9%204.9M0%204L-0.9%204.9M0%200L-4.68%202.7M-2.25%201.3L-2.63%203.25M-2.25%201.3L-4.13%200.65M-3.46%202L-3.79%203.23M-3.46%202L-4.69%201.67M0%200L-4.68%20-2.7M-2.25%20-1.3L-4.13%20-0.65M-2.25%20-1.3L-2.63%20-3.25M-3.46%20-2L-4.69%20-1.67M-3.46%20-2L-3.79%20-3.23%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.25%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");animation-delay:1.0s}
.ffx-snow b:nth-child(4){background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-50%20-50%20100%20100%27%3E%3Cg%20transform%3D%27translate%28-33.17%20-24.1%29%20scale%280.95%29%27%3E%3Cpath%20d%3D%27M0%200L0%20-5.4M0%20-2.6L-1.5%20-3.9M0%20-2.6L1.5%20-3.9M0%20-4L-0.9%20-4.9M0%20-4L0.9%20-4.9M0%200L4.68%20-2.7M2.25%20-1.3L2.63%20-3.25M2.25%20-1.3L4.13%20-0.65M3.46%20-2L3.79%20-3.23M3.46%20-2L4.69%20-1.67M0%200L4.68%202.7M2.25%201.3L4.13%200.65M2.25%201.3L2.63%203.25M3.46%202L4.69%201.67M3.46%202L3.79%203.23M0%200L0%205.4M0%202.6L1.5%203.9M0%202.6L-1.5%203.9M0%204L0.9%204.9M0%204L-0.9%204.9M0%200L-4.68%202.7M-2.25%201.3L-2.63%203.25M-2.25%201.3L-4.13%200.65M-3.46%202L-3.79%203.23M-3.46%202L-4.69%201.67M0%200L-4.68%20-2.7M-2.25%20-1.3L-4.13%20-0.65M-2.25%20-1.3L-2.63%20-3.25M-3.46%20-2L-4.69%20-1.67M-3.46%20-2L-3.79%20-3.23%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.25%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");animation-delay:1.5s}
.ffx-snow b:nth-child(5){background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-50%20-50%20100%20100%27%3E%3Cg%20transform%3D%27translate%2812.67%20-38.99%29%20scale%281.15%29%27%3E%3Cpath%20d%3D%27M0%200L0%20-5.4M0%20-2.6L-1.5%20-3.9M0%20-2.6L1.5%20-3.9M0%20-4L-0.9%20-4.9M0%20-4L0.9%20-4.9M0%200L4.68%20-2.7M2.25%20-1.3L2.63%20-3.25M2.25%20-1.3L4.13%20-0.65M3.46%20-2L3.79%20-3.23M3.46%20-2L4.69%20-1.67M0%200L4.68%202.7M2.25%201.3L4.13%200.65M2.25%201.3L2.63%203.25M3.46%202L4.69%201.67M3.46%202L3.79%203.23M0%200L0%205.4M0%202.6L1.5%203.9M0%202.6L-1.5%203.9M0%204L0.9%204.9M0%204L-0.9%204.9M0%200L-4.68%202.7M-2.25%201.3L-2.63%203.25M-2.25%201.3L-4.13%200.65M-3.46%202L-3.79%203.23M-3.46%202L-4.69%201.67M0%200L-4.68%20-2.7M-2.25%20-1.3L-4.13%20-0.65M-2.25%20-1.3L-2.63%20-3.25M-3.46%20-2L-4.69%20-1.67M-3.46%20-2L-3.79%20-3.23%27%20stroke%3D%27%23fff%27%20stroke-width%3D%271.25%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");animation-delay:2.0s}
@keyframes ffxTwinkle{0%,100%{opacity:1}50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){.ffx *{animation:none!important}}

/* the weekend tournament's podium (on its news slide): the prizes, the leaders on them */
.wk-dot{width:8px;height:8px;border-radius:50%;background:var(--primary);animation:wkPulse 1.6s ease-in-out infinite}
@keyframes wkPulse{50%{opacity:.35;transform:scale(.8)}}
.wk-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:8px}
.wk-step{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;text-align:center}
.wk-medal{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;font-size:13px;font-weight:900;color:#141518;box-shadow:inset 0 -2px 0 rgba(0,0,0,.2)}
.wk-step.s1 .wk-medal{background:#ffcf4d;width:30px;height:30px;font-size:15px}
.wk-step.s2 .wk-medal{background:#cfd7df}
.wk-step.s3 .wk-medal{background:#e2a26b}
.wk-name{max-width:100%;font-size:13.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wk-name.me{color:var(--primary-text)}
.wk-name.none{font-weight:700;color:var(--muted)}
.wk-step small{font-size:11.5px;font-weight:700;color:var(--muted);margin-top:-3px}
.wk-block{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;border-radius:12px 12px 6px 6px;font-weight:900;font-size:15px;color:#141518}
.wk-step.s1 .wk-block{height:62px;background:linear-gradient(180deg,#ffd76a,#f2b22c)}
.wk-step.s2 .wk-block{height:46px;background:linear-gradient(180deg,#e3e9ee,#bcc6cf)}
.wk-step.s3 .wk-block{height:34px;background:linear-gradient(180deg,#f0bb8a,#d3925a)}
@media (prefers-reduced-motion:reduce){.wk-dot{animation:none}}

/* the rarities, told apart at a glance (in the shop, the inventory, the cases). Every item stands on a
   lit stage in its rarity's colour, inside an edge of that colour, with a badge in that colour.
   Common: a green edge. Rare: a blue edge, a lift, a glint crossing now and then. Very rare: the same in
   purple. Epic: an edge of pink and rose running round, rays turning behind the item, sparkles.
   Legendary: the same in gold, brighter and busier. data-rar="1…5" gives anything else the colours. */
@property --ray{syntax:"<angle>";inherits:false;initial-value:0deg}
.sh-item.r1,[data-rar="1"]{--rc:#22b358;--rc2:#7be0a0;--rcd:#15803d;--rb:#16994a}
.sh-item.r2,[data-rar="2"]{--rc:#2a9fdc;--rc2:#8fd6ff;--rcd:#17689a;--rb:#1f86c4}
.sh-item.r3,[data-rar="3"]{--rc:#8b5cf6;--rc2:#c4b5fd;--rcd:#5b21b6;--rb:#7c4ae8}
.sh-item.r4,[data-rar="4"]{--rc:#ec4899;--rc2:#fb7185;--rcd:#9d174d;--rb:linear-gradient(100deg,#db2777,#e11d48)}
.sh-item.r5,[data-rar="5"]{--rc:#ffb81f;--rc2:#fff1a8;--rcd:#b45309;--rb:linear-gradient(100deg,#ffe07a,#ffb21f 55%,#ffd35c)}
[data-rar="0"]{--rc:#8a9199;--rc2:#c9ced4;--rcd:#5b6068;--rb:var(--surface-3)}
.sh-item.r1,.sh-item.r2,.sh-item.r3,.sh-item.r4,.sh-item.r5{--fill:var(--surface-2);border:3px solid transparent!important;
  background:linear-gradient(var(--fill),var(--fill)) padding-box,var(--edge-img) border-box!important}
.sh-item.on{--fill:color-mix(in srgb,var(--primary) 16%,var(--surface-2))}
.sh-item.r1{--edge-img:linear-gradient(color-mix(in srgb,var(--rc) 70%,var(--surface-2)),color-mix(in srgb,var(--rc) 70%,var(--surface-2)))}
.sh-item.r2,.sh-item.r3{--edge-img:linear-gradient(160deg,var(--rc2),var(--rc) 45%,var(--rcd));box-shadow:0 4px 0 var(--rcd)!important}
.sh-item.r4{--edge-img:conic-gradient(var(--rc),var(--rc2),#f9a8d4,var(--rc),#fecdd3,var(--rc2),var(--rc));
  box-shadow:0 5px 0 var(--rcd),0 12px 26px -12px var(--rc)!important;animation:none!important}
.sh-item.r5{--edge-img:conic-gradient(#ffb81f,#fff1a8,#f59e0b,#ffd75e,#fffbe6,#e08a00,#ffb81f);
  box-shadow:0 6px 0 var(--rcd),0 16px 34px -12px color-mix(in srgb,var(--rc) 80%,transparent)!important;animation:none!important}
/* the stage behind the preview */
.sh-item{--stage:100px}
.sh-item[data-slot="frame"]:not(.feat){--stage:122px}
.sh-item[data-slot="frame"]:not(.feat) .pv.pv-frame{height:128px}
.sh-item.r1::before,.sh-item.r2::before,.sh-item.r3::before,.sh-item.r4::before,.sh-item.r5::before{display:block!important;content:"";position:absolute;z-index:-1;inset:6px 6px auto;height:var(--stage);border-radius:16px;pointer-events:none;opacity:1!important;animation:none!important;
  background:radial-gradient(60% 70% at 50% 50%,color-mix(in srgb,var(--rc) 34%,transparent),transparent 72%),color-mix(in srgb,var(--rc) 12%,var(--surface-2))}
.sh-item.r2::before,.sh-item.r3::before{background:radial-gradient(58% 68% at 50% 50%,color-mix(in srgb,var(--rc2) 42%,transparent),transparent 74%),
  repeating-linear-gradient(135deg,color-mix(in srgb,var(--rc2) 6%,transparent) 0 6px,transparent 6px 18px),color-mix(in srgb,var(--rc) 22%,var(--surface-2))}
.sh-item.r4::before{background:radial-gradient(closest-side,color-mix(in srgb,var(--rc2) 30%,transparent),transparent),
  radial-gradient(70% 80% at 50% 50%,color-mix(in srgb,var(--rc) 40%,var(--surface)),color-mix(in srgb,var(--rc) 16%,var(--surface)))}
.sh-item.r5::before{background:radial-gradient(closest-side,color-mix(in srgb,#fff6c9 55%,transparent),transparent 80%),
  radial-gradient(70% 80% at 50% 50%,color-mix(in srgb,var(--rc) 46%,var(--surface)),color-mix(in srgb,var(--rcd) 26%,var(--surface)))}
/* The rarer items' life, every bit of it moved by the graphics card (an angle or a background position
   that changed made the browser draw the whole item again on every frame): the epic and legendary edge
   runs round (.rx-edge: a ring cut out of a turning colour wheel), their stage's rays turn (.rx-rays),
   and a glint crosses the stage of the rare and up, oftener the rarer (.rx-glint). The page adds these
   layers to the item (rxFx). */
.rx-edge,.rx-rays,.rx-glint{position:absolute;pointer-events:none;overflow:hidden;container-type:size}
.rx-edge{inset:-3px;z-index:1;border-radius:inherit;padding:3px;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.rx-rays,.rx-glint{inset:6px 6px auto;height:var(--stage);border-radius:16px}
.rx-rays{z-index:-1}
.rx-glint{z-index:3}
.rx-edge::before,.rx-rays::before{content:"";position:absolute;left:50%;top:50%;width:calc(100cqw + 100cqh);aspect-ratio:1;translate:-50% -50%;animation:rxTurn 5s linear infinite}
.rx-edge::before{background:var(--edge-img)}
.sh-item.r5 .rx-edge::before{animation-duration:3.6s}
.rx-rays::before{animation-duration:22s;background:repeating-conic-gradient(color-mix(in srgb,var(--rc) 30%,transparent) 0 9deg,transparent 9deg 30deg)}
.sh-item.r5 .rx-rays::before{animation-duration:14s;background:repeating-conic-gradient(color-mix(in srgb,var(--rc) 46%,transparent) 0 8deg,transparent 8deg 24deg)}
@keyframes rxTurn{to{rotate:360deg}}
.rx-glint::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.42) 50%,transparent 70%);transform:translateX(-110%);animation:rxGlint 6.5s ease-in-out infinite}
.sh-item.r3 .rx-glint::after{animation-duration:5.6s;animation-delay:.5s}
.sh-item.r4 .rx-glint::after{animation-duration:4.8s;animation-delay:.8s}
.sh-item.r5 .rx-glint::after{animation-duration:3.6s;animation-delay:.4s}
@keyframes rxGlint{0%,70%{transform:translateX(-110%)}100%{transform:translateX(110%)}}
/* sparkles over epic and legendary */
.sh-fx{position:absolute;z-index:3;inset:6px 6px auto;height:var(--stage);pointer-events:none}
.sh-fx i{position:absolute;width:12px;height:12px;background:var(--spark) center/contain no-repeat;opacity:0;animation:rarTwinkle 2.6s ease-in-out infinite}
:root{--spark:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%27-10%20-10%2020%2020%27%3E%3Cpath%20d%3D%27M0-10C1%20-3%203-1%2010%200%203%201%201%203%200%2010-1%203-3%201-10%200-3-1-1-3%200-10Z%27%20fill%3D%27%23fff%27%2F%3E%3C%2Fsvg%3E")}
.sh-item.r4 .sh-fx i,[data-rar="4"] .sh-fx i{filter:drop-shadow(0 0 3px #fbcfe8)}
.sh-item.r5 .sh-fx i,[data-rar="5"] .sh-fx i{filter:drop-shadow(0 0 4px #ffd75e)}
.sh-fx i:nth-child(1){left:12%;top:18%}
.sh-fx i:nth-child(2){left:80%;top:12%;width:9px;height:9px;animation-delay:.7s}
.sh-fx i:nth-child(3){left:84%;top:68%;animation-delay:1.3s}
.sh-fx i:nth-child(4){left:16%;top:74%;width:8px;height:8px;animation-delay:1.9s}
.sh-fx i:nth-child(5){left:46%;top:6%;width:9px;height:9px;animation-delay:.35s}
.sh-fx i:nth-child(6){left:56%;top:84%;width:10px;height:10px;animation-delay:1.6s}
@keyframes rarTwinkle{0%,100%{opacity:0;transform:scale(.3) rotate(0)}45%{opacity:1;transform:scale(1) rotate(45deg)}70%{opacity:0;transform:scale(.4) rotate(90deg)}}
/* the badge: a pill in the rarity's colour (.rar on an item, .rar-chip anywhere) */
.sh-item .rar,.rar-chip{display:inline-flex;align-items:center;margin:2px 0 10px;padding:3px 11px;border-radius:999px;font-size:11.5px;font-weight:900;letter-spacing:.02em;line-height:1.3;white-space:nowrap}
.rar-chip{margin:0;background:var(--rb);color:#fff;box-shadow:0 2px 0 var(--rcd)}
.sh-item.r0 .rar{background:var(--surface-3);color:var(--muted)}
.sh-item.r1 .rar,.sh-item.r2 .rar,.sh-item.r3 .rar,.sh-item.r4 .rar,.sh-item.r5 .rar{background:var(--rb);color:#fff;box-shadow:0 2px 0 var(--rcd)}
.sh-item.r5 .rar,[data-rar="5"] .rar-chip,[data-rar="5"].rar-chip{color:#4a2c00;background-size:200% 100%;animation:rarShine 2.8s linear infinite}
@keyframes rarShine{to{background-position:-200% 0}}
.sh-item.feat .rar{margin:0;font-size:12.5px;padding:4px 13px}
.sh-item.feat .rar::before,.sh-item.feat .rar::after{display:none}
/* the legendary plinth: the stage is its left side (on a phone, its top) */
.sh-item.feat{--stage:auto}
.sh-item.feat::before,.sh-item.feat::after,.sh-item.feat .sh-fx{inset:8px auto 8px 8px;width:calc((100% - 36px) * .44 + 12px);height:auto}
.sh-item.feat .pv::after{display:none}
@media (max-width:560px){
  .sh-item:not([data-slot="frame"]){--stage:92px}
  .sh-item.feat::before,.sh-item.feat::after,.sh-item.feat .sh-fx{inset:6px 6px auto;width:auto;height:122px}
}
/* the Santa frame's hat needs room above the picture in a preview */
.pv-frame .pava[data-frame="xmas"]{translate:0 14px}
@media (hover:hover) and (pointer:fine){
  .sh-item.r1,.sh-item.r2,.sh-item.r3,.sh-item.r4,.sh-item.r5{transition:transform .2s var(--spring)}
  .sh-item.r1:hover,.sh-item.r2:hover,.sh-item.r3:hover,.sh-item.r4:hover,.sh-item.r5:hover{transform:translateY(-3px) rotate(-.6deg)}
  .sh-item.feat:hover{transform:translateY(-3px)}
}
@media (prefers-reduced-motion:reduce){
  .sh-item.r4,.sh-item.r5,.sh-item.r4::before,.sh-item.r5::before,.sh-item.r5 .rar,[data-rar="5"] .rar-chip{animation:none!important}
  .sh-item.r2::after,.sh-item.r3::after,.sh-item.r4::after,.sh-item.r5::after,.sh-fx{display:none!important}
}

/* your own skins (public/skins/skins.js): the glow of a frame's ring, which a pulsing frame breathes */
@property --skg{syntax:"<length>";inherits:false;initial-value:12px}
@keyframes skGlow{to{--skg:22px}}
@media (prefers-reduced-motion:reduce){.pod[data-frame] .ava,.pava[data-frame]{animation:none!important}}

/* a buy button you cannot press yet shows just the price, as tall as any other */
.sh-btn.buy:disabled{padding-bottom:9px}

/* ================= card backs from cases ================= */
/* a card back's picture anywhere (--bk is set on it: var(--bk-<id>)) */
.bk{display:block;width:100%;aspect-ratio:90/130;border-radius:12%/8.5%;background:var(--bk,var(--bk-classic)) center/cover no-repeat;border:3px solid var(--card-edge);box-shadow:0 3px 0 var(--card-edge)}

/* the pack: his drawing (skins/pack.png) as it is, plain, no foil or gloss over it (the user's wish). Opening,
   its top tears off along a zigzag from the left, light comes out and the cards rise. */
.deckbox{position:relative;display:block;width:104px;height:138px;flex:none;filter:drop-shadow(0 5px 0 rgba(0,0,0,.28))}
/* (in two pieces cut to the pack's shape, so that the top can tear off) */
.db-top,.db-body{position:absolute;left:0;right:0;
  background:var(--pack-img,url(/skins/pack.png)) no-repeat 0 var(--sy)/104px 138px;
  -webkit-mask:var(--pack-img,url(/skins/pack.png)) no-repeat 0 var(--sy)/104px 138px;mask:var(--pack-img,url(/skins/pack.png)) no-repeat 0 var(--sy)/104px 138px}
.db-top{--sy:0px;top:0;height:17px;z-index:3;transform-origin:100% 100%;clip-path:polygon(0 0,100% 0,100% 17px,91.67% 12px,83.33% 17px,75% 12px,66.67% 17px,58.33% 12px,50% 17px,41.67% 12px,33.33% 17px,25% 12px,16.67% 17px,8.33% 12px,0% 17px)}
.db-body{--sy:-12px;top:12px;bottom:0;z-index:2;clip-path:polygon(0% 5px,8.33% 0px,16.67% 5px,25% 0px,33.33% 5px,41.67% 0px,50% 5px,58.33% 0px,66.67% 5px,75% 0px,83.33% 5px,91.67% 0px,100% 5px,100% 100%,0 100%)}
/* the table box and the frame envelope: a star glinting on them now and then (the card pack has none) */
.ch-art .deckbox{z-index:2}
.deckbox[data-pack]:not(.tear) .db-sparks{left:0;top:0;width:100%;height:100%}
.deckbox[data-pack]:not(.tear) .db-sparks i{width:11px;height:11px;animation:packStar 2.8s ease-in-out infinite}
.deckbox[data-pack]:not(.tear) .db-sparks i:nth-child(2){animation-delay:-.9s}
.deckbox[data-pack]:not(.tear) .db-sparks i:nth-child(3){animation-delay:-1.7s}.deckbox[data-pack]:not(.tear) .db-sparks i:nth-child(4){animation-delay:-2.3s}
.deckbox[data-pack]:not(.tear) .db-sparks i:nth-child(n+5){display:none}
@keyframes packStar{0%,70%,100%{opacity:0;transform:scale(.3) rotate(0)}82%{opacity:1;transform:scale(1) rotate(45deg)}}
.db-cards{position:absolute;left:19px;right:19px;top:22px;height:96px;z-index:1}
.db-cards>*{position:absolute;inset:0;width:100%;height:100%;transform-origin:50% 100%}
.db-cards .bk{border-width:2px;box-shadow:none}
/* a table or frame pack: tables or frames rise out of it, standing on its bottom */
.db-cards>.pk{inset:auto 0 0;height:auto}
.db-glow{position:absolute;left:-30px;right:-30px;top:-46px;height:96px;z-index:0;pointer-events:none;opacity:0;
  background:radial-gradient(50% 45% at 50% 62%,#fff 0,rgba(255,240,170,.85) 30%,rgba(255,200,60,.35) 60%,transparent 75%)}
.db-sparks{position:absolute;left:50%;top:14px;z-index:5;pointer-events:none}
.db-sparks i{position:absolute;width:7px;height:7px;margin:-3.5px;opacity:0;background:#fff;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%)}

/* the cases tab: the box with its best backs peeking out, the way to open it, what can drop */
/* The pack: a card like the shop's items (an outline, a hard shadow under it), the pack on a stage of its
   own on the left like a legendary item's, what it is and the way to open it on the right. */
.case-hero{--rc:#ffb81f;--rc2:#fff1a8;--rcd:#b45309;position:relative;display:grid;grid-template-columns:minmax(0,.46fr) minmax(0,.54fr);gap:18px;align-items:stretch;
  padding:8px 18px 8px 8px;border-radius:24px;background:var(--surface-2);border:3px solid var(--stroke);box-shadow:0 5px 0 var(--stroke)}
.ch-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:232px;border-radius:17px;overflow:hidden;
  background:radial-gradient(52% 46% at 50% 62%,color-mix(in srgb,var(--rc2) 42%,transparent),transparent 74%),
    repeating-conic-gradient(from 0deg at 50% 62%,color-mix(in srgb,var(--rc) 16%,transparent) 0 9deg,transparent 9deg 22deg),
    radial-gradient(80% 90% at 50% 60%,color-mix(in srgb,var(--rc) 34%,var(--surface)),color-mix(in srgb,var(--rcd) 18%,var(--surface)))}
.ch-art{position:relative;width:132px;display:flex;align-items:center;justify-content:center}
.ch-txt{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;min-width:0;padding:12px 0}
.ch-name{font-family:var(--font-display);font-size:26px;font-weight:900;line-height:1.05}
.ch-txt p{margin:0;color:var(--muted);font-size:14px;line-height:1.45;text-wrap:pretty}
.case-go{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:4px;padding:12px 18px;font-size:16px;white-space:nowrap}
.case-go .i{width:19px;height:19px}
.cg-price{display:inline-flex;align-items:center;gap:5px;margin-left:6px;padding:2px 9px;border-radius:999px;background:rgba(0,0,0,.16);font-weight:900}
.cg-price .coin{width:15px;height:15px;margin:0}
.ch-note{color:var(--muted);font-weight:700;font-size:12.5px}
.case-in{display:flex;flex-direction:column;gap:12px;margin-top:14px}
/* what can drop: a card per rarity, outlined in its colour; each back on a small stage of its own */
.ct-group{display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:22px;background:var(--surface-2);
  border:3px solid color-mix(in srgb,var(--rc) 72%,var(--surface-2));box-shadow:0 4px 0 var(--rcd)}
.ct-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ct-pct{padding:3px 11px;border-radius:999px;font-weight:900;font-size:13.5px;color:var(--ink);background:color-mix(in srgb,var(--rc) 20%,var(--surface))}
.ct-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:10px}
.ct{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;padding:12px 10px 9px;border-radius:16px;text-align:center;
  background:radial-gradient(62% 46% at 50% 38%,color-mix(in srgb,var(--rc) 32%,transparent),transparent 76%),color-mix(in srgb,var(--rc) 10%,var(--surface))}
.ct .bk{margin-bottom:4px}
.ct .bk{box-shadow:0 3px 0 var(--card-edge),0 0 0 3px var(--rc)}
[data-rar="5"] .ct .bk{box-shadow:0 3px 0 var(--card-edge),0 0 0 3px var(--rc),0 0 14px 3px color-mix(in srgb,var(--rc) 80%,transparent)}
.ct b{font-size:12.5px;font-weight:800;line-height:1.2}
.ct small{margin-top:-3px;font-size:11px;color:var(--muted);font-weight:700}
.ct-own{position:absolute;top:5px;right:5px;z-index:1;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:var(--primary);color:#fff;border:2px solid var(--card-edge)}
.ct-own .i{width:13px;height:13px;stroke-width:3}
@media (max-width:560px){
  .case-hero{grid-template-columns:minmax(0,1fr);text-align:center;padding:6px 6px 14px}
  .ch-stage{min-height:214px}
  .ch-txt{align-items:center;padding:4px 10px 0}
  .case-hero .link-btn{align-self:center}
  .ct-grid{grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px}
}

/* opening a case: a window like the other ones, the pack torn open in it, then the track of cards rolling
   under an orange outline */
body.case-open{overflow:hidden}
.case-room{position:fixed;inset:0;z-index:4000;display:grid;place-items:center;padding:12px;background:rgba(10,12,14,.72);opacity:0;transition:opacity .25s ease}
/* while it is open nothing behind it moves (so nothing behind it is drawn again) */
body.case-open #menu *,body.case-open #menu *::before,body.case-open #menu *::after{animation-play-state:paused!important}
.case-room.on{opacity:1}
.cr-win{position:relative;width:min(600px,100%);border-radius:28px;background:var(--surface);border:3px solid var(--stroke);box-shadow:0 7px 0 var(--stroke);color:var(--ink);overflow:hidden;
  transform:translateY(14px) scale(.97);transition:transform .3s cubic-bezier(.2,1.3,.4,1)}
.case-room.on .cr-win{transform:none}
.cr-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:14px 18px 0}
.cr-top b{font-family:var(--font-display);font-size:20px;font-weight:900}
.cr-skip{padding:7px 14px;font-size:14px}
.cr-body{position:relative;height:clamp(360px,64dvh,460px);display:flex;align-items:center;padding:0 16px}
.cr-track{position:relative;width:100%;height:calc(var(--ch,190px) + 64px);border-radius:24px;overflow:hidden;background:var(--surface-2);opacity:.01;transition:opacity .3s ease}
.cr-track.on{opacity:1}
.cr-track::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:4;border-radius:inherit;
  background:linear-gradient(90deg,var(--surface-2),transparent 14%,transparent 86%,var(--surface-2))}
.cr-strip{position:absolute;left:0;top:50%;height:var(--ch,190px);margin-top:calc(var(--ch,190px) / -2 - 6px);will-change:transform}
.rc{position:absolute;top:0;left:calc(var(--i) * var(--pitch,150px));width:var(--cw,130px);height:var(--ch,190px);transition:filter .35s ease}
.rc-up{position:absolute;inset:0;width:100%;height:100%;border-radius:12%/8.5%;border:3px solid var(--card-edge);box-shadow:0 4px 0 var(--card-edge)}
/* each card's rarity: a bar of its colour under it, and the rarest glow */
.rc::after{content:"";position:absolute;left:14%;right:14%;bottom:-15px;height:5px;border-radius:3px;background:var(--rc);box-shadow:0 0 10px var(--rc)}
.rc[data-rar="4"] .rc-up,.rc[data-rar="5"] .rc-up{box-shadow:0 4px 0 var(--card-edge),0 0 0 3px var(--rc),0 0 18px 3px color-mix(in srgb,var(--rc) 65%,transparent)}
.rc.dim{filter:brightness(.45) saturate(.5)}
/* the outline the cards roll under; when it has settled it glows */
.cr-sel{position:absolute;left:50%;top:50%;z-index:3;width:calc(var(--cw,130px) + 16px);height:calc(var(--ch,190px) + 16px);translate:-50% calc(-50% - 6px);pointer-events:none;
  border:5px solid #ff8a1f;border-radius:18px;box-shadow:0 0 0 3px var(--card-edge),inset 0 0 0 3px var(--card-edge),0 0 22px 4px rgba(255,138,31,.5)}
.cr-track.won .cr-sel{animation:selWon .7s ease-out}
@keyframes selWon{30%{scale:1.07;box-shadow:0 0 0 3px var(--card-edge),inset 0 0 0 3px var(--card-edge),0 0 40px 12px rgba(255,138,31,.85)}}
/* the pack: in at once, turning in the light while the server answers, torn open, the cards up, then away */
.cr-box{position:absolute;left:50%;top:50%;z-index:7;translate:-50% -50%;zoom:1.35;animation:boxIn .45s var(--ease-pop-strong),boxWait 1.6s ease-in-out .45s infinite}
.cr-box.tear{animation:boxTug .5s ease-in-out}
.cr-box.tear .db-top{animation:tearOff .8s cubic-bezier(.45,0,.6,1) forwards}
.cr-box.tear .db-glow{animation:tearGlow 1.1s ease-out .3s forwards}
.cr-box.tear .db-cards>*{animation:packUp .58s cubic-bezier(.2,1.35,.4,1) .55s forwards;--x:-13px;--r:-12deg;--y:-52px}
.cr-box.tear .db-cards>:nth-child(2){animation-delay:.62s;--x:0px;--r:0deg;--y:-70px}
.cr-box.tear .db-cards>:nth-child(3){animation-delay:.69s;--x:13px;--r:12deg;--y:-52px}
.cr-box.tear .db-sparks i{animation:spark .8s ease-out .42s forwards}
.db-sparks i:nth-child(1){--x:-43px;--yy:-16px;animation-delay:0.40s!important}
.db-sparks i:nth-child(2){--x:-46px;--yy:-39px;animation-delay:0.43s!important}
.db-sparks i:nth-child(3){--x:-37px;--yy:-64px;animation-delay:0.46s!important}
.db-sparks i:nth-child(4){--x:-8px;--yy:-45px;animation-delay:0.49s!important}
.db-sparks i:nth-child(5){--x:10px;--yy:-59px;animation-delay:0.52s!important}
.db-sparks i:nth-child(6){--x:37px;--yy:-64px;animation-delay:0.55s!important}
.db-sparks i:nth-child(7){--x:35px;--yy:-30px;animation-delay:0.58s!important}
.db-sparks i:nth-child(8){--x:56px;--yy:-21px;animation-delay:0.61s!important}
.cr-box.gone{transition:translate .4s cubic-bezier(.5,0,.8,.4),opacity .35s;translate:-50% 80%;opacity:0}
@keyframes boxIn{from{scale:.3;opacity:0}}
@keyframes boxWait{0%,100%{transform:translateY(0) rotate(-2.5deg)}50%{transform:translateY(-6px) rotate(2.5deg)}}
@keyframes boxTug{30%{transform:rotate(-3deg) translateX(-2px)}60%{transform:rotate(2deg)}}
@keyframes tearOff{0%{transform:none}22%{transform:rotate(-5deg) translate(-1px,-2px)}50%{transform:rotate(-13deg) translate(3px,-6px)}62%{transform:rotate(-11deg) translate(9px,-9px)}100%{transform:translate(130px,-80px) rotate(40deg);opacity:0}}
@keyframes tearGlow{0%{opacity:0;scale:.6}35%{opacity:1;scale:1.15}100%{opacity:0;scale:1.4}}
@keyframes cardsUp{to{transform:translateY(var(--y,-56px)) rotate(var(--r,-7deg))}}
@keyframes spark{0%{opacity:0;transform:none}25%{opacity:1}100%{opacity:0;transform:translate(var(--x),var(--yy)) rotate(180deg) scale(.4)}}
/* the reveal: rays in the rarity's colour, the card, its name, what next */
.cr-reveal{position:absolute;inset:0;z-index:8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px 16px;text-align:center;overflow:hidden}
/* the backdrop and the words fade in; the card itself flies over from its place in the reel */
.cr-reveal::before{content:"";position:absolute;inset:0;background:var(--surface);opacity:0;transition:opacity .35s ease}
.cr-reveal>*{position:relative;opacity:0;transition:opacity .35s ease .3s}
.cr-reveal>.crv-rays{position:absolute}
.cr-reveal.on::before,.cr-reveal.on>*{opacity:1}
.crv-rays{position:absolute;left:50%;top:42%;width:760px;height:760px;margin:-380px 0 0 -380px;pointer-events:none;opacity:.9;
  background:repeating-conic-gradient(color-mix(in srgb,var(--rc) 38%,transparent) 0 7deg,transparent 7deg 21deg);
  -webkit-mask:radial-gradient(closest-side,#000 20%,transparent);mask:radial-gradient(closest-side,#000 20%,transparent);animation:rayTurn2 26s linear infinite}
.cr-reveal[data-rar="1"] .crv-rays,.cr-reveal[data-rar="2"] .crv-rays{opacity:.4}
@keyframes rayTurn2{to{rotate:360deg}}
.cr-reveal>.crv-card{position:relative;z-index:1;width:min(140px,36vw);opacity:0;transform:scale(.3) rotate(-14deg);transition:transform .62s cubic-bezier(.25,1.35,.45,1),opacity .2s}
.cr-reveal.on .crv-card{opacity:1;transform:none}
.crv-card .bk{border-width:4px;box-shadow:0 6px 0 var(--card-edge),0 0 0 4px var(--rc),0 0 56px 12px color-mix(in srgb,var(--rc) 55%,transparent)}
.crv-fx{inset:-34px!important;height:auto!important;z-index:2}
.crv-fx i{width:18px;height:18px}
.cr-reveal .rar-chip{margin-top:10px;font-size:13px;padding:4px 14px}
.crv-name{font-family:var(--font-display);font-size:28px;font-weight:900;line-height:1.05}
.crv-var{font-size:16px;font-weight:900;color:var(--rc2)}
.crv-dupe{color:var(--muted);font-weight:700;font-size:13.5px}
.crv-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:12px;position:relative}
.crv-btns .cta,.crv-btns .ghost{display:inline-flex;align-items:center;gap:6px;padding:11px 18px}
.crv-btns .i{width:17px;height:17px}
@media (prefers-reduced-motion:reduce){
  .cr-box,.cr-box *,.deckbox,.deckbox *,.crv-rays,[data-rar="5"] .ct .bk{animation:none!important}
  .rc,.cr-track,.cr-win,.crv-card{transition:none!important}
}

/* the inventory: who sees it, the showcase, then every back and item, wearable, starred into the showcase */
.inv-top{display:grid;gap:12px}
.inv-pub,.inv-show{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:20px;background:var(--surface-2)}
.inv-pub .seg{align-self:stretch}
.inv-sec{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.inv-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.inv-head .link-btn,.case-inv{display:inline-flex;align-items:center;gap:5px}
.inv-it{position:relative}
.inv-star{position:absolute;top:11px;right:11px;z-index:4;display:grid;place-items:center;width:32px;height:32px;padding:0;border-radius:50%;border:2px solid var(--card-edge);background:var(--surface);color:var(--faint);cursor:pointer;box-shadow:0 2px 0 var(--card-edge);transition:transform .2s var(--spring)}
.inv-star .i{width:17px;height:17px}
.inv-star.on{background:#ffc93c;color:#7a4a00}
.inv-star.on .i{fill:currentColor}
.inv-star:disabled{opacity:.35;cursor:default}
.inv-star:not(:disabled):active{transform:scale(.88)}
.inv-n{position:absolute;top:12px;left:12px;z-index:4;padding:2px 9px;border-radius:999px;background:var(--card-edge);color:#fff;font-weight:900;font-size:12.5px}
.inv-var{margin-top:-3px;font-size:12px;font-weight:800;color:color-mix(in srgb,var(--rc) 70%,var(--ink))}
.inv-sell{margin-top:6px;width:100%;justify-content:center;padding:7px 8px;font-size:12.5px;border-radius:12px;display:inline-flex;align-items:center;gap:2px}
.inv-sell .cg-price{background:var(--primary-soft);color:var(--primary-text)}
/* small tiles: the showcase, someone else's inventory */
.show-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.show-row.wrap{grid-template-columns:repeat(auto-fill,minmax(76px,1fr))}
.mt{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-width:0;padding:9px 6px 8px;border-radius:16px;text-align:center;
  background:color-mix(in srgb,var(--rc,#888) 14%,var(--surface-2));box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--rc,#888) 60%,transparent)}
.mt .bk{width:62%}
.mt b{font-size:11.5px;font-weight:800;line-height:1.2;max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.mt .pv{height:64px}
/* a table in a showcase: as wide as the tile (a card back beside it fills 62 % of its width and stands taller), in a
   table's proportions, in the middle of the place a card takes, its name at the bottom with the others'; its three
   little cards by its size */
.mt .pv-felt{width:92%;height:auto;aspect-ratio:3/2;margin:auto 0;border-radius:18px}
.mt .pv-felt i{width:15%;height:auto;aspect-ratio:2/3}
.mt .pv-felt i:nth-child(1){left:21.5%}.mt .pv-felt i:nth-child(2){left:42.5%}.mt .pv-felt i:nth-child(3){left:63.5%}
.mt .pv-frame .pava.big{width:44px;height:44px;font-size:22px;--rw:2px}
.mt.empty{min-height:118px;background:transparent;box-shadow:none;border:2px dashed var(--edge-soft)}
[data-rar="5"].mt{box-shadow:inset 0 0 0 2px var(--rc),0 0 16px -4px var(--rc)}
.show-sec .link-btn{display:inline-flex;align-items:center;gap:5px;align-self:flex-start}
@media (max-width:420px){.show-row{gap:7px}.mt{padding:7px 4px}.mt b{font-size:10.5px}}

/* the pixel art back draws its own stepped edge: no rounded border round it, its shadow and glow follow the steps */
.bk[data-edge="pixel"],.rc[data-edge="pixel"] .rc-up{border:0!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 3px 0 var(--card-edge))}
.rc[data-edge="pixel"] .rc-up{filter:drop-shadow(0 4px 0 var(--card-edge)) drop-shadow(0 0 10px var(--rc))}
.crv-card .bk[data-edge="pixel"]{filter:drop-shadow(0 6px 0 var(--card-edge)) drop-shadow(0 0 26px var(--rc))}
/* in the cases list it wears its rarity ring too, stepped like its edge: four shadows, one to each side */
.ct .bk[data-edge="pixel"]{filter:drop-shadow(3px 0 0 var(--rc)) drop-shadow(-3px 0 0 var(--rc)) drop-shadow(0 3px 0 var(--rc)) drop-shadow(0 -3px 0 var(--rc)) drop-shadow(0 3px 0 var(--card-edge))}

/* trading: the offer being put together (your backs, theirs), and the offers in the inventory */
.tr-card{width:min(560px,100%)}
.tr-card .dp-head h2{display:flex;align-items:center;gap:8px;font-size:20px}
.tr-card .dp-head .i{width:20px;height:20px}
.tr-sec{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.tr-n{font-weight:900;color:var(--muted)}
.tr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:10px;max-height:228px;overflow:auto;padding:4px 2px 6px}
.tr-pick{position:relative;cursor:pointer;border:0;background:none;padding:4px;border-radius:14px;color:inherit;font:inherit}
.tr-pick.on{background:color-mix(in srgb,#ff8a1f 18%,transparent);box-shadow:inset 0 0 0 3px #ff8a1f}
.tr-on{position:absolute;top:0;right:0;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#ff8a1f;color:#fff;border:2px solid var(--card-edge)}
.tr-on .i{width:14px;height:14px}
.tr-send{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:16px}
.tr-hint{display:flex;align-items:center;gap:8px;margin:0 0 14px}
.tr-hint .i{width:18px;height:18px;flex:none}
.tr-list{margin:0 0 18px}
.tr-offer{display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:20px;background:var(--surface-2);border:3px solid color-mix(in srgb,#ff8a1f 55%,transparent)}
.tr-who{display:flex;align-items:center;gap:10px;font-weight:900}
.tr-swap{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}
.tr-swap small{display:block;margin-bottom:6px;color:var(--muted);font-weight:800}
.tr-row{display:flex;flex-wrap:wrap;gap:6px}
.tr-row .mt{width:64px}
.tr-none{color:var(--muted);font-weight:700}
.tr-arrow{display:grid;place-items:center;color:#ff8a1f}
.tr-arrow .i{width:22px;height:22px}
.tr-btns{display:flex;flex-wrap:wrap;gap:10px}
.tr-btns .cta,.tr-btns .ghost{display:inline-flex;align-items:center;gap:6px;padding:10px 16px}
@media (max-width:520px){.tr-swap{grid-template-columns:1fr}.tr-arrow{rotate:90deg}}

/* the fire frame: the brighter glow is a ring of its own over the picture, only fading in and out (a
   shadow that changed was drawn again on every frame); in a seat the page puts the picture's place and
   size in --ax, --ay, --aw (frameFx) */
[data-frame="fire"] .ava,.pava[data-frame="fire"]{animation:none!important}
.pod[data-frame="fire"]{--ax:7px;--ay:10px;--aw:30px}
.pod[data-frame="fire"]::after,.pava[data-frame="fire"]::after{content:"";position:absolute;z-index:2;pointer-events:none;border-radius:50%;
  box-shadow:0 0 0 var(--rw,2px) #ffb03b,0 0 18px 4px rgba(255,120,40,.8);opacity:0;animation:frGlow 1.4s ease-in-out infinite alternate}
.pod[data-frame="fire"]::after{left:var(--ax);top:var(--ay);width:var(--aw);height:var(--aw)}
.pava[data-frame="fire"]::after{inset:0}
@keyframes frGlow{to{opacity:1}}

.sh-item.feat .rx-rays,.sh-item.feat .rx-glint{inset:8px auto 8px 8px;width:calc((100% - 36px) * .44 + 12px);height:auto}
@media (max-width:560px){.sh-item.feat .rx-rays,.sh-item.feat .rx-glint{inset:6px 6px auto;width:auto;height:122px}}
@media (prefers-reduced-motion:reduce){.rx-edge::before,.rx-rays::before,.rx-glint::after,.pod[data-frame="fire"]::after,.pava[data-frame="fire"]::after{animation:none!important}}

/* The small shines and pulses too, as layers that only slide or fade (a moving background or a changing
   shadow was drawn again on every frame): the grandmaster title's glint, the review button's sheen, the
   legendary chip's shine, a red badge's glow, the claim button's call. */
.ttl-GM::after{background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.75) 50%,transparent 70%)!important;transform:translateX(-110%);animation:slideTtl 4.5s ease-in-out infinite!important}
@keyframes slideTtl{0%,70%{transform:translateX(-110%)}90%,100%{transform:translateX(110%)}}
.rv-cta::after{background:linear-gradient(105deg,transparent 30%,rgba(255,220,160,.16) 45%,transparent 60%)!important;transform:translateX(-110%);animation:slideRv 4.8s ease-in-out infinite!important}
@keyframes slideRv{0%,70%{transform:translateX(-110%)}100%{transform:translateX(110%)}}
.sh-item.r5 .rar,[data-rar="5"] .rar-chip,[data-rar="5"].rar-chip{position:relative;overflow:hidden;animation:none!important}
.sh-item.r5 .rar::after,[data-rar="5"] .rar-chip::after,[data-rar="5"].rar-chip::after{content:"";display:block!important;position:absolute;inset:0;width:auto;height:auto;pointer-events:none;
  background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.6) 50%,transparent 70%);transform:translateX(-120%);animation:slideChip 2.8s linear infinite}
@keyframes slideChip{to{transform:translateX(120%)}}
.badge.hot{animation:none!important}
.badge.hot.pop{animation:badgePop .5s var(--spring)!important}
.badge.hot::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:0 0 14px -2px var(--hot,#ff5b3d);opacity:0;animation:fadeGlow .8s ease-in-out infinite alternate}
.claim .cta{position:relative;animation:none!important}
.claim .cta::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:0 0 0 4px rgba(255,190,80,.22),0 12px 28px -8px rgba(255,150,30,.9);opacity:0;animation:fadeGlow 1.1s ease-in-out infinite alternate}
@keyframes fadeGlow{to{opacity:1}}
@media (prefers-reduced-motion:reduce){.ttl-GM::after,.rv-cta::after,.sh-item.r5 .rar::after,[data-rar="5"] .rar-chip::after,.badge.hot::after,.claim .cta::before{animation:none!important}}


/* In the menus a card back moves only while it is on the screen (the page puts .bk-on on it: liveIO); off
   it, or behind the case's window, it shows its still copy (--bkq). On the screen nothing is held back. */
.bk:not(.bk-on){background-image:var(--bkq,var(--bk))}
.pv-back i{background-image:var(--bkq,var(--bk,var(--bk-classic)))}
.pv-back.bk-on i{background-image:var(--bk,var(--bk-classic))}
body.case-open #menu .bk,body.case-open #menu .pv-back i{background-image:var(--bkq,var(--bk))}

/* A card in flight throws a longer shadow: a shadow layer of its own behind the card that only fades in
   and out (a face whose shadow changed was drawn again, picture and all, on every frame of the flight) */
.card .face,.table.photo .card .face{transition:filter .6s}
.card.air .face,.table.photo .card.air .face{box-shadow:0 4px 0 rgba(20,21,24,.85)}
.card .lift::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:16%/11%;pointer-events:none;
  box-shadow:0 2px 3px rgba(0,0,0,.3),0 22px 34px rgba(0,0,0,.42);opacity:0;transition:opacity .3s}
.card.air .lift::after{opacity:1}
.card.down .lift::after{border-radius:16%/11%}

/* While the menu is open it covers the table whole (it is opaque); the cards lying under it, moving
   backs and all, are not drawn at all (they were, every frame, where nobody could see them) */
#table.table.menu-up .card{visibility:hidden}

/* the reveal's rays wait faintly from the moment the drop is known (drawn already when they show) */
.cr-reveal.pre{pointer-events:none}
/* (nothing of it may show before the card has landed, whatever its rarity dims the rays to) */
.cr-reveal:not(.on)>:not(.crv-card),.cr-reveal:not(.on)::before{opacity:.01!important}
.crv-info{display:flex;flex-direction:column;align-items:center;gap:8px}
.cr-reveal.pre>.crv-card{opacity:.01;transform:none}

/* ---------- packs of tables and frames ---------- */
[data-pack="felt"]{--pack-img:url(/skins/box.svg)}
[data-pack="frame"]{--pack-img:url(/skins/envelope.svg)}
/* a pack as a small still picture, in lists */
.pk-ico{display:block;flex:none;width:34px;height:45px;background:var(--pack-img,url(/skins/pack.png)) center/contain no-repeat;filter:drop-shadow(0 2px 0 rgba(0,0,0,.3))}
/* the packs side by side above the chosen one */
/* (the packs are one choice of three: the site's grey track, the dark pill sliding to the chosen one) */
/* the table and frame packs' stage in their own colour */
.case-hero[data-pack="felt"]{--rc:#22b358;--rc2:#a7f3d0;--rcd:#15803d}
.case-hero[data-pack="frame"]{--rc:#a855f7;--rc2:#e9d5ff;--rcd:#6b21a8}
/* a felt or a frame from a pack (dropPic): a little table, or a frame round your picture; never a card */
.pk.pk-felt{position:relative;display:block;width:100%;height:auto;aspect-ratio:132/84;margin:0;border-radius:15%/24%}
.pk.pk-felt i{width:13.6%;height:auto;aspect-ratio:2/3;border-width:2px}
.pk.pk-felt i:nth-child(1){left:27.3%}.pk.pk-felt i:nth-child(2){left:43.2%}.pk.pk-felt i:nth-child(3){left:59.1%}
.pk.pk-frame{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1;container-type:inline-size}
.pk.pk-frame .pava.big{width:74cqw;height:74cqw;font-size:37cqw;--rw:max(2px,4cqw);box-shadow:none}
/* their rarity: the table's edge in its colour, a soft light behind the frame */
.ct .pk.pk-felt,.rc .pk.pk-felt{box-shadow:inset 0 0 0 3px var(--stroke),0 0 0 3px var(--rc)!important}
.rc[data-rar="4"] .pk.pk-felt,.rc[data-rar="5"] .pk.pk-felt{box-shadow:inset 0 0 0 3px var(--stroke),0 0 0 3px var(--rc),0 0 18px 3px color-mix(in srgb,var(--rc) 65%,transparent)!important}
.crv-card .pk.pk-felt{box-shadow:inset 0 0 0 4px var(--stroke),0 0 0 4px var(--rc),0 0 56px 12px color-mix(in srgb,var(--rc) 55%,transparent)!important}
.rc .pk.pk-frame,.crv-card .pk.pk-frame,.ct .pk.pk-frame{background:radial-gradient(closest-side,color-mix(in srgb,var(--rc) 42%,transparent),transparent)}
/* where they stand: on the reel in the middle of their place, and their size in each list */
.rc-item{display:grid;place-items:center}
.ct .pk{margin-bottom:4px}
.ct .pk.pk-frame{width:84%}
.ps-it:has(.pk-felt){width:112px}
.gp-r .pk.pk-felt{width:30px;box-shadow:inset 0 0 0 2px var(--stroke)!important}
.gp-r .pk.pk-frame{width:26px}

/* ---------- the season pass ----------
   A poster for the season, then the thirty levels as playing cards in three chapters, then the ways to XP.
   The cards are the table's own: white stock, a black edge, the level in two corners, the same in both
   rooms. Yours are white and stamped, the next is lifted in the season's colour and fills with its XP,
   the rest wait a shade greyer. */
#m-pass>.ps{display:flex;flex-direction:column;gap:22px;container:ps/inline-size}
/* the season's night: Halloween's, Christmas's forest, or green; a poster in either room (the banner and the
   season's poster in the news) */
.ps-hero,.ns-pass{background:linear-gradient(165deg,#0f766e,#064e3b)}
:is(.ps-hero,.ns-pass)[data-theme="halloween"]{background:linear-gradient(165deg,#3b1d6e 0%,#1c0f38 62%,#120a24 100%)}
:is(.ps-hero,.ns-pass)[data-theme="xmas"]{background:linear-gradient(165deg,#1f6b3a 0%,#0f3d22 62%,#0a2a17 100%)}
.ps-hero::before,.ns-pass .ns-stage::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none}
.ps-hero[data-theme="halloween"]::before,.ns-pass[data-theme="halloween"] .ns-stage::before{background:radial-gradient(70% 60% at 82% 6%,rgba(255,150,40,.28),transparent 70%),radial-gradient(60% 55% at 0% 100%,rgba(255,120,30,.22),transparent 70%)}
.ps-hero[data-theme="xmas"]::before,.ns-pass[data-theme="xmas"] .ns-stage::before{background:radial-gradient(circle at 20% 30%,rgba(255,255,255,.75) 0 1.4px,transparent 2px) 0 0/46px 46px,radial-gradient(circle at 70% 70%,rgba(255,255,255,.55) 0 1px,transparent 1.6px) 0 0/31px 31px,radial-gradient(70% 60% at 86% 0%,rgba(229,72,77,.38),transparent 70%)}
.ps-hero[data-theme="classic"]::before,.ns-pass[data-theme="classic"] .ns-stage::before{background:radial-gradient(70% 60% at 86% 0%,rgba(255,207,77,.26),transparent 70%)}
/* Halloween's moon, with two faint rings of its light */
.ps-hero[data-theme="halloween"]::after,.ns-pass[data-theme="halloween"] .ns-stage::after{content:"";position:absolute;z-index:-1;top:18px;right:var(--moon-r,22px);width:42px;height:42px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle at 36% 34%,#fff6d6,#ffe39a 70%);box-shadow:0 0 0 9px rgba(255,231,168,.13),0 0 0 21px rgba(255,231,168,.06)}
.ps-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:18px;border-radius:26px;border:3px solid var(--stroke);box-shadow:0 6px 0 var(--stroke);color:#fff;overflow:hidden}
.ps-head{display:flex;align-items:center;gap:14px;min-width:0;padding-right:62px}
.ps-art{display:grid;place-items:center;flex:none;width:70px;height:70px;border-radius:22px;background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 2px rgba(255,255,255,.2)}
.ps-art svg{display:block;width:52px;height:52px}
.ps-info{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.ps-name{font-family:var(--font-display);font-size:34px;font-weight:900;line-height:1;letter-spacing:-.02em;overflow-wrap:anywhere}
.ps-ends{display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 8px;border-radius:999px;background:rgba(0,0,0,.3);font-size:12.5px;font-weight:800}
.ps-ends .i{width:14px;height:14px}
/* you: your level on a chip (its notched rim in the season's colour), the bar to the next in fifths, the day's XP */
.ps-you{display:flex;align-items:center;gap:16px;min-width:0}
.ps-chip{position:relative;flex:none;width:84px;height:84px;border-radius:50%;border:3px solid var(--stroke);box-shadow:0 4px 0 var(--stroke);
  background:repeating-conic-gradient(from -9deg,#fff 0 18deg,var(--tone) 18deg 60deg)}
.ps-chip>span{position:absolute;inset:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;background:var(--tone-d);line-height:1;
  box-shadow:0 0 0 2px rgba(0,0,0,.28),inset 0 0 0 2px rgba(255,255,255,.22),inset 0 0 0 5px var(--tone-d),inset 0 0 0 6.5px rgba(255,255,255,.3)}
.ps-chip small{font-size:10px;font-weight:800;color:rgba(255,255,255,.85)}
.ps-chip b{font-size:29px;font-weight:900;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.ps-prog{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.ps-prog-top{align-self:stretch;display:flex;align-items:baseline;justify-content:space-between;gap:4px 10px;flex-wrap:wrap}
.ps-prog-top b{font-size:18px;font-weight:900;font-variant-numeric:tabular-nums}
.ps-prog-top span{font-size:12.5px;font-weight:700;color:rgba(255,255,255,.78)}
.ps-bar,.pst-bar,.gp-bar{position:relative;display:block;height:14px;border-radius:999px;background:var(--surface);overflow:hidden;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--stroke) 55%,transparent)}
.ps-bar i,.pst-bar i,.gp-bar i{position:absolute;inset:0 auto 0 0;border-radius:inherit;background:linear-gradient(90deg,var(--tone),color-mix(in srgb,var(--tone) 55%,#fff))}
.ps-hero .ps-bar{align-self:stretch;height:18px;background:rgba(0,0,0,.4);box-shadow:inset 0 0 0 2px rgba(255,255,255,.14)}
.ps-hero .ps-bar i{box-shadow:inset 0 3px 0 rgba(255,255,255,.3)}
.ps-hero .ps-bar::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(90deg,transparent 0 calc(20% - 2px),rgba(0,0,0,.28) calc(20% - 2px) 20%)}
.ps-today{display:inline-flex;align-items:center;gap:5px;padding:3px 10px 3px 7px;border-radius:999px;background:rgba(255,255,255,.14);font-size:12px;font-weight:900}
.ps-today .i{width:13px;height:13px}
/* the next reward, as its card */
.ps-next{display:flex;align-items:center;gap:16px;min-width:0;padding-top:14px;border-top:2px solid rgba(255,255,255,.12)}
.ps-next-card{flex:none;width:56px}
.ps-next-card .pc{rotate:-5deg;translate:none}
.ps-next-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.ps-next-t small{font-size:12.5px;font-weight:700;color:rgba(255,255,255,.75)}
.ps-next-t b{font-size:15.5px;font-weight:900;line-height:1.2}
@container ps (min-width:620px){
  .ps-hero{grid-template-columns:minmax(0,1fr) 160px;grid-template-areas:"head next" "you next";gap:20px 28px;padding:24px 26px;--moon-r:224px}
  .ps-head{grid-area:head}
  .ps-you{grid-area:you;gap:20px}
  .ps-next{grid-area:next;flex-direction:column;justify-content:center;gap:14px;padding:0 0 0 26px;border-top:0;border-left:2px solid rgba(255,255,255,.12);text-align:center}
  .ps-next-card{width:96px}
  .ps-next-t{align-items:center}
  .ps-name{font-size:42px}
  .ps-art{width:80px;height:80px;border-radius:24px}.ps-art svg{width:60px;height:60px}
  .ps-chip{width:96px;height:96px}.ps-chip b{font-size:34px}.ps-chip small{font-size:11px}
}

/* a level's card */
.pc{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;aspect-ratio:5/7;min-width:0;padding:13px 3px;
  border-radius:11px;background:#eceef1;color:#141518;box-shadow:0 0 0 2px #141518,0 3px 6px rgba(0,0,0,.18);text-align:center}
.pc>:is(.pc-pic,.pc-amt,.pc-name,.pc-gface){position:relative;z-index:1}
.pc-ix{position:absolute;z-index:1;top:max(4px,calc(var(--cw) * 0.06));left:max(5px,calc(var(--cw) * 0.09));font-style:normal;font-size:clamp(9px,calc(var(--cw) * 0.14),11.5px);font-weight:900;line-height:1;letter-spacing:-.03em;color:#6b7078}
.pc-ix2{top:auto;left:auto;bottom:max(4px,calc(var(--cw) * 0.06));right:max(5px,calc(var(--cw) * 0.09));rotate:180deg}
.pc-pic{display:grid;place-items:center;height:calc(var(--cw) * 0.46)}
.pc-coin .coin{width:calc(var(--cw) * 0.44);height:calc(var(--cw) * 0.44);margin:0}
.pc-amt{font-size:max(11px,calc(var(--cw) * 0.2));font-weight:900;line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.pc-name{font-size:max(9px,calc(var(--cw) * 0.135));font-weight:800;line-height:1.1}
.pc-pic.pc-pack{height:calc(var(--cw) * 0.56)}
.pc-pack .pk-ico{width:calc(var(--cw) * 0.4);height:calc(var(--cw) * 0.53)}
.pc-both{display:flex!important;align-items:center;gap:calc(var(--cw) * 0.02)}
.pc-both .coin{width:calc(var(--cw) * 0.32);height:calc(var(--cw) * 0.32);margin:0}
.pc-both .pk-ico{width:calc(var(--cw) * 0.3);height:calc(var(--cw) * 0.4)}
.pc-pic.pc-back{height:calc(var(--cw) * 0.72)}
.pc-back .bk{width:calc(var(--cw) * 0.5);border-width:2px;box-shadow:none}
.pc-pic.pc-frame{height:calc(var(--cw) * 0.7)}
.pc-frame .pk.pk-frame{width:calc(var(--cw) * 0.74)}
.pc-pic.pc-felt{height:calc(var(--cw) * 0.56)}
.pc-felt .pk.pk-felt{width:calc(var(--cw) * 0.84);box-shadow:inset 0 0 0 2px var(--stroke)!important}
.pc:not(.got):not(.next) :is(.pc-pic,.pc-amt,.pc-name,.pc-gname){opacity:.72}
/* yours: white, its corners green, a stamp on it */
.pc.got{background:#fff}
.pc.got .pc-ix{color:#15803d}
.pc-ok{position:absolute;z-index:2;top:-7px;right:-7px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#22b358;color:#fff;box-shadow:0 0 0 2px #141518}
.pc-ok .i{width:13px;height:13px;stroke-width:3.2}
/* the end of a chapter: the item's rarity round its edge and behind it, its name beside it (or under it) */
.pc.goal{aspect-ratio:auto;background:radial-gradient(closest-side,color-mix(in srgb,var(--rc) 30%,#eceef1),#eceef1);box-shadow:0 0 0 2px #141518,0 0 0 4.5px var(--rc),0 3px 8px rgba(0,0,0,.2)}
.pc.goal.got{background:radial-gradient(closest-side,color-mix(in srgb,var(--rc) 32%,#fff),#fff)}
.pc.goal .pc-ix{color:var(--rcd)}
.pc-gface{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:12px;width:100%;min-width:0;padding:0 14px;text-align:left}
.pc-gname{display:flex;flex-direction:column;gap:1px;min-width:0;max-width:100%}
.pc-gname b{font-size:13.5px;font-weight:900;line-height:1.15;overflow-wrap:anywhere}
.pc-gname small{font-size:11.5px;font-weight:800;color:#5b6068}
.pc.goal .pc-pic{height:64px}
.pc.goal .pc-back .bk{width:42px}
.pc.goal .pc-frame .pk.pk-frame{width:62px}
.pc.goal .pc-felt .pk.pk-felt{width:86px}
.pc.goal .pc-coin .coin,.pc.goal .pc-both .coin{width:30px;height:30px}
.pc.goal .pc-both .pk-ico{width:28px;height:37px}
.pc.goal .pc-amt{font-size:15px}
@container chs (min-width:820px){
  .pc-gface{flex-direction:column;gap:4px;padding:0 6px;text-align:center}
  .pc-gname b{font-size:12px}.pc-gname small{font-size:10.5px}
  .pc.goal .pc-pic{height:52px}.pc.goal .pc-back .bk{width:34px}.pc.goal .pc-frame .pk.pk-frame{width:52px}.pc.goal .pc-felt .pk.pk-felt{width:72px}
}
/* the next: lifted, ringed in the season's colour, filling from the bottom as its XP comes */
.pc.next{background:#fff;translate:0 -6px;box-shadow:0 0 0 2px #141518,0 0 0 5.5px var(--tone),0 10px 16px rgba(0,0,0,.26)}
.pc-fill{position:absolute;inset:0;border-radius:inherit;background:color-mix(in srgb,var(--tone) 26%,#fff);transform-origin:50% 100%;transform:scaleY(var(--p,0))}

/* the chapters: each a well, its line (the item it ends on, its levels, how many you have) folding its cards */
.ps-chs{display:flex;flex-direction:column;gap:10px;container:chs/inline-size}
.pch{border-radius:22px;background:var(--surface-2);interpolate-size:allow-keywords}
.pch>summary{display:flex;align-items:center;gap:12px;min-height:62px;padding:8px 14px 8px 8px;border-radius:22px;cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent;user-select:none;transition:background-color .15s ease}
.pch>summary::-webkit-details-marker{display:none}
@media (hover:hover) and (pointer:fine){.pch>summary:hover{background:color-mix(in srgb,var(--ink) 5%,transparent)}}
.pch>summary:focus-visible{outline:3px solid var(--primary);outline-offset:-3px}
.pch-goal{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:14px;background:var(--surface)}
.pch-goal .bk{width:24px;border-width:2px;box-shadow:none}
.pch-goal .pk.pk-frame{width:40px}
.pch-goal .pk.pk-felt{width:40px;box-shadow:inset 0 0 0 2px var(--stroke)!important}
.pch-goal.both{display:flex;align-items:center;justify-content:center}
.pch-goal.both .coin{width:20px;height:20px;margin:0}
.pch-goal.both .pk-ico{width:16px;height:21px}
.pch-t{flex:1;display:flex;flex-direction:column;gap:1px;min-width:0}
.pch-t b{font-size:15px;font-weight:900;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pch-t small{font-size:12.5px;font-weight:700;color:var(--muted)}
.pch-n{flex:none;font-size:13px;font-weight:800;color:var(--muted);font-variant-numeric:tabular-nums}
.pch-n b{font-size:16px;font-weight:900;color:var(--ink)}
.pch-done{flex:none;display:inline-flex;align-items:center;gap:4px;padding:3px 10px 3px 7px;border-radius:999px;background:var(--primary);color:#fff;font-size:12px;font-weight:900}
.pch-done .i{width:13px;height:13px;stroke-width:3}
.pch-chev{display:grid;flex:none;color:var(--muted);transition:transform .22s var(--ease-out)}
.pch-chev .i{width:18px;height:18px;transform:rotate(90deg)}
.pch[open] .pch-chev{transform:rotate(180deg)}
.pch::details-content{block-size:0;overflow:clip;transition:block-size .28s var(--ease-out),content-visibility .28s allow-discrete}
.pch[open]::details-content{block-size:auto}
/* the cards: four to a row on a phone (the last row the ninth and the chapter's end, three wide), six on a
   wider sheet, all ten in one row on a wide screen */
.pch-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 9px;padding:10px 12px 16px;--cw:calc((100cqw - 24px - 27px) / 4)}
.pch-cards>.goal{grid-column:span 3}
@container chs (min-width:520px){.pch-cards{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px 10px;padding:10px 16px 18px;--cw:calc((100cqw - 32px - 50px) / 6)}}
@container chs (min-width:820px){.pch-cards{grid-template-columns:repeat(11,minmax(0,1fr));--cw:calc((100cqw - 32px - 100px) / 11)}.pch-cards>.goal{grid-column:span 2}}
/* after the last level */
.ps-after{display:flex;align-items:center;gap:14px;min-height:62px;padding:12px 16px 12px 12px;border-radius:22px;background:var(--surface-2)}
.ps-after-card{flex:none;width:46px}
.ps-after-card .pc{border-radius:8px}
.ps-after.on{background:color-mix(in srgb,var(--tone) 16%,var(--surface-2))}
.ps-after.on .ps-after-card{width:56px}
/* the ways to XP: per game and per day, each a well of rows */
.ps-ways{display:flex;flex-direction:column;gap:10px}
.xpg{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
@container ps (min-width:560px){.xpg{grid-template-columns:repeat(2,minmax(0,1fr))}}
.xpg-col{display:flex;flex-direction:column;padding:12px 14px 4px;border-radius:20px;background:var(--surface-2)}
.xpg-t{font-size:12.5px;font-weight:800;color:var(--muted);margin:0 0 2px}
.xpg ul{list-style:none;margin:0;padding:0}
.xpr{display:flex;align-items:center;gap:11px;padding:9px 0;border-top:1px solid var(--edge-soft)}
.xpr:first-child{border-top:0}
.xpr-i{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;background:var(--xc);color:#fff}
.xpr-i .i{width:17px;height:17px}
.xpr-t{flex:1;display:flex;flex-direction:column;gap:1px;min-width:0;font-size:14px;font-weight:800;line-height:1.25}
.xpr-t small{font-size:12px;font-weight:700;color:var(--muted)}
.xpr>b{font-size:14px;font-weight:900;white-space:nowrap;font-variant-numeric:tabular-nums}
.xpr.dk .xpr-i{color:#141518}
.xpr.done{opacity:.55}
.xpr.done .xpr-i{background:var(--primary)}
@media (max-width:420px){.ps-hero{padding:15px;gap:14px}.ps-head{padding-right:54px}.ps-art{width:58px;height:58px;border-radius:18px}.ps-art svg{width:44px;height:44px}.ps-name{font-size:28px}
  .ps-chip{width:74px;height:74px}.ps-chip>span{inset:7px}.ps-chip b{font-size:25px}.ps-you{gap:13px}.ps-prog-top b{font-size:16px}.ps-hero[data-theme="halloween"]::after{top:14px;right:16px;width:36px;height:36px}}
@media (prefers-reduced-motion:reduce){.pch::details-content{transition:none}.pch-chev{transition:none}}
/* the strip in the hub */
.hub-pass:empty{display:none}
.pass-strip{display:flex;align-items:center;gap:12px;width:100%;margin:0;padding:10px 14px 10px 10px;border:0;border-radius:18px;background:color-mix(in srgb,var(--tone) 14%,var(--surface-2));color:var(--ink);text-align:left;cursor:pointer}
.pst-t{flex:1;display:flex;flex-direction:column;gap:6px;min-width:0}
.pst-t b{font-size:14.5px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pst-bar{height:9px}
.pst-xp{font-size:12px;font-weight:800;color:var(--muted)}
.pass-strip .ch-go{display:grid;font-size:18px;color:var(--ink);transition:transform .3s var(--spring)}
@media (hover:hover) and (pointer:fine){.pass-strip:hover .ch-go{transform:translateX(4px)}}
/* the season's poster in the news: its three items standing on the stage, each with the level that brings it */
.ps-trio{display:flex;align-items:flex-end;justify-content:center;gap:18px;padding:22px 14px 24px}
.ps-it{position:relative;display:grid;place-items:center;width:70px}
.ps-it:nth-child(2){width:84px;translate:0 -10px}
.ps-it::after{content:"";position:absolute;z-index:-1;left:10%;right:10%;bottom:-12px;height:9px;border-radius:50%;background:rgba(0,0,0,.42)}
.ps-it .bk{width:100%}
.ps-it .pk-ico{width:58px;height:78px}
@media (max-width:420px){.ps-trio{gap:12px;padding:18px 10px 22px}.ps-it{width:58px}.ps-it:nth-child(2){width:70px}.ps-it:has(.pk-felt){width:92px}.ps-it .pk.pk-felt{width:92px;height:auto}}
.ps-it-lv{position:absolute;z-index:2;right:-9px;bottom:-9px;display:grid;place-items:center;min-width:26px;height:26px;padding:0 6px;border-radius:999px;background:var(--tone);color:#141518;
  font-style:normal;font-size:12px;font-weight:900;box-shadow:0 0 0 2.5px var(--stroke)}

/* ---------- after a game: what it gave ---------- */
.end-rank:has(.gains){display:block;padding:0;background:none!important;box-shadow:none!important;border:0!important}
.gains{display:flex;flex-direction:column;gap:10px;width:100%;text-align:left}
.gn-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
.gn-t{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;padding:10px 12px;border-radius:16px;background:var(--surface-2);animation:gnIn .45s cubic-bezier(.2,1.3,.4,1) backwards}
.gn-t:nth-child(2){animation-delay:.08s}.gn-t:nth-child(3){animation-delay:.16s}.gn-t:nth-child(4){animation-delay:.24s}
.gn-t>small{font-size:12px;font-weight:800;color:var(--muted)}
.gn-t b{display:inline-flex;align-items:center;gap:5px;font-size:22px;font-weight:900;line-height:1.1}
.gn-t b .coin{width:20px;height:20px;margin:0}
.gn-t.up b{color:var(--primary-text)}
.gn-t.down b{color:var(--danger-text)}
.gn-sub{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--muted)}
.gn-t .promo{margin:4px 0 0}
.gn-none{grid-column:1/-1}
.gn-none .no-elo{font-size:12.5px}
.gn-pass{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px;background:color-mix(in srgb,var(--tone) 14%,var(--surface-2));animation:gnIn .45s cubic-bezier(.2,1.3,.4,1) .3s backwards}
.gp-ico{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:14px;background:color-mix(in srgb,var(--tone) 28%,var(--surface))}
.gp-ico .ps-art{width:auto;height:auto;background:none;box-shadow:none}
.gp-ico svg{display:block;width:34px;height:34px}
.gp-parts{display:flex;flex-wrap:wrap;gap:6px}
.gp-parts span{padding:2px 9px;border-radius:999px;background:var(--surface);font-size:12px;font-weight:700}
.gp-parts b{font-weight:900;color:color-mix(in srgb,var(--tone) 75%,var(--ink))}
.gn-pass.up .gp-ico{animation:gpPop .6s 1.3s both}
.gp-main{flex:1;display:flex;flex-direction:column;gap:7px;min-width:0}
.gp-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.gp-top b{font-size:16px;font-weight:900}
.gp-xp{font-size:15px;font-weight:900;color:color-mix(in srgb,var(--tone) 75%,var(--ink))}
.gp-bar{height:12px}
.gp-bar i{transition:width 1.1s var(--ease-out) .4s}
.gp-rew{display:flex;flex-wrap:wrap;gap:8px}
.gp-r{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 4px;border-radius:999px;background:var(--surface);animation:gnIn .4s 1.4s backwards}
.gp-r em{display:grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:var(--tone);color:#fff;font-size:11.5px;font-style:normal;font-weight:900}
.gp-r .coin{width:18px;height:18px;margin:0}
.gp-r .bk{width:20px;border-width:2px;box-shadow:none}
.gp-r .pk-ico{width:16px;height:21px}
.gp-r small{font-size:12px;font-weight:800}
.gn-note,.gn-wait{margin:0;font-size:12.5px;font-weight:700;line-height:1.4;color:var(--muted)}
.gn-wait{animation:gnBlink 1.2s ease-in-out infinite}
@keyframes gnIn{from{opacity:0;transform:translateY(8px) scale(.96)}}
@keyframes gpPop{0%{transform:none}40%{transform:scale(1.25) rotate(-8deg)}100%{transform:none}}
@keyframes gnBlink{50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){.gn-t,.gn-pass,.gp-r,.gn-pass.up .gp-ico,.gn-wait{animation:none}.gp-bar i{transition:none}}

/* ---------- the shop: the packs ---------- */
.ch-coll{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 10px;width:100%;margin:2px 0 4px}
.ch-coll span:first-child{font-size:12.5px;font-weight:800;color:var(--muted)}
.ch-coll b{font-size:13.5px;font-weight:900}
.ch-cbar{grid-column:1/-1;position:relative;height:10px;border-radius:999px;background:var(--surface);overflow:hidden;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--stroke) 45%,transparent)}
.ch-cbar i{position:absolute;inset:0 auto 0 0;border-radius:inherit;background:linear-gradient(90deg,var(--rcd),var(--rc))}
.case-odds{display:flex;gap:3px;height:12px;margin:2px 0 4px;border-radius:999px;overflow:hidden}
.case-odds i{min-width:6px;background:var(--rc)}
@media (max-width:560px){.ch-coll{text-align:left}}
/* the challenges and the daily reward say their XP too */
.q .qxp{font-size:11px;font-weight:800;color:var(--muted);white-space:nowrap}
.claim .claim-xp{margin-left:6px;font-size:12px;font-weight:800;opacity:.85}
/* the reveal: a table is wider than a card */
.cr-reveal>.crv-card:has(.pk-felt){width:min(210px,52vw)}

/* A card deep in a pile (the deck, the ash, the Element, a stock, a pile of tricks; setCard marks it) is a
   real card where it always lay, looking as it always did, but its back stands still: the back's still
   copy (only a sliver of it shows). The photo deck's own rule for the back outranks a plain one, so this
   names it too: missing it, a deep card kept the moving back and the whole page was drawn again on every
   frame. The top cards of every pile, the ash's six too, move as ever. */
.card.buried .back,.table.photo .card.buried[data-bk] .back,.card.still .back,.table.photo .card.still[data-bk] .back,.card.calm .back,.table.photo .card.calm[data-bk] .back{background-image:var(--back-still,var(--back-img))!important}
/* while the cards are dealt every back stands still, and a card in flight wears its still picture (.dealing on the
   table and .hush on the card, from layout and setCard in app.js); the grass keeps its life, or its flowers would go */
.table.dealing:not([data-back^="grass"]) .card:not([data-own]) .back,.table.photo.dealing:not([data-back^="grass"]) .card:not([data-own])[data-bk] .back,
.table.dealing .card[data-own]:not([data-own^="grass"]) .back,.table.photo.dealing .card[data-own]:not([data-own^="grass"])[data-bk] .back,
.card.hush .back,.table.photo .card.hush[data-bk] .back{background-image:var(--back-still,var(--back-img))!important}
/* the little card backs (the Element's introduction, the hatch of the Danajský horse, the queue's seats) wear the still
   picture: at their size no back is seen to move, and a dozen moving ones had the page drawn again on every frame */
.table .ic{background-image:var(--back-still,var(--back-sm))!important}
.table .hz-hatch i,.table .q-seats span.on{background-image:var(--back-still,var(--back-sm))}

/* The shop: every pack one under another. A free pack is said once, above them; under each pack its
   "What can drop" (a thin bar of the rarities' chances already hints at it) opens what it holds. */
.case-free{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 16px;border-radius:18px;background:var(--primary-soft);font-size:14px;font-weight:700;line-height:1.35;text-wrap:pretty}
.case-free .i{flex:none;width:22px;height:22px;color:var(--primary-text)}
.case-free b{font-weight:900}
.case-list{display:flex;flex-direction:column;gap:18px}
.case-list .case-hero{row-gap:4px;interpolate-size:allow-keywords}
.case-list .ch-txt{gap:8px}
.case-list .ch-name{font-size:24px}
.case-inv{margin:18px auto 4px;align-self:center}
.ch-more{grid-column:1/-1;margin:2px -10px 0 0}
.ch-more>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 12px 6px 10px;border-radius:14px;cursor:pointer;list-style:none;
  font-size:14.5px;font-weight:800;-webkit-tap-highlight-color:transparent;user-select:none;transition:background-color .15s ease}
.ch-more>summary::-webkit-details-marker{display:none}
.ch-more>summary>.i{flex:none;width:19px;height:19px;color:var(--muted)}
.ch-more>summary>span{flex:none}
.ch-more>summary .case-odds{flex:1;min-width:40px;height:9px;margin:0 4px}
.chm-chev{display:grid;flex:none;transition:transform .22s var(--ease-out)}
.chm-chev .i{width:18px;height:18px;transform:rotate(90deg)}
.ch-more[open] .chm-chev{transform:rotate(180deg)}
@media (hover:hover) and (pointer:fine){.ch-more>summary:hover{background:color-mix(in srgb,var(--ink) 6%,transparent)}}
.ch-more>summary:focus-visible{outline:3px solid var(--primary);outline-offset:-3px}
/* (opening it grows it, closing shrinks it: where the browser can say so) */
.ch-more::details-content{block-size:0;overflow:clip;transition:block-size .26s var(--ease-out),content-visibility .26s allow-discrete}
.ch-more[open]::details-content{block-size:auto}
.ch-more .case-in{gap:16px;margin:0;padding:8px 10px 10px 2px}
.ch-more .ct-group{padding:0;border:0;border-radius:0;background:none;box-shadow:none;gap:10px}
.ch-more .ch-note{display:block;padding:0 4px}
@media (prefers-reduced-motion:reduce){.ch-more::details-content{transition:none}.chm-chev{transition:none}}
@media (max-width:560px){
  .ch-more{margin:6px 0 0}
  .ch-more>summary{padding:6px 8px}
  .ch-more .case-in{padding:8px 6px 6px}
}
/* (a table or frame that rises stays out of the page's flow: all three stand on the pack's bottom) */
.deckbox .db-cards>.pk{position:absolute;inset:auto 0 0;height:auto}

/* The tournament's slide: an arena in the dark, two spotlights from its top corners meeting on the podium.
   The cup stands on the top step (now and then a star glints on its rim), a medal on each of the others,
   silver and bronze on their ribbons; each step is outlined like a card, with its place big on its face and its
   prize under it. Everything stands still but the two glints. */
.ns-tour .ns-stage{place-items:end stretch;padding:10px 18px 0;
  background:radial-gradient(58% 46% at 50% 100%,color-mix(in srgb,var(--tone) 46%,transparent),transparent 72%),
    linear-gradient(180deg,color-mix(in srgb,var(--tone-d) 30%,var(--surface)),color-mix(in srgb,var(--tone) 16%,var(--surface)))}
.ns-tour .ns-stage::before,.ns-tour .ns-stage::after{content:"";position:absolute;top:0;bottom:0;width:58%;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,246,210,.30),rgba(255,246,210,.06) 70%,transparent)}
.ns-tour .ns-stage::before{left:0;clip-path:polygon(0 0,16% 0,100% 100%,58% 100%)}
.ns-tour .ns-stage::after{right:0;clip-path:polygon(84% 0,100% 0,42% 100%,0 100%)}
.ns-tour .ns-tag{z-index:2}
.ns-tour .wk-podium{position:relative;z-index:1;gap:6px}
.ns-tour .wk-step{gap:2px}
.ns-tour .wk-block{flex-direction:column;gap:0;border:3px solid var(--stroke);border-bottom:0;border-radius:12px 12px 0 0;box-shadow:inset 0 4px 0 rgba(255,255,255,.45)}
.ns-tour .wk-step.s1 .wk-block{height:62px}
.ns-tour .wk-step.s2 .wk-block{height:48px}
.ns-tour .wk-step.s3 .wk-block{height:38px}
.wk-n{font-family:var(--font-display);font-size:24px;font-weight:900;line-height:1;color:rgba(20,21,24,.82)}
.wk-step.s1 .wk-n{font-size:30px}
.wk-step.s3 .wk-n{font-size:18px}
.wk-pz{display:inline-flex;align-items:center;gap:3px;font-size:12.5px;font-weight:900;line-height:1.2;color:#141518}
.wk-pz .coin{width:13px;height:13px;margin:0}
.wk-cup{position:relative;display:block;width:66px;height:74px;margin-bottom:1px;filter:drop-shadow(0 3px 0 rgba(0,0,0,.28))}
.wk-cup svg{display:block;width:100%;height:100%}
.wk-cup i{position:absolute;width:11px;height:11px;background:#fff;opacity:0;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);animation:wkGlint 3.6s ease-in-out infinite}
.wk-cup i:first-of-type{left:9px;top:8px}
.wk-cup i:last-of-type{right:7px;top:32px;width:8px;height:8px;animation-delay:-1.8s}
@keyframes wkGlint{0%,72%,100%{opacity:0;transform:scale(.3) rotate(0)}84%{opacity:1;transform:scale(1) rotate(45deg)}}
.ns-tour .wk-name{font-size:12.5px}
.ns-tour .wk-step small{font-size:11px;margin-top:-2px}
@media (prefers-reduced-motion:reduce){.wk-cup i{animation:none}}

/* The Danajský element's introduction: a Trojan horse put together from cards (the tail, four legs, a
   plank on three wheels, the body, the neck and the head), each landing a moment after the one before, as
   the sword's do. Then a hatch in its side swings open on a "?" (what it holds, nobody knows) and the
   horse rolls a little back and forth on its wheels, as the sword sways on its thread. */
/* (its rocking and its wheels' already in their first pose while they wait to start: they started from rest, and at 1.9 s
   the horse jumped 4 px and the wheels a quarter turn) */
.ia-horse{position:relative;flex:none;width:156px;height:124px;transform-origin:50% 90%;animation:horseRoll 3.2s ease-in-out 1.9s infinite backwards}
.ia-horse .ic{position:absolute;margin:0}
.ia-horse .ic.ls{width:35px;height:22px}
.hz-ear,.hz-eye,.hz-hatch,.hz-wh{position:absolute;opacity:0;animation:icIn .42s var(--ease-pop-strong) forwards}
.hz-ear{left:116px;top:1px;width:11px;height:12px;background:var(--card-edge);clip-path:polygon(50% 0,100% 100%,0 100%);rotate:-8deg;animation-delay:calc(.25s + 13 * 70ms)}
.hz-eye{left:131px;top:16px;width:5px;height:5px;border-radius:50%;background:var(--card-edge);box-shadow:0 0 0 2px #fff;animation-delay:calc(.25s + 13 * 70ms)}
.hz-wh{top:103px;width:18px;height:18px;border-radius:50%;box-shadow:0 0 0 3px var(--card-edge);
  background:radial-gradient(circle,var(--card-edge) 0 2.5px,transparent 3px),linear-gradient(90deg,transparent 7.5px,var(--card-edge) 7.5px 10.5px,transparent 10.5px),
    linear-gradient(0deg,transparent 7.5px,var(--card-edge) 7.5px 10.5px,transparent 10.5px),#d9a35f;
  animation:icIn .42s var(--ease-pop-strong) .7s forwards,wheelRoll 3.2s ease-in-out 1.9s infinite backwards}
.hz-hatch{left:68px;top:45px;display:grid;place-items:center;width:20px;height:14px;border-radius:3px;background:var(--card-edge);perspective:70px;animation-delay:calc(.25s + 11 * 70ms)}
.hz-hatch b{font:900 11px/1 var(--font-ui);color:var(--primary-text);opacity:0;animation:hatchQ .32s var(--ease-pop-strong) 1.75s forwards}
.hz-hatch i{position:absolute;inset:0;border-radius:3px;background:var(--back-sm) center/cover no-repeat;box-shadow:inset 0 0 0 2px var(--card-edge);transform-origin:0 50%;animation:hatchOpen .5s var(--ease-out) 1.55s forwards}
@keyframes hatchOpen{to{transform:rotateY(-118deg)}}
@keyframes hatchQ{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}
@keyframes horseRoll{0%,100%{transform:translateX(-4px) rotate(-1deg)}50%{transform:translateX(4px) rotate(1deg)}}
@keyframes wheelRoll{0%,100%{rotate:-25deg}50%{rotate:25deg}}
@media (prefers-reduced-motion:reduce){
  .ia-horse,.hz-ear,.hz-eye,.hz-hatch,.hz-hatch b,.hz-wh{animation:none!important;opacity:1}
  .hz-hatch i{animation:none!important;transform:rotateY(-118deg)}
}

/* The hub, de-cluttered. A signed-in player knows the game: the line under its name (the same as on the
   game's tile) is for guests. */
#menu .step.hub:not(.guest) .menu-lead{display:none}
/* the season strip: the season and its level on one line, the bar and its XP under them */
.pst-row{display:flex;align-items:center;gap:10px;min-width:0}
.pst-row b{flex:1;min-width:0;font-size:14.5px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pst-lv{flex:none;font-size:13px;font-weight:900;font-style:normal}
.pst-row .pst-bar{flex:1;min-width:0}
.pst-row .pst-xp{flex:none}
/* A phone: the bar's controls fit beside the mark (the day's tasks show as their icon; how many are done
   is in their window), and the five pages' names fit under their icons. */
@media (max-width:420px){
  .brand .mark{width:38px;height:32px}
  .rew-bar{margin-right:0}
  .rew-bar button{padding:0 9px}
  .rew-bar .rb-n{display:none}
  .top-actions .lang.seg button{min-width:0;padding-inline:8px}
  .hub-more .hub-links{padding:14px 2px 12px}
  .hub-more .hub-link .hl-ico{width:50px;height:50px;font-size:23px}
  .hub-more .hub-link .hl-ico .i{width:25px;height:25px}
  .hub-more .hub-links{gap:0}
  #menu .step.hub .more-row{gap:0 10px}
  #menu .step.hub .more-row .link-btn.more-ways{padding:6px 4px;font-size:13.5px}
  .hub-more .hub-link,.hub-more .hub-links .hub-link{padding-inline:0}
  /* (a name may reach past its icon into the gap beside it, centred: the five share the row evenly) */
  .hub-more .hub-link b,html.comfy .hub-more .hub-link b{font-size:min(12.5px,3.3vw);letter-spacing:-.015em;white-space:nowrap}
}

/* A pack in the list: its picture on a stage on the left, its name and how much of it is yours on the
   right with the way to open it under them, what it can drop across the bottom. A phone keeps the same
   rows, the stage narrower and the button the card's whole width, so two packs show at once. */
.case-how{margin:-4px 0 14px;color:var(--muted);font-size:14px;font-weight:600;line-height:1.45;text-wrap:pretty}
.case-list .case-hero{grid-template-columns:minmax(0,.42fr) minmax(0,.58fr);grid-template-areas:"stage txt" "stage act" "more more";row-gap:10px;padding:8px 16px 8px 8px}
.case-list .ch-stage{grid-area:stage;min-height:196px}
.case-list .ch-txt{grid-area:txt;justify-content:flex-end;align-items:stretch;padding:14px 0 0;text-align:left}
.case-list .ch-act{grid-area:act;display:flex;flex-direction:column;gap:6px;align-self:start}
.case-list .ch-act .case-go{margin:0}
.case-list .ch-coll{margin:4px 0 0}
@media (max-width:560px){
  .case-list .case-hero{grid-template-columns:116px minmax(0,1fr);grid-template-areas:"stage txt" "act act" "more more";row-gap:12px;padding:8px 8px 6px;text-align:left}
  .case-list .ch-stage{min-height:142px}
  .case-list .ch-art{transform:scale(.74)}
  .case-list .ch-txt{justify-content:center;padding:4px 6px 0 2px}
  .case-list .ch-name{font-size:20px}
  .case-list .ch-act{padding:0 2px}
}
/* an empty showcase in the profile: one line, its name and the way to fill it */
.p-sec.show-sec.empty,#m-profile>.p-sec.show-sec.empty{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.show-sec.empty .label{margin:0}
.show-sec.empty .link-btn{margin:0}
/* a phone: the five games' choice in one row */
@media (max-width:420px){
  .rk-chips{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}
  .rk-chips>button{padding:8px 1px;font-size:min(13px,3.15vw);letter-spacing:-.01em}
}

/* The table box and the frame envelope (deckBoxHTML): pieces on one grid, stacked. What comes out waits
   inside, behind the front: tables behind the box's front, frames behind the envelope's pocket. */
.deckbox.db-crate{width:124px;height:112px}
.deckbox.db-env{width:132px;height:96px}
.bx-p,.en-p{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}
.bx-hole,.en-back{z-index:0}
.db-crate .db-cards{left:22px;right:22px;top:44px;height:52px;z-index:1}
.db-env .db-cards{left:36px;right:36px;top:16px;height:60px;z-index:1}
.bx-front,.en-front{z-index:2}
.bx-flap{z-index:3}
.bx-flap.l{transform-origin:6px 40px}
.bx-flap.r{transform-origin:118px 40px}
.bx-flap .under{opacity:0}
.bx-slit{position:absolute;left:61px;top:24px;z-index:4;width:2.5px;height:16px;border-radius:2px;background:#fff;opacity:0;transform:scaleY(0);transform-origin:50% 0}
.en-flap{z-index:3;transform-origin:66px 8px}
.en-seal{position:absolute;left:53px;top:45px;z-index:4;width:26px;height:26px;overflow:visible}
.db-crate .db-glow{top:-14px}
.db-env .db-glow{top:-26px}
.db-crate:not(.tear) .db-sparks i:nth-child(1){left:14px;top:52px}.db-crate:not(.tear) .db-sparks i:nth-child(2){left:100px;top:64px}
.db-crate:not(.tear) .db-sparks i:nth-child(3){left:24px;top:94px}.db-crate:not(.tear) .db-sparks i:nth-child(4){left:92px;top:96px}
.db-env:not(.tear) .db-sparks i:nth-child(1){left:14px;top:28px}.db-env:not(.tear) .db-sparks i:nth-child(2){left:108px;top:40px}
.db-env:not(.tear) .db-sparks i:nth-child(3){left:22px;top:76px}.db-env:not(.tear) .db-sparks i:nth-child(4){left:100px;top:80px}
/* the box: a hop, the knife down the tape, the flaps swinging out (their inside showing as they pass
   upright), the tables coming up out of it one after another, fanned */
.cr-box.db-crate.tear{animation:crateHop .42s ease-out}
.cr-box.db-crate.tear .bx-slit{animation:crateSlit .32s var(--ease-out) .1s forwards}
.cr-box.db-crate.tear .bx-flap.l{animation:flapL .62s cubic-bezier(.3,1.45,.55,1) .34s forwards}
.cr-box.db-crate.tear .bx-flap.r{animation:flapR .62s cubic-bezier(.3,1.45,.55,1) .4s forwards}
.cr-box.db-crate.tear .bx-flap.l .over,.cr-box.db-crate.tear .bx-flap.r .over{animation:flapOver .62s linear .34s forwards}
.cr-box.db-crate.tear .bx-flap.l .under,.cr-box.db-crate.tear .bx-flap.r .under{animation:flapUnder .62s linear .34s forwards}
.cr-box.db-crate.tear .db-cards>*{animation:packUp .62s cubic-bezier(.2,1.35,.4,1) .62s forwards;--x:-15px;--r:-9deg;--y:-44px}
.cr-box.db-crate.tear .db-cards>:nth-child(2){animation-delay:.7s;--x:0px;--r:0deg;--y:-60px}
.cr-box.db-crate.tear .db-cards>:nth-child(3){animation-delay:.78s;--x:15px;--r:9deg;--y:-44px}
@keyframes crateHop{30%{transform:translateY(3px) scaleY(.94)}62%{transform:translateY(-5px)}}
@keyframes crateSlit{0%{opacity:1;transform:scaleY(0)}70%{opacity:1;transform:scaleY(1)}100%{opacity:0;transform:scaleY(1)}}
@keyframes flapL{to{transform:rotate(-124deg) scaleY(2.4)}}
@keyframes flapR{to{transform:rotate(124deg) scaleY(2.4)}}
@keyframes flapOver{0%,34%{opacity:1}42%,100%{opacity:0}}
@keyframes flapUnder{0%,34%{opacity:0}42%,100%{opacity:1}}
@keyframes packUp{to{transform:translate(var(--x),var(--y)) rotate(var(--r))}}
/* the envelope: a shake, its seal popping off, the flap turning back (behind what comes out, once past
   upright), the frames sliding out of it, fanned */
.cr-box.db-env.tear{animation:envShake .36s ease-out}
.cr-box.db-env.tear .en-seal{animation:sealPop .46s var(--ease-out) .1s forwards}
.cr-box.db-env.tear .en-flap{animation:envFlap .56s cubic-bezier(.45,0,.2,1) .3s forwards}
.cr-box.db-env.tear .db-cards>*{animation:packUp .62s cubic-bezier(.2,1.3,.4,1) .68s forwards;--x:-18px;--r:-10deg;--y:-48px}
.cr-box.db-env.tear .db-cards>:nth-child(2){animation-delay:.76s;--x:0px;--r:0deg;--y:-66px}
.cr-box.db-env.tear .db-cards>:nth-child(3){animation-delay:.84s;--x:18px;--r:10deg;--y:-48px}
@keyframes envShake{25%{transform:rotate(-3deg)}55%{transform:rotate(2.5deg)}80%{transform:rotate(-1deg)}}
@keyframes sealPop{0%{transform:none;opacity:1}30%{transform:scale(1.32);opacity:1}100%{transform:translate(10px,-26px) rotate(-50deg) scale(.5);opacity:0}}
@keyframes envFlap{0%{transform:perspective(320px) rotateX(0deg);z-index:3}49%{z-index:3}50%{z-index:0}100%{transform:perspective(320px) rotateX(180deg);z-index:0}}

/* the medals on the second and third steps (the third a little smaller), standing as the cup does */
.wk-medal2{display:block;width:40px;height:56px;margin-bottom:2px;filter:drop-shadow(0 3px 0 rgba(0,0,0,.28))}
.wk-medal2.m3{width:35px;height:49px}
.wk-medal2 svg{display:block;width:100%;height:100%}
/* the bots' levels: their names (and what each means) centred in their buttons, as every other choice is */
.levels>button{align-items:center;text-align:center}

/* a box or an envelope you have for free, under its name in the shop */
.ch-own{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:3px 10px;border-radius:999px;background:var(--primary-soft);color:var(--primary-text);font-size:12.5px;font-weight:900}
.ch-own .i{width:15px;height:15px}

/* ================= a wide screen: the menu's main pages use its width =================
   On a phone (and a narrow window) every page is the one column it always was. From 1080px the main
   pages open into a wide sheet laid out in columns, so they are seen at a glance instead of scrolled
   through: the games side by side (Eso bere across the top), the game's page as two columns (you and the
   ways to play on the left, the news and the pages on the right), the shop's packs on one shelf, the
   pass's banner with its prizes beside you, the profile's sections in two columns. */
@media (min-width:1080px) and (min-height:600px){
  #menu:is([data-step="games"],[data-step="start"],[data-step="shop"],[data-step="pass"],[data-step="profile"],[data-step="inv"],[data-step="ladder"],[data-step="friends"]) .menu-sheet{width:min(980px,100%)!important;padding:34px 44px 30px}
  /* the games: Eso bere, ours, across the top; the others two by two */
  #menu .game-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  #menu .game-tiles>.g-esobere{grid-column:1/-1}
  #menu .game-tiles>.g-esobere .gt-art{transform:scale(1.25);transform-origin:50% 50%;margin:0 14px}
  #menu .game-tiles>.g-esobere .gt-txt b{font-size:26px}
  /* the game's page: two columns */
  #menu .step.hub .hub-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 40px;align-items:start}
  #menu .step.hub .hub-play,#menu .step.hub .hub-more{display:flex!important;flex-direction:column;gap:12px;min-width:0}
  #menu .step.hub .hub-more{padding-top:38px}
  #menu .step.hub #hub-wk .news{margin:0!important}
  #menu .step.hub .hub-more .hub-links{margin:6px 0 6px}
  /* the shop: the three packs on one shelf, each standing, what it can drop under it */
  .case-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
  .case-list .case-hero{grid-template-columns:minmax(0,1fr);grid-template-areas:"stage" "txt" "act" "more";padding:8px 8px 6px;row-gap:12px;text-align:center}
  .case-list .ch-stage{min-height:210px}
  .case-list .ch-txt{align-items:center;padding:2px 10px 0;text-align:center}
  .case-list .ch-own{align-self:center}
  .case-list .ch-act{padding:0 8px}
  .case-list .ch-coll{text-align:left}
  .ch-more{margin:0}
  .ch-more .ct-grid{grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:8px}
  .case-how,.case-free{max-width:720px}
  /* the profile: its sections in two columns, each kept whole */
  #m-profile{display:block!important;columns:2;column-gap:18px}
  #m-profile>*{break-inside:avoid;margin:0 0 16px!important}
  /* another player's profile: as wide as your own, its sections in two columns the same way */
  .pl-sheet{width:min(980px,100%)!important;padding:26px 34px 20px}
  .pl-cols{display:block;columns:2;column-gap:18px}
  .pl-cols>*{break-inside:avoid;margin:0 0 16px!important}
}
/* (a box or an envelope you have for free: a badge on the corner of its picture, so the buttons on the
   shelf stay in one line) */
.case-list .case-hero{position:relative}
.case-list .ch-own{position:absolute;top:16px;left:16px;z-index:3;margin:0;box-shadow:0 0 0 3px var(--surface-2)}
/* the Element's kinds in the custom game: an even grid of equal cells instead of a row that wraps unevenly */
.seg.ekind{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:4px}
.seg.ekind>button{min-width:0;padding-inline:6px}

/* the tournament's poster: its arena in the dark, the names on the podium in white */
.ns-tour .ns-stage{background:radial-gradient(58% 46% at 50% 100%,color-mix(in srgb,var(--tone) 40%,transparent),transparent 72%)}
.ns-tour .wk-name{color:#fff}
.ns-tour .wk-name.me{color:#7ef0a8}
.ns-tour .wk-name.none{color:rgba(255,255,255,.62)}
.ns-tour .wk-step small{color:rgba(255,255,255,.72)}

/* the pass's strip in the hub: your level on the same chip as on the pass's banner, smaller */
.ps-chip{color:#fff}
.ps-chip.sm{width:46px;height:46px;border-width:2.5px;box-shadow:0 3px 0 var(--stroke)}
.ps-chip.sm>span{inset:5px;box-shadow:0 0 0 1.5px rgba(0,0,0,.28),inset 0 0 0 1.5px rgba(255,255,255,.25)}
.ps-chip.sm b{font-size:17px}
.pass-strip .pst-lv{font-style:normal;font-size:12.5px;font-weight:800;color:var(--muted);white-space:nowrap}

/* ---------- the ladder: the best three on a podium, everyone after them in rows ---------- */
.lad-head{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin:0 0 4px}
.lad-game{display:inline-flex;align-items:center;padding:4px 12px;border-radius:999px;background:var(--primary);color:#fff;font-size:13px;font-weight:900}
.lad-head>span:last-child{font-size:13.5px;font-weight:700;color:var(--muted)}
.lad-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:10px;width:100%;max-width:540px;margin:6px auto 0;padding:14px 4px 0;border-bottom:3px solid var(--stroke)}
.lad-step{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;text-align:center}
.lad-ava{position:relative;display:grid;place-items:center;margin-bottom:2px}
.lad-ava .pava{width:52px;height:52px;font-size:26px}
.lad-step.s1 .lad-ava .pava{width:66px;height:66px;font-size:33px}
.lad-name{display:inline-flex;align-items:center;justify-content:center;gap:5px;max-width:100%;font-size:14px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lad-step.me .lad-name{color:var(--primary-text)}
.lad-name.none{font-weight:700;color:var(--muted)}
.lad-block{display:grid;place-items:center;align-self:stretch;margin-top:6px;border:3px solid var(--stroke);border-bottom:0;border-radius:14px 14px 0 0;box-shadow:inset 0 4px 0 rgba(255,255,255,.45)}
.lad-block b{font-size:26px;font-weight:900;line-height:1;color:rgba(20,21,24,.82)}
.lad-step.s1 .lad-block{height:88px;background:linear-gradient(180deg,#ffd76a,#f2b22c)}
.lad-step.s1 .lad-block b{font-size:34px}
.lad-step.s2 .lad-block{height:66px;background:linear-gradient(180deg,#e3e9ee,#bcc6cf)}
.lad-step.s3 .lad-block{height:50px;background:linear-gradient(180deg,#f0bb8a,#d3925a)}
.lad-step.s3 .lad-block b{font-size:21px}
/* a place nobody has taken: a dashed seat over a step a shade quieter */
.lad-step.free .lad-ava{width:52px;height:52px;border-radius:50%;border:2.5px dashed color-mix(in srgb,var(--ink) 30%,transparent);color:var(--faint)}
.lad-step.free.s1 .lad-ava{width:66px;height:66px}
.lad-step.free .lad-ava .i{width:22px;height:22px}
.lad-step.free .lad-block{filter:saturate(.55)}
.lad-empty{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:440px;margin:20px auto 8px;text-align:center}
.lad-empty b{font-size:18px;font-weight:900}
.lad-empty small{font-size:13.5px;font-weight:600;line-height:1.45;color:var(--muted)}
.lad-empty .cta{display:inline-flex;align-items:center;gap:7px;margin-top:8px;padding:11px 18px}
.lad-empty .cta .i{width:17px;height:17px}
.lad-podium+.ladder-list{margin-top:14px}
/* the weekend tournament's standings: the ladder's podium and rows, with points, prizes and games */
.lad-game.wk-tag{gap:7px}
.lad-game.wk-tag .wk-dot{background:#fff}
.wk-how{margin:2px 0 0;font-size:13.5px;font-weight:600;line-height:1.45;color:var(--muted)}
.lad-pts{margin-top:-3px;font-size:12.5px;font-weight:800;color:var(--muted)}
.lad-block .lad-pz{display:inline-flex;align-items:center;gap:3px;margin-top:3px;font-size:12.5px;font-weight:900;line-height:1;color:rgba(20,21,24,.78)}
.lad-block .lad-pz .coin{width:13px;height:13px;margin:0}
.lad-step .lad-block{grid-auto-flow:row;align-content:center}
.wk-row-pts{display:flex;flex-direction:column;align-items:flex-end;gap:1px;flex:none;text-align:right}
.wk-row-pts b{font-size:14px;font-weight:900}
.wk-row-pts small{font-size:11.5px;font-weight:700;color:var(--muted)}
.wk-foot{display:flex;flex-direction:column;align-items:center;gap:8px;margin:18px auto 4px;text-align:center}
.wk-foot small{font-size:13.5px;font-weight:700;color:var(--muted)}
.wk-foot .cta,.lad-empty .cta{display:inline-flex;align-items:center;gap:7px;padding:11px 18px}
.wk-foot .cta .i{width:17px;height:17px}
.lad-podium~.rank-info,.lad-empty~.rank-info{margin-top:18px}
@media (max-width:420px){.lad-podium{gap:6px}.lad-name{font-size:12.5px}.lad-ava .pava{width:46px;height:46px}.lad-step.s1 .lad-ava .pava{width:58px;height:58px}.lad-step.free .lad-ava{width:46px;height:46px}.lad-step.free.s1 .lad-ava{width:58px;height:58px}}
/* friends: nobody yet says how a friend gets here */
.fr-empty{display:flex;align-items:center;gap:14px;padding:4px 2px 2px}
.fr-empty-pic{display:grid;place-items:center;flex:none;width:52px;height:52px;border-radius:16px;background:var(--c-blue);color:#fff}
.fr-empty-pic .i{width:26px;height:26px}
.fr-empty>span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.fr-empty b{font-size:15px;font-weight:900}
.fr-empty small{font-size:13px;font-weight:600;line-height:1.45;color:var(--muted)}
/* on a wide screen the friends' page is two columns, each card kept whole */
@media (min-width:1080px) and (min-height:600px){
  #m-friends{display:block!important;columns:2;column-gap:18px}
  #m-friends>*{break-inside:avoid;margin:0 0 16px!important}
}

/* the inventory on a wide screen: who sees it and the showcase side by side, the backs and items four or more to a row */
@media (min-width:1080px) and (min-height:600px){
  .inv-top{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);align-items:stretch}
  .inv-pub{justify-content:center}
  #menu #m-inv .sh-grid{justify-content:flex-start}
  #menu #m-inv .sh-grid>.sh-item{flex:0 0 calc((100% - 36px) / 4)}
}

/* ---------- after a game: your place on a chip, the standings on their medals, what next ---------- */
.endcard .sheet{width:min(500px,100%)}
.end-head{display:flex;align-items:center;gap:14px;min-width:0}
.endcard .sheet.has-share .end-head{padding-right:96px}
.endcard .sheet.has-share #end-title{padding-right:0}
.end-chip{width:68px;height:68px}
.end-chip>span{inset:7px}
.end-chip b{font-size:28px}
.end-head-t{display:flex;flex-direction:column;gap:4px;min-width:0}
.end-head-t h2{margin:0;font-size:25px;line-height:1.08;text-wrap:balance}
.end-head #end-eyebrow{margin:0;font-size:13px;font-weight:700;color:var(--muted)}
/* each place on its medal (the same as on the ladder and the podiums) */
.standings .pl,.standings li.me .pl{display:grid;place-items:center;flex:none;width:30px;height:30px;padding:0;line-height:1;text-align:center;font-family:var(--font-ui);border-radius:50%;background:var(--surface-3);color:var(--ink)!important;font-size:12.5px;font-weight:900}
.standings li[data-place="1"] .pl{background:#ffcf4d;color:#141518!important}
.standings li[data-place="2"] .pl{background:#d5dde5;color:#141518!important}
.standings li[data-place="3"] .pl{background:#e2a26b;color:#141518!important}
/* what next: the turning point and the review, two rows alike */
.end-more{display:flex;flex-direction:column;gap:10px}
.end-more:not(:has(>:not([hidden]))){display:none}
@media (max-width:560px){.end-head-t h2{font-size:21px}.end-chip{width:58px;height:58px}.end-chip>span{inset:6px}.end-chip b{font-size:23px}.endcard .sheet.has-share .end-head{padding-right:48px}}

/* ---------- the shop: a display case for each pack ----------
   Each pack stands in a lit case of its own night (blue for the cards, green for the tables, violet for the
   frames): a spot falls on it from above, it stands on a round pedestal in its colour, and under it, still
   inside the case, its name, how much of it you have and the way to open it. What it can drop opens under
   the case. Three cases side by side on a wide sheet; on a narrow one, one to a row, the pack beside its words. */
.vitrine{container:vit/inline-size;margin-top:6px}
.vitrine [data-pack="back"]{--pk:#3aa6ff;--pk-d:#0a2c4a}
.vitrine [data-pack="felt"]{--pk:#2fc566;--pk-d:#0a3520}
.vitrine [data-pack="frame"]{--pk:#a885ff;--pk-d:#2a1260}
.vitrine .case-list{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.vitrine .case-list .case-hero{display:flex;flex-direction:column;gap:6px;padding:0;border:0!important;background:none!important;box-shadow:none!important;text-align:left}
.ch-case{position:relative;isolation:isolate;display:grid;grid-template-columns:132px minmax(0,1fr);grid-template-areas:"stage txt" "act act";gap:12px 16px;align-items:center;padding:14px 16px 16px 12px;
  border:3px solid var(--stroke);border-radius:24px;box-shadow:0 6px 0 var(--stroke);color:#fff;overflow:hidden;
  background:radial-gradient(90% 70% at 22% 30%,color-mix(in srgb,var(--pk) 30%,var(--pk-d)),var(--pk-d) 70%,color-mix(in srgb,var(--pk-d) 70%,#000))}
.vitrine .case-list .ch-stage{grid-area:stage;position:relative;display:grid;place-items:end center;min-height:140px;padding:0 0 16px;border-radius:0;overflow:visible;background:none!important}
.vitrine .case-list .ch-stage::before{content:"";position:absolute;z-index:-1;left:50%;top:-30px;bottom:6px;width:150%;translate:-50% 0;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.26),rgba(255,255,255,.04) 80%,transparent);clip-path:polygon(40% 0,60% 0,92% 100%,8% 100%)}
.vitrine .case-list .ch-stage::after{display:none}
.vitrine .case-list .ch-art{position:relative;z-index:1;transform:scale(.8);transform-origin:50% 100%}
/* the pedestal: a round plinth, lit on top */
.ch-ped{position:absolute;left:50%;bottom:0;width:122px;height:34px;translate:-50% 0;border:3px solid var(--stroke);border-radius:50%;
  background:radial-gradient(70% 60% at 50% 32%,color-mix(in srgb,var(--pk) 55%,#fff) 0%,var(--pk) 55%,color-mix(in srgb,var(--pk) 55%,#000) 100%);box-shadow:0 4px 0 var(--stroke)}
.vitrine .case-list .ch-txt{grid-area:txt;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:0;text-align:left}
.vitrine .case-list .ch-name{font-size:21px;font-weight:900;line-height:1.1;color:#fff}
.vitrine .case-list .ch-own{position:static;margin:0;box-shadow:none;background:rgba(255,255,255,.16);color:#fff}
.vitrine .case-list .ch-coll{align-self:stretch;margin:0;color:rgba(255,255,255,.8)}
.vitrine .case-list .ch-coll b{color:#fff}
.vitrine .case-list .ch-cbar{background:rgba(0,0,0,.35)!important;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.16)!important}
.vitrine .case-list .ch-cbar i{background:linear-gradient(90deg,var(--pk),color-mix(in srgb,var(--pk) 50%,#fff))!important}
.vitrine .case-list .ch-act{grid-area:act;display:flex;flex-direction:column;gap:6px;padding:0}
.vitrine .case-list .ch-act .case-go{margin:0;width:100%}
.vitrine .case-list .ch-note{color:rgba(255,255,255,.8)}
.vitrine .case-list .ch-more{margin:0 4px}
@container vit (min-width:620px){
  .vitrine .case-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
  .ch-case{flex:1;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr auto;grid-template-areas:"stage" "txt" "act";align-items:stretch;padding:18px 16px 16px;text-align:center}
  .vitrine .case-list .ch-stage{min-height:206px;padding-bottom:18px}
  .vitrine .case-list .ch-art{transform:none}
  .ch-ped{width:156px;height:40px}
  .vitrine .case-list .ch-txt{align-items:center;justify-content:flex-start;text-align:center;padding:4px 4px 0}
  .vitrine .case-list .ch-name{font-size:23px}
  .vitrine .case-list .ch-own{align-self:center}
  .vitrine .case-list .ch-coll{width:100%;max-width:300px;align-self:center}
}

/* ---------- the inventory: the showcase, your collection by kind, who may see it ---------- */
.iv-show{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:20px;background:var(--surface-2)}
.iv-show-h{display:flex;align-items:baseline;justify-content:space-between;gap:4px 12px;flex-wrap:wrap}
.iv-show-h .label{margin:0}
.iv-show-h small{font-size:12.5px;font-weight:600;color:var(--muted)}
.iv-show .mt.empty{display:flex;align-items:center;justify-content:center;min-height:92px;color:var(--faint)}
.iv-show .mt.empty .i{width:22px;height:22px}
.iv-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:18px}
.iv-tabs>button{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:8px 6px;line-height:1.15}
.iv-tabs>button span{font-size:14px;font-weight:900}
.iv-tabs>button small{font-size:11.5px;font-weight:800;opacity:.72;font-variant-numeric:tabular-nums}
.iv-grid{margin-top:14px}
.iv-more{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:210px;padding:16px;border:2.5px dashed color-mix(in srgb,var(--ink) 24%,transparent);border-radius:20px;
  background:none;color:var(--muted);font:inherit;text-align:center;cursor:pointer;transition:border-color .15s ease,color .15s ease}
#menu .sh-grid>.iv-more{flex:0 0 calc((100% - 12px) / 2)}
.iv-more .i{width:24px;height:24px;padding:9px;box-sizing:content-box;border-radius:50%;background:var(--surface-2);color:var(--ink)}
.iv-more b{font-size:14.5px;font-weight:900;color:var(--ink)}
.iv-more small{font-size:12.5px;font-weight:600;line-height:1.35}
@media (hover:hover) and (pointer:fine){.iv-more:hover{border-color:color-mix(in srgb,var(--ink) 45%,transparent);color:var(--ink)}}
.iv-more:active{transform:scale(.97)}
.iv-more:focus-visible{outline:3px solid var(--primary);outline-offset:2px}
.iv-pub{margin-top:20px}
@media (min-width:1080px) and (min-height:600px){
  #menu #m-inv .sh-grid>.iv-more{flex:0 0 calc((100% - 36px) / 4)}
  .iv-show .show-row{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* ---------- the profile: who you are on a banner, the editing folded behind one button ---------- */
.pf-hero{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:14px 16px;margin:0 0 16px;padding:18px;border:3px solid var(--stroke);border-radius:24px;box-shadow:0 5px 0 var(--stroke);
  background:linear-gradient(160deg,color-mix(in srgb,var(--primary) 22%,var(--surface)) 0%,var(--surface) 70%)}
.pf-hero .p-top{flex:none;display:block;margin:0;padding:0;background:none;box-shadow:none}
.pf-hero .pava.big{width:92px;height:92px;font-size:46px}
.pf-id{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}
.pf-name{font-size:30px;font-weight:900;line-height:1.05;letter-spacing:-.025em;overflow-wrap:anywhere}
.pf-badges{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pf-badges:empty{display:none}
.pf-meta{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap}
.pf-meta .chipnum{display:inline-flex;align-items:center;gap:5px;margin:0;padding:5px 12px 5px 8px;border-radius:999px;background:var(--surface-2);color:var(--ink);font-size:14px;font-weight:900;font-variant-numeric:tabular-nums}
.pf-meta .chipnum .coin{order:-1;width:17px;height:17px;margin:0}
.pf-pass{display:inline-flex;align-items:center;gap:9px;padding:4px 13px 4px 4px;border:0;border-radius:999px;background:color-mix(in srgb,var(--tone) 18%,var(--surface-2));color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.pf-pass .ps-chip.sm{width:34px;height:34px;border-width:2px;box-shadow:0 2px 0 var(--stroke)}
.pf-pass .ps-chip.sm>span{inset:4px}
.pf-pass .ps-chip.sm b{font-size:13px}
.pf-pass>span:last-child{display:flex;flex-direction:column;line-height:1.15}
.pf-pass>span:last-child b{font-size:13px;font-weight:900}
.pf-pass>span:last-child small{font-size:11.5px;font-weight:700;color:var(--muted)}
.pf-pass:active{transform:scale(.97)}
.pf-edit{flex:1 0 100%;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 14px;font-size:14px}
.pf-edit .i{width:16px;height:16px}
#m-profile>.pf-editbox{display:flex;flex-direction:column;gap:10px;margin:0 0 16px!important}
.pf-editbox[hidden]{display:none!important}
.pf-editbox .label{margin:0}
@media (min-width:560px){.pf-edit{flex:none;position:absolute;top:16px;right:16px}.pf-id{padding-right:150px}}
@media (min-width:1080px) and (min-height:600px){
  #m-profile>.pf-hero,#m-profile>.pf-editbox{column-span:all}
  .pf-hero{padding:22px 24px}.pf-hero .pava.big{width:104px;height:104px;font-size:52px}.pf-name{font-size:36px}
}
/* selling a spare: its words and price wrap inside a narrow tile instead of spilling out */
.inv-sell{flex-wrap:wrap;gap:2px 5px;line-height:1.2;white-space:normal}

/* ---------- opening a pack: it gathers itself (a squeeze and a shake that grows), light breaks out of it
   (rays turning behind a flash), and what it holds springs up and fans out; then the pack drops away.
   The card pack tears its top off, the table box slits its tape and throws its flaps open, the envelope's
   wax seal cracks and falls, its flap swings back over the gold liner. */
.db-rays{position:absolute;left:50%;top:36%;z-index:0;width:250px;height:250px;margin:-125px 0 0 -125px;border-radius:50%;opacity:0;pointer-events:none;
  background:repeating-conic-gradient(from 0deg,rgba(255,236,170,.6) 0 9deg,transparent 9deg 24deg);
  -webkit-mask:radial-gradient(closest-side,#000 22%,transparent 100%);mask:radial-gradient(closest-side,#000 22%,transparent 100%)}
.cr-box.tear .db-rays{animation:raysOut 1.15s var(--ease-out) var(--open,.5s) forwards}
@keyframes raysOut{0%{opacity:0;transform:scale(.35) rotate(0)}28%{opacity:1}100%{opacity:0;transform:scale(1.25) rotate(50deg)}}
.cr-box.tear .db-glow{animation:tearGlow 1s ease-out var(--open,.5s) forwards}
@keyframes packGather{0%{transform:none}18%{transform:scale(1.05,.93)}36%{transform:rotate(-3deg) scale(.98,1.04)}52%{transform:rotate(3.5deg)}68%{transform:rotate(-4deg)}84%{transform:rotate(2deg) scale(1.02)}100%{transform:none}}
/* the card pack */
.cr-box.tear:not(.db-crate):not(.db-env){--open:.5s;animation:packGather .5s cubic-bezier(.33,0,.4,1)}
.cr-box.tear:not(.db-crate):not(.db-env) .db-top{animation:tearOff .7s cubic-bezier(.45,0,.6,1) .32s forwards}
.cr-box.tear:not(.db-crate):not(.db-env) .db-cards>*{animation:packFan .6s var(--ease-pop-strong) .5s forwards;--x:-17px;--r:-14deg;--y:-58px}
.cr-box.tear:not(.db-crate):not(.db-env) .db-cards>:nth-child(2){animation-delay:.56s;--x:0px;--r:0deg;--y:-76px}
.cr-box.tear:not(.db-crate):not(.db-env) .db-cards>:nth-child(3){animation-delay:.62s;--x:17px;--r:14deg;--y:-58px}
@keyframes packFan{0%{transform:none}60%{transform:translate(var(--x),calc(var(--y) - 8px)) rotate(var(--r)) scale(1.06)}100%{transform:translate(var(--x),var(--y)) rotate(var(--r))}}
/* the table box: the tape slits, the flaps fly open (light from inside), the tables rise one by one */
.cr-box.db-crate.tear{--open:.42s;animation:packGather .46s cubic-bezier(.33,0,.4,1)}
.cr-box.db-crate.tear .bx-slit{animation:crateSlit .3s var(--ease-out) .2s forwards}
.cr-box.db-crate.tear .bx-flap.l{animation:flapL .58s cubic-bezier(.3,1.5,.55,1) .4s forwards}
.cr-box.db-crate.tear .bx-flap.r{animation:flapR .58s cubic-bezier(.3,1.5,.55,1) .44s forwards}
.cr-box.db-crate.tear .bx-flap.l .over,.cr-box.db-crate.tear .bx-flap.r .over{animation:flapOver .58s linear .4s forwards}
.cr-box.db-crate.tear .bx-flap.l .under,.cr-box.db-crate.tear .bx-flap.r .under{animation:flapUnder .58s linear .4s forwards}
.cr-box.db-crate.tear .db-cards>*{animation:packFan .62s var(--ease-pop-strong) .6s forwards;--x:-17px;--r:-10deg;--y:-48px}
.cr-box.db-crate.tear .db-cards>:nth-child(2){animation-delay:.68s;--x:0px;--r:0deg;--y:-66px}
.cr-box.db-crate.tear .db-cards>:nth-child(3){animation-delay:.76s;--x:17px;--r:10deg;--y:-48px}
/* the envelope: the seal cracks, spins off and falls; the flap swings back; the frames slide up and fan */
.cr-box.db-env.tear{--open:.5s;animation:packGather .44s cubic-bezier(.33,0,.4,1)}
.cr-box.db-env.tear .en-seal{animation:sealCrack .62s .18s forwards}
@keyframes sealCrack{0%{transform:none;animation-timing-function:var(--ease-out)}26%{transform:scale(1.3) rotate(-10deg);animation-timing-function:ease-out}
  42%{transform:scale(1.18) rotate(14deg) translateY(-6px);opacity:1;animation-timing-function:cubic-bezier(.55,0,1,.45)}100%{transform:translate(22px,70px) rotate(150deg) scale(.75);opacity:0}}
.cr-box.db-env.tear .en-flap{animation:envFlap .54s cubic-bezier(.45,0,.2,1) .38s forwards}
.cr-box.db-env.tear .db-cards>*{animation:packFan .62s var(--ease-pop-strong) .66s forwards;--x:-20px;--r:-11deg;--y:-52px}
.cr-box.db-env.tear .db-cards>:nth-child(2){animation-delay:.74s;--x:0px;--r:0deg;--y:-72px}
.cr-box.db-env.tear .db-cards>:nth-child(3){animation-delay:.82s;--x:20px;--r:11deg;--y:-52px}

/* ---------- the first page: Eso bere on a felt of its own, the other games under it ----------
   The felt is the table's: green, lit from where its cards lie, a stitch running inside its edge; on it a
   fan of the game's cards, its name big, its line, who is playing, your ELO and the way in. Under it the
   other games, smaller stickers, two to a row (four on a wide screen). */
#menu .game-tiles{display:flex!important;flex-direction:column;gap:14px;container-type:inline-size}
#menu .game-tile.gt-hero{position:relative;isolation:isolate;display:flex;align-items:center;gap:18px 30px;padding:24px 28px;border:3px solid var(--stroke)!important;border-radius:26px;
  box-shadow:0 6px 0 var(--stroke)!important;color:#fff;text-align:left;overflow:hidden;background:radial-gradient(70% 130% at 20% 50%,#27a85e 0%,#147c43 46%,#0b4d2b 100%)!important}
.gt-hero::before{content:"";position:absolute;inset:8px;z-index:-1;border:2px dashed rgba(255,255,255,.22);border-radius:19px;pointer-events:none}
.gt-fan{position:relative;flex:none;width:210px;height:150px}
.gt-fan>span{position:absolute;left:calc(50% - 32px + (var(--i) - (var(--k) - 1) / 2) * 36px);top:16px;transform:rotate(calc((var(--i) - (var(--k) - 1) / 2) * 12deg));transform-origin:50% 130%}
.gt-fan .gt-card{display:block;width:64px;height:104px;border-radius:7px;background:var(--sprite,none) 0 0/800% 500% no-repeat,#fff;box-shadow:0 0 0 2.5px var(--card-edge),0 8px 12px rgba(0,0,0,.28)}
#menu .gt-hero .gt-txt{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0}
#menu .game-tiles>.gt-hero .gt-txt>b{font-size:42px;font-weight:900;line-height:1;letter-spacing:-.03em;color:#fff}
#menu .gt-hero .gt-txt small{font-size:15px;font-weight:600;line-height:1.4;color:rgba(255,255,255,.86)}
.gt-chips{display:flex;align-items:center;gap:6px 8px;flex-wrap:wrap}
.gt-chips>*{display:inline-flex;align-items:center;gap:5px;margin:0;padding:4px 11px;border-radius:999px;background:rgba(0,0,0,.26);color:#fff!important;font-size:12.5px;font-weight:800;font-style:normal}
.gt-chips>[hidden]{display:none}
.gt-chips .gt-on i{background:#7ef0a8}
.gt-chips .gt-on.zero i{background:rgba(255,255,255,.5)}
#menu .gt-chips .gt-elo b{font-size:13px;color:#fff}
#menu .gt-chips .gt-elo small{font-size:10.5px;color:rgba(255,255,255,.75)}
.gt-go{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:11px 14px 11px 20px;border:3px solid var(--stroke);border-radius:16px;background:#fff;color:#141518;font-size:16px;font-weight:900;box-shadow:0 4px 0 var(--stroke)}
.gt-go .i{width:18px;height:18px}
.gt-more-t{margin:12px 0 0;font-size:18px;font-weight:900}
.gt-more{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#menu .gt-more .game-tile{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:14px 14px 12px;text-align:left}
#menu .gt-more .gt-art{grid-row:auto;align-self:center;margin:2px 0 2px;transform:none}
#menu .gt-more .gt-txt{display:flex;flex-direction:column;gap:3px;min-width:0}
#menu .gt-more .gt-txt b{font-size:18px}
#menu .gt-more .gt-txt small{font-size:12.5px;line-height:1.35}
#menu .gt-more .gt-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:auto}
#menu .gt-more .gt-meta .i{margin-left:auto}
@media (min-width:1080px) and (min-height:600px){.gt-more{grid-template-columns:repeat(4,minmax(0,1fr))}#menu .game-tile.gt-hero{padding:28px 34px}.gt-fan{width:240px;height:166px}.gt-fan .gt-card{width:72px;height:116px}.gt-fan>span{left:calc(50% - 36px + (var(--i) - (var(--k) - 1) / 2) * 40px)}}
/* (by the room the tiles have, not the window's: the menu's sheet is narrow in a window of any width up to the wide
   layout, and side by side the fan squeezed the words into a column a word wide) */
@container (max-width:560px){
  #menu .game-tile.gt-hero{flex-direction:column;align-items:stretch;gap:10px;padding:18px 18px 20px;text-align:center}
  .gt-fan{align-self:center;width:190px;height:128px}.gt-fan .gt-card{width:56px;height:90px}.gt-fan>span{left:calc(50% - 28px + (var(--i) - (var(--k) - 1) / 2) * 31px);top:10px}
  #menu .gt-hero .gt-txt{align-items:center}#menu .game-tiles>.gt-hero .gt-txt>b{font-size:34px}.gt-chips{justify-content:center}.gt-go{align-self:stretch;justify-content:center}
}
/* the first page's name, its line and who is online: one centred column over the felt */
#menu .step.games #games-lead{text-align:center;margin-inline:auto}
#menu .step.games #games-live{justify-content:center;text-align:center}

/* ---------- what a pack can drop: its button under the case, and the window it opens ---------- */
.ch-odds{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;margin:0;padding:6px 12px 6px 10px;border:0;border-radius:14px;background:none;color:var(--ink);font:inherit;font-size:14.5px;font-weight:800;
  text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s ease}
.ch-odds>.i{flex:none;width:19px;height:19px;color:var(--muted)}
.ch-odds>span{flex:none}
.ch-odds .case-odds{flex:1;min-width:40px;height:9px;margin:0 4px}
.ch-odds .chm-chev .i{transform:none}
@media (hover:hover) and (pointer:fine){.ch-odds:hover{background:color-mix(in srgb,var(--ink) 6%,transparent)}}
.ch-odds:active{transform:scale(.98)}
.ch-odds:focus-visible{outline:3px solid var(--primary);outline-offset:-3px}
.vitrine .case-list .ch-odds{margin:0 4px;width:auto}
.odds-dlg{width:min(600px,calc(100vw - 24px));max-width:none;max-height:none;padding:0;border:0;background:transparent;color:var(--ink);overflow:visible}
.odds-dlg::backdrop{background:rgba(10,11,13,.58);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.odds-dlg[data-pack="back"]{--pk:#3aa6ff}.odds-dlg[data-pack="felt"]{--pk:#2fc566}.odds-dlg[data-pack="frame"]{--pk:#a885ff}
.od-sheet{display:flex;flex-direction:column;gap:16px;max-height:min(86vh,780px);overflow:auto;overscroll-behavior:contain;padding:18px 18px 20px;border:3px solid var(--stroke);border-radius:26px;
  background:var(--surface);box-shadow:0 8px 0 var(--stroke)}
.odds-dlg[open] .od-sheet{animation:odIn .22s var(--ease-out)}
@keyframes odIn{from{opacity:0;transform:scale(.96) translateY(10px)}}
.od-head{display:flex;align-items:center;gap:12px}
.od-art{display:grid;place-items:center;flex:none;width:54px;height:54px;border-radius:16px;background:color-mix(in srgb,var(--pk) 24%,var(--surface-2))}
.od-art .pk-ico{width:34px;height:44px}
.odds-dlg[data-pack="frame"] .od-art .pk-ico,.odds-dlg[data-pack="felt"] .od-art .pk-ico{width:42px;height:36px}
.od-t{flex:1;display:flex;flex-direction:column;gap:1px;min-width:0}
.od-t b{font-size:20px;font-weight:900;line-height:1.15}
.od-t small{font-size:13px;font-weight:700;color:var(--muted)}
.od-x{flex:none}
.od-sheet>*{flex-shrink:0}
.odds-dlg .case-odds{height:14px;margin:0}
.odds-dlg .case-in{display:flex;flex-direction:column;gap:18px;margin:0;padding:0}
.odds-dlg .ct-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px}
@media (max-width:420px){.od-sheet{padding:14px 14px 16px}.odds-dlg .ct-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){.odds-dlg[open] .od-sheet{animation:odFade .2s ease}@keyframes odFade{from{opacity:0}}}

/* the plain backs' gloss (GLOSS in app.js): a band of light, as the pictures drew it (a third of the card wide,
   turned 22 degrees, across in the first third of 7 s, then still), laid over a face-down card and a small back.
   It only moves (transform), so the card under it is never repainted for it. On a card at the table it is an
   animation only while it crosses (cardGlossOnce, when the page says so: .table.gl-<back>, glossTick in app.js): as
   one running all seven seconds, each card's band was a moving thing the page looked at again on every frame it
   drew itself, for two thirds of the time with nothing to show (measured on a phone: a fifth of the page's time and
   half of the graphics card's). A small back in the menus keeps the one that runs on. */
.card .back{overflow:hidden}
.bk[data-b]:not(.db-cards>*){position:relative}
.bk[data-b]{overflow:hidden}
/* (at the table the band is the card's own element, .gl, over the back's picture and its layers: a back's ::before and
   ::after carry the parts of a moving picture, both of them the neon's. It shows only where app.js turns it on,
   glossRules) */
.card .back>.gl{display:none;z-index:1}
.card .back>.gl,.card .back::after,.bk[data-b]::after{position:absolute;left:0;top:0;width:33.333%;height:146.15%;pointer-events:none;transform-origin:0 0;border:0;border-radius:0;aspect-ratio:auto;
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.38),rgba(255,255,255,0));transform:rotate(22deg) translate(-213.3%,-15.8%)}
.bk[data-b]::after{animation:cardGloss 7s linear infinite}
@keyframes cardGloss{0%{transform:rotate(22deg) translate(-213.3%,-15.8%)}32%,100%{transform:rotate(22deg) translate(426.7%,-15.8%)}}
@keyframes cardGlossOnce{from{transform:rotate(22deg) translate(-213.3%,-15.8%)}to{transform:rotate(22deg) translate(426.7%,-15.8%)}}
@media (prefers-reduced-motion:reduce){.card .back::after,.bk[data-b]::after{animation:none;content:none!important}.card .back>.gl{display:none!important}}
/* a pack at rest in the shop stands still and sharp (its stars only move as it opens): moving inside its masked,
   shadowed picture they repainted the whole pack every frame */
.ch-art .db-sparks i{animation:none!important}
/* the Halloween frame's glow holds still (its pulse was a shadow redrawn on every frame on the main thread); the bats
   still circle and the pumpkin still bobs */
.pod[data-frame="halloween"] .ava,.pava[data-frame="halloween"]{animation:none;box-shadow:0 0 0 var(--rw,2px) #ff9a2e,0 0 15px 3px rgba(160,75,235,.8)!important}
/* the reel's cards wear their still backs (liveIO leaves them out); the one it stops at comes alive */
.cr-strip .win .bk{background-image:var(--bk)}
/* (no rule here may look at an element's style attribute: Blink then rechecks the matching descendants of every
   element whose inline style changes, and cards, the reel and the pods change theirs on every frame) */
/* the reveal is built faint while the reel runs: its rays wait for it to show before they turn */
.cr-reveal.pre .crv-rays{animation-play-state:paused}
/* the rarity glint on an item's tile moves on a layer of its own: drawn into the tile, it repainted the whole tile on
   every frame */
.rx-glint::after{will-change:transform}
/* the cards outside the track know their width outright */
.ps-next-card .pc{--cw:56px}
.ps-after-card .pc{--cw:46px}
.ps-after.on .ps-after-card .pc{--cw:56px}
@container ps (min-width:620px){.ps-next-card .pc{--cw:96px}}

/* The seasonal frames hold still in the menus and windows (in a game, round a seat, they move as ever): a frame
   drawn with moving parts redraws itself on the main thread every frame, and the one on the news, the pass and
   the shop's lists kept a phone's main thread over half busy with nothing else moving (measured, the menus then
   stuttered when scrolled). Still, the bats keep their places round the picture, a third of the way apart. */
:is(#menu,.case-room,.odds-dlg,#profile,#player,.rew-pop) .pava[data-frame="halloween"]::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'-50%20-50%20100%20100'%3E%3Cg%20transform%3D'translate(0.00%20-34.00)'%3E%3Cg%20transform%3D'scale(1.25)'%3E%3Cpath%20d%3D'M0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-3.4%206.2%20-4.6%209.2%20-4.2C11%20-3.9%2012.2%20-2.7%2012.8%20-1.2C11.6%20-1.7%2010.4%20-1.3%209.8%20-0.2C8.8%20-1.2%207.4%20-1%206.8%200.3C5.8%20-0.5%204.4%20-0.1%203.8%201.1C3.1%200.8%202.3%201.2%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.2%20-3.1%200.8%20-3.8%201.1C-4.4%20-0.1%20-5.8%20-0.5%20-6.8%200.3C-7.4%20-1%20-8.8%20-1.2%20-9.8%20-0.2C-10.4%20-1.3%20-11.6%20-1.7%20-12.8%20-1.2C-12.2%20-2.7%20-11%20-3.9%20-9.2%20-4.2C-6.2%20-4.6%20-3.6%20-3.4%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z'%20fill%3D'%231d1029'%20stroke%3D'%23ffb347'%20stroke-width%3D'.75'%20stroke-linejoin%3D'round'%3E%3C%2Fpath%3E%3Ccircle%20cx%3D'-.65'%20cy%3D'-1.5'%20r%3D'.42'%20fill%3D'%23ffd23f'%2F%3E%3Ccircle%20cx%3D'.65'%20cy%3D'-1.5'%20r%3D'.42'%20fill%3D'%23ffd23f'%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D'translate(29.44%2017.00)'%3E%3Cg%20transform%3D'scale(1.25)'%3E%3Cpath%20d%3D'M0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-3.4%206.2%20-4.6%209.2%20-4.2C11%20-3.9%2012.2%20-2.7%2012.8%20-1.2C11.6%20-1.7%2010.4%20-1.3%209.8%20-0.2C8.8%20-1.2%207.4%20-1%206.8%200.3C5.8%20-0.5%204.4%20-0.1%203.8%201.1C3.1%200.8%202.3%201.2%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.2%20-3.1%200.8%20-3.8%201.1C-4.4%20-0.1%20-5.8%20-0.5%20-6.8%200.3C-7.4%20-1%20-8.8%20-1.2%20-9.8%20-0.2C-10.4%20-1.3%20-11.6%20-1.7%20-12.8%20-1.2C-12.2%20-2.7%20-11%20-3.9%20-9.2%20-4.2C-6.2%20-4.6%20-3.6%20-3.4%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z'%20fill%3D'%231d1029'%20stroke%3D'%23ffb347'%20stroke-width%3D'.75'%20stroke-linejoin%3D'round'%3E%3C%2Fpath%3E%3Ccircle%20cx%3D'-.65'%20cy%3D'-1.5'%20r%3D'.42'%20fill%3D'%23ffd23f'%2F%3E%3Ccircle%20cx%3D'.65'%20cy%3D'-1.5'%20r%3D'.42'%20fill%3D'%23ffd23f'%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D'translate(-29.44%2017.00)'%3E%3Cg%20transform%3D'scale(1.25)'%3E%3Cpath%20d%3D'M0%20-2.2L1.2%20-4.3L1.9%20-2C3.6%20-3.4%206.2%20-4.6%209.2%20-4.2C11%20-3.9%2012.2%20-2.7%2012.8%20-1.2C11.6%20-1.7%2010.4%20-1.3%209.8%20-0.2C8.8%20-1.2%207.4%20-1%206.8%200.3C5.8%20-0.5%204.4%20-0.1%203.8%201.1C3.1%200.8%202.3%201.2%201.7%202.5L0%203.6L-1.7%202.5C-2.3%201.2%20-3.1%200.8%20-3.8%201.1C-4.4%20-0.1%20-5.8%20-0.5%20-6.8%200.3C-7.4%20-1%20-8.8%20-1.2%20-9.8%20-0.2C-10.4%20-1.3%20-11.6%20-1.7%20-12.8%20-1.2C-12.2%20-2.7%20-11%20-3.9%20-9.2%20-4.2C-6.2%20-4.6%20-3.6%20-3.4%20-1.9%20-2L-1.2%20-4.3L0%20-2.2Z'%20fill%3D'%231d1029'%20stroke%3D'%23ffb347'%20stroke-width%3D'.75'%20stroke-linejoin%3D'round'%3E%3C%2Fpath%3E%3Ccircle%20cx%3D'-.65'%20cy%3D'-1.5'%20r%3D'.42'%20fill%3D'%23ffd23f'%2F%3E%3Ccircle%20cx%3D'.65'%20cy%3D'-1.5'%20r%3D'.42'%20fill%3D'%23ffd23f'%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E")}
:is(#menu,.case-room,.odds-dlg,#profile,#player,.rew-pop) .pava[data-frame="halloween"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2030%2028'%3E%3Cpath%20d%3D'M15%206.5c-.6-2.3.4-4%202-4.8'%20fill%3D'none'%20stroke%3D'%232f6b2c'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%2F%3E%3Cpath%20d%3D'M15%207C8.4%204.6%202%207.8%202%2015.4%202%2021.6%207.6%2025%2015%2025s13-3.4%2013-9.6C28%207.8%2021.6%204.6%2015%207Z'%20fill%3D'%23ff8a1f'%20stroke%3D'%235a2a08'%20stroke-width%3D'1.8'%20stroke-linejoin%3D'round'%2F%3E%3Cpath%20d%3D'M9.6%208.2c-2.8%204.2-2.8%2012.6%200%2016.6M20.4%208.2c2.8%204.2%202.8%2012.6%200%2016.6'%20fill%3D'none'%20stroke%3D'%235a2a08'%20stroke-opacity%3D'.4'%20stroke-width%3D'1.1'%2F%3E%3Cg%20fill%3D'%23ffd23f'%3E%3Cpath%20d%3D'M7.6%2015l2.8-3.8%202.6%203.8ZM17%2015l2.6-3.8%202.8%203.8Z'%2F%3E%3Cpath%20d%3D'M7.2%2018.2c4.6%204.6%2011%204.6%2015.6%200l-1.8.4-1.4%201.6-1.6-1.4-1.6%201.6-1.6-1.4-1.6%201.6-1.4-1.6-1.8-1.6-1.6%201.4-1.4-1.6Z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");animation:none}
:is(#menu,.case-room,.odds-dlg,#profile,#player,.rew-pop) .pava[data-frame="xmas"]::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'-50%20-50%20100%20100'%3E%3Cg%20transform%3D'translate(41%200)%20scale(1.15)'%3E%3Cpath%20d%3D'M0%200L0%20-5.4M0%20-2.6L-1.5%20-3.9M0%20-2.6L1.5%20-3.9M0%20-4L-0.9%20-4.9M0%20-4L0.9%20-4.9M0%200L4.68%20-2.7M2.25%20-1.3L2.63%20-3.25M2.25%20-1.3L4.13%20-0.65M3.46%20-2L3.79%20-3.23M3.46%20-2L4.69%20-1.67M0%200L4.68%202.7M2.25%201.3L4.13%200.65M2.25%201.3L2.63%203.25M3.46%202L4.69%201.67M3.46%202L3.79%203.23M0%200L0%205.4M0%202.6L1.5%203.9M0%202.6L-1.5%203.9M0%204L0.9%204.9M0%204L-0.9%204.9M0%200L-4.68%202.7M-2.25%201.3L-2.63%203.25M-2.25%201.3L-4.13%200.65M-3.46%202L-3.79%203.23M-3.46%202L-4.69%201.67M0%200L-4.68%20-2.7M-2.25%20-1.3L-4.13%20-0.65M-2.25%20-1.3L-2.63%20-3.25M-3.46%20-2L-4.69%20-1.67M-3.46%20-2L-3.79%20-3.23'%20stroke%3D'%23fff'%20stroke-width%3D'1.25'%20stroke-linecap%3D'round'%20fill%3D'none'%3E%3C%2Fpath%3E%3C%2Fg%3E%3Cg%20transform%3D'translate(12.67%2038.99)%20scale(0.95)'%3E%3Cpath%20d%3D'M0%200L0%20-5.4M0%20-2.6L-1.5%20-3.9M0%20-2.6L1.5%20-3.9M0%20-4L-0.9%20-4.9M0%20-4L0.9%20-4.9M0%200L4.68%20-2.7M2.25%20-1.3L2.63%20-3.25M2.25%20-1.3L4.13%20-0.65M3.46%20-2L3.79%20-3.23M3.46%20-2L4.69%20-1.67M0%200L4.68%202.7M2.25%201.3L4.13%200.65M2.25%201.3L2.63%203.25M3.46%202L4.69%201.67M3.46%202L3.79%203.23M0%200L0%205.4M0%202.6L1.5%203.9M0%202.6L-1.5%203.9M0%204L0.9%204.9M0%204L-0.9%204.9M0%200L-4.68%202.7M-2.25%201.3L-2.63%203.25M-2.25%201.3L-4.13%200.65M-3.46%202L-3.79%203.23M-3.46%202L-4.69%201.67M0%200L-4.68%20-2.7M-2.25%20-1.3L-4.13%20-0.65M-2.25%20-1.3L-2.63%20-3.25M-3.46%20-2L-4.69%20-1.67M-3.46%20-2L-3.79%20-3.23'%20stroke%3D'%23fff'%20stroke-width%3D'1.25'%20stroke-linecap%3D'round'%20fill%3D'none'%3E%3C%2Fpath%3E%3C%2Fg%3E%3Cg%20transform%3D'translate(-33.17%2024.1)%20scale(1.15)'%3E%3Cpath%20d%3D'M0%200L0%20-5.4M0%20-2.6L-1.5%20-3.9M0%20-2.6L1.5%20-3.9M0%20-4L-0.9%20-4.9M0%20-4L0.9%20-4.9M0%200L4.68%20-2.7M2.25%20-1.3L2.63%20-3.25M2.25%20-1.3L4.13%20-0.65M3.46%20-2L3.79%20-3.23M3.46%20-2L4.69%20-1.67M0%200L4.68%202.7M2.25%201.3L4.13%200.65M2.25%201.3L2.63%203.25M3.46%202L4.69%201.67M3.46%202L3.79%203.23M0%200L0%205.4M0%202.6L1.5%203.9M0%202.6L-1.5%203.9M0%204L0.9%204.9M0%204L-0.9%204.9M0%200L-4.68%202.7M-2.25%201.3L-2.63%203.25M-2.25%201.3L-4.13%200.65M-3.46%202L-3.79%203.23M-3.46%202L-4.69%201.67M0%200L-4.68%20-2.7M-2.25%20-1.3L-4.13%20-0.65M-2.25%20-1.3L-2.63%20-3.25M-3.46%20-2L-4.69%20-1.67M-3.46%20-2L-3.79%20-3.23'%20stroke%3D'%23fff'%20stroke-width%3D'1.25'%20stroke-linecap%3D'round'%20fill%3D'none'%3E%3C%2Fpath%3E%3C%2Fg%3E%3Cg%20transform%3D'translate(-33.17%20-24.1)%20scale(0.95)'%3E%3Cpath%20d%3D'M0%200L0%20-5.4M0%20-2.6L-1.5%20-3.9M0%20-2.6L1.5%20-3.9M0%20-4L-0.9%20-4.9M0%20-4L0.9%20-4.9M0%200L4.68%20-2.7M2.25%20-1.3L2.63%20-3.25M2.25%20-1.3L4.13%20-0.65M3.46%20-2L3.79%20-3.23M3.46%20-2L4.69%20-1.67M0%200L4.68%202.7M2.25%201.3L4.13%200.65M2.25%201.3L2.63%203.25M3.46%202L4.69%201.67M3.46%202L3.79%203.23M0%200L0%205.4M0%202.6L1.5%203.9M0%202.6L-1.5%203.9M0%204L0.9%204.9M0%204L-0.9%204.9M0%200L-4.68%202.7M-2.25%201.3L-2.63%203.25M-2.25%201.3L-4.13%200.65M-3.46%202L-3.79%203.23M-3.46%202L-4.69%201.67M0%200L-4.68%20-2.7M-2.25%20-1.3L-4.13%20-0.65M-2.25%20-1.3L-2.63%20-3.25M-3.46%20-2L-4.69%20-1.67M-3.46%20-2L-3.79%20-3.23'%20stroke%3D'%23fff'%20stroke-width%3D'1.25'%20stroke-linecap%3D'round'%20fill%3D'none'%3E%3C%2Fpath%3E%3C%2Fg%3E%3Cg%20transform%3D'translate(12.67%20-38.99)%20scale(1.15)'%3E%3Cpath%20d%3D'M0%200L0%20-5.4M0%20-2.6L-1.5%20-3.9M0%20-2.6L1.5%20-3.9M0%20-4L-0.9%20-4.9M0%20-4L0.9%20-4.9M0%200L4.68%20-2.7M2.25%20-1.3L2.63%20-3.25M2.25%20-1.3L4.13%20-0.65M3.46%20-2L3.79%20-3.23M3.46%20-2L4.69%20-1.67M0%200L4.68%202.7M2.25%201.3L4.13%200.65M2.25%201.3L2.63%203.25M3.46%202L4.69%201.67M3.46%202L3.79%203.23M0%200L0%205.4M0%202.6L1.5%203.9M0%202.6L-1.5%203.9M0%204L0.9%204.9M0%204L-0.9%204.9M0%200L-4.68%202.7M-2.25%201.3L-2.63%203.25M-2.25%201.3L-4.13%200.65M-3.46%202L-3.79%203.23M-3.46%202L-4.69%201.67M0%200L-4.68%20-2.7M-2.25%20-1.3L-4.13%20-0.65M-2.25%20-1.3L-2.63%20-3.25M-3.46%20-2L-4.69%20-1.67M-3.46%20-2L-3.79%20-3.23'%20stroke%3D'%23fff'%20stroke-width%3D'1.25'%20stroke-linecap%3D'round'%20fill%3D'none'%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E")}
/* Parts of a long page below the window are laid out and drawn only as they come near it (content-visibility):
   the pass's open chapters, its ways to XP, the inventory's tiles, the odds window's rarities. Stepping to the
   pass laid out its twenty cards at once, a sixth of a second on a phone before the page could move. */
.pch-cards{content-visibility:auto;contain-intrinsic-size:auto 330px}
@container chs (min-width:820px){.pch-cards{contain-intrinsic-size:auto 140px}}
.ps-ways{content-visibility:auto;contain-intrinsic-size:auto 420px}
#m-inv .sh-grid>.sh-item{content-visibility:auto;contain-intrinsic-size:auto 250px}
.odds-dlg .ct-group{content-visibility:auto;contain-intrinsic-size:auto 220px}

/* Opening a pack, its third take: nothing on the page's own thread while the reel runs (openCase/runReel), and a
   find that lands. The pack breathes in its light while the server answers, flies at you as the track comes up
   out of it; the track darkens round the outline in the last two seconds and the outline knocks as each card
   passes; the find bursts out behind its card in its rarity's colour, which fills the room; its words come in
   one after another. Only transforms and opacity move. */
/* the reveal waits, faint and still, for its moment: nothing in it moves, its back is the still copy */
.cr-reveal.pre *,.cr-reveal.pre *::before,.cr-reveal.pre *::after{animation-play-state:paused!important}
.cr-reveal.pre .bk{background-image:var(--bkq,var(--bk))}
.cr-box:not(.tear) .db-glow{animation:glowBreath 1.6s ease-in-out .45s infinite}
@keyframes glowBreath{0%,100%{opacity:.12;scale:.9}50%{opacity:.5;scale:1.04}}
.cr-box.gone{transition:scale .42s cubic-bezier(.32,0,.67,0),opacity .3s ease .08s;translate:-50% -50%;scale:1.55;opacity:0}
.cr-track{scale:.94;transition:opacity .35s ease,scale .6s var(--ease-out)}
.cr-track.on{scale:1}
.cr-focus{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0;border-radius:inherit;
  background:radial-gradient(ellipse calc(var(--cw,130px) * 1.05) calc(var(--ch,190px) * .82) at 50% calc(50% - 6px),transparent 72%,rgba(6,7,10,.6))}
.cr-burst{position:absolute;left:50%;top:50%;width:calc(var(--cw,130px) * 2.6);aspect-ratio:1;translate:-50% calc(-50% - 6px);pointer-events:none;opacity:0;border-radius:50%;
  background:radial-gradient(closest-side,color-mix(in srgb,var(--rc,#ff8a1f) 80%,#fff),color-mix(in srgb,var(--rc,#ff8a1f) 45%,transparent) 42%,transparent 72%)}
.cr-track.won .cr-burst{animation:crBurst .8s var(--ease-out)}
.cr-track.won .cr-burst:is([data-rar="1"],[data-rar="2"]){animation-name:crBurstSoft}
@keyframes crBurst{0%{opacity:0;scale:.35}16%{opacity:1}100%{opacity:0;scale:1.5}}
@keyframes crBurstSoft{0%{opacity:0;scale:.35}16%{opacity:.55}100%{opacity:0;scale:1.3}}
.cr-aura{position:fixed;inset:0;pointer-events:none;opacity:0;transition:opacity .7s ease;
  background:radial-gradient(62% 56% at 50% 50%,color-mix(in srgb,var(--rc,#ff8a1f) 34%,transparent),transparent 72%)}
.case-room.found .cr-aura{opacity:1}
.case-room.found:is([data-rar="1"],[data-rar="2"]) .cr-aura{opacity:.45}
.cr-reveal>.crv-info{transition:none}
.cr-reveal.on .crv-info>*{animation:crvUp .46s var(--ease-out) .26s both}
.cr-reveal.on .crv-info>:nth-child(2){animation-delay:.31s}
.cr-reveal.on .crv-info>:nth-child(3){animation-delay:.36s}
.cr-reveal.on .crv-info>:nth-child(4){animation-delay:.41s}
.cr-reveal.on .crv-info>:nth-child(5){animation-delay:.47s}
@keyframes crvUp{from{opacity:0;translate:0 10px}}
.cr-reveal.on:is([data-rar="4"],[data-rar="5"]) .crv-rays{animation:rayTurn2 26s linear infinite,raysIn .9s var(--ease-out)}
@keyframes raysIn{from{opacity:0;scale:.35}}
@media (prefers-reduced-motion:reduce){
  .cr-burst,.cr-focus{display:none}
  .cr-reveal.on .crv-info>*{animation:none}
  .cr-box.gone{transition:opacity .2s;scale:1}
  .cr-track{scale:1}
}
/* Under the menu the table is out of sight, and nothing on it moves: the bats of a Halloween frame on your seat,
   bobbing unseen under the menu, kept the page's own thread working on every frame, and with it the style of
   everything that moves in the menu and in a pack's window (the reel at thirty frames a second on a phone). Not what
   opens over the menu, though (every .overlay window: a player's profile, your own, the rules, the password; the
   review, the toasts, an invitation, a nudge): paused, their entrance animation held them at its first frame, unseen
   (a profile clicked from the ladder or the friends opened as nothing but a blur). */
#table.table.menu-up>:not(#menu,#queue,.overlay,#review,#toast,#invite,#nudge,#end),
#table.table.menu-up>:not(#menu,#queue,.overlay,#review,#toast,#invite,#nudge,#end) *,
#table.table.menu-up>:not(#menu,#queue,.overlay,#review,#toast,#invite,#nudge,#end)::before,
#table.table.menu-up>:not(#menu,#queue,.overlay,#review,#toast,#invite,#nudge,#end)::after,
#table.table.menu-up>:not(#menu,#queue,.overlay,#review,#toast,#invite,#nudge,#end) *::before,
#table.table.menu-up>:not(#menu,#queue,.overlay,#review,#toast,#invite,#nudge,#end) *::after{animation-play-state:paused!important}
/* while a page scrolls, or the menu slides to another page, the card backs in it hold still (the scroll listener
   by liveIO in app.js, data-mslide in menuStep) */
:root.scrolling .bk,:root[data-mslide] #menu .bk{background-image:var(--bkq,var(--bk))!important}
:root.scrolling .pv-back i,:root[data-mslide] #menu .pv-back i{background-image:var(--bkq,var(--bk,var(--bk-classic)))!important}
/* Every panel that scrolls is moved by the graphics card. On a screen at 100 % Chrome otherwise scrolls a panel
   like these by drawing it again on every frame, to keep its text's subpixel smoothing: the pass scrolled at 45
   frames a second with the graphics chip busy four fifths of the time, now at 60 with it busy a twentieth. */
.menu-sheet,.endcard .sheet,.prof-body,.pw-sheet,.hist,.rules,.rv-body,.rv-list,.chat-list,.guest-card,.tr-grid,.odds-dlg .od-sheet{will-change:scroll-position}
/* The inventory, the showcases and a trade's backs hold still (the user's call): a back there moves while the pointer
   is over its tile, after a tap on it (until the next tap, .play by app.js) or while a button in it has the focus.
   Its rarity's life waits with it: the ring and the rays stand, the glint and the gloss stay off the card. */
:is(#m-inv,.show-row,.tr-grid) .bk.bk-on{background-image:var(--bkq,var(--bk))}
:is(#m-inv,.show-row,.tr-grid) .pv-back.bk-on i{background-image:var(--bkq,var(--bk,var(--bk-classic)))}
:is(#m-inv .sh-item,.show-row .mt,.tr-grid .mt):is(.play,:focus-within) .bk.bk-on{background-image:var(--bk)}
:is(#m-inv .sh-item,.show-row .mt,.tr-grid .mt):is(.play,:focus-within) .pv-back.bk-on i{background-image:var(--bk,var(--bk-classic))}
@media (hover:hover){
  :is(#m-inv .sh-item,.show-row .mt,.tr-grid .mt):hover .bk.bk-on{background-image:var(--bk)}
  :is(#m-inv .sh-item,.show-row .mt,.tr-grid .mt):hover .pv-back.bk-on i{background-image:var(--bk,var(--bk-classic))}
  :is(#m-inv .sh-item,.show-row .mt,.tr-grid .mt):not(.play):not(:focus-within):not(:hover) :is(.rx-edge,.rx-rays)::before,:is(#m-inv .sh-item,.show-row .mt,.tr-grid .mt):not(.play):not(:focus-within):not(:hover) .sh-fx i{animation-play-state:paused}
  :is(#m-inv .sh-item,.show-row .mt,.tr-grid .mt):not(.play):not(:focus-within):not(:hover) .rx-glint::after,:is(#m-inv .sh-item,.show-row .mt,.tr-grid .mt):not(.play):not(:focus-within):not(:hover) .bk[data-b]::after{animation-name:none}
}
@media (hover:none){
  :is(#m-inv .sh-item,.show-row .mt,.tr-grid .mt):not(.play):not(:focus-within) :is(.rx-edge,.rx-rays)::before,:is(#m-inv .sh-item,.show-row .mt,.tr-grid .mt):not(.play):not(:focus-within) .sh-fx i{animation-play-state:paused}
  :is(#m-inv .sh-item,.show-row .mt,.tr-grid .mt):not(.play):not(:focus-within) .rx-glint::after,:is(#m-inv .sh-item,.show-row .mt,.tr-grid .mt):not(.play):not(:focus-within) .bk[data-b]::after{animation-name:none}
}
/* Under the pointer a tile's edge lights up, its preview rises a little and the cards spread, but the tile itself
   does not lift or tilt and the preview does not grow: moved, a tile with an epic or legendary item's turning rays
   in it was drawn through a layer of its own and its cards came out blurred (and grown, stretched from their
   picture) for as long as the pointer stayed. */
@media (hover:hover){.sh-item:is(.r1,.r2,.r3,.r4,.r5,.feat):hover,.sh-item:hover{transform:none}.sh-item:hover .pv{transform:translateY(-3px)}}
/* The play of the game (Akce zápasu), as a broadcast of the moment: its row on the end card (the microphone on air),
   and while it plays the stage cuts off the table the camera moves (playPotg, camTo in app.js) and carries the
   commentator's caption: a sticker with an on-air badge, the round, a way to the results, and the commentary, its
   latest line only, in one size and the ink colour (read in a glance while the cards move), every name marked in its
   player's colour underneath (the seat colours are too light for letters), the review's verdict with its grade
   badge. The caption lies on the table and slides about it to a place clear of what the line is about (capBest). */
.stage.cam{overflow:hidden}
.potg-cap{position:absolute;left:0;top:0;z-index:1060;width:min(520px,calc(100% - 20px));box-sizing:border-box;
  padding:12px 16px 14px;border-radius:22px;background:var(--surface);border:var(--o) solid var(--stroke);box-shadow:0 5px 0 var(--stroke);color:var(--ink);
  transition:translate .85s var(--ease-out)}
.potg-cap[hidden]{display:none}
.potg-cap.in{animation:pcRise .5s var(--ease-out) both}
@keyframes pcRise{from{opacity:0;scale:.96}}
.pc-h{display:flex;align-items:center;gap:9px;min-width:0}
.pc-h>b{font-size:14.5px;font-weight:900;white-space:nowrap}
.pc-air{position:relative;display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:#e5484d;color:#fff;box-shadow:0 2px 0 var(--stroke)}
.pc-air .i{width:16px;height:16px;stroke-width:2.2;color:#fff}
.pc-round{padding:3px 10px;border-radius:999px;background:var(--surface-2);color:var(--muted);font-size:12.5px;font-weight:800;white-space:nowrap}
/* share (and for a shared one, again): small round buttons before the way out */
.pc-share,.pc-again{margin-left:auto;display:inline-grid;place-items:center;width:30px;height:30px;padding:0;border-radius:999px}
.pc-again{margin-left:0}
.pc-share .i,.pc-again .i{width:15px;height:15px;color:inherit}
.pc-share~.pc-skip{margin-left:0}
/* a shared play of the game opens on a card: who, what, the way to start it */
.potg-open .cta{order:5;display:inline-flex;align-items:center;gap:8px;margin-top:6px;padding:12px 22px;font-size:16px}
.potg-open .cta .i{width:18px;height:18px}
.pc-skip{margin-left:auto;display:inline-flex;align-items:center;gap:2px;padding:6px 8px 6px 12px;font-size:12.5px;white-space:nowrap}
.pc-skip .i{width:14px;height:14px;color:inherit}
.potg-cap .pc-skip.cta{padding:6px 8px 6px 12px;font-size:12.5px;min-height:0}
.pc-lines{display:grid;gap:5px;margin-top:10px}
.pc-lines p{margin:0;font-size:17px;font-weight:700;line-height:1.42;letter-spacing:-.005em;text-wrap:pretty;animation:pcIn .26s var(--ease-out) both}
.pc-lines p.verdict{display:flex;align-items:flex-start;gap:10px;font-weight:800}
.pc-lines p.verdict .gb{width:24px;height:24px;font-size:12px;margin-top:1px;box-shadow:0 2px 0 var(--stroke)}
.pc-lines p.punch{font-weight:800}
.pc-who{font-weight:900;color:inherit;padding:0 .08em;margin:0 -.08em;border-radius:.2em;
  background:linear-gradient(transparent 58%,color-mix(in srgb,var(--pc) 42%,transparent) 58%)}
@keyframes pcIn{from{opacity:0;translate:0 5px}}
/* the play of the game's choice (potgShow in app.js): in the hero's hand, face up, the card played and the direct one
   over their neighbours, ringed: green the one played, red the direct one (the ring sized by the card, which a hand
   shows small) */
.card.pk-good .face.front{box-shadow:0 0 0 calc(var(--cw,70px)*.07) var(--g-best),0 4px 0 var(--stroke)!important}
.card.pk-bad .face.front{box-shadow:0 0 0 calc(var(--cw,70px)*.07) var(--danger),0 4px 0 var(--stroke)!important}
/* the plays of the game in a profile: the review's badges */
.potg-sec .fun-ic .gb{width:24px;height:24px;font-size:12px}
/* the review's badge on the card the play of the game is about (potgMark in app.js): on its upper right corner */
.potg-mark{position:absolute;left:0;top:0;z-index:960;translate:-50% -50%;pointer-events:none}
.potg-mark[hidden]{display:none}
.potg-mark .gb{width:34px;height:34px;font-size:16px;box-shadow:0 0 0 3px var(--stroke),0 3px 0 3px var(--stroke)!important}
.potg-mark .gb .i{width:19px;height:19px}
@media (max-width:560px){
  .potg-cap{padding:10px 12px 12px;border-radius:18px}
  .pc-h{gap:7px}.pc-h>b{font-size:13.5px}.pc-air{width:24px;height:24px}.pc-air .i{width:14px;height:14px}
  .pc-lines{margin-top:8px}
  .pc-lines p{font-size:15.5px}.pc-lines p.verdict .gb{width:22px;height:22px}
}
@media (prefers-reduced-motion:reduce){.potg-cap.in,.pc-lines p{animation:none}.potg-cap{transition:none}}

/* At the table, nothing fades that the graphics card cannot fade by itself. A seat's ring and shadow, a slot's
   edge, the status line's and a tag's colours changed over a quarter of a second at every turn, and the count of
   cards flashed red for most of a second at every pot: colours and shadows, which the page has to draw frame by
   frame itself, and on each such frame it also works out the style of every moving card again (measured on a phone:
   an eighth of the page's time in a game, and the frames it dropped). So the ring, the edge and the colours change
   at once (the table's look is stickers, not glows), and the count hops instead of flashing: a transform. */
.pod{transition:opacity .3s}
.slot{transition:transform var(--t),opacity .2s}
.status{transition:opacity .2s}
.tag{transition:none}
.pod .n{transform-origin:0 50%}
.pod .n.bump{animation:countBump .5s var(--ease-pop)}
@keyframes countBump{0%,100%{transform:scale(1)}40%{transform:scale(1.24)}}
@media (prefers-reduced-motion:reduce){.pod .n.bump{animation:none}}

/* ================= chess and go ================= */
/* The boards are things on the table, as the cards are: the same in the light and the dark room, with a thick dark
   edge and a solid shadow under them (board-ui.js draws them, app.js lays them out). A piece the friend moved slides
   to its square, slow, fast, slow again (--ease-move); one you drop is there at once; a stone lands with a small pop. */
.table.board :is(#round,#places,#tracker,.print){display:none!important}
/* nothing of the card table at a board or behind chess's and go's menu: a plain surface, no cards, no card mark */
.table.board{background:var(--surface)!important}
.table.board .card,.table.lobby.bd-wait .card{visibility:hidden!important}
/* sitting down at a table online: nothing of what lay there before shows until the table's first word (app.js joinRoom) */
.table.joining :is(.card,.top-ring,.vl-ring){visibility:hidden!important}
.table.lobby.bd-wait .top-ring{display:none}
.step.hub:is([data-game="chess"],[data-game="go"]) .menu-title::after{display:none}
.step.hub:is([data-game="chess"],[data-game="go"]) .menu-title .title-aces.bd-title{display:inline-block!important;position:relative;width:74px;height:56px;flex:none}
.bd{position:absolute;left:0;top:0;z-index:300;box-sizing:border-box;border:5px solid #141518;border-radius:16px;box-shadow:0 6px 0 #141518;
  touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;outline:0}
.bd[hidden]{display:none}
.bd:focus-visible{box-shadow:0 6px 0 #141518,0 0 0 4px var(--c-blue)}
/* chess: cream and green squares, the letters of the files and the numbers of the ranks in their corners */
.bd-chess{--lt:#f4f0e3;--dk:#78b68a;background:var(--lt)}
.bd-hl,.bd-dots{position:absolute;inset:0;width:100%;height:100%;display:block}
.bd-hl{border-radius:11px;overflow:hidden}
.bd-hl .lt{fill:var(--lt)}.bd-hl .dk{fill:var(--dk)}
.bd-hl .last{fill:rgba(255,201,60,.5)}
.bd-hl .sel{fill:rgba(255,201,60,.85)}
.bd-hl .check{fill:#e5484d;fill-opacity:.85}
.bd-hl .co text{font:800 19px var(--font-ui)}
.bd-hl .co .on-lt{fill:var(--dk)}.bd-hl .co .on-dk{fill:var(--lt)}
.bd-pcs{position:absolute;inset:0}
.bd .bpc{position:absolute;left:0;top:0;width:12.5%;height:12.5%;z-index:1}
.bd .bpc .pcs{display:block;width:100%;height:100%;transition:transform .16s var(--ease-out),opacity .2s var(--ease-out)}
.bd .bpc.mv{transition:transform .3s var(--ease-move);z-index:2}
.bd .bpc.drag{z-index:4;cursor:grabbing}
.bd .bpc.drag .pcs{transform:scale(1.14) translateY(-6%)}
.bd .bpc.gone .pcs{transform:scale(.72);opacity:0}
.bd-dots{z-index:3;pointer-events:none}
.bd-dots .dot{fill:rgba(20,21,24,.3)}
.bd-dots .take{fill:none;stroke:rgba(20,21,24,.3);stroke-width:9}
.bd-dots .over{fill:none;stroke:#fff;stroke-width:7}
.bd-dots .cur{fill:none;stroke:var(--c-blue);stroke-width:7}
/* the pieces (board-ui.js's drawings): white with a black edge, or near black with light lines */
.pcs{--pe:#141518;overflow:visible}
.pcs.w{--pf:#ffffff;--pl:#141518}
.pcs.b{--pf:#2c2f36;--pl:#eceef1}
/* a pawn on the last rank: what it becomes, in a strip over the file */
.bd-promo{position:absolute;width:12.5%;height:50%;z-index:6;display:flex;flex-direction:column;background:#fff;border:3px solid #141518;border-radius:12px;
  box-shadow:0 4px 0 #141518;overflow:hidden;transform-origin:50% 0;animation:bdPop .18s var(--ease-out)}
.bd-promo.up{flex-direction:column-reverse;transform-origin:50% 100%}
.bd-promo[hidden]{display:none}
.bd-promo button{flex:1;min-height:0;display:grid;place-items:center;padding:8%;border:0;background:#fff;cursor:pointer}
.bd-promo button .pcs{width:100%;height:100%;transition:transform .16s var(--ease-out)}
.bd-promo button:active .pcs{transform:scale(.92)}
@media (hover:hover) and (pointer:fine){.bd-promo button:hover{background:#eef0f2}}
@keyframes bdPop{from{opacity:0;transform:scale(.94)}}
/* go: a wooden board, black lines, the stones as stickers; while counting, a small square shows whose each point is */
.bd-go{background:#ecc274;border-radius:14px}
.bd-go svg{display:block;width:100%;height:100%;overflow:visible}
.bd-go .grid{fill:none;stroke:#141518;stroke-width:1.15;stroke-opacity:.85;vector-effect:non-scaling-stroke}
.bd-go .edge{fill:none;stroke:#141518;stroke-width:2;vector-effect:non-scaling-stroke}
.bd-go .star{fill:#141518}
.bd-go .co text{font:800 32px var(--font-ui);fill:rgba(20,21,24,.55);text-anchor:middle;dominant-baseline:central}
.bd-go[data-n="13"] .co text{font-size:38px}.bd-go[data-n="19"] .co text{font-size:44px}
.table.narrow .bd-go[data-n="19"] .co{display:none}
.bd-go .st .sh{fill:#141518;fill-opacity:.28}
.bd-go .st .bo{stroke:#141518;stroke-width:4}
.bd-go .st.b .bo{fill:#2a2d33}.bd-go .st.w .bo{fill:#fff}
.bd-go .st .gl{fill:none;stroke:rgba(255,255,255,.5);stroke-width:7;stroke-linecap:round}
.bd-go .st .sb{transform-box:fill-box;transform-origin:center;transition:transform .22s var(--ease-out),opacity .22s var(--ease-out)}
.bd-go .st.in .sb{animation:stIn .22s var(--ease-pop) both}
@keyframes stIn{from{transform:scale(.78);opacity:0}}
.bd-go .st.gone .sb{transform:scale(.7);opacity:0}
.bd-go .st.dead .sb{opacity:.36}
.bd-go .st.gh{opacity:.42;pointer-events:none}
.bd-go .tm{stroke:#141518;stroke-width:4}
.bd-go .tm.b{fill:#2a2d33}.bd-go .tm.w{fill:#fff}
.bd-go .lastm{fill:none;stroke-width:7}
.bd-go .lastm.on-b{stroke:#fff}.bd-go .lastm.on-w{stroke:#141518}
.bd-go .cur{fill:none;stroke:var(--c-blue);stroke-width:7}
.gst{overflow:visible}
.gst .sh{fill:#141518;fill-opacity:.28}
.gst .bo{stroke:#141518;stroke-width:.11}
.gst.b .bo{fill:#2a2d33}.gst.w .bo{fill:#fff}
.gst .gl{fill:none;stroke:rgba(255,255,255,.5);stroke-width:.16;stroke-linecap:round}
/* each player's clock beside their seat: a sticker; the one running dark, the last twenty seconds red */
.bd-clock{position:absolute;left:0;top:0;z-index:700;min-width:84px;padding:6px 14px;border-radius:12px;box-sizing:border-box;
  background:var(--surface);color:var(--ink);border:var(--o) solid var(--stroke);box-shadow:0 3px 0 var(--stroke);
  font:800 21px/1.15 var(--font-ui);font-variant-numeric:tabular-nums;text-align:center;white-space:nowrap}
.bd-clock[hidden]{display:none}
.bd-clock[data-a="l"]{transform:translate(0,-50%)}.bd-clock[data-a="r"]{transform:translate(-100%,-50%)}
.bd-clock.run{background:var(--ink);color:var(--on-ink)}
.bd-clock.low{background:var(--danger);color:#fff}
/* what you may do besides moving */
.bd-ctl{position:absolute;left:0;top:0;z-index:710;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.bd-ctl[hidden]{display:none}
.bd-ctl[data-a="l"]{transform:translate(0,-50%)}
.bd-ctl[data-a="c"]{transform:translate(-50%,-50%);justify-content:center}
.bd-ctl button{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border-radius:12px;font-size:14px;font-weight:800;white-space:nowrap}
.bd-ctl button .i{width:18px;height:18px}
.bd-ctl .bd-resign.arm{background:var(--danger)!important;color:#fff!important}
.bd-ctl .bd-ask{flex-basis:100%;font-size:14px;font-weight:800;color:var(--ink)}
.bd-ctl[data-a="c"] .bd-ask{text-align:center}
/* the moves written down: a well between the two seats */
.bd-moves{position:absolute;left:0;top:0;z-index:600;box-sizing:border-box;overflow:auto;padding:10px 14px;border-radius:16px;background:var(--surface-2);
  color:var(--ink);font:700 14px/1.55 var(--font-ui);scrollbar-width:thin;scrollbar-color:var(--faint) transparent}
.bd-moves[hidden]{display:none}
.bd-moves ol{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:auto 1fr 1fr;column-gap:12px}
.bd-moves li{display:contents}
.bd-moves i{font-style:normal;color:var(--muted);font-variant-numeric:tabular-nums}
.bd-moves button{justify-self:start;margin:0 0 0 -6px;padding:0 6px;border:0;border-radius:7px;background:none;color:inherit;font:inherit;cursor:pointer}
.bd-moves button.on{background:var(--ink);color:var(--on-ink)}
@media (hover:hover) and (pointer:fine){.bd-moves button:not(.on):hover{background:var(--surface-3)}}
/* the bar through the moves: to the start, back, how far, on, to the game as it stands */
.bd-nav{position:absolute;left:0;top:0;z-index:705;box-sizing:border-box;display:flex;align-items:center;gap:6px}
.bd-nav[hidden]{display:none}
.bd-nav[data-a="l"]{transform:translate(0,-50%)}
.bd-nav[data-a="c"]{transform:translate(-50%,-50%)}
.bd-nav button{display:grid;place-items:center;width:44px;height:38px;padding:0;border-radius:11px}
.bd-nav button .i{width:20px;height:20px}
.bd-nav button:disabled{opacity:.4;pointer-events:none}
.bd-nav .bd-k{flex:1;min-width:64px;padding:0 6px;text-align:center;font:800 15px/1 var(--font-ui);font-variant-numeric:tabular-nums;color:var(--muted)}
.bd-nav .bd-k.past{color:var(--ink)}
/* a seat's line: the pieces taken and the lead, or the prisoners */
.pod .n .bd-took{display:inline-flex;align-items:center;padding-left:2px}
.pod .n .pcs.bd-cap{width:15px;height:15px;margin-left:-4px;flex:none}
.pod .n .bd-lead{margin-left:6px;font-weight:800;color:var(--ink)}
.pod .n .gst.pod-st{width:12px;height:13px;vertical-align:-2px;margin-right:5px}
/* off the board (a seat, the menu) a black piece or stone gets its rim in the ink colour: on the dark room's
   surfaces a black edge would vanish */
:is(.pod,.gt-art,.bd-title) .pcs.b{--pe:var(--ink)}
:is(.pod,.gt-art,.bd-title) .gst.b .bo{stroke:var(--ink)}
/* the menu: the games' pictures, the clock and the board to choose */
.gt-art>.bd-art{position:absolute;left:0;top:0;width:100%;height:100%;transform:none}
.bd-art .pcs{position:absolute;width:46px;height:46px}
.bd-art.chess .a1{left:3px;top:7px;transform:rotate(-9deg)}
.bd-art.chess .a2{left:25px;top:3px;transform:rotate(6deg)}
.bd-art.go::before{content:'';position:absolute;left:4px;right:4px;top:6px;bottom:2px;border:2px solid #141518;border-radius:9px;box-shadow:0 2px 0 #141518;
  background:repeating-linear-gradient(0deg,transparent 0 11px,rgba(20,21,24,.55) 11px 12px),repeating-linear-gradient(90deg,transparent 0 11px,rgba(20,21,24,.55) 11px 12px),#ecc274}
.bd-art.go .gst{position:absolute;width:26px;height:28px}
.bd-art.go .a1{left:10px;top:18px}.bd-art.go .a2{left:27px;top:9px}.bd-art.go .a3{left:36px;top:25px}
/* (no computer to play and no other modes at chess and go: they are played with a friend) */
.step.hub:is([data-game="chess"],[data-game="go"]) :is(#btn-bots,.more-row){display:none!important}
.bd-setup{display:grid;gap:14px;margin:6px 0 4px}
#menu .step.hub #bd-setup{order:9}
.bd-setup[hidden]{display:none}
.bd-set-row{display:grid;gap:7px}
.bd-set-row .seg button{padding:10px 6px;font-size:14px}
.bd-setup .cta.big,.bd-setup .ghost.big{width:100%;display:flex;align-items:center;justify-content:center;gap:9px}
.bd-note{margin:0;font-size:13.5px;line-height:1.45;color:var(--muted)}
.pmodes:has(>:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
@media (prefers-reduced-motion:reduce){
  .bd .bpc.mv{transition:none}.bd .bpc .pcs,.bd-go .st .sb{transition:none}
  .bd-go .st.in .sb,.bd-promo{animation:none}
}

/* ================= Dudák ================= */
/* a revealed trump on its player's seat: the suit on a little white card disc; your own trump card, while it waits
   above your hand, ringed in gold so you know which it is; the kočár rolling to whoever takes the whole pile */
.pod .n .k-ts{display:inline-flex;margin-left:6px;vertical-align:-4px}
.pod .n .k-ts .ps{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 0 0 1.5px var(--card-edge)}
.pod .n .k-ts .ps svg{width:12px;height:12px}
.card.k-trump .face{box-shadow:0 0 0 3px var(--c-gold),0 3px 0 var(--card-edge)}
/* on your move the cards a tap on the pile would take: lifted a little and outlined (red for a kočár) */
.table.dudak .card.k-take{cursor:pointer}
.table.dudak .card.k-take .face{box-shadow:0 0 0 3px var(--c-orange),0 3px 0 var(--card-edge)}
.table.dudak .card.k-kocar .face{box-shadow:0 0 0 3px var(--danger),0 3px 0 var(--card-edge)}
@media (hover:hover) and (pointer:fine){.table.dudak .card.k-take:hover .lift{transform:translateY(-6px)}}
.table.dudak .card.k-take .lift{transition:transform .16s var(--ease-out)}
.k-btns button .i{width:16px;height:16px}
.k-coach{position:absolute;left:0;top:0;z-index:940;pointer-events:none}
.k-coach svg{display:block;width:100%;height:auto;overflow:visible}
.k-coach .w{transform-box:fill-box;transform-origin:center;animation:kWheel .45s linear infinite}
@keyframes kWheel{to{transform:rotate(360deg)}}
.k-trumps{display:grid;gap:7px;margin:0 0 4px}
.k-trumps .seg button{padding:10px 6px;font-size:14px}
@media (prefers-reduced-motion:reduce){.k-coach .w{animation:none}}

/* the middle of the pot on the ladder of ranks (a hint against the computer, app.js syncMidMark): a blue frame round a
   rank, or a blue bar between two, with "střed" under it */
.tracker{position:relative}
.tk-mid{position:absolute;z-index:2;pointer-events:none;border-radius:3px;background:var(--c-blue)}
.tk-mid.exact{background:none;border-radius:11px;box-shadow:inset 0 0 0 2.5px var(--c-blue)}
.tk-mid[hidden]{display:none}
.tk-mid b{position:absolute;left:50%;top:calc(100% + 3px);transform:translateX(-50%);padding:1px 7px;border-radius:999px;background:var(--c-blue);color:#fff;
  font:800 11px/1.35 var(--font-ui);white-space:nowrap}
