/* Stapel — DOM overlay UI (menus, results, toasts, splash, rotate overlay).
   Every size scales with --u (= canvas width / 720 px), set on #ui by js/ui/dom.js,
   so the UI looks identical on every phone. Before JS runs (splash), --u is
   estimated from the viewport. Palette mirrors PALETTE in js/config.js. */

:root {
  --u: calc(min(100vw, 62.5vh) / 720);
  --font: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;

  --ink: #1d2b45;
  --ink-soft: #3c4d6e;
  --muted: #56668a;      /* 5.2:1 on --panel, 5.7:1 on white */
  --line: #e3ebf5;
  --panel: #eef5fc;
  --card: #ffffff;
  --scrim: rgba(12, 32, 66, 0.46);

  --protea: #f25c84;    --protea-l: #ff9ab5;    --protea-d: #b83a5e;
  --karoo: #f39a2b;     --karoo-l: #ffc56e;     --karoo-d: #b86d12;
  --sonneblom: #f7c948; --sonneblom-l: #ffe38c; --sonneblom-d: #c39a1c;
  --bosveld: #5bbf5a;   --bosveld-l: #92e08d;   --bosveld-d: #3b8b3c;
  --oseaan: #2fb5b0;    --oseaan-l: #74ddd8;    --oseaan-d: #1d817d;
  --jakaranda: #8e6ce0; --jakaranda-l: #bba4f5; --jakaranda-d: #6447ad;
  --hemel: #3d8beb;     --hemel-l: #86b9f7;     --hemel-d: #2563b0;
  --klei: #d9483b;      --klei-l: #f28a7f;      --klei-d: #9e2c22;
  --wa: #25d366;        --wa-l: #6ee59a;        --wa-d: #168f45;

  /* effective safe-area insets inside the canvas rect (dom.js measures them) */
  --sat: 0px; --sar: 0px; --sab: 0px; --sal: 0px;
  /* (1.23) the minted coin (.coin-ic, and the River run's counter and flying coins in js/rivier/view.js) */
  --coin-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='r' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff0a0'/%3E%3Cstop offset='.45' stop-color='%23f1b52a'/%3E%3Cstop offset='1' stop-color='%23a86200'/%3E%3C/linearGradient%3E%3CradialGradient id='f' cx='.4' cy='.32' r='.78'%3E%3Cstop offset='0' stop-color='%23fff7cf'/%3E%3Cstop offset='.3' stop-color='%23ffdd55'/%3E%3Cstop offset='.72' stop-color='%23f3ae1f'/%3E%3Cstop offset='1' stop-color='%23cf8508'/%3E%3C/radialGradient%3E%3ClinearGradient id='e' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23a85f00'/%3E%3Cstop offset='1' stop-color='%23c77c06'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='32' cy='32' r='31.5' fill='%236e3d00'/%3E%3Ccircle cx='32' cy='32' r='30' fill='url(%23r)'/%3E%3Ccircle cx='32' cy='32' r='28' fill='none' stroke='%23b06d06' stroke-width='2.4' stroke-dasharray='1.6 1.33'/%3E%3Ccircle cx='32' cy='32' r='24.6' fill='%239a5600'/%3E%3Ccircle cx='32' cy='32' r='23.6' fill='url(%23f)'/%3E%3Cg fill='%23fff2a6' opacity='.9'%3E%3Crect x='19.8' y='37.2' width='25' height='8.6' rx='2'/%3E%3Crect x='23.8' y='28.2' width='18' height='8.6' rx='2'/%3E%3Crect x='26.8' y='19.2' width='11' height='8.6' rx='2'/%3E%3C/g%3E%3Cg fill='url(%23e)'%3E%3Crect x='19' y='36.4' width='25' height='8.6' rx='2'/%3E%3Crect x='23' y='27.4' width='18' height='8.6' rx='2'/%3E%3Crect x='26' y='18.4' width='11' height='8.6' rx='2'/%3E%3C/g%3E%3Cpath d='M13.5 25 A19.5 19.5 0 0 1 27 12.6' fill='none' stroke='%23fffdf0' stroke-opacity='.9' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='45' cy='18' r='1.6' fill='%23fffef5'/%3E%3C/svg%3E");
}
/* (t58, 18 Nov 2026, the owner: "lets remove the whole 'Stapel' idea out of the game please. Lets make this a game on its
   own") Lekker Surf's own coin (html.surf, set by main.js where the game is Lekker Surf): the same minted gold, a CROWN
   struck in it as on its first screen's poster, where Stapel's coin carries its tower of three blocks. One picture for
   every counter, price and card, and for the coins on the river (js/rivier/hazards.js reads --coin-img). */
html.surf { --coin-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='r' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff0a0'/%3E%3Cstop offset='.45' stop-color='%23f1b52a'/%3E%3Cstop offset='1' stop-color='%23a86200'/%3E%3C/linearGradient%3E%3CradialGradient id='f' cx='.4' cy='.32' r='.78'%3E%3Cstop offset='0' stop-color='%23fff7cf'/%3E%3Cstop offset='.3' stop-color='%23ffdd55'/%3E%3Cstop offset='.72' stop-color='%23f3ae1f'/%3E%3Cstop offset='1' stop-color='%23cf8508'/%3E%3C/radialGradient%3E%3ClinearGradient id='e' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23a85f00'/%3E%3Cstop offset='1' stop-color='%23c77c06'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='32' cy='32' r='31.5' fill='%236e3d00'/%3E%3Ccircle cx='32' cy='32' r='30' fill='url(%23r)'/%3E%3Ccircle cx='32' cy='32' r='28' fill='none' stroke='%23b06d06' stroke-width='2.4' stroke-dasharray='1.6 1.33'/%3E%3Ccircle cx='32' cy='32' r='24.6' fill='%239a5600'/%3E%3Ccircle cx='32' cy='32' r='23.6' fill='url(%23f)'/%3E%3Cg fill='%23fff2a6' opacity='.9' stroke-linejoin='round'%3E%3Cpath d='M20.3 41.4 L20.3 26.2 L26.8 32.4 L32.8 22.0 L38.8 32.4 L45.3 26.2 L45.3 41.4 Z'/%3E%3Crect x='20.3' y='42.8' width='25' height='3.8' rx='1.3'/%3E%3Ccircle cx='20.3' cy='24.4' r='2'/%3E%3Ccircle cx='32.8' cy='19.8' r='2.3'/%3E%3Ccircle cx='45.3' cy='24.4' r='2'/%3E%3C/g%3E%3Cg fill='url(%23e)' stroke-linejoin='round'%3E%3Cpath d='M19.5 40.6 L19.5 25.4 L26.0 31.6 L32.0 21.2 L38.0 31.6 L44.5 25.4 L44.5 40.6 Z'/%3E%3Crect x='19.5' y='42.0' width='25' height='3.8' rx='1.3'/%3E%3Ccircle cx='19.5' cy='23.6' r='2'/%3E%3Ccircle cx='32.0' cy='19.0' r='2.3'/%3E%3Ccircle cx='44.5' cy='23.6' r='2'/%3E%3C/g%3E%3Cpath d='M13.5 25 A19.5 19.5 0 0 1 27 12.6' fill='none' stroke='%23fffdf0' stroke-opacity='.9' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='45' cy='18' r='1.6' fill='%23fffef5'/%3E%3C/svg%3E"); }

*, *::before, *::after { box-sizing: border-box; }
/* (1.12.1) the game loop is asleep (an idle menu or results): every page animation rests too, so the screen can
   stop redrawing (main.js sleepLoop adds .zzz; a tap wakes it all) */
.zzz *, .zzz *::before, .zzz *::after { animation-play-state: paused !important; }
/* (1.15.3, the owner: "the graphiti after you have reached a new hight freazes mid air then continues") a new best's
   confetti falls once: it finishes falling, then the screen can rest */
.zzz .confetti i { animation-play-state: running !important; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html {
  background: #1b3f8f;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #4fb0ee 0%, #2f86d8 48%, #1b3f8f 100%);
  font-family: var(--font);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
  touch-action: manipulation;
}

#game {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

#game canvas {
  display: block;
  touch-action: none;
}

/* letterboxed column on desktop: lift the game off the backdrop */
@media (hover: hover) and (pointer: fine) {
  #game canvas { box-shadow: 0 24px 60px rgba(6, 20, 50, 0.35); }   /* (1.12: a plain drop shadow, not a glow) */
}

.emoji {
  font-family: var(--emoji);
  font-weight: 400;
  font-style: normal;
  line-height: 1;
}
/* (Stapel 2.0, spoed) an emoji that becomes a toy has the toy's width from the start: the phone's own emoji, shown till the
   sheet lands, is centred in the same 1.2em, so a chip or button never changes size when the toys arrive (pillshift2). */
:where(.emoji.toy) { display: inline-block; width: 1.2em; text-align: center; white-space: nowrap; }
/* (1.40) a toy picture in place of the phone's emoji (js/core/toys.js: a sheet of squares, six a row; its place in the sheet is set on the span); the emoji's own
   text is pushed out of its box. Only once the sheet has loaded (html.toys): without it the emoji shows as before. (:where: a rule that hides an
   emoji somewhere, the Shop's tabs on a narrow phone, still wins.) */
:where(html.toys) .emoji.toy { display: inline-block; width: 1.2em; height: 1.2em; line-height: 1; overflow: hidden; white-space: nowrap; text-indent: -9em; vertical-align: -0.24em;
  background-image: url(../img/art/toys.webp); background-repeat: no-repeat; }
:where(html.toys) .emoji.toy.toy2 { background-image: url(../img/art/toys2.webp); }

/* ------------------------------------------------------------------------- */
/* Overlay root                                                              */
/* ------------------------------------------------------------------------- */
#ui {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
  font-size: calc(28 * var(--u));
  line-height: 1.25;
  color: var(--ink);
}

#ui button {
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  cursor: pointer;
}

#ui :focus { outline: none; }
#ui :focus-visible {
  outline: calc(6 * var(--u)) solid #fff;
  outline-offset: calc(5 * var(--u));
  box-shadow: 0 0 0 calc(14 * var(--u)) rgba(29, 43, 69, 0.45);
}
/* screens/sheets take focus programmatically for keyboard users; no ring around the whole page */
#ui .screen:focus-visible, #ui .modal:focus-visible { outline: none; box-shadow: none; }

/* zero-specificity reset so component classes always win */
:where(#ui) :where(h1, h2, h3, p, ol, ul) { margin: 0; padding: 0; }
:where(#ui) :where(ol, ul) { list-style: none; }

svg.ic {
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
  overflow: visible;
}

/* ------------------------------------------------------------------------- */
/* Screens & modals                                                          */
/* ------------------------------------------------------------------------- */
.screen, .modal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding:
    calc(var(--sat) + 22 * var(--u))
    calc(var(--sar) + 28 * var(--u))
    calc(var(--sab) + 30 * var(--u))
    calc(var(--sal) + 28 * var(--u));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.26s;
}

.screen::-webkit-scrollbar, .modal::-webkit-scrollbar, .sheet-body::-webkit-scrollbar { display: none; }

.screen.on, .modal.on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0s;
}

/* content lifts in when its screen appears */
.screen > *, .modal > .sheet {
  transform: translateY(calc(36 * var(--u))) scale(0.98);
  transition: transform 0.34s cubic-bezier(0.2, 1.3, 0.35, 1);
}
.screen.on > *, .modal.on > .sheet { transform: none; }

/* (1.25.11) the menu holds its pictures still while it scrolls (js/main.js) */
html.scrolling .screen-menu *, html.scrolling .screen-menu *::before, html.scrolling .screen-menu *::after { animation-play-state: paused !important; }

/* never animate what nobody sees (keeps the GPU free during play) */
.screen:not(.on) *, .screen:not(.on) *::before, .screen:not(.on) *::after,
.modal:not(.on) *, .modal:not(.on) *::before, .modal:not(.on) *::after {
  animation-play-state: paused !important;
}

/* (1.12.1) the keyboard is up: the layout keeps its size (js/main.js), so the open screen or sheet gets room above it */
#ui.kb .screen.on, #ui.kb .modal.on { padding-bottom: calc(var(--sab) + 30 * var(--u) + var(--kb, 0px)); }

.screen-menu { z-index: 1; }
.screen-results, .screen-pause { z-index: 2; background: var(--scrim); }
.modal {
  z-index: 5;
  background: var(--scrim);
  align-items: center;
  justify-content: center;
}

.spacer { flex: 1 1 0; min-height: calc(16 * var(--u)); }

/* ------------------------------------------------------------------------- */
/* Cards                                                                     */
/* ------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--card);
  border-radius: calc(44 * var(--u));
  padding: calc(34 * var(--u)) calc(34 * var(--u)) calc(36 * var(--u));
  box-shadow:
    0 calc(8 * var(--u)) 0 rgba(20, 52, 104, 0.12),
    0 calc(26 * var(--u)) calc(50 * var(--u)) rgba(10, 34, 78, 0.3);
}

.label {
  font-size: calc(21 * var(--u));
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------------- */
/* Buttons — chunky, rounded, with a real pressed state                       */
/* ------------------------------------------------------------------------- */
/* Button fills are a shade darker than the block palette so white labels reach 3.3–4.3:1. */
.btn {
  --bg: #d9700a;
  --bg-l: #f39a2b;
  --bg-d: #a65400;
  --fg: #fff;
  --depth: calc(10 * var(--u));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(16 * var(--u));
  width: 100%;
  min-height: calc(104 * var(--u));
  margin: 0;
  padding: calc(14 * var(--u)) calc(30 * var(--u));
  border: 0;
  border-radius: calc(32 * var(--u));
  background: linear-gradient(180deg, var(--bg-l) 0%, var(--bg) 22%, var(--bg) 100%);
  color: var(--fg);
  font-size: calc(38 * var(--u));
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
  /* outlined label: readable on every fill */
  text-shadow: 0 calc(3 * var(--u)) 0 var(--bg-d), 0 0 calc(2 * var(--u)) var(--bg-d), 0 0 calc(1 * var(--u)) var(--bg-d);
  box-shadow:
    0 var(--depth) 0 var(--bg-d),
    0 calc(var(--depth) + 10 * var(--u)) calc(22 * var(--u)) rgba(10, 34, 78, 0.28),
    inset 0 calc(3 * var(--u)) 0 rgba(255, 255, 255, 0.35);
  transform: translateY(0);
  transition: transform 0.07s ease-out, box-shadow 0.07s ease-out, filter 0.15s;
}

.btn::after {
  /* glossy highlight */
  content: '';
  position: absolute;
  left: calc(22 * var(--u));
  right: calc(22 * var(--u));
  top: calc(9 * var(--u));
  height: calc(14 * var(--u));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.btn:active, .btn.is-pressed {
  transform: translateY(calc(var(--depth) - 2 * var(--u)));
  box-shadow:
    0 calc(2 * var(--u)) 0 var(--bg-d),
    0 calc(4 * var(--u)) calc(8 * var(--u)) rgba(10, 34, 78, 0.24),
    inset 0 calc(3 * var(--u)) 0 rgba(255, 255, 255, 0.25);
}

@media (hover: hover) {
  .btn:hover { filter: brightness(1.06); }
}

.btn .ic { font-size: 1.05em; filter: drop-shadow(0 calc(3 * var(--u)) 0 rgba(0, 0, 0, 0.15)); }
.btn .btn-txt { display: flex; flex-direction: column; align-items: center; gap: calc(4 * var(--u)); min-width: 0; }
.btn .btn-sub {
  font-size: calc(22 * var(--u));
  font-weight: 700;
  opacity: 0.92;
  letter-spacing: 0;
  text-shadow: none;
}

.btn-big { min-height: calc(118 * var(--u)); font-size: calc(42 * var(--u)); border-radius: calc(36 * var(--u)); }

.btn-white {
  --bg: #ffffff; --bg-l: #ffffff; --bg-d: #c9d7ea; --fg: var(--ink);
  text-shadow: none;
}
.btn-white::after { display: none; }
.card .btn-white { --bg: var(--panel); --bg-l: var(--panel); --bg-d: #cfdcee; }
.btn-quit { --fg: var(--klei-d); }
.btn-white .ic { filter: none; }
.btn-green  { --bg: #3f9a3e; --bg-l: #5bbf5a; --bg-d: #2b6e2b; }
.btn-teal   { --bg: #1d8f8a; --bg-l: #2fb5b0; --bg-d: #146a66; }
.btn-purple { --bg: var(--jakaranda); --bg-l: var(--jakaranda-l); --bg-d: var(--jakaranda-d); }
.btn-blue   { --bg: #2f74cf; --bg-l: var(--hemel); --bg-d: var(--hemel-d); }
.btn-wa     { --bg: #128c4a; --bg-l: #25d366; --bg-d: #0c6434; }
.btn-klei   { --bg: var(--klei); --bg-l: var(--klei-l); --bg-d: var(--klei-d); }

.btn-row { display: flex; gap: calc(18 * var(--u)); }
.btn-row > .btn { flex: 1 1 0; min-width: 0; padding-left: calc(18 * var(--u)); padding-right: calc(18 * var(--u)); white-space: nowrap; }

/* round icon buttons (sheet close) */
.icon-btn {
  --depth: calc(6 * var(--u));
  display: grid;
  place-items: center;
  width: calc(84 * var(--u));
  height: calc(84 * var(--u));
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: calc(40 * var(--u));
  box-shadow:
    0 var(--depth) 0 #c9d7ea,
    0 calc(12 * var(--u)) calc(20 * var(--u)) rgba(10, 34, 78, 0.22);
  transition: transform 0.07s ease-out, box-shadow 0.07s ease-out, color 0.15s, background 0.15s;
}
.icon-btn:active {
  transform: translateY(calc(var(--depth) - 1 * var(--u)));
  box-shadow: 0 calc(1 * var(--u)) 0 #c9d7ea, 0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(10, 34, 78, 0.2);
}

/* ------------------------------------------------------------------------- */
/* Logo: letters on toy blocks, stacked a little askew                       */
/* ------------------------------------------------------------------------- */
.logo {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: calc(7 * var(--u));
  padding-top: calc(120 * var(--u));   /* the letters sit on the crane jib (LAYOUT.jibY) */
  font-size: calc(70 * var(--u));
}

.lb {
  --c: var(--protea); --cl: var(--protea-l); --cd: var(--protea-d);
  --r: 0deg; --y: 0px;
  position: relative;
  display: grid;
  place-items: center;
  width: calc(98 * var(--u));
  height: calc(98 * var(--u));
  border-radius: calc(16 * var(--u));
  border: calc(4 * var(--u)) solid var(--cd);
  background: linear-gradient(180deg, var(--cl) 0 15%, var(--c) 15% 80%, var(--cd) 80% 100%);
  box-shadow:
    inset 0 calc(-4 * var(--u)) 0 rgba(0, 0, 0, 0.06),
    0 calc(12 * var(--u)) calc(18 * var(--u)) rgba(10, 34, 78, 0.28);
  color: #fff;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 calc(5 * var(--u)) 0 var(--cd),
    calc(2 * var(--u)) 0 0 var(--cd),
    calc(-2 * var(--u)) 0 0 var(--cd),
    0 calc(-2 * var(--u)) 0 var(--cd);
  transform-origin: 50% 100%;
  transform: translateY(var(--y)) rotate(var(--r));
  animation: lb-wobble calc(var(--dur, 3s) * 1.6) ease-in-out var(--delay, 0s) infinite;
}

.lb > span { transform: translateY(calc(-3 * var(--u))); }
/* (30 Oct 2026, the owner: "polish ... till it shines") the title's letter blocks shine like the game's own blocks: a soft
   sheen in the top band, a sparkle where the light catches it */
.lb::after {
  content: '';
  position: absolute;
  left: 9%;
  right: 9%;
  top: 5%;
  height: 11%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse 16% 85% at 9% 50%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.28) 55%, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.lb:nth-child(1) { --c: var(--protea);    --cl: var(--protea-l);    --cd: var(--protea-d);    --r: -5deg;   --y: calc(4 * var(--u));  --dur: 3.1s; --delay: -0.4s; }
.lb:nth-child(2) { --c: var(--karoo);     --cl: var(--karoo-l);     --cd: var(--karoo-d);     --r: 3deg;    --y: calc(-6 * var(--u)); --dur: 2.7s; --delay: -1.3s; }
.lb:nth-child(3) { --c: var(--sonneblom); --cl: var(--sonneblom-l); --cd: var(--sonneblom-d); --r: -2deg;   --y: calc(2 * var(--u));  --dur: 3.4s; --delay: -0.9s; }
.lb:nth-child(4) { --c: var(--bosveld);   --cl: var(--bosveld-l);   --cd: var(--bosveld-d);   --r: 4deg;    --y: calc(-8 * var(--u)); --dur: 2.9s; --delay: -2.1s; }
.lb:nth-child(5) { --c: var(--oseaan);    --cl: var(--oseaan-l);    --cd: var(--oseaan-d);    --r: -3.5deg; --y: calc(1 * var(--u));  --dur: 3.3s; --delay: -1.7s; }
.lb:nth-child(6) { --c: var(--jakaranda); --cl: var(--jakaranda-l); --cd: var(--jakaranda-d); --r: 6deg;    --y: calc(-46 * var(--u)); }

/* the last letter dangles from the crane hook, about to be placed */
.lb.hang {
  transform-origin: 50% calc(-62 * var(--u));
  animation: lb-swing 2.6s ease-in-out infinite;
}
.lb.hang::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14 * var(--u));
  width: calc(5 * var(--u));
  height: calc(var(--rope, 64) * var(--u));
  margin-left: calc(-2.5 * var(--u));
  border-radius: 999px;
  background: linear-gradient(0deg, #2b2b2b 60%, rgba(43, 43, 43, 0));
}
.screen-menu .lb.hang::before { --rope: 420; background: #2b2b2b; }
.lb.hang::after {
  /* hook */
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2 * var(--u));
  width: calc(26 * var(--u));
  height: calc(16 * var(--u));
  margin-left: calc(-13 * var(--u));
  border-radius: calc(5 * var(--u)) calc(5 * var(--u)) calc(3 * var(--u)) calc(3 * var(--u));
  background: #f5b800;
  border: calc(3 * var(--u)) solid #2b2b2b;
}

/* (1.12, quieter: a gentle sway, slower, not a wobble) */
@keyframes lb-wobble {
  0%, 100% { transform: translateY(var(--y)) rotate(calc(var(--r) - 0.7deg)); }
  50% { transform: translateY(var(--y)) rotate(calc(var(--r) + 0.7deg)); }
}

@keyframes lb-swing {
  0%, 100% { transform: translateY(var(--y)) rotate(calc(var(--r) - 4deg)); }
  50% { transform: translateY(var(--y)) rotate(calc(var(--r) - 12deg)); }
}

.tagline {
  margin-top: calc(22 * var(--u));
  text-align: center;
  font-size: calc(34 * var(--u));
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow:
    0 calc(3 * var(--u)) 0 rgba(29, 43, 69, 0.42),
    0 0 calc(18 * var(--u)) rgba(29, 43, 69, 0.25);
}

/* a soft navy pill behind the tagline keeps it readable over clouds and sky (≥ 6:1) */
.tagline > span {
  display: inline-block;
  padding: calc(6 * var(--u)) calc(22 * var(--u));
  border-radius: 999px;
  background: rgba(29, 43, 69, 0.38);
}

/* ------------------------------------------------------------------------- */
/* Menu                                                                      */
/* ------------------------------------------------------------------------- */
.screen-menu {
  background:
    linear-gradient(180deg, rgba(14, 60, 120, 0.18) 0%, rgba(14, 60, 120, 0) 26%),
    linear-gradient(0deg, rgba(14, 50, 100, 0.28) 0%, rgba(14, 50, 100, 0) 46%);
}

/* icon dock: how-to, stats, sound, vibration */
.dock {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: calc(22 * var(--u));
}
.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(8 * var(--u));
  min-width: calc(120 * var(--u));
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: calc(21 * var(--u));
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 calc(2 * var(--u)) 0 rgba(29, 43, 69, 0.5), 0 0 calc(10 * var(--u)) rgba(29, 43, 69, 0.3);
}
.dock-ic {
  --depth: calc(7 * var(--u));
  display: grid;
  place-items: center;
  width: calc(86 * var(--u));
  height: calc(86 * var(--u));
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: calc(40 * var(--u));
  text-shadow: none;
  box-shadow:
    0 var(--depth) 0 #c9d7ea,
    0 calc(12 * var(--u)) calc(20 * var(--u)) rgba(10, 34, 78, 0.24);
  transition: transform 0.07s ease-out, box-shadow 0.07s ease-out, color 0.15s, background 0.15s;
}
.dock-btn:active .dock-ic {
  transform: translateY(calc(var(--depth) - 1 * var(--u)));
  box-shadow: 0 calc(1 * var(--u)) 0 #c9d7ea, 0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(10, 34, 78, 0.2);
}
.dock-btn[aria-pressed="false"] .dock-ic { color: #9aa8c0; background: #e6ecf5; }
.card .dock-btn { color: var(--muted); text-shadow: none; }
.card .dock-ic { background: var(--panel); box-shadow: 0 var(--depth) 0 #d5e2f2; }
.card .dock-btn:active .dock-ic { box-shadow: 0 calc(1 * var(--u)) 0 #d5e2f2; }
#ui .dock-btn:focus-visible { outline: none; box-shadow: none; }
#ui .dock-btn:focus-visible .dock-ic { outline: calc(5 * var(--u)) solid #fff; outline-offset: calc(4 * var(--u)); }
/* inside white cards a white ring is invisible */
#ui .card .dock-btn:focus-visible .dock-ic { outline-color: var(--hemel-d); }
#ui .card .btn:focus-visible { outline: calc(5 * var(--u)) solid var(--hemel-d); outline-offset: calc(4 * var(--u)); }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--u));
  height: calc(64 * var(--u));
  min-width: 44px;   /* (1.13.4) a thumb-sized target, also for the lone 🏆 */
  padding: 0 calc(24 * var(--u)) 0 calc(18 * var(--u));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: calc(30 * var(--u));
  font-weight: 900;
  box-shadow: 0 calc(8 * var(--u)) calc(18 * var(--u)) rgba(10, 34, 78, 0.2);
  white-space: nowrap;
}
.chip .emoji { font-size: calc(34 * var(--u)); }
.chip.is-zero { opacity: 0.85; }
.chip.is-zero .emoji { filter: grayscale(1); opacity: 0.6; }

.menu-stack { display: flex; flex-direction: column; gap: calc(22 * var(--u)); }

.daily-card { padding-top: calc(30 * var(--u)); }
/* die weekkis on the daily card (1.10): seven boxes, today's lit, and what it holds */
.week-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: calc(6 * var(--u)) calc(10 * var(--u));
  margin: calc(12 * var(--u)) 0 calc(4 * var(--u));
  padding: calc(8 * var(--u)) calc(12 * var(--u));
  border-radius: calc(18 * var(--u));
  background: #fff7dd;
  color: #6b4d00;
  font-weight: 800;
}
.wk-title { font-size: max(10px, calc(18 * var(--u))); letter-spacing: 0.04em; text-transform: uppercase; }
.wk-cells { display: inline-flex; gap: calc(4 * var(--u)); }
.wk-cell {
  display: grid;
  place-items: center;
  width: calc(36 * var(--u));
  height: calc(36 * var(--u));
  border-radius: calc(10 * var(--u));
  background: #fff;
  box-shadow: inset 0 0 0 calc(2 * var(--u)) #f0d78f;
  font-size: calc(20 * var(--u));
  opacity: 0.55;
}
.wk-cell.is-done { opacity: 1; background: var(--bosveld); color: #fff; box-shadow: none; font-weight: 900; }
.wk-cell.is-today { opacity: 1; box-shadow: inset 0 0 0 calc(3 * var(--u)) var(--karoo); animation: wk-pulse 2.4s ease-in-out infinite; }
.wk-cell.is-big { width: calc(42 * var(--u)); }
.wk-line, .wk-shield { font-size: max(12px, calc(21 * var(--u))); }
@keyframes wk-pulse { 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .wk-cell.is-today { animation: none; } }
.rm .wk-cell.is-today { animation: none; }

.daily-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(18 * var(--u));
  margin-bottom: calc(16 * var(--u));
  text-align: center;
}
.daily-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(82 * var(--u));
  height: calc(82 * var(--u));
  border-radius: calc(22 * var(--u));
  background: linear-gradient(180deg, var(--sonneblom-l), var(--sonneblom));
  box-shadow: inset 0 calc(-6 * var(--u)) 0 var(--sonneblom-d);
  font-size: calc(46 * var(--u));
}
.daily-title { font-size: calc(40 * var(--u)); font-weight: 900; line-height: 1.05; }
.daily-date { margin-top: calc(6 * var(--u)); font-size: calc(25 * var(--u)); font-weight: 700; color: var(--muted); }
.daily-card > .streak {
  position: absolute;
  top: calc(-26 * var(--u));
  right: calc(26 * var(--u));
  height: calc(58 * var(--u));
  padding: 0 calc(22 * var(--u)) 0 calc(14 * var(--u));
  background: linear-gradient(180deg, #fff6ea, #ffe4c2);
  color: var(--karoo-d);
  box-shadow: inset 0 calc(-5 * var(--u)) 0 #f6cf9c, 0 calc(8 * var(--u)) calc(16 * var(--u)) rgba(10, 34, 78, 0.22);
  transform: rotate(3deg);
}
/* (1.12) today's leaderboard: the streak's mirror on the left */
.daily-card > .board-chip {
  position: absolute;
  top: calc(-26 * var(--u));
  left: calc(26 * var(--u));
  height: calc(58 * var(--u));
  min-height: 44px;
  padding: 0 calc(20 * var(--u)) 0 calc(14 * var(--u));
  border: 0;
  background: linear-gradient(180deg, #fffbe8, #ffefb3);
  color: #7a5600;
  box-shadow: inset 0 calc(-5 * var(--u)) 0 #f2d77a, 0 calc(8 * var(--u)) calc(16 * var(--u)) rgba(10, 34, 78, 0.22);
  transform: rotate(-3deg);
  cursor: pointer;
}
.daily-card > .board-chip:has(span:only-child) { padding-right: calc(14 * var(--u)); }
.daily-card > .streak.is-zero { background: #fff; color: var(--muted); box-shadow: inset 0 calc(-5 * var(--u)) 0 #d5e2f2, 0 calc(8 * var(--u)) calc(16 * var(--u)) rgba(10, 34, 78, 0.18); }

.forecast {
  border-radius: calc(28 * var(--u));
  background: var(--panel);
  padding: calc(18 * var(--u)) calc(16 * var(--u)) calc(16 * var(--u));
}
.forecast .label { text-align: center; }
.fc-strip {
  display: flex;
  justify-content: space-around;
  gap: calc(6 * var(--u));
  margin-top: calc(14 * var(--u));
}
.fc-item {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(8 * var(--u));
}
.fc-emo {
  display: grid;
  place-items: center;
  width: calc(80 * var(--u));
  height: calc(80 * var(--u));
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 calc(5 * var(--u)) 0 #d5e2f2;
  font-size: calc(46 * var(--u));
}
.fc-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: calc(19 * var(--u));
  font-weight: 800;
  color: var(--ink-soft);
}

/* "Besoekers vandag: 🐒 🤡" under the weather strip */
.fc-visitors {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--u));
  margin: calc(12 * var(--u)) 0 0;
  font-size: max(11px, calc(20 * var(--u)));
  font-weight: 800;
  color: var(--ink-soft);
}
.fc-who .emoji { font-size: calc(32 * var(--u)); line-height: 1; }

/* (1.12) today's weather and visitors: one quiet line of pictures */
.fc-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: calc(6 * var(--u)) calc(12 * var(--u));
  margin: calc(10 * var(--u)) 0 calc(22 * var(--u));
  font-size: max(12px, calc(22 * var(--u)));
  font-weight: 800;
  color: var(--muted);
}
.fc-line .fc-pic .emoji { font-size: calc(40 * var(--u)); line-height: 1; }
.fc-line .fc-sep { color: var(--muted); opacity: 0.6; }
.fc-line .fc-grp { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: calc(6 * var(--u)) calc(12 * var(--u)); }

.note {
  margin: calc(16 * var(--u)) 0 calc(22 * var(--u));
  text-align: center;
  font-size: calc(24 * var(--u));
  font-weight: 700;
  color: var(--muted);
}

.note.nudge { margin-top: calc(-8 * var(--u)); color: var(--ink-soft); font-weight: 800; }

/* (1.12) "Nog 'n kans": a small second button under "See your result", and its one-line note */
.retry-row { display: grid; justify-items: center; gap: calc(6 * var(--u)); margin-top: calc(14 * var(--u)); }
.retry-buy .retry-price { display: inline-flex; align-items: center; gap: calc(4 * var(--u)); margin-left: calc(10 * var(--u)); }
.retry-buy.is-short { opacity: 0.7; }
/* (1.12.1: under the big button with room, like the price row: it sat half under the button) */
.retry-note { margin: calc(16 * var(--u)) 0 0; text-align: center; font-size: max(11px, calc(20 * var(--u))); font-weight: 700; color: var(--muted); }
.retry-see { margin: calc(12 * var(--u)) auto 0; }

/* Afrikaanse spreekwoorde: "Spreekwoord van die dag" (menu), one line on results and pause.
   The menu one is absolutely placed in the spacer gap, so it never adds height (dom.js fitSaying()
   hides it with .is-off when the gap is too small). */
.spacer.has-saying { position: relative; }
.saying-day {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 calc(36 * var(--u));
  text-align: center;
  color: #fff;
  pointer-events: none;
}
.saying-day.is-off { visibility: hidden; }
.saying-inner { display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--u)); max-width: 100%; }
.saying-label {
  display: inline-flex;
  align-items: center;
  gap: calc(14 * var(--u));
  font-size: calc(19 * var(--u));
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
  text-shadow: 0 calc(2 * var(--u)) 0 rgba(29, 43, 69, 0.45);
}
.saying-label::before, .saying-label::after {
  content: '';
  width: calc(34 * var(--u));
  height: calc(2 * var(--u));
  border-radius: 2px;
  background: currentColor;
  opacity: 0.6;
}
.saying-text {
  margin: 0;
  font-size: calc(30 * var(--u));
  font-style: italic;
  font-weight: 800;
  line-height: 1.22;
  text-wrap: balance;
  text-shadow: 0 calc(3 * var(--u)) 0 rgba(29, 43, 69, 0.42), 0 0 calc(16 * var(--u)) rgba(29, 43, 69, 0.28);
}
.saying-line {
  margin: 0;
  font-size: calc(26 * var(--u));
  font-style: italic;
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
  color: var(--ink-soft);
}
.res-saying {
  margin-top: calc(8 * var(--u));
  padding: 0 calc(24 * var(--u));
  color: #fff;
  opacity: 0.95;
  text-shadow: 0 calc(2 * var(--u)) 0 rgba(10, 30, 60, 0.4);
}

.done-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(8 * var(--u));
  margin-bottom: calc(24 * var(--u));
  padding: calc(20 * var(--u)) calc(16 * var(--u));
  border-radius: calc(28 * var(--u));
  background: linear-gradient(180deg, #eafbea, #dff5e0);
}
.done-title { display: flex; align-items: center; gap: calc(12 * var(--u)); font-size: calc(36 * var(--u)); font-weight: 900; color: var(--bosveld-d); }
.done-stats { font-size: calc(30 * var(--u)); font-weight: 900; color: var(--ink); }
.done-stats .sep { color: var(--muted); margin: 0 calc(10 * var(--u)); }

.countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 calc(12 * var(--u));
  font-size: calc(24 * var(--u));
  font-weight: 800;
  color: var(--muted);
}
.countdown b {
  font-size: calc(36 * var(--u));
  font-weight: 900;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.btn-practice .btn-txt { align-items: flex-start; }

/* Oefen + Uitdagersreeks side by side on the menu (one row: the menu is no taller than before) */
.play-row { display: grid; grid-template-columns: 1fr 1fr; gap: calc(16 * var(--u)); }
.play-row .btn { padding: calc(12 * var(--u)) calc(14 * var(--u)); font-size: calc(32 * var(--u)); }
.play-row .btn > .ic, .play-row .btn > .emoji { display: none; }
.play-row .btn .btn-txt { align-items: center; }
.play-row .btn-sub { font-size: max(11px, calc(20 * var(--u))); white-space: nowrap; }

/* pinned house ad (sponsors.json) + "Adverteer hier": quieter than the play buttons */
.menu-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(12 * var(--u));
}
.house-ad {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--u));
  width: 100%;
  padding: calc(14 * var(--u)) calc(16 * var(--u)) calc(14 * var(--u)) calc(26 * var(--u));
  border-radius: calc(30 * var(--u));
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  text-decoration: none;
  box-shadow:
    0 calc(5 * var(--u)) 0 rgba(20, 52, 104, 0.12),
    0 calc(12 * var(--u)) calc(24 * var(--u)) rgba(10, 34, 78, 0.18);
  transition: transform 0.07s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.house-ad:active { transform: translateY(calc(3 * var(--u))); }
.ad-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: calc(2 * var(--u));
  text-align: left;
}
.ad-label {
  font-size: calc(16 * var(--u));
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-title, .ad-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-title { font-size: calc(27 * var(--u)); font-weight: 900; line-height: 1.15; }
.ad-text { font-size: calc(21 * var(--u)); font-weight: 700; color: var(--ink-soft); }
.ad-go {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(58 * var(--u));
  height: calc(58 * var(--u));
  border-radius: 50%;
  background: var(--panel);
  color: var(--hemel-d);
  font-size: calc(28 * var(--u));
}
.advertise-link {
  font-size: calc(21 * var(--u));
  font-weight: 800;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-shadow: 0 calc(2 * var(--u)) 0 rgba(29, 43, 69, 0.5), 0 0 calc(10 * var(--u)) rgba(29, 43, 69, 0.3);
}
#ui .house-ad:focus-visible, #ui .advertise-link:focus-visible {
  outline: calc(5 * var(--u)) solid #fff;
  outline-offset: calc(4 * var(--u));
}

/* ------------------------------------------------------------------------- */
/* Sheets (how-to, stats)                                                    */
/* ------------------------------------------------------------------------- */
.sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 100%;
  padding: calc(30 * var(--u)) calc(30 * var(--u)) calc(34 * var(--u));
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--u));
  margin-bottom: calc(20 * var(--u));
  padding-right: calc(76 * var(--u));
  min-height: calc(80 * var(--u));
}
.sheet-head h2 { font-size: calc(46 * var(--u)); font-weight: 900; line-height: 1.05; }
.sheet-head .emoji { font-size: calc(54 * var(--u)); }
.sheet .close, .duel-card > .close, .duel-wait > .close {
  position: absolute;
  z-index: 2;   /* always above the sheet's own head (the shop's head is positioned and came later) */
  top: calc(26 * var(--u));
  right: calc(26 * var(--u));
  width: calc(80 * var(--u));
  height: calc(80 * var(--u));
  font-size: calc(36 * var(--u));
  background: var(--panel);
  box-shadow: 0 calc(5 * var(--u)) 0 #d5e2f2;
}
.sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: none;
  margin: 0 calc(-8 * var(--u));
  padding: 0 calc(8 * var(--u)) calc(8 * var(--u));
}
.sheet-body.more {
  /* fade the bottom edge while there is more to scroll */
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 70 * var(--u)), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 70 * var(--u)), transparent);
}
.sheet-foot { margin-top: calc(24 * var(--u)); }
.sheet-link {
  display: block;
  padding: 12px 0;   /* (1.23: a thumb-sized tap, 40 px, round a 16 px line) */
  margin-top: max(0px, calc(18 * var(--u) - 12px));
  text-align: center;
  font-size: max(13px, calc(24 * var(--u)));
  font-weight: 800;
  color: var(--muted);
}

/* how-to */
.steps { display: flex; flex-direction: column; gap: calc(14 * var(--u)); }
.step {
  display: flex;
  align-items: center;
  gap: calc(20 * var(--u));
  padding: calc(12 * var(--u)) calc(14 * var(--u)) calc(12 * var(--u)) calc(12 * var(--u));
  border-radius: calc(26 * var(--u));
  background: var(--panel);
}
.step-ic {
  --c: var(--protea); --cd: var(--protea-d);
  flex: none;
  display: grid;
  place-items: center;
  width: calc(76 * var(--u));
  height: calc(76 * var(--u));
  border-radius: calc(20 * var(--u));
  background: var(--c);
  box-shadow: inset 0 calc(-6 * var(--u)) 0 var(--cd);
  font-size: calc(40 * var(--u));
  transform: rotate(var(--r, -3deg));
}
.step p { font-size: calc(26 * var(--u)); font-weight: 700; line-height: 1.3; color: var(--ink); }

/* stats */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(14 * var(--u)); }
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(6 * var(--u));
  min-height: calc(140 * var(--u));
  padding: calc(14 * var(--u)) calc(8 * var(--u));
  border-radius: calc(26 * var(--u));
  background: var(--panel);
  text-align: center;
}
.tile b { font-size: calc(44 * var(--u)); font-weight: 900; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile span { font-size: calc(20 * var(--u)); font-weight: 800; color: var(--muted); line-height: 1.15; }
.tile.hot { background: linear-gradient(180deg, #fff1df, #ffe4c2); }
.tile.hot b { color: #8f520a; }   /* (1.23) deeper than --karoo-d: 5:1 on the warm tile (3.6:1 before) */

.chart-title { margin: calc(28 * var(--u)) 0 calc(14 * var(--u)); }
.bars {
  display: flex;
  align-items: flex-end;
  gap: calc(12 * var(--u));
  height: calc(250 * var(--u));
  padding: calc(16 * var(--u)) calc(16 * var(--u)) 0;
  border-radius: calc(26 * var(--u));
  background: var(--panel);
}
.bar {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.bar-val {
  margin-bottom: calc(6 * var(--u));
  font-size: calc(19 * var(--u));
  font-weight: 900;
  color: var(--ink-soft);
  white-space: nowrap;
}
.bar-fill {
  width: 100%;
  min-height: calc(10 * var(--u));
  height: var(--h, 4%);
  border-radius: calc(12 * var(--u)) calc(12 * var(--u)) calc(4 * var(--u)) calc(4 * var(--u));
  background: linear-gradient(180deg, var(--hemel-l), var(--hemel));
  box-shadow: inset 0 calc(-5 * var(--u)) 0 var(--hemel-d);
  transform-origin: 50% 100%;
  animation: bar-grow 0.6s cubic-bezier(0.2, 1.2, 0.4, 1) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.bar.today .bar-fill { background: linear-gradient(180deg, var(--karoo-l), var(--karoo)); box-shadow: inset 0 calc(-5 * var(--u)) 0 var(--karoo-d); }
.bar.empty .bar-fill { background: transparent; box-shadow: none; border: calc(3 * var(--u)) dashed #c3d1e4; min-height: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.bar-day {
  width: 100%;
  margin-top: calc(8 * var(--u));
  padding-bottom: calc(10 * var(--u));
  text-align: center;
  font-size: calc(20 * var(--u));
  font-weight: 900;
  color: var(--muted);
}
.bar.today .bar-day { color: var(--karoo-d); }

@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.empty-note {
  margin-top: calc(18 * var(--u));
  text-align: center;
  font-size: calc(24 * var(--u));
  font-weight: 700;
  color: var(--muted);
}

/* ------------------------------------------------------------------------- */
/* Uitdagersreeks (head-to-head)                                             */
/* ------------------------------------------------------------------------- */
.screen-duel, .screen-duelwait { z-index: 2; background: var(--scrim); }
/* centred while it fits, from the top (and scrollable) when it doesn't: never justify-content: center here */
.screen-duelwait > * { margin-top: auto; margin-bottom: auto; }
.duel-wrap { display: flex; flex-direction: column; gap: calc(18 * var(--u)); margin: auto 0; }
.duel-card, .duel-wait { display: flex; flex-direction: column; align-items: stretch; gap: calc(18 * var(--u)); text-align: center; }
.duel-wait { margin: auto 0; }
.duel-head { display: flex; align-items: center; justify-content: center; gap: calc(14 * var(--u)); padding: 0 calc(84 * var(--u)); }
.duel-head h2 { font-size: calc(48 * var(--u)); font-weight: 900; }
.duel-head .emoji { font-size: calc(52 * var(--u)); }
.duel-intro, .duel-sub { margin: 0; font-size: max(13px, calc(25 * var(--u))); font-weight: 700; color: var(--ink-soft); line-height: 1.35; }
.nick { display: flex; flex-direction: column; gap: calc(8 * var(--u)); text-align: left; }
.nick-input, .link-box {
  width: 100%;
  border: calc(3 * var(--u)) solid #cfdcee;
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 800;
}
.nick-input { min-height: 44px; font-size: max(16px, calc(30 * var(--u))); padding: calc(16 * var(--u)) calc(22 * var(--u)); border-radius: calc(24 * var(--u)); }
/* (1.12.1) the name sheet: room for the box's focus ring (14u) inside the scrolling body */
.name-sheet .sheet-body { margin: 0 calc(-20 * var(--u)); padding: calc(16 * var(--u)) calc(20 * var(--u)) calc(8 * var(--u)); }
/* (1.12.1) Stoor and Maak toe side by side: with the keyboard up on a small phone the name rule stays in sight */
.name-foot { display: flex; flex-direction: row; gap: calc(16 * var(--u)); }
.name-foot .btn { flex: 1 1 0; min-width: 0; }
.link-box { font-size: max(12px, calc(21 * var(--u))); padding: calc(12 * var(--u)) calc(16 * var(--u)); border-radius: calc(18 * var(--u)); text-overflow: ellipsis; }
.nick-input:focus, .link-box:focus { outline: none; border-color: var(--hemel); }
.nick-msg { margin: calc(6 * var(--u)) 0 0; min-height: 1.3em; font-size: max(12px, calc(21 * var(--u))); font-weight: 700; color: var(--muted); }
.nick-msg.bad { color: var(--klei-d); }
/* (1.12.1) the name rules under a nickname box */
.name-rules { margin: calc(4 * var(--u)) 0 0; font-size: max(11px, calc(19 * var(--u))); font-weight: 700; line-height: 1.3; color: var(--muted); }
.duel-btns { display: flex; flex-direction: column; gap: calc(18 * var(--u)); }
/* Wedloop or Blok vir Blok (1.11): two big choices, what the chosen one is under them */
.mode-pick { display: grid; gap: calc(10 * var(--u)); }
.mode-btns { display: grid; grid-template-columns: 1fr 1fr; gap: calc(8 * var(--u)); padding: calc(6 * var(--u)); border-radius: calc(28 * var(--u)); background: var(--panel); }
.mode-btn {
  display: flex; align-items: center; justify-content: center; gap: calc(10 * var(--u));
  min-height: 44px; padding: calc(16 * var(--u)) calc(8 * var(--u));
  border: calc(3 * var(--u)) solid transparent; border-radius: calc(22 * var(--u));
  background: transparent; color: var(--muted);
  font: 900 max(14px, calc(28 * var(--u))) / 1.1 var(--font); cursor: pointer;
}
.mode-btn .emoji { font-size: 1.2em; }
.mode-btn[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: var(--jakaranda, #7a5cd6); box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(10, 34, 78, 0.12); }
.mode-btn:focus-visible { outline: 3px solid var(--jakaranda-d, #5b3fa8); outline-offset: 2px; }
.mode-what { margin: 0; font-size: max(12px, calc(23 * var(--u))); font-weight: 700; color: var(--ink-soft); line-height: 1.35; }
.mode-line { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: calc(8 * var(--u)); margin: 0; font-size: max(13px, calc(26 * var(--u))); color: var(--ink-soft); }
.mode-line b { color: var(--ink); font-weight: 900; }
/* (1.13) coin matches: what a live match is played for (none or 20-500), in two rows of three */
.stake-pick { display: grid; gap: calc(8 * var(--u)); }
.stake-btns { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: calc(6 * var(--u)); padding: calc(6 * var(--u)); border-radius: calc(28 * var(--u)); background: var(--panel); }
.stake-btn {
  display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--u));
  min-width: 44px; min-height: 44px; padding: calc(8 * var(--u)) 2px;
  border: calc(3 * var(--u)) solid transparent; border-radius: calc(22 * var(--u));
  background: transparent; color: var(--ink-soft);
  font: 900 max(13px, calc(26 * var(--u))) / 1.1 var(--font); cursor: pointer; white-space: nowrap;
}
.stake-pick > .label { display: inline-flex; align-items: center; justify-content: center; gap: calc(6 * var(--u)); }
.stake-btn .emoji { font-size: 1.1em; }
.stake-btn[aria-pressed="true"] { background: #fff4cc; color: #6b4d00; border-color: #e0a800; box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(10, 34, 78, 0.12); }
.stake-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.stake-btn:focus-visible { outline: 3px solid var(--jakaranda-d, #5b3fa8); outline-offset: 2px; }
.stake-what { margin: 0; font-size: max(12px, calc(23 * var(--u))); font-weight: 800; color: var(--ink); line-height: 1.35; }
.stake-have { margin: 0; font-size: max(11px, calc(20 * var(--u))); font-weight: 700; color: var(--muted); }
.stake-line { align-self: center; margin: 0; padding: calc(6 * var(--u)) calc(18 * var(--u)); border-radius: 999px; background: #fff4cc; color: #6b4d00; font-size: max(13px, calc(25 * var(--u))); font-weight: 900; }
.stake-short { color: var(--klei-d); font-weight: 800; }
.vs-first { margin: 0; font-size: max(15px, calc(32 * var(--u))); font-weight: 900; color: var(--jakaranda-d, #5b3fa8); }
/* Blok vir Blok results: one row per player */
.res-vs { display: grid; gap: calc(10 * var(--u)); margin-top: calc(16 * var(--u)); }
.res-vs-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: calc(14 * var(--u));
  padding: calc(12 * var(--u)) calc(18 * var(--u)); border-radius: calc(20 * var(--u)); background: var(--panel);
  font-size: max(14px, calc(28 * var(--u)));
}
.res-vs-row b { font-weight: 900; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-vs-row.you b { color: #a36b00; }
.res-vs-hearts { letter-spacing: 0.06em; }
.res-vs-p { font-weight: 800; color: var(--ink-soft); font-size: 0.85em; }
.duel-btns .btn .emoji, .duel-wait .btn .emoji { font-size: 1.05em; }
.duel-wait .btn:not(.btn-big):not(.btn-mini):not(.btn-wa) { font-size: calc(32 * var(--u)); }
.duel-note { margin: 0; }
.duel-record { margin: 0; font-size: max(12px, calc(23 * var(--u))); font-weight: 800; color: var(--ink-soft); }
/* Uitdagersreeks rank and season (1.8) */
.rank-box { display: grid; gap: calc(8 * var(--u)); padding: calc(14 * var(--u)); border-radius: calc(24 * var(--u)); background: #eef6ff; }
.rank-box .pcard { margin: 0 auto; }
.rank-season { margin: 0; font-size: max(12px, calc(22 * var(--u))); font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.rank-now { display: flex; align-items: center; justify-content: center; gap: calc(10 * var(--u)); font-size: max(15px, calc(32 * var(--u))); }
.rank-now .emoji { font-size: 1.3em; }
.rank-now span { font-weight: 700; color: var(--ink-soft); font-size: 0.8em; }
.rank-bar { height: calc(16 * var(--u)); min-height: 8px; border-radius: 999px; background: rgba(20, 28, 48, 0.12); overflow: hidden; }
.rank-bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, #f5b833, #f08c2b); transition: width 1s cubic-bezier(0.25, 1, 0.5, 1); }
.rank-next { margin: 0; font-size: max(12px, calc(22 * var(--u))); font-weight: 800; color: var(--ink-soft); }
.rank-note { margin: 0; font-size: max(11px, calc(20 * var(--u))); font-weight: 700; color: var(--muted); }
/* (1.12) the rank's bar on the results, under its line */
.res-reward .rw-rank:has(.rw-bar) { flex-wrap: wrap; justify-content: center; border-radius: calc(22 * var(--u)); }
.res-reward .rw-rank .rw-bar { display: block; flex-basis: 100%; margin-top: calc(4 * var(--u)); }
.res-reward .rw-rank.is-down { background: #eef1f6; color: var(--ink-soft); }
.res-reward .rw-rank.is-quiet { background: #f1f4f8; color: var(--muted); }
.season-notes { display: grid; gap: calc(10 * var(--u)); justify-items: center; }
.season-notes p { margin: 0; }
.rank-badges { display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); font-weight: 800; color: var(--ink-soft); }
.rank-badges .emoji { font-size: calc(40 * var(--u)); }
.rank-how { font-size: max(11px, calc(21 * var(--u))); line-height: 1.4; }
.duel-wait h2 { font-size: calc(44 * var(--u)); font-weight: 900; }
.duel-count { margin: 0; min-height: 1.2em; font-size: calc(30 * var(--u)); font-weight: 900; color: var(--muted); font-variant-numeric: tabular-nums; }
.duel-wait .share-row { margin-top: 0; }
.vs-badge { margin: 0; font-size: calc(80 * var(--u)); line-height: 1; }
.vs-title { font-size: calc(54 * var(--u)); font-weight: 900; overflow-wrap: anywhere; }
.vs-count { margin: 0; min-height: 1.1em; font-size: calc(130 * var(--u)); font-weight: 900; line-height: 1.05; color: var(--jakaranda-d); font-variant-numeric: tabular-nums; }
.spinner {
  width: calc(64 * var(--u));
  height: calc(64 * var(--u));
  margin: 0 auto;
  border-radius: 50%;
  border: calc(8 * var(--u)) solid #d5e2f2;
  border-top-color: var(--jakaranda);
  animation: duel-spin 0.9s linear infinite;
}
@keyframes duel-spin { to { transform: rotate(360deg); } }
#ui.rm .spinner { animation-duration: 3s; }
.btn-row .btn-duel-again { font-size: calc(32 * var(--u)); }
.tile-you b { color: #a86a00; }
.tile-them b { color: var(--hemel-d); }
.tile-them span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* ------------------------------------------------------------------------- */
/* Pause                                                                     */
/* ------------------------------------------------------------------------- */
.screen-pause { justify-content: center; }
.pause-card { display: flex; flex-direction: column; align-items: stretch; gap: calc(20 * var(--u)); margin: auto 0; text-align: center; }
.pause-ic {
  align-self: center;
  display: grid;
  place-items: center;
  width: calc(130 * var(--u));
  height: calc(130 * var(--u));
  margin-top: calc(-100 * var(--u));
  border-radius: 50%;
  background: linear-gradient(180deg, var(--hemel-l), var(--hemel));
  border: calc(8 * var(--u)) solid #fff;
  box-shadow: 0 calc(14 * var(--u)) calc(24 * var(--u)) rgba(10, 34, 78, 0.25), inset 0 calc(-8 * var(--u)) 0 var(--hemel-d);
  color: #fff;
  font-size: calc(56 * var(--u));
}
.pause-card h2 { font-size: calc(52 * var(--u)); font-weight: 900; }
/* (1.12.1) a friend match: whose pause it is, and the 3-2-1 back (both games at the same moment) */
.pause-note { margin: 0; font-size: max(13px, calc(26 * var(--u))); font-weight: 800; color: var(--jakaranda-d); line-height: 1.3; }
.pause-count { margin: 0; font-size: calc(110 * var(--u)); font-weight: 900; line-height: 1; color: var(--ink); }
.pause-timer { margin: 0; font-size: max(13px, calc(28 * var(--u))); font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.pause-note[hidden], .pause-count[hidden], .pause-timer[hidden] { display: none; }
.warn {
  display: flex;
  align-items: flex-start;
  gap: calc(14 * var(--u));
  padding: calc(18 * var(--u)) calc(20 * var(--u));
  border-radius: calc(24 * var(--u));
  background: #fff4d6;
  color: #7a5200;
  text-align: left;
  font-size: calc(25 * var(--u));
  font-weight: 700;
  line-height: 1.3;
}
.warn .emoji { font-size: calc(32 * var(--u)); }
.pause-card .dock { margin-top: calc(6 * var(--u)); }

/* ------------------------------------------------------------------------- */
/* Results                                                                   */
/* ------------------------------------------------------------------------- */
.res-wrap { display: flex; flex-direction: column; gap: calc(20 * var(--u)); margin: auto 0; }

.res-head { display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; }
.res-head .chip { height: calc(54 * var(--u)); font-size: calc(24 * var(--u)); margin-bottom: calc(14 * var(--u)); }
.res-title {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--u));
  font-size: calc(48 * var(--u));
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 calc(4 * var(--u)) 0 rgba(10, 30, 60, 0.45);
}
.res-title .emoji { font-size: calc(58 * var(--u)); animation: pop-in 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) 0.15s both; }
.res-sub { margin-top: calc(6 * var(--u)); font-size: calc(27 * var(--u)); font-weight: 800; opacity: 0.95; text-shadow: 0 calc(2 * var(--u)) 0 rgba(10, 30, 60, 0.4); }

.res-card { padding-top: calc(26 * var(--u)); }
/* ✕ in the results card's corner: back to the start screen */
.res-card .res-close {
  position: absolute;
  top: calc(20 * var(--u));
  right: calc(20 * var(--u));
  width: calc(72 * var(--u));
  height: calc(72 * var(--u));
  min-width: 44px;
  min-height: 44px;
  font-size: calc(32 * var(--u));
  background: var(--panel);
  box-shadow: 0 calc(5 * var(--u)) 0 #d5e2f2;
}

.res-card.has-record { margin-top: calc(24 * var(--u)); }
.record {
  position: absolute;
  top: calc(-34 * var(--u));
  right: calc(26 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  padding: calc(10 * var(--u)) calc(22 * var(--u)) calc(10 * var(--u)) calc(16 * var(--u));
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sonneblom-l), var(--sonneblom));
  box-shadow: inset 0 calc(-5 * var(--u)) 0 var(--sonneblom-d), 0 calc(8 * var(--u)) calc(16 * var(--u)) rgba(10, 34, 78, 0.25);
  color: #5c3d00;
  font-size: calc(26 * var(--u));
  font-weight: 900;
  transform: rotate(4deg);
  animation: record-pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) 0.5s both;
}
.record .emoji { font-size: calc(32 * var(--u)); }

.res-height { display: flex; flex-direction: column; align-items: center; }
.res-height .label { display: flex; align-items: center; gap: calc(8 * var(--u)); }
.res-height .label .emoji { font-size: calc(26 * var(--u)); }
.big-m {
  font-size: calc(120 * var(--u));
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 calc(6 * var(--u)) 0 #e3ecf7;
}
.res-time { margin-top: calc(12 * var(--u)); font-size: calc(22 * var(--u)); font-weight: 800; color: var(--muted); }
/* how today's tower compares with the other players; arrives a moment after the card */
.res-pct {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--u));
  max-width: 100%;
  margin-top: calc(14 * var(--u));
  padding: calc(7 * var(--u)) calc(18 * var(--u)) calc(7 * var(--u)) calc(14 * var(--u));
  border-radius: 999px;
  background: #e4f6f5;
  color: var(--oseaan-d);
  font-size: calc(20 * var(--u));
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  animation: pop-in 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.res-pct .emoji { flex: none; font-size: calc(24 * var(--u)); }
#ui.compact .res-pct { margin-top: calc(8 * var(--u)); padding: calc(4 * var(--u)) calc(14 * var(--u)) calc(4 * var(--u)) calc(10 * var(--u)); font-size: calc(19 * var(--u)); }

.res-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(10 * var(--u)); margin-top: calc(20 * var(--u)); }
/* 1.8: what the game earned ("🪙 +18 · jy het 250") and, after a match, the rank points */
.res-reward { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(10 * var(--u)); margin-top: calc(16 * var(--u)); }
.res-reward > span {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--u));
  padding: calc(7 * var(--u)) calc(18 * var(--u)) calc(7 * var(--u)) calc(12 * var(--u));
  border-radius: 999px;
  background: #fff4cc;
  color: #6b4d00;
  font-size: max(12px, calc(20 * var(--u)));
  font-weight: 800;
}
.res-reward .emoji { font-size: calc(26 * var(--u)); }
.res-reward b { font-size: max(14px, calc(26 * var(--u))); }
.res-reward .rw-sub { font-weight: 700; opacity: 0.8; }
.res-reward .rw-rank { background: #ece6ff; color: #45308f; }
/* (29 Oct 2026) the tower's stars: what it brought, the bank, and the trade for coins (its own row: it can be long) */
.res-reward .rw-stars { flex-wrap: wrap; justify-content: center; border-radius: calc(22 * var(--u)); background: #fff1c2; color: #6b4d00; }
.res-reward .rw-stars .star-ic { font-style: normal; font-size: calc(26 * var(--u)); }
.res-reward .rw-trade { flex-basis: 100%; margin-top: calc(4 * var(--u)); padding: calc(9 * var(--u)) calc(18 * var(--u)); min-height: 40px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #ffd75a, #f5b833); color: #4a3300; font: inherit; font-size: max(13px, calc(22 * var(--u))); font-weight: 900; box-shadow: 0 2px 0 #c98c12; cursor: pointer; }
.res-reward .rw-trade:active { transform: translateY(1px); box-shadow: 0 1px 0 #c98c12; }
.res-reward .rw-note { flex-basis: 100%; text-align: center; font-weight: 700; opacity: 0.8; }
/* (29 Oct 2026) the stars' flight from the HUD to the middle, their pop and count (a tap skips it) */
.stars-fly { position: fixed; inset: 0; z-index: 60; pointer-events: auto; background: radial-gradient(circle at 50% 42%, rgba(10, 18, 40, 0.55), rgba(10, 18, 40, 0.25) 60%, rgba(10, 18, 40, 0)); opacity: 0; transition: opacity 0.3s ease; }
.stars-fly.is-on { opacity: 1; }
.stars-fly.is-gone { opacity: 0; transition-duration: 0.25s; }
.stars-fly .sf-pill { position: fixed; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px; background: rgba(255, 241, 194, 0.96); color: #6b4d00; font-size: 20px; font-weight: 900; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); transform-origin: 50% 50%; white-space: nowrap; will-change: transform; }
.stars-fly .sf-pill b { font-variant-numeric: tabular-nums; }
.stars-fly .sf-cap { position: fixed; left: 0; right: 0; top: calc(42% + 44px); text-align: center; color: #fff; font-size: 20px; font-weight: 900; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 0.25s ease 0.1s; }
.stars-fly.is-popped .sf-cap { opacity: 1; }
.stars-fly .sf-spark { position: fixed; font-style: normal; font-size: 22px; pointer-events: none; }
/* (1.13) a coin match: won (gold) or lost (grey) */
.res-reward .rw-stake.is-won { background: #ffe9a8; color: #6b4d00; }
.res-reward .rw-stake.is-lost { background: #eef1f6; color: var(--ink-soft); }
/* the weekkis box on the results (1.10): its own line, the notes under it */
.res-reward .rw-week { flex-direction: column; gap: calc(2 * var(--u)); border-radius: calc(22 * var(--u)); padding: calc(8 * var(--u)) calc(18 * var(--u)); background: #e7f7e3; color: #22582a; text-align: center; }
.res-reward .rw-week.is-full { background: #fff0c2; color: #6b4d00; box-shadow: 0 0 0 calc(3 * var(--u)) #f7c948; }
.res-reward .rw-rank.is-up { background: #ffe9a8; color: #6b4d00; animation: rank-up 0.9s ease-out both; }
@keyframes rank-up { 0% { transform: scale(0.6); } 60% { transform: scale(1.12); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .res-reward .rw-rank.is-up { animation: none; } }
.res-stats .tile { min-height: calc(112 * var(--u)); padding: calc(10 * var(--u)) calc(4 * var(--u)); border-radius: calc(22 * var(--u)); }
.res-stats .tile b { font-size: calc(38 * var(--u)); }
.res-stats .tile span { font-size: calc(18 * var(--u)); }

.grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;            /* rows read left to right like the share text */
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  gap: calc(4 * var(--u));
  margin-top: calc(22 * var(--u));
  font-size: calc(40 * var(--u));
}
.grid-row { position: relative; display: flex; align-items: center; gap: calc(4 * var(--u)); min-height: calc(46 * var(--u)); }
/* "+N" and the 🌊/💥 hang off the end of the last row, so they never widen or shift the grid */
.grid-tail { position: absolute; left: 100%; top: 0; bottom: 0; display: flex; align-items: center; gap: calc(4 * var(--u)); padding-left: calc(4 * var(--u)); white-space: nowrap; }
.grid-tail.inline { position: static; padding-left: 0; }
.grid-row .emoji { display: inline-block; width: calc(46 * var(--u)); text-align: center; animation: cell-in 0.32s cubic-bezier(0.2, 1.6, 0.4, 1) both; animation-delay: calc(0.2s + var(--i, 0) * 28ms); }
/* (1.40.2) a toy picture inside a drawn cell (the gift, the foundation block) keeps its own size: the cell is the tile */
.grid-row .cell .emoji, #ui.short .grid-row .cell .emoji { width: 1.2em; animation: none; }
.grid-more { margin-left: calc(6 * var(--u)); font-size: calc(26 * var(--u)); font-weight: 900; color: var(--muted); }

.wx {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: calc(10 * var(--u));
  margin-top: calc(18 * var(--u));
}
.wx .label { margin-right: calc(4 * var(--u)); }
.wx-chip {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
  height: calc(48 * var(--u));
  padding: 0 calc(16 * var(--u)) 0 calc(10 * var(--u));
  border-radius: 999px;
  background: var(--panel);
  font-size: calc(21 * var(--u));
  font-weight: 800;
  color: var(--ink-soft);
}
.wx-chip .emoji { font-size: calc(28 * var(--u)); }
.wx-chip.solo { padding: 0 calc(14 * var(--u)); }
/* one line about the day's visitors ("Jy het Skelm Sakkie gevang! 👮") */
.res-visitors {
  margin: calc(14 * var(--u)) 0 0;
  text-align: center;
  font-size: max(12px, calc(22 * var(--u)));
  font-weight: 800;
  color: var(--ink-soft);
}

.share-row { display: flex; gap: calc(14 * var(--u)); margin-top: calc(24 * var(--u)); }
.share-row .btn { min-height: calc(100 * var(--u)); }
.share-row .btn-wa { flex: 1 1 0; min-width: 0; gap: calc(10 * var(--u)); font-size: calc(28 * var(--u)); padding: calc(10 * var(--u)) calc(14 * var(--u)); white-space: nowrap; }
.share-row .btn-wa > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.share-row .btn-mini {
  flex: 0 0 calc(112 * var(--u));
  min-width: 0;
  flex-direction: column;
  gap: calc(4 * var(--u));
  padding: calc(10 * var(--u)) calc(6 * var(--u));
  font-size: calc(22 * var(--u));
}
.share-row .btn-mini .ic { font-size: calc(36 * var(--u)); }
.btn-wa .ic { font-size: calc(38 * var(--u)); }

.res-foot {
  display: flex;
  align-items: stretch;
  padding: calc(14 * var(--u)) calc(10 * var(--u));
  border-radius: calc(32 * var(--u));
}
.foot-cell {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(4 * var(--u));
  text-align: center;
}
.foot-cell + .foot-cell { border-left: calc(3 * var(--u)) solid var(--line); }
.foot-cell b {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  font-size: calc(40 * var(--u));
  font-weight: 900;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.foot-cell b .emoji { font-size: calc(36 * var(--u)); }
.foot-cell span { font-size: calc(20 * var(--u)); font-weight: 800; color: var(--muted); }
.foot-cell.streak-cell b { color: var(--karoo-d); }
.foot-cell.streak-cell.is-zero b { color: var(--muted); }

/* confetti for a new record — little blocks raining down */
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.confetti i {
  position: absolute;
  top: calc(-40 * var(--u));
  left: var(--x);
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  border-radius: calc(4 * var(--u));
  background: var(--c);
  box-shadow: inset 0 calc(-3 * var(--u)) 0 rgba(0, 0, 0, 0.18);
  animation: confetti-fall var(--t) cubic-bezier(0.25, 0.4, 0.5, 1) var(--d) both;
}

@keyframes confetti-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate(calc(var(--dx) * var(--u)), calc(1700 * var(--u))) rotate(var(--rot)); opacity: 0; }
}
@keyframes pop-in { from { transform: scale(0.2) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes record-pop { from { transform: scale(0.2) rotate(-30deg); opacity: 0; } to { transform: rotate(4deg); opacity: 1; } }
@keyframes cell-in { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }

/* The search chip (1.10): an Oefen tower while the Uitdagersreeks looks for an opponent */
.search-chip {
  position: absolute;
  top: calc(var(--sat) + 138 * var(--u));
  left: calc(var(--sal) + 12 * var(--u));
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: calc(10 * var(--u));
  padding: calc(6 * var(--u)) calc(6 * var(--u)) calc(6 * var(--u)) calc(14 * var(--u));
  border-radius: 999px;
  background: rgba(100, 71, 173, 0.92);
  color: #fff;
  font-weight: 800;
  font-size: max(12px, calc(22 * var(--u)));
  box-shadow: 0 calc(6 * var(--u)) calc(14 * var(--u)) rgba(5, 15, 35, 0.3);
  pointer-events: none;
}
.search-chip[hidden] { display: none; }
.search-chip .spinner.small { width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-width: calc(3 * var(--u)); margin: 0; }
/* (1.12.1) a live match's connection (or the other player's) went: one line under the jib until it is back */
.conn-chip {
  position: absolute;
  top: calc(var(--sat) + 250 * var(--u));
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: calc(10 * var(--u));
  max-width: calc(100% - 2 * (var(--sal) + 24 * var(--u)));
  padding: calc(8 * var(--u)) calc(18 * var(--u));
  border-radius: 999px;
  background: rgba(184, 109, 18, 0.94);
  color: #fff;
  font-weight: 800;
  font-size: max(12px, calc(22 * var(--u)));
  line-height: 1.25;
  box-shadow: 0 calc(6 * var(--u)) calc(14 * var(--u)) rgba(5, 15, 35, 0.3);
  pointer-events: none;
}
.conn-chip[hidden] { display: none; }
.conn-chip .spinner.small { flex: none; width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-width: calc(3 * var(--u)); margin: 0; }
.search-stop { pointer-events: auto; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.18); color: #fff; cursor: pointer; }

/* ------------------------------------------------------------------------- */
/* The short lesson (1.10): one card at the top; the game goes on underneath  */
/* ------------------------------------------------------------------------- */
.tutor {
  position: absolute;
  top: calc(var(--sat) + 6 * var(--u));
  left: calc(var(--sal) + 10 * var(--u));
  right: calc(var(--sar) + max(50px, 108 * var(--u)));   /* the pause button stays free */
  z-index: 5;
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  padding: calc(14 * var(--u)) calc(16 * var(--u));
  border-radius: calc(26 * var(--u));
  background: rgba(12, 32, 66, 0.92);
  box-shadow: 0 calc(8 * var(--u)) calc(20 * var(--u)) rgba(5, 15, 35, 0.35);
  color: #fff;
  pointer-events: none;   /* only its buttons take taps: a tap anywhere else still drops a block */
  animation: punish-in 0.25s ease-out both;
}
.tutor[hidden], .tutor.is-away { display: none; }
.tutor.is-done { flex-direction: column; align-items: stretch; text-align: center; }
.tutor-step {
  flex: none;
  padding: calc(6 * var(--u)) calc(12 * var(--u));
  border-radius: 999px;
  background: var(--sonneblom);
  color: #3d2c00;
  font-weight: 900;
  font-size: max(12px, calc(22 * var(--u)));
}
.tutor-text { flex: 1 1 auto; margin: 0; font-weight: 800; font-size: max(13px, calc(25 * var(--u))); line-height: 1.3; }
.tutor-skip, .tutor-btns .btn { pointer-events: auto; }
.tutor-skip {
  flex: none;
  border: 0;
  background: none;
  color: #cfe9ff;
  font: inherit;
  font-weight: 800;
  font-size: max(12px, calc(21 * var(--u)));
  text-decoration: underline;
  cursor: pointer;
  padding: calc(8 * var(--u));
}
.tutor-btns { display: grid; gap: calc(10 * var(--u)); margin-top: calc(10 * var(--u)); }
.lesson-link { border: 0; background: none; font: inherit; cursor: pointer; min-height: 44px; padding: 10px 16px; }

/* ------------------------------------------------------------------------- */
/* Uitdagersreeks: choose a punishment (the tower keeps going underneath)     */
/* ------------------------------------------------------------------------- */
.punish {
  position: absolute;
  top: calc(var(--sat) + 6 * var(--u));
  left: calc(var(--sal) + 10 * var(--u));
  right: calc(var(--sar) + max(50px, 108 * var(--u)));   /* the pause button stays free */
  z-index: 5;
  padding: calc(10 * var(--u)) calc(10 * var(--u)) calc(9 * var(--u));
  border-radius: calc(26 * var(--u));
  background: rgba(12, 32, 66, 0.9);
  box-shadow: 0 calc(8 * var(--u)) calc(20 * var(--u)) rgba(5, 15, 35, 0.35);
  color: #fff;
  pointer-events: none;   /* only the buttons take taps: a tap anywhere else still drops a block */
  animation: punish-in 0.25s ease-out both;
}
.punish[hidden] { display: none; }
.punish-title {
  margin: 0 0 calc(8 * var(--u));
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 900;
  font-size: max(12px, calc(24 * var(--u)));
}
.punish-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(8 * var(--u)); }
.punish-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(2 * var(--u));
  min-width: 0;
  min-height: 44px;
  padding: calc(8 * var(--u)) calc(2 * var(--u)) calc(7 * var(--u));
  border: 0;
  border-radius: calc(18 * var(--u));
  background: #fff;
  color: var(--ink);
  font: 900 max(10px, calc(19 * var(--u))) / 1.1 var(--font);
  box-shadow: 0 calc(4 * var(--u)) 0 #c9d7ea;
  pointer-events: auto;
}
.punish-btn .emoji { font-size: calc(44 * var(--u)); line-height: 1; }
.punish-btn b { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.punish-btn small { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; font-size: max(9px, calc(15 * var(--u))); color: var(--muted); }
.punish-btn:active { transform: translateY(calc(3 * var(--u))); box-shadow: 0 calc(1 * var(--u)) 0 #c9d7ea; }
.punish-time {
  height: calc(6 * var(--u));
  margin-top: calc(8 * var(--u));
  border-radius: 999px;
  background: #ffd23f;
  transform-origin: left center;
  animation: punish-time var(--ms, 7s) linear both;
}
@keyframes punish-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes punish-in { from { transform: translateY(calc(-30 * var(--u))); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .punish { animation: none; } }

/* ------------------------------------------------------------------------- */
/* 1.8 Winkel: the shop sheet, player cards, frames and win celebrations      */
/* ------------------------------------------------------------------------- */
.dock-shop .dock-ic { position: relative; }
/* the player's coins on the Winkel button: a coin and the amount, so it never reads as a notification count */
.dock-coins {
  position: absolute;
  right: calc(-30 * var(--u));
  top: calc(-12 * var(--u));
  display: inline-flex;
  align-items: center;
  gap: calc(3 * var(--u));
  padding: calc(2 * var(--u)) calc(8 * var(--u)) calc(2 * var(--u)) calc(4 * var(--u));
  border: calc(2 * var(--u)) solid #e3a714;
  border-radius: 999px;
  background: #fff4cc;
  color: #6b4d00;
  font: 900 max(10px, calc(18 * var(--u))) / 1.2 var(--font);
  white-space: nowrap;
  box-shadow: 0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(10, 34, 78, 0.25);
}
.dock-coins .emoji { font-size: 1.15em; line-height: 1; }
.shop-sheet .sheet-head { position: relative; flex-wrap: wrap; row-gap: calc(8 * var(--u)); }   /* (1.27) a long coin count wraps under the title, never under the ✕ */
.shop-coins {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
  margin-left: auto;
  padding: calc(6 * var(--u)) calc(16 * var(--u)) calc(6 * var(--u)) calc(10 * var(--u));
  border-radius: 999px;
  background: #fff4cc;
  color: #6b4d00;
  font-size: max(14px, calc(28 * var(--u)));
}
.shop-coins .emoji { font-size: calc(32 * var(--u)); }
/* (1.13.4) the refill button under the Winkel's head */
.shop-refill { margin-top: calc(12 * var(--u)); display: flex; justify-content: center; }
.shop-refill .btn { width: 100%; }
.shop-refill .shop-note { margin: 0; }
.shop-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(8 * var(--u)); margin-top: calc(16 * var(--u)); padding: calc(6 * var(--u)); border-radius: calc(30 * var(--u)); background: var(--panel); }   /* (1.26) four tabs: two rows of two, lined up */
.shop-tab { min-height: 40px; padding: calc(12 * var(--u)) 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 900 max(13px, calc(24 * var(--u))) / 1.1 var(--font); }
.shop-tab.on { background: #fff; color: var(--ink); box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(10, 34, 78, 0.12); }
.shop-note { margin: calc(12 * var(--u)) 0; color: var(--muted); font-size: max(12px, calc(20 * var(--u))); font-weight: 700; text-align: center; }
.shop-list { display: flex; flex-direction: column; gap: calc(12 * var(--u)); }
.shop-row { display: flex; align-items: center; gap: calc(14 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); border-radius: calc(22 * var(--u)); background: var(--panel); }
.shop-ic .emoji { font-size: calc(56 * var(--u)); }
.shop-txt { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: max(12px, calc(20 * var(--u))); }
.shop-txt b { font-size: max(14px, calc(26 * var(--u))); }
.shop-txt small { margin-top: calc(4 * var(--u)); color: var(--muted); font-weight: 800; }
.shop-buy, .shop-wear {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(6 * var(--u));
  min-height: 40px;
  min-width: 44px;   /* (1.13.4) "Dra" was 38px wide on a small phone */
  padding: calc(8 * var(--u)) calc(18 * var(--u));
  border: 0;
  border-radius: 999px;
  font: 900 max(13px, calc(24 * var(--u))) / 1.1 var(--font);
}
.shop-buy { background: #ffd23f; color: #1d2b45; box-shadow: 0 calc(4 * var(--u)) 0 #c99a0c; }
.shop-wear { background: #2fb5b0; color: #fff; box-shadow: 0 calc(4 * var(--u)) 0 #1d817d; }
.shop-buy:active, .shop-wear:active { transform: translateY(calc(3 * var(--u))); box-shadow: none; }
.shop-buy .emoji { font-size: calc(26 * var(--u)); }
.shop-buy.is-poor { opacity: 0.5; }
/* the menu's dock holds five buttons (Winkel joined in 1.8): narrower, labels may wrap */
.dock-menu { gap: calc(8 * var(--u)); }
.dock-menu .dock-btn { flex: 1 1 0; min-width: 0; max-width: calc(130 * var(--u)); text-align: center; }
/* equal columns, one line each: the icons sit evenly and the labels line up */
.dock-menu .dock-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.shop-kind { margin: calc(20 * var(--u)) 0 calc(10 * var(--u)); }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(10 * var(--u)); }
.shop-item { display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--u)); padding: calc(12 * var(--u)) calc(6 * var(--u)); border: calc(3 * var(--u)) solid transparent; border-radius: calc(20 * var(--u)); background: var(--panel); text-align: center; }
.shop-item.is-on { border-color: #4fd66a; }
.shop-prev { display: grid; place-items: center; height: calc(64 * var(--u)); }
.shop-prev .emoji { font-size: calc(48 * var(--u)); }
.shop-name { font-size: max(12px, calc(20 * var(--u))); }
.shop-on { color: #1f7a35; font-weight: 900; font-size: max(12px, calc(20 * var(--u))); }
.shop-lock { color: var(--muted); font-weight: 800; font-size: max(10px, calc(17 * var(--u))); }
/* the celebration preview: a real button (at least 32px high), not a thin underlined word */
.shop-try { min-height: 40px; min-width: 56px; padding: 4px 12px; border: 2px solid var(--hemel-d); border-radius: 999px; background: #fff; color: var(--hemel-d); font: 800 max(12px, calc(19 * var(--u))) / 1.1 var(--font); cursor: pointer; }
.title-prev { padding: calc(6 * var(--u)) calc(10 * var(--u)); border-radius: calc(10 * var(--u)); background: #fff; font: 900 max(11px, calc(19 * var(--u))) / 1.1 var(--font); color: var(--ink); }
.style-prev { display: block; width: calc(60 * var(--u)); height: calc(60 * var(--u)); }
.style-prev-plain { display: inline-flex; align-items: flex-end; gap: calc(2 * var(--u)); }
.frame-swatch { display: block; width: calc(64 * var(--u)); height: calc(44 * var(--u)); border-radius: calc(12 * var(--u)); background: #fff; }
/* the frames, on a swatch and on a player card */
.frame-hout { border: calc(5 * var(--u)) solid #a8743c; }
.frame-see { border: calc(5 * var(--u)) solid #2fb5b0; box-shadow: inset 0 0 0 calc(3 * var(--u)) #a9cdfa; }
.frame-goud { border: calc(5 * var(--u)) solid #e8b62c; box-shadow: inset 0 0 0 calc(3 * var(--u)) #fff1b8; }
.frame-springbok { border: calc(5 * var(--u)) solid #157a3f; box-shadow: inset 0 0 0 calc(4 * var(--u)) #f7c948; }
.frame-vuur { border: calc(5 * var(--u)) solid #e8562a; box-shadow: inset 0 0 0 calc(3 * var(--u)) #ffb347, 0 0 calc(10 * var(--u)) rgba(232, 86, 42, 0.5); }
.frame-diamant { border: calc(5 * var(--u)) solid #7fdcf0; box-shadow: inset 0 0 0 calc(3 * var(--u)) #fff, 0 0 calc(14 * var(--u)) rgba(127, 220, 240, 0.8); }
.pcard { display: flex; align-items: center; gap: calc(12 * var(--u)); margin: calc(12 * var(--u)) auto 0; padding: calc(12 * var(--u)) calc(18 * var(--u)); border-radius: calc(22 * var(--u)); background: #fff; color: var(--ink); max-width: calc(560 * var(--u)); }
.pc-badge .emoji { font-size: calc(48 * var(--u)); }
.pc-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.pc-name { overflow: hidden; font-size: max(15px, calc(30 * var(--u))); white-space: nowrap; text-overflow: ellipsis; }
.pc-title { color: var(--muted); font-weight: 800; font-size: max(11px, calc(19 * var(--u))); }
.pc-rank { display: inline-flex; align-items: center; gap: calc(4 * var(--u)); font-weight: 900; font-size: max(12px, calc(20 * var(--u))); }
.pc-rank .emoji { font-size: calc(30 * var(--u)); }
.pcard.is-compact { margin: 0; padding: calc(8 * var(--u)) calc(12 * var(--u)); gap: calc(8 * var(--u)); }
.pcard.is-compact .pc-badge .emoji { font-size: calc(36 * var(--u)); }
.celebrate { position: absolute; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; }
.celebrate i {
  position: absolute;
  top: calc(-90 * var(--u));
  left: var(--x);
  font-style: normal;
  font-size: calc(var(--s) * var(--u));
  animation: confetti-fall var(--t) ease-in var(--d) both;
}
.celebrate .cel-big { position: absolute; left: 0; right: 0; top: 7%; text-align: center; animation: pop-in 0.5s ease-out both, cel-out 0.6s ease-in 3.2s both; }
.celebrate .cel-big .emoji { font-size: calc(200 * var(--u)); }
.celebrate .cel-cap { display: block; margin: calc(8 * var(--u)) auto 0; width: max-content; max-width: 90%; padding: calc(8 * var(--u)) calc(22 * var(--u)); border-radius: 999px; background: rgba(20, 28, 48, 0.82); color: #fff; font-size: calc(40 * var(--u)); font-weight: 900; overflow-wrap: anywhere; }
.vs-cards { display: grid; justify-items: center; gap: calc(10 * var(--u)); margin: calc(4 * var(--u)) 0 calc(8 * var(--u)); }
.vs-cards .pcard { margin: 0; }
@keyframes cel-out { to { opacity: 0; transform: scale(1.3); } }

/* ------------------------------------------------------------------------- */
/* 1.8 power-ups: round buttons on the right edge (only they take taps)      */
/* ------------------------------------------------------------------------- */
.power-tray {
  position: absolute;
  right: calc(var(--sar) + 12 * var(--u));
  top: 30%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--u));
  pointer-events: none;
}
.power-tray[hidden] { display: none; }

/* (1.12) emoji reactions in a match: bottom-left, the tray opens upward along the edge */
.emote-bar {
  position: absolute;
  left: calc(var(--sal) + 16 * var(--u));
  bottom: calc(var(--sab) + 24 * var(--u));
  z-index: 4;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: calc(10 * var(--u));
  pointer-events: none;
}
.emote-bar[hidden] { display: none; }
/* (1.12.1) the tray open: a tap anywhere else closes it instead of dropping a block (under the tray, over the game) */
.emote-shield { position: absolute; inset: 0; z-index: 3; pointer-events: auto; background: transparent; touch-action: none; }
.emote-shield[hidden] { display: none; }
.emote-btn, .emote-pick {
  pointer-events: auto;
  position: relative;
  display: grid;
  place-items: center;
  width: calc(76 * var(--u));
  height: calc(76 * var(--u));
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: calc(3 * var(--u)) solid #fff;
  border-radius: 50%;
  background: rgba(29, 43, 69, 0.78);
  font-size: calc(40 * var(--u));
  line-height: 1;
  overflow: hidden;
}
.emote-btn:disabled { opacity: 0.45; }
/* the cooldown: a dark sweep that drains away */
.emote-btn.is-cool::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(rgba(10, 16, 32, 0.62) var(--sweep, 100%), transparent 0);
  animation: emote-cool var(--cool, 5000ms) linear forwards;
}
@property --sweep { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
@keyframes emote-cool { from { --sweep: 100%; } to { --sweep: 0%; } }
.emote-tray { display: none; flex-direction: column-reverse; gap: calc(10 * var(--u)); }
.emote-bar.open .emote-tray { display: flex; }
.emote-pick { background: rgba(255, 255, 255, 0.95); border-color: rgba(29, 43, 69, 0.15); }
.emote-mute { background: rgba(29, 43, 69, 0.78); border-color: #fff; font-size: calc(32 * var(--u)); }
.power-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(84 * var(--u));
  height: calc(84 * var(--u));
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: calc(4 * var(--u)) solid #fff;
  border-radius: 50%;
  background: rgba(29, 43, 69, 0.82);
  box-shadow: 0 calc(5 * var(--u)) calc(12 * var(--u)) rgba(5, 15, 35, 0.35);
  pointer-events: auto;
}
.power-btn .emoji { font-size: calc(44 * var(--u)); line-height: 1; }
.power-btn:active { transform: scale(0.94); }
.power-btn:disabled { opacity: 0.45; }
.power-tag {
  position: absolute;
  right: calc(-8 * var(--u));
  bottom: calc(-6 * var(--u));
  padding: calc(2 * var(--u)) calc(9 * var(--u));
  border-radius: 999px;
  background: #ffd23f;
  color: #1d2b45;
  font: 900 max(10px, calc(18 * var(--u))) / 1.2 var(--font);
}
.power-btn.is-active { border-color: #4fd66a; }
.power-btn.is-active .power-tag { background: #4fd66a; color: #0b3d18; }
.power-btn.is-glow { border-color: #ffd23f; animation: power-glow 1.1s ease-in-out infinite; }
@keyframes power-glow { 50% { box-shadow: 0 0 0 calc(10 * var(--u)) rgba(255, 210, 63, 0.45); transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .power-btn.is-glow { animation: none; } }

/* ------------------------------------------------------------------------- */
/* In-game pause button (top-right corner, 96×96 hit area kept free by HUD)  */
/* ------------------------------------------------------------------------- */

.pause-btn {
  position: absolute;
  top: calc(var(--sat) + 6 * var(--u));
  right: calc(var(--sar) + 6 * var(--u));
  z-index: 4;
  display: grid;
  place-items: center;
  width: calc(96 * var(--u));
  height: calc(96 * var(--u));
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
}
.pause-btn > span {
  display: grid;
  place-items: center;
  width: calc(70 * var(--u));
  height: calc(70 * var(--u));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: calc(34 * var(--u));
  box-shadow: 0 calc(5 * var(--u)) 0 rgba(29, 43, 69, 0.22), 0 calc(8 * var(--u)) calc(16 * var(--u)) rgba(10, 34, 78, 0.18);
  transition: transform 0.07s ease-out;
}
.pause-btn:active > span { transform: translateY(calc(3 * var(--u))) scale(0.94); }
#ui .pause-btn:focus-visible { outline: none; box-shadow: none; }
#ui .pause-btn:focus-visible > span { outline: calc(5 * var(--u)) solid #fff; outline-offset: calc(4 * var(--u)); }

/* ------------------------------------------------------------------------- */
/* Toasts                                                                    */
/* ------------------------------------------------------------------------- */
.toasts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--sab) + 210 * var(--u));
  z-index: 8;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: calc(12 * var(--u));
  pointer-events: none;
}
.toast {
  max-width: calc(620 * var(--u));
  padding: calc(18 * var(--u)) calc(34 * var(--u));
  border-radius: 999px;
  background: rgba(29, 43, 69, 0.94);
  color: #fff;
  text-align: center;
  font-size: calc(28 * var(--u));
  font-weight: 800;
  box-shadow: 0 calc(12 * var(--u)) calc(26 * var(--u)) rgba(6, 18, 40, 0.35);
  animation: toast-in 0.32s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
.toast.out { animation: toast-out 0.25s ease-in both; }

@keyframes toast-in { from { transform: translateY(calc(30 * var(--u))) scale(0.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(calc(16 * var(--u))) scale(0.92); opacity: 0; } }

/* ------------------------------------------------------------------------- */
/* Loading splash (static markup in index.html; hidden by ui.setLoading)     */
/* ------------------------------------------------------------------------- */
#splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: linear-gradient(180deg, #4fb9f0 0%, #8fd3f4 40%, #c8ecfb 60%);
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
  --wl: 60%;                       /* the waterline */
}
#splash.done { opacity: 0; visibility: hidden; pointer-events: none; }
/* (1.26.7) the entrance: the sea rolls in (0-0.6 s), Oom skis in on his board towed by his tuna (0.35-1.05 s), the line
   goes tight and the tuna leaps (from 1 s, every 2.8 s), the name drops in (1.05 s); clouds, waves and spray keep moving */
#splash i { display: block; position: absolute; }
#splash .sp-sun { right: 8%; top: 7%; width: calc(260 * var(--u)); height: calc(260 * var(--u)); border-radius: 50%;
  background: radial-gradient(circle, #fff8d0 0 28%, rgba(255, 248, 200, 0.55) 42%, rgba(255, 248, 200, 0) 70%); }
#splash .sp-cloud { width: calc(170 * var(--u)); height: calc(54 * var(--u)); border-radius: calc(40 * var(--u)); background: #fff; opacity: 0.9;
  box-shadow: calc(50 * var(--u)) calc(-26 * var(--u)) 0 calc(4 * var(--u)) #fff, calc(-40 * var(--u)) calc(-12 * var(--u)) 0 calc(-6 * var(--u)) #fff;
  left: 100%; animation: sp-cloud 16s linear infinite; }
#splash .sp-cloud.c1 { top: 30%; animation-delay: -5s; }
#splash .sp-cloud.c2 { top: 40%; transform: scale(0.7); animation-duration: 24s; animation-delay: -15s; opacity: 0.75; }
@keyframes sp-cloud { to { left: calc(-260 * var(--u)); } }
#splash .sp-title { position: absolute; left: 0; right: 0; top: 11%; margin: 0; text-align: center; pointer-events: none;
  font-size: calc(150 * var(--u)); font-weight: 900; line-height: 1; letter-spacing: 0.04em; color: #fff;
  text-shadow: calc(6 * var(--u)) 0 0 #1d2b45, calc(-6 * var(--u)) 0 0 #1d2b45, 0 calc(6 * var(--u)) 0 #1d2b45, 0 calc(-6 * var(--u)) 0 #1d2b45,
    calc(4.5 * var(--u)) calc(4.5 * var(--u)) 0 #1d2b45, calc(-4.5 * var(--u)) calc(4.5 * var(--u)) 0 #1d2b45,
    calc(4.5 * var(--u)) calc(-4.5 * var(--u)) 0 #1d2b45, calc(-4.5 * var(--u)) calc(-4.5 * var(--u)) 0 #1d2b45,
    0 calc(16 * var(--u)) 0 rgba(29, 43, 69, 0.35);
  animation: sp-title 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 1.05s both; }
#splash .sp-title span { display: inline-block; transform: rotate(-4deg); }
@keyframes sp-title { from { transform: translateY(calc(-260 * var(--u))) scale(1.4); opacity: 0; } 50% { opacity: 1; } }
#splash .sp-sea { position: absolute; left: 0; right: 0; top: var(--wl); bottom: 0; background: linear-gradient(180deg, #2aa3da 0%, #1683bd 40%, #0f5f95 100%);
  animation: sp-rise 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.05) both; }
#splash .sp-front { left: 0; right: 0; top: calc(var(--wl) + 12 * var(--u)); height: calc(26 * var(--u)); background: #1f93cc; opacity: 0.85;
  animation: sp-rise 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.05) both; }
@keyframes sp-rise { from { transform: translateY(50vh); } }
#splash .sp-crest { left: 0; top: calc(-14 * var(--u)); width: 200%; height: calc(30 * var(--u));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30' preserveAspectRatio='none'%3E%3Cpath d='M0 14 Q15 4 30 14 T60 14 T90 14 T120 14 V30 H0Z' fill='%23ffffff' fill-opacity='.9'/%3E%3C/svg%3E") repeat-x;
  background-size: calc(240 * var(--u)) 100%; animation: sp-crest 1.4s linear infinite; }
@keyframes sp-crest { to { transform: translateX(calc(-240 * var(--u))); } }
#splash .sp-dash { left: 100%; height: calc(7 * var(--u)); border-radius: calc(4 * var(--u)); background: rgba(255, 255, 255, 0.5); animation: sp-dash 1.3s linear infinite; }
#splash .sp-dash.d1 { top: 14%; width: calc(110 * var(--u)); }
#splash .sp-dash.d2 { top: 30%; width: calc(160 * var(--u)); animation-delay: -0.4s; animation-duration: 1.1s; }
#splash .sp-dash.d3 { top: 48%; width: calc(90 * var(--u)); animation-delay: -0.9s; }
#splash .sp-dash.d4 { top: 64%; width: calc(140 * var(--u)); animation-delay: -0.2s; animation-duration: 1s; }
#splash .sp-dash.d5 { top: 82%; width: calc(120 * var(--u)); animation-delay: -0.7s; animation-duration: 0.9s; }
@keyframes sp-dash { to { left: calc(-200 * var(--u)); } }
/* Oom on his board: the box is his picture (320 x 306); his feet stand on the waterline */
#splash .sp-go { position: absolute; left: calc(50% - 290 * var(--u)); top: calc(var(--wl) - 296 * var(--u)); width: calc(320 * var(--u)); height: calc(306 * var(--u));
  transition: transform 0.45s ease-in; }
#splash.done .sp-go { transform: translateX(80vw); }
#splash .sp-ride { position: absolute; inset: 0; animation: sp-ski 0.75s cubic-bezier(0.2, 1.25, 0.4, 1) 0.35s both; }
@keyframes sp-ski { from { transform: translateX(-110vw) rotate(-8deg); } }
#splash .sp-bob { position: absolute; inset: 0; transform-origin: 30% 100%; animation: sp-bob 1.2s ease-in-out infinite; }
@keyframes sp-bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(calc(-10 * var(--u))) rotate(1deg); } }
#splash .sp-oom { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
#splash .sp-board { position: absolute; left: calc(-42 * var(--u)); top: calc(262 * var(--u)); width: calc(310 * var(--u)); transform: rotate(-7deg); }
#splash .sp-wake { left: calc(-260 * var(--u)); top: calc(300 * var(--u)); width: calc(240 * var(--u)); height: calc(18 * var(--u)); border-radius: calc(9 * var(--u));
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95)); }
#splash .sp-spray { width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-radius: 50%; background: #fff; box-shadow: 0 0 0 calc(4 * var(--u)) #1d2b45;
  left: calc(-36 * var(--u)); top: calc(292 * var(--u)); animation: sp-spray 0.9s ease-out infinite; }
#splash .sp-spray.s2 { animation-delay: -0.18s; width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
#splash .sp-spray.s3 { animation-delay: -0.36s; }
#splash .sp-spray.s4 { animation-delay: -0.54s; width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
#splash .sp-spray.s5 { animation-delay: -0.72s; width: calc(30 * var(--u)); height: calc(30 * var(--u)); }
@keyframes sp-spray { from { transform: translate(0, 0) scale(0.4); opacity: 1; } to { transform: translate(calc(-90 * var(--u)), calc(-70 * var(--u))) scale(1.2); opacity: 0; } }
/* the line from the rod's tip (97 % across, 0.6 % down his picture) to the tuna's mouth: it swings as he leaps */
#splash .sp-line { position: absolute; left: 97.1%; top: 0.6%; width: calc(350 * var(--u)); height: 0; transform-origin: 0 0; transform: rotate(58deg);
  border-top: calc(3 * var(--u)) solid #fff; filter: drop-shadow(0 0 calc(1.5 * var(--u)) #1d2b45);
  animation: sp-leap 2.8s ease-in-out 1s infinite, sp-show 0.2s 0.95s both; }
#splash .sp-end { position: absolute; left: 100%; top: 0; width: 0; height: 0; transform: rotate(-58deg); animation: sp-leapBack 2.8s ease-in-out 1s infinite; }
#splash .sp-fishRot { position: absolute; left: calc(-230 * 0.96 * var(--u)); top: calc(-115 * 0.52 * var(--u)); width: calc(230 * var(--u)); height: calc(115 * var(--u));
  transform-origin: 96% 52%; opacity: 0; animation: sp-fish 2.8s ease-in-out 1s infinite; }
#splash .sp-fish { width: 100%; height: 100%; transform: scaleX(-1); }
#splash .sp-burst { left: calc(-120 * var(--u)); top: calc(-30 * var(--u)); width: calc(150 * var(--u)); height: calc(60 * var(--u)); border-radius: 50% 50% 40% 40%;
  background: radial-gradient(ellipse at 50% 80%, #fff 0 45%, rgba(255, 255, 255, 0) 70%); opacity: 0; animation: sp-burst 2.8s ease-out 1s infinite; }
@keyframes sp-leap { 0%, 100% { transform: rotate(58deg); } 12% { transform: rotate(50deg); } 38% { transform: rotate(24deg); } 62% { transform: rotate(38deg); } 74% { transform: rotate(54deg); } }
@keyframes sp-leapBack { 0%, 100% { transform: rotate(-58deg); } 12% { transform: rotate(-50deg); } 38% { transform: rotate(-24deg); } 62% { transform: rotate(-38deg); } 74% { transform: rotate(-54deg); } }
@keyframes sp-fish { 0%, 8% { transform: rotate(-50deg); opacity: 0; } 12% { transform: rotate(-40deg); opacity: 1; } 38% { transform: rotate(-6deg); }
  62% { transform: rotate(24deg); } 72% { transform: rotate(38deg); opacity: 1; } 76%, 100% { transform: rotate(42deg); opacity: 0; } }
@keyframes sp-burst { 0%, 6% { opacity: 0; transform: scale(0.3); } 13% { opacity: 1; transform: scale(1); } 24% { opacity: 0; transform: scale(1.3); }
  70% { opacity: 0; transform: scale(0.3); } 77% { opacity: 1; transform: scale(1.1); } 90%, 100% { opacity: 0; transform: scale(1.4); } }
@keyframes sp-show { from { opacity: 0; } }
.splash-msg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  margin: 0;
  text-align: center;
  font-size: calc(36 * var(--u));
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 calc(3 * var(--u)) 0 rgba(29, 43, 69, 0.5);
  animation: sp-show 0.3s 1.3s both, pulse 1.2s ease-in-out 1.6s infinite;
}
@media (prefers-reduced-motion: reduce) {
  #splash *, #splash .splash-msg { animation: none !important; }
  #splash .sp-line { transform: rotate(26deg); }
  #splash .sp-end { transform: rotate(-26deg); }
  #splash .sp-fishRot { opacity: 1; transform: rotate(-12deg); }
}

@keyframes lb-drop {
  from { transform: translateY(calc(-420 * var(--u))) rotate(calc(var(--r) * 3)); opacity: 0; }
  60% { opacity: 1; }
  to { transform: translateY(var(--y)) rotate(var(--r)); opacity: 1; }
}
@keyframes pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ------------------------------------------------------------------------- */
/* Rotate-your-phone overlay (CSS only, small landscape touch screens)        */
/* ------------------------------------------------------------------------- */
#rotate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px max(24px, env(safe-area-inset-right)) 24px max(24px, env(safe-area-inset-left));
  background: linear-gradient(180deg, #5ec1f5 0%, #2f86d8 100%);
  color: #fff;
  text-align: center;
  font-family: var(--font);
}
#rotate .rot-phone {
  font-size: 64px;
  animation: rot-phone 2.2s ease-in-out infinite;
}
#rotate p {
  margin: 0;
  max-width: 420px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 0 2px 0 rgba(29, 43, 69, 0.35);
}

@keyframes rot-phone {
  0%, 20% { transform: rotate(-90deg); }
  55%, 100% { transform: rotate(0deg); }
}

@media (orientation: landscape) and (max-height: 540px) and (pointer: coarse) {
  #rotate { display: flex; }
}
/* (1.12.1) the keyboard is up (js/main.js): on a short phone the window left above it is wider than tall */
.kb-up #rotate { display: none; }

/* ------------------------------------------------------------------------- */
/* No-JS message                                                             */
/* ------------------------------------------------------------------------- */
.nojs {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #5ec1f5;
  color: #1d2b45;
  font: 700 20px/1.4 var(--font);
  text-align: center;
}

/* ------------------------------------------------------------------------- */
/* Reduced motion: no wobble, no confetti, instant transitions               */
/* ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .confetti { display: none; }
}
#ui.rm *, #ui.rm *::before, #ui.rm *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  animation-delay: 0s !important;
  transition-duration: 0.01ms !important;
}
#ui.rm .confetti { display: none; }

/* ------------------------------------------------------------------------- */
/* Short canvases (aspect < 1.72, e.g. desktop/tablet): tighten the menu       */
/* ------------------------------------------------------------------------- */
#ui.short .screen { padding-top: calc(var(--sat) + 14 * var(--u)); padding-bottom: calc(var(--sab) + 20 * var(--u)); }
#ui.short .screen-menu .logo { padding-top: calc(106 * var(--u)); font-size: calc(64 * var(--u)); }
#ui.short .screen-menu .lb { width: calc(90 * var(--u)); height: calc(90 * var(--u)); }
#ui.short .screen-menu .lb.hang { --y: calc(-38 * var(--u)); }
#ui.short .tagline { margin-top: calc(16 * var(--u)); font-size: calc(31 * var(--u)); }
#ui.short .menu-stack { gap: calc(18 * var(--u)); }
/* (1.32.5: not the Daily in the Stapel pill: its padding is the Glybaan card's (pills.css), or on a short screen SPEEL stood
   9 px above GLY AF) */
#ui.short .daily-card:not(.pill-daily) { padding: calc(26 * var(--u)) calc(30 * var(--u)) calc(30 * var(--u)); }
#ui.short .daily-head { margin-bottom: calc(16 * var(--u)); }
#ui.short .daily-badge { width: calc(72 * var(--u)); height: calc(72 * var(--u)); font-size: calc(40 * var(--u)); }
#ui.short .forecast { padding: calc(14 * var(--u)) calc(12 * var(--u)); }
#ui.short .fc-emo { width: calc(68 * var(--u)); height: calc(68 * var(--u)); font-size: calc(40 * var(--u)); }
#ui.short .note { margin: calc(12 * var(--u)) 0 calc(16 * var(--u)); }
/* compact and short screens: the visitors line costs (almost) no extra height */
#ui.compact .forecast.has-visitors { padding-top: calc(10 * var(--u)); padding-bottom: calc(8 * var(--u)); }
#ui.compact .has-visitors .fc-strip { margin-top: calc(8 * var(--u)); }
#ui.compact .has-visitors .fc-item { gap: calc(4 * var(--u)); }
#ui.compact .has-visitors .fc-emo { width: calc(60 * var(--u)); height: calc(60 * var(--u)); font-size: calc(36 * var(--u)); }
#ui.compact .fc-visitors { margin-top: calc(4 * var(--u)); }
#ui.compact .fc-who .emoji { font-size: calc(26 * var(--u)); }
#ui.short .btn-big { min-height: calc(108 * var(--u)); }
#ui.short .btn-practice { min-height: calc(96 * var(--u)); }
#ui.short .dock-ic { width: calc(78 * var(--u)); height: calc(78 * var(--u)); font-size: calc(36 * var(--u)); }
#ui.short .res-wrap { gap: calc(16 * var(--u)); }
#ui.short .big-m { font-size: calc(104 * var(--u)); }
#ui.short .res-stats .tile { min-height: calc(100 * var(--u)); }
#ui.short .grid { margin-top: calc(16 * var(--u)); font-size: calc(36 * var(--u)); }
#ui.short .grid-row { min-height: calc(42 * var(--u)); }
#ui.short .grid-row .emoji { width: calc(42 * var(--u)); }
#ui.short .share-row { margin-top: calc(18 * var(--u)); }

/* ------------------------------------------------------------------------- */
/* 1.0.1: readability floors, colour-blind grid, results reveal and peek      */
/* ------------------------------------------------------------------------- */
/* never smaller than 12 CSS px, whatever the phone */
.fc-name { font-size: max(11px, calc(20 * var(--u))); letter-spacing: -0.02em; }
.res-stats .tile span { font-size: max(12px, calc(18 * var(--u))); }
.tile span { font-size: max(12px, calc(20 * var(--u))); }
.bar-val { font-size: max(12px, calc(19 * var(--u))); }
.bar-day, .foot-cell span { font-size: max(12px, calc(20 * var(--u))); }
.label { font-size: max(12px, calc(21 * var(--u))); }
.wx-chip, .dock-btn { font-size: max(12px, calc(21 * var(--u))); }
.note { font-size: max(12px, calc(24 * var(--u))); }

/* fog's emoji is a pale square on Android: give it a darker backing */
.fc-emo[data-wx="fog"], .wx-chip[data-wx="fog"] .emoji { background: #c9d7ea; border-radius: 50%; }
.wx-chip[data-wx="fog"] .emoji { padding: calc(2 * var(--u)); }
.wx-n { margin-left: calc(2 * var(--u)); font-size: max(11px, calc(16 * var(--u))); font-weight: 900; color: var(--ink-soft); }

/* grid cells: colour + symbol (★ Perfek, • Goed, ∼ Skeef, ✕ verlore) */
.grid-row .cell {
  display: inline-grid;
  place-items: center;
  width: calc(42 * var(--u));
  height: calc(42 * var(--u));
  margin: calc(2 * var(--u));
  border-radius: calc(9 * var(--u));
  font: 900 calc(24 * var(--u)) / 1 var(--font);
  box-shadow: inset 0 calc(-4 * var(--u)) 0 rgba(0, 0, 0, 0.16);
  /* (1.15.4, the game-tester: 74 paint layers on a daily's results 7 s after it opened) 'backwards', not 'both': a tile
     lets go of its pop-in once it ends, so it stops being a layer of its own (Android's WebView and a scrolling card) */
  animation: cell-in 0.32s cubic-bezier(0.2, 1.6, 0.4, 1) backwards;
  animation-delay: calc(0.2s + var(--i, 0) * 28ms);
}
.cell-P { background: #3f9a3e; color: #fff; }
.cell-G { background: #f7c948; color: var(--ink); }
.cell-S { background: #f39a2b; color: var(--ink); }
.cell-X { background: #31373d; color: #fff; }
/* the clown's gift block: cream with a circus-red rim (same in high contrast) */
.cell-B { background: #fff4dc; box-shadow: inset 0 0 0 calc(3 * var(--u)) #e23b3b; font-size: calc(22 * var(--u)); }
.cell-F { background: #3a3f47; box-shadow: inset 0 0 0 calc(3 * var(--u)) #f5b833; font-size: calc(22 * var(--u)); }
/* high contrast (matches the 🟦🟧⬜⬛ share grid) */
#ui.hc .cell-P { background: #2563b0; color: #fff; }
#ui.hc .cell-G { background: #f39a2b; color: var(--ink); }
#ui.hc .cell-S { background: #eef2f7; color: var(--ink); box-shadow: inset 0 0 0 calc(2 * var(--u)) #c3d1e4; }
#ui.hc .cell-X { background: #1d2b45; color: #fff; }

/* results arrive from below, the title gets a backing, the buttons stay reachable */
.screen-results.on .res-wrap { animation: res-up 0.45s cubic-bezier(0.2, 1.2, 0.4, 1) both; }
@keyframes res-up { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
.res-head {
  align-self: center;
  padding: calc(14 * var(--u)) calc(24 * var(--u));
  border-radius: calc(36 * var(--u));
  background: rgba(12, 32, 66, 0.55);
}
/* what next sits after the card, in its place (1.11: it used to float over the city and the streak) */
.screen-results .res-play { margin-top: calc(4 * var(--u)); }
.foot-cell .btn-new { min-height: calc(80 * var(--u)); font-size: calc(26 * var(--u)); padding: calc(8 * var(--u)) calc(14 * var(--u)); }
.empty-note { margin: calc(24 * var(--u)) 0 calc(4 * var(--u)); }

/* "Toring" peek: hide the card and scrim to look at the whole tower */
.peek-btn {
  position: absolute;
  top: calc(var(--sat) + 14 * var(--u));
  left: calc(var(--sal) + 14 * var(--u));
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--u));
  height: calc(64 * var(--u));
  min-height: 44px;
  padding: 0 calc(22 * var(--u)) 0 calc(16 * var(--u));
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: 900 max(13px, calc(24 * var(--u))) / 1 var(--font);
  box-shadow: 0 calc(6 * var(--u)) 0 rgba(29, 43, 69, 0.22);
  pointer-events: auto;
}
.peek-btn .ic { width: 1.3em; height: 1.3em; }
.screen-results.peek { background: transparent; }
.screen-results.peek .res-wrap, .screen-results.peek .confetti { visibility: hidden; }
/* (1.15.4) a reopened result's tower: the picture this session took of it, shown while "Toring" is on */
.tower-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; z-index: 1; pointer-events: none; }
.screen-results.peek .tower-shot { display: block; }

/* stats sheet: the settings that affect sharing */
.stats-foot { display: flex; flex-direction: column; gap: calc(16 * var(--u)); }
.stats-foot .dock { margin: 0; }
/* (1.12.1) "Verander jou bynaam" (Statistiek, ranglys): small, so the 7-day chart and the list keep their room */
.stats-foot .btn-mini, .board-foot .btn-mini {
  align-self: center;
  justify-self: center;
  width: auto;
  min-height: max(44px, calc(72 * var(--u)));
  padding: calc(8 * var(--u)) calc(28 * var(--u));
  gap: calc(10 * var(--u));
  font-size: calc(26 * var(--u));
  border-radius: calc(26 * var(--u));
  --depth: calc(7 * var(--u));
}

/* phones around 16:9 (360×640): a long daily must still fit with its buttons */
#ui.compact .big-m { font-size: calc(96 * var(--u)); }
#ui.compact .res-stats .tile { min-height: calc(92 * var(--u)); }
#ui.compact .res-wrap { gap: calc(14 * var(--u)); }
#ui.compact .grid-row .cell { width: calc(38 * var(--u)); height: calc(38 * var(--u)); }
#ui.compact .grid-row { min-height: calc(42 * var(--u)); }
#ui.compact .res-card { padding: calc(22 * var(--u)) calc(26 * var(--u)) calc(26 * var(--u)); }
#ui.compact .share-row { margin-top: calc(16 * var(--u)); }
#ui.compact .res-foot { padding: calc(8 * var(--u)) calc(10 * var(--u)); }
#ui.compact .foot-cell b { font-size: calc(34 * var(--u)); }

/* ------------------------------------------------------------------------- */
/* Jou Stapelstad (the player's own skyline), friend challenge, teaser, install */
/* ------------------------------------------------------------------------- */
.res-city { padding: calc(18 * var(--u)) calc(22 * var(--u)) calc(16 * var(--u)); border-radius: calc(32 * var(--u)); }
/* (1.13.1) a free daily try left: the big green button under the result */
.res-free { padding: calc(18 * var(--u)) calc(22 * var(--u)) calc(16 * var(--u)); border-radius: calc(32 * var(--u)); }
.res-free .retry-note { margin-top: calc(12 * var(--u)); }
.res-best { font-weight: 800; }
.city-head { display: flex; align-items: center; justify-content: space-between; gap: calc(10 * var(--u)); }
.city-title { display: flex; align-items: center; gap: calc(8 * var(--u)); margin: 0; }
.city-title .emoji { font-size: calc(26 * var(--u)); }
.city-streak {
  display: inline-flex; align-items: center; gap: calc(4 * var(--u));
  font-size: max(12px, calc(21 * var(--u))); font-weight: 800; color: var(--karoo-d);
}
.city-streak .emoji { font-size: calc(24 * var(--u)); }
.city-strip {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: calc(3 * var(--u));
  align-items: end;
  height: calc(150 * var(--u));
  margin: calc(10 * var(--u)) 0 calc(8 * var(--u));
  padding: calc(34 * var(--u)) 0 0;
  border-bottom: calc(4 * var(--u)) solid #b7c8dd;
  background: linear-gradient(to top, rgba(160, 200, 235, 0.25), rgba(160, 200, 235, 0) 75%);
  border-radius: calc(12 * var(--u)) calc(12 * var(--u)) 0 0;
}
.city-col {
  position: relative;
  display: block;
  height: var(--h);
  min-height: calc(10 * var(--u));
  background: repeating-linear-gradient(to top, var(--c) 0 calc(10 * var(--u)), rgba(255, 255, 255, 0.45) calc(10 * var(--u)) calc(12 * var(--u)));
  border-radius: calc(3 * var(--u)) calc(3 * var(--u)) 0 0;
  box-shadow: inset calc(-3 * var(--u)) 0 0 rgba(10, 30, 70, 0.14);
  transform-origin: 50% 100%;
}
.city-col.plot {
  height: calc(8 * var(--u));
  background: transparent;
  box-shadow: none;
  border: calc(2 * var(--u)) dashed #b2c4da;
  border-bottom: 0;
}
.city-flag {
  position: absolute; left: 35%; bottom: 100%;
  font-style: normal; font-size: calc(26 * var(--u)); line-height: 1;
  pointer-events: none;
}
.city-col.rise { transform: scaleY(0); }
.city-strip.go .city-col.rise {
  animation: city-rise 0.9s cubic-bezier(0.2, 1.25, 0.4, 1) 0.15s both, city-glow 1.4s ease-out 1.05s 1;
}
@keyframes city-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes city-glow {
  0% { box-shadow: inset calc(-3 * var(--u)) 0 0 rgba(10, 30, 70, 0.14), 0 0 0 0 var(--c); }
  40% { box-shadow: inset calc(-3 * var(--u)) 0 0 rgba(10, 30, 70, 0.14), 0 0 calc(22 * var(--u)) calc(8 * var(--u)) var(--c); }
  100% { box-shadow: inset calc(-3 * var(--u)) 0 0 rgba(10, 30, 70, 0.14), 0 0 0 0 transparent; }
}
.city-line {
  margin: 0; text-align: center; font-weight: 800; color: var(--ink-soft);
  font-size: max(12px, calc(26 * var(--u)));
}
.city-sm { margin-top: calc(22 * var(--u)); }
.city-sm .city-strip { height: calc(120 * var(--u)); padding-top: calc(30 * var(--u)); }
.res-teaser, .install-tip {
  margin: 0; align-self: center; text-align: center; font-weight: 800; color: #fff;
  font-size: max(13px, calc(26 * var(--u)));
  padding: calc(10 * var(--u)) calc(22 * var(--u));
  border-radius: calc(30 * var(--u));
  background: rgba(12, 32, 66, 0.55);
}
.install-row { display: flex; align-items: center; justify-content: center; gap: calc(10 * var(--u)); margin-bottom: calc(8 * var(--u)); }
.install-btn { flex: 1 1 auto; min-height: calc(76 * var(--u)); font-size: max(13px, calc(26 * var(--u))); padding: calc(8 * var(--u)) calc(16 * var(--u)); }
.install-row .install-tip { flex: 1 1 auto; }
.install-x {
  flex: 0 0 auto; width: max(40px, calc(64 * var(--u))); height: max(40px, calc(64 * var(--u)));
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  color: #fff; background: rgba(12, 32, 66, 0.55);
}
.install-x .ic { width: 55%; height: 55%; }
.challenge-chip {
  margin: calc(12 * var(--u)) 0 0; padding: calc(10 * var(--u)) calc(18 * var(--u));
  text-align: center; font-weight: 800; font-size: max(13px, calc(25 * var(--u)));
  color: #a3262c; background: #fff1f1; border: calc(3 * var(--u)) solid #ffc9cc; border-radius: calc(26 * var(--u));
}
#ui.compact .city-strip { height: calc(124 * var(--u)); padding-top: calc(30 * var(--u)); margin: calc(6 * var(--u)) 0; }
#ui.compact .res-city { padding: calc(12 * var(--u)) calc(18 * var(--u)) calc(10 * var(--u)); }
#ui.compact .res-wrap { gap: calc(12 * var(--u)); }
#ui.compact .city-sm { margin-top: calc(10 * var(--u)); }
#ui.compact .city-sm .city-strip { height: calc(92 * var(--u)); padding-top: calc(26 * var(--u)); }
#ui.compact .city-sm .city-line { font-size: max(12px, calc(22 * var(--u))); }

/* 1.9 language: the menu's 🌐 button (top left, clear of the logo) and the Afrikaans / English picker */
.lang-chip {
  position: absolute;
  top: calc(var(--sat) + 14 * var(--u));
  left: calc(var(--sal) + 16 * var(--u));
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
  min-height: 44px;   /* (1.13.4) was 36px: a thumb-sized target */
  padding: calc(6 * var(--u)) calc(16 * var(--u)) calc(6 * var(--u)) calc(12 * var(--u));
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: max(13px, calc(24 * var(--u)));
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 calc(6 * var(--u)) calc(14 * var(--u)) rgba(10, 34, 78, 0.2);
  cursor: pointer;
  z-index: 2;
}
.lang-chip .emoji { font-size: 1.15em; }
.lang-sheet .sheet-head h2 { font-size: calc(36 * var(--u)); text-wrap: balance; }
.lang-btns { display: grid; gap: calc(16 * var(--u)); padding: calc(10 * var(--u)) 0 calc(6 * var(--u)); }
.lang-btn {
  min-height: 56px;
  padding: calc(22 * var(--u));
  border: calc(4 * var(--u)) solid transparent;
  border-radius: calc(28 * var(--u));
  background: #eef6ff;
  color: var(--ink);
  font: inherit;
  font-size: max(18px, calc(40 * var(--u)));
  font-weight: 900;
  cursor: pointer;
}
.lang-btn.on { border-color: var(--jakaranda-d, #5b3fa8); background: #fff; }
.lang-btn:focus-visible { outline: 3px solid var(--jakaranda-d, #5b3fa8); outline-offset: 2px; }

/* the daily reminder (1.10, the Android app) */
.remind-ask { margin: 0 0 calc(16 * var(--u)); font-weight: 700; line-height: 1.4; }
.remind-times { display: grid; gap: calc(12 * var(--u)); }
.remind-times .btn.is-on { box-shadow: 0 0 0 calc(4 * var(--u)) var(--sonneblom); }
.app-open { text-decoration: none; }

/* (1.12.1) the ranglys: report an unsuitable name */
.board-report { margin: 0 0 calc(10 * var(--u)); text-align: center; font-size: max(12px, calc(21 * var(--u))); font-weight: 600; color: var(--ink-soft); }
.board-report a { color: inherit; font-weight: 800; }
/* Bêre jou vordering (1.13): Sign in with Google */
.account-why, .account-ask { margin: 0 0 calc(18 * var(--u)); font-weight: 700; line-height: 1.4; }
.account-google { display: flex; justify-content: center; min-height: 44px; margin: 0 0 calc(14 * var(--u)); }
.account-keeps { margin: 0; font-size: max(12px, calc(22 * var(--u))); font-weight: 600; line-height: 1.4; color: var(--ink-soft); }
.account-in { display: flex; align-items: center; gap: calc(10 * var(--u)); margin: 0 0 calc(8 * var(--u)); font-weight: 900; }
.account-tick { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--bosveld); color: #fff; font-size: 0.9em; }
.account-line { margin: 0; font-weight: 700; color: var(--ink-soft); }
.account-signing { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0 0 calc(14 * var(--u)); }
.account-msg { margin: calc(12 * var(--u)) 0; font-weight: 700; line-height: 1.4; color: var(--klei-d); }
.account-foot { display: flex; flex-direction: column; gap: calc(12 * var(--u)); }
.account-delete {
  appearance: none; border: 0; background: none; min-height: 40px; padding: 8px 12px; margin: 0; align-self: center;
  font: inherit; font-size: max(13px, calc(24 * var(--u))); font-weight: 700; color: var(--klei-d);
  text-decoration: underline; cursor: pointer;
}
/* the app's own sign-in button, drawn like Google's (light theme: white, a grey line, the G on the left) */
.gsi-native {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 44px; padding: 0 20px 0 14px; border: 1px solid #747775; border-radius: 22px;
  background: #fff; color: #1f1f1f; font: 500 15px/20px Roboto, system-ui, sans-serif; cursor: pointer;
}
.gsi-native:active { background: #f1f1f1; }
.gsi-native:focus-visible { outline: 3px solid var(--hemel-d); outline-offset: 2px; }
.gsi-g { width: 20px; height: 20px; flex: none; }

/* the version under the statistics (testers can say which one they have) */
.version-note { margin: 0; text-align: center; font-size: max(11px, calc(20 * var(--u))); font-weight: 700; color: var(--ink-soft); opacity: 0.8; }

/* 1.9.2 daily leaderboard: the place on the results card, and the Ranglys sheet */
.res-board {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(8 * var(--u));
  max-width: 100%;
  margin-top: calc(8 * var(--u));
  padding: calc(6 * var(--u)) calc(10 * var(--u)) calc(6 * var(--u)) calc(14 * var(--u));
  border-radius: 999px;
  background: #fff4cc;
  color: #6b4d00;
  font-size: max(12px, calc(22 * var(--u)));
  font-weight: 800;
}
.res-board .emoji { flex: none; font-size: calc(24 * var(--u)); }
.res-board-btn {
  min-height: 32px;
  padding: 4px 12px;
  border: 2px solid #e3a714;
  border-radius: 999px;
  background: #fff;
  color: #6b4d00;
  font: 900 max(12px, calc(20 * var(--u))) / 1.1 var(--font);
  cursor: pointer;
}
.board-list { margin: 0; padding: 0; list-style: none; display: grid; gap: calc(8 * var(--u)); }
/* (1.22) the Ranglys sheet's tabs: the Daily tower and Afgly */
.board-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: calc(8 * var(--u)); padding: calc(6 * var(--u)); margin: 0 0 calc(16 * var(--u)); border-radius: calc(20 * var(--u)); background: rgba(0, 0, 0, 0.22); }
.board-tab { display: flex; align-items: center; justify-content: center; gap: calc(6 * var(--u)); min-height: calc(72 * var(--u)); border: 0; border-radius: calc(14 * var(--u)); background: transparent; color: rgba(255, 255, 255, 0.75); font: inherit; font-weight: 900; font-size: calc(30 * var(--u)); cursor: pointer; }
.board-tab.on { background: #fff; color: #1d2b45; box-shadow: 0 calc(2 * var(--u)) 0 rgba(0, 0, 0, 0.18); }
.board-row {
  display: grid;
  grid-template-columns: calc(56 * var(--u)) 1fr auto;
  align-items: center;
  gap: calc(10 * var(--u));
  padding: calc(10 * var(--u)) calc(16 * var(--u));
  border-radius: calc(18 * var(--u));
  background: var(--panel);
  font-size: max(14px, calc(28 * var(--u)));
}
.board-row.is-you { background: #fff4cc; box-shadow: inset 0 0 0 calc(3 * var(--u)) #e3a714; }
.board-rank { text-align: center; color: var(--ink-soft); }
.board-rank .emoji { font-size: calc(36 * var(--u)); }
.board-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.board-h { font-variant-numeric: tabular-nums; }
/* (1.31.0) a tester's funny title under their name */
.board-who { min-width: 0; display: flex; flex-direction: column; }
.board-tester { align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: calc(3 * var(--u)); padding: calc(2 * var(--u)) calc(12 * var(--u)); border-radius: 999px; background: #ffd34d; color: #3a2410; font-size: max(11px, calc(20 * var(--u))); font-weight: 900; }
/* (1.25) the fish ranking: medal, name, the fish, its weight, one line each */
.board-row.fish-row { grid-template-columns: calc(56 * var(--u)) minmax(0, 1fr) calc(120 * var(--u)) auto; }
.board-fish { width: 100%; height: calc(52 * var(--u)); object-fit: contain; filter: drop-shadow(0 calc(3 * var(--u)) calc(2 * var(--u)) rgba(0, 0, 0, 0.3)); }
.fish-row .board-h { white-space: nowrap; }
.board-gap { text-align: center; color: var(--ink-soft); font-weight: 900; line-height: 1; }
.board-msg { margin: calc(16 * var(--u)) 0; text-align: center; color: var(--ink-soft); font-weight: 700; }
.board-foot { display: grid; gap: calc(10 * var(--u)); }
.board-foot .note { margin: 0; text-align: center; }
.board-toggle { display: flex; align-items: center; justify-content: center; gap: calc(10 * var(--u)); min-height: 40px; font-weight: 800; cursor: pointer; }
.board-check { width: 22px; height: 22px; accent-color: #2f8f3a; }
/* read by screen readers, not shown (the place behind a medal) */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* (1.12.1) "Speel weer" after a friend match: waiting for them (dimmed), or they want to (it calls) */
.btn-duel-again.is-waiting { opacity: 0.7; }
.btn-duel-again.is-calling { animation: again-call 0.9s ease-in-out infinite alternate; }
@keyframes again-call { from { transform: scale(1); } to { transform: scale(1.05); } }
#ui.rm .btn-duel-again.is-calling { animation: none; }

/* (1.13.4) the tower's skins in the Winkel: little pictures of the sky, the crane's lattice and three blocks */
.skin-prev { display: inline-flex; align-items: center; justify-content: center; width: calc(64 * var(--u)); height: calc(44 * var(--u)); border-radius: calc(10 * var(--u)); overflow: hidden; position: relative; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08); }
.skin-scene .emoji { font-size: calc(22 * var(--u)); line-height: 1; position: relative; top: calc(-4 * var(--u)); }
.skin-scene::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(180deg, rgba(122, 150, 186, 0.9), rgba(88, 132, 170, 0.95)); clip-path: polygon(0 60%, 18% 20%, 34% 45%, 52% 0, 70% 40%, 86% 15%, 100% 50%, 100% 100%, 0 100%); }
.skin-scene-dag { background: linear-gradient(180deg, #5ec1f5, #c8ecfb); }
.skin-scene-sonsondergang { background: linear-gradient(180deg, #7b4397, #ff7e5f 55%, #ffd194); }
.skin-scene-sonsondergang::after { background: linear-gradient(180deg, #a3607e, #7e4c78); }
.skin-scene-lekkergoed { background: linear-gradient(180deg, #b28dff, #ff9ad5 55%, #fff0fb); }
.skin-scene-lekkergoed::after { background: linear-gradient(180deg, #ffb3dc, #f08cc4); }
.skin-scene-nag { background: radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 2px), radial-gradient(circle at 70% 18%, #fff 0 1px, transparent 2px), radial-gradient(circle at 45% 45%, #fff 0 1px, transparent 2px), linear-gradient(180deg, #070f30, #24396f); }
.skin-scene-nag::after { background: linear-gradient(180deg, #2e3a66, #1f2a52); }
.skin-crane { flex-direction: column; justify-content: center; gap: calc(6 * var(--u)); background: linear-gradient(180deg, #cfe9fb, #e9f6ff); }
.skin-crane i { display: block; width: 92%; height: calc(12 * var(--u)); border-radius: 3px; border: 2px solid var(--edge); background: repeating-linear-gradient(60deg, var(--main) 0 4px, transparent 4px 9px), repeating-linear-gradient(-60deg, var(--main) 0 4px, transparent 4px 9px), linear-gradient(180deg, var(--light), var(--dark)); background-blend-mode: normal; }
.skin-crane-geel { --main: #f5b800; --light: #ffd84d; --dark: #c48a00; --edge: #5a4100; }
.skin-crane-rooi { --main: #e53935; --light: #ff7a73; --dark: #a3201c; --edge: #5c0f0f; }
.skin-crane-blou { --main: #1e88e5; --light: #6ab7ff; --dark: #0b5aa8; --edge: #0a2d55; }
.skin-crane-pienk { --main: #ff5fa8; --light: #ffa3cf; --dark: #c4307a; --edge: #5e1236; }
.skin-crane-goud { --main: #f2c230; --light: #fff2a6; --dark: #a87a08; --edge: #4a3500; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08), inset 0 0 12px rgba(255, 230, 120, 0.9); }
.skin-blocks { gap: calc(3 * var(--u)); padding: 0 calc(4 * var(--u)); background: #eef4fa; }
.skin-blocks i { display: block; width: calc(17 * var(--u)); height: calc(26 * var(--u)); border-radius: 4px; border: 2px solid rgba(0, 0, 0, 0.35); }
.skin-blocks-kleur i:nth-child(1) { background: #f25c84; } .skin-blocks-kleur i:nth-child(2) { background: #f7c948; } .skin-blocks-kleur i:nth-child(3) { background: #2fb5b0; }
.skin-blocks-lekkergoed i { background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.6) 0 3px, transparent 3px 7px); }
.skin-blocks-lekkergoed i:nth-child(1) { background-color: #ffb3d1; } .skin-blocks-lekkergoed i:nth-child(2) { background-color: #b5f2c2; } .skin-blocks-lekkergoed i:nth-child(3) { background-color: #d6c2ff; }
.skin-blocks-klip i { background-image: radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.25) 0 1px, transparent 2px), radial-gradient(circle at 70% 65%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px), radial-gradient(circle at 50% 85%, rgba(0, 0, 0, 0.2) 0 1px, transparent 2px); }
.skin-blocks-klip i:nth-child(1) { background-color: #9a9a9a; } .skin-blocks-klip i:nth-child(2) { background-color: #a8957f; } .skin-blocks-klip i:nth-child(3) { background-color: #8696a8; }
.skin-blocks-neon { background: #12111d; }
.skin-blocks-neon i { background: #1d1b2e; border-width: 2px; }
.skin-blocks-neon i:nth-child(1) { border-color: #ff3fa4; box-shadow: 0 0 6px #ff3fa4; } .skin-blocks-neon i:nth-child(2) { border-color: #39ff6a; box-shadow: 0 0 6px #39ff6a; } .skin-blocks-neon i:nth-child(3) { border-color: #29f0ff; box-shadow: 0 0 6px #29f0ff; }
.skin-blocks-goud i { background: linear-gradient(135deg, #b88a0c, #f2c230 40%, #fff2a6 50%, #f2c230 60%, #a87a08); border-color: rgba(90, 60, 0, 0.6); }

/* (1.14) the one gentle "save your progress" offer: one line, Google's button, ✕ (never a gate) */
.signin-offer { position: relative; display: flex; flex-direction: column; align-items: center; gap: calc(10 * var(--u)); padding: calc(18 * var(--u)) 56px; text-align: center; }
.signin-offer-shop { margin: calc(14 * var(--u)) 0 0; box-shadow: none; background: var(--panel); }
.signin-offer-text { display: flex; align-items: center; justify-content: center; gap: calc(10 * var(--u)); margin: 0; font-weight: 800; line-height: 1.3; }
.signin-offer-btn { display: flex; justify-content: center; min-height: 44px; width: 100%; }
.signin-offer-no { position: absolute; top: 6px; right: 6px; }
/* (1.15.5) a sign-in on its way: "Besig om in te teken…" in place of Google's button */
.signin-offer-busy, .signin-offer.is-busy .signin-offer-btn { display: none; }
.signin-offer.is-busy .signin-offer-busy { display: flex; align-items: center; min-height: 44px; }

/* (1.14, the owner: like 8 Ball Pool) the menu's row: ❓ 📊 🛍️ ⚙️, four bigger buttons */
.dock-menu .dock-ic { width: calc(100 * var(--u)); height: calc(100 * var(--u)); font-size: calc(46 * var(--u)); }
.dock-menu .dock-btn { font-size: calc(23 * var(--u)); }
/* ⚙️ Instellings: the account at the top, then one row per setting (each a full-width tap target) */
.settings-account { margin: 0 0 calc(16 * var(--u)); padding: calc(18 * var(--u)) calc(20 * var(--u)); border: 2px solid var(--panel); border-radius: calc(22 * var(--u)); background: #fff; }
.settings-account[hidden] { display: none; }
.account-title { display: flex; align-items: center; gap: calc(10 * var(--u)); margin: 0 0 calc(8 * var(--u)); font-weight: 900; }
.account-ask { display: flex; align-items: flex-start; gap: calc(10 * var(--u)); }
.settings-list { display: flex; flex-direction: column; gap: calc(10 * var(--u)); }
.settings-row {
  display: flex; align-items: center; gap: calc(14 * var(--u)); width: 100%; min-height: 52px; margin: 0;
  padding: calc(12 * var(--u)) calc(22 * var(--u)); border: 0; border-radius: calc(18 * var(--u)); background: var(--panel);
  color: var(--ink); font: 800 max(15px, calc(27 * var(--u))) / 1.2 var(--font); text-align: left; text-decoration: none; cursor: pointer;
}
.settings-row:active { filter: brightness(0.96); }
.settings-row:focus-visible { outline: 3px solid var(--hemel-d); outline-offset: 2px; }
.settings-ic { width: 1.5em; flex: none; text-align: center; font-size: 1.15em; }
.settings-label { flex: 1 1 auto; min-width: 0; }
.settings-value { flex: none; color: var(--muted); font-weight: 900; }
.settings-row.is-on .settings-value { color: var(--bosveld-d); }
.account-under18 { margin: calc(8 * var(--u)) 0 0; font-size: max(12px, calc(22 * var(--u))); font-weight: 700; line-height: 1.35; color: var(--ink-soft); }
.signin-offer .account-under18 { margin: 0; }

/* ------------------------------------------------------------------------- */
/* 1.15 the Winkel, polished (the owner: "it must be somthing a 22 year old  */
/* looks at and thinks I need this"): rarity tiers, tags, medals, frames     */
/* ------------------------------------------------------------------------- */
:root { --t-common: #8a9bb0; --t-rare: #2f80ed; --t-epic: #9b51e0; --t-legendary: #f2a516; }
.shop-item { position: relative; overflow: hidden; padding-top: calc(30 * var(--u)); transition: transform 0.12s ease; }
.shop-item.tier-rare { background: linear-gradient(180deg, #e3efff, var(--panel) 55%); border-color: rgba(47, 128, 237, 0.35); }
.shop-item.tier-epic { background: linear-gradient(180deg, #f1e4ff, var(--panel) 55%); border-color: rgba(155, 81, 224, 0.45); }
.shop-item.tier-legendary { background: linear-gradient(180deg, #fff1cf, var(--panel) 60%); border-color: rgba(242, 165, 22, 0.75); box-shadow: 0 0 calc(14 * var(--u)) rgba(242, 165, 22, 0.35); }
/* a slow golden sweep across a legendary tile */
.shop-item.tier-legendary::before {
  content: ''; position: absolute; inset: -40% -60%; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.65) 50%, transparent 58%);
  animation: tier-sweep 3.6s ease-in-out infinite;
}
@keyframes tier-sweep { from { transform: translateX(-60%); } 55%, to { transform: translateX(60%); } }
.shop-item.is-on { border-color: #4fd66a; box-shadow: 0 0 0 calc(3 * var(--u)) #4fd66a inset, 0 0 calc(12 * var(--u)) rgba(79, 214, 106, 0.35); }
.shop-item > * { position: relative; }
/* (1.15) on a narrow phone "LEGENDARIES" + "NUUT" don't fit one row: Nuut then drops to its own row, right, over the
   picture's corner (the tags sit above the picture) */
.shop-tags { z-index: 3; position: absolute !important; top: calc(6 * var(--u)); left: calc(6 * var(--u)); right: calc(6 * var(--u)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: calc(4 * var(--u)); pointer-events: none; }
.shop-tier, .shop-new { padding: calc(2 * var(--u)) calc(9 * var(--u)); border-radius: 999px; font: 900 max(10px, calc(15 * var(--u))) / 1.2 var(--font); letter-spacing: 0.02em; text-transform: uppercase; color: #fff; white-space: nowrap; }
/* the tags' small white words at 4.5:1 or more (the tier colours stay for the tiles and the try bar) */
.shop-tier.tier-common { background: #64768c; }
.shop-tier.tier-rare { background: #1c6fd9; }
.shop-tier.tier-epic { background: var(--t-epic); }
.shop-tier.tier-legendary { background: linear-gradient(90deg, #f2a516, #ffd76a, #f2a516); color: #4a2d00; }
.shop-new { margin-left: auto; background: #e0234a; box-shadow: 0 0 calc(8 * var(--u)) rgba(255, 59, 92, 0.6); }
/* (1.23) Saturday's tower blast, still being built: a slim strip framed in hazard tape under the game buttons */
.sat-strip {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: calc(14 * var(--u)); width: 100%;
  padding: calc(8 * var(--u)) calc(16 * var(--u)); border: calc(6 * var(--u)) solid transparent; border-radius: calc(24 * var(--u)); cursor: pointer; font: inherit; color: #fff; text-align: left;
  background: linear-gradient(160deg, #24496e 0%, #13304d 60%, #0c2036 100%) padding-box,
    repeating-linear-gradient(-45deg, #ffc93c 0 calc(12 * var(--u)), #1d1d24 calc(12 * var(--u)) calc(24 * var(--u))) border-box;
  box-shadow: 0 calc(5 * var(--u)) 0 #0a1828;
}
.sat-strip:active { transform: translateY(calc(3 * var(--u))); box-shadow: 0 calc(2 * var(--u)) 0 #0a1828; }
.sat-ic { display: flex; align-items: center; justify-content: center; font-size: calc(40 * var(--u)); line-height: 1; }
.sat-txt { display: flex; flex-direction: column; min-width: 0; }
.sat-txt b { font-weight: 900; font-size: calc(28 * var(--u)); line-height: 1.15; }
.sat-txt small { font-weight: 700; font-size: max(11px, calc(20 * var(--u))); line-height: 1.25; color: #ffe08a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ui.compact .sat-strip { padding-top: calc(5 * var(--u)); padding-bottom: calc(5 * var(--u)); }
.sat-strip.is-tight { padding-top: calc(3 * var(--u)); padding-bottom: calc(3 * var(--u)); }
.sat-strip.is-tight .sat-txt small { display: none; }
.sat-strip.is-tight .sat-ic { font-size: calc(32 * var(--u)); }
.sat-strip.is-off { display: none; }
/* (1.23) the testers' own skin: a gold tag */
.shop-new.shop-tester { background: linear-gradient(180deg, #ffe08a, #c99a2e); color: #3a2400; box-shadow: 0 0 calc(8 * var(--u)) rgba(242, 201, 76, 0.7); }
.shop-prev { height: calc(92 * var(--u)); }
/* the real blocks in a block skin (drawn by js/game/blocks.js) */
.skin-prev.has-swatch { width: calc(132 * var(--u)); height: calc(92 * var(--u)); background: transparent; box-shadow: none; }
.skin-swatch { display: block; width: 100%; height: 100%; }

/* the medal: a badge as a minted coin (the face's colour and the rim's metal by tier) */
.medal { position: relative; display: inline-grid; place-items: center; width: calc(76 * var(--u)); height: calc(76 * var(--u)); border-radius: 50%; isolation: isolate; }
.medal .medal-face {
  position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95) 0 8%, transparent 30%), radial-gradient(circle at 50% 55%, var(--m-face1), var(--m-face2) 72%);
  box-shadow: inset 0 0 0 calc(5 * var(--u)) var(--m-rim), inset 0 0 0 calc(8 * var(--u)) var(--m-rim2), inset 0 calc(-8 * var(--u)) calc(14 * var(--u)) rgba(0, 0, 0, 0.28), 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, 0.28);
}
.medal .emoji { font-size: calc(42 * var(--u)); filter: drop-shadow(0 calc(3 * var(--u)) calc(2 * var(--u)) rgba(0, 0, 0, 0.4)); }
.medal .medal-rays { display: none; }
/* (1.15, the owner: "the background colours overpower the icons inside") a light face in the tier's tint, the tier's
   colour in the metal rim: the picture stands out */
.medal.tier-common { --m-face1: #ffffff; --m-face2: #dde5ee; --m-rim: #a9b6c6; --m-rim2: #eef2f7; }
.medal.tier-rare { --m-face1: #ffffff; --m-face2: #cfe3ff; --m-rim: #4f9bff; --m-rim2: #1d5fc4; }
.medal.tier-epic { --m-face1: #ffffff; --m-face2: #ead8ff; --m-rim: #b77cff; --m-rim2: #5b1fa8; }
.medal.tier-legendary { --m-face1: #fffdf3; --m-face2: #ffe6a0; --m-rim: #ffd257; --m-rim2: #b07400; }
.medal.medal-none { --m-face1: #f4f7fb; --m-face2: #dfe6ee; --m-rim: #c9d3de; --m-rim2: #f4f7fb; opacity: 0.6; }
/* epic and legendary: a slow shine; legendary: light rays turning behind it */
.medal.tier-epic::after, .medal.tier-legendary::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.7) 48%, transparent 58%) no-repeat;
  background-size: 260% 100%; animation: medal-shine 3.2s ease-in-out infinite;
}
@keyframes medal-shine { from { background-position: 120% 0; } 60%, to { background-position: -40% 0; } }
.medal.tier-legendary .medal-rays {
  display: block; position: absolute; inset: calc(-14 * var(--u)); z-index: -2; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 210, 90, 0.85) 0 10deg, transparent 10deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 42%, transparent 70%); mask: radial-gradient(circle, #000 42%, transparent 70%);
  animation: medal-rays 9s linear infinite;
}
@keyframes medal-rays { to { transform: rotate(360deg); } }
.pc-badge .medal { width: calc(68 * var(--u)); height: calc(68 * var(--u)); }
.pc-badge .medal .emoji { font-size: calc(38 * var(--u)); }
.pcard.is-compact .pc-badge .medal { width: calc(52 * var(--u)); height: calc(52 * var(--u)); }
.pcard.is-compact .pc-badge .medal .emoji { font-size: calc(28 * var(--u)); }
.pcard.is-compact .pc-badge .medal-rays { inset: calc(-8 * var(--u)); }

/* (1.15) two new frames: a neon tube and a holographic foil */
.frame-neon { border: calc(5 * var(--u)) solid #ff3fa4; box-shadow: 0 0 calc(8 * var(--u)) #ff3fa4, inset 0 0 calc(8 * var(--u)) rgba(255, 63, 164, 0.55), 0 0 calc(22 * var(--u)) rgba(41, 240, 255, 0.55); }
.pcard.frame-holo, .frame-swatch.frame-holo {
  border: calc(5 * var(--u)) solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(115deg, #ff9ad5, #8be9ff, #b28dff, #fff59d, #7dffc4, #ff9ad5) border-box;
  background-size: 100% 100%, 300% 300%; animation: holo-shift 5s linear infinite;
  box-shadow: 0 0 calc(14 * var(--u)) rgba(178, 141, 255, 0.55);
}
@keyframes holo-shift { from { background-position: 0 0, 0% 50%; } to { background-position: 0 0, 300% 50%; } }

/* (1.15) the new backgrounds' little pictures */
.skin-scene .scene-fx { position: absolute; inset: 0; pointer-events: none; }
.skin-scene-kersieblom { background: linear-gradient(180deg, #ffb6d0, #ffd9e6 55%, #fff1f4); }
.skin-scene-kersieblom .scene-fx { background: radial-gradient(ellipse 3px 2px at 18% 30%, #ff7aa8 98%, transparent), radial-gradient(ellipse 3px 2px at 62% 18%, #ff8fb8 98%, transparent), radial-gradient(ellipse 3px 2px at 80% 52%, #ff6f9f 98%, transparent), radial-gradient(ellipse 3px 2px at 38% 60%, #ffa3c4 98%, transparent); }
.skin-scene-kersieblom::after { background: linear-gradient(180deg, #e7a3c0, #c97ba0); }
.skin-scene-noorderlig { background: linear-gradient(180deg, #020b1f, #062e3c 70%, #0c4a52); }
.skin-scene-noorderlig .scene-fx { background: linear-gradient(100deg, transparent 18%, rgba(57, 255, 160, 0.7) 32%, rgba(0, 210, 255, 0.45) 46%, rgba(170, 90, 255, 0.55) 58%, transparent 72%); filter: blur(2px); -webkit-mask: linear-gradient(180deg, #000 10%, transparent 70%); mask: linear-gradient(180deg, #000 10%, transparent 70%); }
.skin-scene-noorderlig::after { background: linear-gradient(180deg, #0f2430, #08161e); }
.skin-scene-ruimte { background: radial-gradient(circle at 25% 30%, rgba(190, 80, 255, 0.55), transparent 45%), radial-gradient(circle at 75% 60%, rgba(40, 120, 255, 0.5), transparent 50%), radial-gradient(circle at 40% 20%, #fff 0 1px, transparent 2px), radial-gradient(circle at 85% 25%, #fff 0 1px, transparent 2px), #07051a; }
.skin-scene-ruimte .scene-fx { background: radial-gradient(circle at 72% 32%, #ffd59e 0 5px, #c27a3a 6px 7px, transparent 8px); }
.skin-scene-ruimte::after { background: linear-gradient(180deg, #2a2440, #151026); }
.skin-scene-sintgolf { background: linear-gradient(180deg, #1b0638, #7a1f8f 45%, #ff3f8e 70%, #ff9a3c); }
.skin-scene-sintgolf .scene-fx { background: radial-gradient(circle at 50% 74%, #ffe066 0 30%, #ff5fa2 46%, transparent 47%); -webkit-mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 5px); mask: repeating-linear-gradient(180deg, #000 0 3px, transparent 3px 5px); }
.skin-scene-sintgolf::after { background: repeating-linear-gradient(90deg, rgba(41, 240, 255, 0.85) 0 1px, transparent 1px 8px), linear-gradient(180deg, #2a0b4a, #12042a); }
.skin-scene .emoji { z-index: 1; }

/* (1.15) "Nuwe weergawe!" */
.update-body { font-size: max(14px, calc(26 * var(--u))); text-align: center; }
.update-foot { display: grid; gap: calc(10 * var(--u)); }
.update-foot .btn { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .shop-item.tier-legendary::before, .medal::after, .medal .medal-rays, .pcard.frame-holo, .frame-swatch.frame-holo { animation: none; }
}
/* (1.15) the "Nuut" dot on the menu's Winkel button */
.dock-ic { position: relative; }
.dock-new { position: absolute; top: calc(-12 * var(--u)); left: calc(-22 * var(--u)); padding: calc(2 * var(--u)) calc(7 * var(--u)); border-radius: 999px; background: #e0234a; color: #fff; font: 900 max(10px, calc(14 * var(--u))) / 1.2 var(--font); text-transform: uppercase; box-shadow: 0 0 0 calc(2 * var(--u)) #fff, 0 0 calc(10 * var(--u)) rgba(255, 59, 92, 0.6); animation: dock-new-pulse 1.8s ease-in-out infinite; }
@keyframes dock-new-pulse { 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .dock-new { animation: none; } }
/* (1.15) a celebration's shop tile art (js/ui/celebrate.js drawCelebrationIcon) */
.cel-icon { display: block; width: calc(84 * var(--u)); height: calc(84 * var(--u)); filter: drop-shadow(0 calc(4 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.25)); }

/* (1.15, the owner: "We need a better way to display the coins please") the game's own gold coin, and the menu's wallet */
.coin-ic {
  position: relative; display: inline-block; flex: none; width: 1.15em; height: 1.15em; border-radius: 50%; vertical-align: -0.2em; font-style: normal;
  /* (1.23, the owner 27 Oct 2026: "the coins, it looks really bland ... really make this special") a minted coin: a reeded gold
     rim, a domed face, the Stapel tower (three stacked blocks) engraved in it, a polished highlight. The river's coins wear
     the same face (js/rivier/hazards.js coinFace). */
  background: var(--coin-img) center / 100% 100% no-repeat;
  box-shadow: 0 0.05em 0.12em rgba(0, 0, 0, 0.35);
}
/* the wallet's coin catches the light now and then (still in reduced motion; never in the shop's long lists) */
.menu-wallet .coin-ic { overflow: hidden; }
.menu-wallet .coin-ic::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 250%; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 62%);
  transform: translateX(-96%); animation: coin-shine 5s ease-in-out 1.5s infinite;
}
/* (1.25: slid by a transform, the phone's compositor alone; its background moving took the main thread every frame) */
@keyframes coin-shine { 0%, 72% { transform: translateX(-96%); } 90%, 100% { transform: translateX(36%); } }
@media (prefers-reduced-motion: reduce) { .menu-wallet .coin-ic::after { animation: none; opacity: 0; } }
#ui.rm .menu-wallet .coin-ic::after { animation: none; opacity: 0; }
.menu-wallet {
  position: absolute; top: calc(var(--sat) + 14 * var(--u)); right: calc(var(--sar) + 16 * var(--u)); z-index: 2;
  display: inline-flex; align-items: center; gap: calc(8 * var(--u)); min-height: 44px;
  padding: calc(6 * var(--u)) calc(7 * var(--u)) calc(6 * var(--u)) calc(12 * var(--u)); border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #24365a, #15213b); color: #ffe27a; font: 900 max(14px, calc(25 * var(--u))) / 1 var(--font);
  box-shadow: 0 calc(6 * var(--u)) calc(14 * var(--u)) rgba(10, 34, 78, 0.3), inset 0 0 0 calc(2 * var(--u)) rgba(255, 210, 63, 0.6);
  cursor: pointer; font-variant-numeric: tabular-nums;
}
.menu-wallet .coin-ic { font-size: 1.2em; }
.menu-wallet.no-plus { padding-right: calc(14 * var(--u)); }
.menu-wallet .wallet-plus {
  display: grid; place-items: center; width: calc(30 * var(--u)); height: calc(30 * var(--u)); min-width: 22px; min-height: 22px; border-radius: 50%;
  background: #4fd66a; color: #fff; font-size: 0.95em; line-height: 1; box-shadow: inset 0 calc(-3 * var(--u)) 0 #2f9e48;
}
.menu-wallet:active { transform: translateY(calc(2 * var(--u))); }
.shop-coins { background: linear-gradient(180deg, #24365a, #15213b) !important; color: #ffe27a !important; box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(255, 210, 63, 0.6); }
.shop-coins b { color: #ffe27a; }
.shop-buy .coin-ic, .btn .coin-ic { font-size: 1em; }
/* (1.15, the owner: "this looks off center") a result pill with a note: the title on one line (never broken), the note
   centred under it; a short pill without a note stays one round pill */
.res-reward b { white-space: nowrap; }
.res-reward > span:has(.rw-sub) { flex-wrap: wrap; justify-content: center; text-align: center; row-gap: calc(2 * var(--u)); border-radius: calc(22 * var(--u)); padding: calc(8 * var(--u)) calc(16 * var(--u)); }
.res-reward > span:has(.rw-sub) .rw-sub { flex-basis: 100%; }
button.chip { font: inherit; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* (1.15, the owner: "The chest needs an upgrade, it needs to be more interactive") the weekly chests, drawn */
.wk-cells { gap: calc(6 * var(--u)); align-items: flex-end; }
.wk-chest {
  display: inline-flex; flex-direction: column; align-items: center; gap: calc(2 * var(--u)); min-width: 30px; min-height: 44px;
  padding: calc(4 * var(--u)) 0 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.wk-amt { font-size: max(10px, calc(15 * var(--u))); font-weight: 900; line-height: 1; opacity: 0.85; }
.chest { --cw: calc(34 * var(--u)); position: relative; display: block; width: var(--cw); height: calc(var(--cw) * 0.82); font-style: normal; }
/* the body: dark wood, a gold band, two gold straps */
.chest::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; border-radius: 0 0 calc(5 * var(--u)) calc(5 * var(--u));
  background:
    linear-gradient(90deg, transparent 18%, #e8b62c 18% 27%, transparent 27% 73%, #e8b62c 73% 82%, transparent 82%),
    linear-gradient(180deg, #b0682a, #7a4118);
  box-shadow: inset 0 calc(-3 * var(--u)) 0 rgba(0, 0, 0, 0.25), 0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(80, 40, 0, 0.35);
}
/* the lid: domed, lighter wood, gold trim; hinged at the back */
.chest .chest-lid {
  position: absolute; left: -4%; right: -4%; top: 0; height: 46%; border-radius: calc(12 * var(--u)) calc(12 * var(--u)) calc(3 * var(--u)) calc(3 * var(--u));
  background:
    linear-gradient(90deg, transparent 18%, #ffd23f 18% 27%, transparent 27% 73%, #ffd23f 73% 82%, transparent 82%),
    linear-gradient(180deg, #d1873d, #9a5520);
  box-shadow: inset 0 calc(-3 * var(--u)) 0 #e8b62c; transform-origin: 8% 100%; transition: transform 0.4s cubic-bezier(.3, 1.6, .5, 1);
}
.chest .chest-lock { position: absolute; left: 50%; top: 40%; width: 22%; height: 26%; transform: translateX(-50%); border-radius: calc(3 * var(--u)); background: linear-gradient(180deg, #ffe680, #d99a00); box-shadow: 0 0 0 calc(1.5 * var(--u)) #7a4118; z-index: 1; }
/* opened: the lid up, gold light inside, the lock gone */
.wk-chest.is-done .chest .chest-lid, .chest.is-opening .chest-lid { transform: rotate(-38deg) translate(calc(-2 * var(--u)), calc(-3 * var(--u))); }
.wk-chest.is-done .chest .chest-lock, .chest.is-opening .chest-lock { display: none; }
.wk-chest.is-done .chest::after, .chest.is-opening::after { content: ''; position: absolute; left: 10%; right: 10%; top: 30%; height: 22%; border-radius: 50%; background: radial-gradient(ellipse, #fff6b0, #ffc928 60%, rgba(255, 201, 40, 0)); }
.wk-chest.is-done .wk-amt { color: #1f7a35; }
/* future days a little faded; today glows and wiggles */
.wk-chest:not(.is-done):not(.is-today) .chest { filter: saturate(0.75) brightness(0.95); opacity: 0.8; }
.wk-chest.is-today .chest { filter: drop-shadow(0 0 calc(6 * var(--u)) rgba(255, 196, 40, 0.95)); animation: chest-wiggle 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes chest-wiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-7deg); } 82% { transform: rotate(6deg); } 88% { transform: rotate(-4deg); } 94% { transform: rotate(2deg); } }
/* day 7: the big golden chest, with a sparkle */
.wk-chest.is-big .chest, .chest.is-big { --cw: calc(44 * var(--u)); }
.wk-chest.is-big .chest::before, .chest.is-big::before { background: linear-gradient(90deg, transparent 18%, #fff3b0 18% 27%, transparent 27% 73%, #fff3b0 73% 82%, transparent 82%), linear-gradient(180deg, #ffd23f, #d38a00); }
.wk-chest.is-big .chest .chest-lid, .chest.is-big .chest-lid { background: linear-gradient(90deg, transparent 18%, #fffbe0 18% 27%, transparent 27% 73%, #fffbe0 73% 82%, transparent 82%), linear-gradient(180deg, #ffe680, #e8a915); box-shadow: inset 0 calc(-3 * var(--u)) 0 #fff3b0; }
.wk-chest.is-big .chest .chest-lock, .chest.is-big .chest-lock { background: linear-gradient(180deg, #ff8fb8, #c2185b); }
.wk-chest.is-big::after { content: '✦'; position: absolute; top: calc(12 * var(--u)); right: calc(-8 * var(--u)); margin: 0;   /* (1.15 round 2) above the chest's corner, clear of the "+75" */
  color: #fff6b0; font-size: calc(18 * var(--u)); text-shadow: 0 0 calc(6 * var(--u)) #ffc928; animation: star-twinkle 2.4s ease-in-out infinite; }
/* (1.25: the ✦ twinkles; the medals' sliding shine did nothing to a star and still cost the main thread every frame) */
@keyframes star-twinkle { 0%, 100% { opacity: 0.55; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
.wk-chest.is-big { position: relative; }
/* the results: today's chest pops open, coins burst out */
.rw-week .chest.is-opening { --cw: calc(40 * var(--u)); margin-right: calc(4 * var(--u)); animation: chest-pop 0.9s ease-out both; }
.rw-week .chest.is-opening .chest-lid { animation: lid-fly 0.9s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes chest-pop { 0% { transform: scale(0.6); } 25% { transform: scale(1.1) rotate(-6deg); } 40% { transform: scale(1.1) rotate(6deg); } 55% { transform: scale(1.05) rotate(-3deg); } 100% { transform: scale(1); } }
@keyframes lid-fly { 0%, 50% { transform: none; } 100% { transform: rotate(-38deg) translate(calc(-2 * var(--u)), calc(-3 * var(--u))); } }
.chest .chest-coin { position: absolute; left: 40%; top: 30%; font-size: calc(18 * var(--u)); opacity: 0; animation: coin-burst 1.1s ease-out calc(0.5s + var(--k) * 0.07s) both; }
@keyframes coin-burst {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc((var(--k) - 2) * 14 * var(--u)), calc(-46 * var(--u))) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .wk-chest.is-today .chest, .rw-week .chest.is-opening, .rw-week .chest.is-opening .chest-lid, .wk-chest.is-big::after { animation: none; } }
/* (1.15) the candy sky went mint and lavender (it looked too like the cherry blossom) */
.skin-scene-lekkergoed { background: linear-gradient(180deg, #b3a2ff, #8fe9da 55%, #fff6fb); }
.skin-scene-lekkergoed::after { background: linear-gradient(180deg, #ffb3d9, #8ee6c9); }
/* (1.15) the medals with their own drawing (a rugby ball; the season medals' star and wreath on the season's metal) */
.medal .medal-art { display: block; width: 66%; height: 66%; filter: drop-shadow(0 calc(2 * var(--u)) calc(2 * var(--u)) rgba(0, 0, 0, 0.35)); }
.medal .medal-art svg { display: block; width: 100%; height: 100%; }
.medal.medal-rugby .medal-art { width: 76%; height: 76%; }
.medal.medal-s-brons { --m-face1: #f0b27a; --m-face2: #8a4b1f; --m-rim: #f6d2ae; --m-rim2: #6e3a14; }
.medal.medal-s-silwer { --m-face1: #ffffff; --m-face2: #8f99a6; --m-rim: #f4f6f9; --m-rim2: #6f7a87; }
.medal.medal-s-goud { --m-face1: #fff0a0; --m-face2: #cf9200; --m-rim: #fff6cf; --m-rim2: #9a6b00; }
.medal.medal-s-platinum { --m-face1: #f7fbff; --m-face2: #a9b9cf; --m-rim: #eef5ff; --m-rim2: #7c90ad; }
.medal.medal-s-platinum .medal-face { background: radial-gradient(circle at 34% 28%, #fff 0 10%, transparent 30%), linear-gradient(135deg, rgba(255, 255, 255, 0) 30%, rgba(190, 220, 255, 0.55) 50%, rgba(255, 255, 255, 0) 70%), radial-gradient(circle at 50% 55%, var(--m-face1), var(--m-face2) 72%); }
.medal.medal-s-diamant { --m-face1: #d9f7ff; --m-face2: #2f9fcf; --m-rim: #ffffff; --m-rim2: #1f7fa8; }
/* (1.15) today's chest waits for a tap: it shakes, glows and says "Tik!" */
.wk-chest.is-ready .chest, .rw-chest.is-ready .chest { filter: drop-shadow(0 0 calc(8 * var(--u)) rgba(255, 196, 40, 1)); animation: chest-shake 1.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes chest-shake { 0%, 55%, 100% { transform: rotate(0) scale(1); } 60% { transform: rotate(-9deg) scale(1.08); } 66% { transform: rotate(8deg) scale(1.08); } 72% { transform: rotate(-6deg) scale(1.05); } 78% { transform: rotate(4deg); } 84% { transform: rotate(-2deg); } }
.wk-chest.is-ready .wk-amt { color: #fff; background: #e0234a; padding: calc(2 * var(--u)) calc(6 * var(--u)); border-radius: 999px; opacity: 1; }
.rw-chest { border: 0; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rw-chest.is-ready { background: #ffe9a8; box-shadow: 0 0 0 calc(3 * var(--u)) #ffc928, 0 0 calc(16 * var(--u)) rgba(255, 201, 40, 0.7); }
.wk-chest.is-opened-now .chest, .rw-chest.is-opened-now .chest { animation: chest-pop 0.9s ease-out both; }
.wk-chest.is-opened-now .chest .chest-lid, .rw-chest.is-opened-now .chest .chest-lid { animation: lid-fly 0.9s cubic-bezier(.3, 1.6, .5, 1) both; }
@media (prefers-reduced-motion: reduce) { .wk-chest.is-ready .chest, .rw-chest.is-ready .chest, .wk-chest.is-opened-now .chest, .rw-chest.is-opened-now .chest { animation: none; } }
.medal.medal-leeu .medal-art { width: 72%; height: 72%; }   /* (1.15, the owner: "The lion still doesnt fit") inside the rim */

/* (1.15, the owner: "This window still doesnt look like a pause menu, it looks plain ... something is off") a game's pause:
   the game blurred and dimmed behind, a dark glass card with a gold edge, the title in gold, the tower so far in tiles */
.screen-pause { background: rgba(8, 14, 30, 0.55); -webkit-backdrop-filter: blur(6px) saturate(0.8); backdrop-filter: blur(6px) saturate(0.8); }
.pause-card {
  background: linear-gradient(180deg, rgba(40, 60, 100, 0.97), rgba(18, 28, 52, 0.97)); color: #fff;
  border: calc(3 * var(--u)) solid rgba(255, 210, 63, 0.55);
  box-shadow: 0 calc(24 * var(--u)) calc(60 * var(--u)) rgba(0, 0, 0, 0.45), inset 0 calc(2 * var(--u)) 0 rgba(255, 255, 255, 0.12);
}
.pause-card .pause-ic { border-color: #ffd23f; background: linear-gradient(180deg, #ffe27a, #f2a516); color: #4a2d00; box-shadow: 0 calc(14 * var(--u)) calc(24 * var(--u)) rgba(0, 0, 0, 0.35), inset 0 calc(-8 * var(--u)) 0 #c47f00; }
.pause-card h2 { color: #ffe27a; letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 0 calc(3 * var(--u)) 0 rgba(0, 0, 0, 0.35); }
.pause-card .saying-line { color: rgba(255, 255, 255, 0.72); }
.pause-sofar { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(10 * var(--u)); }
.pause-sofar > span { display: flex; flex-direction: column; align-items: center; gap: calc(2 * var(--u)); padding: calc(12 * var(--u)) calc(6 * var(--u)); border-radius: calc(18 * var(--u)); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.08); }
.pause-sofar b { font-size: max(16px, calc(36 * var(--u))); font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pause-sofar small { font-size: max(10px, calc(17 * var(--u))); font-weight: 800; color: #ffd23f; letter-spacing: 0.04em; text-transform: uppercase; }
.pause-card .btn-quit { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.28); }
.pause-card .btn-quit svg, .pause-card .btn-quit .ic { color: #ffb3a8; }
.pause-card .dock .dock-label { color: rgba(255, 255, 255, 0.85); }
.pause-card .dock .dock-ic { background: rgba(255, 255, 255, 0.14); color: #fff; box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.18); }
.pause-card .dock .dock-btn[aria-pressed="false"] .dock-ic { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.45); }
.pause-card .pause-note { color: #ffd0f0; }
.pause-card .pause-count, .pause-card .pause-timer { color: #fff; }
/* (1.15) a title in the Winkel: one nameplate, a ribbon in its tier's style */
.title-plate {
  position: relative; display: inline-block; max-width: 100%; padding: calc(8 * var(--u)) calc(16 * var(--u)); border-radius: calc(10 * var(--u));
  font: 900 max(12px, calc(21 * var(--u))) / 1.15 var(--font); text-align: center; overflow-wrap: anywhere;
  background: linear-gradient(180deg, #ffffff, #e9eef5); color: var(--ink); box-shadow: 0 calc(3 * var(--u)) 0 #c3cfdc, inset 0 0 0 calc(2 * var(--u)) #d5dee8;
}
.title-plate.tier-rare { background: linear-gradient(180deg, #5aa2ff, #2f6fd6); color: #fff; box-shadow: 0 calc(3 * var(--u)) 0 #1f4f9e, inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.3); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.title-plate.tier-epic { background: linear-gradient(180deg, #b47bff, #7a3fd6); color: #fff; box-shadow: 0 calc(3 * var(--u)) 0 #522a96, inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.3); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.title-plate.tier-legendary {
  background: linear-gradient(110deg, #f2a516, #ffe27a 35%, #fff6cf 50%, #ffd23f 65%, #e08f00); background-size: 220% 100%; color: #4a2d00;
  box-shadow: 0 calc(3 * var(--u)) 0 #a86a00, 0 0 calc(12 * var(--u)) rgba(255, 196, 40, 0.6), inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.5);
  animation: plate-foil 3s ease-in-out infinite;
}
@keyframes plate-foil { 50% { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .title-plate.tier-legendary { animation: none; } }
/* (1.15) the Winkel's tabs: a small icon each, a thin gold line under the open one */
/* (1.15, the owner: "This looks off") the icon above the name, so a two-word name never pushes it out of the pill */
.shop-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(3 * var(--u)); padding: calc(8 * var(--u)) calc(6 * var(--u)); text-wrap: balance; }
.shop-tab .emoji { font-size: 1.1em; line-height: 1; filter: saturate(0.6); opacity: 0.75; }
.shop-tab.on .emoji { filter: none; opacity: 1; }
.shop-tab.on { box-shadow: inset 0 calc(-4 * var(--u)) 0 #ffc928, 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(10, 34, 78, 0.12); }
@media (max-width: 430px) { .shop-tab .emoji { display: none; } }
/* (1.15, the owner: "The background does not fit") the chests stay inside the strip: room at the top, one height for all
   (the amounts line up), the opened lid tilted a little less */
.week-strip { padding-top: calc(18 * var(--u)); padding-bottom: calc(10 * var(--u)); overflow: visible; }
.wk-chest { height: calc(66 * var(--u)); justify-content: flex-end; }
.wk-chest.is-done .chest .chest-lid { transform: rotate(-26deg) translate(calc(-1 * var(--u)), calc(-2 * var(--u))); }
.wk-chest.is-big::after { margin-top: calc(-2 * var(--u)); }
.skin-scene-akwarium { background: linear-gradient(180deg, #0b6a8a, #2aa7bd 60%, #5ad6c8); }
.skin-scene-akwarium .scene-fx { background: linear-gradient(100deg, transparent 20%, rgba(220, 255, 250, 0.35) 30%, transparent 40%, transparent 55%, rgba(220, 255, 250, 0.3) 63%, transparent 72%); }
.skin-scene-akwarium::after { background: linear-gradient(180deg, #ff6f91, #2fae7a); }

/* (1.15, the owner: "the "try it" makes it feel more "THATS WHAT I WANT"") a tower style tried on the real world: the
   screen steps aside, and a bar at the bottom names it with buy / wear and the way back to the Winkel */
body.is-trying #ui .screen { opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.try-bar {
  position: absolute; left: 50%; bottom: calc(var(--sab, 0px) + 18px); z-index: 6; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; width: min(calc(100% - 24px), 560px); padding: 10px 10px 10px 16px;
  border-radius: 22px; background: rgba(255, 255, 255, 0.95); box-shadow: 0 10px 30px rgba(10, 34, 78, 0.38), inset 0 0 0 2px var(--tier, #c9d3de);
  animation: try-in 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) both; pointer-events: auto;
}
.try-bar.tier-rare { --tier: var(--t-rare); }
.try-bar.tier-epic { --tier: var(--t-epic); }
.try-bar.tier-legendary { --tier: var(--t-legendary); }
.try-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.try-txt small { color: var(--muted); font: 800 12px / 1.1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; }
.try-txt b { color: var(--ink); font: 900 18px / 1.15 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.try-bar .shop-buy, .try-bar .shop-wear { flex: none; }
.try-bar .shop-on { flex: none; padding: 0 6px; }
.try-back { flex: none; min-height: 44px; padding: 6px 14px; border: 2px solid var(--hemel-d); border-radius: 999px; background: #fff; color: var(--hemel-d); font: 800 14px / 1.1 var(--font); cursor: pointer; }
@keyframes try-in { from { opacity: 0; transform: translate(-50%, 30px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 380px) { .try-back { padding: 6px 10px; font-size: 13px; } .try-txt b { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .try-bar { animation: none; } }
/* (1.26) outfits and gear: their own pictures on the tiles, and Kyk: the picture big over the Winkel */
.gear-item .shop-prev { height: calc(112 * var(--u)); }
.gear-prev img { width: calc(112 * var(--u)); height: calc(112 * var(--u)); border-radius: calc(14 * var(--u)); object-fit: cover; box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(10, 34, 78, 0.22); }
.gear-earn { font-size: 12px; line-height: 1.15; text-align: center; }
/* (t75, his rule: things line up) an outfit's name stays on ONE line inside its tile: a long one ("Ruimtevaarder",
   "Golden Runner") steps its letters down to fit (fitShopNames in js/ui/dom.js), so the names, prices and Kyk of a row
   share their lines. It was cut at 360 px in Afrikaans and wrapped to two lines at 390 px in English (surfers68, 19 Nov). */
.gear-item .shop-name { max-width: 100%; white-space: nowrap; overflow: hidden; }
.gear-item .shop-try { margin-top: auto; }   /* (his rule: things line up) every Probeer on one line, worn or not */
/* (t68, his rule: "I do not like any misalignments") "Wearing", "Wear" and an earned outfit's words stand ON the prices'
   line: each in a slot as tall as a price button, in its middle. They hugged the name before, a third of a button higher
   than the price beside them: seen with twelve outfits, where every row mixes the two. */
.gear-item .shop-on, .gear-item .shop-lock { display: flex; align-items: center; justify-content: center; min-height: max(40px, calc(37.3 * var(--u))); }
.shop-item .shop-try { margin-top: auto; }   /* (2.0, align_check 13 Nov: the worn crane's Probeer sat 25 px higher than its row's) */
.gear-look { position: absolute; inset: 0; z-index: 40; pointer-events: auto; display: grid; place-items: center; padding: calc(var(--sat, 0px) + 16px) 16px calc(var(--sab, 0px) + 16px); background: rgba(10, 30, 60, 0.55); animation: gear-in 0.25s ease-out both; }
.gear-card { width: min(100%, 420px); display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 22px; background: rgba(13, 19, 40, 0.96); color: #f2f5ff; box-shadow: 0 14px 40px rgba(10, 34, 78, 0.45), inset 0 0 0 3px var(--tier, #c9d3de); }
.gear-look.tier-rare { --tier: var(--t-rare); }
.gear-look.tier-epic { --tier: var(--t-epic); }
.gear-look.tier-legendary { --tier: var(--t-legendary); }
.gear-pics { position: relative; width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #fff; touch-action: pan-y; }
.gear-big { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease; user-select: none; -webkit-user-drag: none; }
.gear-big.from-r { transform: translateX(45%); opacity: 0; }
.gear-big.from-l { transform: translateX(-45%); opacity: 0; }
.gear-big.to-l { transform: translateX(-45%); opacity: 0; }
.gear-big.to-r { transform: translateX(45%); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .gear-big { transition: none; } }
.gear-card .try-top .try-txt { flex: 1; display: flex; flex-direction: column; }
.gear-card .shop-on { color: #6ee08f; }
.gear-card .try-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
@keyframes gear-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gear-look { animation: none; } }
/* (1.15, the owner: "Can you do the same for the backgrounds please") the world's own photo, as big as a block swatch */
.skin-prev.has-photo { position: relative; width: calc(132 * var(--u)); height: calc(92 * var(--u)); border-radius: calc(14 * var(--u)); overflow: hidden; box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(10, 34, 78, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.skin-prev.has-photo .world-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.skin-item .shop-prev:has(.has-photo), .skin-item .shop-prev:has(.has-swatch) { height: calc(96 * var(--u)); }
/* (1.15, the owner: "These are to simple") the crane tile: a little tower crane in its paint */
.skin-prev.skin-crane.has-art { display: block; width: calc(132 * var(--u)); height: calc(92 * var(--u)); border-radius: calc(14 * var(--u)); background: none; padding: 0; box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(10, 34, 78, 0.22); }
.skin-prev.skin-crane.has-art svg { display: block; width: 100%; height: 100%; }
.skin-prev.skin-crane-goud.has-art { box-shadow: 0 0 calc(10 * var(--u)) rgba(255, 210, 80, 0.9), 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(10, 34, 78, 0.22); }
.skin-item .shop-prev:has(.has-art) { height: calc(96 * var(--u)); }
.skin-prev.skin-crane-neon.has-art { box-shadow: 0 0 calc(10 * var(--u)) rgba(255, 63, 164, 0.75), 0 0 calc(18 * var(--u)) rgba(41, 240, 255, 0.35); }

/* (1.15, the owner's wife: "can this be more animated, once you challenge someone it pops out") the versus screen: each
   card slides in, its medal pops out of it with a burst of light, then hovers */
.vs-cards .pcard { animation: vs-card-in 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.vs-cards .pcard + .pcard { animation-delay: 0.35s; }
.vs-cards .pc-badge { position: relative; isolation: isolate; }
.vs-cards .pc-badge .medal { animation: medal-pop 0.9s cubic-bezier(0.2, 1.6, 0.4, 1) 0.35s both, medal-hover 2.4s ease-in-out 1.25s infinite; }
.vs-cards .pcard + .pcard .pc-badge .medal { animation-delay: 0.7s, 1.6s; }
.vs-cards .pc-badge::before {
  content: ''; position: absolute; inset: -70%; z-index: -1; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255, 240, 170, 0.95), rgba(255, 200, 60, 0.45) 35%, rgba(255, 200, 60, 0) 65%);
  animation: medal-burst 0.9s ease-out 0.45s both;
}
.vs-cards .pcard + .pcard .pc-badge::before { animation-delay: 0.8s; }
@keyframes vs-card-in { from { opacity: 0; transform: translateY(24px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes medal-pop { 0% { transform: scale(0) rotate(-40deg); } 55% { transform: scale(1.55) rotate(10deg); } 75% { transform: scale(1.12) rotate(-4deg); } 100% { transform: scale(1.25) rotate(0deg); } }
@keyframes medal-hover { 0%, 100% { transform: scale(1.25) translateY(0); } 50% { transform: scale(1.25) translateY(calc(-5 * var(--u))); } }
@keyframes medal-burst { 0% { opacity: 0; transform: scale(0.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }
/* the Winkel's medals: rare ones shine too, and a tap gives one a little hop */
.medal.tier-rare::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.6) 48%, transparent 58%) no-repeat;
  background-size: 260% 100%; animation: medal-shine 4.6s ease-in-out infinite;
}
.shop-item:active .medal { animation: medal-hop 0.35s ease-out; }
@keyframes medal-hop { 50% { transform: scale(1.15) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .vs-cards .pcard, .vs-cards .pc-badge .medal, .vs-cards .pc-badge::before, .medal.tier-rare::after, .shop-item:active .medal { animation: none; } }
#ui.rm .vs-cards .pcard, #ui.rm .vs-cards .pc-badge .medal, #ui.rm .vs-cards .pc-badge::before, #ui.rm .medal.tier-rare::after, #ui.rm .shop-item:active .medal { animation: none; }
/* (1.15, the owner: "This keep practicing does not fit") the lesson's last card sits low over the sea, clear of the height,
   the hearts and the crane, its buttons small and side by side */
.tutor.is-done {
  top: auto; bottom: calc(var(--sab) + 28 * var(--u)); left: calc(var(--sal) + 16 * var(--u)); right: calc(var(--sar) + 16 * var(--u));
  max-width: 560px; margin: 0 auto; gap: calc(6 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u));
}
.tutor.is-done .tutor-text { font-size: max(13px, calc(23 * var(--u))); }
.tutor.is-done .tutor-btns { grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: calc(4 * var(--u)); }
.tutor.is-done .btn { min-height: 44px; }
.tutor.is-done .btn { padding: calc(8 * var(--u)) calc(14 * var(--u)); font-size: max(14px, calc(26 * var(--u))); --depth: calc(5 * var(--u)); border-radius: calc(22 * var(--u)); }

/* (1.15, the owner: "I really do not like this menu it feels old mixed with new ... All menus for that matter") one modern
   look for every button and picker: a clean gradient and a soft lift instead of the glossy stripe and outlined letters, the
   leading emoji in a little round chip; the pickers like the Winkel's tabs (a white pill, a gold line under the chosen one) */
.btn {
  --depth: calc(6 * var(--u));
  border-radius: calc(28 * var(--u));
  background: linear-gradient(160deg, var(--bg-l) 0%, var(--bg) 58%, var(--bg-d) 150%);
  letter-spacing: 0;
  text-shadow: 0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, 0.22);
  box-shadow:
    0 var(--depth) 0 var(--bg-d),
    0 calc(var(--depth) + 8 * var(--u)) calc(18 * var(--u)) rgba(10, 34, 78, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn::after { display: none; }
.btn-white { background: var(--bg); text-shadow: none; }
.btn > .emoji:first-child {
  display: inline-grid; place-items: center; flex: none; width: 1.75em; height: 1.75em; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); font-size: 0.86em; line-height: 1;
}
.btn-white > .emoji:first-child { background: rgba(10, 34, 78, 0.06); box-shadow: none; }
.btn-big { border-radius: calc(32 * var(--u)); }
/* (30 Oct 2026, the owner: "polish the current versions graphics ... till it shines") the menu's big play button: a gloss
   over its top half and a gleam that sweeps across it three times when the menu comes (then rests: an endless animation in
   the scrolling menu is a WebView trap); none with reduced motion */
.screen-menu .btn-big { overflow: hidden; isolation: isolate; }
.screen-menu .btn-big::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0) 54%); pointer-events: none; z-index: 0; }
.screen-menu .btn-big::after { display: block; content: ''; position: absolute; top: -20%; bottom: -20%; left: -40%; right: auto; width: 26%; height: auto; border-radius: 0; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%); transform: skewX(-18deg) translateX(-120%); animation: btn-gleam 3.4s ease-in-out 0.9s 3; pointer-events: none; z-index: 0; will-change: transform; }
.screen-menu .btn-big > * { position: relative; z-index: 1; }
@keyframes btn-gleam { 0%, 58% { transform: skewX(-18deg) translateX(-120%); } 100% { transform: skewX(-18deg) translateX(640%); } }
@media (prefers-reduced-motion: reduce) { .screen-menu .btn-big::after { display: none; } }
/* the pickers: the chosen mode a white pill with the gold line, the chosen stake a gold coin pill */
.mode-btn[aria-pressed="true"] { border-color: transparent; box-shadow: inset 0 calc(-4 * var(--u)) 0 #ffc928, 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(10, 34, 78, 0.12); }
.stake-btn[aria-pressed="true"] { border-color: transparent; background: linear-gradient(180deg, #ffe27a, #ffc928); color: #4a3500; box-shadow: 0 calc(3 * var(--u)) 0 #c99a0c, 0 calc(5 * var(--u)) calc(10 * var(--u)) rgba(10, 34, 78, 0.14); }
/* the Uitdagersreeks heading on one line */
.duel-head { padding: 0 calc(70 * var(--u)); }
.duel-head h2 { font-size: calc(44 * var(--u)); text-wrap: balance; }

/* (1.15, the owner: "the 3 buttons feels to childish, and the whole menu doesnt feel premium") the Uitdagersreeks as a
   dark glass panel with gold: light text, the pickers on smoked glass, three play cards (the gold one first) */
.duel-card {
  background: radial-gradient(120% 70% at 50% 0%, #2a3a68 0%, #17213f 48%, #0d1328 100%);
  color: #eef3ff; box-shadow: 0 calc(18 * var(--u)) calc(40 * var(--u)) rgba(5, 10, 30, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.duel-card .duel-head h2 { color: #fff; letter-spacing: 0.01em; }
.duel-card .duel-intro, .duel-card .mode-what, .duel-card .mode-line { color: #b4c2e0; }
.duel-card > .close { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: none; }
.duel-card .mode-btns, .duel-card .stake-btns { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.duel-card .mode-btn { color: #b4c2e0; }
.duel-card .mode-btn[aria-pressed="true"] { background: #fff; color: var(--ink); }
.duel-card .stake-pick > .label { color: #ffd75a; }
.duel-card .stake-btn { color: #c9d4ea; }
.duel-card .stake-what { color: #fff; }
.duel-card .stake-have, .duel-card .duel-record { color: #a9b8d8; }
.duel-card .label { color: #b0c0dd; }
.duel-card .rank-box { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.duel-card .rank-season, .duel-card .rank-next, .duel-card .rank-now span { color: #b4c2e0; }
.duel-card .rank-now { color: #fff; }
.duel-card .rank-note, .duel-card .nick-msg, .duel-card .name-rules, .duel-card .note, .duel-card .rank-badges { color: #a9b8d8; }
.duel-card .rank-bar { background: rgba(255, 255, 255, 0.12); }
.duel-card .nick-input { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.16); }
.duel-card .nick-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.play-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(16 * var(--u)); width: 100%;
  min-height: max(60px, calc(104 * var(--u))); padding: calc(12 * var(--u)) calc(18 * var(--u)) calc(12 * var(--u)) calc(14 * var(--u));
  border: 0; border-radius: calc(26 * var(--u)); text-align: left; cursor: pointer; font: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(0, 0, 0, 0.25);
  transition: transform 0.08s ease-out, box-shadow 0.15s;
}
.play-card:active { transform: scale(0.98); }
.pl-ic {
  display: grid; place-items: center; width: max(44px, calc(76 * var(--u))); height: max(44px, calc(76 * var(--u))); border-radius: calc(20 * var(--u));
  font-size: max(22px, calc(40 * var(--u))); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, 0.25);
}
.play-random .pl-ic { background: linear-gradient(145deg, #4fe08e, #148a50); }
.play-friend .pl-ic { background: linear-gradient(145deg, #b18cff, #5b34c9); }
.play-bot .pl-ic { background: linear-gradient(145deg, #4fd6d0, #137a76); }
.pl-tx { display: flex; flex-direction: column; gap: calc(4 * var(--u)); min-width: 0; }
.pl-tx b { font-size: max(16px, calc(32 * var(--u))); font-weight: 900; line-height: 1.1; }
.pl-tx small { font-size: max(12px, calc(21 * var(--u))); font-weight: 700; color: #b4c2e0; line-height: 1.25; }
.pl-go { font-size: max(24px, calc(46 * var(--u))); font-weight: 900; color: rgba(255, 255, 255, 0.55); line-height: 1; }
.play-card.is-primary { background: linear-gradient(135deg, #ffe08a 0%, #ffc928 45%, #f0a500 100%); color: #2a1d00; box-shadow: 0 0 0 1px rgba(255, 236, 170, 0.7) inset, 0 calc(8 * var(--u)) calc(22 * var(--u)) rgba(255, 190, 40, 0.35); }
.play-card.is-primary small { color: rgba(42, 29, 0, 0.75); }
.play-card.is-primary .pl-go { color: rgba(42, 29, 0, 0.6); }
.play-card.is-primary .pl-ic { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.5); }
.play-card:focus-visible { outline: 3px solid #ffd75a; outline-offset: 3px; }

/* (1.15.6) the Living Tower preview: its three ideas in the Uitdagersreeks, the invite on a match's results, the menu's tag */
.ideas-box { margin-top: calc(18 * var(--u)); padding: calc(16 * var(--u)) calc(16 * var(--u)) calc(14 * var(--u)); border-radius: calc(26 * var(--u));
  background: linear-gradient(160deg, rgba(255, 201, 40, 0.16), rgba(255, 120, 60, 0.08)); box-shadow: inset 0 0 0 2px rgba(255, 210, 80, 0.55); }
.ideas-head { display: flex; align-items: center; gap: calc(10 * var(--u)); font-size: max(15px, calc(28 * var(--u))); }
.ideas-head b { font-weight: 900; }
.ideas-tag { margin-left: auto; padding: calc(3 * var(--u)) calc(10 * var(--u)); border-radius: 999px; background: #e0234a; color: #fff;
  font: 900 max(10px, calc(16 * var(--u))) / 1.2 var(--font); text-transform: uppercase; letter-spacing: 0.04em; }
.ideas-sub { margin: calc(6 * var(--u)) 0 calc(10 * var(--u)); font-size: max(12px, calc(21 * var(--u))); font-weight: 700; color: #d9e2f5; line-height: 1.3; }
.idea-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(14 * var(--u)); margin-top: calc(10 * var(--u));
  min-height: max(52px, calc(84 * var(--u))); padding: calc(10 * var(--u)) calc(16 * var(--u)) calc(10 * var(--u)) calc(12 * var(--u)); border-radius: calc(20 * var(--u));
  background: rgba(10, 18, 44, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); color: #fff; text-decoration: none; text-align: left; }
.idea-card b, .idea-card:visited b { color: #fff; }
.idea-card:active { transform: scale(0.98); }
.idea-card:focus-visible, .ideas-invite:focus-visible { outline: 3px solid #ffd75a; outline-offset: 3px; }
.idea-n { display: grid; place-items: center; width: max(34px, calc(56 * var(--u))); height: max(34px, calc(56 * var(--u))); border-radius: calc(16 * var(--u));
  background: linear-gradient(145deg, #ffe08a, #f0a500); color: #2a1d00; font: 900 max(17px, calc(30 * var(--u))) / 1 var(--font); }
.idea-tx { display: flex; flex-direction: column; gap: calc(3 * var(--u)); min-width: 0; }
.idea-tx b { font-size: max(14px, calc(26 * var(--u))); font-weight: 900; line-height: 1.15; }
.idea-tx small { font-size: max(11.5px, calc(20 * var(--u))); font-weight: 700; color: #b4c2e0; line-height: 1.25; }
.ideas-note { margin-top: calc(8 * var(--u)); font-size: max(11px, calc(19 * var(--u))); color: #b4c2e0; }
.ideas-invite { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(16 * var(--u)); margin-top: calc(16 * var(--u));
  padding: calc(14 * var(--u)) calc(18 * var(--u)) calc(14 * var(--u)) calc(14 * var(--u)); border-radius: calc(26 * var(--u)); text-decoration: none;
  background: linear-gradient(135deg, #ffe08a 0%, #ffc928 45%, #f0a500 100%); color: #2a1d00;
  box-shadow: 0 0 0 1px rgba(255, 236, 170, 0.7) inset, 0 calc(8 * var(--u)) calc(22 * var(--u)) rgba(255, 190, 40, 0.35); text-align: left; }
.ideas-invite b { color: #2a1d00; }
.ideas-invite small { color: rgba(42, 29, 0, 0.78); }
.ideas-invite .pl-go { color: rgba(42, 29, 0, 0.6); }
.ideas-inv-ic { background: linear-gradient(145deg, #ff7a5c, #d9402a); }
.btn-duel { position: relative; }
.btn-new-tag { position: absolute; top: calc(-12 * var(--u)); right: calc(14 * var(--u)); padding: calc(2 * var(--u)) calc(9 * var(--u)); border-radius: 999px; background: #e0234a; color: #fff;
  font: 900 max(10px, calc(15 * var(--u))) / 1.2 var(--font); text-transform: uppercase; box-shadow: 0 0 0 calc(2 * var(--u)) #fff, 0 0 calc(10 * var(--u)) rgba(255, 59, 92, 0.6); pointer-events: none; }

/* (1.15, the owner: "Please fix this, it looks bland") the day done: a dark glass card like the Uitdagersreeks, a gold tick,
   the tower in tiles, the countdown in a pill */
.done-box {
  gap: calc(14 * var(--u)); padding: calc(22 * var(--u)) calc(18 * var(--u));
  background: radial-gradient(120% 90% at 50% 0%, #2a3a68 0%, #17213f 55%, #0d1328 100%); color: #eef3ff;
  box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) rgba(5, 10, 30, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.done-title { color: #fff; font-size: max(17px, calc(36 * var(--u))); }
.done-check {
  display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; font-size: 0.85em;
  background: linear-gradient(145deg, #ffe08a, #f0a500); color: #2a1d00; box-shadow: 0 0 calc(12 * var(--u)) rgba(255, 200, 60, 0.6);
}
.done-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: calc(10 * var(--u)); width: 100%; color: #fff; }
.done-tile { display: flex; flex-direction: column; align-items: center; gap: calc(4 * var(--u)); padding: calc(12 * var(--u)) calc(6 * var(--u)); border-radius: calc(20 * var(--u)); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.done-tile-top { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); }
.done-tile-top .emoji { font-size: max(16px, calc(30 * var(--u))); }
.done-tile b { font-size: max(18px, calc(36 * var(--u))); font-weight: 900; font-variant-numeric: tabular-nums; }
.done-tile small { font-size: max(10px, calc(18 * var(--u))); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #b0c0dd; }
.countdown.done-count { padding: calc(8 * var(--u)) calc(18 * var(--u)); border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #b4c2e0; align-items: center; }
.countdown.done-count b { color: #ffd75a; }
.duel-card .stake-btn[aria-pressed="true"] { color: #3a2800; }
/* (1.15, the owner: "The icons is a little blant now ... And now this does not fit") on the dark panel: the heading's swords
   in a glowing gold tile, each mode's icon in its own coloured tile, and your player card in dark glass inside its frame */
.duel-card .duel-head .emoji {
  display: inline-grid; place-items: center; flex: none; width: 1.55em; height: 1.55em; border-radius: 0.4em; font-size: calc(40 * var(--u)); line-height: 1;
  background: linear-gradient(145deg, #ffe08a, #f0a500); box-shadow: 0 0 calc(16 * var(--u)) rgba(255, 200, 60, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.duel-card .mode-btn .emoji {
  display: inline-grid; place-items: center; flex: none; width: 1.6em; height: 1.6em; border-radius: 0.45em; font-size: 0.85em; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, 0.25);
}
.duel-card .mode-btn[data-mode="race"] .emoji { background: linear-gradient(145deg, #ff9a6b, #d9381e); }
.duel-card .mode-btn[data-mode="turns"] .emoji { background: linear-gradient(145deg, #7cc0ff, #2a62c9); }
.duel-card .mode-btn[aria-pressed="false"] .emoji { opacity: 0.8; }
/* (1.15, the owner: "And the chest also") the weekly chests on the same dark glass, the title and the amounts in gold */
.week-strip {
  background: radial-gradient(120% 120% at 50% 0%, #2a3a68 0%, #17213f 60%, #0f162d 100%); color: #ffd75a;
  box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(5, 10, 30, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.week-strip .wk-title { color: #ffd75a; }
/* (1.23) "WEEKLY CHEST" took a row of its own above the chests (and pushed the menu's dock under Android's buttons on a
   small phone): a narrow column beside them instead, on two lines when it must ("WEEKKIS" stays one) */
.week-strip .wk-title { width: min-content; text-align: center; line-height: 1.15; }   /* (as narrow as its longest word) */
.week-strip .wk-amt { color: #e6ecfa; opacity: 0.9; }
.week-strip .wk-chest.is-done .wk-amt { color: #6ee08f; }
.week-strip .wk-line { color: #fff; }
.week-strip .wk-line .coin-ic, .week-strip .wk-line .emoji { filter: drop-shadow(0 0 calc(4 * var(--u)) rgba(255, 200, 60, 0.6)); }
.week-strip .wk-chest:not(.is-done):not(.is-today) .chest { opacity: 0.92; filter: saturate(0.85); }
/* (1.15) the flame on the weekly chests' strip (its right edge), the leaderboard a tile of the done card */
.week-strip { position: relative; }
.week-strip > .streak {
  position: absolute; top: calc(-22 * var(--u)); right: calc(14 * var(--u)); height: calc(50 * var(--u)); min-height: 36px;
  padding: 0 calc(18 * var(--u)) 0 calc(12 * var(--u)); font-size: calc(26 * var(--u));
  background: linear-gradient(180deg, #ffb35c, #f06a1a); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 calc(12 * var(--u)) rgba(255, 140, 40, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); transform: rotate(3deg);
}
.week-strip > .streak.is-zero { background: rgba(255, 255, 255, 0.14); color: #c9d4ea; box-shadow: none; text-shadow: none; }
.week-strip > .streak .emoji { font-size: calc(30 * var(--u)); }
.done-board { border: 0; font: inherit; color: inherit; cursor: pointer; background: linear-gradient(180deg, rgba(255, 215, 90, 0.22), rgba(255, 215, 90, 0.1)); box-shadow: inset 0 0 0 1px rgba(255, 215, 90, 0.45); }
.done-board b { color: #ffd75a; }
.done-board small { color: #ffe9a8; }
.done-board:active { transform: scale(0.97); }

/* (1.15, the owner: "Make a white outline on this") */
.duel-card .nick-input { border: 2px solid rgba(255, 255, 255, 0.85); }

/* (1.15, the owner: "it still doesnt fit, it needs to pop out. People needs to buy it for a reason") the player card as a
   collectible: each frame its own rich card and glow (wood, sea, gold, Springbok, fire, neon, holo, diamond), a shine that
   sweeps across, the medal standing out over the left edge, the title on a nameplate, the rank in a pill. The shop's
   frame swatches show the same card colours. */
.frame-hout { --pc-a: #a8743c; --pc-b: #5a3518; --pc-glow: rgba(200, 140, 70, 0.4); }
.frame-see { --pc-a: #34c4bd; --pc-b: #0f5a78; --pc-glow: rgba(47, 181, 176, 0.5); }
.frame-goud { --pc-a: #f7cf55; --pc-b: #a86e00; --pc-glow: rgba(255, 200, 60, 0.6); }
.frame-springbok { --pc-a: #23a35a; --pc-b: #0b4526; --pc-glow: rgba(247, 201, 72, 0.45); }
.frame-vuur { --pc-a: #ff7f3f; --pc-b: #9e1d0c; --pc-glow: rgba(255, 110, 40, 0.6); }
.frame-neon { --pc-a: #33115c; --pc-b: #12062a; --pc-glow: rgba(255, 63, 164, 0.65); }
.frame-diamant { --pc-a: #9fe8fb; --pc-b: #2a86b8; --pc-glow: rgba(127, 220, 240, 0.75); }
:where(.pcard) { --pc-a: #3a4a7a; --pc-b: #1a2346; --pc-glow: rgba(120, 150, 255, 0.35); }
.pcard {
  position: relative; isolation: isolate; color: #fff;
  padding: calc(14 * var(--u)) calc(20 * var(--u)) calc(14 * var(--u)) calc(16 * var(--u));
  background: linear-gradient(135deg, var(--pc-a), var(--pc-b));
  box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) rgba(5, 10, 30, 0.35), 0 0 calc(20 * var(--u)) var(--pc-glow);
}
.pcard::after {
  content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.32) 47%, transparent 58%) no-repeat;
  background-size: 260% 100%; animation: medal-shine 4.4s ease-in-out infinite;
}
.pcard .pc-name { color: #fff; text-shadow: 0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, 0.4); }
.pcard .pc-title { align-self: center; margin-top: calc(4 * var(--u)); padding: calc(2 * var(--u)) calc(12 * var(--u)); border-radius: 999px; background: rgba(0, 0, 0, 0.28); color: #ffe9a8; }
.pcard .pc-rank { padding: calc(4 * var(--u)) calc(12 * var(--u)) calc(4 * var(--u)) calc(6 * var(--u)); border-radius: 999px; background: rgba(0, 0, 0, 0.26); color: #fff; }
/* the medal bigger than the card is tall: it stands out above and below it */
.pcard .pc-badge { position: relative; z-index: 2; margin: calc(-18 * var(--u)) 0; }
.pcard .pc-badge .medal { width: calc(98 * var(--u)); height: calc(98 * var(--u)); filter: drop-shadow(0 calc(6 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, 0.45)); }
.pcard .pc-badge .medal .emoji { font-size: calc(52 * var(--u)); }
.pcard.is-compact .pc-badge { margin: calc(-12 * var(--u)) 0; }
.pcard.is-compact .pc-badge .medal { width: calc(66 * var(--u)); height: calc(66 * var(--u)); }
.rank-box { padding-top: calc(24 * var(--u)); }
.pcard.frame-holo {
  border: calc(5 * var(--u)) solid rgba(255, 255, 255, 0.7); color: #1d2b45;
  background: linear-gradient(115deg, #ffb3e0, #a8f0ff, #c9b3ff, #fff7b0, #a8ffd8, #ffb3e0); background-size: 300% 300%;
  animation: holo-card 5s linear infinite; box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) rgba(5, 10, 30, 0.3), 0 0 calc(22 * var(--u)) rgba(178, 141, 255, 0.7);
}
@keyframes holo-card { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
.pcard.frame-holo .pc-name { color: #1d2b45; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); }
.pcard.frame-holo .pc-title, .pcard.frame-holo .pc-rank { background: rgba(255, 255, 255, 0.55); color: #2a2050; }
.pcard.frame-goud .pc-name, .pcard.frame-diamant .pc-name { text-shadow: 0 calc(2 * var(--u)) calc(5 * var(--u)) rgba(60, 30, 0, 0.55); }
.frame-swatch:not(.frame-holo) { background: linear-gradient(135deg, var(--pc-a, #fff), var(--pc-b, #fff)); box-shadow: 0 0 calc(10 * var(--u)) var(--pc-glow, transparent); }
@media (prefers-reduced-motion: reduce) { .pcard::after, .pcard.frame-holo { animation: none; } }
#ui.rm .pcard::after, #ui.rm .pcard.frame-holo { animation: none; }

/* ========================================================================================================================
   (1.15, the owner: "Also change all menus now to that permium feeling") every card and sheet in the dark glass of the
   Uitdagersreeks: the colours are re-set inside a card (light ink on deep navy, smoked-glass panels), and the pieces with
   light colours of their own get their dark-glass twins below. The colourful buttons stay colourful.
   ======================================================================================================================== */
.card {
  /* (1.23: --muted lifted from #9fb0d0, 4.1:1 on the sheets' tiles, to 4.9:1) */
  --ink: #f2f5ff; --ink-soft: #c9d4ea; --muted: #b0c0dd; --line: rgba(255, 255, 255, 0.12); --panel: rgba(255, 255, 255, 0.07); --card: #17213f;
  color: var(--ink);
  background: radial-gradient(120% 55% at 50% 0%, #2a3a68 0%, #17213f 48%, #0d1328 100%);
  box-shadow: 0 calc(26 * var(--u)) calc(50 * var(--u)) rgba(5, 10, 30, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.card .icon-btn, .card > .close { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: none; }
.card .btn-white { --bg: rgba(255, 255, 255, 0.08); --bg-l: rgba(255, 255, 255, 0.12); --bg-d: rgba(0, 0, 0, 0.35); --fg: #f2f5ff; box-shadow: 0 var(--depth) 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.card .btn-white > .emoji:first-child { background: rgba(255, 255, 255, 0.1); }
/* (1.15.3) a heart power-up while every heart is full: dimmed, "VOL", still tappable for the why */
.power-btn.is-full { opacity: 0.75; filter: grayscale(0.5); }
.power-btn.is-full .power-tag { background: #94a1bb; }
/* (1.15.3, the owner: "Can you make this show up infront, Its hard to realize who won") the Tower button a round eye (its
   word only while the tower shows), clear of the chip; a match's outcome big, gold for a win */
.peek-btn { padding: 0; width: max(44px, calc(64 * var(--u))); justify-content: center; }
.peek-btn .peek-lbl { display: none; }
.peek-btn[aria-pressed="true"] { width: auto; padding: 0 calc(22 * var(--u)) 0 calc(16 * var(--u)); }
.peek-btn[aria-pressed="true"] .peek-lbl { display: inline; }
.res-duel .chip { height: calc(46 * var(--u)); font-size: calc(22 * var(--u)); margin-bottom: calc(8 * var(--u)); }
.res-duel .res-title { font-size: calc(62 * var(--u)); }
.res-duel .res-title .emoji { font-size: calc(70 * var(--u)); }
.res-duel.is-won { box-shadow: inset 0 0 0 calc(3 * var(--u)) rgba(255, 215, 90, 0.85), 0 0 calc(26 * var(--u)) rgba(255, 200, 60, 0.45); }
.res-duel.is-won .res-title { color: #ffd75a; }
.res-duel.is-lost .res-title { color: #e6ecfa; }
/* (1.15.4) a small phone with Android's 3-button bar ('tight', dom.js): the menu leaves out the tagline and the saying of
   the day, so its bottom row stays above the phone's buttons */
#ui.tight .screen-menu .saying-day, #ui.tight .screen-menu .brand .tagline { display: none; }
/* (1.15.4, the game-tester: the Skeef "∼" was white on orange, 2.04:1, and white on light grey in colour-blind mode,
   1.03:1) the light tiles keep dark marks on the dark cards */
.card .cell-G, .card .cell-S { color: #3d2a00; }
#ui.hc .card .cell-G, #ui.hc .card .cell-S { color: #1d2b45; }
/* (1.15.4, the game-tester's first pass: "Jy" on a match's results was brown on navy, 1.99:1) your row's name in gold */
.card .res-vs-row.you b { color: #ffc94a; }
/* (1.15.3, the owner: "The another match is barely visible") the next match right under the players: the button full
   width, the coin chips (a match against a person) compact under it */
.again-box { display: grid; gap: calc(8 * var(--u)); margin: calc(12 * var(--u)) 0 calc(4 * var(--u)); }
.again-box .btn-duel-again { width: 100%; font-size: max(15px, calc(32 * var(--u))); }
.again-stakes { gap: calc(4 * var(--u)); }
.again-stakes > .label { font-size: max(11px, calc(20 * var(--u))); color: #c9d4ea; }
.again-stakes .stake-btn { min-height: 40px; padding: calc(4 * var(--u)) 2px; font-size: max(12px, calc(22 * var(--u))); color: #e6ecfa; }
.again-stakes .stake-btn[aria-pressed="true"] { color: #6b4d00; }
.again-stakes .stake-btn:disabled { color: #b0c0dd; }
/* the grid's key: how many of the lost blocks a visitor took (no heart) */
.grid-free { margin-left: calc(4 * var(--u)); font-weight: 700; color: #c9d4ea; }
/* (1.15.3, the contrast sweep qa/contrast1153.mjs after the owner's three finds) the last low words on the dark sheets:
   the streak line, "Aan" in Instellings, a rank lock on the gold tiles, and the small lines under Oefen and the
   Uitdagersreeks (a soft edge like the big words above them) */
.card .city-streak { color: #ffb35c; }
.card .settings-row.is-on .settings-value { color: #6fdc7a; }
.card .shop-lock { color: #e3e9f7; }
.btn .btn-sub { text-shadow: 0 calc(2 * var(--u)) 0 rgba(0, 0, 0, 0.28), 0 0 calc(6 * var(--u)) rgba(0, 0, 0, 0.25); }
/* (1.15.3, the owner: "Its not readable") the Google card in Instellings: the same dark glass as the rows under it (it stayed
   white while its words turned light with the 1.15 sheets); Google's own sign-in button stays white */
.card .settings-account { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); }
.card .account-delete, .card .account-msg { color: #ffaea5; }   /* (1.23: 4.4:1 -> 5:1) */
.card .chip { background: rgba(255, 255, 255, 0.12); color: #fff; }
.card input, .card select, .card textarea { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.card a { color: #9fd0ff; }
/* the Winkel: dark tiles with their tier's colour in the edge and a glow, the tabs on smoked glass */
.card .shop-tabs { background: rgba(255, 255, 255, 0.07); }
.card .shop-tab { color: #b0c0dd; }
.card .shop-tab.on { background: #fff; color: #1d2b45; }
.card .shop-item { background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)); border-color: rgba(255, 255, 255, 0.1); }
.card .shop-item.tier-rare { background: linear-gradient(180deg, rgba(47, 128, 237, 0.28), rgba(255, 255, 255, 0.04) 60%); border-color: rgba(90, 160, 255, 0.6); }
.card .shop-item.tier-epic { background: linear-gradient(180deg, rgba(155, 81, 224, 0.32), rgba(255, 255, 255, 0.04) 60%); border-color: rgba(185, 125, 255, 0.65); box-shadow: 0 0 calc(10 * var(--u)) rgba(155, 81, 224, 0.3); }
.card .shop-item.tier-legendary { background: linear-gradient(180deg, rgba(242, 165, 22, 0.32), rgba(255, 255, 255, 0.04) 62%); border-color: rgba(255, 200, 60, 0.85); box-shadow: 0 0 calc(16 * var(--u)) rgba(242, 165, 22, 0.45); }
.card .shop-item.is-on { border-color: #4fd66a; }
.card .shop-on { color: #9ff2b6; }   /* (1.23: "Aan" on the gold-brown tiles 3.9:1 -> 4.9:1) */
.card .shop-try { background: transparent; color: #cfe3ff; border-color: rgba(207, 227, 255, 0.7); }
.card .shop-row { background: rgba(255, 255, 255, 0.06); }
.card .shop-coins { background: rgba(0, 0, 0, 0.35); }
.card .title-plate { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
/* the menu's daily card: its strip, forecast and notes */
.card .forecast { background: rgba(255, 255, 255, 0.06); }
.card .daily-date { color: #b0c0dd; }
.card .lang-btn { background: rgba(255, 255, 255, 0.08); color: #f2f5ff; border-color: rgba(255, 255, 255, 0.18); }
/* (1.15.3) the lobby's offer: who, what and for how much, then Speel or keep looking (and the time left) */
.offer-text { margin: 0 0 calc(8 * var(--u)); text-align: center; color: #f2f5ff; font-weight: 800; font-size: max(15px, calc(30 * var(--u))); line-height: 1.3; }
.offer-note { margin: 0 0 calc(14 * var(--u)); text-align: center; color: #ffd75a; font-weight: 800; font-size: max(12px, calc(22 * var(--u))); }
.offer-btns { display: grid; gap: calc(10 * var(--u)); margin-bottom: calc(10 * var(--u)); }
/* (1.15.3) the Daily Tower's free power-up: four big choices, one per row, on the dark sheet */
.pick-note { margin: 0 0 calc(16 * var(--u)); text-align: center; color: #c9d4ea; font-weight: 700; font-size: max(13px, calc(24 * var(--u))); line-height: 1.3; }
.pick-btns { display: grid; gap: calc(12 * var(--u)); }
.pick-btn {
  display: grid; grid-template-columns: calc(76 * var(--u)) 1fr; column-gap: calc(16 * var(--u)); align-items: center;
  min-height: 52px; padding: calc(14 * var(--u)) calc(18 * var(--u)); border-radius: calc(22 * var(--u));
  border: 2px solid rgba(255, 215, 90, 0.5); background: rgba(255, 255, 255, 0.08); color: #f2f5ff;
  font: inherit; text-align: left; cursor: pointer;
}
.pick-btn .pick-ic {
  grid-row: 1 / 3; display: grid; place-items: center; width: calc(76 * var(--u)); height: calc(76 * var(--u));
  border-radius: 50%; background: rgba(255, 215, 90, 0.16); font-size: calc(42 * var(--u));
}
.pick-btn b { font-weight: 900; font-size: max(15px, calc(30 * var(--u))); line-height: 1.15; }
.pick-btn small { color: #c9d4ea; font-weight: 700; font-size: max(12px, calc(22 * var(--u))); line-height: 1.25; }
.pick-btn:active { transform: scale(0.98); }
.pick-btn:focus-visible { outline: 3px solid #ffd75a; outline-offset: 2px; }
/* (1.15.3, round 2: the player's own power-ups, a Koop beside each, and one to bring) */
.pick-coins { display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); margin: 0 0 calc(12 * var(--u)); color: #ffd75a; font-weight: 900; font-size: max(13px, calc(24 * var(--u))); }
.pick-row { display: grid; grid-template-columns: 1fr auto; gap: calc(8 * var(--u)); align-items: stretch; }
.pick-row .pick-btn { grid-template-rows: auto auto auto; }
.pick-row .pick-btn .pick-ic { grid-row: 1 / 4; }
.pick-btn:disabled { opacity: 0.55; cursor: default; border-color: rgba(255, 255, 255, 0.16); }
.pick-have { color: #ffd75a; font-weight: 900; font-size: max(12px, calc(22 * var(--u))); }
.pick-row:not(.has) .pick-have { color: #b0c0dd; }
.pick-buy {
  display: grid; grid-auto-flow: row; place-items: center; align-content: center; gap: calc(2 * var(--u));
  min-width: calc(110 * var(--u)); min-height: 48px; padding: calc(8 * var(--u)) calc(10 * var(--u));
  border: 2px solid #e0a800; border-radius: calc(20 * var(--u)); background: linear-gradient(180deg, #ffe38c, #f0b400);
  color: #3d2a00; font: 900 max(12px, calc(22 * var(--u))) / 1.1 var(--font); cursor: pointer;
}
.pick-buy b { font-size: max(13px, calc(26 * var(--u))); }
.pick-buy:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.6); }
.pick-buy:active { transform: scale(0.97); }
.pick-none { width: 100%; margin-top: calc(12 * var(--u)); }
.card .lang-btn.on { background: #fff; color: #1d2b45; border-color: #ffc928; box-shadow: inset 0 calc(-4 * var(--u)) 0 #ffc928; }
/* white pills keep dark words on the dark sheets (the chosen mode, a title's preview) */
.card .mode-btn[aria-pressed="true"], .card .title-prev, .card .shop-tab.on { color: #1d2b45; }
/* (1.15, the owner: "Make the coss just a little to the top right corner") */
.sheet .close, .duel-card > .close, .duel-wait > .close { top: calc(14 * var(--u)); right: calc(14 * var(--u)); width: max(44px, calc(68 * var(--u))); height: max(44px, calc(68 * var(--u))); font-size: calc(32 * var(--u)); }
/* (2.0, the house NB "centred things are truly centred"; the coordinator 13 Nov: the ✕ sat ~10 px above the title) a sheet's
   head starts at the sheet's top padding (30u) and is 80u high with its title centred in it, so the ✕ (max(44px, 68u) high)
   centres on that line: 70u from the top. It stays in the right-hand corner (14u from the edge) */
.sheet .close { top: calc(70 * var(--u) - max(22px, 34 * var(--u))); }
/* (1.15, the owner: "Also look at this gear?") the round menu buttons in dark glass, white icons, a thin light ring */
.dock-ic {
  background: radial-gradient(circle at 35% 25%, #33447a 0%, #1a2446 60%, #10172f 100%); color: #fff;
  box-shadow: 0 var(--depth) 0 #0a0f22, 0 calc(12 * var(--u)) calc(20 * var(--u)) rgba(5, 10, 30, 0.35), inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.22);
}
.dock-btn:active .dock-ic { box-shadow: 0 calc(1 * var(--u)) 0 #0a0f22, inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.22); }
.dock-shop .dock-ic { color: #ffd75a; box-shadow: 0 var(--depth) 0 #0a0f22, 0 calc(12 * var(--u)) calc(20 * var(--u)) rgba(5, 10, 30, 0.35), inset 0 0 0 calc(2 * var(--u)) rgba(255, 215, 90, 0.55); }
.dock-btn[aria-pressed="false"] .dock-ic { color: #7d8aa6; background: rgba(255, 255, 255, 0.06); }
.card .dock-ic { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: 0 var(--depth) 0 rgba(0, 0, 0, 0.35), inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.14); }
.card .dock-btn:active .dock-ic { box-shadow: 0 calc(1 * var(--u)) 0 rgba(0, 0, 0, 0.35); }
.card .dock-btn { color: #c9d4ea; }
/* the versus cards and their medals always play, also while the game loop rests (.zzz) */
.zzz .vs-cards .pcard, .zzz .vs-cards .pcard *, .zzz .vs-cards .pcard *::before, .zzz .vs-cards .pcard *::after, .zzz .vs-cards .pc-badge::before { animation-play-state: running !important; }
/* (1.15, the owner: "the corss is next to it instead of top right hand corner of that bubble") the ✕ as a small badge on
   the offer's top-right corner */
.install-row { position: relative; }
.install-x {
  position: absolute; top: calc(-12 * var(--u)); right: calc(-8 * var(--u)); z-index: 2;
  width: max(30px, calc(46 * var(--u))); height: max(30px, calc(46 * var(--u)));
  background: #1d2b45; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, 0.3);
}
/* (1.15, the owner: "This looks wonky") the done card's tiles: equal widths and heights, the label on one centred line,
   the leaderboard the same glass with a gold edge */
.done-stats { grid-auto-columns: minmax(0, 1fr); align-items: stretch; }
.done-tile { justify-content: center; min-width: 0; padding: calc(12 * var(--u)) calc(4 * var(--u)); }
.done-tile-top { min-height: max(24px, calc(44 * var(--u))); }
.done-tile b { font-size: max(16px, calc(34 * var(--u))); white-space: nowrap; }
.done-tile small { white-space: nowrap; text-align: center; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.done-board { background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)); box-shadow: inset 0 0 0 1px rgba(255, 215, 90, 0.7), 0 0 calc(10 * var(--u)) rgba(255, 200, 60, 0.25); }
.done-board .done-tile-top .emoji { font-size: max(20px, calc(38 * var(--u))); }
/* (1.15) the try bar in two rows: ‹ the name (3/9) › on top, buy or wear and the way back under it */
.try-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px 12px; background: rgba(13, 19, 40, 0.94); color: #f2f5ff; box-shadow: 0 10px 30px rgba(5, 10, 30, 0.5), inset 0 0 0 2px var(--tier, rgba(255, 255, 255, 0.18)); }
.try-top { display: flex; align-items: center; gap: 8px; }
.try-top .try-txt { align-items: center; text-align: center; }
.try-txt small { color: #b0c0dd; }
.try-txt b { color: #fff; }
.try-step { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font: 900 30px / 1 var(--font); cursor: pointer; padding-bottom: 4px; }
.try-step:active { transform: scale(0.94); }
.try-actions { display: flex; align-items: center; justify-content: center; gap: 10px; }
.try-bar .shop-on { color: #6ee08f; }
.try-back { background: transparent; color: #cfe3ff; border-color: rgba(207, 227, 255, 0.7); }
/* (1.15, the owner: "It looks a lot better, but I need more a premium look here") the Winkel's tiles: each item in a
   spotlight of its rarity's colour, a sheen across the top, slim gold price pills, outlined Wear, quiet Try it */
.card .shop-item { --spot: rgba(160, 180, 220, 0.28); padding-bottom: calc(14 * var(--u)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 calc(6 * var(--u)) calc(14 * var(--u)) rgba(0, 0, 0, 0.25); transition: transform 0.12s ease, box-shadow 0.2s; }
.card .shop-item.tier-rare { --spot: rgba(80, 150, 255, 0.45); }
.card .shop-item.tier-epic { --spot: rgba(185, 120, 255, 0.5); }
.card .shop-item.tier-legendary { --spot: rgba(255, 200, 70, 0.55); }
.card .shop-item .shop-prev { position: relative; }
.card .shop-item .shop-prev::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: calc(150 * var(--u)); height: calc(120 * var(--u)); transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--spot), transparent); pointer-events: none; z-index: -1;
}
.card .shop-item::after { content: ''; position: absolute; inset: 0 0 auto; height: 38%; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)); }
.card .shop-item:active { transform: translateY(calc(2 * var(--u))) scale(0.985); }
.card .shop-name { color: #fff; font-weight: 800; letter-spacing: 0.01em; }
.card .shop-item .shop-buy {
  min-height: 40px; padding: calc(6 * var(--u)) calc(18 * var(--u)) calc(6 * var(--u)) calc(8 * var(--u)); gap: calc(6 * var(--u));
  background: linear-gradient(180deg, #ffe58f, #f5b800); color: #2a1d00; font-size: max(13px, calc(23 * var(--u)));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 0 1px rgba(255, 220, 120, 0.6), 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(245, 184, 0, 0.3);
}
.card .shop-item .shop-buy.is-poor { opacity: 1; background: rgba(6, 14, 32, 0.45); color: #ffd75a; box-shadow: inset 0 0 0 1px rgba(255, 215, 90, 0.45); }   /* (1.23) a dark tag: the gold price reads on every tile (4.0:1 on the warm ones before) */
.card .shop-item .shop-wear {
  min-height: 40px; padding: calc(6 * var(--u)) calc(22 * var(--u)); background: transparent; color: #fff; font-size: max(13px, calc(23 * var(--u)));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}
.card .shop-item .shop-buy:active, .card .shop-item .shop-wear:active { transform: scale(0.96); }
.card .shop-item .shop-try { min-height: 40px; padding: 2px 10px; border: 0; background: none; color: #c4e2ff; font-size: max(12px, calc(20 * var(--u))); text-decoration: underline; text-underline-offset: 3px; }
/* (1.15, the owner: "This needs to be more to the right and a little more tilted") the flame on the strip's corner, orange */
.card .week-strip > .streak {
  right: calc(-14 * var(--u)); top: calc(-24 * var(--u)); transform: rotate(9deg);
  background: linear-gradient(180deg, #ffb35c, #f06a1a); color: #fff;
  box-shadow: 0 0 calc(12 * var(--u)) rgba(255, 140, 40, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, 0.3);
}
.card .week-strip > .streak.is-zero { background: rgba(255, 255, 255, 0.14); color: #c9d4ea; box-shadow: none; }
/* the trophy chip on the done card's top-left corner, tilted the other way from the flame */
.done-box { position: relative; }
.card .done-box > .board-chip {
  position: absolute; top: calc(-24 * var(--u)); left: calc(-14 * var(--u)); z-index: 2; height: calc(50 * var(--u)); min-height: 36px;
  padding: 0 calc(16 * var(--u)) 0 calc(12 * var(--u)); border: 0; cursor: pointer; font-size: calc(26 * var(--u)); transform: rotate(-9deg);
  background: linear-gradient(180deg, #fffbe8, #ffe08a); color: #6b4a00;
  box-shadow: 0 0 calc(12 * var(--u)) rgba(255, 200, 60, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, 0.3);
}
.card .done-box > .board-chip:has(span:only-child) { padding-right: calc(12 * var(--u)); }
.card .done-box > .board-chip .emoji { font-size: calc(30 * var(--u)); }
button.done-tile { border: 0; font: inherit; color: inherit; cursor: pointer; }
button.done-tile:active { transform: scale(0.97); }
button.done-tile small::after { content: ' ⓘ'; opacity: 0.8; }
/* (1.15, the owner: "These pops way to close to eachother") room for the medals that stand out of the versus cards */
.vs-cards { gap: calc(40 * var(--u)); margin: calc(22 * var(--u)) 0 calc(20 * var(--u)); }
.vs-cards .pc-badge { margin-right: calc(14 * var(--u)); }

/* (1.15) the results' blocks: a title and a key with each kind's count */
.grid-box { display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--u)); }
.grid-title { margin: 0; }
.grid-key { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(6 * var(--u)) calc(14 * var(--u)); font-size: max(12px, calc(21 * var(--u))); font-weight: 800; color: var(--ink-soft); }
.grid-key-item { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); }
.grid-key .cell { display: inline-grid; place-items: center; width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: calc(7 * var(--u)); font: 900 calc(17 * var(--u)) / 1 var(--font); font-style: normal; }
.grid-key b { color: var(--ink); }
/* (1.15, the owner: "The coins section doesnt fit in, The "matches against robot Ricus..." is too light") the results'
   reward pills in dark glass: coins gold-edged, the rank readable */
.card .res-reward > span { background: rgba(255, 255, 255, 0.08); color: #e6ecfa; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.card .res-reward .rw-sub { opacity: 1; color: #b4c2e0; }
.card .res-reward .rw-coins { background: linear-gradient(180deg, rgba(255, 215, 90, 0.2), rgba(255, 215, 90, 0.08)); box-shadow: inset 0 0 0 1px rgba(255, 215, 90, 0.6); }
.card .res-reward .rw-coins b { color: #ffd75a; }
.card .res-reward .rw-rank { background: rgba(155, 120, 255, 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(185, 150, 255, 0.45); }
.card .res-reward .rw-rank.is-quiet, .card .res-reward .rw-rank.is-down { background: rgba(255, 255, 255, 0.07); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.card .res-reward .rw-rank.is-up { background: linear-gradient(180deg, rgba(255, 215, 90, 0.3), rgba(255, 215, 90, 0.12)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 215, 90, 0.7); }
.card .res-reward .rw-stake.is-won { background: linear-gradient(180deg, rgba(255, 215, 90, 0.3), rgba(255, 215, 90, 0.12)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 215, 90, 0.7); }
.card .res-reward .rw-stake.is-lost { background: rgba(255, 255, 255, 0.07); color: #e6ecfa; }
.card .res-reward .rw-week { background: rgba(110, 224, 143, 0.14); color: #e6ffe9; box-shadow: inset 0 0 0 1px rgba(110, 224, 143, 0.45); }
.card .res-reward .rw-week.is-full, .card .res-reward .rw-chest.is-ready { background: linear-gradient(180deg, rgba(255, 215, 90, 0.3), rgba(255, 215, 90, 0.12)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 215, 90, 0.8), 0 0 calc(14 * var(--u)) rgba(255, 201, 40, 0.4); }

/* (1.15, the owner: "THis needs to show up on the left side") the punishment (and Blok vir Blok's sabotage) choice as a
   column on the left, under the balance level: the top of the screen, the crane and the race track stay in sight */
.punish {
  top: calc(var(--sat) + 270 * var(--u)); right: auto; width: calc(330 * var(--u)); min-width: 168px;
  padding: calc(10 * var(--u)); border-radius: calc(22 * var(--u));
  background: rgba(13, 19, 40, 0.92); box-shadow: 0 calc(8 * var(--u)) calc(20 * var(--u)) rgba(5, 10, 30, 0.4), inset 0 0 0 1px rgba(255, 215, 90, 0.35);
}
.punish-title { white-space: normal; text-align: left; line-height: 1.2; color: #ffd75a; font-size: max(12px, calc(22 * var(--u))); }
.punish-btns { grid-template-columns: 1fr; gap: calc(6 * var(--u)); }
.punish-btn {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: calc(10 * var(--u)); row-gap: 0;
  padding: calc(6 * var(--u)) calc(10 * var(--u)); text-align: left; border-radius: calc(14 * var(--u));
  background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.punish-btn .emoji { grid-row: 1 / 3; font-size: calc(40 * var(--u)); }
.punish-btn b { font-size: max(12px, calc(22 * var(--u))); }
.punish-btn small { color: #b4c2e0; font-size: max(10px, calc(17 * var(--u))); }
.punish-btn:active { transform: scale(0.97); box-shadow: inset 0 0 0 2px #ffd75a; }
.grid-box { margin-top: calc(10 * var(--u)); }
/* (1.15) the choices as play cards: an icon tile in each one's colour, the name, what it does, a chevron; the timer on a track */
.punish { width: calc(360 * var(--u)); }
.punish-title { text-align: center; color: #fff; font-size: max(12px, calc(21 * var(--u))); margin-bottom: calc(10 * var(--u)); }
.punish-btn { grid-template-columns: auto 1fr auto; column-gap: calc(12 * var(--u)); padding: calc(7 * var(--u)) calc(10 * var(--u)) calc(7 * var(--u)) calc(7 * var(--u)); background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)); }
.pk-ic {
  grid-row: 1 / 3; display: grid; place-items: center; width: max(38px, calc(62 * var(--u))); height: max(38px, calc(62 * var(--u))); border-radius: calc(16 * var(--u));
  background: linear-gradient(145deg, #8fa2c8, #46557a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, 0.3); overflow: hidden;
}
.pk-ic .emoji { font-size: max(22px, calc(38 * var(--u))); line-height: 1; }
.pk-monkey .pk-ic, .pk-ape .pk-ic { background: linear-gradient(145deg, #ffb35c, #c8661a); }
.pk-thief .pk-ic { background: linear-gradient(145deg, #b18cff, #5b34c9); }
.pk-fog .pk-ic { background: linear-gradient(145deg, #c9d6e8, #7d8fae); }
.pk-heat .pk-ic { background: linear-gradient(145deg, #ff9a6b, #d9381e); }
.pk-wind .pk-ic { background: linear-gradient(145deg, #9fe2ff, #2f8fd0); }
.pk-rain .pk-ic, .pk-storm .pk-ic { background: linear-gradient(145deg, #7cc0ff, #2a62c9); }
/* (1.15.3) Blok vir Blok's newer sabotages */
.pk-wobbly .pk-ic { background: linear-gradient(145deg, #d6b4ff, #7b46d6); }
.pk-rush .pk-ic { background: linear-gradient(145deg, #ffe08a, #e08a00); }
.pk-ice .pk-ic { background: linear-gradient(145deg, #e4fbff, #6cc6e8); }
.pk-hail .pk-ic { background: linear-gradient(145deg, #e0f4ff, #8fb6d8); }
.pk-go { grid-row: 1 / 3; grid-column: 3; font-size: max(20px, calc(36 * var(--u))); font-weight: 900; color: rgba(255, 255, 255, 0.5); line-height: 1; }
.punish-btn b, .punish-btn small { grid-column: 2; }
.punish-track { margin-top: calc(10 * var(--u)); height: calc(8 * var(--u)); min-height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.punish-track .punish-time { margin: 0; height: 100%; background: linear-gradient(90deg, #ffe08a, #f0a500); }
/* (1.15, the owner: "make these a little brighter") on the dark cards: your height gold, theirs sky blue, the labels lighter */
.card .tile-you b { color: #ffc94a; }
.card .tile-them b { color: #7cc4ff; }
.card .label { color: #c9d4ea; }
.card .tile span { color: #c9d4ea; }
/* (1.15.2, the owner: "The colour of the "current streak" cant be read") the streak's tile stays light peach: dark words on it */
.card .tile.hot span { color: #7a4300; }
/* (1.15.3, the owner: "I cant read the name") your own row on the ranglys stays light gold: dark words on it too */
.card .board-row.is-you { color: #3d2a00; }
.card .board-row.is-you .board-rank { color: #7a4300; }
/* (1.15, the owner: "Make this banner go down with you so that for each change you make it is visible") your player card
   stays at the top of the Uitdager-styl tab while you scroll, so every frame, medal or title you wear shows on it */
.look-zone > .pcard { position: sticky; top: calc(20 * var(--u)); z-index: 4; margin-top: calc(22 * var(--u)); margin-bottom: calc(20 * var(--u)); }
/* the common title plates: silver with dark words (the dark sheets made their words white on white) */
.card .title-plate.tier-common { background: linear-gradient(180deg, #f4f7fb, #c9d4e2); color: #1d2b45; text-shadow: none; box-shadow: 0 calc(3 * var(--u)) 0 #8796a8, inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.6); }
/* the sticky card: a ring of the sheet's own colour around it, so the tiles scrolling under it stay hidden */
/* (1.15.1) the card pins at the very top with a plain ring of the sheet's colour. NOT a 100vw shadow trimmed by clip-path
   (1.15.0): Android's WebView doesn't always apply the trim while scrolling, so the band painted over the cards' words
   further down the Winkel (the owner's phone, 13 Oct 07:00) */
.look-zone > .pcard { top: 0; box-shadow: 0 0 calc(20 * var(--u)) var(--pc-glow), 0 calc(10 * var(--u)) calc(22 * var(--u)) rgba(5, 10, 30, 0.6), 0 0 0 calc(12 * var(--u)) rgb(18, 26, 52); }
/* (1.15.2) the Winkel's list stands still. On 1.15.1 the owner's phone (13 Oct 14:11) still lost the words, prices and
   borders of the tiles just under the pinned card: every endless sweep, turning ray and shine in a scrolling list is work
   Android's WebView must keep in step with the scroll (the golden sweep and the rays each made a layer of their own, and
   ~40 more layers came from overlapping them). The tiles keep their tier colours, rims, rays and foils, standing still;
   the pinned player card keeps its own shine. The tiles' drawn pictures are plain images (dom.js asPicture). */
.shop-body .shop-item.tier-legendary::before { display: none; }
.shop-body .shop-item .medal::after, .shop-body .shop-item .medal .medal-rays, .shop-body .shop-item .frame-swatch.frame-holo,
.shop-body .shop-item .title-plate, .shop-body .shop-item:active .medal, .shop-body .pcard .medal::after, .shop-body .pcard .medal .medal-rays { animation: none; }
/* (1.15.2) the pinned card as wide as the tiles under it (it stopped at 560u), so no tile edge or heading peeks out beside
   it; a title's one long word stays whole on its plate ("Wolkekrabbe / r" at 360 px) */
.look-zone > .pcard { max-width: none; }
.shop-item .title-plate { padding-left: calc(8 * var(--u)); padding-right: calc(8 * var(--u)); font-size: max(11px, calc(19 * var(--u))); overflow-wrap: normal; }
.punish-title { display: flex; align-items: center; justify-content: center; gap: calc(10 * var(--u)); flex-wrap: wrap; }
.punish-m { padding: calc(3 * var(--u)) calc(12 * var(--u)); border-radius: 999px; background: linear-gradient(180deg, #ffe08a, #f0a500); color: #2a1d00; font-weight: 900; box-shadow: 0 0 calc(10 * var(--u)) rgba(255, 200, 60, 0.45); }
/* (1.15, the owner: "the punishement needs to be more compact on the left") two by two: small tiles, the icon on top,
   the name and what it does under it */
.punish { width: calc(300 * var(--u)); min-width: 150px; padding: calc(8 * var(--u)); }
.punish-title { margin-bottom: calc(8 * var(--u)); font-size: max(11px, calc(19 * var(--u))); gap: calc(8 * var(--u)); }
.punish-btns { grid-template-columns: 1fr 1fr; gap: calc(6 * var(--u)); }
.punish-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: calc(3 * var(--u));
  padding: calc(8 * var(--u)) calc(4 * var(--u)) calc(7 * var(--u)); text-align: center; min-height: 0;
}
.punish-btn .pk-ic { width: max(30px, calc(50 * var(--u))); height: max(30px, calc(50 * var(--u))); border-radius: calc(13 * var(--u)); }
.punish-btn .pk-ic .emoji { font-size: max(18px, calc(30 * var(--u))); }
.punish-btn b { font-size: max(11px, calc(19 * var(--u))); }
.punish-btn small { font-size: max(9px, calc(14 * var(--u))); }
.punish-btn .pk-go { display: none; }
/* (1.15 round 2) a small phone (360 px): a little wider, and a long name or line wraps instead of "Skelm Sak…" */
.punish { min-width: 168px; }
.punish-btn b, .punish-btn small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; text-wrap: balance; }
.punish-track { margin-top: calc(8 * var(--u)); }
/* the round buttons' light falls straight from above (the off-centre highlight made them look lopsided) */
.dock-ic { background: radial-gradient(circle at 50% 18%, #34467c 0%, #1b2548 58%, #10172f 100%); }
/* (1.15.4, the game-tester: on a 360 phone the round Tower eye sat on a match's outcome card) the card keeps clear of the
   eye on both sides (it stays centred); its title a little smaller on narrow phones so it still fits on one line */
.screen-results .res-duel { max-width: calc(100vw - 2 * (var(--sal) + 20 * var(--u) + max(44px, 64 * var(--u)))); }
.screen-results .res-duel .res-title { font-size: min(calc(62 * var(--u)), 7.4vw); }
/* (1.23) the same for a tower's results: a wide saying made the head's dark box run under the eye on a 360 phone. The
   box now starts under the day's chip (the chip floats above it, as a label), so the eye only ever meets the chip's row */
.screen-results .res-head:not(.res-duel) { position: relative; z-index: 0; background: none; }
.screen-results .res-head:not(.res-duel) .chip { margin-bottom: calc(20 * var(--u)); }   /* (8 px of the box above the title on a 360 phone) */
.screen-results .res-head:not(.res-duel)::before {
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; top: calc(72 * var(--u));
  border-radius: calc(36 * var(--u)); background: rgba(12, 32, 66, 0.55);
}
/* (1.15.4, the game-tester: endless shines still played in screens that scroll: the Winkel's pinned card, the
   Uitdagersreeks card, a long-time player's holo frame) a player card's shine, rays and holo play three times and rest
   (the 1.15.2 rule: endless work in a scrolling screen is what Android's WebView loses tiles over) */
.pcard::after, .pcard.frame-holo, .pcard .medal::after, .pcard .medal .medal-rays, .pcard .title-plate { animation-iteration-count: 3; }
.vs-cards .pc-badge .medal { animation-iteration-count: 1, 3; }   /* its pop once, its hover three times */

/* (1.16, Die Lewende Toring) the screens around a Living Tower match (js/ui/lewendeUi.js): the game's dark glass, gold accents */
.lt-root { position: absolute; inset: 0; z-index: 40; pointer-events: none; font-family: var(--font); color: #fff; }
.lt-root[hidden] { display: none; }
/* the menus behind stay out of sight while a Living Tower screen shows (not during the match: the world is the match) */
.lt-root:not(.lt-play) { background: radial-gradient(circle at 50% 30%, rgba(24, 40, 96, 0.94), rgba(6, 11, 32, 0.97) 75%); }
.lt-root > * { pointer-events: auto; }
.lt-root.lt-play > .lt-toast { pointer-events: none; }
.lt-root.lt-play > .lt-hud { pointer-events: none; }
.lt-root.lt-play > .lt-hud .lt-q { pointer-events: auto; }
.lt-dim { opacity: 0.72; font-weight: 700; }
.lt-sheet { position: absolute; left: 50%; top: calc(var(--sat) + 24 * var(--u)); transform: translateX(-50%); width: calc(680 * var(--u)); max-height: calc(100% - var(--sat) - var(--sab) - 48 * var(--u));
  overflow-y: auto; padding: calc(34 * var(--u)) calc(30 * var(--u)) calc(30 * var(--u)); border-radius: calc(40 * var(--u));
  background: linear-gradient(170deg, rgba(23, 36, 82, 0.96), rgba(10, 17, 44, 0.97)); box-shadow: 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.12), 0 calc(20 * var(--u)) calc(60 * var(--u)) rgba(0, 0, 0, 0.5); }
.lt-x { position: absolute; right: calc(22 * var(--u)); top: calc(22 * var(--u)); width: calc(64 * var(--u)); height: calc(64 * var(--u)); border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font: 900 calc(30 * var(--u)) / 1 var(--font); }
.lt-tag { font-size: calc(19 * var(--u)); font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: #ffd75a; }
.lt-h { font-size: calc(50 * var(--u)); line-height: 1.05; margin: calc(8 * var(--u)) 0 0; font-weight: 900; }
.lt-h.big { font-size: calc(64 * var(--u)); }
.lt-p { font-size: calc(24 * var(--u)); line-height: 1.38; color: #c9d4ee; margin: calc(10 * var(--u)) 0 0; }
.lt-sec { display: flex; align-items: center; gap: calc(10 * var(--u)); margin: calc(30 * var(--u)) 0 calc(12 * var(--u)); font-size: calc(19 * var(--u)); font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #aebbe0; }
.lt-me { display: flex; align-items: center; gap: calc(18 * var(--u)); margin-top: calc(22 * var(--u)); padding: calc(16 * var(--u)) calc(18 * var(--u)); border-radius: calc(26 * var(--u)); background: rgba(255, 255, 255, 0.06); font-size: calc(30 * var(--u)); }
.lt-face { display: block; width: calc(70 * var(--u)); height: calc(70 * var(--u)); border-radius: 50%; flex: none; box-shadow: 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, 0.35); }
.lt-face-s { width: calc(46 * var(--u)); height: calc(46 * var(--u)); box-shadow: none; }
.lt-face-m { width: calc(60 * var(--u)); height: calc(60 * var(--u)); }
.lt-face-l { width: calc(96 * var(--u)); height: calc(96 * var(--u)); }
.lt-face-xl { width: calc(190 * var(--u)); height: calc(190 * var(--u)); box-shadow: 0 0 0 calc(6 * var(--u)) rgba(255, 255, 255, 0.18), 0 calc(14 * var(--u)) calc(34 * var(--u)) rgba(0, 0, 0, 0.45); }
.lt-rank { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(4 * var(--u)) calc(10 * var(--u)) calc(4 * var(--u)) calc(6 * var(--u)); border-radius: calc(14 * var(--u)); background: rgba(255, 255, 255, 0.08); font-size: calc(21 * var(--u)); white-space: nowrap; }
.lt-rank .lt-shield { width: calc(30 * var(--u)); height: auto; }
.lt-rank.big { flex-direction: column; gap: calc(6 * var(--u)); background: none; font-size: calc(30 * var(--u)); }
.lt-rank.big .lt-shield { width: calc(84 * var(--u)); }
.lt-lv { display: inline-grid; place-items: center; min-width: calc(54 * var(--u)); padding: calc(2 * var(--u)) calc(10 * var(--u)); border-radius: 999px; background: linear-gradient(#8a7bff, #4b3fc4);
  box-shadow: 0 0 0 calc(3 * var(--u)) #fff; font-weight: 900; font-size: calc(22 * var(--u)); line-height: 1.05; }
.lt-lv small { display: block; font-size: calc(12 * var(--u)); letter-spacing: 0.08em; opacity: 0.9; }
.lt-rank.big .lt-lv { font-size: calc(30 * var(--u)); padding: calc(4 * var(--u)) calc(18 * var(--u)); }
.lt-tribes { display: flex; flex-direction: column; gap: calc(14 * var(--u)); }
.lt-tribe { display: flex; flex-direction: column; align-items: flex-start; gap: calc(6 * var(--u)); width: 100%; text-align: left; padding: calc(18 * var(--u)) calc(20 * var(--u)); border-radius: calc(26 * var(--u)); border: 0;
  background: rgba(255, 255, 255, 0.06); color: #fff; font: inherit; font-size: calc(23 * var(--u)); box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.1); }
.lt-tribe.on { background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 30%, transparent), rgba(255, 255, 255, 0.05)); box-shadow: inset 0 0 0 calc(4 * var(--u)) #ffd75a, 0 0 calc(24 * var(--u)) rgba(255, 215, 90, 0.25); }
.lt-tribe-top { display: flex; align-items: center; gap: calc(14 * var(--u)); font-size: calc(36 * var(--u)); }
.lt-line { line-height: 1.32; color: #dbe3f5; }
.lt-line.ok { color: #8dffa8; }
.lt-line.no { color: #ffab9e; }
.lt-cast { display: flex; gap: calc(8 * var(--u)); margin-top: calc(4 * var(--u)); }
.lt-pl { display: flex; align-items: center; gap: calc(16 * var(--u)); margin-top: calc(12 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u)); border-radius: calc(24 * var(--u)); background: rgba(255, 255, 255, 0.06); font-size: calc(26 * var(--u)); }
.lt-who { flex: 1; min-width: 0; line-height: 1.35; }
.lt-st { font-size: calc(20 * var(--u)); color: #b4c2e0; margin-top: calc(4 * var(--u)); }
.lt-dot { display: inline-block; width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: 50%; background: #3cdc5a; box-shadow: 0 0 calc(10 * var(--u)) #3cdc5a; margin-right: calc(6 * var(--u)); }
.lt-dot.busy { background: #ffb02e; box-shadow: 0 0 calc(10 * var(--u)) #ffb02e; }
.lt-foot { margin-top: calc(22 * var(--u)); font-size: calc(19 * var(--u)); line-height: 1.4; color: #93a3c8; text-align: center; }
.lt-btn { border: 0; border-radius: calc(22 * var(--u)); padding: calc(18 * var(--u)) calc(26 * var(--u)); font: 900 calc(26 * var(--u)) / 1.1 var(--font); color: #2a1d00; white-space: nowrap;
  background: linear-gradient(135deg, #ffe08a, #ffc928 45%, #f0a500); box-shadow: 0 calc(6 * var(--u)) 0 #b07a00, 0 calc(10 * var(--u)) calc(22 * var(--u)) rgba(255, 190, 40, 0.3); }
.lt-btn:active { transform: translateY(calc(4 * var(--u))); box-shadow: 0 calc(2 * var(--u)) 0 #b07a00; }
.lt-btn.grn { color: #fff; background: linear-gradient(#4fd86a, #22a442); box-shadow: 0 calc(6 * var(--u)) 0 #157a2e, 0 calc(10 * var(--u)) calc(22 * var(--u)) rgba(40, 200, 90, 0.3); }
.lt-btn.alt { color: #fff; background: linear-gradient(#56648f, #36426a); box-shadow: 0 calc(6 * var(--u)) 0 #222b48; }
.lt-btn.sel { outline: calc(4 * var(--u)) solid #ffd75a; outline-offset: calc(4 * var(--u)); }
.lt-btn:disabled { opacity: 0.45; }
.lt-row { display: flex; gap: calc(16 * var(--u)); justify-content: center; margin-top: calc(22 * var(--u)); flex-wrap: wrap; }
/* VS */
.lt-vs { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(22 * var(--u));
  background: radial-gradient(circle at 50% 46%, rgba(44, 66, 150, 0.97), rgba(9, 15, 40, 0.98) 70%); font-size: calc(24 * var(--u)); }
.lt-vsrow { display: flex; align-items: center; gap: calc(14 * var(--u)); }
.lt-vsp { width: calc(290 * var(--u)); display: flex; flex-direction: column; align-items: center; text-align: center; gap: calc(10 * var(--u)); }
.lt-vsn { font-size: calc(40 * var(--u)); font-weight: 900; }
.lt-vst { font-size: calc(28 * var(--u)); font-weight: 900; }
.lt-vsx { font-size: calc(84 * var(--u)); font-weight: 900; color: #ffd75a; text-shadow: 0 calc(5 * var(--u)) 0 #b86d12, 0 0 calc(30 * var(--u)) rgba(255, 210, 60, 0.5); }
.lt-vsx.small { font-size: calc(40 * var(--u)); }
.lt-chip { padding: calc(10 * var(--u)) calc(22 * var(--u)); border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-weight: 900; }
/* the match */
.lt-hud { position: absolute; left: calc(14 * var(--u)); right: calc(14 * var(--u)); top: calc(var(--sat) + 14 * var(--u)); display: flex; justify-content: space-between; align-items: flex-start; gap: calc(8 * var(--u)); }
.lt-card { flex: none; width: calc(270 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)) calc(14 * var(--u)); border-radius: calc(26 * var(--u)); background: rgba(12, 20, 50, 0.86);
  box-shadow: inset 0 0 0 calc(3 * var(--u)) rgba(255, 255, 255, 0.12), 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(0, 0, 0, 0.3); font-size: calc(22 * var(--u)); transition: box-shadow 0.2s; }
.lt-card.on { box-shadow: inset 0 0 0 calc(4 * var(--u)) #ffd75a, 0 0 calc(26 * var(--u)) rgba(255, 215, 90, 0.35); }
.lt-card-top { display: flex; align-items: center; gap: calc(12 * var(--u)); margin-bottom: calc(10 * var(--u)); }
.lt-card.r .lt-card-top { flex-direction: row-reverse; text-align: right; }
.lt-nm { font-size: calc(27 * var(--u)); font-weight: 900; max-width: calc(170 * var(--u)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-tr { font-size: calc(20 * var(--u)); opacity: 0.85; font-weight: 800; }
.lt-card .lt-rank { font-size: calc(19 * var(--u)); }
.lt-st2 { display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: calc(10 * var(--u)); margin-top: calc(10 * var(--u)); font-size: calc(26 * var(--u)); }
.lt-card.r .lt-st2 { flex-direction: row-reverse; }
.lt-pips { display: flex; gap: calc(5 * var(--u)); margin-left: auto; }
.lt-card.r .lt-pips { margin-left: 0; margin-right: auto; }
.lt-pips i { width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.lt-pips i.f { background: #ffd75a; box-shadow: 0 0 calc(10 * var(--u)) #ffd75a; }
.lt-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: calc(10 * var(--u)); text-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0, 0, 0, 0.6); }
.lt-mid b { font-size: calc(28 * var(--u)); line-height: 1.1; }
.lt-mid b.sm { font-size: calc(22 * var(--u)); overflow-wrap: anywhere; }
.lt-mid small { font-size: calc(20 * var(--u)); font-weight: 800; }
.lt-q { margin-top: calc(10 * var(--u)); width: calc(56 * var(--u)); height: calc(56 * var(--u)); border-radius: 50%; border: calc(3 * var(--u)) solid rgba(255, 255, 255, 0.5); background: rgba(12, 20, 50, 0.7); color: #fff; font: 900 calc(24 * var(--u)) / 1 var(--font); }
.lt-toast { position: absolute; left: 0; right: 0; top: calc(var(--sat) + 330 * var(--u)); text-align: center; }
.lt-toast div { display: inline-block; padding: calc(12 * var(--u)) calc(26 * var(--u)); border-radius: 999px; background: rgba(10, 16, 40, 0.86); font-weight: 900; font-size: calc(28 * var(--u)); animation: lt-pop 0.22s ease-out; }
.lt-toast div.big { background: none; font-size: calc(64 * var(--u)); color: #ffd75a; text-shadow: 0 calc(5 * var(--u)) 0 #b86d12, 0 0 calc(26 * var(--u)) rgba(255, 210, 60, 0.55); }
.lt-toast div small { display: block; font-size: 0.42em; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; text-shadow: 0 calc(3 * var(--u)) 0 rgba(0, 0, 0, 0.45); }
@keyframes lt-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lt-bar { position: absolute; left: calc(14 * var(--u)); right: calc(14 * var(--u)); bottom: calc(var(--sab) + 14 * var(--u)); padding: calc(18 * var(--u)) calc(20 * var(--u)) calc(22 * var(--u)); border-radius: calc(32 * var(--u));
  background: rgba(12, 20, 50, 0.9); box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.12), 0 calc(10 * var(--u)) calc(30 * var(--u)) rgba(0, 0, 0, 0.35); }
.lt-bar[hidden] { display: none; }
.lt-hint { font-size: calc(25 * var(--u)); font-weight: 800; line-height: 1.32; text-align: center; }
.lt-btns { display: flex; gap: calc(12 * var(--u)); justify-content: center; flex-wrap: wrap; margin-top: calc(14 * var(--u)); }
.lt-btns:empty { display: none; }
/* the result */
.lt-res { text-align: center; }
.lt-score { display: flex; align-items: center; justify-content: center; gap: calc(16 * var(--u)); margin-top: calc(20 * var(--u)); font-size: calc(36 * var(--u)); }
.lt-gain { margin-top: calc(22 * var(--u)); padding: calc(18 * var(--u)) calc(22 * var(--u)); border-radius: calc(26 * var(--u)); background: rgba(255, 255, 255, 0.06); text-align: left; }
.lt-gr { display: flex; align-items: center; gap: calc(10 * var(--u)); font-size: calc(26 * var(--u)); }
.lt-gr .lt-shield { width: calc(34 * var(--u)); height: auto; }
.lt-gr .ok, .lt-gr .no, .lt-gr .xp { margin-left: auto; font-weight: 900; }
.lt-gr .ok { color: #8dffa8; }
.lt-gr .no { color: #ffab9e; }
.lt-gr .xp { color: #c9c0ff; }
.lt-gr + .lt-barline { margin-bottom: calc(14 * var(--u)); }
.lt-barline { height: calc(14 * var(--u)); border-radius: 99px; background: rgba(255, 255, 255, 0.14); overflow: hidden; margin-top: calc(8 * var(--u)); }
.lt-barline i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #d8e2ee, #fff); }
.lt-barline.xp i { background: linear-gradient(90deg, #a99cff, #6b5cff); }
.lt-up { margin-top: calc(6 * var(--u)); font-weight: 900; color: #ffd75a; }
.lt-vote-card { display: flex; flex-direction: column; align-items: center; gap: calc(10 * var(--u)); margin-top: calc(22 * var(--u)); padding: calc(20 * var(--u));
  border-radius: calc(26 * var(--u)); background: linear-gradient(135deg, rgba(255, 210, 63, 0.18), rgba(255, 120, 60, 0.1)); box-shadow: inset 0 0 0 calc(3 * var(--u)) rgba(255, 215, 90, 0.7); font-size: calc(24 * var(--u)); }
.lt-vote-card b { font-size: calc(28 * var(--u)); }
/* the vote */
.lt-modal { position: absolute; inset: 0; background: rgba(5, 10, 30, 0.7); }
.lt-vopt { display: flex; align-items: center; gap: calc(16 * var(--u)); width: 100%; margin-top: calc(12 * var(--u)); padding: calc(16 * var(--u)) calc(18 * var(--u)); border: 0; border-radius: calc(22 * var(--u));
  background: rgba(255, 255, 255, 0.07); color: #fff; font: inherit; font-size: calc(26 * var(--u)); text-align: left; box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.1); }
.lt-vopt .n { display: grid; place-items: center; flex: none; width: calc(52 * var(--u)); height: calc(52 * var(--u)); border-radius: calc(16 * var(--u)); background: #2a3a78; font-weight: 900; }
.lt-vopt small { display: block; font-size: calc(20 * var(--u)); opacity: 0.8; }
.lt-vopt.on { box-shadow: inset 0 0 0 calc(4 * var(--u)) #ffd75a; background: rgba(255, 215, 90, 0.12); }
.lt-vopt.on .n { background: #ffd75a; color: #2a1d00; }
.lt-fld { display: block; margin-top: calc(20 * var(--u)); font-size: calc(22 * var(--u)); font-weight: 900; }
.lt-fld input, .lt-fld textarea { display: block; width: 100%; margin-top: calc(8 * var(--u)); padding: calc(16 * var(--u)) calc(18 * var(--u)); border-radius: calc(18 * var(--u)); border: calc(3 * var(--u)) solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.25); color: #fff; font: 700 calc(28 * var(--u)) / 1.3 var(--font); }
.lt-fld textarea { min-height: calc(120 * var(--u)); resize: none; }
.lt-msg { min-height: calc(30 * var(--u)); margin-top: calc(12 * var(--u)); font-size: calc(22 * var(--u)); font-weight: 800; color: #ffb3a8; }
.lt-msg.ok { color: #8dffa8; }
/* (1.16 redesign) the tray under the world: what to do now, the people's cards (drag one to a room), the attack cards */
.lt-tray { position: absolute; left: calc(12 * var(--u)); right: calc(12 * var(--u)); bottom: calc(var(--sab) + 12 * var(--u)); padding: calc(16 * var(--u)) calc(18 * var(--u)) calc(18 * var(--u));
  border-radius: calc(30 * var(--u)); background: linear-gradient(180deg, rgba(22, 32, 70, 0.95), rgba(9, 14, 36, 0.97));
  box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.12), 0 calc(12 * var(--u)) calc(34 * var(--u)) rgba(0, 0, 0, 0.45); }
.lt-tray[hidden] { display: none; }
.lt-tray-head { display: flex; align-items: center; gap: calc(14 * var(--u)); }
.lt-tray-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(5 * var(--u)); }
.lt-tray-t { font-size: calc(30 * var(--u)); font-weight: 900; line-height: 1.1; text-align: left; }
.lt-tray-s { font-size: calc(20 * var(--u)); line-height: 1.32; color: #b9c6e6; font-weight: 700; }
.lt-tray-s b { color: #fff; }
.lt-tray .lt-btns { flex: none; margin: 0; flex-wrap: nowrap; gap: calc(10 * var(--u)); }
.lt-tray .lt-btn { padding: calc(16 * var(--u)) calc(22 * var(--u)); }
.lt-tray.busy { padding: calc(16 * var(--u)) calc(22 * var(--u)); }
.lt-tray.busy .lt-tray-t { font-size: calc(24 * var(--u)); color: #c9d4ee; }
.lt-dots { display: inline-flex; gap: calc(5 * var(--u)); margin-left: calc(10 * var(--u)); vertical-align: middle; }
.lt-dots i { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: #ffd75a; animation: lt-dot 1s infinite ease-in-out; }
.lt-dots i:nth-child(2) { animation-delay: 0.15s; }
.lt-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes lt-dot { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.7); } 40% { opacity: 1; transform: scale(1); } }
.lt-tray.tap .lt-tray-t::after { content: '👆'; margin-left: calc(12 * var(--u)); display: inline-block; animation: lt-tap 0.9s infinite ease-in-out; }
@keyframes lt-tap { 50% { transform: translateY(calc(-6 * var(--u))); } }
.lt-cards { display: flex; gap: calc(10 * var(--u)); margin-top: calc(14 * var(--u)); justify-content: center; flex-wrap: wrap; }
.lt-pc { position: relative; flex: none; width: calc(94 * var(--u)); padding: calc(8 * var(--u)) 0 calc(7 * var(--u)); border: 0; border-radius: calc(20 * var(--u)); background: rgba(255, 255, 255, 0.08);
  color: #fff; font: 800 calc(18 * var(--u)) / 1.1 var(--font); display: flex; flex-direction: column; align-items: center; gap: calc(5 * var(--u));
  box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.12); touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; transition: transform 0.12s, opacity 0.12s; }
.lt-pc img { width: calc(64 * var(--u)); height: calc(64 * var(--u)); border-radius: 50%; pointer-events: none; box-shadow: 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, 0.4); }
.lt-pc span { max-width: 94%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-pc.sel { background: rgba(255, 215, 90, 0.18); box-shadow: inset 0 0 0 calc(4 * var(--u)) #ffd75a, 0 0 calc(18 * var(--u)) rgba(255, 215, 90, 0.4); transform: translateY(calc(-6 * var(--u))); }
.lt-pc.placed { opacity: 0.6; }
.lt-pc.placed.sel { opacity: 1; }
.lt-pc i { position: absolute; top: calc(4 * var(--u)); right: calc(8 * var(--u)); width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-radius: 50%; background: #3cdc5a; color: #fff;
  font: 900 calc(16 * var(--u)) / calc(26 * var(--u)) var(--font); font-style: normal; box-shadow: 0 0 0 calc(2 * var(--u)) #0d1530; }
.lt-pc.lift { opacity: 0.2; }
.lt-pc.lost { opacity: 0.25; filter: grayscale(1); }
.lt-cards.nudge .lt-pc:not(.placed) { animation: lt-nudge 0.4s; }
@keyframes lt-nudge { 25% { transform: translateX(calc(-6 * var(--u))) rotate(-4deg); } 75% { transform: translateX(calc(6 * var(--u))) rotate(4deg); } }
.lt-root > .lt-ghost { position: fixed; left: 0; top: 0; z-index: 100; width: calc(104 * var(--u)); height: calc(104 * var(--u)); border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 calc(4 * var(--u)) #fff, 0 calc(14 * var(--u)) calc(30 * var(--u)) rgba(0, 0, 0, 0.5); transform: translate(-300px, -300px); }
.lt-root > .lt-ghost.hot { box-shadow: 0 0 0 calc(5 * var(--u)) #ffd75a, 0 0 calc(30 * var(--u)) rgba(255, 215, 90, 0.85); }
.lt-weapons { display: flex; gap: calc(12 * var(--u)); margin-top: calc(14 * var(--u)); }
.lt-wc { flex: 1; min-width: 0; display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); border: 0; border-radius: calc(22 * var(--u));
  background: rgba(255, 255, 255, 0.07); color: #fff; font: inherit; text-align: left; box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.12); }
.lt-wc.sel { background: linear-gradient(135deg, rgba(255, 90, 60, 0.28), rgba(255, 255, 255, 0.05)); box-shadow: inset 0 0 0 calc(4 * var(--u)) #ff6a4a, 0 0 calc(20 * var(--u)) rgba(255, 90, 60, 0.35); }
.lt-wc.off { opacity: 0.62; }
.lt-wc-ico { font-size: calc(40 * var(--u)); line-height: 1; }
.lt-wc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(3 * var(--u)); }
.lt-wc-txt b { font-size: calc(25 * var(--u)); }
.lt-wc-txt small { font-size: calc(17 * var(--u)); color: #c3cfeb; line-height: 1.25; font-weight: 700; }
.lt-wc .lt-pips { margin: calc(4 * var(--u)) 0 0; }
.lt-wc-shape { flex: none; width: calc(46 * var(--u)); height: auto; }
.lt-btn.red { color: #fff; background: linear-gradient(#ff7a5a, #e0381f); box-shadow: 0 calc(6 * var(--u)) 0 #9c2110, 0 calc(10 * var(--u)) calc(22 * var(--u)) rgba(255, 80, 40, 0.35); }
.lt-root > .lt-coach { position: fixed; left: 0; top: 0; z-index: 101; pointer-events: none; font-size: calc(78 * var(--u)); line-height: 1; filter: drop-shadow(0 calc(6 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, 0.55)); }


/* ------------------------------------------------------------------------------------------------------------------
   (1.16) Die Lewende Toring in the game: the results card's town (how many people, the title, the record, who lived
   there) and the tribe sheet. Pictures are plain images (no canvas, no endless animation: the sheet scrolls).
   ------------------------------------------------------------------------------------------------------------------ */
.res-town {
  margin-top: calc(16 * var(--u));
  padding: calc(14 * var(--u)) calc(18 * var(--u)) calc(16 * var(--u));
  border-radius: calc(24 * var(--u));
  background: linear-gradient(180deg, #1f2f57 0%, #142042 100%);
  color: #fff;
  box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(255, 210, 63, 0.35), 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(10, 20, 45, 0.25);
  text-align: center;
}
.res-town .town-head { display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); font-size: max(12px, calc(20 * var(--u))); font-weight: 800; color: #ffe38c; letter-spacing: 0.02em; }
.res-town .town-main { display: flex; align-items: center; justify-content: center; gap: calc(14 * var(--u)); margin-top: calc(4 * var(--u)); }
.res-town .town-n { font-size: calc(64 * var(--u)); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 calc(3 * var(--u)) 0 rgba(0, 0, 0, 0.35); }
.res-town .town-what { display: flex; flex-direction: column; align-items: flex-start; gap: calc(2 * var(--u)); }
.res-town .town-people { font-size: max(12px, calc(22 * var(--u))); font-weight: 800; color: #cfe0ff; }
.res-town .town-title { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); padding: calc(3 * var(--u)) calc(12 * var(--u)); border-radius: 999px; background: #ffd23f; color: #4a3300; font-size: max(12px, calc(22 * var(--u))); font-weight: 900; }
.res-town .town-best { margin: calc(8 * var(--u)) 0 0; font-size: max(12px, calc(20 * var(--u))); font-weight: 800; color: #cfe0ff; }
.res-town .town-best.is-new { color: #ffd23f; animation: rank-up 0.9s ease-out both; }
.res-town .town-next { margin: calc(2 * var(--u)) 0 0; font-size: max(11px, calc(18 * var(--u))); font-weight: 700; color: #9fb4dd; }
.res-town .town-faces { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(6 * var(--u)); margin-top: calc(12 * var(--u)); }
.res-town .town-face { position: relative; width: calc(56 * var(--u)); height: calc(56 * var(--u)); }
.res-town .town-face img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.res-town .town-face.is-gold img { box-shadow: 0 0 0 calc(3 * var(--u)) #ffd23f, 0 0 calc(12 * var(--u)) rgba(255, 210, 63, 0.8); }
.res-town .town-face i { position: absolute; left: 50%; bottom: calc(-6 * var(--u)); transform: translateX(-50%); padding: 0 calc(6 * var(--u)); border-radius: 999px; background: #2fd47a; color: #06301a; font-style: normal; font-size: max(9px, calc(14 * var(--u))); font-weight: 900; line-height: 1.5; white-space: nowrap; }
.res-town .town-jumped { margin: calc(10 * var(--u)) 0 0; font-size: max(11px, calc(18 * var(--u))); font-weight: 700; color: #ffb3a8; }
@media (prefers-reduced-motion: reduce) { .res-town .town-best.is-new { animation: none; } }

.tribe-sheet .tribe-ask { margin: 0 0 calc(12 * var(--u)); text-align: center; font-weight: 800; color: var(--ink-soft); font-size: max(13px, calc(24 * var(--u))); }
.tribe-sheet .tribe-list { display: grid; gap: calc(12 * var(--u)); }
.tribe-card {
  display: grid; grid-template-columns: 1fr; gap: calc(6 * var(--u)); width: 100%;
  padding: calc(14 * var(--u)) calc(16 * var(--u)); border: 0; border-radius: calc(22 * var(--u));
  font: inherit; text-align: left; cursor: pointer; color: #fff;
  box-shadow: 0 calc(5 * var(--u)) 0 rgba(0, 0, 0, 0.22);
  transition: transform 0.12s ease;
}
.tribe-card:active { transform: translateY(calc(3 * var(--u))); box-shadow: 0 calc(2 * var(--u)) 0 rgba(0, 0, 0, 0.22); }
.tribe-card.tribe-vuur { background: linear-gradient(135deg, #e8452c, #a9230f); }
.tribe-card.tribe-water { background: linear-gradient(135deg, #1f8fd6, #0c4f8f); }
.tribe-card.tribe-gras { background: linear-gradient(135deg, #3fae3a, #1d6b1f); }
.tribe-card.is-on { box-shadow: 0 0 0 calc(4 * var(--u)) #ffd23f, 0 calc(5 * var(--u)) 0 rgba(0, 0, 0, 0.22); }
.tribe-card .tribe-name { display: flex; align-items: center; gap: calc(8 * var(--u)); font-size: max(14px, calc(30 * var(--u))); font-weight: 900; }
.tribe-card .tribe-faces { display: flex; gap: calc(8 * var(--u)); }
.tribe-card .tribe-faces img { width: calc(64 * var(--u)); height: calc(64 * var(--u)); border-radius: 50%; display: block; }
.tribe-card .tribe-sub { font-size: max(12px, calc(20 * var(--u))); font-weight: 700; opacity: 0.92; }
.res-town .town-album {
  margin-top: calc(12 * var(--u)); padding: calc(8 * var(--u)) calc(18 * var(--u)); border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); color: #ffe38c; font: inherit; font-weight: 800; font-size: max(12px, calc(20 * var(--u))); cursor: pointer;
  box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(255, 210, 63, 0.45);
}
.res-town .town-album:active { transform: translateY(calc(2 * var(--u))); }
.album-sheet .album-count { margin: 0; text-align: center; font-weight: 900; font-size: max(14px, calc(28 * var(--u))); color: var(--ink); }
.album-sheet .album-gold { margin: calc(2 * var(--u)) 0 calc(12 * var(--u)); text-align: center; font-weight: 800; font-size: max(12px, calc(22 * var(--u))); color: #a86a00; }
.album-sheet .album-tribe { margin-top: calc(10 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)) calc(12 * var(--u)); border-radius: calc(20 * var(--u)); color: #fff; }
.album-sheet .album-tribe.tribe-vuur { background: linear-gradient(135deg, #e8452c, #a9230f); }
.album-sheet .album-tribe.tribe-water { background: linear-gradient(135deg, #1f8fd6, #0c4f8f); }
.album-sheet .album-tribe.tribe-gras { background: linear-gradient(135deg, #3fae3a, #1d6b1f); }
.album-sheet .album-tribe-name { display: flex; align-items: center; gap: calc(8 * var(--u)); margin: 0 0 calc(8 * var(--u)); font-size: max(13px, calc(24 * var(--u))); font-weight: 900; }
.album-sheet .album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(8 * var(--u)); }
.album-sheet .album-slot { display: flex; flex-direction: column; align-items: center; gap: calc(3 * var(--u)); text-align: center; }
.album-sheet .album-face { position: relative; width: calc(84 * var(--u)); height: calc(84 * var(--u)); }
.album-sheet .album-face img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.album-sheet .album-slot.is-gold .album-face img { box-shadow: 0 0 0 calc(4 * var(--u)) #ffd23f, 0 0 calc(14 * var(--u)) rgba(255, 210, 63, 0.9); }
.album-sheet .album-slot.is-unknown .album-face img { filter: brightness(0) opacity(0.45); }
.album-sheet .album-slot.is-unknown .album-face b { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(40 * var(--u)); font-weight: 900; color: rgba(255, 255, 255, 0.85); }
.album-sheet .album-name { font-size: max(10px, calc(17 * var(--u))); font-weight: 800; line-height: 1.15; }
.album-sheet .album-slot.is-unknown .album-name { opacity: 0.75; font-weight: 700; }
.album-sheet .album-times { font-size: max(9px, calc(15 * var(--u))); font-weight: 700; opacity: 0.85; }
.album-sheet .album-hint { margin: calc(14 * var(--u)) 0 0; text-align: center; font-weight: 700; color: var(--muted); font-size: max(12px, calc(20 * var(--u))); }
/* (1.16) the joker's mission card: gold, first in the row */
.punish-btn.pk-missie { background: linear-gradient(135deg, #ffd23f, #f39a2b); color: #3b2400; box-shadow: 0 0 0 calc(3 * var(--u)) #fff3b0, 0 calc(4 * var(--u)) 0 rgba(0, 0, 0, 0.25); }
.punish-btn.pk-missie small { color: #4a3000; }
.res-vs-town { font-weight: 900; }
.tribe-card .tribe-tag { margin-left: auto; padding: calc(3 * var(--u)) calc(12 * var(--u)); border-radius: 999px; background: rgba(0, 0, 0, 0.28); font-style: normal; font-size: max(11px, calc(19 * var(--u))); font-weight: 900; white-space: nowrap; }
.tribe-card.is-on .tribe-tag { background: #ffd23f; color: #3b2a00; }
.tribe-sheet .tribe-note { margin: calc(12 * var(--u)) 0 0; text-align: center; font-weight: 700; color: var(--muted); font-size: max(12px, calc(19 * var(--u))); }
.punish-btn.pk-missie b { color: #3b2400; }
.punish-btn.pk-missie .pk-ic { background: linear-gradient(145deg, #fff4c2, #ffb02e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(120, 60, 0, 0.35); }

/* ---------------------------------------------------------------------------------------------- (1.16) Jou dorp
   Steel en Wraak (js/core/dorp.js): the menu's town button, the screen over the town (js/scenes/DorpScene.js: the town
   itself is the game world) and the results card's line. Animations here play once or a few times, never endlessly. */
.dorp-btn {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(14 * var(--u));
  width: 100%; padding: calc(10 * var(--u)) calc(18 * var(--u)) calc(10 * var(--u)) calc(10 * var(--u));
  border: 0; border-radius: calc(28 * var(--u)); cursor: pointer; font: inherit; color: #fff; text-align: left;
  background: linear-gradient(160deg, #3a2c63 0%, #241a45 60%, #170f30 140%);
  box-shadow: 0 calc(6 * var(--u)) 0 #0e0820, inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.dorp-btn:active { transform: translateY(calc(4 * var(--u))); box-shadow: 0 calc(2 * var(--u)) 0 #0e0820, inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.dorp-btn-pic { width: calc(150 * var(--u)); height: calc(84 * var(--u)); border-radius: calc(18 * var(--u)); display: block; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.dorp-btn-ic { display: flex; align-items: center; justify-content: center; font-size: calc(52 * var(--u)); background: linear-gradient(160deg, #6fc3ff, #2b6fd6); }
.dorp-btn-ic.tribe-vuur { background: linear-gradient(160deg, #ffb35c, #d9481f); }
.dorp-btn-ic.tribe-gras { background: linear-gradient(160deg, #9be36a, #2e8b3a); }
.dorp-btn-txt { display: flex; flex-direction: column; gap: calc(4 * var(--u)); min-width: 0; }
.dorp-btn-txt b { font-size: max(15px, calc(32 * var(--u))); font-weight: 900; line-height: 1.05; }
.dorp-btn-sub { font-size: max(12px, calc(21 * var(--u))); font-weight: 800; color: #cfd6ff; white-space: nowrap; }
.dorp-btn-arrow { font-size: calc(48 * var(--u)); font-weight: 900; color: rgba(255, 255, 255, 0.55); }
.dorp-btn-badge, .dorp-btn-go { padding: calc(6 * var(--u)) calc(14 * var(--u)); border-radius: 999px; font-weight: 900; white-space: nowrap; font-size: max(12px, calc(22 * var(--u))); }
.dorp-btn-badge { background: #e0234a; color: #fff; box-shadow: 0 0 calc(16 * var(--u)) rgba(255, 59, 92, 0.7); animation: dorp-ping 0.9s ease-out 3; }
.dorp-btn-go { background: linear-gradient(160deg, #ffd23f, #ff9f1c); color: #3b2400; animation: dorp-ping 0.9s ease-out 3; }
.dorp-btn.has-news { box-shadow: 0 calc(6 * var(--u)) 0 #0e0820, 0 0 0 calc(3 * var(--u)) #ff3b5c; }
.dorp-btn.has-go { box-shadow: 0 calc(6 * var(--u)) 0 #0e0820, 0 0 0 calc(3 * var(--u)) #ffd23f; }
@keyframes dorp-ping { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }

/* the screen over the town: only its two panels take taps (the town between them is the game's: a raid's tap) */
.screen-dorp { z-index: 1; justify-content: space-between; padding-left: calc(var(--sal) + 18 * var(--u)); padding-right: calc(var(--sar) + 18 * var(--u)); overflow: hidden; }
.screen-dorp.on { pointer-events: none; }
.screen-dorp.on .dorp-top, .screen-dorp.on .dorp-bottom:not(.dorp-aim) { pointer-events: auto; }
.screen-dorp > .dorp-mid { flex: 1; }
.dorp-top {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: calc(6 * var(--u)) calc(14 * var(--u)); align-items: start;
  padding: calc(16 * var(--u)) calc(20 * var(--u)) calc(14 * var(--u)); border-radius: calc(32 * var(--u)); color: #fff;
  background: linear-gradient(170deg, rgba(23, 33, 63, 0.92) 0%, rgba(13, 19, 40, 0.86) 100%);
  box-shadow: 0 calc(16 * var(--u)) calc(34 * var(--u)) rgba(5, 10, 30, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.dorp-back {
  grid-row: span 2; width: calc(72 * var(--u)); height: calc(72 * var(--u)); border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  font: 900 calc(54 * var(--u))/1 var(--font); background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.dorp-back span { display: block; transform: translate(calc(-3 * var(--u)), calc(-4 * var(--u))); }
.dorp-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: calc(2 * var(--u)) calc(12 * var(--u)); min-width: 0; }
.dorp-name { grid-column: 1 / -1; font-size: max(11px, calc(20 * var(--u))); font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #ffe38c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dorp-big { display: inline-flex; align-items: baseline; gap: calc(8 * var(--u)); }
.dorp-big .emoji { font-size: calc(40 * var(--u)); }
.dorp-big b { font-size: calc(76 * var(--u)); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; color: #ffd23f; text-shadow: 0 calc(4 * var(--u)) 0 #7a4300, 0 0 calc(24 * var(--u)) rgba(255, 210, 63, 0.45); }
.dorp-big i { font-style: normal; font-weight: 900; font-size: max(12px, calc(22 * var(--u))); color: #e6ebff; }
.dorp-title { justify-self: start; display: inline-flex; align-items: center; gap: calc(6 * var(--u)); padding: calc(4 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: #ffd23f; color: #4a3300; font-weight: 900; font-size: max(12px, calc(22 * var(--u))); }
.dorp-prog { grid-column: 1 / -1; display: block; height: calc(10 * var(--u)); margin-top: calc(6 * var(--u)); border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.dorp-prog i { display: block; height: 100%; width: var(--p, 4%); border-radius: inherit; background: linear-gradient(90deg, #ffb02e, #ffd23f); }
.dorp-next { grid-column: 1 / -1; font-size: max(11px, calc(18 * var(--u))); font-weight: 800; color: #9fb4dd; }
.dorp-chips { grid-column: 2; display: flex; flex-wrap: wrap; gap: calc(8 * var(--u)); align-items: center; }
.dorp-chip { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); padding: calc(5 * var(--u)) calc(12 * var(--u)); border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: max(12px, calc(22 * var(--u))); font-weight: 900; }
.dorp-chip.is-hot { background: linear-gradient(160deg, #ff8a3c, #c8321f); box-shadow: 0 0 calc(14 * var(--u)) rgba(255, 120, 40, 0.55); }
.dorp-chip.is-rank { background: linear-gradient(160deg, #ffe38c, #f2a516); color: #3b2400; }
.dorp-chip.is-gold { background: linear-gradient(160deg, #fff3b0, #e3b21f); color: #3b2400; }
.dorp-help-btn { margin-left: auto; width: calc(48 * var(--u)); height: calc(48 * var(--u)); border: 0; border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, 0.14); color: #fff; font: 900 max(13px, calc(26 * var(--u))) var(--font); }
.dorp-top-vs { grid-template-columns: auto 1fr; }
.dorp-vs-title { align-self: center; font-size: max(15px, calc(34 * var(--u))); font-weight: 900; line-height: 1.1; }
.dorp-vs { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: calc(10 * var(--u)); }
.dorp-vs-side { display: flex; flex-direction: column; align-items: center; gap: calc(2 * var(--u)); min-width: 0; }
.dorp-vs-side small { font-size: max(11px, calc(19 * var(--u))); font-weight: 900; color: #cfd6ff; text-transform: uppercase; letter-spacing: 0.05em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.dorp-vs-n { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); }
.dorp-vs-n b { font-size: calc(60 * var(--u)); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; color: #ffd23f; text-shadow: 0 calc(3 * var(--u)) 0 #7a4300; }
.dorp-vs-mid { font-size: calc(46 * var(--u)); font-weight: 900; color: #ff8a5c; }
.dorp-n-me.bump, .dorp-n-them.bump { animation: dorp-bump 0.32s ease-out; }
@keyframes dorp-bump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

.dorp-bottom {
  display: flex; flex-direction: column; gap: calc(12 * var(--u)); padding: calc(16 * var(--u)) calc(16 * var(--u)) calc(18 * var(--u)); border-radius: calc(32 * var(--u)); color: #fff;
  background: linear-gradient(180deg, rgba(23, 33, 63, 0.9) 0%, rgba(13, 19, 40, 0.94) 100%);
  box-shadow: 0 calc(-10 * var(--u)) calc(30 * var(--u)) rgba(5, 10, 30, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.dorp-bottom.is-empty { visibility: hidden; }
.dorp-bure-head { display: flex; align-items: baseline; justify-content: space-between; gap: calc(10 * var(--u)); padding: 0 calc(6 * var(--u)); }
.dorp-bure-head b { font-size: max(15px, calc(30 * var(--u))); font-weight: 900; }
.dorp-bure-head span { font-size: max(11px, calc(19 * var(--u))); font-weight: 800; color: #9fb4dd; text-align: right; }
.dorp-cards { display: grid; grid-auto-flow: column; grid-auto-columns: calc(196 * var(--u)); gap: calc(12 * var(--u)); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: calc(4 * var(--u)) calc(2 * var(--u)) calc(8 * var(--u)); touch-action: pan-x; }
.dorp-cards::-webkit-scrollbar { display: none; }
.dorp-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--u)); padding: calc(14 * var(--u)) calc(10 * var(--u)) calc(12 * var(--u));
  border: 0; border-radius: calc(26 * var(--u)); color: #fff; font: inherit; text-align: center;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.dorp-card.is-wraak { background: linear-gradient(170deg, rgba(255, 70, 100, 0.4), rgba(255, 150, 40, 0.16)); box-shadow: inset 0 0 0 calc(3 * var(--u)) rgba(255, 90, 110, 0.9), 0 0 calc(20 * var(--u)) rgba(255, 60, 90, 0.45); }
.dorp-card-disc {
  position: relative; display: flex; align-items: center; justify-content: center; width: calc(84 * var(--u)); height: calc(84 * var(--u)); border-radius: 50%;
  font-size: calc(44 * var(--u)); box-shadow: 0 calc(5 * var(--u)) 0 rgba(0, 0, 0, 0.25), inset 0 calc(3 * var(--u)) 0 rgba(255, 255, 255, 0.35);
  background: linear-gradient(160deg, #6fc3ff, #2b6fd6);
}
.dorp-card.tribe-vuur .dorp-card-disc { background: linear-gradient(160deg, #ffb35c, #d9481f); }
.dorp-card.tribe-gras .dorp-card-disc { background: linear-gradient(160deg, #9be36a, #2e8b3a); }
.dorp-card-invite .dorp-card-disc { background: linear-gradient(160deg, #3ddc84, #128c4a); color: #fff; font-size: calc(56 * var(--u)); }
.dorp-card-medal { position: absolute; right: calc(-8 * var(--u)); top: calc(-8 * var(--u)); font-style: normal; font-size: calc(34 * var(--u)); }
.dorp-card-name { max-width: 100%; font-size: max(13px, calc(26 * var(--u))); font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dorp-card-n { display: inline-flex; align-items: center; gap: calc(4 * var(--u)); font-size: max(12px, calc(21 * var(--u))); font-weight: 800; color: #cfd6ff; }
.dorp-card-invite .dorp-card-n { font-size: max(11px, calc(17 * var(--u))); line-height: 1.2; }
.dorp-card-act {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 100%; min-height: calc(70 * var(--u)); margin-top: auto; padding: calc(8 * var(--u));
  border: 0; border-radius: calc(20 * var(--u)); cursor: pointer; font: inherit; color: #fff;
  background: linear-gradient(160deg, #ff8a3c, #e8452c 60%, #a9230f 150%); box-shadow: 0 calc(5 * var(--u)) 0 #7a1a0c;
}
.dorp-card-act b { font-size: max(13px, calc(25 * var(--u))); font-weight: 900; white-space: nowrap; }
.dorp-card-act small { font-size: max(10px, calc(16 * var(--u))); font-weight: 800; opacity: 0.9; }
.dorp-card-act:active { transform: translateY(calc(3 * var(--u))); box-shadow: 0 calc(2 * var(--u)) 0 #7a1a0c; }
.dorp-card-act:disabled { filter: grayscale(1); opacity: 0.45; cursor: default; }
.dorp-card-act.act-wraak { background: linear-gradient(160deg, #ff5f7e, #e01e48 60%, #8f0b29 150%); box-shadow: 0 calc(5 * var(--u)) 0 #5e0719, 0 0 calc(18 * var(--u)) rgba(255, 60, 100, 0.6); animation: dorp-ping 0.9s ease-out 3; }
.dorp-card-act.act-wa { flex-direction: row; gap: calc(8 * var(--u)); background: linear-gradient(160deg, #25d366, #128c4a 70%); box-shadow: 0 calc(5 * var(--u)) 0 #0c6434; }
.dorp-play { min-height: calc(86 * var(--u)); }
.dorp-help { margin: 0; padding: calc(12 * var(--u)) calc(16 * var(--u)); list-style: none; display: grid; gap: calc(6 * var(--u)); border-radius: calc(20 * var(--u)); background: rgba(255, 255, 255, 0.07); }
.dorp-help li { font-size: max(12px, calc(20 * var(--u))); font-weight: 700; color: #dfe6ff; }
.dorp-offline { margin: 0; text-align: center; font-weight: 800; color: #ffb4b4; font-size: max(12px, calc(20 * var(--u))); }
.dorp-aim { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.dorp-aim-hint {
  display: flex; align-items: center; justify-content: center; gap: calc(10 * var(--u)); margin: 0 auto; padding: calc(14 * var(--u)) calc(24 * var(--u)); border-radius: 999px;
  background: rgba(13, 19, 40, 0.86); font-weight: 900; font-size: max(14px, calc(28 * var(--u))); animation: dorp-ping 0.9s ease-out 2;
}
.dorp-hit { margin: 0; text-align: center; font-weight: 900; font-size: max(16px, calc(36 * var(--u))); }
.dorp-hit.hit-P { color: #ffd23f; text-shadow: 0 0 calc(18 * var(--u)) rgba(255, 210, 63, 0.7); }
.dorp-hit.hit-S { color: #ffb48a; }
.dorp-result-line { margin: 0; text-align: center; font-weight: 800; font-size: max(13px, calc(25 * var(--u))); color: #e3e7ff; }
.dorp-jackpot { margin: 0; text-align: center; font-weight: 900; font-size: max(15px, calc(32 * var(--u))); color: #fff3b0; text-shadow: 0 0 calc(20 * var(--u)) rgba(255, 220, 90, 0.8); animation: rank-up 0.7s ease-out both; }
.dorp-result-btns { display: grid; gap: calc(12 * var(--u)); }
.dorp-result-btns .btn, .dorp-newsdone .btn { min-height: calc(90 * var(--u)); }
.dorp-news { margin: 0; padding: 0; list-style: none; display: grid; gap: calc(6 * var(--u)); }
.dorp-news li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(10 * var(--u)); padding: calc(8 * var(--u)) calc(12 * var(--u)); border-radius: calc(16 * var(--u)); background: rgba(255, 255, 255, 0.08); font-weight: 800; font-size: max(12px, calc(21 * var(--u))); }
.dorp-news li small { color: #9fb4dd; font-weight: 700; white-space: nowrap; }
.dorp-news li.is-blocked { color: #9fe3b0; }
.dorp-wraak { animation: dorp-ping 0.9s ease-out 0.4s 3; box-shadow: 0 calc(6 * var(--u)) 0 var(--klei-d), 0 0 calc(26 * var(--u)) rgba(255, 70, 90, 0.65); }

/* the results card: what this tower sent to the town */
.res-dorp { display: flex; flex-direction: column; align-items: center; gap: calc(8 * var(--u)); margin-top: calc(10 * var(--u)); }
.res-dorp-line { margin: 0; text-align: center; font-weight: 900; color: #ffe38c; font-size: max(13px, calc(23 * var(--u))); }
.res-dorp-go.is-go { --bg: #ffd23f; --bg-l: #ffe38c; --bg-d: #c99a00; --fg: #3b2400; }
/* (1.16) Jou dorp: Robot Rikus's card, the landmarks' button and shop */
.dorp-card.is-bot .dorp-card-disc { background: linear-gradient(160deg, #c9d2e3, #6b7a99); }
.dorp-row-btns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: calc(12 * var(--u)); }
.dorp-row-btns .btn { min-height: calc(86 * var(--u)); font-size: max(14px, calc(30 * var(--u))); }
.dorp-marks-btn { --bg: #f2a516; --bg-l: #ffd23f; --bg-d: #b86d12; --fg: #3b2400; text-shadow: none; }
.dorp-marks-sub { margin: 0; padding: 0 calc(6 * var(--u)); font-size: max(11px, calc(19 * var(--u))); font-weight: 800; color: #9fb4dd; }
.dorp-coins { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); padding: calc(4 * var(--u)) calc(12 * var(--u)); border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #ffe38c; font-weight: 900; font-size: max(13px, calc(24 * var(--u))); }
.dorp-mark-pic { display: flex; align-items: center; justify-content: center; width: calc(96 * var(--u)); height: calc(96 * var(--u)); border-radius: calc(24 * var(--u)); font-size: calc(62 * var(--u)); background: radial-gradient(circle at 50% 40%, #ffe9a8 0%, #f2a516 70%, #b86d12 100%); box-shadow: 0 calc(5 * var(--u)) 0 rgba(0, 0, 0, 0.25), inset 0 calc(3 * var(--u)) 0 rgba(255, 255, 255, 0.4); }
.dorp-mark-pic.mark-sea { background: radial-gradient(circle at 50% 40%, #bde8ff 0%, #2f9bff 70%, #1f5fb0 100%); }
.dorp-mark.is-own { box-shadow: inset 0 0 0 calc(3 * var(--u)) #ffd23f, 0 0 calc(18 * var(--u)) rgba(255, 210, 63, 0.35); }
.dorp-card-act.act-buy { background: linear-gradient(160deg, #ffd23f, #f2a516 60%, #b86d12 150%); box-shadow: 0 calc(5 * var(--u)) 0 #7a4300; color: #3b2400; }
.dorp-card-act.act-buy .act-price { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); }
.dorp-card-act.act-buy.is-short { filter: grayscale(0.6); opacity: 0.6; }
.dorp-card-act.act-own { background: rgba(255, 210, 63, 0.18); box-shadow: none; color: #ffe38c; }
.dorp-back-town { min-height: calc(80 * var(--u)); }

/* ---------------------------------------------------------------------------------------------- (1.17) Vrugteslag
   The fruit battle's screen over js/scenes/SlagScene.js: the castles at the top, the fruit tray at the bottom. Three looks
   for the owner to choose from: slag-a (the island by day), slag-b (sunset), slag-c (candy). */
.screen-slag { z-index: 1; justify-content: space-between; padding-left: calc(var(--sal) + 16 * var(--u)); padding-right: calc(var(--sar) + 16 * var(--u)); overflow: hidden;
  --slag-panel: linear-gradient(170deg, rgba(23, 33, 63, 0.92), rgba(13, 19, 40, 0.88)); --slag-me: #3ddc84; --slag-them: #ff5a5f; --slag-accent: #ffd23f; --slag-ink: #fff; }
.screen-slag.on { pointer-events: none; }
.screen-slag.on .slag-head, .screen-slag.on .slag-foot { pointer-events: auto; }
.screen-slag > .slag-mid { flex: 1; }
.slag-b { --slag-panel: linear-gradient(170deg, rgba(58, 16, 54, 0.92), rgba(28, 8, 30, 0.9)); --slag-me: #ffd23f; --slag-them: #ff4f9a; --slag-accent: #ff9f1c; }
.slag-c { --slag-panel: linear-gradient(170deg, rgba(255, 240, 250, 0.95), rgba(255, 222, 240, 0.92)); --slag-me: #2ec4b6; --slag-them: #ff6b9d; --slag-accent: #ff6b9d; --slag-ink: #4a2245; }
.slag-head { display: flex; flex-direction: column; gap: calc(10 * var(--u)); }
.slag-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: calc(10 * var(--u)); padding: calc(14 * var(--u)) calc(18 * var(--u)); border-radius: calc(30 * var(--u)); color: var(--slag-ink); background: var(--slag-panel); box-shadow: 0 calc(14 * var(--u)) calc(30 * var(--u)) rgba(5, 10, 30, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.slag-side { display: flex; flex-direction: column; gap: calc(4 * var(--u)); min-width: 0; }
.slag-side.them { align-items: flex-end; text-align: right; }
.slag-name { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); font-size: max(12px, calc(22 * var(--u))); font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.slag-people { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); }
.slag-people b { font-size: calc(54 * var(--u)); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; color: var(--slag-accent); text-shadow: 0 calc(3 * var(--u)) 0 rgba(0, 0, 0, 0.35); }
.slag-bar { display: block; width: 100%; height: calc(12 * var(--u)); border-radius: 999px; background: rgba(127, 127, 127, 0.25); overflow: hidden; }
.slag-bar i { display: block; height: 100%; width: var(--p, 100%); border-radius: inherit; background: var(--slag-me); box-shadow: 0 0 calc(10 * var(--u)) var(--slag-me); }
.slag-side.them .slag-bar i { background: var(--slag-them); box-shadow: 0 0 calc(10 * var(--u)) var(--slag-them); margin-left: auto; }
.slag-vs b { display: flex; align-items: center; justify-content: center; width: calc(70 * var(--u)); height: calc(70 * var(--u)); border-radius: 50%; font-size: calc(30 * var(--u)); font-weight: 900; color: #3b2400; background: radial-gradient(circle at 40% 35%, #fff3b0, var(--slag-accent) 70%); box-shadow: 0 calc(5 * var(--u)) 0 rgba(0, 0, 0, 0.3); }
.slag-turn { display: flex; justify-content: center; gap: calc(10 * var(--u)); flex-wrap: wrap; }
.slag-turn-chip, .slag-bonus { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(8 * var(--u)) calc(20 * var(--u)); border-radius: 999px; font-weight: 900; font-size: max(13px, calc(26 * var(--u))); }
.slag-turn-chip { color: #3b2400; background: linear-gradient(160deg, #ffe38c, var(--slag-accent)); box-shadow: 0 calc(5 * var(--u)) 0 rgba(0, 0, 0, 0.25); }
.slag-bonus { color: #fff; background: linear-gradient(160deg, #a78bfa, #6d28d9); box-shadow: 0 calc(5 * var(--u)) 0 rgba(0, 0, 0, 0.25), 0 0 calc(16 * var(--u)) rgba(167, 139, 250, 0.7); }
.slag-foot { display: flex; flex-direction: column; gap: calc(10 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)) calc(16 * var(--u)); border-radius: calc(30 * var(--u)); color: var(--slag-ink); background: var(--slag-panel); box-shadow: 0 calc(-10 * var(--u)) calc(30 * var(--u)) rgba(5, 10, 30, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.slag-defs { display: flex; align-items: center; gap: calc(8 * var(--u)); flex-wrap: wrap; justify-content: center; }
.slag-defs-label { font-size: max(11px, calc(18 * var(--u))); font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.8; }
.slag-def { display: inline-flex; align-items: center; gap: calc(4 * var(--u)); padding: calc(3 * var(--u)) calc(10 * var(--u)); border-radius: 999px; background: rgba(127, 127, 127, 0.18); font-weight: 900; font-size: max(11px, calc(19 * var(--u))); }
.slag-tray { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(10 * var(--u)); }
.slag-fruit { position: relative; display: flex; flex-direction: column; align-items: center; gap: calc(2 * var(--u)); padding: calc(10 * var(--u)) calc(4 * var(--u)) calc(8 * var(--u)); border: 0; border-radius: calc(24 * var(--u)); cursor: pointer; font: inherit; color: var(--slag-ink);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 calc(5 * var(--u)) 0 rgba(0, 0, 0, 0.25); }
.slag-c .slag-fruit { background: linear-gradient(170deg, #ffffff, #ffe3f1); }
.slag-fruit.is-on { background: linear-gradient(170deg, #fff3b0, var(--slag-accent)); color: #3b2400; box-shadow: 0 0 0 calc(4 * var(--u)) #fff, 0 0 calc(24 * var(--u)) var(--slag-accent), 0 calc(5 * var(--u)) 0 rgba(0, 0, 0, 0.25); transform: translateY(calc(-6 * var(--u))); }
.slag-fruit.is-out { filter: grayscale(1); opacity: 0.45; }
.slag-fruit-pic { font-size: calc(62 * var(--u)); line-height: 1.05; filter: drop-shadow(0 calc(4 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, 0.3)); }
.slag-fruit-n { position: absolute; top: calc(6 * var(--u)); right: calc(8 * var(--u)); padding: 0 calc(8 * var(--u)); border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: max(11px, calc(19 * var(--u))); font-weight: 900; }
.slag-fruit-name { font-size: max(11px, calc(18 * var(--u))); font-weight: 900; }
/* (1.17) Vrugteslag: the steps (setup, chips, hints, Herbou, the mini-games, the end) and the menu's button */
.slag-turn-chip.is-them { background: linear-gradient(160deg, #ffc2dd, var(--slag-them)); color: #3a0820; }
.slag-chip { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); padding: calc(6 * var(--u)) calc(14 * var(--u)); border-radius: 999px; background: rgba(20, 8, 30, 0.72); color: #fff; font-weight: 900; font-size: max(12px, calc(22 * var(--u))); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.slag-wind b { letter-spacing: 0.04em; }
.slag-fire { background: linear-gradient(160deg, #ffb347, #e8452c); }
.slag-hint { margin: 0; text-align: center; font-weight: 800; font-size: max(12px, calc(22 * var(--u))); line-height: 1.3; }
.slag-foot.is-empty { visibility: hidden; }
.slag-foot.slag-aim { position: relative; padding-right: calc(80 * var(--u)); }
.screen-slag.on .slag-foot.slag-aim .slag-cancel { pointer-events: auto; }
.slag-cancel { position: absolute; right: calc(14 * var(--u)); top: 50%; transform: translateY(-50%); width: calc(56 * var(--u)); height: calc(56 * var(--u)); border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; font: 900 calc(28 * var(--u)) var(--font); cursor: pointer; }
.slag-defpick { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(8 * var(--u)); }
.slag-defbtn { display: flex; flex-direction: column; align-items: center; gap: calc(2 * var(--u)); padding: calc(10 * var(--u)) calc(4 * var(--u)); border: 0; border-radius: calc(22 * var(--u)); cursor: pointer; font: inherit; color: var(--slag-ink); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.slag-defbtn.is-on { background: linear-gradient(170deg, #fff3b0, var(--slag-accent)); color: #3b2400; box-shadow: 0 0 0 calc(3 * var(--u)) #fff, 0 0 calc(18 * var(--u)) var(--slag-accent); }
.slag-defbtn-ic { font-size: calc(48 * var(--u)); line-height: 1.1; }
.slag-defbtn b { font-size: max(11px, calc(19 * var(--u))); font-weight: 900; white-space: nowrap; }
.slag-defbtn small { font-size: max(9px, calc(15 * var(--u))); font-weight: 800; opacity: 0.85; text-align: center; line-height: 1.2; }
.slag-row-btns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: calc(12 * var(--u)); }
.slag-row-btns .btn { min-height: calc(84 * var(--u)); font-size: max(14px, calc(30 * var(--u))); }
.slag-herbou { --bg: #2f74cf; --bg-l: #86b9f7; --bg-d: #2563b0; min-height: calc(76 * var(--u)); font-size: max(13px, calc(26 * var(--u))); }
/* the mini-games */
.screen-slag.on .slag-mini-wrap { pointer-events: auto; display: flex; align-items: center; justify-content: center; }
.slag-mini { position: relative; width: 100%; max-width: calc(560 * var(--u)); padding: calc(18 * var(--u)); border-radius: calc(30 * var(--u)); color: #fff; background: var(--slag-panel); box-shadow: 0 calc(20 * var(--u)) calc(40 * var(--u)) rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.14); animation: rank-up 0.45s ease-out both; }
.slag-mini-head { display: flex; justify-content: space-between; align-items: center; font-size: max(15px, calc(32 * var(--u))); font-weight: 900; }
.slag-mini-score { font-size: max(15px, calc(32 * var(--u))); color: var(--slag-accent); }
.slag-mini-timer { display: block; height: calc(10 * var(--u)); margin: calc(10 * var(--u)) 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.slag-mini-time { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ffd23f, #ff9f1c); transform-origin: left; animation: slag-time 6s linear forwards; }
@keyframes slag-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.slag-mini.is-won { box-shadow: 0 0 0 calc(4 * var(--u)) #ffd23f, 0 0 calc(40 * var(--u)) rgba(255, 210, 63, 0.7); }
.slag-mini-end { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; border-radius: inherit; background: rgba(20, 8, 30, 0.82); font-size: calc(54 * var(--u)); font-weight: 900; color: #ffd23f; animation: rank-up 0.5s ease-out both; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(12 * var(--u)); }
.mini-win { aspect-ratio: 1; border: 0; border-radius: calc(20 * var(--u)) calc(20 * var(--u)) calc(10 * var(--u)) calc(10 * var(--u)); background: radial-gradient(circle at 50% 30%, #3a2a55, #1a1030); box-shadow: inset 0 0 0 calc(5 * var(--u)) #a8672e; cursor: pointer; overflow: hidden; }
.mini-win .emoji { display: block; font-size: calc(70 * var(--u)); transform: translateY(110%); transition: transform 0.12s ease-out; }
.mini-win.has-aap .emoji { transform: none; }
.mini-win.hit { background: radial-gradient(circle at 50% 30%, #ffe38c, #f2a516); }
.mini-glass { position: relative; width: calc(170 * var(--u)); height: calc(320 * var(--u)); margin: 0 auto; border: calc(6 * var(--u)) solid rgba(255, 255, 255, 0.85); border-top: 0; border-radius: 0 0 calc(30 * var(--u)) calc(30 * var(--u)); overflow: hidden; touch-action: none; cursor: pointer; background: rgba(255, 255, 255, 0.08); }
.mini-juice { position: absolute; left: 0; right: 0; bottom: 0; height: var(--lv, 0%); background: linear-gradient(0deg, #ff7a1a, #ffb347); }
.mini-band { position: absolute; left: 0; right: 0; bottom: 72%; height: 14%; border-top: 3px dashed #ffd23f; border-bottom: 3px dashed #ffd23f; background: rgba(255, 210, 63, 0.18); }
.mini-field { position: relative; height: calc(360 * var(--u)); border-radius: calc(20 * var(--u)); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14)); overflow: hidden; touch-action: none; cursor: pointer; }
.mini-bucket { position: absolute; bottom: calc(6 * var(--u)); transform: translateX(-50%); font-size: calc(76 * var(--u)); pointer-events: none; }
.mini-seed { position: absolute; width: calc(18 * var(--u)); height: calc(24 * var(--u)); margin-left: calc(-9 * var(--u)); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 40% 35%, #6b4a2b, #2b1a0b); pointer-events: none; }
/* the end */
.screen-slag.on .slag-end-wrap { pointer-events: auto; display: flex; align-items: center; justify-content: center; }
.slag-end { width: 100%; max-width: calc(600 * var(--u)); padding: calc(26 * var(--u)) calc(22 * var(--u)); border-radius: calc(34 * var(--u)); text-align: center; color: #fff; background: var(--slag-panel); box-shadow: 0 calc(20 * var(--u)) calc(50 * var(--u)) rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.16); animation: rank-up 0.55s ease-out both; }
.slag-end.is-won { box-shadow: 0 0 0 calc(4 * var(--u)) #ffd23f, 0 0 calc(50 * var(--u)) rgba(255, 210, 63, 0.6); }
.slag-end-icon { margin: 0; font-size: calc(110 * var(--u)); line-height: 1; }
.slag-end h2 { margin: calc(8 * var(--u)) 0 0; font-size: calc(64 * var(--u)); font-weight: 900; color: var(--slag-accent); text-shadow: 0 calc(4 * var(--u)) 0 rgba(0, 0, 0, 0.35); }
.slag-end-sub { margin: calc(8 * var(--u)) 0 0; font-weight: 800; font-size: max(13px, calc(24 * var(--u))); opacity: 0.9; }
.slag-end-rewards { display: flex; justify-content: center; gap: calc(14 * var(--u)); margin: calc(18 * var(--u)) 0; flex-wrap: wrap; }
.slag-end-rewards span { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(8 * var(--u)) calc(18 * var(--u)); border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: max(15px, calc(32 * var(--u))); font-weight: 900; }
/* the menu's button */
.slag-menu-btn {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(14 * var(--u)); width: 100%;
  padding: calc(12 * var(--u)) calc(20 * var(--u)) calc(12 * var(--u)) calc(14 * var(--u)); border: 0; border-radius: calc(28 * var(--u)); cursor: pointer; font: inherit; color: #fff; text-align: left;
  background: linear-gradient(160deg, #ff8a5c 0%, #c8321f 55%, #5b1f45 140%); box-shadow: 0 calc(6 * var(--u)) 0 #3a0e22, inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.slag-menu-btn:active { transform: translateY(calc(4 * var(--u))); box-shadow: 0 calc(2 * var(--u)) 0 #3a0e22; }
.slag-menu-ic { display: flex; align-items: center; justify-content: center; width: calc(84 * var(--u)); height: calc(84 * var(--u)); border-radius: calc(22 * var(--u)); background: rgba(255, 255, 255, 0.16); font-size: calc(56 * var(--u)); }
.slag-menu-txt { display: flex; flex-direction: column; gap: calc(4 * var(--u)); min-width: 0; }
.slag-menu-txt b { font-size: max(15px, calc(32 * var(--u))); font-weight: 900; }
.slag-menu-txt small { font-size: max(12px, calc(21 * var(--u))); font-weight: 800; color: #ffe3d0; white-space: nowrap; }
.slag-menu-go { font-size: calc(44 * var(--u)); }
/* (1.17) Die Kasteelreeks: the menu's button (its own page, kasteel.html): stone, night and gold like the castle */
.kasteel-menu-btn {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: calc(14 * var(--u)); width: 100%;
  padding: calc(12 * var(--u)) calc(20 * var(--u)) calc(12 * var(--u)) calc(14 * var(--u)); border: 0; border-radius: calc(28 * var(--u)); cursor: pointer; font: inherit; color: #fff; text-align: left;
  background: linear-gradient(160deg, #8a6bc0 0%, #432a74 50%, #1c1036 120%); box-shadow: 0 calc(6 * var(--u)) 0 #140a28, inset 0 0 0 1px rgba(255, 207, 107, 0.45);
}
.kasteel-menu-btn:active { transform: translateY(calc(4 * var(--u))); box-shadow: 0 calc(2 * var(--u)) 0 #140a28, inset 0 0 0 1px rgba(255, 207, 107, 0.45); }
.kasteel-menu-ic { display: flex; align-items: center; justify-content: center; width: calc(84 * var(--u)); height: calc(84 * var(--u)); border-radius: calc(22 * var(--u)); background: rgba(255, 207, 107, 0.18); font-size: calc(56 * var(--u)); }
.kasteel-menu-txt { display: flex; flex-direction: column; gap: calc(4 * var(--u)); min-width: 0; }
.kasteel-menu-txt b { font-size: max(15px, calc(32 * var(--u))); font-weight: 900; }
.kasteel-menu-txt small { font-size: max(12px, calc(21 * var(--u))); font-weight: 800; color: #ffe39a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kasteel-menu-go { font-size: calc(44 * var(--u)); color: #ffcf6b; }
.kasteel-new { position: static; align-self: center; }
/* (1.18 3D) Blokbotsing's button: the sea at sunset */
/* (1.19 3D) Glybaan's button: the slide's deep blue with a turquoise rush */
.glybaan-menu-btn { background: linear-gradient(160deg, #20a6c8 0%, #1f4f9c 50%, #1c1036 120%); }
.botsing-menu-btn { background: linear-gradient(160deg, #2f74b8 0%, #26437e 48%, #1c1036 120%); }   /* (its pale gold line at 3.9:1, the title 4.9:1) */
/* (1.17) Vrugteslag: the lobby (Rikus, a friend's room, a code) */
.slag-lobby .slag-lobby-btns, .slag-lobby .slag-hosting { display: grid; gap: calc(12 * var(--u)); margin-top: calc(16 * var(--u)); }
.slag-lobby .btn { min-height: calc(86 * var(--u)); font-size: max(14px, calc(30 * var(--u))); }
.slag-join-row { display: grid; grid-template-columns: 1fr auto; gap: calc(10 * var(--u)); }
.slag-code-in { min-width: 0; padding: 0 calc(18 * var(--u)); border: 0; border-radius: calc(22 * var(--u)); font: 900 max(16px, calc(34 * var(--u))) var(--font); letter-spacing: 0.18em; text-transform: uppercase; text-align: center; color: #3b2400; background: #fff3d6; }
.slag-code-label { margin: 0; font-weight: 800; opacity: 0.85; }
.slag-code { margin: 0; font-size: calc(76 * var(--u)); font-weight: 900; letter-spacing: 0.16em; color: var(--slag-accent); text-shadow: 0 calc(4 * var(--u)) 0 rgba(0, 0, 0, 0.35); }
.slag-waiting { display: flex; align-items: center; justify-content: center; gap: calc(10 * var(--u)); margin: 0; font-weight: 800; opacity: 0.9; }

/* ---------------------------------------------------------------------------------------------- (1.20) Ons dorp
   The menu's island button (the town button's shape: a river-green card), the Daily results' ride card, the Weektoring
   turn's sheet. Animations play a few times, never endlessly. */
.span-btn { background: linear-gradient(160deg, #1f6f6c 0%, #164f55 60%, #0d3439 140%); box-shadow: 0 calc(6 * var(--u)) 0 #082427, inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.span-btn:active { box-shadow: 0 calc(2 * var(--u)) 0 #082427, inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.span-btn.has-go { box-shadow: 0 calc(6 * var(--u)) 0 #082427, 0 0 0 calc(3 * var(--u)) #ffd23f; }
.span-btn .dorp-btn-sub { color: #c9efe7; }
.week-sheet .week-warn { color: #8a4b00; font-weight: 800; }
.span-btn .dorp-btn-txt { min-width: 0; }
.span-btn.has-news .dorp-btn-sub { color: #ffe08a; overflow: hidden; text-overflow: ellipsis; }
.span-btn.has-news .span-btn-ic { position: relative; }
.span-btn.has-news .span-btn-ic::after { content: ''; position: absolute; top: -2px; right: -2px; width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: 50%; background: #ff5a3a; box-shadow: 0 0 0 2px #0d3439; }
.span-btn-ic { background: linear-gradient(160deg, #7fd8f0, #2a8fb0); }
.res-rivier { display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--u)); margin: calc(14 * var(--u)) 0 calc(4 * var(--u));
  padding: calc(16 * var(--u)) calc(18 * var(--u)) calc(18 * var(--u)); border-radius: calc(24 * var(--u));
  background: linear-gradient(170deg, #1f7a7a, #145457); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); color: #fff; }
.res-rivier-faces { display: flex; justify-content: center; flex-wrap: wrap; gap: calc(4 * var(--u)); }
.res-rivier-faces img { width: calc(52 * var(--u)); height: calc(52 * var(--u)); border-radius: 50%; box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, 0.3); }
.res-rivier-title { margin: calc(4 * var(--u)) 0 0; font-weight: 900; font-size: max(16px, calc(34 * var(--u))); text-align: center; }
.res-rivier-sub { margin: 0 0 calc(6 * var(--u)); font-weight: 800; color: #d4f3ec; text-align: center; font-size: max(13px, calc(23 * var(--u))); }
.res-rivier-go { width: 100%; animation: dorp-ping 0.9s ease-out 2; }
.week-sheet .sheet-body { display: flex; flex-direction: column; gap: calc(10 * var(--u)); }
.week-gain { margin: 0; text-align: center; font-weight: 900; font-size: max(17px, calc(36 * var(--u))); color: #1d7a4a; }
.week-line { margin: 0; text-align: center; font-weight: 800; color: var(--ink-soft); font-size: max(13px, calc(24 * var(--u))); }

/* (1.20) Ons dorp and Afgly side by side on the menu: one row at the island button's height (small phones still fit) */
.span-row { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: calc(14 * var(--u)); }
.span-row .dorp-btn { grid-template-columns: auto minmax(0, 1fr); gap: calc(12 * var(--u)); padding-right: calc(12 * var(--u)); min-height: calc(104 * var(--u)); }
.span-row .dorp-btn-pic { width: calc(92 * var(--u)); height: calc(84 * var(--u)); font-size: calc(46 * var(--u)); }
.span-row .dorp-btn-arrow { display: none; }
.span-row .dorp-btn-sub { overflow: hidden; text-overflow: ellipsis; }
.span-row .dorp-btn-go { position: absolute; top: calc(-14 * var(--u)); right: calc(10 * var(--u)); font-size: max(11px, calc(20 * var(--u))); padding: calc(4 * var(--u)) calc(12 * var(--u)); }
/* (1.23) a deeper start, so the small white line reads (4.7:1 at the lightest corner; was 2.5:1) */
.rivier-menu-btn { background: linear-gradient(160deg, #1c78b8 0%, #17529a 55%, #0d2e5e 130%); box-shadow: 0 calc(6 * var(--u)) 0 #0a2448, inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.rivier-menu-btn:active { box-shadow: 0 calc(2 * var(--u)) 0 #0a2448, inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.rivier-menu-btn .kasteel-menu-ic { background: rgba(255, 255, 255, 0.16); }
.rivier-menu-btn .kasteel-menu-txt small { color: #ffffff; }
.span-row .rivier-menu-btn { grid-template-columns: auto minmax(0, 1fr); gap: calc(10 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)) calc(10 * var(--u)) calc(10 * var(--u)); min-height: calc(104 * var(--u)); }
.span-row .rivier-menu-btn .kasteel-menu-ic { width: calc(66 * var(--u)); height: calc(66 * var(--u)); font-size: calc(40 * var(--u)); }
.span-row .rivier-menu-btn .kasteel-menu-txt small { font-size: max(11px, calc(20 * var(--u))); }
.span-row .rivier-menu-btn .kasteel-new { position: absolute; top: calc(-14 * var(--u)); right: calc(10 * var(--u)); }
/* (1.21) Saam gly beside the River run: purple, so the two read apart at a glance */
/* (1.23) deeper too: the small white line 4.6:1 (was 2.75:1) */
.saam-menu-btn { background: linear-gradient(160deg, #8459e4 0%, #5f37bd 55%, #301672 130%); box-shadow: 0 calc(6 * var(--u)) 0 #24104f, inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.saam-menu-btn:active { box-shadow: 0 calc(2 * var(--u)) 0 #24104f, inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.saam-menu-btn .kasteel-menu-txt small { color: #ffffff; }
.saam-sheet .slag-waiting { justify-content: center; gap: calc(14 * var(--u)); }
/* (2.0, the revenge loop) the friends you race, in the Saam gly sheet: one row each, the button the same width in every row */
.saam-sheet .vr-list { display: grid; gap: max(6px, calc(10 * var(--u))); margin-top: max(4px, calc(8 * var(--u))); }
.saam-sheet .vr-head { margin: 0; text-align: center; font-size: max(14px, calc(26 * var(--u))); font-weight: 900; color: var(--ink); }
.saam-sheet .vr-row { display: grid; grid-template-columns: minmax(0, 1fr) max(96px, calc(190 * var(--u))); align-items: center; gap: max(8px, calc(14 * var(--u))); padding: max(6px, calc(10 * var(--u))) max(8px, calc(14 * var(--u))); border-radius: max(12px, calc(20 * var(--u))); background: rgba(0,0,0,.05); }
.saam-sheet .vr-who { display: grid; gap: 2px; min-width: 0; text-align: left; }
.saam-sheet .vr-who b { font-size: max(14px, calc(26 * var(--u))); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saam-sheet .vr-who small { font-size: max(12px, calc(20 * var(--u))); font-weight: 800; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saam-sheet .vr-them .vr-who small { color: #c0392b; }
.saam-sheet .vr-me .vr-who small { color: #1e8f4e; }
.saam-sheet .vr-go { width: 100%; min-height: max(40px, calc(72 * var(--u))); margin: 0; padding: 0 6px; font-size: max(13px, calc(24 * var(--u))); white-space: nowrap; }
.saam-sheet .saam-link { margin: 0; text-align: center; font-size: max(12px, calc(20 * var(--u))); color: var(--ink-soft); word-break: break-all; user-select: all; -webkit-user-select: all; }
/* (1.20) the smallest phones (360x640, the compact layout): the menu's rows a little closer and its logo a little higher,
   so the bottom row always shows in full */
#ui.compact .screen-menu .menu-stack { gap: calc(14 * var(--u)); }
#ui.compact .screen-menu .daily-card:not(.pill-daily) { padding-top: calc(22 * var(--u)); padding-bottom: calc(24 * var(--u)); }
#ui.compact .screen-menu .note { margin: calc(8 * var(--u)) 0 calc(12 * var(--u)); }
#ui.compact .screen-menu .logo { padding-top: calc(92 * var(--u)); }
/* (1.23) on short phones the logo sits higher and the wallet (44 px at least) reached over the dangling L: the L hangs
   only as high as clears the wallet (6 px under it; on a 360x640 phone level with the others, its rope behind the wallet) */
#ui.compact .screen-menu .lb.hang { --y: max(calc(-46 * var(--u)), calc(max(44px, 64 * var(--u)) + 6px - 100 * var(--u))); }

/* (1.25.6, the owner: "I need mine on the top please") your own place pinned over the ranking's list */
.board-pin { display: flex; flex-wrap: wrap; align-items: center; gap: calc(6 * var(--u)) calc(14 * var(--u)); margin: 0 0 calc(10 * var(--u)); padding: calc(12 * var(--u)) calc(18 * var(--u));
  border-radius: calc(20 * var(--u)); background: linear-gradient(180deg, #fff3b8, #ffd23f); color: #3b2a07; box-shadow: inset 0 calc(-4 * var(--u)) 0 #e0a92a; }
.board-pin-who { font-weight: 900; font-size: calc(26 * var(--u)); }
.board-pin-rank { font-size: calc(30 * var(--u)); }
.board-pin-v { margin-left: auto; font-size: calc(30 * var(--u)); font-weight: 900; }
.board-pin-best { flex-basis: 100%; font-size: calc(22 * var(--u)); font-weight: 800; opacity: 0.85; }

/* (1.27) The coin packs (the Play app): the bought coins beside the earned ones in the Winkel's head, "+ Koop" by them,
   and the packs: a row each, Google Play's own price on a big gold button, the parent line, the terms, the purchases */
.shop-coins-buy { border: 0; font-family: var(--font); font-weight: 900; cursor: pointer; padding-right: calc(8 * var(--u)); }
.shop-coins-buy:active { transform: translateY(calc(2 * var(--u))); }
.shop-plus { display: grid; place-items: center; width: calc(34 * var(--u)); height: calc(34 * var(--u)); min-width: 22px; min-height: 22px; margin-left: calc(4 * var(--u)); border-radius: 50%; background: #4fd66a; color: #fff; font-size: 0.95em; line-height: 1; box-shadow: inset 0 calc(-3 * var(--u)) 0 #2f9e48; }
.coin-panel .shop-note { margin: calc(10 * var(--u)) 0; }
.pack-signin { margin: calc(12 * var(--u)) 0; padding: calc(16 * var(--u)); border-radius: calc(22 * var(--u)); background: var(--panel); text-align: center; }
.pack-signin p { margin: 0 0 calc(12 * var(--u)); font-weight: 800; }
.pack-list { display: grid; gap: calc(12 * var(--u)); margin: calc(14 * var(--u)) 0; }
.pack-row { display: grid; grid-template-columns: calc(110 * var(--u)) 1fr auto; align-items: center; gap: calc(12 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u)); border-radius: calc(24 * var(--u)); background: var(--panel); box-shadow: inset 0 0 0 calc(3 * var(--u)) rgba(255, 210, 63, 0.35); }
.pack-row.size-3 { box-shadow: inset 0 0 0 calc(3 * var(--u)) rgba(255, 210, 63, 0.8); }
.pack-ic { display: flex; justify-content: center; font-size: calc(38 * var(--u)); }
.pack-ic .coin-ic + .coin-ic { margin-left: calc(-16 * var(--u)); }
.pack-coins { font: 900 max(15px, calc(30 * var(--u))) / 1.1 var(--font); }
.pack-buy { min-width: calc(170 * var(--u)); min-height: 44px; padding: calc(12 * var(--u)) calc(18 * var(--u)); border: 0; border-radius: 999px; background: #ffd23f; color: #1d2b45; font: 900 max(15px, calc(28 * var(--u))) / 1 var(--font); box-shadow: 0 calc(4 * var(--u)) 0 #c99a0c; cursor: pointer; white-space: nowrap; }
.pack-buy:active { transform: translateY(calc(3 * var(--u))); box-shadow: 0 calc(1 * var(--u)) 0 #c99a0c; }
.pack-buy[disabled] { opacity: 0.55; cursor: default; }
.pack-row.is-busy .pack-buy { opacity: 1; animation: pulse 1s ease-in-out infinite; }
.pack-legal a { color: inherit; font-weight: 900; }
.pack-history { display: flex; margin: calc(8 * var(--u)) auto 0; }
.pack-buys { margin-top: calc(14 * var(--u)); }
.pack-buy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(6 * var(--u)); }
.pack-buy-list li { display: flex; align-items: baseline; gap: calc(12 * var(--u)); padding: calc(10 * var(--u)) calc(14 * var(--u)); border-radius: calc(16 * var(--u)); background: var(--panel); font-size: max(12px, calc(22 * var(--u))); }
.pack-buy-list li b { margin-left: auto; }
.pack-buy-list li.is-voided b { text-decoration: line-through; opacity: 0.7; }
.coin-panel .link-btn { border: 0; background: none; padding: 0; color: inherit; font: inherit; font-weight: 900; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .pack-row.is-busy .pack-buy { animation: none; } }

/* (1.32.6, the owner 8 Nov 2026: "the words that pops up doesnt feel right, the font and where it appears and the size")
   The River's call-outs (Hit!, POWER SHOT!, a boss's words) in a round, chunky game font; the rest of Stapel keeps its own.
   Fredoka, SIL Open Font License 1.1 (css/fonts/LICENSES.txt), its Latin part. */
@font-face {
  font-family: 'Fredoka';
  src: url('fonts/fredoka-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* (1.40.10, the owner: "Please improve the menu look, especially when you pause, then there needs to be an extra settings
   button") the pause card as a glossy toy panel like the blocks: a lit top, a gold rim with a soft glow, a glass sheen
   behind the content, raised secondary buttons, and the switches + ⚙️ Settings in equal columns under a thin rule */
.pause-card {
  position: relative; z-index: 0;
  background: radial-gradient(120% 55% at 50% 0%, rgba(110, 150, 230, 0.32), rgba(110, 150, 230, 0) 62%), linear-gradient(180deg, #2b4274 0%, #16234a 62%, #0f1834 100%);
  border: calc(3 * var(--u)) solid rgba(255, 210, 63, 0.78);
  box-shadow: 0 calc(26 * var(--u)) calc(64 * var(--u)) rgba(0, 0, 0, 0.5), 0 0 calc(44 * var(--u)) rgba(255, 196, 60, 0.16), inset 0 0 0 calc(5 * var(--u)) rgba(255, 255, 255, 0.04), inset 0 calc(2 * var(--u)) 0 rgba(255, 255, 255, 0.22);
}
.pause-card::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: calc(6 * var(--u)); right: calc(6 * var(--u)); top: calc(6 * var(--u)); height: 34%;
  border-radius: calc(34 * var(--u)) calc(34 * var(--u)) 50% 50% / calc(34 * var(--u)) calc(34 * var(--u)) 18% 18%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0));
}
.pause-card .btn-quit, .pause-card .btn-restart {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.06)); color: #fff;
  box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.22), inset 0 calc(3 * var(--u)) 0 rgba(255, 255, 255, 0.16), 0 calc(6 * var(--u)) 0 rgba(0, 0, 0, 0.32);
}
.pause-card .btn-restart svg, .pause-card .btn-restart .ic { color: #9fe0ff; }
.pause-dock {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); justify-items: center; align-items: start;
  gap: calc(10 * var(--u)); margin-top: calc(4 * var(--u)); padding-top: calc(18 * var(--u));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.pause-dock .dock-btn { min-width: 0; max-width: 100%; }
.pause-dock .dock-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pause-card .dock .dock-ic { background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)); box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(255, 255, 255, 0.2), inset 0 calc(3 * var(--u)) 0 rgba(255, 255, 255, 0.18), 0 calc(5 * var(--u)) 0 rgba(0, 0, 0, 0.3); }
.pause-card .dock .dock-settings .dock-ic { background: linear-gradient(180deg, #ffe27a, #f2a516); color: #4a2d00; box-shadow: inset 0 calc(-6 * var(--u)) 0 #c47f00, inset 0 calc(3 * var(--u)) 0 rgba(255, 255, 255, 0.55), 0 calc(6 * var(--u)) calc(14 * var(--u)) rgba(0, 0, 0, 0.32); }
.pause-card .dock .dock-settings .dock-label { color: #ffe27a; }
.settings-ingame .sheet-foot .btn { width: 100%; }
/* (1.40.10) the pause card steps aside while its own settings sheet is up */
.screen-pause.is-sub .pause-card { visibility: hidden; }
/* (1.40.10) the volume slider row: label, a chunky green track, the % in a fixed box so nothing jumps */
.settings-volume { cursor: default; }
.settings-volume .settings-label { flex: none; }
.settings-volume .settings-value { min-width: 3.4em; text-align: right; color: var(--bosveld-d); }
.settings-slider {
  --fill: 100%; flex: 1 1 auto; min-width: 0; height: 36px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none; touch-action: pan-y;
}
.settings-slider:focus-visible { outline: 3px solid var(--hemel-d); outline-offset: 4px; border-radius: 99px; }
.settings-slider::-webkit-slider-runnable-track {
  height: 12px; border-radius: 99px; box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.22);
  background: linear-gradient(90deg, var(--bosveld) 0 var(--fill), rgba(20, 40, 70, 0.16) var(--fill) 100%);
}
.settings-slider::-moz-range-track { height: 12px; border-radius: 99px; background: rgba(20, 40, 70, 0.16); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.22); }
.settings-slider::-moz-range-progress { height: 12px; border-radius: 99px; background: var(--bosveld); }
.settings-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: -9px; border: 3px solid #fff; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--bosveld-l), var(--bosveld-d)); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.settings-slider::-moz-range-thumb {
  width: 24px; height: 24px; border: 3px solid #fff; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--bosveld-l), var(--bosveld-d)); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.settings-list:has([data-setting-row="sound"][aria-checked="false"]) .settings-volume { opacity: 0.45; }
.card .settings-slider { background: transparent; border: 0; box-shadow: none; padding: 0; }
.card .settings-volume .settings-value { color: #6fdc7a; }
.card .settings-slider::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--bosveld) 0 var(--fill), rgba(255, 255, 255, 0.16) var(--fill) 100%); }
.card .settings-slider::-moz-range-track { background: rgba(255, 255, 255, 0.16); }
