/*
  The design system layer (10.11.2026, redesign pass).

  Lukas: "Raise the visual and interaction quality of DonutDrop ... one consistent
  design system (colors, radii, shadows, type scale)". The names live in
  ../tokens.css (--ds-*); this sheet applies them to what every page already has:

    1. one palette on the pages that still wore the ice blue (account, deposit,
       rewards, leaderboard, affiliates, help ...) - the navy the games, the
       frame and the home page got on 08.11.2026
    2. one key: three heights, one radius, one label, and the same hover, press,
       disabled, focus and loading behaviour on every button
    3. one well, one tab track, one card
    4. boards and their toolbars readable on the season's scenery
    5. cases: rarity you can see, a reel that is lit when idle
    6. motion: three speeds, shared win and loss moments (parts/fx.js)
    7. phones: finger-sized targets, nothing under the support bubble

  Looks only. No rule here hides, moves or disables a control.

  Linked last in index.html. Page sheets are linked later still (app.js linkCss),
  so every rule starts with :root:not(#ds):not(#dd): two ids in :not() lift it
  over the pages, the theme and the two duel sheets without !important.
  !important only against a rule that carries it itself.

  Decisions of 08.11.2026 that stay (parts/duel-games.css, parts/duel-frame.css):
  the 3D keys, the flat navy, the board standing on the scenery without a ground
  of its own, Case Battles keeping its own colours.

  Off switch: remove the <link> in index.html. Old looks: docs/design-v2/vor-redesign-20261110/.
*/

/* ======================================================================
   1. Palette: the rest of the site in the same navy
   ====================================================================== */
/* Not the pages that already carry this navy with a board ground of their own (their sheets'
   "Duel style" blocks), not a page with a game panel (parts/duel-games.css), not Case Battles. */
:root:not(#ds):not(#dd) .pg:not(.pg-battles, .pg-mob-wars, .pg-home, .pg-cases, .pg-pool, .pg-sports, .pg-stocks, .pg-uno, .pg-chess, .pg-slots, .pg-coins, .pg-bow):not(:has(.v2-game-panel)) {
  /* These pages draw a card in --g800 and sink its fields into --g900, so the scale sits one
     step higher than in the games: the card is the same navy as a game's panel and the chat,
     a field in it is the darker page ground, a chip on it the lighter key. */
  --g900: var(--ds-bg-2);
  --g800: var(--ds-surface);
  --g700: var(--ds-surface-2);
  --g600: #1c2242;
  --g500: var(--ds-surface-3);
  --g400: #2a3156;
  --g300: var(--ds-key);
  --g200: #3d4570;
  --g100: var(--ds-key-hover);
  --g50: #525b88;
  --t1: var(--ds-text-2);
  --t2: var(--ds-text-3);
  --t3: var(--ds-text-4);
  --t4: #8088b0;
  --t5: var(--ds-text-5);
  --t6: var(--ds-text-4);
  --t7: var(--ds-text-5);
  --purple: var(--ds-primary);
  --purple-600: var(--ds-primary-hover);
  --purple-700: var(--ds-primary);
  --purple-300: var(--ds-primary-soft);
  --teal: var(--ds-win-hi);
  --green: var(--ds-win);
  --green-400: var(--ds-win-hi);
  --red: var(--ds-loss);
  --red-400: var(--ds-loss-hi);
  --rim: var(--ds-line);
  --rim-2: var(--ds-line-2);
  --glow: transparent;
  --ice-2: var(--ds-primary-soft);
}
:root:not(#ds):not(#dd) ::selection { background: color-mix(in srgb, var(--ds-primary) 45%, transparent); color: #fff; }

/* ======================================================================
   2. Keys
   ====================================================================== */

/* ---------- behaviour, on every key bevel.js finds and on the named ones ---------- */
:root:not(#ds):not(#dd) :is(.v3-key, .v3-key-soft, .hd-link, .hd-race, .hd-wallet, .hd-btn-primary) {
  transition:
    background-color var(--ds-t) var(--ds-ease),
    color var(--ds-t) var(--ds-ease),
    filter var(--ds-t) var(--ds-ease),
    opacity var(--ds-t) var(--ds-ease),
    transform var(--ds-t-fast) var(--ds-ease),
    translate var(--ds-t-fast) var(--ds-ease),
    box-shadow var(--ds-t-fast) var(--ds-ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
/* hover: the coloured key brightens a little, whatever its colour */
@media (hover: hover) {
  :root:not(#ds):not(#dd) .v3-key:hover:not(:disabled):not([aria-disabled="true"]) { filter: brightness(1.07); }
}
/* press: the face goes down onto its edge */
:root:not(#ds):not(#dd) :is(.v3-key, .v3-key-soft):active:not(:disabled):not([aria-disabled="true"]) {
  /* `translate`, not `transform`: a key that is centred or scaled with a transform of its own
     keeps it while it is pressed (frame.css adds 1px with transform on the plain ones) */
  translate: 0 1px;
  filter: brightness(.96);
  box-shadow: var(--ds-bevel-press) !important;
  transition-duration: 40ms;
}
/* a text or icon button has no face to push: it dims for the length of the press. Named ones
   only - a board's tiles and a card that is a button have their own answer to a press. */
:root:not(#ds):not(#dd) :is(.gs-toolbar > button, .gs-toolbar > a, .hd-btn-text, .hd-user, .cd-textbtn, .lp-open, .snd-open, .ch-send, [role="tab"]):active:not(:disabled) { opacity: .78; }
/* disabled: no bevel, no pointer, clearly out of play */
:root:not(#ds):not(#dd) :is(button, [role="button"], a):is(:disabled, [aria-disabled="true"]) { cursor: not-allowed; }
:root:not(#ds):not(#dd) :is(.v3-key, .v3-key-soft):is(:disabled, [aria-disabled="true"]) {
  box-shadow: none !important;
  filter: saturate(.7);
}
:root:not(#ds):not(#dd) .v3-key:is(:disabled, [aria-disabled="true"]):not(.ds-loading) { opacity: .5; }
/* focus from the keyboard: one ring everywhere */
:root:not(#ds):not(#dd) :is(button, a, [role="button"], [role="tab"], [role="switch"], [role="menuitem"], summary):focus-visible {
  outline: 2px solid var(--ds-primary-soft);
  outline-offset: 2px;
}
:root:not(#ds):not(#dd) :is(.gs-toolbar, .v2-menu, [class$="-tabs"], [class$="-seg"]) :is(button, a):focus-visible { outline-offset: -2px; }

/* ---------- loading (parts/ui-feedback.js marks a key that went disabled on its own press) ---------- */
:root:not(#ds):not(#dd) .ds-loading { position: relative; color: transparent !important; opacity: 1; pointer-events: none; }
:root:not(#ds):not(#dd) .ds-loading > * { visibility: hidden; }
:root:not(#ds):not(#dd) .ds-loading::before {
  content: "";
  position: absolute;
  left: calc(50% - 9px);
  top: calc(50% - 10px);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .28);
  border-top-color: #fff;
  animation: ds-spin .7s linear infinite;
}
@keyframes ds-spin { to { transform: rotate(360deg); } }

/* ---------- one shape for the named button families outside the game panels ----------
   Every page wrote its own "<page>-btn"; they were 30 to 52px tall, 12px uppercase or
   14px, 6 to 12px corners. Now: 40px, 8px corners, 14px/700, as written. */
:root:not(#ds):not(#dd) .pg:not(.pg-battles) :is(
  .ac-btn, .af-btn, .ai-btn, .au-btn, .cm-btn, .dp-btn, .hp-btn, .hw-btn, .lb-btn, .lv-btn, .mp-btn, .pa-btn, .pf-btn,
  .rw-btn, .sh-btn, .st-btn, .tr-btn, .wd-btn, .hr-btn, .mw-btn, .h-btn
),
:root:not(#ds):not(#dd) :is(.uc-btn, .vp-btn) {
  min-height: var(--ds-h-md);
  padding-left: var(--ds-4);
  padding-right: var(--ds-4);
  border-radius: var(--ds-r-md);
  font-size: var(--ds-fs-md);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
}
/* the main action of a page section */
:root:not(#ds):not(#dd) .pg:not(.pg-battles) :is(
  .ac-btn-primary, .af-btn-primary, .ai-btn-primary, .dp-btn-primary, .hw-btn-primary, .lv-btn-primary, .pf-btn-primary,
  .rw-btn-primary, .tr-btn-primary, .wd-btn-primary, .st-btn--primary, .sh-btn.is-primary
) {
  background: var(--ds-primary);
  background-image: none;
  color: #fff;
  border-color: transparent;
}
@media (hover: hover) {
  :root:not(#ds):not(#dd) .pg:not(.pg-battles) :is(
    .ac-btn-primary, .af-btn-primary, .ai-btn-primary, .dp-btn-primary, .hw-btn-primary, .lv-btn-primary, .pf-btn-primary,
    .rw-btn-primary, .tr-btn-primary, .wd-btn-primary, .st-btn--primary, .sh-btn.is-primary
  ):hover:not(:disabled) { background: var(--ds-primary-hover); }
}
/* the quiet second action */
:root:not(#ds):not(#dd) .pg:not(.pg-battles) :is(.ac-btn-grey, .af-btn-grey, .dp-btn-grey, .hw-btn-grey, .rw-btn-grey, .wd-btn-grey) {
  background: var(--ds-key);
  color: #fff;
  border-color: transparent;
}
@media (hover: hover) {
  :root:not(#ds):not(#dd) .pg:not(.pg-battles) :is(.ac-btn-grey, .af-btn-grey, .dp-btn-grey, .hw-btn-grey, .rw-btn-grey, .wd-btn-grey):hover:not(:disabled) { background: var(--ds-key-hover); }
}
/* money coming to the player: green, dark ink on it */
:root:not(#ds):not(#dd) .pg :is(.rw-btn-green) { background: var(--ds-win); color: var(--ds-win-ink); }
@media (hover: hover) {
  :root:not(#ds):not(#dd) .pg :is(.rw-btn-green):hover:not(:disabled) { background: var(--ds-win-hi); }
}
/* Case Battles keeps its own look, keys included (Lukas 08.11.2026: every game except Case
   Battles). It still gets the shared press, focus ring and loading state above. */

/* ======================================================================
   3. Wells, tracks, cards and small type outside the games
   ====================================================================== */

/* Fields: one well everywhere. In a game panel a field is the lighter navy on the panel
   (parts/duel-games.css); outside the games every page drew its own - darker than its card on
   some, the card's own colour on others, so a field could vanish into the card it stood on. */
:root:not(#ds):not(#dd) .pg:not(.pg-battles):not(:has(.v2-game-panel)) :is(input[type="text"], input[type="number"], input[type="search"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], textarea, select):not(.v2-bet-in) {
  border-radius: var(--ds-r-md);
  border-color: transparent;
  background-color: var(--ds-surface-2);
  color: #fff;
  transition: box-shadow var(--ds-t) var(--ds-ease), background-color var(--ds-t) var(--ds-ease);
}
:root:not(#ds):not(#dd) .pg:not(.pg-battles):not(:has(.v2-game-panel)) :is(input[type="text"], input[type="number"], input[type="search"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], textarea):not(.v2-bet-in)::placeholder { color: var(--ds-text-5); }
:root:not(#ds):not(#dd) .pg:not(.pg-battles):not(:has(.v2-game-panel)) :is(input[type="text"], input[type="number"], input[type="search"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], textarea, select):not(.v2-bet-in):focus {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--ds-line-2) !important;
}
/* the amount field outside a game (the withdraw page, the cash desk and the other dialogs): the
   well and the small keys of a game panel. In the cash desk the keys were dark on a dark well. */
:root:not(#ds):not(#dd) :is(.pg:not(.pg-battles):not(:has(.v2-game-panel)), .v2-modal-card) .v2-bet {
  height: var(--ds-h-lg);
  border: 0;
  border-radius: var(--ds-r-md);
  background: var(--ds-surface-2);
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: outline-color var(--ds-t) var(--ds-ease);
}
:root:not(#ds):not(#dd) :is(.pg:not(.pg-battles):not(:has(.v2-game-panel)), .v2-modal-card) .v2-bet:focus-within { outline-color: var(--ds-line-2); }
:root:not(#ds):not(#dd) :is(.pg:not(.pg-battles):not(:has(.v2-game-panel)), .v2-modal-card) .v2-bet.bad { outline-color: var(--ds-loss); }
:root:not(#ds):not(#dd) :is(.pg:not(.pg-battles):not(:has(.v2-game-panel)), .v2-modal-card) .v2-bet-in { color: #fff; font-size: var(--ds-fs-lg); font-weight: 600; }
:root:not(#ds):not(#dd) :is(.pg:not(.pg-battles):not(:has(.v2-game-panel)), .v2-modal-card) .v2-bet-in::placeholder { color: var(--ds-text-5); }
:root:not(#ds):not(#dd) :is(.pg:not(.pg-battles):not(:has(.v2-game-panel)), .v2-modal-card) :is(.v2-bet-btn, .v2-bet-clear) {
  height: var(--ds-h-sm);
  min-width: var(--ds-h-sm);
  width: auto;
  padding: 0 10px;
  border-radius: var(--ds-r-sm);
  background: var(--ds-key);
  color: #fff;
  font-size: var(--ds-fs-xs);
  font-weight: 700;
  letter-spacing: 0;
}
@media (hover: hover) {
  :root:not(#ds):not(#dd) :is(.pg:not(.pg-battles):not(:has(.v2-game-panel)), .v2-modal-card) :is(.v2-bet-btn, .v2-bet-clear):hover:not(:disabled) { background: var(--ds-key-hover); color: #fff; }
}
/* on a phone the four keys leave the amount little room: they close up so the figure stays readable */
@media (max-width: 480px) {
  :root:not(#ds):not(#dd) :is(.pg:not(.pg-battles):not(:has(.v2-game-panel)), .v2-modal-card) :is(.v2-bet-btn, .v2-bet-clear) { padding: 0 7px; min-width: 0; }
  :root:not(#ds):not(#dd) :is(.pg:not(.pg-battles):not(:has(.v2-game-panel)), .v2-modal-card) .v2-bet { gap: 4px; }
}

/* The account, deposit, withdraw and affiliate pages spoke in 10-12px capitals with wide
   tracking. Section heads and labels are written as words now, at the scale's sizes. */
:root:not(#ds):not(#dd) :is(.pg-account, .pg-deposit, .pg-withdraw, .pg-affiliates, .pg-rewards) :not(.ac-pill, .ac-rank-lvl, .dp-st, .wd-status, .v2-bet-btn, .v2-bet-clear, .v2-bet-btn *, .v2-bet-clear *, [class*="pill"], [class*="badge"], [class*="-tag"], [class*="-chip"], [class*="-lvl"], code, kbd, input, textarea, select) {
  text-transform: none;
  letter-spacing: 0;
}
/* table heads and the smallest labels were 11px: the scale's smallest size is 12px */
:root:not(#ds):not(#dd) :is(.pg-account .ac-th, .pg-withdraw .wd-th, .pg-affiliates .af-th, .pg-deposit .dp-label, .pg-deposit .dp-facts > div > span:first-child, .pg-deposit .dp-calc label > span, .pg-deposit .dp-calc > div > span) {
  font-size: var(--ds-fs-xs);
  color: var(--ds-text-4);
}
/* the side menu of the account pages: rows you can tell apart, the current one a key */
:root:not(#ds):not(#dd) .pg-account .ac-mi { border-radius: var(--ds-r-md); font-size: var(--ds-fs-md); font-weight: 600; transition: background-color var(--ds-t) var(--ds-ease), color var(--ds-t) var(--ds-ease); }

/* ======================================================================
   4. Boards on the season's scenery
   ====================================================================== */

/* The board has no ground of its own (Lukas 08.11.2026), so on a bright part of the picture - the
   moon, a snow slope - its tiles and loose text lost their contrast. No box comes back: a soft
   shade sits behind the middle of the board and fades out before the edges, like the board's own
   shadow on the snow. */
:root:not(#ds):not(#dd) .gs-stage:not(.bj-stage) { isolation: isolate; }
:root:not(#ds):not(#dd) .gs-stage:not(.bj-stage)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 60% at 50% 54%, rgba(7, 11, 35, .58) 0%, rgba(7, 11, 35, .36) 52%, rgba(7, 11, 35, 0) 100%);
}

/* The toolbar's keys (Back, sound, Fairness, Share) stood as bare text on the sky; the moon sits
   right behind them. Each is a small chip of the panel's navy now, readable on any picture. */
:root:not(#ds):not(#dd) .gs-toolbar { gap: var(--ds-2); padding: 0 var(--ds-1); }
:root:not(#ds):not(#dd) .gs-toolbar > :is(button, a) {
  height: var(--ds-h-sm);
  border-radius: var(--ds-r-md);
  background: color-mix(in srgb, var(--ds-surface) 82%, transparent);
  color: var(--ds-text-3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-shadow: none;
  transition: background-color var(--ds-t) var(--ds-ease), color var(--ds-t) var(--ds-ease);
}
@media (hover: hover) {
  :root:not(#ds):not(#dd) .gs-toolbar > :is(button, a):hover { background: var(--ds-surface-3); color: #fff; }
}
:root:not(#ds):not(#dd) .gs-toolbar > button.is-off { color: var(--ds-text-5); }
/* loose words a page writes straight onto the sky (a hint, "Nobody has joined yet", a round label) */
:root:not(#ds):not(#dd) :is(.gs-stage, .v2-game-stage) :is(p, small, [class$="-hint"], [class$="-note"], [class$="-empty"]) {
  text-shadow: 0 1px 2px rgba(3, 6, 24, .95), 0 0 12px rgba(3, 6, 24, .7);
}

/* Crash: "Nobody has joined yet" and the pot stood as bare words exactly where the moon is */
:root:not(#ds):not(#dd) .pg-crash .cr-stage-top .cr-players-head {
  padding: 6px 10px;
  border-radius: var(--ds-r-md);
  background: color-mix(in srgb, var(--ds-surface) 82%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ds-text-3);
  text-shadow: none;
}

/* Mines: the covered tile gets an edge of light so each one reads as a block, and an opened
   gem arrives with a small bounce instead of just appearing. Colours stay Duel's. */
:root:not(#ds):not(#dd) .pg-mines .mn-tile:not(.is-gem):not(.is-bomb):not(.is-hit):not(.is-picked):not(.is-queued):not(.is-charging):not(.is-dim) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 0 #161834;
}
:root:not(#ds):not(#dd) .pg-mines .mn-tile.is-gem:not(.is-dim) .mn-art { animation: ds-pop var(--ds-t-reveal) var(--ds-ease-spring) both; }
:root:not(#ds):not(#dd) .pg-mines .mn-tile.is-gem:not(.is-dim) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-win) 45%, transparent), 0 0 22px -10px var(--ds-win); }
@keyframes ds-pop { 0% { transform: scale(.55); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

/* ======================================================================
   5. Cases
   ====================================================================== */

/* ---------- the catalogue ---------- */
:root:not(#ds):not(#dd) .pg-cases .cc-card {
  box-shadow: inset 0 0 0 1px var(--ds-line);
  transition: background-color var(--ds-t) var(--ds-ease), transform var(--ds-t) var(--ds-ease), box-shadow var(--ds-t) var(--ds-ease);
}
@media (hover: hover) {
  :root:not(#ds):not(#dd) .pg-cases .cc-card:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 1px var(--ds-line-2), var(--ds-shadow-2);
  }
}
:root:not(#ds):not(#dd) .pg-cases .cc-card:active { transform: translateY(0); transition-duration: var(--ds-t-fast); }
/* the picture is the product: lit a little stronger in its own colours */
:root:not(#ds):not(#dd) .pg-cases .cc-art-glow { opacity: .55; }
:root:not(#ds):not(#dd) .pg-cases .cc-card:hover .cc-art-glow { opacity: .8; }
:root:not(#ds):not(#dd) .pg-cases .cc-art { transition: transform var(--ds-t-slow) var(--ds-ease-out); }
/* the price reads as a figure, not as a second button inside the card */
:root:not(#ds):not(#dd) .pg-cases .cc-card-price { height: 36px; background: var(--ds-surface-2); font-size: var(--ds-fs-md); }
:root:not(#ds):not(#dd) .pg-cases .cc-card:hover .cc-card-price { background: var(--ds-primary); }
:root:not(#ds):not(#dd) .pg-cases .cc-meta { font-size: var(--ds-fs-xs); }

/* ---------- one case: the top row and the toolbar ---------- */
:root:not(#ds):not(#dd) .pg-cases .cd-textbtn {
  height: var(--ds-h-sm);
  border-radius: var(--ds-r-md);
  background: color-mix(in srgb, var(--ds-surface) 82%, transparent);
  color: var(--ds-text-3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color var(--ds-t) var(--ds-ease), color var(--ds-t) var(--ds-ease);
}
@media (hover: hover) {
  :root:not(#ds):not(#dd) .pg-cases .cd-textbtn:hover { background: var(--ds-surface-3); color: #fff; }
}
:root:not(#ds):not(#dd) .pg-cases .cd-title :is(h1, h4) { text-shadow: 0 1px 3px rgba(3, 6, 24, .9); }

/* ---------- the reel window ---------- */
:root:not(#ds):not(#dd) .pg-cases .cd-inner {
  background:
    radial-gradient(48% 62% at 50% 50%, rgba(69, 88, 255, .12), transparent 72%),
    linear-gradient(180deg, #0a0e27, var(--ds-bg-2) 40%, #0a0e27);
  box-shadow: inset 0 0 0 1px var(--ds-line), inset 0 24px 40px -28px rgba(0, 0, 0, .7), inset 0 -24px 40px -28px rgba(0, 0, 0, .7);
}
/* idle: the contents behind the case are a preview, not a smear */
:root:not(#ds):not(#dd) .pg-cases .cd-idle-row { opacity: .5; filter: blur(1.5px) saturate(.95); }
:root:not(#ds):not(#dd) .pg-cases .cd-idle-wrap::before { background: radial-gradient(closest-side, rgba(69, 88, 255, .34), rgba(69, 88, 255, .1) 55%, transparent); }
/* each item on the strip stands in the light of its rarity */
:root:not(#ds):not(#dd) .pg-cases .cd-tile .cd-glow {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rc, var(--ds-rar-common)) 36%, transparent), color-mix(in srgb, var(--rc, var(--ds-rar-common)) 8%, transparent) 62%, transparent);
}
/* the marker: brighter chevrons, a centre line that glows */
:root:not(#ds):not(#dd) .pg-cases .cd-marks { color: var(--ds-primary-soft); }
:root:not(#ds):not(#dd) .pg-cases .cd-mark { filter: drop-shadow(0 0 6px rgba(69, 88, 255, .9)); }
:root:not(#ds):not(#dd) .pg-cases .cd-marks.is-h::after {
  background: linear-gradient(180deg, var(--ds-primary-soft), rgba(143, 155, 255, .18) 28%, rgba(143, 155, 255, .18) 72%, var(--ds-primary-soft));
  box-shadow: 0 0 12px rgba(69, 88, 255, .55);
  opacity: .7;
}
:root:not(#ds):not(#dd) .pg-cases .cd-reels.is-idle ~ .cd-marks::after { opacity: 0; }
/* the landing: the hit grows with a spring, a ring in its rarity colour runs out from it once */
:root:not(#ds):not(#dd) .pg-cases .cd-tile { transition: opacity var(--ds-t-slow) var(--ds-ease), transform var(--ds-t-reveal) var(--ds-ease-spring); }
:root:not(#ds):not(#dd) .pg-cases .cd-tile.is-hit { transform: scale(1.16); z-index: 2; }
:root:not(#ds):not(#dd) .pg-cases .cd-tile.is-hit .cd-glow {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rc, var(--ds-rar-common)) 62%, transparent), color-mix(in srgb, var(--rc, var(--ds-rar-common)) 14%, transparent) 64%, transparent);
  box-shadow: 0 0 44px color-mix(in srgb, var(--rc, var(--ds-rar-common)) 48%, transparent);
}
:root:not(#ds):not(#dd) .pg-cases .cd-tile.is-hit::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 2px solid var(--rc, var(--ds-rar-common));
  pointer-events: none;
  animation: ds-ring .7s var(--ds-ease-out) both;
}
:root:not(#ds):not(#dd) .pg-cases .cd-tile.is-hit img { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--rc, #fff) 55%, transparent)) drop-shadow(0 8px 12px rgba(0, 0, 0, .5)); }
@keyframes ds-ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- the win cards ---------- */
:root:not(#ds):not(#dd) .pg-cases .cd-win-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 16%, var(--ds-surface)), var(--ds-surface) 58%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 42%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--rc) 55%, transparent);
  animation: ds-card-in var(--ds-t-reveal) var(--ds-ease-spring) both;
}
:root:not(#ds):not(#dd) .pg-cases .cd-win-card:nth-child(2) { animation-delay: 60ms; }
:root:not(#ds):not(#dd) .pg-cases .cd-win-card:nth-child(3) { animation-delay: 120ms; }
:root:not(#ds):not(#dd) .pg-cases .cd-win-card:nth-child(4) { animation-delay: 180ms; }
@keyframes ds-card-in { 0% { transform: translateY(14px) scale(.9); opacity: 0; } 100% { transform: none; opacity: 1; } }
:root:not(#ds):not(#dd) .pg-cases .cd-win-actions button { min-height: var(--ds-h-md); padding: 0 var(--ds-5); }

/* ---------- "Found in this case" ---------- */
:root:not(#ds):not(#dd) .pg-cases .cd-item {
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc, var(--ds-rar-common)) 13%, var(--ds-surface)) 0%, var(--ds-surface) 62%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc, var(--ds-rar-common)) 24%, transparent);
  transition: transform var(--ds-t) var(--ds-ease), box-shadow var(--ds-t) var(--ds-ease);
}
@media (hover: hover) {
  :root:not(#ds):not(#dd) .pg-cases .cd-item:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc, var(--ds-rar-common)) 55%, transparent), 0 14px 28px -16px color-mix(in srgb, var(--rc, var(--ds-rar-common)) 60%, transparent);
  }
  :root:not(#ds):not(#dd) .pg-cases .cd-item:hover .cd-item-art img { transform: scale(1.06); }
}
:root:not(#ds):not(#dd) .pg-cases .cd-item-art img { transition: transform var(--ds-t-slow) var(--ds-ease-out); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
:root:not(#ds):not(#dd) .pg-cases .cd-item-art .cd-glow {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rc, var(--ds-rar-common)) 34%, transparent), transparent);
}
:root:not(#ds):not(#dd) .pg-cases .cd-item::after { left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0; opacity: 1; }
/* the odds as a small chip, the gold tag as a badge */
:root:not(#ds):not(#dd) .pg-cases .cd-item-odds {
  padding: 2px 6px;
  border-radius: var(--ds-r-xs);
  background: rgba(7, 11, 35, .55);
  color: var(--ds-text-2);
  font-size: var(--ds-fs-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
:root:not(#ds):not(#dd) .pg-cases .cd-item.is-gold .cd-item-tag {
  padding: 2px 6px;
  border-radius: var(--ds-r-xs);
  background: color-mix(in srgb, var(--ds-gold) 16%, transparent);
  color: var(--ds-gold-hover);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
}
:root:not(#ds):not(#dd) .pg-cases .cd-item-bar { align-items: center; height: 36px; }
:root:not(#ds):not(#dd) .pg-cases .cd-item-cat { font-size: var(--ds-fs-xs); }

/* ---------- phones ---------- */
@media (max-width: 600px) {
  /* two cases side by side instead of one per screen */
  :root:not(#ds):not(#dd) .pg-cases .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  :root:not(#ds):not(#dd) .pg-cases .cc-card { padding: 10px; }
  :root:not(#ds):not(#dd) .pg-cases .cc-card-art { height: 104px; }
  :root:not(#ds):not(#dd) .pg-cases .cc-card-art img { width: 88px; height: 88px; }
  :root:not(#ds):not(#dd) .pg-cases .cc-art-glow { margin: -44px 0 0 -44px; }
  :root:not(#ds):not(#dd) .pg-cases .cc-card-name { font-size: var(--ds-fs-sm); }
  /* Official | Favorites | Community on one line */
  :root:not(#ds):not(#dd) .pg-cases .cc-tabs { flex-wrap: nowrap; }
  :root:not(#ds):not(#dd) .pg-cases .cc-tab { flex: 1 1 0; min-width: 0; padding: 0 8px; justify-content: center; }
}

/* ======================================================================
   6. Sound control (parts/sound-control.js)
   ====================================================================== */
.snd-open {
  flex: none;
  width: var(--ds-h-md);
  height: var(--ds-h-md);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--ds-r-md);
  background: var(--ds-surface-3);
  color: var(--ds-text-3);
  cursor: pointer;
  transition: background-color var(--ds-t) var(--ds-ease), color var(--ds-t) var(--ds-ease);
}
.snd-open svg { width: 20px; height: 20px; display: block; }
.snd-open.is-off { color: var(--ds-text-5); }
.snd-open[aria-expanded="true"] { background: var(--ds-key); color: #fff; }
@media (hover: hover) {
  .snd-open:hover { background: var(--ds-key); color: #fff; }
}
.snd-pop {
  position: fixed;
  z-index: 1011; /* with the menus (frame.css), under the modals */
  box-sizing: border-box;
  width: 264px;
  max-width: calc(100vw - 16px);
  padding: var(--ds-3);
  display: grid;
  gap: var(--ds-3);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-r-lg);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-3);
  color: var(--ds-text-2);
  font-family: var(--font);
  animation: ds-drop var(--ds-t-slow) var(--ds-ease-out);
}
.snd-pop[hidden] { display: none; }
.snd-pop *, .snd-pop *::before, .snd-pop *::after { box-sizing: border-box; }
@keyframes ds-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.snd-row { display: flex; align-items: center; gap: var(--ds-3); }
.snd-mute {
  flex: none;
  width: var(--ds-h-md);
  height: var(--ds-h-md);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--ds-r-md);
  background: var(--ds-key);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--ds-bevel-soft);
  transition: background-color var(--ds-t) var(--ds-ease), transform var(--ds-t-fast) var(--ds-ease), box-shadow var(--ds-t-fast) var(--ds-ease);
}
.snd-mute svg { width: 20px; height: 20px; display: block; }
.snd-mute[aria-pressed="true"] { background: var(--ds-loss); }
.snd-mute:active { transform: translateY(2px); box-shadow: var(--ds-bevel-press); }
@media (hover: hover) {
  .snd-mute:hover { background: var(--ds-key-hover); }
  .snd-mute[aria-pressed="true"]:hover { background: var(--ds-loss-hi); }
}
.snd-val { flex: none; width: 40px; text-align: right; font: 700 var(--ds-fs-sm)/1 var(--font); font-variant-numeric: tabular-nums; color: var(--ds-text-3); }
.snd-range {
  --p: 70%;
  flex: 1 1 auto;
  min-width: 0;
  height: 24px;
  margin: 0;
  padding: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.snd-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--ds-r-pill);
  background: linear-gradient(90deg, var(--ds-primary) var(--p), var(--ds-surface-3) var(--p));
}
.snd-range::-moz-range-track { height: 6px; border-radius: var(--ds-r-pill); background: var(--ds-surface-3); }
.snd-range::-moz-range-progress { height: 6px; border-radius: var(--ds-r-pill); background: var(--ds-primary); }
.snd-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(3, 6, 24, .6);
  transition: transform var(--ds-t-fast) var(--ds-ease);
}
.snd-range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(3, 6, 24, .6); }
.snd-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.snd-range:focus-visible { outline: 2px solid var(--ds-primary-soft); outline-offset: 4px; border-radius: var(--ds-r-xs); }
.snd-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-3);
  width: 100%;
  min-height: var(--ds-h-lg);
  padding: var(--ds-2) var(--ds-3);
  border: 0;
  border-radius: var(--ds-r-md);
  background: var(--ds-surface-2);
  color: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--ds-t) var(--ds-ease);
}
@media (hover: hover) {
  .snd-switch:hover { background: var(--ds-surface-3); }
}
.snd-switch-l { display: grid; gap: 2px; min-width: 0; }
.snd-switch-l b { font: 600 var(--ds-fs-md)/1.2 var(--font); }
.snd-switch-l small { font: 500 var(--ds-fs-xs)/1.2 var(--font); color: var(--ds-text-5); }
.snd-knob { position: relative; flex: none; width: 36px; height: 20px; border-radius: var(--ds-r-pill); background: var(--ds-key); transition: background-color var(--ds-t) var(--ds-ease); }
.snd-knob::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ds-text-3);
  transition: transform var(--ds-t) var(--ds-ease-spring), background-color var(--ds-t) var(--ds-ease);
}
.snd-switch[aria-checked="true"] .snd-knob { background: var(--ds-primary); }
.snd-switch[aria-checked="true"] .snd-knob::after { transform: translateX(16px); background: #fff; }
.snd-note { margin: 0; font: 500 var(--ds-fs-xs)/1.45 var(--font); color: var(--ds-text-5); }
/* the phone header has room for the balance, the wallet and the avatar; the speaker moves into reach of the thumb only from 420px up */
@media (max-width: 419px) {
  .snd-open { width: 36px; height: 36px; }
}

/* ======================================================================
   7. Motion: the win moment, entrances, and what holds still on request
   ====================================================================== */

/* ---------- the fan of coins (parts/fx.js) ---------- */
.ds-fx {
  position: fixed;
  z-index: 900; /* over the page and the board, under the menus and the modals */
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.ds-fx > i { position: absolute; left: 0; top: 0; display: block; will-change: transform, opacity; }
.ds-fx-coin {
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff3c4 0 18%, var(--ds-gold-hover) 34%, var(--ds-gold) 62%, var(--ds-gold-press) 100%);
  box-shadow: inset 0 -2px 0 rgba(120, 60, 0, .45), 0 0 8px rgba(253, 176, 34, .55);
}
.ds-fx-spark {
  background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 4px rgba(109, 232, 191, .9));
}
.ds-fx-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 62%, var(--ds-win-hi) 78%, transparent 100%);
}

/* ---------- the payout card: the shared look, a glow for the big one ---------- */
:root:not(#ds):not(#dd) .v2-paycard {
  border-color: var(--ds-win);
  border-radius: var(--ds-r-lg);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-2), 0 0 0 6px color-mix(in srgb, var(--ds-win) 14%, transparent);
}
:root:not(#ds):not(#dd) .v2-paycard.is-on { animation: v2-paycard var(--ds-t-reveal) var(--ds-ease-spring); }
:root:not(#ds):not(#dd) .v2-paycard.is-big { box-shadow: var(--ds-shadow-3), 0 0 0 6px color-mix(in srgb, var(--ds-gold) 22%, transparent), 0 0 60px -6px var(--ds-gold); border-color: var(--ds-gold); }
:root:not(#ds):not(#dd) .v2-paycard.is-big b { background: var(--ds-gold); color: var(--ds-gold-ink); }
:root:not(#ds):not(#dd) .v2-paycard.is-under { border-color: var(--ds-gold-press); box-shadow: var(--ds-shadow-2); }

/* ---------- the history rail: the newest chip slides in with a spring ---------- */
:root:not(#ds):not(#dd) .hc-chip.is-new { animation: ds-chip-in var(--ds-t-reveal) var(--ds-ease-spring) both; }
@keyframes ds-chip-in { 0% { transform: translateX(-10px) scale(.7); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- things that open: menus, sheets, modals, toasts come in the same way ---------- */
:root:not(#ds):not(#dd) .v2-menu { animation: ds-drop var(--ds-t-slow) var(--ds-ease-out); }
:root:not(#ds):not(#dd) .v2-modal-card { animation: ds-modal-in var(--ds-t-slow) var(--ds-ease-out); }
:root:not(#ds):not(#dd) .v2-modal-scrim { animation: ds-fade var(--ds-t-slow) var(--ds-ease); }
@keyframes ds-modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ds-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- a page arriving: its content fades in ----------
   Opacity only. A transform here would make the page the containing block of its own fixed
   parts (the phone's bet bar) for the length of the fade, and they would jump. */
:root:not(#ds):not(#dd) #page > .pg { animation: ds-page-in var(--ds-t-slow) var(--ds-ease-out); }
@keyframes ds-page-in { from { opacity: .35; } to { opacity: 1; } }

/* ---------- on request, decoration holds still ----------
   The system's "reduce motion" switches off what only decorates: entrances, hover lifts, the
   spinner's turn, the falling snow, the floating case. The reveals of the games - a reel, a
   curve, a tile opening - are not touched here: on a casino the reveal is the game, and
   parts/motion.js keeps those under the site's own switch alone (decision of 14.09.2026). */
@media (prefers-reduced-motion: reduce) {
  :root:not(#ds):not(#dd) #page > .pg,
  :root:not(#ds):not(#dd) :is(.v2-menu, .v2-modal-card, .v2-modal-scrim, .snd-pop, .hc-chip.is-new) { animation: none; }
  :root:not(#ds):not(#dd) :is(.v3-key, .v3-key-soft):active { translate: none; }
  :root:not(#ds):not(#dd) .pg-cases :is(.cc-card, .cd-item):hover { transform: none; }
  :root:not(#ds):not(#dd) .pg-cases :is(.cc-card:hover .cc-art, .cd-item:hover .cd-item-art img) { transform: none; }
  :root:not(#ds):not(#dd) .pg-cases .cd-idle-case { animation: none; }
  :root:not(#ds):not(#dd) .pg-cases .cd-tile.is-hit::after { animation: none; opacity: 0; }
  :root:not(#ds):not(#dd) .pg-home :is(.h-og, .h-slot, .h-top-tile, .h-mq-card):hover { transform: none; }
  :root:not(#ds):not(#dd) .ds-loading::before { animation-duration: 1.6s; }
  #v2-snow { display: none; }
}

/* ======================================================================
   8. Phones and fingers
   ====================================================================== */

/* The support bubble (Chatwoot, parts/support-widget-2.js) is 64px and sat on the last control
   of a row on every phone page: the fourth quantity, MAX, a price. Three quarters the size,
   closer to the corner. Its own sheet is injected by the vendor, hence !important. */
@media (max-width: 959px) {
  .woot-widget-bubble.woot-elements--right {
    width: 48px !important;
    height: 48px !important;
    right: 12px !important;
    bottom: 76px !important;
    box-shadow: var(--ds-shadow-2) !important;
  }
  .woot-widget-bubble.woot-elements--right svg { width: 20px !important; height: 20px !important; margin: 14px !important; }
  .woot-widget-bubble.woot-elements--right img { width: 20px !important; height: 20px !important; margin: 14px !important; }
}

/* A finger needs more than a mouse: the small keys of the bet field and the toolbar grow on
   touch screens, nothing else moves. */
@media (pointer: coarse) {
  :root:not(#ds):not(#dd) .v2-game-panel :is(.v2-bet-btn, .v2-bet-clear) { height: 36px; min-width: 40px; }
  :root:not(#ds):not(#dd) .gs-toolbar > :is(button, a),
  :root:not(#ds):not(#dd) .pg-cases .cd-textbtn { height: 36px; min-width: 36px; }
  :root:not(#ds):not(#dd) .gs-toolbar { height: 44px; }
  :root:not(#ds):not(#dd) .hc-chip { min-height: 28px; }
}
/* the phone bar: the tab under the thumb answers the press */
:root:not(#ds):not(#dd) .bn-btn { transition: color var(--ds-t) var(--ds-ease), transform var(--ds-t-fast) var(--ds-ease); -webkit-tap-highlight-color: transparent; }
:root:not(#ds):not(#dd) .bn-btn:active { transform: scale(.94); }

/* ======================================================================
   9. Home
   ====================================================================== */

/* "To the slots" is centred with a transform; pressed, it keeps its place */
:root:not(#ds):not(#dd) .pg-home .h-slot-more:active:not(:disabled) { transform: translateX(-50%) translateY(1px); }
/* No zoom on a game's picture under the pointer (Lukas 10.11.2026: "mach dass wenn man auf ein
   game mit der maus geht dass es ein bisschen reinzoomt weg"). pages/home.css and
   parts/duel-frame.css scaled the cover to 1.04 / 1.05; the tile's small lift stays. */
:root:not(#ds):not(#dd) .pg-home .h-og:hover :is(.h-og-art, .h-og-cover) { transform: none; }

/* covers and tiles keep their flat lift of 08.11.2026 (parts/duel-frame.css); they gain the
   shared speed, an answer to the press and a ring for the keyboard */
:root:not(#ds):not(#dd) .pg-home :is(.h-og, .h-slot, .h-top-tile) { transition: transform var(--ds-t) var(--ds-ease); }
:root:not(#ds):not(#dd) .pg-home :is(.h-slot, .h-top-tile):active { transform: translateY(-1px); transition-duration: var(--ds-t-fast); }
:root:not(#ds):not(#dd) .pg-home .h-og:active { filter: brightness(.94); }
:root:not(#ds):not(#dd) .pg-home :is(.h-og, .h-slot, .h-top-tile):focus-visible { outline: 2px solid var(--ds-primary-soft); outline-offset: 3px; }
/* the live bets table: rows you can follow across, figures in a column */
:root:not(#ds):not(#dd) .pg-home :is(td, th) { font-variant-numeric: tabular-nums; }

/* ======================================================================
   10. Empty states
   ====================================================================== */

/* A list with nothing in it was one grey line of text. It gets a picture now (made with
   Higgsfield in the style of the wallet chest, art-src/higgsfield-20261110/): the empty chest
   where nothing has happened yet, the magnifying glass where a search or a filter found nothing.
   The withdraw list is left out: its element also carries "Loading" and error lines. */
:root:not(#ds):not(#dd) :is(.pg-account .ac-empty, .sh-empty, .pg-transcript .tr-empty)::before,
:root:not(#ds):not(#dd) :is(.pg-cases .cc-grid + .cc-empty, .pg-cases .cm-empty, .pg-help .hp-empty)::before {
  content: "";
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto var(--ds-3);
  background: center / contain no-repeat;
  filter: drop-shadow(0 8px 12px rgba(3, 6, 24, .5));
}
:root:not(#ds):not(#dd) :is(.pg-account .ac-empty, .sh-empty, .pg-transcript .tr-empty)::before { background-image: url("/design-v2/art/empty-chest.webp"); }
:root:not(#ds):not(#dd) :is(.pg-cases .cc-grid + .cc-empty, .pg-cases .cm-empty, .pg-help .hp-empty)::before { background-image: url("/design-v2/art/empty-search.webp"); }
:root:not(#ds):not(#dd) :is(.pg-account .ac-empty, .sh-empty, .pg-transcript .tr-empty, .pg-cases .cc-grid + .cc-empty, .pg-cases .cm-empty, .pg-help .hp-empty) {
  text-align: center;
  font-size: var(--ds-fs-md);
  font-weight: 600;
  color: var(--ds-text-4);
}

/* ======================================================================
   11. Dialogs: headings and labels as written
   ====================================================================== */

/* The pages and the game panels write their headings and labels as words; the dialogs - the
   wallet windows, sign-in, the confirm boxes - still set them in capitals with wide tracking
   ("DEPOSIT", "BALANCE", "IN-GAME NAME"). Lukas 10.11.2026, asked whether to bring the wallet
   window in line: "Ja, angleichen". The same classes carry every dialog, so all of them follow,
   or sign-in would be the one place left in capitals. The texts are written in normal case in
   the scripts already; only the styling changes. What stays in capitals: the status pills
   (as on the withdraw page) and the small amount keys CLEAR / MAX (as in the games). */
:root:not(#ds):not(#dd) :is(.v2-modal-card, .v2-sheet-card) :is(.si-h, .si-label, .si-secondary, .si-sep span, .si-cmd button, .si-tabs button, .wl-tabs button, .wl-bal, .wl-cancel, .wl-cmd-copy) {
  text-transform: none;
  letter-spacing: 0;
}
/* labels at the size and colour of a game panel's labels */
:root:not(#ds):not(#dd) :is(.v2-modal-card, .v2-sheet-card) .si-label { font-size: var(--ds-fs-sm); font-weight: 600; color: var(--ds-text-4); }
:root:not(#ds):not(#dd) .v2-modal--wallet .wl-bal > span:first-child { font-size: var(--ds-fs-sm); font-weight: 600; color: var(--ds-text-4); }
:root:not(#ds):not(#dd) .v2-modal--wallet .wl > .si-h { letter-spacing: 0; font-size: 22px; }

/* ======================================================================
   12. Header
   ====================================================================== */

/* Lukas 10.11.2026: "wie kann man das Aussehen noch verbessern? lass mal am header arbeiten".
   The header had three kinds of control side by side: the nav entries as raised keys with 10px
   corners (08.11.2026), the two icon buttons as flat 8px squares, the balance group with 8px
   corners. One family now, and four small answers the header did not give before. */

/* ---------- no snowman by the logo (Lukas 10.11.2026: "da oben Schneemann weg") ---------- */
:root:not(#ds):not(#dd) .hd-logo::after { content: none; display: none; }

/* ---------- the icon buttons (live stats, sound) are keys like the nav entries ---------- */
:root:not(#ds):not(#dd) #v2-header :is(.lp-open, .snd-open) {
  width: var(--ds-h-md);
  height: var(--ds-h-md);
  padding: 0 0 3px; /* the icon sits on the face, above the 3D edge - as the nav labels do */
  border-radius: 10px;
  background: var(--ds-surface-3);
  color: #c3c8e2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -3px 0 rgba(0, 0, 0, .35);
  transition: background-color var(--ds-t) var(--ds-ease), color var(--ds-t) var(--ds-ease), translate var(--ds-t-fast) var(--ds-ease), box-shadow var(--ds-t-fast) var(--ds-ease);
}
@media (hover: hover) {
  :root:not(#ds):not(#dd) #v2-header :is(.lp-open, .snd-open):hover { background: #2a3156; color: #fff; }
}
:root:not(#ds):not(#dd) #v2-header :is(.lp-open[aria-pressed="true"], .snd-open[aria-expanded="true"]) { background: var(--ds-key); color: #fff; }
:root:not(#ds):not(#dd) #v2-header .snd-open.is-off { color: var(--ds-text-5); }
:root:not(#ds):not(#dd) #v2-header :is(.lp-open, .snd-open):active { translate: 0 1px; opacity: 1; box-shadow: var(--ds-bevel-press); }

/* ---------- the balance and the wallet key: the same corners, one piece ---------- */
:root:not(#ds):not(#dd) .hd-bal { border-radius: 10px; }
:root:not(#ds):not(#dd) .hd-bal-amt { font-weight: 700; font-variant-numeric: tabular-nums; transition: color var(--ds-t) var(--ds-ease); }
@media (hover: hover) {
  :root:not(#ds):not(#dd) .hd-bal-amt:hover { color: var(--ds-primary-soft); }
}
/* the figure answers a change (frame.js paintBalance): up in green, down in red, then back */
:root:not(#ds):not(#dd) .hd-bal-amt.is-up { animation: ds-bal-up .9s var(--ds-ease-out); }
:root:not(#ds):not(#dd) .hd-bal-amt.is-down { animation: ds-bal-down .9s var(--ds-ease-out); }
@keyframes ds-bal-up { 0% { color: var(--ds-win-hi); transform: scale(1.07); } 35% { color: var(--ds-win-hi); transform: none; } }
@keyframes ds-bal-down { 0% { color: var(--ds-loss-hi); } 35% { color: var(--ds-loss-hi); } }

/* ---------- the nav: words, not keys ----------
   Lukas 10.11.2026, on the raised nav keys of 08.11.: "irgendwie finde ich die buttons passen
   nicht", then chose the flat variant of three shown. Games / Slots / Rewards / Race are an icon
   and a word now, the way the benchmark sets its nav; the keys stay for what acts (Wallet, the
   icon buttons). The page you are on is white with a blue bar on the header's lower edge. */
:root:not(#ds):not(#dd) .hd-nav { gap: var(--ds-1); }
:root:not(#ds):not(#dd) :is(.hd-link, .hd-race) {
  position: relative;
  height: var(--ds-h-md);
  padding: 0 var(--ds-3);
  border-radius: var(--ds-r-md);
  background: transparent;
  box-shadow: none !important;
  color: var(--ds-text-3);
  font-size: 15px;
  font-weight: 600;
  transition: color var(--ds-t) var(--ds-ease), background-color var(--ds-t) var(--ds-ease);
}
:root:not(#ds):not(#dd) .hd-race { padding-left: 68px; } /* the trophy is 60px wide and stands left of the words */
:root:not(#ds):not(#dd) .hd-link .hd-ico { color: var(--ds-text-5); transition: color var(--ds-t) var(--ds-ease); }
@media (hover: hover) {
  :root:not(#ds):not(#dd) :is(.hd-link, .hd-race):hover { background: var(--ds-surface-2); color: #fff; }
  :root:not(#ds):not(#dd) .hd-link:hover .hd-ico { color: var(--ds-primary-soft); }
}
:root:not(#ds):not(#dd) .hd-link[aria-expanded="true"] { background: var(--ds-surface-2); color: #fff; }
:root:not(#ds):not(#dd) :is(.hd-link, .hd-race).on { background: transparent; color: #fff; }
:root:not(#ds):not(#dd) .hd-link.on .hd-ico,
:root:not(#ds):not(#dd) .hd-link[data-nav].on .hd-ico { color: var(--ds-primary-soft); }
:root:not(#ds):not(#dd) :is(.hd-link, .hd-race).on::after {
  content: "";
  position: absolute;
  left: var(--ds-3);
  right: var(--ds-3);
  bottom: -12px; /* the 40px entry sits 12px above the header's lower edge */
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--ds-primary);
}
:root:not(#ds):not(#dd) .hd-race.on::after { left: 68px; background: var(--ds-gold); }
/* no face to push any more: pressed, the word dims instead of moving */
:root:not(#ds):not(#dd) :is(.hd-link, .hd-race):active { transform: none; box-shadow: none !important; opacity: .78; }

/* ---------- the avatar: a ring that answers the pointer and the open menu ----------
   Not on a face that wears a bought frame (parts/cosmetics.js .cos-fr): the frame is its ring. */
:root:not(#ds):not(#dd) .hd-user .hd-av:not(.cos-fr) { box-shadow: 0 0 0 2px var(--ds-line-2); transition: box-shadow var(--ds-t) var(--ds-ease); }
@media (hover: hover) {
  :root:not(#ds):not(#dd) .hd-user:hover .hd-av:not(.cos-fr) { box-shadow: 0 0 0 2px var(--ds-primary-soft); }
}
:root:not(#ds):not(#dd) .hd-user[aria-expanded="true"] .hd-av:not(.cos-fr) { box-shadow: 0 0 0 2px var(--ds-primary); }
:root:not(#ds):not(#dd) .hd-user[aria-expanded="true"] .hd-chev { transform: rotate(180deg); }

/* ---------- the level ring (parts/level-ring.js) ----------
   The ring above becomes a gauge: it fills clockwise from the level chip at its foot with the way to the next level
   (--lvl-p, 0..1, the server's figure), and a small chip at the avatar's foot carries the level.
   The gauge is the button's ::after - winter's Santa hat is its ::before. A face with a bought
   frame keeps the frame and gets the chip only. */
/* --lvl-p is registered as a number so the ring can glide to a new figure instead of jumping
   (parts/level-ring.js reads it again a second after every stake). */
@property --lvl-p { syntax: "<number>"; inherits: true; initial-value: 0; }
:root:not(#ds):not(#dd) .hd-user { position: relative; transition: --lvl-p .6s var(--ds-ease-out); }
:root:not(#ds):not(#dd) .hd-lvl.is-new { animation: ds-lvl-up .7s var(--ds-ease-spring); }
@keyframes ds-lvl-up { 0% { transform: translateX(-50%) scale(1.7); background: var(--ds-gold); } 100% { transform: translateX(-50%) scale(1); } }
:root:not(#ds):not(#dd) .hd-user.has-lvl .hd-av:not(.cos-fr) { box-shadow: none; }
:root:not(#ds):not(#dd) .hd-user.has-lvl:not(:has(.cos-fr))::after {
  content: "";
  position: absolute;
  left: 1px;   /* the 40px face sits 4px in: a 46px ring, 3px wide, round it */
  top: 1px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  pointer-events: none;
  /* from the level chip at the foot, up the left side, over the top and down the right side back
     to the chip (Lukas 10.11.2026: "beim level anfängt und dann so nach links auffüllt und rechts
     wieder runter") */
  background: conic-gradient(from 180deg, var(--ds-primary-soft) calc(var(--lvl-p, 0) * 360deg), var(--ds-line-2) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  transition: filter var(--ds-t) var(--ds-ease);
}
@media (hover: hover) {
  :root:not(#ds):not(#dd) .hd-user.has-lvl:hover::after { filter: brightness(1.25); }
}
:root:not(#ds):not(#dd) .hd-user.has-lvl[aria-expanded="true"]::after { filter: brightness(1.4); }
:root:not(#ds):not(#dd) .hd-lvl {
  position: absolute;
  left: 24px;  /* centred under the face: 4px + 20px */
  bottom: -3px;
  transform: translateX(-50%);
  min-width: 18px;
  height: 15px;
  padding: 0 4px;
  border-radius: var(--ds-r-pill);
  background: var(--ds-primary);
  color: #fff;
  font: 800 10px/15px var(--font);
  font-variant-numeric: tabular-nums;
  text-align: center;
  box-shadow: 0 0 0 2px var(--ds-bg-2);
  pointer-events: none;
  z-index: 1; /* above the ring: the ring is the button's ::after and would otherwise be drawn over the chip (Lukas 10.11.2026) */
}

/* ---------- the header lifts off the page once something scrolls under it ----------
   Flat at the top of a page as before; a soft shadow appears over the first 80px of scrolling.
   A scroll-driven animation: no script, and browsers without it keep the flat header. */
@supports (animation-timeline: scroll()) {
  :root:not(#ds):not(#dd) #v2-header {
    animation: ds-hd-lift linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 80px;
  }
  @keyframes ds-hd-lift { to { box-shadow: 0 10px 24px rgba(3, 6, 24, .55); border-bottom-color: var(--ds-surface-3); } }
}

/* ---------- phones ---------- */
@media (max-width: 419px) {
  :root:not(#ds):not(#dd) #v2-header :is(.lp-open, .snd-open) { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  :root:not(#ds):not(#dd) .hd-bal-amt:is(.is-up, .is-down) { animation-duration: .01s; }
}

/* ======================================================================
   13. Coin logos
   ====================================================================== */

/* Lukas 10.11.2026 (the coin picker of the wallet window): "mach da bei den coins die richtigen
   logos". A coin was a letter in a coloured disc (parts/crypto.js COIN_GLYPH: Ł, ₿, Ξ, ₮ ...).
   The disc now carries the coin's own mark (art/coins/, see its README for source and licence)
   and the letter is hidden; it stays in the markup, so a browser that cannot load the picture
   still shows nothing worse than an empty disc in the coin's colour. The same three places
   draw a coin: the wallet window, the deposit page and the live crypto card. */
:root:not(#ds):not(#dd) :is(.wl-coin-ic, .dp-coin-ic):is(.is-ltc, .is-btc, .is-eth, .is-usdt, .is-sol, .is-usdc, .is-bnb, .is-pol) {
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: transparent;
  font-size: 0;
  overflow: hidden;
}
:root:not(#ds):not(#dd) :is(.wl-coin-ic, .dp-coin-ic).is-ltc { background-image: url("/design-v2/art/coins/ltc.svg"); }
:root:not(#ds):not(#dd) :is(.wl-coin-ic, .dp-coin-ic).is-btc { background-image: url("/design-v2/art/coins/btc.svg"); }
:root:not(#ds):not(#dd) :is(.wl-coin-ic, .dp-coin-ic).is-eth { background-image: url("/design-v2/art/coins/eth.svg"); }
:root:not(#ds):not(#dd) :is(.wl-coin-ic, .dp-coin-ic).is-usdt { background-image: url("/design-v2/art/coins/usdt.svg"); }
:root:not(#ds):not(#dd) :is(.wl-coin-ic, .dp-coin-ic).is-sol { background-image: url("/design-v2/art/coins/sol.svg"); }
:root:not(#ds):not(#dd) :is(.wl-coin-ic, .dp-coin-ic).is-usdc { background-image: url("/design-v2/art/coins/usdc.svg"); }
:root:not(#ds):not(#dd) :is(.wl-coin-ic, .dp-coin-ic).is-bnb { background-image: url("/design-v2/art/coins/bnb.svg"); }
:root:not(#ds):not(#dd) :is(.wl-coin-ic, .dp-coin-ic).is-pol { background-image: url("/design-v2/art/coins/pol.svg"); }
/* a little larger in the picker, where the mark is what the player chooses by */
:root:not(#ds):not(#dd) .v2-modal--wallet .wl-coin .wl-coin-ic { width: 28px; height: 28px; }

/* ======================================================================
   13. The games menu
   ====================================================================== */

/* Lukas 10.11.2026, on the menu under "Games": "das muss schöner! Viel zu groß und scroll bar
   weg". It was two columns of raised 44px keys, taller than the window, with a scrollbar down
   its side. Now: three columns of flat 36px rows, so the whole list stands on one screen at
   usual sizes; where it still does not fit it scrolls as before, without a visible bar. The
   star for pinning shows on the row under the pointer and on rows that are pinned. Only the
   desktop menu - the phone's sheet keeps its tiles. */
:root:not(#ds):not(#dd) .v2-menu--games {
  gap: var(--ds-2);
  padding: var(--ds-2);
  border-radius: var(--ds-r-lg);
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  scrollbar-width: none;
}
:root:not(#ds):not(#dd) .v2-menu--games::-webkit-scrollbar { width: 0; height: 0; display: none; }
:root:not(#ds):not(#dd) .v2-menu--games .v2-menu-grid { grid-template-columns: repeat(3, minmax(156px, 1fr)); gap: 2px var(--ds-1); }
:root:not(#ds):not(#dd) .v2-menu--games .v2-menu-sec-h { padding: 2px 6px 4px; font-size: var(--ds-fs-xs); font-weight: 700; color: var(--ds-text-5); }
:root:not(#ds):not(#dd) .v2-menu--games .v2-menu-sec + .v2-menu-sec { padding-top: var(--ds-2); border-top: 1px solid var(--ds-line); }
:root:not(#ds):not(#dd) .v2-menu--games :is(.v2-menu-item:not(.off), .v2-menu-item.off) {
  height: 36px;
  padding: 0 28px 0 6px;
  gap: var(--ds-2);
  border-radius: var(--ds-r-md);
  background: transparent;
  box-shadow: none;
  color: var(--ds-text-3);
  font-size: var(--ds-fs-sm);
  font-weight: 600;
  transition: background-color var(--ds-t) var(--ds-ease), color var(--ds-t) var(--ds-ease);
}
@media (hover: hover) {
  :root:not(#ds):not(#dd) .v2-menu--games .v2-menu-item:not(.off):hover { background: var(--ds-surface-3); color: #fff; box-shadow: none; }
}
:root:not(#ds):not(#dd) .v2-menu--games .v2-menu-item.on { background: color-mix(in srgb, var(--ds-primary) 20%, var(--ds-surface-2)); color: #fff; box-shadow: none; }
:root:not(#ds):not(#dd) .v2-menu--games .v2-menu-item:not(.off):active { transform: none; box-shadow: none; opacity: .8; }
:root:not(#ds):not(#dd) .v2-menu--games .v2-menu-ico { width: 26px; height: 26px; border-radius: 7px; background: var(--ds-surface-2); }
:root:not(#ds):not(#dd) .v2-menu--games .v2-menu-ico .v2-ico { width: 16px; height: 16px; }
:root:not(#ds):not(#dd) .v2-menu--games .v2-menu-ico img { width: 18px; height: 18px; }
:root:not(#ds):not(#dd) .v2-menu--games .v2-menu-item:hover .v2-menu-ico { background: var(--ds-key); }
:root:not(#ds):not(#dd) .v2-menu--games :is(.v2-menu-row + .v2-menu-row, .v2-menu-item + .v2-menu-item) { margin-top: 0; }
:root:not(#ds):not(#dd) .v2-menu--games .v2-menu-event { height: 36px; margin-bottom: 2px; }
/* the star */
:root:not(#ds):not(#dd) .v2-menu--games .v2-menu-pin { top: 50%; right: 3px; width: 24px; height: 24px; }
:root:not(#ds):not(#dd) .v2-menu--games .v2-menu-pin .v2-ico { width: 14px; height: 14px; }
@media (hover: hover) {
  :root:not(#ds):not(#dd) .v2-menu--games .v2-menu-pin:not(.on) { opacity: 0; }
  :root:not(#ds):not(#dd) .v2-menu--games .v2-menu-row:hover .v2-menu-pin:not(.on),
  :root:not(#ds):not(#dd) .v2-menu--games .v2-menu-pin:focus-visible { opacity: .8; }
}
/* a window too narrow for three columns takes two */
@media (max-width: 1100px) {
  :root:not(#ds):not(#dd) .v2-menu--games .v2-menu-grid { grid-template-columns: repeat(2, minmax(156px, 1fr)); }
}
