/* The arcade skin. Loaded last, on top of styles.css (layout) and pathmap.css.
   The look: a saturated blue-to-purple world, dark glossy panels with a thick
   near-black outline and a hard drop shadow, chunky outlined display type, and
   candy-coloured buttons with a highlight on top and a lip underneath.
   Delete the <link> to this file in index.html to get the plain skin back. */

@font-face {
  font-family: 'Lilita One';
  src: url('../assets/fonts/LilitaOne-latin.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: 'Lilita One';
  src: url('../assets/fonts/LilitaOne-latin-ext.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF;
}

:root {
  --bg: #2f3fc9;
  --card: #262e96;
  --ink: #ffffff;
  --dark: #171334; /* text on light or candy-coloured things */
  --muted: #b9c3ff;
  --line: rgba(255, 255, 255, 0.16);
  --edge: #0d0a2e; /* the outline around everything */
  --ember: #ffc61a;
  --ember-d: #c97a00;
  --teal: #3fe052;
  --gold: #ffc61a;
  --gold-d: #c97a00;
  --violet: #b98cff;
  --pink: #ff5fa8;
  --r: 20px;
  --display: 'Lilita One', 'Arial Rounded MT Bold', 'Segoe UI Black', system-ui, sans-serif;
  --panel: linear-gradient(180deg, #3441b8 0%, #242b8e 100%);
  --panel-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.2), 0 6px 0 var(--edge), 0 16px 26px rgba(8, 5, 40, 0.35);
  --outline-text: 0 2px 0 var(--edge), 0 -1px 0 var(--edge), 1px 0 0 var(--edge), -1px 0 0 var(--edge);
}

/* ---------- the world ---------- */
body {
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(120, 170, 255, 0.75), transparent 62%),
    radial-gradient(700px 500px at 0% 105%, rgba(255, 95, 168, 0.4), transparent 60%),
    linear-gradient(160deg, #2f55e6 0%, #4a2fce 52%, #6d22b4 100%);
  background-attachment: fixed;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 26px, transparent 26px 52px);
}
.shell { position: relative; z-index: 1; }
.content { scrollbar-color: rgba(255, 255, 255, 0.35) transparent; }

/* ---------- type ---------- */
h1, h2, h3, .btn, .tab, .brand, .stat b, .tag, .dot, .toast, .ring-text b, .tiles b, .pill, .ach-level, .ach-num,
.ward-state, .ward-tile b, .quest-title, .wk-count, .wk-label, .wk-title b, .wk-chip, .wk-xp, .wk-target, .wk-banner,
.wk-big, .wk-flash, .wk-cheer-bubble, .wk-help b, .wk-skip, .wk-end, .clock, .light, .cue, .boss-num, .wk-combo b,
.drop-count, .drop-hint, .drop-card b, .shop-gems, .road-next b, .season-row b, .seg button, .choice b, .cal, .unit-count {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 42px; letter-spacing: 0.03em; text-transform: uppercase; color: #fff; line-height: 1.05;
  -webkit-text-stroke: 7px var(--edge); paint-order: stroke fill; text-shadow: 0 5px 0 var(--edge);
}
h2 { font-size: 26px; text-shadow: var(--outline-text); letter-spacing: 0.02em; }
h3 { font-size: 20px; text-shadow: var(--outline-text); }
.muted, .fine { color: var(--muted); }
kbd { color: var(--dark); border: 2px solid var(--edge); }
.link { color: #ffd84a; font-family: var(--display); font-weight: 400; text-shadow: var(--outline-text); }
.link:hover { color: #fff; }

/* ---------- buttons: highlight on top, lip underneath, thick outline ---------- */
.btn {
  position: relative; color: #fff; text-shadow: var(--outline-text); font-size: 17px;
  background: linear-gradient(180deg, #5c8bff 0%, #2f55e6 100%);
  border: 3px solid var(--edge); border-bottom-width: 3px; border-radius: 15px; padding: 10px 20px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), inset 0 -5px 0 rgba(0, 0, 0, 0.22), 0 5px 0 var(--edge);
  transition: transform 0.06s, box-shadow 0.06s, filter 0.15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(4px); border-bottom-width: 3px; margin-bottom: 0; box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 1px 0 var(--edge); }
.btn.primary { background: linear-gradient(180deg, #ffe55c 0%, #ffab0f 100%); border-color: var(--edge); color: #fff; }
.btn.gold { background: linear-gradient(180deg, #86ff6e 0%, #1fb832 100%); border-color: var(--edge); color: #fff; }
.btn.danger { background: linear-gradient(180deg, #ff7a85 0%, #e0263a 100%); border-color: var(--edge); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); text-shadow: none; }
.btn.small { font-size: 14px; padding: 7px 13px; border-radius: 12px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 4px 0 var(--edge); }
.btn.big { font-size: 22px; padding: 13px 26px; border-radius: 18px; }
.btn:disabled { opacity: 1; filter: grayscale(1) brightness(0.72); }
.btn:focus-visible, .tab:focus-visible, .choice:focus-visible, .seg button:focus-visible, .switch:focus-visible, .ward-tile:focus-visible {
  outline: 4px solid #fff; outline-offset: 3px;
}
/* a shine that sweeps across the main call to action */
.btn.primary.big::after, .btn.gold.big::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.55) 48%, transparent 60%);
  background-size: 250% 100%; background-position: 130% 0; animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { background-position: 130% 0; } 100% { background-position: -60% 0; } }

/* ---------- shell: side bar and resource bar ---------- */
.side { background: linear-gradient(180deg, #1f1870 0%, #130d48 100%); border-right: 4px solid var(--edge); box-shadow: inset -6px 0 0 rgba(255, 255, 255, 0.05); gap: 8px; }
.brand { color: #fff; font-size: 30px; letter-spacing: 0.03em; -webkit-text-stroke: 5px var(--edge); paint-order: stroke fill; text-shadow: 0 4px 0 var(--edge); padding-bottom: 18px; }
.tab { color: #c7ceff; font-size: 18px; letter-spacing: 0.05em; border: 3px solid transparent; border-radius: 16px; text-shadow: var(--outline-text); padding: 10px 12px; }
.tab:hover { background: rgba(255, 255, 255, 0.09); }
.tab.on {
  background: linear-gradient(180deg, #ffe55c 0%, #ffab0f 100%); border-color: var(--edge); color: #fff;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 5px 0 var(--edge);
}
.tab-icon { font-size: 26px; }
.dot { background: #ff3b4e; border: 2px solid var(--edge); color: #fff; min-width: 26px; height: 26px; font-size: 14px; }
.tapnote { background: rgba(0, 0, 0, 0.25); border-color: rgba(255, 255, 255, 0.25); color: var(--muted); }
.stats { background: transparent; border-bottom: 0; padding-top: 16px; }
.stat {
  background: linear-gradient(180deg, #1d1766 0%, #100b3c 100%); border: 3px solid var(--edge); color: var(--muted);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 4px 0 rgba(8, 5, 40, 0.6); padding: 6px 16px; font-size: 15px;
}
.stat b { color: #fff; font-size: 20px; text-shadow: var(--outline-text); }
.stat.lit { background: linear-gradient(180deg, #ff9d2e 0%, #e0500a 100%); border-color: var(--edge); color: #fff; }
.stat.drops { background: linear-gradient(180deg, #86ff6e 0%, #1fb832 100%); border-color: var(--edge); color: #fff; text-shadow: var(--outline-text); }
.link-stat:hover { border-color: #fff; }

/* ---------- panels ---------- */
.card, .ach-row, .tiles > div, .modal-card, .wk-card {
  background: var(--panel); border: 4px solid var(--edge); border-radius: var(--r); box-shadow: var(--panel-shadow); color: #fff;
}
.tag { background: #120d40; color: #cfd6ff; border: 2px solid var(--edge); font-size: 14px; padding: 4px 12px; }
.tag.done { color: #8dff7c; background: #0f3320; }
.bar { height: 18px; background: #100b3c; border: 3px solid var(--edge); box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.45); }
.bar i { background: linear-gradient(180deg, #ffe55c 0%, #ff9d0a 100%); box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.45); border-radius: 99px; min-width: 0; }
.bar.gold i { background: linear-gradient(180deg, #86ff6e 0%, #1fb832 100%); }
.ward-tile .bar.thin { height: 10px; border-width: 2px; }
.ring circle:first-child { stroke: #100b3c; }
.ring-text b { font-size: 40px; text-shadow: 0 3px 0 var(--edge); }
.goal p, .game p, .shop-item p, .road-next span, .season-row span { color: var(--muted); }
.quest + .quest, .hist td, .set-row { border-color: rgba(255, 255, 255, 0.13); }
.quest-title { font-size: 17px; text-shadow: var(--outline-text); }
.tip { background: linear-gradient(180deg, #7b3fe0 0%, #4a1fa8 100%); border-color: var(--edge); }
.tip p { color: #e6dcff; }

/* game cards wear their own colour */
.game { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, #fff) 0%, color-mix(in srgb, var(--c) 62%, #130d48) 100%); border-top: 4px solid var(--edge); }
.game p { color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.game-icon { font-size: 52px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35)); }
.bosscard { background: linear-gradient(120deg, color-mix(in srgb, var(--c) 60%, #1b1564) 0%, #242b8e 68%); border-top: 4px solid var(--edge); }
.boss-info small { color: #ffd84a; font-family: var(--display); letter-spacing: 0.12em; text-shadow: var(--outline-text); }

/* ---------- achievements ---------- */
.ach-row.maxed { background: linear-gradient(180deg, #a86a00 0%, #6b3f00 100%); border-color: var(--edge); }
.ach-badge { border: 3px solid var(--edge); box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.35), inset 0 -5px 0 rgba(0, 0, 0, 0.2), 0 5px 0 var(--edge); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); }
.ach-badge.locked { background: #2b2f72; box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.1), 0 5px 0 var(--edge); }
.ach-level { background: #fff; color: var(--dark); border: 2px solid var(--edge); font-size: 11px; }
.ach-badge.maxed .ach-level { background: linear-gradient(180deg, #ffe55c, #ffab0f); color: var(--dark); border-color: var(--edge); }
.ach-num { color: #fff; font-size: 16px; text-shadow: var(--outline-text); }
.ach-foot { color: var(--muted); }

/* ---------- wardrobe ---------- */
.ward-stage { background: radial-gradient(circle at 50% 44%, #7f93ff 0%, #3441b8 46%, #242b8e 78%); }
.ward-gems { color: #fff; font-family: var(--display); font-size: 22px; text-shadow: var(--outline-text); }
.ward-tile {
  background: linear-gradient(180deg, #4656d6 0%, #2c359f 100%); border: 3px solid var(--edge); border-bottom-width: 3px; color: #fff;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.2), 0 5px 0 var(--edge); border-radius: 18px;
}
.ward-tile:hover { filter: brightness(1.1); }
.ward-tile:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.2), 0 1px 0 var(--edge); }
.ward-tile b { font-size: 15px; text-shadow: var(--outline-text); }
.ward-state { background: #120d40; color: #fff; border: 2px solid var(--edge); font-size: 13px; }
.ward-tile.owned .ward-state { color: #cfd6ff; }
.ward-tile.wearing { background: linear-gradient(180deg, #49e05a 0%, #168c2a 100%); border-color: var(--edge); }
.ward-tile.wearing .ward-state { background: #fff; color: var(--dark); }
.ward-tile.trying { background: linear-gradient(180deg, #ffd84a 0%, #e08a00 100%); border-color: var(--edge); }
.ward-tile.trying .ward-state { background: #fff; color: var(--dark); }
.ward-tile.earn .ward-state { background: #120d40; color: #dcd0ff; }
.ward-tile.earn .ward-thumb { filter: saturate(0.6) brightness(0.8); opacity: 1; }
.ward-tile[data-drop] { border-color: var(--edge); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.2), 0 0 0 3px var(--rc), 0 5px 0 3px var(--edge); }
.ward-tile[data-drop].earn .ward-state { background: #120d40; color: var(--rc); }
.ward-lock { background: #120d40; border: 3px solid var(--edge); color: #fff; }
.ward-lock span, .ward-lock p { color: var(--muted); }

/* ---------- profile ---------- */
.tiles b { font-size: 36px; text-shadow: 0 3px 0 var(--edge); }
.tiles span { color: var(--muted); }
.cal { background: rgba(255, 255, 255, 0.09); color: var(--muted); font-size: 14px; }
.cal.some { background: rgba(255, 198, 26, 0.32); color: #ffe59a; }
.cal.full { background: linear-gradient(180deg, #ffe55c, #ffab0f); color: var(--dark); border: 2px solid var(--edge); }
.cal.future { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.3); }
.cal.today { outline-color: #fff; }
.settings select { background: #120d40; color: #fff; border: 3px solid var(--edge); }
.seg { border: 3px solid var(--edge); background: var(--edge); gap: 3px; }
.seg button { background: #1c1766; color: var(--muted); font-size: 15px; }
.seg button + button { border-left: 0; }
.seg button.on { background: linear-gradient(180deg, #ffe55c, #ffab0f); color: #fff; text-shadow: var(--outline-text); }
.set-row.danger { color: #ff9aa5; }
.switch { background: #100b3c; border: 3px solid var(--edge); width: 58px; height: 34px; }
.switch i { top: 2px; left: 2px; }
.switch.on { background: linear-gradient(180deg, #86ff6e, #1fb832); }

/* ---------- dialogs and toasts ---------- */
#modal { background: rgba(8, 5, 40, 0.72); backdrop-filter: blur(3px); }
.modal-card { border-width: 5px; border-radius: 26px; animation: pop-in 0.26s cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes pop-in { from { transform: scale(0.82) translateY(16px); opacity: 0; } }
.dlg-icon { border: 3px solid var(--edge); box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.35), 0 6px 0 var(--edge); }
.pill { background: #120d40; color: #fff; border: 2px solid var(--edge); }
.pills.big .pill { background: linear-gradient(180deg, #ffe55c, #ffab0f); color: #fff; text-shadow: var(--outline-text); border: 3px solid var(--edge); font-size: 26px; }
.choice { background: linear-gradient(180deg, #4656d6, #2c359f); border: 3px solid var(--edge); border-bottom-width: 3px; box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.2), 0 4px 0 var(--edge); color: #fff; }
.choice b { font-size: 17px; text-shadow: var(--outline-text); }
.choice span { color: #d5dbff; }
.choice.on { background: linear-gradient(180deg, #ffe55c, #ffab0f); border-color: var(--edge); }
.choice.on span { color: var(--dark); }
.toast { background: linear-gradient(180deg, #1d1766, #100b3c); color: #fff; border: 3px solid var(--edge); box-shadow: 0 5px 0 rgba(8, 5, 40, 0.6); font-size: 17px; padding: 10px 22px; text-shadow: var(--outline-text); animation: pop-in 0.26s cubic-bezier(0.2, 1.5, 0.4, 1); }

/* ---------- shop, reward road, season ---------- */
.shop-gems { background: linear-gradient(180deg, #1d1766, #100b3c); border: 3px solid var(--edge); color: #fff; text-shadow: var(--outline-text); }
.shop-icon { background: rgba(255, 255, 255, 0.13); border: 3px solid var(--edge); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.2); }
.shop-item[data-item='repair'] { background: linear-gradient(180deg, #ff9d2e, #c2410a); border-color: var(--edge); }
.shop-item[data-item='repair'] .shop-icon { background: rgba(255, 255, 255, 0.25); }
.shop-item.out { opacity: 1; filter: saturate(0.4) brightness(0.8); }
.road-stop { background: #120d40; border: 3px solid var(--edge); }
.road-stop small { color: var(--muted); }
.road-stop.ready { background: linear-gradient(180deg, #86ff6e, #1fb832); border-color: var(--edge); }
.road-stop.ready small { color: #fff; }
.road-stops i { background: var(--edge); height: 6px; }
.road-next b, .season-row b { font-size: 18px; text-shadow: var(--outline-text); }

/* ---------- workout ---------- */
.wk-panel { background: linear-gradient(180deg, rgba(52, 65, 184, 0.9), rgba(27, 21, 100, 0.92)); border: 4px solid var(--edge); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.2), 0 8px 0 rgba(8, 5, 40, 0.7); }
.wk-count { -webkit-text-stroke: 10px var(--edge); paint-order: stroke fill; text-shadow: 0 8px 0 var(--edge); letter-spacing: 0; }
.wk-label { font-size: 20px; opacity: 1; color: #ffd84a; text-shadow: var(--outline-text); }
.wk-target { text-shadow: var(--outline-text); opacity: 1; }
.wk-title b { font-size: 28px; text-shadow: var(--outline-text); }
.wk-xp { background: linear-gradient(180deg, #ffe55c, #ffab0f); color: #fff; border: 3px solid var(--edge); text-shadow: var(--outline-text); font-size: 18px; }
.wk-end, .wk-skip { background: linear-gradient(180deg, #5c8bff, #2f55e6); border: 3px solid var(--edge); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 4px 0 var(--edge); text-shadow: var(--outline-text); }
.wk-end { background: linear-gradient(180deg, #ff7a85, #e0263a); }
.wk-chip { background: linear-gradient(180deg, #1d1766, #100b3c); border: 3px solid var(--edge); }
.wk-banner { background: linear-gradient(180deg, #1d1766, #100b3c); border: 4px solid var(--edge); text-shadow: var(--outline-text); }
.wk-big { -webkit-text-stroke: 22px var(--edge); paint-order: stroke fill; color: #ffe55c; }
.wk-flash { border: 3px solid var(--edge); color: #fff; background: linear-gradient(180deg, #ffe55c, #ffab0f); text-shadow: var(--outline-text); box-shadow: 0 5px 0 rgba(8, 5, 40, 0.6); }
.wk-flash[data-tone='warn'] { background: linear-gradient(180deg, #ff7a85, #e0263a); color: #fff; }
.wk-cheer-bubble { color: var(--dark); border: 4px solid var(--edge); box-shadow: 0 8px 0 var(--edge); }
.wk-help { color: var(--dark); border: 4px solid var(--edge); border-bottom-width: 4px; box-shadow: 0 8px 0 var(--edge), 0 18px 40px rgba(0, 0, 0, 0.5); background: linear-gradient(180deg, #fff, #ffe9c9); }
.wk-help small { color: #5d5876; }
.wk-depth { border: 3px solid var(--edge); background: rgba(16, 11, 60, 0.7); width: 26px; }
.wk-combo b { font-size: 34px; text-shadow: var(--outline-text); }
.wk-combo { border-width: 3px; }
.wk-card h2, .wk-card h3 { text-shadow: var(--outline-text); }
.results h2 { font-size: 38px; text-transform: uppercase; -webkit-text-stroke: 6px var(--edge); paint-order: stroke fill; text-shadow: 0 4px 0 var(--edge); }
.results .tiles > div { background: #171256; box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.35); border-width: 3px; }
.results .tiles .xp { background: linear-gradient(180deg, #ffe55c, #ffab0f); border-color: var(--edge); }
.results .tiles .xp b { color: #fff; text-shadow: var(--outline-text); }
.results .tiles .xp span { color: var(--dark); }
.res-sub, .res-lines .ach small, .res-next > div:first-child { color: var(--muted); }
.res-lines li { border-color: rgba(255, 255, 255, 0.13); }
.res-lines b { color: #ffd84a; }
.res-lines li > span b { color: #fff; }
.res-lines .drop-line { background: linear-gradient(180deg, #49e05a, #168c2a); border: 3px solid var(--edge); }
.res-lines .drop-line b, .res-lines .drop-line small { color: #fff; }
.spinner { border-color: rgba(255, 255, 255, 0.2); border-top-color: #ffd84a; }
.boss-hp { border: 3px solid var(--edge); background: #100b3c; height: 22px; }
.boss-hp i { box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.4); }
.light, .cue { border: 4px solid var(--edge); text-shadow: var(--outline-text); color: #fff; }
.light.green, .cue.good { color: #fff; }
.cue.call { color: #fff; background: linear-gradient(180deg, #ffe55c, #ffab0f); }

/* ---------- Spud drops ---------- */
.drop-rarity { font-family: var(--display); font-weight: 400; -webkit-text-stroke: 9px var(--edge); paint-order: stroke fill; text-shadow: 0 6px 0 var(--edge), 0 0 40px color-mix(in srgb, var(--rc) 80%, transparent); }
.drop[data-rarity='mega'] .drop-rarity { -webkit-text-stroke: 0; }
.drop-note { font-family: var(--display); font-size: 22px; text-shadow: var(--outline-text); }
.drop-card { color: var(--dark); border-width: 5px; box-shadow: 0 0 0 4px var(--edge), 0 8px 0 4px var(--edge), 0 0 40px color-mix(in srgb, var(--rc) 70%, transparent); }
.drop-card span { color: #5d5876; }
.drop-card .big .ico { font-size: 60px; }
.drop-close { border: 3px solid var(--edge); background: linear-gradient(180deg, #ff7a85, #e0263a); box-shadow: 0 4px 0 var(--edge); }

/* ---------- the progress map: same drawings, with depth ---------- */
.pm-map h2, .pm-map h3 { text-shadow: none; }
.pm-map { box-shadow: 0 7px 0 var(--edge), 0 18px 28px rgba(8, 5, 40, 0.4); border-color: var(--edge); }
.pm-biome { box-shadow: inset 0 0 110px rgba(20, 10, 60, 0.2); } /* a soft vignette on each land */
/* lesson stones become raised, glossy buttons */
.pm-stone {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 48%, rgba(0, 0, 0, 0.16) 100%);
  box-shadow: 0 calc(7 * var(--u)) 0 #111;
}
.pm-stone:active { box-shadow: 0 calc(2 * var(--u)) 0 #111; }
.pm-stone.done { background-color: #ffc21a; }
.pm-stone.current, .pm-stone.current:focus-visible {
  box-shadow: 0 0 0 calc(5 * var(--u)) #fff, 0 0 0 calc(8.5 * var(--u)) #111, 0 calc(15 * var(--u)) 0 calc(3 * var(--u)) rgba(0, 0, 0, 0.3);
}
/* everything that grows or lives on the map casts a little shadow */
.pm-sp { filter: drop-shadow(0 calc(4 * var(--u)) 0 rgba(20, 10, 40, 0.3)); }
.pm-sign { box-shadow: 0 6px 0 #111; }
.pm-sign h2, .pm-unit, .pm-tag, .pm-go, .pm-prog b, .pm-prog em { font-family: var(--display); font-weight: 400; letter-spacing: 0.03em; }
.pm-sign h2 { font-size: 24px; }
.pm-tag { font-size: 14px; box-shadow: 0 3px 0 #111; }
.pm-go { font-size: 15px; background: linear-gradient(180deg, #ffe55c, #ffab0f); box-shadow: 0 3px 0 #111; }

/* ---------- links to the privacy policy and terms ---------- */
.fine a, .legal-links a { color: #d6e2ff; font-weight: 700; text-underline-offset: 2px; }
.fine a:hover, .legal-links a:hover { color: #ffe55c; }
.fine a:focus-visible, .legal-links a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 4px; }
.legal-links { margin-top: auto; padding: 10px 8px 0; font-size: 13px; color: var(--muted); }
.tapnote + .legal-links { margin-top: 0; }
.credit-line { display: block; margin-top: 4px; font-size: 12px; opacity: 0.85; }
.card.credits { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.card.credits h3 { margin: 0 0 4px; }
.card.credits p { margin: 0 0 4px; }
.credits-spud { flex: none; line-height: 0; }
.page-legal { margin-top: 22px; text-align: center; }
@media (max-width: 760px) { .legal-links { display: none; } }

/* ---------- friends and leagues ---------- */
.fr-notice { display: flex; gap: 18px; align-items: center; }
.fr-notice p { margin: 6px 0 12px; }
.lg-list { list-style: none; margin: 4px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lg-row {
  display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 8px; border-radius: 16px;
  background: rgba(13, 10, 46, 0.35); border: 3px solid var(--edge);
}
.lg-row.me { background: linear-gradient(180deg, #4656d6, #2c359f); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.2); }
.lg-row.top1 { border-color: #ffd21f; }
.lg-row.top2 { border-color: #cfd6e6; }
.lg-row.top3 { border-color: #e0915a; }
.lg-rank { flex: none; width: 34px; text-align: center; font-family: var(--display); font-size: 22px; text-shadow: var(--outline-text); }
.lg-spud { flex: none; width: 52px; display: grid; place-items: end center; height: 54px; overflow: visible; }
.lg-name { flex: 1; min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.lg-name small { color: var(--muted); font-weight: 700; }
.lg-xp { flex: none; font-family: var(--display); font-weight: 400; font-size: 20px; color: #ffe55c; text-shadow: var(--outline-text); }
.lg-last { margin-top: 10px; font-weight: 700; }
.fr-code .code-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0; }
.fcode { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: 0.06em; color: #fff; text-shadow: var(--outline-text); }
.fr-add .name-note.ok { color: #86ff6e; }
.fr-add .name-note.bad { color: #ffb3c7; }
.fr-add .name-note { margin-top: 8px; min-height: 1.5em; font-size: 14px; font-weight: 700; color: var(--muted); }
.fr-row { display: flex; align-items: center; gap: 8px 12px; padding: 8px 0; border-top: 2px solid var(--line); flex-wrap: wrap; }
.fr-row:first-of-type { border-top: 0; }
/* The name keeps at least 140px; if the buttons don't fit beside it they move to their own line (iPad). */
.fr-body { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; overflow-wrap: break-word; }
.fr-body .muted { font-size: 14px; font-weight: 700; }
.league .card-head { flex-wrap: wrap; gap: 8px; }

/* ---------- Spud's reactions (the workout panel) ---------- */
.wk-buddy { position: relative; display: flex; justify-content: center; height: 92px; margin: -6px 0 2px; }
.wk-buddy .spud { transition: filter 0.4s; }
.wk-buddy.hop .spud { animation: buddy-hop 0.32s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes buddy-hop { 0% { transform: translateY(0) scale(1, 1); } 35% { transform: translateY(-10px) scale(0.96, 1.05); } 100% { transform: translateY(0) scale(1, 1); } }
.wk-buddy .sweat { position: absolute; width: 9px; height: 13px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #7dd3fc; border: 2px solid var(--edge); opacity: 0; }
.wk-buddy .s1 { left: calc(50% - 40px); top: 14px; }
.wk-buddy .s2 { left: calc(50% + 32px); top: 6px; }
.wk-buddy .puff { position: absolute; left: calc(50% + 34px); top: 46px; width: 22px; height: 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.85); opacity: 0; }
.wk-buddy[data-tired='1'] .sweat, .wk-buddy[data-tired='2'] .sweat { opacity: 1; animation: sweat-drip 1.1s ease-in infinite; }
.wk-buddy[data-tired='1'] .s2, .wk-buddy[data-tired='2'] .s2 { animation-delay: 0.55s; }
@keyframes sweat-drip { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
.wk-buddy[data-tired='2'] .spud { filter: saturate(1.4) hue-rotate(-12deg) brightness(1.02); }
.wk-buddy[data-tired='2'] .puff { animation: puff 0.8s ease-out infinite; }
@keyframes puff { 0% { transform: translate(0, 0) scale(0.4); opacity: 0.9; } 100% { transform: translate(18px, -10px) scale(1.2); opacity: 0; } }
.wk.is-duel .wk-buddy { display: none; }
@media (prefers-reduced-motion: reduce) { .wk-buddy .spud, .wk-buddy .sweat, .wk-buddy .puff { animation: none !important; } }

/* ---------- notifications switch ---------- */
.notify-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; border-color: #ffd21f; font-weight: 700; }
.notify-why { display: block; margin-top: 4px; font-weight: 600; }

/* ---------- online dots ---------- */
.fr-avatar { position: relative; }
.dot-online { position: absolute; right: 2px; bottom: 4px; width: 16px; height: 16px; border-radius: 50%; background: #8a8fb0; border: 3px solid var(--edge); }
.dot-online.on { background: #3fe052; box-shadow: 0 0 8px #3fe052; }
.online-word { color: #86ff6e; }
.duel-wait { display: flex; justify-content: center; margin-bottom: 6px; }
.duel-pick { grid-template-columns: repeat(2, 1fr); }

/* ---------- duels ---------- */
/* You see your own camera, so you can tell you're framed right; your friend
   is shown only as their Spud, never their camera. The scores sit along the
   top and bottom edges so they don't cover you. */
.wk.is-duel .wk-panel { visibility: hidden; } /* the arena shows both counts instead */
.wk.is-duel .wk-tappad p { visibility: hidden; }
.wk.is-duel .wk-top { z-index: 3; }
.wk.is-duel .wk-banner { bottom: auto; top: 150px; z-index: 3; }
.duel-arena {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px;
  padding: max(84px, calc(env(safe-area-inset-top) + 70px)) 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(14, 17, 34, 0.55), transparent 22%, transparent 62%, rgba(14, 17, 34, 0.75)); pointer-events: none;
}
.duel-arena .duel-top { padding: 4px 16px; border-radius: 99px; background: rgba(13, 10, 46, 0.55); }
.duel-arena .duel-row { align-items: flex-end; justify-content: space-between; margin-top: auto; } /* scores at the bottom, clear of you */
.duel-arena .duel-side.me { justify-content: flex-end; align-self: flex-end; align-items: flex-start; }
.duel-arena .duel-side.them { align-items: flex-end; }
.duel-arena .duel-side.them .duel-stage {
  width: 210px; height: 190px; border-radius: 22px; background: rgba(13, 10, 46, 0.6); border: 3px solid var(--edge); justify-content: flex-end; padding-right: 8px;
}
.duel-arena .duel-side.them .duel-spud .spud { width: 112px; height: 146px; }
.duel-arena .duel-side.them { position: relative; }
.duel-arena .duel-side.them .duel-stage { justify-content: center; padding-right: 0; width: 250px; height: 210px; }
/* The duel Spud fills the stage; the floor is part of his picture. */
.duel-arena .duel-side.them .duel-spud { position: absolute; inset: 6px 6px 2px; margin: 0; transform: none; transition: none; }
.duel-arena .duel-side.them .duel-floor { bottom: 8px; }
/* The duel Spud (js/duelspud.js): his own arms and legs, which bend. */
.duel-rig { width: 100%; height: 100%; overflow: visible; display: block; }
.ds-limb { fill: none; stroke: #0d0a2e; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.ds-limb.arm { stroke-width: 6; }
.ds-limb.far { stroke: #2a2458; }
.ds-shoe { fill: #0d0a2e; }
.ds-glove { fill: #fff; stroke: #0d0a2e; stroke-width: 2.5; }
/* Plank: dropped flat, a bit grey. */
.duel-stage.dropped .duel-rig { filter: grayscale(0.7) brightness(0.85); }
.duel-stage.dropped .duel-spud { filter: grayscale(0.7) brightness(0.85); }
.duel-stage.dropped::after { content: '💥'; position: absolute; top: 10px; right: 12px; font-size: 34px; transform: scaleX(-1); }
/* "+1" beside their Spud when their count goes up. */
.duel-plus { position: absolute; top: 18px; left: 50%; font-family: var(--display); font-size: 40px; color: #8fd8ff; text-shadow: 0 4px 0 var(--edge), var(--outline-text); pointer-events: none; animation: duel-plus 0.9s ease-out forwards; }
@keyframes duel-plus { 0% { transform: translate(-50%, 10px) scale(0.6); opacity: 0; } 20% { transform: translate(-50%, 0) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -46px) scale(1); opacity: 0; } }
.duel-arena .duel-vs { align-self: flex-end; margin-bottom: 40px; }
/* The two scores: big enough to read from the floor mid-pushup. */
.duel-score {
  display: flex; flex-direction: column; align-items: center; min-width: 150px; padding: 6px 20px 10px; border-radius: 24px;
  background: rgba(13, 10, 46, 0.72); border: 4px solid var(--edge);
}
.duel-who { max-width: 220px; font-family: var(--display); font-weight: 400; font-size: 22px; color: #fff; text-shadow: var(--outline-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duel-score .duel-count { font-family: var(--display); font-size: clamp(84px, 16vw, 150px); line-height: 0.95; color: #ffe55c; text-shadow: 0 6px 0 var(--edge), var(--outline-text); }
.duel-side.them .duel-score .duel-count { color: #8fd8ff; }
.duel-arena[data-lead='me'] .me .duel-score, .duel-arena[data-lead='them'] .them .duel-score { border-color: #ffd21f; box-shadow: 0 0 0 4px #ffd21f, 0 0 24px rgba(255, 210, 31, 0.6); }
.duel-arena .duel-note { margin: 0; text-align: center; color: #dfe4ff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.duel-top { display: flex; align-items: baseline; gap: 16px; color: #fff; }
.duel-what { font-family: var(--display); font-size: 22px; color: var(--muted); }
.duel-clock { font-family: var(--display); font-weight: 400; font-size: 46px; color: #fff; text-shadow: var(--outline-text); }
.duel-clock.hot { color: #ff6b6b; }
.duel-row { display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 4vw, 60px); width: min(900px, 100%); }
.duel-side { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.duel-stage { position: relative; width: 100%; max-width: 320px; height: 260px; display: flex; align-items: flex-end; justify-content: center; }
.duel-spud { position: relative; transform-origin: 50% 92%; transition: transform 0.12s linear; margin-bottom: 4px; line-height: 0; }
.duel-side.them .duel-stage { transform: scaleX(-1); } /* the two Spuds face each other */
.duel-floor { position: absolute; left: 4%; right: 4%; bottom: 8px; height: 10px; border-radius: 99px; background: rgba(13, 10, 46, 0.55); }
.duel-vs { align-self: center; font-family: var(--display); font-size: 40px; color: #ff5fa8; text-shadow: var(--outline-text); }
.duel-quiet { font-size: 14px; font-weight: 700; color: var(--muted); }
.duel-big { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%); font-family: var(--display); font-size: clamp(56px, 12vw, 120px); color: #fff; text-shadow: 0 6px 0 var(--edge), var(--outline-text); }
.duel-big[hidden] { display: none; }
.duel-note { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .duel-stage { height: 190px; }
  .duel-spud .spud { width: 92px; height: 120px; }
  .duel-arena .duel-side.them .duel-stage { width: 170px; height: 146px; }
  .duel-arena .duel-side.them .duel-spud .spud { width: 84px; height: 110px; }
  .duel-arena .duel-clock { font-size: 34px; }
  .duel-arena .duel-what { font-size: 16px; }
  .wk.is-duel .wk-banner { top: 132px; }
  .duel-score { min-width: 0; width: 100%; max-width: 160px; padding: 4px 10px 8px; }
  .duel-who { font-size: 16px; max-width: 100%; }
  .duel-score .duel-count { font-size: clamp(72px, 22vw, 110px); }
  .duel-vs { font-size: 26px; }
  .duel-arena .duel-vs { margin-bottom: 30px; }
}

/* ---------- "Spudfit has been updated" ---------- */
.update-bar {
  position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; top: calc(10px + env(safe-area-inset-top)); z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-radius: 99px; max-width: calc(100% - 24px);
  background: linear-gradient(180deg, #4656d6, #2c359f); border: 4px solid var(--edge); box-shadow: 0 6px 0 rgba(13, 10, 46, 0.6);
  color: #fff; font-weight: 800; animation: update-in 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes update-in { from { transform: translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- ranked duels ---------- */
.rk-card .rk-me { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.rk-badge { display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none; border-radius: 30%; font-size: calc(var(--s) * 0.58); line-height: 1;
  background: radial-gradient(circle at 35% 30%, #fff8, transparent 55%), var(--rk, #6fbf5a); border: 3px solid var(--edge); box-shadow: 0 4px 0 rgba(13, 10, 46, 0.55); vertical-align: middle; }
.rk-seedling { --rk: #8fd36b; } .rk-sprout { --rk: #3fbf6a; } .rk-tatertot { --rk: #d9a35b; } .rk-hashbrown { --rk: #b36a2e; }
.rk-wedge { --rk: #ff9d2e; } .rk-jacket { --rk: #9a6cff; } .rk-goldenfry { --rk: #ffd21f; } .rk-megamash { --rk: #ff5fa8; }
.rk-name { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; color: #fff; text-shadow: var(--outline-text); }
.rk-rp { font-weight: 800; color: #ffe55c; }
.rk-play { width: 100%; margin: 8px 0 4px; }
.rk-wl { display: block; font-size: 13px; font-weight: 700; }
.rk-board-btn { width: 100%; margin-top: 10px; }
.lb-list { max-height: 52vh; overflow-y: auto; padding-right: 2px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 16px; border: 3px solid var(--edge); background: rgba(255, 255, 255, 0.06); }
.lb-row.me { background: linear-gradient(180deg, #4656d6, #2c359f); }
.lb-row.top1 { border-color: #ffd21f; } .lb-row.top2 { border-color: #cfd6e6; } .lb-row.top3 { border-color: #e0915a; }
.lb-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lb-name small { color: var(--muted); font-weight: 700; }
.lb-sub { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; }
.lb-row .lg-xp small { font-size: 12px; color: #fff; }
.lb-gap { text-align: center; font-weight: 800; color: var(--muted); margin: 2px 0; }
.lb .row { justify-content: center; }
.rk-pick-label { display: block; margin: 10px 0 6px; font-weight: 800; font-size: 13px; color: var(--muted); }
.rk-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.rk-pick .chip { padding: 8px 6px; border-radius: 14px; border: 3px solid var(--edge); background: rgba(255, 255, 255, 0.07); color: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.rk-pick .chip.on { background: linear-gradient(180deg, #ffe55c, #ffb01f); color: #1b1450; box-shadow: 0 0 0 3px #ffd21f; }
.rk-result { text-align: center; }
.rk-result .rk-me { justify-content: center; }
.rk-delta { font-family: var(--display); font-size: 54px; text-shadow: 0 5px 0 var(--edge), var(--outline-text); animation: gift-pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
.rk-delta.plus { color: #3fe052; } .rk-delta.minus { color: #ff6b8a; }
.rk-up { font-weight: 800; color: #3fe052; } .rk-down { font-weight: 800; color: #ff9db0; }
.rk-result .row { justify-content: center; }

/* The matchmaking screen: lively while it searches. */
.mm, .vs { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 38%, #3b46d6 0%, #1d1670 45%, #0d0a2e 100%); color: #fff; text-align: center; animation: mm-in 0.25s ease-out; }
.mm.leaving, .vs.leaving { animation: mm-out 0.25s ease-in forwards; }
@keyframes mm-in { from { opacity: 0; transform: scale(1.04); } }
@keyframes mm-out { to { opacity: 0; transform: scale(0.97); } }
.mm-top { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; }
.mm-mode { font-family: var(--display); font-size: 20px; text-shadow: var(--outline-text); }
.mm-stage { position: relative; width: 240px; height: 220px; display: grid; place-items: center; }
.mm-rings i { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 4px solid #8fd8ff; opacity: 0; animation: mm-ring 2.4s ease-out infinite; }
.mm-rings i:nth-child(2) { animation-delay: 0.8s; } .mm-rings i:nth-child(3) { animation-delay: 1.6s; }
@keyframes mm-ring { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.1); opacity: 0; } }
.mm-me { position: relative; animation: mm-bob 0.9s ease-in-out infinite; }
@keyframes mm-bob { 50% { transform: translateY(-10px); } }
.mm-rank { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(13, 10, 46, 0.55); border: 3px solid var(--edge); font-weight: 800; }
.mm-rank span { color: #ffe55c; }
.mm-title { margin: 6px 0 0; font-family: var(--display); font-weight: 400; font-size: 30px; text-shadow: var(--outline-text); }
.mm-dots i { font-style: normal; animation: mm-dot 1.2s infinite; } .mm-dots i:nth-child(2) { animation-delay: 0.2s; } .mm-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes mm-dot { 0%, 60%, 100% { opacity: 0.2; } 30% { opacity: 1; } }
.mm-time { font-family: var(--display); font-size: 40px; color: #ffe55c; text-shadow: var(--outline-text); }
.mm-reel { width: 120px; height: 120px; border-radius: 24px; overflow: hidden; display: grid; place-items: end center; background: rgba(13, 10, 46, 0.6); border: 4px solid var(--edge); box-shadow: inset 0 0 0 3px #8fd8ff44; }
.mm-slot.spin { animation: mm-spin 0.35s cubic-bezier(0.2, 1.4, 0.5, 1); }
@keyframes mm-spin { from { transform: translateY(-110%); filter: blur(2px); } }
.mm-tip { max-width: 340px; min-height: 2.6em; margin: 0; font-weight: 700; color: #dfe4ff; }
.mm-tip.in { animation: mm-in 0.4s ease-out; }
.vs { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
.vs-side { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 130px; }
.vs-side b { font-family: var(--display); font-weight: 400; font-size: 24px; text-shadow: var(--outline-text); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-side span { font-weight: 800; color: #ffe55c; display: flex; align-items: center; gap: 6px; }
.vs-side small { font-weight: 800; color: #dfe4ff; }
.vs-side.me { animation: vs-left 0.5s cubic-bezier(0.2, 1.4, 0.5, 1); }
.vs-side.them { animation: vs-right 0.5s cubic-bezier(0.2, 1.4, 0.5, 1); }
.vs-side.them .spud { transform: scaleX(-1); }
@keyframes vs-left { from { transform: translateX(-120vw); } }
@keyframes vs-right { from { transform: translateX(120vw); } }
.vs-word { font-family: var(--display); font-size: 80px; color: #ff5fa8; text-shadow: 0 6px 0 var(--edge), var(--outline-text); animation: vs-slam 0.6s 0.35s cubic-bezier(0.2, 1.6, 0.5, 1) both; }
@keyframes vs-slam { from { transform: scale(3) rotate(-12deg); opacity: 0; } }
.vs-go { flex-basis: 100%; margin: 6px 0 0; font-weight: 800; color: #dfe4ff; }

/* ---------- ranked leagues ---------- */
.shield { flex: none; filter: drop-shadow(0 4px 0 rgba(13, 10, 46, 0.55)); }
.lg-hero { display: flex; align-items: center; gap: 18px; border-color: var(--tc); box-shadow: 0 0 0 3px var(--tc), 0 0 28px color-mix(in srgb, var(--tc) 45%, transparent); }
.lg-hero p { margin: 0 0 6px; }
.lg-tier-name { font-family: var(--display); font-size: 30px; color: var(--tc); text-shadow: var(--outline-text); }
.lg-ladder { display: flex; justify-content: space-between; align-items: flex-end; gap: 4px; margin: 16px 0; overflow-x: auto; padding: 2px 2px 6px; }
.lg-step { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 800; color: var(--muted); opacity: 0.55; min-width: 52px; }
.lg-step.done { opacity: 0.85; }
.lg-step.on { opacity: 1; color: #fff; }
.lg-zone { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.lg-zone.up { background: #2e9e48; color: #fff; }
.lg-zone.down { background: #c2304f; color: #fff; }
.lg-row.zone-up { box-shadow: inset 6px 0 0 #3fe052; }
.lg-row.zone-down { box-shadow: inset 6px 0 0 #ff4d6d; }
.lg-other-tier { display: inline-flex; vertical-align: -3px; }
.lg-result { text-align: center; }
.lg-result-shields { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.lg-arrow { font-size: 34px; color: #ffe55c; text-shadow: var(--outline-text); }
.lg-result.down .lg-arrow { color: #ff6b8a; }
.lg-prize { font-weight: 800; color: #ffe55c; }
.lg-result .row { justify-content: center; }

/* ---------- friends: favourites, names that open a menu, profiles ---------- */
.fr-star { flex: none; background: none; border: 0; padding: 0 2px; font-size: 26px; line-height: 1; color: #8a8fb0; cursor: pointer; }
.fr-star.on { color: #ffd21f; text-shadow: 0 0 10px rgba(255, 210, 31, 0.6); }
.fr-row.fav { background: linear-gradient(90deg, rgba(255, 210, 31, 0.12), transparent 70%); border-radius: 14px; }
.fr-open { background: none; border: 0; padding: 0; cursor: pointer; }
.fr-name { background: none; border: 0; padding: 0; color: #fff; font: inherit; font-weight: 800; font-size: 17px; text-align: left; cursor: pointer; text-decoration: underline dotted rgba(255, 255, 255, 0.5); text-underline-offset: 4px; }
.fr-name:hover { color: #ffe55c; }
.fr-menu { text-align: center; }
.fr-menu-spud { display: flex; justify-content: center; }
.fr-menu-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.pf-loading { padding: 30px; text-align: center; font-weight: 800; }
.pf-friend h3 { margin: 16px 0 8px; }
.pf-top { display: flex; align-items: center; gap: 16px; }
.pf-top h2 { margin: 0 0 4px; }
.pf-tier { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-weight: 800; }
.pf-spud { flex: none; line-height: 0; }
.pf-tiles { grid-template-columns: repeat(4, 1fr); }
.pf-chart { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding: 6px; border-radius: 14px; background: rgba(13, 10, 46, 0.4); }
.pf-day { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.pf-bar { width: 100%; max-height: calc(100% - 16px); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #ffe55c, #ff9d0a); }
.pf-day small { font-size: 10px; color: var(--muted); }
.pf-exs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pf-ex { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 3px solid var(--edge); }
.pf-ex b { font-family: var(--display); font-weight: 400; font-size: 24px; color: #ffe55c; }
.pf-ex small { color: var(--muted); font-weight: 700; }
.pf-ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.pf-ach-one { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12px; font-weight: 800; }
@media (max-width: 760px) {
  .pf-tiles { grid-template-columns: repeat(2, 1fr); }
  .lg-hero { flex-direction: column; text-align: center; }
}
@media (max-width: 420px) {
  .side .tab { font-size: 9px; padding: 6px 0; }
  .side .tab-icon { font-size: 18px; }
}

/* ---------- gifts ---------- */
.gift-preview { display: flex; justify-content: center; margin: 4px 0 10px; }
.gift-slots { grid-template-columns: repeat(7, 1fr); margin-bottom: 10px; }
.gift-slots .choice { padding: 8px 0; font-size: 20px; }
.gift-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; max-height: 236px; overflow-y: auto; padding: 4px; margin-bottom: 10px; }
.gift-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 14px; border: 3px solid var(--edge); background: rgba(255, 255, 255, 0.06); color: inherit; font: inherit; cursor: pointer; }
.gift-item span { font-size: 11px; font-weight: 700; line-height: 1.15; text-align: center; }
.gift-item.on { border-color: #ffd21f; box-shadow: 0 0 0 3px #ffd21f; }
.gift-colours { margin-bottom: 10px; }
.gift-pop { text-align: center; }
.gift-burst { font-size: 64px; line-height: 1; animation: gift-pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes gift-pop { 0% { transform: scale(0.2) rotate(-20deg); } 100% { transform: scale(1) rotate(0); } }
.gift-spud { display: flex; justify-content: center; }
.gift-pop .row { justify-content: center; }
.ward-giftself { margin: 0 0 10px; }
.ward-tile.gift { border-color: #ffd21f; background: linear-gradient(160deg, rgba(255, 210, 31, 0.22), rgba(255, 95, 168, 0.14)); }
.ward-tile.gift .ward-state { color: #ffe55c; }

/* ---------- owners' stats ---------- */
.st-card { margin-bottom: 16px; }
.st-card .tiles.st-lifetime { grid-template-columns: 1fr; margin-bottom: 8px; }
.st-online h3 { display: flex; align-items: center; gap: 8px; }
.st-online .dot-online { position: static; flex: none; }
.st-names { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.st-name { padding: 4px 12px; border-radius: 99px; background: rgba(63, 224, 82, 0.18); border: 2px solid #3fe052; font-weight: 800; }
.st-card .tiles { margin: 6px 0 4px; }
.st-chart { display: flex; align-items: flex-end; gap: 6px; height: 190px; margin: 16px 0 8px; padding: 0 2px; }
.st-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.st-bar { width: 100%; min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #ffe55c, #ff9d0a); border: 3px solid var(--edge); display: flex; align-items: flex-end; overflow: hidden; max-height: calc(100% - 44px); }
.st-bar i { display: block; width: 100%; background: #3fe052; }
.st-n { font-family: var(--display); font-size: 14px; color: #fff; text-shadow: var(--outline-text); min-height: 17px; }
.st-day { font-size: 12px; font-weight: 800; color: var(--muted); }
.st-day.now { color: #ffe55c; }
.st-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--edge); vertical-align: -1px; margin-left: 4px; }
.st-key.all { background: #ffb02e; }
.st-key.in { background: #3fe052; }
@media (max-width: 760px) { .st-chart { gap: 3px; height: 160px; } .st-n { font-size: 11px; } }

/* ---------- wardrobe colours ---------- */
.ward-colours { width: 100%; text-align: left; background: rgba(13, 10, 46, 0.4); border: 3px solid var(--edge); border-radius: 16px; padding: 10px 12px; }
.ward-colours-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 15px; }
.ward-colours-head .muted { font-size: 13px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  position: relative; width: 34px; height: 34px; border-radius: 50%; padding: 0; cursor: pointer; background: var(--sw);
  border: 3px solid var(--edge); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 3px 0 var(--edge); transition: transform 0.1s;
}
.swatch:hover { transform: translateY(-2px); }
.swatch.on { outline: 3px solid #fff; outline-offset: 2px; }
.swatch:focus-visible { outline: 3px solid #ffe55c; outline-offset: 2px; }
.swatch.custom { display: grid; place-items: center; background: conic-gradient(#e5484d, #ffd21f, #3fc45a, #12b3a8, #2f80ed, #7c5cff, #ff5fa8, #e5484d); }
.swatch.custom.on { background: var(--sw); }
.swatch.custom span { font-size: 15px; pointer-events: none; filter: drop-shadow(0 1px 0 #000); }
.swatch.custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.ward-slots button { white-space: nowrap; }
.fr-found { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(13, 10, 46, 0.4); border: 3px solid var(--edge); }
.fr-found .fr-body b { font-size: 18px; }
.fr-found-actions { margin-top: 10px; }
.fr-invites { border-color: #ffd21f; }
.fr-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.fr-sub { margin: 16px 0 4px; font-size: 15px; color: var(--muted); }

/* ---------- feedback ---------- */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #d6e2ff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-btn:hover { color: #ffe55c; }
.fb-stat { font-size: 18px; }
.fb-types { grid-template-columns: repeat(4, 1fr); }
.fb-stars { display: flex; gap: 6px; }
.fb-star { font-size: 34px; line-height: 1; background: none; border: 0; padding: 0 2px; cursor: pointer; color: rgba(255, 255, 255, 0.25); text-shadow: 0 2px 0 var(--edge); }
.fb-star.on { color: #ffd21f; }
.fb-star:focus-visible { outline: 3px solid #fff; border-radius: 6px; }
.fb-msg { width: 100%; resize: vertical; min-height: 110px; font-size: 16px; line-height: 1.45; }
.modal-card p.fb-count { margin-top: 4px; font-size: 13px; color: var(--muted); text-align: right; }
.modal-card p.fb-wait { background: rgba(255, 210, 31, 0.15); border: 2px solid #ffd21f; border-radius: 12px; padding: 10px 12px; }
.fb-mine { display: flex; flex-direction: column; gap: 6px; }
.fb-mine-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; align-items: center; }
.fb-mine-row span:first-child { min-width: 0; overflow-wrap: anywhere; }
.fb-status { flex: none; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; border: 2px solid var(--edge); background: #120d40; color: #cfd6ff; }
.fb-status.s-planned { background: #2f80ed; color: #fff; }
.fb-status.s-added { background: #22a559; color: #fff; }
.fb-status.s-wontdo { background: #4b4870; color: #ddd; }
.inbox-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
.fb-item { margin-bottom: 14px; }
.fb-item.s-new { border-color: #ffd21f; }
.fb-item-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fb-rating { color: #ffd21f; letter-spacing: 0.05em; }
.fb-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0; font-size: 17px; }
.fb-set { margin-top: 10px; }
.fb-reply-btn { margin-top: 10px; }
.fb-reply-edit { margin-top: 12px; }
.fb-reply-label { display: block; font-weight: 800; margin-bottom: 6px; }
.fb-reply-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 6px; }
.fb-reply-foot .fb-count { margin-right: auto; font-size: 13px; color: var(--muted); }
.fb-reply-out, .fb-reply-in { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(63, 224, 82, 0.12); border: 2px solid #3fe052; }
.fb-reply-out > div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fb-reply-out p, .fb-reply-in p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
.modal-card .fb-reply-in p { margin: 4px 0 0; font-size: 14px; }
.fb-reply-in b { font-size: 13px; color: #86ff6e; }
.fb-mine-item { padding: 6px 0; border-top: 2px solid var(--line); }
.fb-mine-item:first-child { border-top: 0; }
@media (max-width: 760px) {
  .fb-types { grid-template-columns: repeat(2, 1fr); }
}
.welcome-gsi { display: flex; justify-content: center; margin: 18px 0 8px; min-height: 44px; }
.welcome-wait { text-align: center; font-weight: 800; margin: 18px 0 8px; }
.welcome-skip { justify-content: center; margin-top: 6px; }
.welcome-note { text-align: center; }
.modal-card .account-error, .account-error { color: #ffb3c7; font-weight: 700; }
.pf-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-weight: 700; }
.pf-code .fcode { font-size: 24px; }
@media (max-width: 1020px) {
  .cols { grid-template-columns: minmax(0, 1fr); } /* let a long line wrap instead of widening the page */
}
@media (max-width: 760px) {
  .fr-notice { flex-direction: column; text-align: center; }
  .fcode { font-size: 26px; }
  .lg-row { gap: 8px; padding-right: 10px; }
}
@media (max-width: 400px) {
  .tab { font-size: 8.5px; letter-spacing: -0.02em; padding-left: 0; padding-right: 0; } /* eight tabs on a phone */
  .fcode { font-size: 22px; }
}

/* ---------- username ---------- */
.hero-name { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
h1.player-name { text-transform: none; font-size: 36px; overflow-wrap: anywhere; }
.name-row { display: flex; gap: 8px; align-items: stretch; }
.name-in {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; font: inherit; font-size: 18px; font-weight: 800; color: #fff;
  background: #120d40; border: 3px solid var(--edge); box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.45);
}
.name-in::placeholder { color: rgba(185, 195, 255, 0.55); font-weight: 700; }
.name-in:focus { outline: 4px solid #fff; outline-offset: 2px; }
.modal-card p.name-note { margin-top: 8px; min-height: 1.5em; font-size: 14px; font-weight: 700; color: var(--muted); }
.modal-card p.name-note.ok { color: #86ff6e; }
.modal-card p.name-note.bad { color: #ffb3c7; }

/* ---------- courses: one per exercise ---------- */
.courses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.course {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 18px; cursor: pointer; text-align: left; font: inherit; color: #fff;
  background: linear-gradient(180deg, #2a3299 0%, #1c2278 100%); border: 3px solid var(--edge);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.16), 0 5px 0 var(--edge); transition: transform 0.12s;
}
.course:hover { transform: translateY(-2px); }
.course:active { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.16), 0 2px 0 var(--edge); }
.course:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
.course.on { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 72%, #000) 100%); }
.course.new { border-style: dashed; }
.course-icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 19px;
  background: color-mix(in srgb, var(--c) 85%, #fff); border: 3px solid var(--edge); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35);
}
.course.on .course-icon { background: #fff; }
.course-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.course-text b { font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: 0.02em; text-shadow: var(--outline-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-text small { font-size: 13px; font-weight: 800; color: var(--muted); }
.course.on .course-text small { color: #fff; text-shadow: var(--outline-text); }

.ex-card { margin-bottom: 18px; }
.ex-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 2px solid var(--line); }
.ex-row:first-of-type { border-top: 0; }
.ex-icon {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px;
  background: var(--c); border: 3px solid var(--edge); box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.35), 0 4px 0 var(--edge);
}
.ex-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ex-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ex-head b, .ex-xp { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; text-shadow: var(--outline-text); }
.ex-head b { font-size: 20px; }
.ex-xp { font-size: 20px; color: #ffe55c; white-space: nowrap; }
.ex-detail { font-size: 13px; font-weight: 700; color: var(--muted); }
.bar.ex i { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff) 0%, var(--c) 100%); }
.ex-row .btn, .ex-row .tag { flex: none; }

.play-with { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; font-weight: 800; }
.play-with .seg { flex: 0 1 auto; }
.play-with .seg button { padding: 8px 16px; }

@media (max-width: 760px) {
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-row { flex-wrap: wrap; }
  .ex-row .btn, .ex-row .tag { margin-left: 66px; }
}

/* ---------- icons (js/icons.js swaps these in for emoji) ---------- */
.ico { display: inline-block; width: 1.3em; height: 1.3em; vertical-align: -0.3em; flex: none; filter: drop-shadow(0 2px 0 rgba(8, 5, 40, 0.55)); }
.ico svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tab-icon .ico, .quest-icon .ico, .road-icon .ico, .shop-icon .ico, .game-icon .ico, .ach-icon .ico, .big .ico { width: 1.15em; height: 1.15em; vertical-align: middle; }

/* ---------- Spud ---------- */
.spud.idle { animation: spud-idle 2.6s ease-in-out infinite; transform-origin: 50% 96%; }
@keyframes spud-idle { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, 0.97); } }

/* ---------- motion ---------- */
.content > * { animation: view-in 0.28s cubic-bezier(0.2, 1.2, 0.4, 1); }
@keyframes view-in { from { transform: translateY(14px) scale(0.985); opacity: 0; } }
.fx-bit { position: fixed; z-index: 70; width: 12px; height: 16px; border-radius: 3px; border: 2px solid var(--edge); pointer-events: none; animation: fx-fly var(--t, 1s) cubic-bezier(0.15, 0.7, 0.3, 1) forwards; }
@keyframes fx-fly {
  0% { transform: translate(0, 0) rotate(0deg) scale(0.4); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); opacity: 0; }
}

@media (max-width: 760px) {
  h1 { font-size: 32px; -webkit-text-stroke-width: 6px; }
  .side { border-right: 0; border-top: 4px solid var(--edge); gap: 0; }
  .tab { font-size: 10px; letter-spacing: 0; padding: 6px 2px; border-width: 2px; }
  .tab-icon { font-size: 22px; }
  .tab .dot { top: -6px; right: 0; min-width: 20px; height: 20px; font-size: 12px; }
  .stat { padding: 4px 10px; }
  .stat b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn.primary.big::after, .btn.gold.big::after, .spud.idle, .content > *, .fx-bit { animation: none !important; }
}

/* ---------- phones: the part of the screen you can actually see ----------
   On iPhone Safari, 100vh is the screen height with Safari's toolbars hidden,
   so the bottom of the app (the tab bar) sat underneath Safari's toolbar and
   could not be seen. dvh is the height actually visible right now. Browsers
   that don't know dvh keep the 100vh line before it.
   index.html sets viewport-fit=cover, so the app also fills the space around
   the notch and the home bar; the env(safe-area-inset-*) padding keeps
   buttons and text out of those areas. On other devices it is 0. */
html { -webkit-text-size-adjust: 100%; }
.shell { height: 100vh; height: 100dvh; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.main { height: 100vh; height: 100dvh; }
canvas.lava { height: min(380px, 100dvh - 420px); }
.stats { padding-top: max(16px, env(safe-area-inset-top)); }
#modal { padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
#toasts { bottom: calc(24px + env(safe-area-inset-bottom)); }
.wk-top { padding-top: max(22px, env(safe-area-inset-top)); padding-left: max(26px, env(safe-area-inset-left)); padding-right: max(26px, env(safe-area-inset-right)); }
.wk-foot { bottom: calc(26px + env(safe-area-inset-bottom)); }
.drop { padding-top: max(22px, env(safe-area-inset-top)); padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
@media (max-width: 760px) {
  .main { height: auto; } /* the shell's grid sizes it on phones */
  .stats { padding-top: max(10px, env(safe-area-inset-top)); }
  .side { padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  #toasts { bottom: calc(96px + env(safe-area-inset-bottom)); } /* above the tab bar */
}

/* ---------- phones: let Safari handle the page ----------
   Sizing the app to the screen height still left iPhone Safari's bottom
   address bar covering the tab bar. On phones the page now scrolls like an
   ordinary web page, and the tab bar is fixed to the bottom of the screen,
   which Safari always keeps above its own toolbar. The content gets room
   at the bottom so nothing hides behind the tab bar. */
@media (max-width: 760px) {
  body { overflow: visible; }
  .shell { display: block; height: auto; min-height: 100dvh; }
  .main { height: auto; }
  .content { overflow: visible; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; }
  #toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
