/* Shared local Phosphor artwork. Color comes from the component/theme;
   never override child fill, stroke or the supplied duotone opacity. */
.ui-icon { display: inline-block; flex: none; vertical-align: middle; }
.auth-close > .ui-icon { width: 20px; height: 20px; }
.search-clear, .query-chip button, .toast button { display: grid; place-items: center; }
.search-clear > .ui-icon { width: 18px; height: 18px; }
.query-chip button > .ui-icon { width: 17px; height: 17px; }
.toast button > .ui-icon { color: inherit; }
.hero-arrow > .ui-icon { width: 24px; height: 24px; }
.game-rail-controls .ui-icon { width: 20px; height: 20px; }
.account-menu > a > .ui-icon, .account-menu > button > .ui-icon { color: var(--muted); }
.account-menu > a:is(:hover, :focus-visible, .active) > .ui-icon,
.account-menu > button:is(:hover, :focus-visible, .active) > .ui-icon { color: var(--accent); }

/* Self-hosted UI typefaces. Subsets keep each selected family small while
   covering every shipped Latin and Cyrillic locale. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2?v=sha256-34b9c504cab7a73e37b746343a449132") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2?v=sha256-3100e775e8616cd2611beecfa23a4263") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/sora-latin-ext.woff2?v=sha256-08e1ba85bcb55277782f56766af09467") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/sora-latin.woff2?v=sha256-811e11966d29f3a01fcb19b087b61ac0") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/noto-sans-arabic.woff2?v=sha256-ce85091f020920b65762b387b194ef59") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891,
    U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41,
    U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB,
    U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03,
    U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32,
    U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49,
    U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57,
    U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64,
    U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C,
    U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3,
    U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/rubik-cyrillic.woff2?v=sha256-bdb2b33ab916e9e7b42edb61f8aea5f5") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Brand Studio Live Builder runs the real player template in a same-origin,
   sandboxed iframe. These affordances exist only when the short-lived admin
   preview token is present in that iframe URL. */
body.cms-live-preview-active [data-cms-node] {
  position: relative;
  cursor: pointer;
  outline: 2px dashed color-mix(in srgb, var(--accent, #4f8cff) 62%, transparent);
  outline-offset: -2px;
  transition: outline-color .15s ease, box-shadow .15s ease;
}
body.cms-live-preview-active [data-cms-node]::after {
  content: "Edit";
  position: absolute;
  z-index: 20;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #0b1730;
  color: #fff;
  font: 700 12px/1 system-ui, sans-serif;
  letter-spacing: .02em;
  pointer-events: none;
  box-shadow: 0 4px 14px rgb(0 0 0 / .28);
}
body.cms-live-preview-active [data-cms-node]:hover,
body.cms-live-preview-active [data-cms-node]:focus-visible,
body.cms-live-preview-active [data-cms-node].cms-live-selected {
  outline: 3px solid #66a3ff;
  outline-offset: -3px;
  box-shadow: inset 0 0 0 9999px rgb(79 140 255 / .055);
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/rubik-latin-ext.woff2?v=sha256-09472f217ad1ebb61a7669cf532f9f2f") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/rubik-latin.woff2?v=sha256-691cd1d9b4c0cdf31a1dcf04259c86f9") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/roboto-condensed-cyrillic.woff2?v=sha256-952fba48c212d73793dddc1a4b0589dd") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/roboto-condensed-latin-ext.woff2?v=sha256-4a44e6b11ccc88bc6a1cb2abb313d99d") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/roboto-condensed-latin.woff2?v=sha256-8d230115e58faa2ed303bee567b91d1a") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/literata-cyrillic.woff2?v=sha256-a9054771acc03576b03c0f18daf6f478") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/literata-latin-ext.woff2?v=sha256-1160835f4cdae6a86572ed501c13b62b") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/literata-latin.woff2?v=sha256-29de894c768689feef6ab4ef274a9a16") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  font-size: 13px;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg: #11201a;
  --bg-deep: #0b1712;
  --bar1: #0a5c3b;
  --bar2: #07301f;
  --tabs: #16241d;
  --panel: #1b2a23;
  --panel2: #16221c;
  --panel3: #20332a;
  --line: #2a3c33;
  --line-soft: #26372f;
  --odd: #ffd23f;
  --odd-soft: #ffdf70;
  --action-hover: #ffdf70;
  --action-border: #ffd23f;
  --on-action: #2b2100;
  --action-on-dark: var(--odd);
  --text: #e9f0ec;
  --muted: #8aa094;
  --muted-light: #b7c7bf;
  --accent: #2bbd72;
  --accent-dark: #168553;
  --danger: #e25b5b;
  --info: #5b8fd2;
  --on-bar: #ffffff;
  --on-hero: #ffffff;
  --on-hero-muted: #c7d9d0;
  --on-accent: #07170f;
  --focus-ring: var(--odd);
  --positive-text: #64d99e;
  --negative-text: #ff9187;
  --warning-text: #ffdf70;
  --game-glow-1: #2bbd7288;
  --game-glow-2: #d6a72988;
  --game-glow-3: #527fc388;
  --game-glow-4: #b64f7988;
  --game-glow-5: #8a64c788;
  --game-glow-6: #d7653e88;
  --radius: 7px;
  --radius-lg: 12px;
  --shadow: 0 16px 38px #030b0770;
}

:root[data-font-family="core"] {
  --font-ui: "Inter", system-ui, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
}

:root[data-font-family="core"]:not([lang="ar"]) :is(h1, h2, h3, .brand) { font-family: var(--font-display); }
:root[data-font-family="core"] body { line-height: 1.4; }

:root[data-font-family="system"] {
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root[data-font-family="rounded"] {
  --font-ui: "Rubik", system-ui, sans-serif;
}

:root[data-font-family="compact"] {
  --font-ui: "Roboto Condensed", "Arial Narrow", sans-serif;
}

:root[data-font-family="editorial"] {
  --font-ui: "Literata", Georgia, serif;
}

:root[lang="ar"] {
  --font-ui: "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-text-size="small"] { font-size: 12px; }
:root[data-text-size="default"] { font-size: 13px; }
:root[data-text-size="large"] { font-size: 14px; }
:root[data-font-family="core"][data-text-size="small"] { font-size: 11.96px; }
:root[data-font-family="core"][data-text-size="large"] { font-size: 14.56px; }

:root[data-font-family="editorial"] .hero-copy h1 {
  line-height: 1.02;
  letter-spacing: -.8px;
}

/* SportsbookCore tokens from its public stylesheet; see fonts/SOURCES.md. */
:root[data-palette="core"] {
  --bg: #0a0d12;
  --bg-deep: #06080b;
  /* the brand's header is the dark surface, not the red: red stays the accent
     (sign-in, active tab, odds) rather than washing the whole bar */
  --bar1: #151b24;
  --bar2: #0a0d12;
  --tabs: #0e131a;
  --panel: #11161d;
  --panel2: #0e131a;
  --panel3: #161d26;
  --head: #0c1118;
  --line: #242c37;
  --line-soft: #1d242e;
  --odd: #ff3d68;
  --odd-soft: #ff8098;
  --odd-bg: #191f29;
  --odd-bg-h: #222a35;
  --action-hover: #ff8098;
  --action-border: #ff3d68;
  --on-action: #1a0208;
  --action-on-dark: #ff5c7f;
  --text: #f7f8fa;
  --muted: #9ca3af;
  --muted-light: #c9ced6;
  --on-hero-muted: #d3d8df;
  --accent: #ff174f;
  --accent-dark: #b00e35;
  --info: #7aa2f7;
  --day1: #2a1420;
  --day2: #10141b;
  --trk1: #1c3b2a;
  --trk2: #0a1a12;
  --game-glow-1: #ff174f88;
  --game-glow-2: #ff5c7f88;
  --game-glow-3: #7aa2f788;
  --game-glow-4: #e4164588;
  --game-glow-5: #b00e3588;
  --game-glow-6: #ff809888;
  --radius: 6px;
  --shadow: 0 16px 38px #00000099;
}

:root[data-palette="betfabriq"] {
  --bg: #0a0d12;
  --bg-deep: #06080b;
  --bar1: #151b24;
  --bar2: #0a0d12;
  --tabs: #0e131a;
  --panel: #11161d;
  --panel2: #0e131a;
  --panel3: #161d26;
  --head: #0c1118;
  --line: #242c37;
  --line-soft: #1d242e;
  --odd: #f97316;
  --odd-soft: #fdba74;
  --odd-bg: #191f29;
  --odd-bg-h: #222a35;
  --action-hover: #fdba74;
  --action-border: #f97316;
  --on-action: #241004;
  --action-on-dark: #fb923c;
  --text: #f7f8fa;
  --muted: #9ca3af;
  --muted-light: #c9ced6;
  --on-hero-muted: #d3d8df;
  --accent: #ea580c;
  --accent-dark: #9a3412;
  --info: #7aa2f7;
  --day1: #2a1b12;
  --day2: #10141b;
  --trk1: #1c3b2a;
  --trk2: #0a1a12;
  --game-glow-1: #ea580c88;
  --game-glow-2: #fb923c88;
  --game-glow-3: #7aa2f788;
  --game-glow-4: #ea580c88;
  --game-glow-5: #9a341288;
  --game-glow-6: #fdba7488;
  --radius: 6px;
  --shadow: 0 16px 38px #00000099;
}

:root[data-palette="casino-blue"] {
  --bg: #0c1624;
  --bg-deep: #07101b;
  --bar1: #164f7a;
  --bar2: #0a2843;
  --tabs: #111d2d;
  --panel: #172638;
  --panel2: #121f30;
  --panel3: #1d3046;
  --line: #30465f;
  --line-soft: #263a51;
  --odd: #f4c95d;
  --odd-soft: #ffe19a;
  --action-hover: #ffe19a;
  --text: #edf5ff;
  --muted: #91a5bd;
  --muted-light: #bdcce0;
  --accent: #54b9ff;
  --accent-dark: #278bc9;
  --info: #8aa5ff;
  --game-glow-1: #54b9ff88;
  --game-glow-2: #f4c95d88;
  --game-glow-3: #6686e888;
  --game-glow-4: #ca669d88;
  --game-glow-5: #9b7be688;
  --game-glow-6: #ee755888;
  --shadow: 0 16px 38px #02081280;
}

:root[data-palette="royal"] {
  --bg: #1b1725;
  --bg-deep: #100d18;
  --bar1: #513a7f;
  --bar2: #291d45;
  --tabs: #211b2e;
  --panel: #2a2336;
  --panel2: #221c2d;
  --panel3: #372d47;
  --line: #473a58;
  --line-soft: #3c324c;
  --odd: #f6c85f;
  --odd-soft: #f9da8d;
  --action-hover: #f9da8d;
  --text: #f4effa;
  --muted: #a99db8;
  --muted-light: #d1c7dc;
  --accent: #bd8cff;
  --accent-dark: #805ac2;
  --info: #8aa9ff;
  --game-glow-1: #bd8cff88;
  --game-glow-2: #f6c85f88;
  --game-glow-3: #738ce888;
  --game-glow-4: #e175aa88;
  --game-glow-5: #986fd788;
  --game-glow-6: #e5795b88;
  --shadow: 0 16px 38px #09061180;
}

:root[data-palette="ember"] {
  --bg: #221815;
  --bg-deep: #140e0c;
  --bar1: #74372f;
  --bar2: #3b1c18;
  --tabs: #281d1a;
  --panel: #312521;
  --panel2: #281e1b;
  --panel3: #3d2d29;
  --line: #503b35;
  --line-soft: #45332e;
  --odd: #ffd166;
  --odd-soft: #ffe092;
  --action-hover: #ffe092;
  --text: #f7efec;
  --muted: #ad9890;
  --muted-light: #d6c6c0;
  --accent: #ff8a61;
  --accent-dark: #bc573c;
  --info: #77a6df;
  --game-glow-1: #ff8a6188;
  --game-glow-2: #ffd16688;
  --game-glow-3: #618ecb88;
  --game-glow-4: #d9637e88;
  --game-glow-5: #9a6fc788;
  --game-glow-6: #ef714d88;
  --shadow: 0 16px 38px #0e060480;
}

:root[data-palette="burgundy"] {
  --bg: #21141c;
  --bg-deep: #130b10;
  --bar1: #762c54;
  --bar2: #40162c;
  --tabs: #281820;
  --panel: #301e27;
  --panel2: #27171f;
  --panel3: #402a35;
  --line: #593849;
  --line-soft: #49303c;
  --odd: #ffd061;
  --odd-soft: #ffe092;
  --action-hover: #ffe092;
  --text: #fff0f6;
  --muted: #b59aa8;
  --muted-light: #dec7d2;
  --accent: #ff83bd;
  --accent-dark: #c94c84;
  --info: #7ba8e6;
  --game-glow-1: #ff83bd88;
  --game-glow-2: #ffd06188;
  --game-glow-3: #7ba8e688;
  --game-glow-4: #da5b8f88;
  --game-glow-5: #9c72d588;
  --game-glow-6: #ef775b88;
  --shadow: 0 16px 38px #10050b80;
}

:root[data-palette="graphite"] {
  --bg: #181b20;
  --bg-deep: #0e1014;
  --bar1: #414754;
  --bar2: #252a33;
  --tabs: #1d2127;
  --panel: #252a31;
  --panel2: #20242a;
  --panel3: #333943;
  --line: #4c5563;
  --line-soft: #3e4652;
  --odd: #f5ca62;
  --odd-soft: #ffdf91;
  --action-hover: #ffdf91;
  --text: #f2f5fa;
  --muted: #9da7b4;
  --muted-light: #cbd2dc;
  --accent: #8dc5ff;
  --accent-dark: #5690ca;
  --info: #89a7ff;
  --game-glow-1: #8dc5ff88;
  --game-glow-2: #f5ca6288;
  --game-glow-3: #7894df88;
  --game-glow-4: #c36d9c88;
  --game-glow-5: #9878d288;
  --game-glow-6: #df765b88;
  --shadow: 0 16px 38px #0305098c;
}

:root[data-color-mode="light"] {
  color-scheme: light;
  --bg: #eef4f1;
  --bg-deep: #ffffff;
  --tabs: #f8fbf9;
  --panel: #ffffff;
  --panel2: #e8f0ec;
  --panel3: #dce8e2;
  --line: #728b7e;
  --line-soft: #d1ddd7;
  --text: #10241b;
  --muted: #5b7066;
  --muted-light: #354d42;
  --bar1: #087443;
  --bar2: #064b2c;
  --accent: #087443;
  --accent-dark: #056039;
  --odd: #d69b00;
  --odd-soft: #edbc3e;
  --action-hover: color-mix(in srgb, var(--odd) 84%, white);
  --action-border: #8a6500;
  --on-action: #2b2100;
  --action-on-dark: #ffd23f;
  --danger: #b43f3f;
  --info: #356fae;
  --on-hero-muted: #d2e1da;
  --on-accent: #ffffff;
  --focus-ring: var(--accent);
  --positive-text: #087443;
  --negative-text: #a13737;
  --warning-text: #775400;
  --game-glow-1: #08744355;
  --game-glow-2: #c58c0055;
  --game-glow-3: #356fae55;
  --game-glow-4: #a83f6b55;
  --game-glow-5: #7650ad55;
  --game-glow-6: #b94e2d55;
  --shadow: 0 16px 38px #142c2029;
}

:root[data-color-mode="light"][data-palette="core"] {
  --bar1: #1b2230;
  --bar2: #10151d;
  --accent: #c8103a;
  --accent-dark: #9c0c2d;
  --odd: #c8103a;
  --odd-soft: #e8496c;
  --info: #3a63c0;
}

:root[data-color-mode="light"][data-palette="betfabriq"] {
  --bar1: #1b2230;
  --bar2: #10151d;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --odd: #c2410c;
  --odd-soft: #ea580c;
  --info: #3a63c0;
}

:root[data-color-mode="light"][data-palette="casino-blue"] {
  --bar1: #176da1;
  --bar2: #0d4165;
  --accent: #0873ab;
  --accent-dark: #075783;
  --odd: #d49a16;
  --odd-soft: #edbd56;
  --info: #526fc0;
  --game-glow-1: #0879b555;
  --game-glow-2: #d49a1655;
  --game-glow-3: #526fc055;
  --game-glow-4: #a8407055;
  --game-glow-5: #7650ad55;
  --game-glow-6: #bd513755;
}

:root[data-color-mode="light"][data-palette="royal"] {
  --bar1: #654596;
  --bar2: #392658;
  --accent: #7350a5;
  --accent-dark: #583b82;
  --odd: #c78f12;
  --odd-soft: #e4b84d;
  --info: #456eb9;
  --game-glow-1: #7350a555;
  --game-glow-2: #c78f1255;
  --game-glow-3: #456eb955;
  --game-glow-4: #b4487955;
  --game-glow-5: #815bb255;
  --game-glow-6: #bd513755;
}

:root[data-color-mode="light"][data-palette="ember"] {
  --bar1: #98442f;
  --bar2: #5e281b;
  --accent: #ad452c;
  --accent-dark: #873522;
  --odd: #c58b12;
  --odd-soft: #e2b54e;
  --info: #3e70ad;
  --game-glow-1: #ad452c55;
  --game-glow-2: #c58b1255;
  --game-glow-3: #3e70ad55;
  --game-glow-4: #ad405f55;
  --game-glow-5: #7650a555;
  --game-glow-6: #c8583455;
}

:root[data-color-mode="light"][data-palette="burgundy"] {
  --bar1: #8f2e5e;
  --bar2: #591a38;
  --accent: #9b2f67;
  --accent-dark: #77204d;
  --odd: #c58b12;
  --odd-soft: #e2b54e;
  --info: #3f70b4;
  --game-glow-1: #9b2f6755;
  --game-glow-2: #c58b1255;
  --game-glow-3: #3f70b455;
  --game-glow-4: #a93e7055;
  --game-glow-5: #7550a555;
  --game-glow-6: #be503755;
}

:root[data-color-mode="light"][data-palette="graphite"] {
  --bar1: #3f5875;
  --bar2: #273a51;
  --accent: #285f9b;
  --accent-dark: #1f4b7c;
  --odd: #bd850e;
  --odd-soft: #deb044;
  --info: #4f6eb8;
  --game-glow-1: #285f9b55;
  --game-glow-2: #bd850e55;
  --game-glow-3: #4f6eb855;
  --game-glow-4: #9f456e55;
  --game-glow-5: #6b55a255;
  --game-glow-6: #b6523a55;
}

:root[data-color-mode="gray"] {
  color-scheme: dark;
  --bg: #464f50;
  --bg-deep: #303738;
  --tabs: #394142;
  --panel: #3c4546;
  --panel2: #414a4b;
  --panel3: #4c5657;
  --line: #a4aeaf;
  --line-soft: #657071;
  --text: #f4f7f7;
  --muted: #c2cdce;
  --muted-light: #e3e9ea;
  --bar1: #17684d;
  --bar2: #25433a;
  --accent: #55df9a;
  --accent-dark: #37c981;
  --on-accent: #07170f;
  --info: #91c2ff;
  --on-hero-muted: #d7e1dd;
  --focus-ring: var(--accent);
  --positive-text: #8eeec3;
  --negative-text: #ffaaa2;
  --warning-text: #ffe38a;
  --shadow: 0 16px 38px #151b1b80;
}

:root[data-color-mode="gray"][data-palette="core"] {
  --bar1: #1d242e;
  --bar2: #121821;
  --accent: #ff5c7f;
  --accent-dark: #e02a55;
}

:root[data-color-mode="gray"][data-palette="betfabriq"] {
  --bar1: #1d242e;
  --bar2: #121821;
  --accent: #fdba74;
  --accent-dark: #ea580c;
}

:root[data-color-mode="gray"][data-palette="casino-blue"] {
  --bar1: #23688e;
  --bar2: #294555;
  --accent: #79cbff;
  --accent-dark: #52b5ed;
}

:root[data-color-mode="gray"][data-palette="royal"] {
  --bar1: #6b4d89;
  --bar2: #43394f;
  --accent: #d5b5ff;
  --accent-dark: #b68bea;
}

:root[data-color-mode="gray"][data-palette="ember"] {
  --bar1: #8c4b3c;
  --bar2: #513b36;
  --accent: #ffad91;
  --accent-dark: #ee8665;
}

:root[data-color-mode="gray"][data-palette="burgundy"] {
  --bar1: #8c3f69;
  --bar2: #543744;
  --accent: #ffadd3;
  --accent-dark: #ef83b7;
}

:root[data-color-mode="gray"][data-palette="graphite"] {
  --bar1: #596273;
  --bar2: #3d444e;
  --accent: #b7d7ff;
  --accent-dark: #8cbbed;
}

:root[data-action-color="core-red"] {
  --odd: #ff174f;
  --odd-soft: #ff5c7f;
  --action-hover: #ff5c7f;
  --action-border: #ff174f;
  --on-action: #ffffff;
  --action-on-dark: #ff5c7f;
}

:root[data-action-color="gold"] {
  --odd: #ffd23f;
  --odd-soft: #ffdf70;
  --action-hover: #ffdf70;
  --action-border: #ffd23f;
  --on-action: #2b2100;
  --action-on-dark: #ffd23f;
}

:root[data-action-color="coral"] {
  --odd: #ff806d;
  --odd-soft: #ffab9f;
  --action-hover: #ffab9f;
  --action-border: #ff806d;
  --on-action: #2b0d08;
  --action-on-dark: #ff806d;
}

:root[data-action-color="aqua"] {
  --odd: #55d9e6;
  --odd-soft: #8ae8ef;
  --action-hover: #8ae8ef;
  --action-border: #55d9e6;
  --on-action: #052126;
  --action-on-dark: #55d9e6;
}

:root[data-action-color="lime"] {
  --odd: #a5df58;
  --odd-soft: #c3ec8a;
  --action-hover: #c3ec8a;
  --action-border: #a5df58;
  --on-action: #142307;
  --action-on-dark: #a5df58;
}

:root[data-action-color="violet"] {
  --odd: #c5a3ff;
  --odd-soft: #d7c0ff;
  --action-hover: #d7c0ff;
  --action-border: #c5a3ff;
  --on-action: #1b0a32;
  --action-on-dark: #c5a3ff;
}

:root[data-action-color="rose"] {
  --odd: #ff8fc8;
  --odd-soft: #ffb6d8;
  --action-hover: #ffb6d8;
  --action-border: #ff8fc8;
  --on-action: #320d20;
  --action-on-dark: #ff8fc8;
}

:root[data-color-mode="light"][data-action-color="core-red"] {
  --odd: #c8103a;
  --odd-soft: #e8496c;
  --action-hover: #e8496c;
  --action-border: #8d0c2b;
  --on-action: #ffffff;
  --action-on-dark: #ff5c7f;
}

:root[data-color-mode="light"][data-action-color="gold"] {
  --odd: #ffd23f;
  --odd-soft: #ffdf70;
  --action-hover: #ffdf70;
  --action-border: #8a6500;
  --on-action: #2b2100;
  --action-on-dark: #ffd23f;
}

:root[data-color-mode="light"][data-action-color="coral"] {
  --odd: #a94033;
  --odd-soft: #8f342a;
  --action-hover: #8f342a;
  --action-border: #a94033;
  --on-action: #ffffff;
  --action-on-dark: #ffc0c9;
}

:root[data-color-mode="light"][data-action-color="aqua"] {
  --odd: #006f80;
  --odd-soft: #005d6b;
  --action-hover: #005d6b;
  --action-border: #006f80;
  --on-action: #ffffff;
  --action-on-dark: #8be9f2;
}

:root[data-color-mode="light"][data-action-color="lime"] {
  --odd: #4b7418;
  --odd-soft: #3d6012;
  --action-hover: #3d6012;
  --action-border: #4b7418;
  --on-action: #ffffff;
  --action-on-dark: #c3ec8a;
}

:root[data-color-mode="light"][data-action-color="violet"] {
  --odd: #6d3fc0;
  --odd-soft: #5930a2;
  --action-hover: #5930a2;
  --action-border: #6d3fc0;
  --on-action: #ffffff;
  --action-on-dark: #dccbff;
}

:root[data-color-mode="light"][data-action-color="rose"] {
  --odd: #a72c69;
  --odd-soft: #8d2458;
  --action-hover: #8d2458;
  --action-border: #a72c69;
  --on-action: #ffffff;
  --action-on-dark: #ffc4df;
}

:root[data-color-mode="gray"][data-action-color="core-red"] { --action-on-dark: #ff8098; }
:root[data-color-mode="gray"][data-action-color="coral"] { --action-on-dark: #ffc0c9; }
:root[data-color-mode="gray"][data-action-color="aqua"] { --action-on-dark: #8be9f2; }
:root[data-color-mode="gray"][data-action-color="lime"] { --action-on-dark: #c3ec8a; }
:root[data-color-mode="gray"][data-action-color="violet"] { --action-on-dark: #dccbff; }
:root[data-color-mode="gray"][data-action-color="rose"] { --action-on-dark: #ffc4df; }

* { box-sizing: border-box; }
html { min-height: 100%; overflow-x: clip; background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
:root[data-color-mode="light"] { color-scheme: light; }
body {
  margin: 0; min-width: 300px; min-height: 100vh; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.45;
}
button, input, select { font: inherit; }
input, select { accent-color: var(--accent); }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
/* The shell paints before its deferred scripts run (index.html). Its built-in labels stay invisible until app.js has
   written them in the player's language, so a visitor never reads the English placeholders first. */
:root:not([data-shell-language]) :is([data-i18n], [data-i18n-placeholder]) { visibility: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ── Shared top bar ───────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  height: 56px; padding: 0 18px;
  background: linear-gradient(180deg, var(--bar1), var(--bar2));
  border-bottom: 1px solid color-mix(in srgb, var(--bar2) 78%, transparent);
  box-shadow: 0 2px 12px #02040742;
}
.brand { min-height: 44px; flex: none; display: inline-flex; align-items: center; font-size: 1.692rem; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; }
.brand-copy { display: inline-flex; align-items: baseline; }
.brand-logo { display: block; width: auto; height: 30px; max-width: 170px; object-fit: contain; filter: drop-shadow(0 1px 2px #0008); }
/* Keep the original wordmark; tint only its Q using the selected action color. */
.brand-themed-q { position: relative; }
.brand-themed-q::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  mask: var(--brand-logo-mask) center / contain no-repeat;
  background: linear-gradient(135deg, color-mix(in srgb, var(--odd) 60%, white), var(--odd) 60%, color-mix(in srgb, var(--odd) 75%, black));
  clip-path: inset(0 0 0 85%);
}
.brand-a { color: #fff; }
.brand-b { color: var(--action-on-dark); }
.topnav { display: flex; align-self: stretch; gap: 22px; color: color-mix(in srgb, var(--on-bar) 72%, transparent); font-weight: 600; }
.topnav a { display: flex; align-items: center; position: relative; white-space: nowrap; }
.topnav a:hover { color: #fff; }
.topnav a.active { color: #fff; }
.topnav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--accent); border-radius: 2px; }
.topnav .cms-nav-action { appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; padding: 0; cursor: pointer; }
.cms-nav-group { position: relative; }
.cms-nav-group > summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.cms-nav-group > summary::-webkit-details-marker { display: none; }
.cms-nav-chevron { display: inline-flex; margin-inline-start: 2px; }
.cms-nav-chevron .ui-icon { width: 12px; height: 12px; }
.cms-nav-group[open] > summary > .cms-nav-chevron { transform: rotate(180deg); }
.topnav > .cms-nav-group { display: flex; align-items: center; }
.topnav .cms-nav-group-items {
  position: absolute; top: calc(100% + 1px); left: 0; z-index: 80; min-width: 210px; display: grid; padding: 7px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--tabs); box-shadow: var(--shadow); color: var(--text);
}
.topnav .cms-nav-group-items a, .topnav .cms-nav-group-items button, .topnav .cms-nav-group-items summary {
  min-height: 44px; display: flex; align-items: center; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted-light); white-space: nowrap;
}
.topnav .cms-nav-group-items a:hover, .topnav .cms-nav-group-items button:hover, .topnav .cms-nav-group-items summary:hover { background: var(--panel3); color: var(--text); }
.topnav .cms-nav-group-items .cms-nav-group-items { top: 0; left: calc(100% + 5px); }

.header-actions { display: flex; align-items: center; gap: 10px; position: relative; margin-left: auto; }
.cms-quick-actions { display: flex; align-items: center; gap: 5px; }
.cms-quick-actions > a, .cms-quick-actions > button, .cms-quick-actions > .cms-nav-group > summary {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid #ffffff25; border-radius: 7px;
  background: color-mix(in srgb, var(--bar2) 72%, transparent); color: var(--on-bar); font: inherit; font-size: .7692rem; font-weight: 750; cursor: pointer;
}
.cms-quick-actions .cms-nav-group-items {
  position: absolute; top: calc(100% + 7px); right: 0; z-index: 85; min-width: 190px; display: grid; padding: 7px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--tabs); color: var(--text); box-shadow: var(--shadow);
}
.cms-quick-actions .cms-nav-group-items a, .cms-quick-actions .cms-nav-group-items button, .cms-quick-actions .cms-nav-group-items summary { min-height: 44px; display: flex; align-items: center; padding: 0 9px; border: 0; background: transparent; color: var(--muted-light); }
.header-mode-options {
  height: 46px; display: flex; align-items: center; gap: 3px; padding: 1px;
  border: 1px solid #ffffff25; border-radius: 8px; background: color-mix(in srgb, var(--bar2) 72%, transparent);
}
.header-mode-options button {
  height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 8px;
  border: 1px solid transparent; border-radius: 6px; background: transparent; color: color-mix(in srgb, #fff 72%, var(--muted-light));
  font-size: 0.7692rem; font-weight: 750; cursor: pointer;
}
.header-mode-options button:hover { color: #fff; background: #ffffff12; }
.header-mode-options button[data-selected] { border-color: #ffffff45; background: #ffffff1d; color: #fff; box-shadow: inset 0 -2px 0 var(--action-on-dark); }
.header-mode-options button:focus-visible { outline: 2px solid var(--action-on-dark); outline-offset: 1px; }
.header-mode-options svg { width: 15px; height: 15px; flex: none; }
.header-theme { position: relative; flex: none; }
.header-theme > summary {
  min-width: 44px; height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 9px;
  border: 1px solid #ffffff25; border-radius: 8px; background: color-mix(in srgb, var(--bar2) 72%, transparent);
  color: #fff; font-size: 0.7692rem; font-weight: 750; cursor: pointer; list-style: none;
}
.header-theme > summary::-webkit-details-marker { display: none; }
.header-theme > summary:hover, .header-theme[open] > summary { border-color: #ffffff55; background: color-mix(in srgb, var(--bar2) 88%, transparent); }
.header-theme > summary:focus-visible { outline: 2px solid var(--action-on-dark); outline-offset: 2px; }
.header-theme > summary > svg { width: 16px; height: 16px; color: color-mix(in srgb, var(--accent) 48%, white); }
.header-theme-preview { width: 28px; height: 20px; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid #ffffff42; border-radius: 5px; }
.header-theme-preview i:nth-child(1) { background: var(--bar1); }
.header-theme-preview i:nth-child(2) { background: var(--accent); }
.header-theme-preview i:nth-child(3) { background: var(--odd); }
.header-theme-popover {
  position: absolute; right: 0; top: calc(100% + 9px); z-index: 85; width: 320px; display: grid; gap: 9px; padding: 13px;
  max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  border: 1px solid var(--line); border-radius: 10px; background: var(--tabs); color: var(--text); box-shadow: var(--shadow);
}
:root:not([data-core-appearance="enabled"]) [data-palette-option="core"],
:root:not([data-core-appearance="enabled"]) [data-action-color-option="core-red"],
:root:not([data-core-appearance="enabled"]) [data-font-option="core"] { display: none; }
.header-theme-popover > small { color: var(--muted); font-size: 0.6923rem; line-height: 1.35; }
.header-mode-compact:empty { display: none; }
.header-mode-compact:not(:empty) { display: grid; gap: 6px; padding-bottom: 9px; border-bottom: 1px solid var(--line-soft); }
.header-mode-compact .header-mode-options { width: 100%; height: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; border: 0; background: transparent; }
.header-mode-compact .header-mode-options button { width: auto; min-width: 0; }
.connection { display: flex; align-items: center; gap: 7px; color: color-mix(in srgb, var(--on-bar) 74%, transparent); font-size: 0.8462rem; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transition: background .2s, box-shadow .2s; }
.dot.live { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.dot.offline { background: var(--danger); }
.notification-button {
  position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border: 1px solid #ffffff25; border-radius: 50%; background: color-mix(in srgb, var(--bar2) 72%, transparent); color: var(--on-bar);
}
.notification-button:hover { border-color: #ffffff55; background: color-mix(in srgb, var(--bar2) 88%, transparent); }
.notification-button svg { width: 19px; height: 19px; }
.notification-badge {
  position: absolute; top: -4px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center; border: 2px solid var(--bar1); border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 0.6923rem; font-weight: 800; line-height: 1;
}

/* A visitor's Sign in and Register on a brand without the demo entry (owner, 2026-10-23; docs/GUEST-ENTRY.md): two
   compact buttons where the wallet pill would say "Demo play"; Register in the brand's action colour. */
.header-auth { display: flex; flex: none; align-items: center; gap: 6px; }
.header-auth .button { min-height: 40px; padding: 0 13px; font-size: 0.8462rem; font-weight: 800; white-space: nowrap; }
.header-auth .header-sign-in { border-color: #ffffff3d; background: color-mix(in srgb, var(--bar2) 78%, transparent); color: var(--on-bar); }
.header-auth .header-sign-in:hover { border-color: var(--action-on-dark); background: color-mix(in srgb, var(--bar2) 92%, transparent); }
.header-auth .button:focus-visible { outline: 2px solid var(--action-on-dark); outline-offset: 2px; }
/* The visitor's language choice inside the Appearance popover (the account button is away): the popover's own spacing. */
.header-theme-popover > .account-language { padding: 0 0 9px; background: transparent; }

/* Wallet pill and menu (owner, 2026-10-19, after Pixup): coin, balance and wallet icon in an action-colour outline;
   the menu lists each currency's balance and ends in a full-width Deposit button. */
.wallet-anchor { position: relative; flex: none; min-width: 0; }
.balance-pill {
  height: 44px; max-width: 230px; display: flex; align-items: center; gap: 7px;
  padding: 0 10px 0 7px; border: 1px solid color-mix(in srgb, var(--action-on-dark) 72%, transparent); border-radius: 8px;
  background: color-mix(in srgb, var(--bar2) 78%, transparent); color: var(--on-bar); font: inherit; cursor: pointer; text-align: start;
}
.balance-pill:hover, .balance-pill[aria-expanded="true"] { background: color-mix(in srgb, var(--bar2) 92%, transparent); border-color: var(--action-on-dark); }
.balance-pill:focus-visible { outline: 2px solid var(--action-on-dark); outline-offset: 2px; }
.balance-pill > .balance-wallet { width: 18px; height: 18px; flex: none; color: var(--action-on-dark); }
.balance-coin { display: inline-flex; flex: none; }
.balance-coin:empty { display: none; }
.balance-amount { min-width: 0; overflow: hidden; color: var(--on-bar); font-size: 1rem; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.balance-code { color: color-mix(in srgb, var(--on-bar) 68%, transparent); font-size: 0.7692rem; font-weight: 700; }
.currency-coin { width: 24px; height: 24px; flex: none; border-radius: 50%; }
.currency-coin-symbol {
  display: inline-grid; place-items: center; background: radial-gradient(circle at 32% 28%, var(--odd-soft), var(--odd) 72%);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--on-action) 16%, transparent); color: var(--on-action); font-size: 0.8462rem; font-weight: 800; line-height: 1;
}
.wallet-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 70; width: 264px; max-height: calc(100dvh - 76px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--tabs); color: var(--text); box-shadow: var(--shadow);
}
/* About seven rows, a half row more showing that the list scrolls (owner, 2026-10-19): the rows scroll inside the
   menu while the note and Deposit stay below them; on a short screen the rows give up height first. */
.wallet-rows { display: grid; max-height: calc(7.5 * 38px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.wallet-rows:empty { display: none; }
.wallet-row {
  width: 100%; min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 0; border-radius: 7px;
  background: transparent; color: var(--muted-light); font: inherit; font-size: 0.9231rem; text-align: start;
}
button.wallet-row { cursor: pointer; }
button.wallet-row:hover { background: var(--panel3); color: var(--text); }
button.wallet-row:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.wallet-row[aria-current="true"] { color: var(--text); font-weight: 800; }
.wallet-row[aria-disabled="true"] { cursor: wait; opacity: .7; }
.wallet-row-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; }
.wallet-row[aria-current="true"] .wallet-row-dot { background: var(--odd); }
.wallet-row-code { display: inline-flex; align-items: baseline; gap: 4px; flex: none; }
.wallet-row-code small { color: var(--muted); font-size: 0.6923rem; font-weight: 600; }
.wallet-row-balance { min-width: 0; margin-inline-start: auto; overflow: hidden; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.wallet-menu-error { margin: 4px 10px; color: var(--muted-light); font-size: 0.7692rem; line-height: 1.4; }
.wallet-menu-note { margin: 0 10px; color: var(--muted); font-size: 0.6923rem; line-height: 1.35; }
.wallet-menu-guest { display: grid; gap: 8px; }
.wallet-menu-guest p { margin: 2px 8px 0; color: var(--muted-light); font-size: 0.8462rem; line-height: 1.4; }
.wallet-menu-auth { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 8px; }
.wallet-menu-auth .button { min-height: 44px; padding: 0 9px; font-size: 0.8462rem; }
.wallet-deposit { width: 100%; }
.profile-button {
  width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff30; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--on-accent);
  font-weight: 800; cursor: pointer;
}
.profile-button:hover, .profile-button[aria-expanded="true"] { box-shadow: 0 0 0 3px #ffffff1a; }

.account-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 280px; max-height: calc(100dvh - 76px); overflow-y: auto;
  border: 1px solid var(--line); border-radius: 10px; background: var(--tabs);
  box-shadow: var(--shadow); z-index: 70;
}
.account-head { display: flex; align-items: center; gap: 11px; padding: 15px; border-bottom: 1px solid var(--line); background: var(--panel); }
/* Shared account avatar atlas: three equal columns by two equal rows. */
.player-avatar { display:block; width:100%; height:100%; border-radius:50%; background-color:#fff7ed; background-image:url('/avatars/animals-v2.png?v=sha256-c8eeea5180d57e33705a0c254cd06011'); background-size:300% 200%; background-repeat:no-repeat; }
.player-avatar[data-avatar="fox"] { background-position:0% 0%; }
.player-avatar[data-avatar="panda"] { background-position:50% 0%; }
.player-avatar[data-avatar="owl"] { background-position:100% 0%; }
.player-avatar[data-avatar="otter"] { background-position:0% 100%; }
.player-avatar[data-avatar="cat"] { background-position:50% 100%; }
.player-avatar[data-avatar="wolf"] { background-position:100% 100%; }
#menu-initial.player-avatar { background-image:url('/avatars/animals-v2.png?v=sha256-c8eeea5180d57e33705a0c254cd06011'); background-size:300% 200%; }
.avatar-picker { border:0; padding:0; margin:0 0 8px; min-width:0; }
.avatar-picker legend { font-weight:700; }
.avatar-picker p { color:var(--muted); font-size:0.9231rem; margin:6px 0 12px; }
.avatar-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.avatar-options .avatar-option { display:flex; flex-direction:column; align-items:center; gap:6px; min-height:88px; padding:8px; cursor:pointer; position:relative; }
.avatar-option .player-avatar { width:64px; height:64px; outline:2px solid transparent; outline-offset:3px; }
.avatar-option input:checked + .player-avatar { outline-color:var(--accent); }
.avatar-option input:focus-visible + .player-avatar { outline:3px solid var(--text); outline-offset:4px; }
.avatar-option:has(input:disabled) { opacity:.6; cursor:wait; }
.account-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background-color: var(--accent); color: var(--on-accent); font-weight: 800; }
.account-head div { display: flex; min-width: 0; flex-direction: column; }
.account-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-head small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu a, .account-menu > button {
  width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; border: 0; border-bottom: 1px solid var(--line-soft);
  background: transparent; color: var(--muted-light); cursor: pointer; text-align: left;
}
.account-menu a:last-child, .account-menu > button:last-child { border-bottom: 0; }
.account-menu a:hover, .account-menu > button:hover { background: var(--panel3); color: var(--text); }
.account-menu svg { width: 18px; height: 18px; color: var(--accent); }
.account-auth-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px;
  border-bottom: 1px solid var(--line-soft); background: var(--bg);
}
.account-auth-actions .button { min-height: 44px; padding: 0 9px; font-size: 0.8462rem; }
.account-auth-actions .account-auth-loading { grid-column: 1 / -1; padding: 2px; color: var(--muted); font-size: 0.8462rem; text-align: center; }
.account-auth-actions .account-auth-status { grid-column: 1 / -1; color: var(--muted-light); font-size: 0.7692rem; line-height: 1.35; }

.email-verification-state { display: grid; gap: 0.45rem; padding: 0.75rem; border: 1px solid color-mix(in srgb, var(--warning-text) 42%, var(--border)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--warning-text) 7%, transparent); }
.email-verification-state strong { color: var(--text); font-size: 0.9rem; }
.email-verification-state small { color: var(--muted); line-height: 1.45; }
.email-verification-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; }
.email-verification-actions [data-verification-countdown] { color: var(--muted); font-size: 0.78rem; min-height: 1.1rem; }
.account-auth-actions.authenticated { grid-template-columns: 1fr; }
.cms-account-navigation { display: grid; border-bottom: 1px solid var(--line-soft); }
.account-menu .cms-account-navigation a, .account-menu .cms-account-navigation button, .account-menu .cms-account-navigation summary {
  width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--line-soft);
  background: transparent; color: var(--muted-light); font: inherit; cursor: pointer; text-align: left;
}
.account-menu .cms-account-navigation a:hover, .account-menu .cms-account-navigation button:hover, .account-menu .cms-account-navigation summary:hover { background: var(--panel3); color: var(--text); }
.account-menu .cms-account-navigation .cms-nav-group-items { padding-left: 12px; background: var(--bg); }
.account-menu .cms-account-navigation .cms-nav-group-items .cms-nav-group-items { padding-left: 18px; }

.casino-leaderboard {
  margin: 18px 0 24px; padding: 22px; overflow: hidden; position: relative;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border)); border-radius: var(--radius-lg);
  background: radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 42%), linear-gradient(135deg, var(--panel), var(--panel2));
  box-shadow: var(--shadow);
}
.casino-leaderboard::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 45%, color-mix(in srgb, white 3%, transparent)); }
.leaderboard-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; position: relative; z-index: 1; }
.leaderboard-head h2 { margin: 3px 0 4px; font-size: clamp(1.25rem, 2vw, 1.75rem); }
.leaderboard-head p { margin: 0; color: var(--muted); }
.leaderboard-tabs { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: color-mix(in srgb, var(--bg) 72%, transparent); }
.leaderboard-tabs button { min-height: 36px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.leaderboard-tabs button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 5px 18px color-mix(in srgb, var(--accent) 28%, transparent); }
.casino-leaderboard-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 18px 0 0; padding: 0; position: relative; z-index: 1; }
.casino-leaderboard-list li { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 11px; background: color-mix(in srgb, var(--panel3) 86%, transparent); }
.casino-leaderboard-list li:first-child { border-color: color-mix(in srgb, #f5c84c 55%, var(--border)); background: linear-gradient(90deg, color-mix(in srgb, #f5c84c 10%, var(--panel3)), var(--panel3)); }
.leaderboard-rank { text-align: center; font-weight: 850; color: var(--muted); }
.casino-leaderboard-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-rounds { color: var(--muted); font-size: .78rem; }
.casino-leaderboard-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.casino-leaderboard-list b.positive { color: var(--positive-text); }
.casino-leaderboard-list b.negative { color: var(--negative-text); }
.leaderboard-state { min-height: 90px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); }
.leaderboard-state button { border: 0; background: transparent; color: var(--accent); font-weight: 800; cursor: pointer; }
.leaderboard-spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.casino-competition { isolation: isolate; padding: 0; background: linear-gradient(145deg, color-mix(in srgb, var(--panel) 94%, #091128), color-mix(in srgb, var(--panel2) 93%, #1b1431)); }
.casino-competition::after { background: linear-gradient(110deg, transparent 32%, color-mix(in srgb, white 4%, transparent) 50%, transparent 68%); }
.competition-glow { position: absolute; z-index: -1; width: 320px; height: 320px; right: -110px; top: -180px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, transparent); filter: blur(45px); pointer-events: none; }
.competition-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, auto) auto; align-items: center; gap: 22px; padding: 24px 24px 19px; position: relative; z-index: 1; }
.competition-title { min-width: 0; position: relative; }
.competition-title .eyebrow { display: block; margin-bottom: 4px; color: color-mix(in srgb, var(--accent) 88%, white); }
.competition-title h2 { margin: 0; max-width: 22ch; font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.08; letter-spacing: -.025em; }
.competition-title p { margin: 8px 0 0; max-width: 62ch; color: var(--muted-light); font-size: .88rem; line-height: 1.45; }
.competition-countdown { display: grid; grid-template-columns: repeat(4, minmax(55px, 1fr)); gap: 7px; }
.competition-prize-pool { min-width: 190px; display: grid; gap: 3px; padding: 13px 15px; border: 1px solid color-mix(in srgb, #f5c84c 38%, var(--border)); border-radius: 15px; background: linear-gradient(145deg, color-mix(in srgb, #f5c84c 12%, var(--panel3)), color-mix(in srgb, var(--bg-deep) 82%, transparent)); box-shadow: inset 0 1px color-mix(in srgb, white 8%, transparent); }
.competition-prize-pool span, .competition-position span { color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.competition-prize-pool strong { color: #f7d66f; font-size: clamp(1.22rem, 2vw, 1.72rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
:root[data-color-mode="light"] .competition-prize-pool strong { color: #765400; }
.competition-prize-pool small { max-width: 28ch; color: var(--muted-light); font-size: .63rem; line-height: 1.35; }
.competition-time-unit { min-width: 58px; min-height: 65px; display: grid; place-items: center; align-content: center; padding: 7px 8px; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--bg-deep) 78%, transparent); box-shadow: inset 0 1px color-mix(in srgb, white 5%, transparent); }
.competition-time-unit strong { color: var(--text); font-size: 1.25rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .025em; }
.competition-time-unit small { margin-top: 6px; color: var(--muted); font-size: .6rem; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
.competition-toolbar { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 24px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: color-mix(in srgb, var(--bg-deep) 48%, transparent); position: relative; z-index: 1; }
.competition-tabs { padding: 3px; }
.competition-tabs button { min-height: 44px; }
.competition-currency { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.competition-currency strong { margin-left: 4px; color: var(--text); }
.competition-position { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 24px 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 27%, var(--border)); border-radius: 13px; background: var(--line-soft); position: relative; z-index: 1; }
.competition-position > div { min-width: 0; display: grid; gap: 3px; align-content: center; min-height: 72px; padding: 11px 14px; background: color-mix(in srgb, var(--panel3) 90%, transparent); }
.competition-position strong { overflow: hidden; color: var(--text); font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.competition-position small { overflow: hidden; color: var(--muted); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.competition-position-rank strong { color: color-mix(in srgb, var(--accent) 78%, white); font-size: 1.28rem; }
.competition-position-guest { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-right: 10px; background: color-mix(in srgb, var(--accent) 6%, var(--line-soft)); }
.competition-position-guest .button { min-height: 44px; }
.casino-competition-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 16px 24px 24px; position: relative; z-index: 1; }
.casino-competition-list li { min-width: 0; min-height: 58px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: color-mix(in srgb, var(--panel3) 82%, transparent); transition: border-color .18s ease, transform .18s ease; }
.casino-competition-list li:hover { border-color: color-mix(in srgb, var(--accent) 33%, var(--border)); transform: translateY(-1px); }
.casino-competition-list b { color: var(--text); font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.casino-competition-list time { min-width: 42px; color: var(--muted); font-size: .68rem; text-align: right; }
.competition-player { min-width: 0; display: grid; gap: 2px; }
.competition-player strong, .competition-player small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.competition-player strong { font-size: .85rem; }
.competition-player small { color: var(--muted); font-size: .68rem; }
.competition-rank { min-width: 30px; color: var(--muted); font-size: .78rem; font-weight: 850; text-align: center; }
.competition-rank i { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--panel); color: var(--text); font-style: normal; box-shadow: inset 0 0 0 1px var(--border); }
.competition-place-1 { border-color: color-mix(in srgb, #f5c84c 52%, var(--border)) !important; background: linear-gradient(90deg, color-mix(in srgb, #f5c84c 12%, var(--panel3)), var(--panel3)) !important; }
.competition-place-1 .competition-rank i { color: #2b2100; background: linear-gradient(145deg, #ffe891, #e4b83e); box-shadow: 0 4px 14px color-mix(in srgb, #e4b83e 25%, transparent); }
.competition-place-2 .competition-rank i { color: #27303b; background: linear-gradient(145deg, #eef3f8, #9ba8b7); }
.competition-place-3 .competition-rank i { color: #311d13; background: linear-gradient(145deg, #e8a77d, #a96643); }
.competition-pulse { width: 9px; height: 9px; justify-self: center; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px color-mix(in srgb, #34d399 10%, transparent); }
.competition-previous > .competition-history-cycle { grid-column: 1 / -1; min-height: 0; display: block; padding: 0; overflow: clip; }
.competition-history-cycle > details > summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 13px; cursor: pointer; list-style: none; }
.competition-history-cycle > details > summary::-webkit-details-marker { display: none; }
.competition-history-cycle > details > summary > span { min-width: 0; display: grid; gap: 2px; }
.competition-history-cycle > details > summary strong { overflow: hidden; color: var(--text); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.competition-history-cycle > details > summary small { color: var(--muted); font-size: .65rem; }
.competition-history-cycle > details > summary > b { color: #f7d66f; font-size: .75rem; }
.competition-history-cycle > details > ol { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0 9px 9px; }
.competition-history-cycle > details > p { margin: 0; padding: 0 13px 13px; color: var(--muted); font-size: .72rem; }
.competition-drawers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 24px 22px; position: relative; z-index: 1; }
.competition-drawers details { overflow: clip; border: 1px solid var(--line-soft); border-radius: 12px; background: color-mix(in srgb, var(--panel3) 80%, transparent); }
.competition-drawers summary { min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; color: var(--text); font-size: .78rem; font-weight: 800; cursor: pointer; list-style: none; }
.competition-drawers summary::-webkit-details-marker { display: none; }
.competition-drawers summary > .ui-icon { width: 16px; height: 16px; color: var(--accent); }
.competition-drawers details[open] summary > .ui-icon { transform: rotate(180deg); }
.competition-prize-tiers, .competition-rules { list-style: none; display: grid; gap: 5px; margin: 0; padding: 0 13px 13px; }
.competition-pool-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 13px 10px; }
.competition-pool-breakdown > span { min-width: 0; display: grid; gap: 2px; padding: 7px 8px; border-radius: 8px; background: color-mix(in srgb, var(--bg-deep) 65%, transparent); }
.competition-pool-breakdown small { color: var(--muted); font-size: .6rem; font-weight: 750; text-transform: uppercase; }
.competition-pool-breakdown strong { overflow: hidden; color: var(--text); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.competition-prize-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.competition-prize-tiers li { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; border-radius: 8px; background: color-mix(in srgb, var(--bg-deep) 65%, transparent); color: var(--muted-light); font-size: .68rem; }
.competition-prize-tiers strong { color: var(--text); font-variant-numeric: tabular-nums; }
.competition-rules li { position: relative; padding-left: 14px; color: var(--muted-light); font-size: .7rem; line-height: 1.4; }
.competition-rules li::before { content: ""; position: absolute; left: 1px; top: .48em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.competition-drawers details > p { margin: 0; padding: 0 13px 13px; color: var(--muted); font-size: .66rem; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .casino-competition-list li { transition: none; } }
.account-auth-actions.authenticated .button { width: 100%; }
.account-language, .account-theme { display: grid; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); background: var(--tabs); }
.account-language label, .account-theme-label { color: var(--text); font-size: 0.8462rem; font-weight: 750; }
.account-language label { display: flex; align-items: center; gap: 7px; }
.account-language label svg, .account-theme-label svg { width: 16px; height: 16px; color: var(--accent); }
.account-language small, .account-theme > small { color: var(--muted); font-size: 0.6923rem; line-height: 1.35; }
.account-language select {
  width: 100%; height: 44px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg-deep); color: var(--text); outline: none; cursor: pointer;
}
.account-language select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.account-language select:disabled { color: var(--muted-light); cursor: not-allowed; opacity: .8; }
.account-language select[aria-busy="true"] { cursor: wait; }
.account-theme-label { display: flex; align-items: center; gap: 7px; }
.palette-options, .action-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.font-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.text-size-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.palette-options button, .action-options button, .font-options button, .text-size-options button {
  min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 7px; padding: 6px 7px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--bg-deep); color: var(--muted-light);
  font-size: 0.7692rem; font-weight: 700; cursor: pointer; text-align: left;
}
.font-options button, .text-size-options button { min-height: 52px; flex-direction: column; justify-content: center; gap: 2px; text-align: center; }
.palette-options button:hover, .action-options button:hover, .font-options button:hover, .text-size-options button:hover { border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); color: var(--text); }
.palette-options button[data-selected] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg-deep)); color: var(--text); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent); }
.action-options button[data-selected] { border-color: var(--action-border); background: color-mix(in srgb, var(--odd) 12%, var(--bg-deep)); color: var(--text); box-shadow: 0 0 0 2px color-mix(in srgb, var(--odd) 12%, transparent); }
.font-options button[data-selected], .text-size-options button[data-selected] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg-deep)); color: var(--text); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent); }
.palette-options button:focus-visible, .action-options button:focus-visible, .font-options button:focus-visible, .text-size-options button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.header-action-label, .header-typography-label, .header-text-size-label { margin-top: 2px; padding-top: 9px; border-top: 1px solid var(--line-soft); }
.font-sample { color: var(--accent); font-size: 1.231rem; font-weight: 750; line-height: 1; }
/* Each sample takes its typeface only while the Appearance panel is open: a page view fetches just the fonts of the
   typeface in use, not the four sample fonts (some engines lay out a closed <details>; GTmetrix, 2026-10-22). */
.header-theme[open] [data-font-option="core"] { font-family: "Sora", "Inter", system-ui, sans-serif; }
.header-theme[open] [data-font-option="system"] { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.header-theme[open] [data-font-option="rounded"] { font-family: "Rubik", system-ui, sans-serif; }
.header-theme[open] [data-font-option="compact"] { font-family: "Roboto Condensed", "Arial Narrow", sans-serif; }
.header-theme[open] [data-font-option="editorial"] { font-family: "Literata", Georgia, serif; }
.text-size-sample { color: var(--accent); font-size: 1.077rem; font-weight: 800; line-height: 1; }
.text-size-sample-small { font-size: 0.8462rem; }
.text-size-sample-large { font-size: 1.308rem; }
.palette-swatch { width: 28px; height: 22px; flex: none; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 5px; }
.palette-swatch i { display: block; }
.palette-swatch i:nth-child(3) { background: var(--odd); }
[data-palette-option="core"] .palette-swatch i:nth-child(1) { background: #e41645; }
[data-palette-option="core"] .palette-swatch i:nth-child(2) { background: #0a0d12; }
[data-palette-option="emerald"] .palette-swatch i:nth-child(1) { background: #0a5c3b; }
[data-palette-option="emerald"] .palette-swatch i:nth-child(2) { background: #2bbd72; }
[data-palette-option="casino-blue"] .palette-swatch i:nth-child(1) { background: #164f7a; }
[data-palette-option="casino-blue"] .palette-swatch i:nth-child(2) { background: #54b9ff; }
[data-palette-option="royal"] .palette-swatch i:nth-child(1) { background: #513a7f; }
[data-palette-option="royal"] .palette-swatch i:nth-child(2) { background: #bd8cff; }
[data-palette-option="ember"] .palette-swatch i:nth-child(1) { background: #74372f; }
[data-palette-option="ember"] .palette-swatch i:nth-child(2) { background: #ff8a61; }
[data-palette-option="burgundy"] .palette-swatch i:nth-child(1) { background: #762c54; }
[data-palette-option="burgundy"] .palette-swatch i:nth-child(2) { background: #ff83bd; }
[data-palette-option="graphite"] .palette-swatch i:nth-child(1) { background: #414754; }
[data-palette-option="graphite"] .palette-swatch i:nth-child(2) { background: #8dc5ff; }
.action-swatch { width: 28px; height: 22px; flex: none; border: 1px solid var(--line); border-radius: 5px; }
[data-action-color-option="core-red"] .action-swatch { background: linear-gradient(135deg, #ff174f 0 50%, #8d0c2b 50%); }
[data-action-color-option="gold"] .action-swatch { background: linear-gradient(135deg, #ffd23f 0 50%, #ffd23f 50%); }
[data-action-color-option="coral"] .action-swatch { background: linear-gradient(135deg, #ff806d 0 50%, #a94033 50%); }
[data-action-color-option="aqua"] .action-swatch { background: linear-gradient(135deg, #55d9e6 0 50%, #006f80 50%); }
[data-action-color-option="lime"] .action-swatch { background: linear-gradient(135deg, #a5df58 0 50%, #4b7418 50%); }
[data-action-color-option="violet"] .action-swatch { background: linear-gradient(135deg, #c5a3ff 0 50%, #6d3fc0 50%); }
[data-action-color-option="rose"] .action-swatch { background: linear-gradient(135deg, #ff8fc8 0 50%, #a72c69 50%); }

/* ── Casino category strip ──────────────────────────────────────────────── */
.category-tabs {
  position: sticky; top: 56px; z-index: 40;
  display: flex; align-items: stretch; gap: 3px; min-height: 58px; padding: 0 12px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--tabs); border-bottom: 1px solid var(--line);
}
.category-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.category-tab {
  position: relative; flex-shrink: 0; min-width: 78px; padding: 8px 9px 7px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 0.8462rem; font-weight: 600; white-space: nowrap;
  border-bottom: 3px solid transparent; cursor: pointer;
}
.category-tab:hover { color: var(--text); }
.category-tab.active {
  color: var(--text); border-bottom-color: var(--accent);
  background-image: linear-gradient(to top, color-mix(in srgb, var(--accent) 20%, transparent), transparent);
  background-position: center bottom; background-size: 100% 12.6px; background-repeat: no-repeat;
}
.category-tab svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--muted); }
.category-tab.active svg { color: var(--accent); }
.category-loading { align-self: center; padding: 0 14px; color: var(--muted); font-size: 0.9231rem; }

.offline-banner { position: sticky; top: 114px; z-index: 39; padding: 7px 16px; background: #873d34; color: #fff; text-align: center; font-weight: 600; }

/* ── Main shell and common UI ───────────────────────────────────────────── */
.view { min-height: calc(100vh - 114px); }
.page-shell { width: min(1440px, 100%); margin: 0 auto; padding: 18px 18px 70px; }
.button {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 700; cursor: pointer; transition: transform .12s, background .12s, border-color .12s;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button.primary { background: var(--odd); color: var(--on-action); border-color: var(--action-border); }
.button.primary:hover { background: var(--action-hover); }
.button.secondary { background: var(--panel3); color: var(--text); border-color: var(--line); }
.button.secondary:hover { background: color-mix(in srgb, var(--panel3) 82%, var(--accent)); }
.button.danger { background: #a13e3e; color: #fff; border-color: #d86868; }
.button.danger:hover { background: #b64848; }
.button.danger-outline { background: #2c2020; color: #ffb2ac; border-color: #774141; }
.button.danger-outline:hover { background: #3b2525; border-color: #9c5151; }
.button.ghost { background: color-mix(in srgb, var(--bg-deep) 76%, transparent); color: var(--text); border-color: var(--line); }
.button.ghost:hover { background: color-mix(in srgb, var(--panel3) 72%, var(--bg-deep)); }
.button svg { width: 17px; height: 17px; }

.page-header { display: flex; align-items: flex-end; gap: 18px; margin: 2px 0 18px; }
.page-header > div:first-child { min-width: 0; }
.eyebrow { color: var(--accent); font-size: 0.7692rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.page-header h1 { margin: 2px 0 2px; font-size: clamp(1.692rem, 3vw, 2.308rem); letter-spacing: -.6px; line-height: 1.2; }
.page-header p { margin: 0; color: var(--muted); }
.page-header .header-count { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.section { margin-top: 26px; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.section-head h2 { margin: 0; font-size: 1.308rem; letter-spacing: -.2px; }
.section-head p { margin: 0; color: var(--muted); }
.section-head .section-link { margin-left: auto; color: var(--accent); font-weight: 700; cursor: pointer; }
.section-head .section-link:hover { color: color-mix(in srgb, var(--accent) 78%, white); }
.game-rail-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.game-rail-configured .game-row { --game-card-width: var(--rail-config-desktop); }
.game-rail-actions .section-link { margin-left: 0; white-space: nowrap; }
.game-rail-controls { display: flex; align-items: center; gap: 5px; }
.game-rail-controls button {
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--text);
  font-size: 1.769rem; line-height: 1; cursor: pointer; transition: background .15s, border-color .15s, opacity .15s;
}
.game-rail-controls button:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--panel3); }
.game-rail-controls button:disabled { opacity: .28; cursor: default; }
.game-rail-static .game-rail-controls { opacity: .45; }

/* Studio discovery shares the existing accessible rail interaction. */
.providers-section { min-width: 0; }
.providers-section h2 { display: flex; align-items: center; gap: 9px; }
.providers-section h2 > .ui-icon { color: var(--odd); }
.providers-track { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 3px; scrollbar-width: thin; }
.provider-card { position: relative; display: grid; place-items: center; flex: 0 0 144px; min-width: 0; height: 40px; min-height: 40px; padding: 4px 6px; border: 1px solid transparent; border-radius: 9px; background: var(--bar2); color: #fff; text-align: center; text-decoration: none; scroll-snap-align: start; }
.provider-card span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.1rem; font-weight: 750; }
.provider-card img { display: block; width: 108px; max-width: 100%; height: 26px; object-fit: contain; filter: brightness(0) invert(1); }
.provider-card img[src*="/providers/fastgames-white-"] { width: 128px; height: 30px; }
.provider-card:hover, .provider-card.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bar2)); }
.provider-card:focus-visible, .providers-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.providers-expanded .providers-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); overflow: visible; }
.providers-expanded .game-rail-controls { display: none; }
.provider-view-all { min-height: 44px; white-space: nowrap; }
/* A category page's provider filter (owner, 2026-10-23): a closed "Providers" button at the top of the grid; it opens a
   search field and the studios' logos (the provider strip's artwork, on the bar colour) and names, checkboxes and one
   full-width Apply. */
.provider-filter { position: relative; z-index: 30; display: flex; margin: -6px 0 16px; }
.provider-filter-toggle {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); font: inherit; font-weight: 750; cursor: pointer;
}
.provider-filter-toggle:hover, .provider-filter.open .provider-filter-toggle { border-color: var(--action-border); }
.provider-filter-toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.provider-filter-toggle .ui-icon { width: 18px; height: 18px; flex: none; color: var(--accent); }
.provider-filter-toggle .ui-icon:last-child { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; }
.provider-filter.open .provider-filter-toggle .ui-icon:last-child { transform: rotate(180deg); }
.provider-filter-count {
  min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 10px;
  background: var(--odd); color: var(--on-action); font-size: 0.7692rem; font-weight: 800;
}
.provider-filter-panel {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; width: min(360px, 100%); display: grid; gap: 8px; padding: 8px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--tabs); color: var(--text); box-shadow: var(--shadow);
}
.provider-filter-panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.provider-filter-search {
  min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--muted);
}
.provider-filter-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.provider-filter-search .ui-icon { width: 18px; height: 18px; flex: none; }
.provider-filter-search input { min-width: 0; flex: 1; height: 42px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
.provider-filter-empty { margin: 0; padding: 12px 8px; color: var(--muted); font-size: 0.8462rem; }
.provider-filter-list { max-height: min(340px, 50vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-top: 1px solid var(--line-soft); }
.provider-filter-row {
  min-height: 44px; display: grid; grid-template-columns: 18px 64px minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 0 8px; border-radius: 7px; cursor: pointer;
}
.provider-filter-row:hover { background: var(--panel3); }
.provider-filter-row:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.provider-filter-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.provider-filter-logo { width: 64px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--bar2); color: #fff; }
.provider-filter-logo img { width: 54px; height: 20px; object-fit: contain; filter: brightness(0) invert(1); }
.provider-filter-logo b { font-size: 0.7692rem; text-transform: uppercase; }
.provider-filter-logo .ui-icon { width: 16px; height: 16px; }
.provider-filter-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9231rem; font-weight: 700; }
.provider-filter-apply { width: 100%; }
/* A category page's header is one row (owner, 2026-10-23): the title with its games count beside it, the provider
   filter at the row's end and its list opening below it, aligned to its end. A long title on a phone may push the
   button onto a second row, never more rows than the eyebrow, title and button had. */
.page-header.category-header { flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.category-heading { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.category-heading h1 { margin: 0; }
.category-count { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.category-header > .provider-filter { margin: 0; margin-inline-start: auto; }
.category-header .provider-filter-panel { inset-inline-start: auto; inset-inline-end: 0; width: min(360px, calc(100vw - 24px)); }
.provider-game-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 20px 0; }
.provider-game-filters label { flex: 1 1 180px; display: grid; gap: 6px; min-width: 0; color: var(--muted); }
.provider-game-filters input, .provider-game-filters select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--panel); }
.provider-game-filters .button { min-height: 44px; }
@media (max-width: 600px) {
  .providers-track { scrollbar-width: none; }
  .providers-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .providers-section .section-head { flex-wrap: wrap; }
  .providers-section h2 { font-size: 1.15rem; }
  .providers-section .game-rail-actions { gap: 6px; }
  .provider-card { flex-basis: 128px; }
  .provider-card img { width: 94px; height: 24px; }
  .provider-card img[src*="/providers/fastgames-white-"] { width: 112px; height: 28px; }
  .provider-game-filters label { flex-basis: 100%; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.casino-hero {
  position: relative; height: clamp(190px, 19vw, 220px); min-height: 190px; max-height: 220px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: var(--radius-lg);
  background: radial-gradient(100% 140% at 75% 40%, color-mix(in srgb, var(--accent) 48%, var(--bar1)) 0, var(--bar1) 46%, color-mix(in srgb, var(--bar2) 74%, #000) 100%);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--bg-deep) 68%, transparent); touch-action: pan-y;
}
.hero-track { display: flex; width: 100%; height: 100%; transition: transform .45s cubic-bezier(.22,.7,.25,1); will-change: transform; }
.hero-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; }
.hero-slide-2 { background: radial-gradient(110% 150% at 76% 40%, #71423a 0, #40251f 45%, #16100d 100%); }
.hero-slide-3 { background: radial-gradient(110% 150% at 76% 40%, #3b4479 0, #232a51 45%, #0c1023 100%); }
.hero-art { position: absolute; inset: 0; overflow: hidden; }
.hero-art::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bar2) 72%, #000) 0%, var(--bar2) 35%, color-mix(in srgb, var(--bar1) 48%, transparent) 62%, color-mix(in srgb, var(--bar2) 68%, transparent) 100%); z-index: 1;
}
.hero-art::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -80px; top: -130px; border-radius: 50%;
  border: 70px solid color-mix(in srgb, var(--odd) 7%, transparent); box-shadow: 0 0 0 45px color-mix(in srgb, var(--accent) 4%, transparent), inset 0 0 90px color-mix(in srgb, var(--odd) 11%, transparent);
  transform: rotate(-15deg);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .72; filter: saturate(1.12) contrast(1.04); }
.hero-copy { position: relative; z-index: 2; width: min(570px, 66%); height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 24px clamp(54px, 5vw, 65px); }
.hero-copy h1 { margin: 0 0 6px; color: var(--on-hero); font-size: clamp(2.077rem, 3.6vw, 3.308rem); line-height: .98; letter-spacing: -1.4px; text-shadow: 0 3px 12px #000; }
.hero-copy p { max-width: 450px; margin: 0 0 14px; color: var(--on-hero-muted); font-size: clamp(.9231rem, 1.3vw, 1.077rem); }
.hero-slide-promotion .hero-copy p {
  display: -webkit-box; overflow: hidden; white-space: pre-line;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.hero-slide-promotion .hero-art img { object-position: center; }
.hero-actions { display: flex; align-items: center; gap: 9px; }
.hero-arrow {
  position: absolute; top: 50%; z-index: 4; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; transform: translateY(-50%);
  border: 1px solid #ffffff3b; border-radius: 50%; background: color-mix(in srgb, var(--bar2) 78%, transparent); color: #fff;
  box-shadow: 0 5px 15px #0006; font-size: 2.231rem; line-height: 1; cursor: pointer;
}
.hero-arrow:hover { border-color: #ffffff7a; background: color-mix(in srgb, var(--panel3) 86%, transparent); }
.hero-arrow-previous { left: 12px; }
.hero-arrow-next { right: 12px; }
.hero-dots { position: absolute; left: 50%; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 0; transform: translateX(-50%); }
.hero-dots button { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 4px; background: #ffffff61; transform: translate(-50%, -50%); transition: width .2s, background .2s; }
.hero-dots button[aria-current="true"]::before { width: 22px; background: var(--odd); }

.lobby-search {
  display: flex; align-items: center; gap: 10px; margin: 13px 1px 0; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel2);
}
.lobby-search-field { position: relative; min-width: 0; flex: 1; height: 44px; color: var(--muted-light); }
.lobby-search-field > svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; }
.lobby-search input {
  width: 100%; height: 100%; padding: 0 42px 0 42px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--bg-deep); color: var(--text); outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.lobby-search input::placeholder { color: var(--muted); }
.lobby-search input:focus { border-color: var(--accent); background: color-mix(in srgb, var(--bg-deep) 88%, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.search-clear {
  position: absolute; top: 50%; right: 0; width: 44px; height: 44px; padding: 0; transform: translateY(-50%);
  border: 0; border-radius: 50%; background: transparent; color: var(--muted-light);
  font-size: 1.462rem; line-height: 1; cursor: pointer;
}
.search-clear:hover { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); }
.lobby-search-submit { min-width: 122px; height: 44px; }

@media (prefers-reduced-motion: reduce) {
  .hero-track { transition: none; }
}

/* ── Games ───────────────────────────────────────────────────────────────── */
.game-grid, .game-row { --game-card-width: min(184px, calc(33.333% - 9px)); gap: 13px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, var(--game-card-width)); justify-content: start; }
.game-row { display: grid; grid-auto-flow: column; grid-auto-columns: var(--game-card-width); justify-content: start; overflow-x: auto; padding: 1px 1px 8px; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.game-row .game-card { scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) {
  .game-row { scroll-behavior: auto; }
}
.game-card {
  position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line);
  border-radius: 8px; background: var(--panel); box-shadow: 0 4px 14px color-mix(in srgb, var(--bg-deep) 48%, transparent);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.game-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); box-shadow: 0 9px 20px color-mix(in srgb, var(--bg-deep) 72%, transparent); }
/* Our thumbnails are 365×452, every game's (owner, 2026-10-14: "o alanı bizim thumbnail size'ına göre yap"). */
.game-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 365 / 452; overflow: hidden;
  border: 0; border-bottom: 1px solid var(--line-soft); padding: 0; background: var(--panel2); cursor: pointer;
}
.game-thumb::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, var(--card-glow, color-mix(in srgb, var(--accent) 48%, transparent)), transparent 42%), linear-gradient(135deg, var(--panel3), var(--bg-deep));
}
.game-thumb img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform .25s, filter .2s; }
.game-card:hover .game-thumb img { transform: scale(1.035); filter: brightness(.65); }
.game-initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #ffffffcc; font-size: 2.615rem; font-weight: 900; letter-spacing: -2px; text-shadow: 0 3px 12px #000;
}
.game-thumb img:not([hidden]) + .game-initials { display: none; }
.availability { position: absolute; right: 7px; bottom: 7px; z-index: 2; display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 9px; background: color-mix(in srgb, var(--bg-deep) 86%, transparent); color: var(--muted-light); font-size: 0.6923rem; }
.availability::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.availability.unavailable::before { background: var(--danger); }
.card-play {
  position: absolute; left: 50%; top: 50%; z-index: 3; width: 48px; height: 48px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--odd); color: var(--on-action); cursor: pointer; opacity: 0;
  transform: translate(-50%, -40%) scale(.82); transition: opacity .16s, transform .16s;
  box-shadow: 0 7px 20px #0008;
}
.game-card:hover .card-play, .card-play:focus-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.card-play svg { width: 21px; height: 21px; fill: currentColor; }
.game-card.unavailable .game-thumb { cursor: not-allowed; }
.game-card.unavailable .game-thumb img { filter: grayscale(.6) brightness(.58); }
.game-card.unavailable .card-play { display: none; }
/* One bar under the artwork (owner, 2026-10-14): the players on the left, info and favourite on the right. */
.game-info { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 4px 3px 10px; }
.game-players { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--muted-light); font-size: 0.8462rem; white-space: nowrap; }
.game-players b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
/* A steady green dot: it never blinks (owner). */
.players-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 22%, transparent); }
.favorite-button {
  width: 44px; height: 44px; flex: none; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.favorite-button:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.favorite-button.active { color: var(--action-border); }
.favorite-button.pending { opacity: .5; cursor: wait; }
.favorite-button svg { width: 18px; height: 18px; }
.favorite-button.active svg { fill: currentColor; }
:root[data-color-mode="light"] .game-initials { color: color-mix(in srgb, var(--text) 88%, transparent); text-shadow: 0 2px 8px #ffffff; }

/* ── Loading, empty and error states ─────────────────────────────────────── */
.skeleton { position: relative; overflow: hidden; background: var(--line-soft); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, #ffffff0b, transparent); animation: shimmer 1.35s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.hero-skeleton { height: clamp(220px, 28vw, 350px); border-radius: var(--radius-lg); }
.section-skeleton { margin-top: 28px; }
.section-skeleton > span { display: block; width: 170px; height: 19px; margin-bottom: 12px; border-radius: 4px; }
.card-skeletons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.card-skeletons i { display: block; aspect-ratio: 1.45; border-radius: 8px; }
.state-card {
  min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 35px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--panel2); text-align: center;
}
.state-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 50%; background: var(--panel3); color: var(--accent); }
.state-icon.error { color: var(--danger); }
.state-icon svg { width: 28px; height: 28px; }
.state-card h1, .state-card h2 { margin: 0 0 6px; font-size: 1.538rem; }
.state-card p { max-width: 470px; margin: 0 0 18px; color: var(--muted); }
.inline-error { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border: 1px solid #733e3e; border-radius: var(--radius); background: #342020; color: #ffd2d2; }
.inline-error svg { width: 18px; height: 18px; }

/* ── Search/category/favorites pages ─────────────────────────────────────── */
.filter-summary { display: flex; align-items: center; gap: 8px; margin: -7px 0 17px; color: var(--muted); }
.query-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 12px; background: var(--panel3); color: var(--text); }
.query-chip button { border: 0; padding: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.308rem; line-height: 1; }

/* ── Transaction history ─────────────────────────────────────────────────── */
.history-toolbar { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.history-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 15px; }
.summary-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.summary-card span { display: block; color: var(--muted); font-size: 0.8462rem; }
.summary-card strong { display: block; margin-top: 3px; font-size: 1.385rem; font-variant-numeric: tabular-nums; }
.summary-card strong.positive { color: var(--accent); }
.summary-card strong.negative { color: var(--negative-text); }
.history-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.history-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.history-table th { padding: 10px 12px; background: var(--panel2); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.7692rem; font-weight: 700; letter-spacing: .7px; text-align: left; text-transform: uppercase; }
.history-table td { padding: 12px; border-bottom: 1px solid var(--line-soft); color: var(--muted-light); vertical-align: middle; }
.history-table tr:last-child td { border-bottom: 0; }
.history-table tbody tr:hover { background: color-mix(in srgb, var(--panel3) 76%, transparent); }
.history-table .game-cell { color: var(--text); font-weight: 650; }
.history-table .ref { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8462rem; }
.tx-type { display: inline-flex; align-items: center; gap: 6px; text-transform: capitalize; }
.tx-type i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.tx-type.debit i { background: var(--danger); }
.tx-type.credit i { background: var(--accent); }
.tx-type.rollback i, .tx-type.adjustment i { background: var(--action-border); }
.amount { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount.debit { color: var(--negative-text); }
.amount.credit { color: var(--positive-text); }
.amount.rollback, .amount.adjustment { color: var(--warning-text); }
.tx-status { display: inline-block; padding: 3px 7px; border-radius: 9px; background: #263b30; color: #aee0c4; font-size: 0.7692rem; font-weight: 700; text-transform: capitalize; }
.tx-status.pending { background: #4d3d1c; color: #ffe193; }
.tx-status.failed, .tx-status.declined { background: #4a2929; color: #ffaaaa; }
.history-more { display: flex; justify-content: center; padding: 15px; }

/* ── Fake-money sandbox cashier ─────────────────────────────────────────── */
.sandbox-cashier-banner {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 13px 16px;
  border: 2px solid #d8ad27; border-radius: var(--radius-lg); background: #3a3015; color: #ffe99b;
}
.sandbox-cashier-banner strong { flex: none; padding: 5px 8px; border-radius: 4px; background: var(--odd); color: var(--on-action); font-size: 0.8462rem; letter-spacing: .8px; }
.sandbox-cashier-banner span { color: #f6e8ba; }
.cashier-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: start; gap: 15px; }
.cashier-layout.real-money { grid-template-columns: minmax(0, 780px); }
.cashier-operation-card { overflow: hidden; }
.cashier-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 1px solid var(--line); background: var(--panel2); }
.cashier-tabs a { padding: 13px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 750; text-align: center; }
.cashier-tabs a:hover { color: var(--text); background: var(--panel3); }
.cashier-tabs a.active { border-bottom-color: var(--action-border); background: color-mix(in srgb, var(--panel3) 82%, var(--odd)); color: var(--text); }
/* The brand's KYC policy above the cashier's forms (docs/KYC-POLICY.md): what the operation needs, or why a request was
   refused, with the way to the verification page. */
.kyc-cashier-notice { display: grid; gap: 8px; margin: 16px 20px 0; padding: 11px 13px; border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--panel3); color: var(--text); }
.kyc-cashier-notice p { margin: 0; overflow-wrap: anywhere; }
.kyc-cashier-notice small { color: var(--muted); }
.kyc-cashier-notice .button { justify-self: start; min-height: 44px; }
.cashier-tab-panel { padding: 0; }
.cashier-form { display: grid; gap: 12px; padding: 20px; }
.cashier-form label { display: grid; gap: 6px; }
.cashier-form label > span { color: var(--text); font-size: 0.9231rem; font-weight: 750; }
.cashier-form input, .cashier-form select {
  width: 100%; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-deep); color: var(--text); outline: none;
}
.cashier-form input:focus, .cashier-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.cashier-form input:disabled, .cashier-form select:disabled { opacity: .65; cursor: not-allowed; }
.cashier-field-help, .cashier-limits { color: var(--muted); font-size: 0.7692rem; }
.cashier-limits { margin-top: -7px; color: var(--warning-text); }
.cashier-form > .button { width: 100%; margin-top: 3px; }
.cashier-payment-card { display: grid; gap: 11px; padding: 13px; border: 1px solid #665626; border-radius: var(--radius); background: #262415; }
.cashier-payment-card.unavailable { border-color: #774747; background: #342020; }
.cashier-payment-card > header { display: flex; align-items: flex-start; gap: 10px; }
.cashier-payment-card > header > strong { flex: none; padding: 4px 6px; border-radius: 4px; background: #d8ad27; color: #272000; font-size: max(.6154rem, 8px); font-weight: 900; letter-spacing: .55px; }
.cashier-payment-card h3 { margin: 0 0 2px; color: #fff1b2; font-size: 1.077rem; }
.cashier-payment-card p { margin: 0; color: #d8cc9f; font-size: 0.8462rem; }
.cashier-payment-card dl { display: grid; gap: 6px; margin: 0; }
.cashier-payment-card dl > div { display: grid; grid-template-columns: minmax(105px, .42fr) minmax(0, 1fr); gap: 10px; padding: 7px 8px; border: 1px solid #574d2c; border-radius: 5px; background: #1b2017; }
.cashier-payment-card dt { color: #a99f7d; font-size: 0.6923rem; font-weight: 750; letter-spacing: .35px; text-transform: uppercase; }
.cashier-payment-card dd { min-width: 0; margin: 0; color: #f4e7b5; font-size: 0.7692rem; overflow-wrap: anywhere; }
.cashier-payment-card code { color: #fff1b2; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cashier-payment-card > small { color: #e5c768; font-size: 0.6923rem; font-weight: 700; }
/* Monetria crypto deposits: a real payment panel in the theme's own colours, not the yellow demo card. */
.cashier-payment-card.crypto-deposit { border-color: var(--line); background: var(--panel2); }
.crypto-deposit h3 { color: var(--text); }
.crypto-deposit > header p { color: var(--muted-light); }
.crypto-address { display: grid; gap: 6px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); }
.crypto-address > span, .crypto-address > small { color: var(--muted); font-size: 0.7692rem; }
.crypto-address code { color: var(--text); font-size: 0.9231rem; overflow-wrap: anywhere; user-select: all; }
.crypto-address .button { justify-self: start; }
.crypto-notes { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: var(--muted-light); font-size: 0.7692rem; }
.crypto-deposits h4 { margin: 0 0 6px; color: var(--text); font-size: 0.8462rem; }
.crypto-deposits ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crypto-deposits li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 7px 9px; border: 1px solid var(--line-soft); border-radius: 5px; color: var(--muted-light); font-size: 0.7692rem; }
.crypto-deposits li strong { color: var(--text); }
.crypto-deposits li small { flex-basis: 100%; color: var(--muted); }
.crypto-deposit .crypto-done { color: var(--accent); font-weight: 700; }
.crypto-deposit > .button { width: 100%; }
.crypto-step { display: grid; gap: 8px; min-width: 0; }
.crypto-step-title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; color: var(--text); font-size: 0.8462rem; font-weight: 700; }
.crypto-step-title b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 0.6923rem; }
.crypto-select { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 14px 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); color: var(--text); text-align: start; cursor: pointer; }
.crypto-select::after { content: ""; flex: none; width: 8px; height: 8px; margin-inline-start: auto; border-right: 2px solid var(--muted-light); border-bottom: 2px solid var(--muted-light); transform: translateY(-2px) rotate(45deg); }
.crypto-select[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.crypto-select[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.crypto-select:disabled { cursor: default; opacity: 0.6; }
.crypto-select-value { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crypto-select-placeholder { color: var(--muted-light); font-size: 0.8462rem; }
.crypto-option-text { display: grid; gap: 1px; min-width: 0; }
.crypto-option-text strong { font-size: 0.8462rem; line-height: 1.25; }
.crypto-option-text small { color: var(--muted); font-size: 0.7308rem; }
.crypto-menu { margin-top: 6px; display: grid; gap: 2px; max-height: 320px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel2); box-shadow: 0 16px 32px rgb(0 0 0 / 40%); }
.crypto-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); text-align: start; cursor: pointer; }
.crypto-option:hover, .crypto-option:focus-visible { background: var(--bg-deep); outline: none; }
.crypto-option[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 12%, var(--bg-deep)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
.crypto-logo { flex: none; width: 28px; height: 28px; border-radius: 50%; }
.crypto-badge { display: inline-grid; place-items: center; background: var(--panel2); border: 1px solid var(--line); color: var(--text); font-size: 0.5769rem; font-weight: 800; letter-spacing: .02em; }
.crypto-pair { position: relative; flex: none; width: 32px; height: 30px; }
.crypto-net { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; border-radius: 4px; box-shadow: 0 0 0 2px var(--bg-deep); }
.crypto-window-head .crypto-pair { width: 40px; height: 36px; }
.crypto-window-head .crypto-logo { width: 34px; height: 34px; }
.crypto-window-head .crypto-net { width: 18px; height: 18px; border-radius: 5px; }
.crypto-address.crypto-window { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 14px; container: crypto-window / inline-size; }
.crypto-window-body { display: grid; flex: 1 1 240px; gap: 6px; min-width: 0; }
.crypto-window-body > span { color: var(--muted); font-size: 0.7692rem; }
.crypto-window-body .button { justify-self: start; }
.crypto-window-head { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 0.9231rem; }
.crypto-qr { flex: none; margin-inline: auto; width: 184px; height: 184px; padding: 0; border-radius: 6px; background: #fff; image-rendering: pixelated; }
.crypto-detected { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid color-mix(in srgb, #f0b90b 45%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, #f0b90b 8%, var(--bg-deep)); color: var(--text); }
.crypto-detected > div { display: grid; gap: 2px; }
.crypto-detected strong { font-size: 0.8462rem; }
.crypto-detected small { color: var(--muted-light); font-size: 0.7692rem; }
.crypto-pulse { flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: #f0b90b; box-shadow: 0 0 0 0 color-mix(in srgb, #f0b90b 60%, transparent); animation: crypto-pulse 1.6s ease-out infinite; }
@keyframes crypto-pulse { to { box-shadow: 0 0 0 10px transparent; } }
.crypto-arrived { display: grid; justify-items: center; gap: 8px; padding: 22px 14px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 10%, var(--bg-deep)); text-align: center; color: var(--text); }
.crypto-arrived strong { font-size: 1.0769rem; }
.crypto-arrived p { margin: 0; color: var(--text); font-size: 0.9231rem; }
.crypto-arrived-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.crypto-arrived-mark svg { width: 26px; height: 26px; }
.crypto-arrived-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.crypto-confetti { position: fixed; inset: 0; z-index: 400; overflow: hidden; pointer-events: none; }
.crypto-confetti i { position: absolute; top: -14px; left: var(--x); width: 8px; height: 13px; border-radius: 2px; background: var(--c); transform: rotate(var(--r)); animation: crypto-confetti-fall var(--d) cubic-bezier(.2,.6,.4,1) var(--delay) forwards; }
.crypto-confetti.still i { top: var(--y); opacity: 0; animation: crypto-confetti-glow 2.6s ease var(--delay) forwards; }
@keyframes crypto-confetti-fall { to { transform: translate3d(var(--drift), 112vh, 0) rotate(calc(var(--r) + 720deg)); } }
@keyframes crypto-confetti-glow { 15% { opacity: 1; } 75% { opacity: 1; } to { opacity: 0; } }
/* The withdraw card: the amount with a Max button, and the request's progress (requested, approved, sent). */
.crypto-amount { display: flex; gap: 8px; }
.crypto-amount input { flex: 1 1 auto; min-width: 0; }
.crypto-amount .button { flex: none; }
.crypto-available { margin-top: -4px; color: var(--muted-light); font-size: 0.7692rem; }
/* The player's responsible-gaming deposit allowance on every deposit card (docs/RG-AND-PAID-WITHDRAWALS.md). */
.cashier-rg-note { margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); color: var(--muted-light); font-size: 0.7692rem; line-height: 1.45; overflow-wrap: anywhere; }
.cashier-rg-note.blocked { color: var(--warning-text); }
.cashier-payment-card .crypto-quote { gap: 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); }
.cashier-payment-card .crypto-quote > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border: 0; border-radius: 0; background: none; }
.cashier-payment-card .crypto-quote dt { color: var(--muted-light); font-size: 0.7692rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.cashier-payment-card .crypto-quote dd { color: var(--text); font-size: 0.8462rem; font-weight: 700; text-align: end; font-variant-numeric: tabular-nums; }
.cashier-payment-card .crypto-quote > .crypto-quote-total { border-top: 1px solid var(--line); }
.cashier-payment-card .crypto-quote-total dd { color: var(--accent); font-size: 0.9231rem; }
.crypto-tracker { display: grid; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); }
.crypto-tracker.failed { border-color: #6b3434; }
.crypto-tracker > .button { justify-self: center; }
.crypto-track-head { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); font-size: 0.9231rem; overflow-wrap: anywhere; }
.crypto-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.crypto-steps li { position: relative; display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 0.7692rem; font-weight: 700; text-align: center; }
.crypto-steps li::before { content: ""; position: absolute; z-index: 0; top: 13px; right: calc(50% + 18px); width: calc(100% - 36px); height: 2px; border-radius: 1px; background: var(--line); }
.crypto-steps li:first-child::before { content: none; }
.crypto-steps li > span { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 50%; background: var(--bg-deep); color: var(--muted); }
.crypto-steps li > span svg { width: 16px; height: 16px; }
.crypto-steps li.done { color: var(--text); }
.crypto-steps li.done::before { background: var(--accent); }
.crypto-steps li.done > span { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.crypto-steps li.active { color: #f0b90b; }
.crypto-steps li.active::before { background: linear-gradient(90deg, var(--accent), #f0b90b, var(--line), #f0b90b, var(--accent)); background-size: 300% 100%; animation: crypto-step-flow 1.8s linear infinite; }
.crypto-steps li.active > span { border-color: #f0b90b; color: #f0b90b; animation: crypto-step-glow 1.6s ease-out infinite; }
.crypto-steps li.failed { color: #ffaaaa; }
.crypto-steps li.failed > span { border-color: #c45757; background: #4a2929; color: #ffaaaa; }
@keyframes crypto-step-flow { to { background-position: -300% 0; } }
@keyframes crypto-step-glow { from { box-shadow: 0 0 0 0 color-mix(in srgb, #f0b90b 55%, transparent); } to { box-shadow: 0 0 0 9px transparent; } }
.crypto-track-link { display: flex; justify-content: center; }
.crypto-track-note { display: flex; align-items: flex-start; gap: 10px; color: var(--muted-light); font-size: 0.8462rem; }
.crypto-track-failed { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid #6b3434; border-radius: var(--radius); background: #2a1a1a; color: #ffaaaa; font-size: 0.8462rem; }
.crypto-track-failed svg { flex: none; width: 18px; height: 18px; }
.crypto-sent .crypto-arrived-mark { animation: crypto-sent-pop .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes crypto-sent-pop { from { transform: scale(.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .crypto-pulse, .crypto-steps li.active > span, .crypto-sent .crypto-arrived-mark { animation: none; } .crypto-steps li.active::before { animation: none; background: #f0b90b; } }
/* Stacked under the QR code (a narrow card), the address block is centred like the code above it (owner). */
@container crypto-window (max-width: 441px) {
  .crypto-window-body { justify-items: center; text-align: center; }
  .crypto-window-body .button { justify-self: center; }
  .crypto-window-head { justify-content: center; }
}
.crypto-timer { margin: 0; color: var(--muted-light); font-size: 0.8462rem; }
.crypto-timer strong { color: var(--text); font-variant-numeric: tabular-nums; }
.crypto-expired strong { color: var(--text); }
.crypto-wait { margin: 0; color: var(--muted-light); }
/* PayGate AZN (docs/payments/paygate-sprmo/DESIGN.md): the crypto card's shape with a method, an amount and the transfer
   details. The details are the player's own real payment instructions, so they read plainly, never in the sandbox card's
   yellow. */
.paygate-method-icon { display: inline-grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, var(--bg-deep)); color: var(--accent); }
.paygate-method-icon svg { width: 16px; height: 16px; }
.cashier-form label.paygate-amount { position: relative; display: flex; align-items: center; }
.paygate-amount input { flex: 1 1 auto; min-width: 0; padding-inline-end: 56px; font-size: 1.0769rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.paygate-currency { position: absolute; inset-inline-end: 12px; color: var(--muted-light); font-size: 0.8462rem; font-weight: 700; pointer-events: none; }
.paygate-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.paygate-quick .button { flex: 1 1 64px; min-height: 36px; padding: 0 10px; font-variant-numeric: tabular-nums; }
.paygate-quick .button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.paygate-amount-locked { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); color: var(--text); font-variant-numeric: tabular-nums; }
.crypto-address.paygate-instruction { gap: 10px; padding: 12px 14px; }
.cashier-payment-card .paygate-details { gap: 0; }
.cashier-payment-card .paygate-details > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: none; }
.cashier-payment-card .paygate-details > div:last-child { border-bottom: 0; }
.cashier-payment-card .paygate-details dt { color: var(--muted); font-size: 0.7692rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.cashier-payment-card .paygate-details dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text); font-size: 0.9231rem; }
.cashier-payment-card .paygate-details .button { min-height: 32px; padding: 0 10px; }
.cashier-payment-card .paygate-details > .paygate-requisite { flex-direction: column; align-items: stretch; }
.cashier-payment-card .paygate-requisite dd { justify-content: space-between; }
.cashier-payment-card .paygate-requisite code { color: var(--text); font-size: 1.2308rem; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; user-select: all; }
.crypto-address.paygate-link { justify-items: center; }
.paygate-link > .button { display: inline-flex; align-items: center; gap: 8px; }
.paygate-link > .button svg { width: 16px; height: 16px; }
.paygate-cancel { display: grid; justify-items: start; gap: 4px; }
.paygate-cancel small { color: var(--muted); font-size: 0.7308rem; }
.paygate-cancel-ask { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid color-mix(in srgb, #f0b90b 45%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, #f0b90b 8%, var(--bg-deep)); color: var(--text); font-size: 0.8462rem; }
.paygate-cancel-ask .crypto-arrived-actions { justify-content: flex-start; margin-top: 0; }
.crypto-steps.paygate-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* TL payments (docs/payments/sansgetirsin/DESIGN.md): the methods as tiles with their limits, the banks as logo tiles, a
   countdown that stands out and the description (Açıklama) the player must write. The bank logos are drawn for light
   backgrounds and carry the bank's name, so they sit alone on a white plate in every theme. */
.tl-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.tl-method { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); color: var(--text); text-align: start; cursor: pointer; }
.tl-method:hover:not(:disabled), .tl-method:focus-visible { border-color: var(--accent); outline: none; }
.tl-method[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.tl-method:disabled { cursor: default; }
.tl-method:disabled:not([aria-pressed="true"]) { opacity: .6; }
.tl-method .tl-bank-logo { width: 96px; }
.crypto-option-text small.tl-limits, .crypto-available.tl-limits { color: var(--muted-light); font-variant-numeric: tabular-nums; }
.tl-bank-logo { flex: none; display: inline-grid; place-items: center; width: 120px; height: 38px; padding: 4px 8px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%); }
.tl-bank-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tl-bank-plain { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); font-size: 0.8462rem; font-weight: 700; overflow-wrap: anywhere; }
.tl-banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tl-bank { display: grid; place-items: center; min-height: 58px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); cursor: pointer; }
.tl-bank:hover:not(:disabled), .tl-bank:focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.tl-bank:disabled { cursor: default; opacity: .6; }
.tl-bank[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent); }
.tl-pick-hint { margin: 8px 0 0; color: var(--muted); font-size: 0.8462rem; }
.tl-confirm { width: 100%; margin-top: 10px; }
.cashier-payment-card .tl-account { display: grid; margin: 10px 0 0; padding: 2px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-deep); }
.cashier-payment-card .tl-account > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: none; }
.cashier-payment-card .tl-account > div:last-child { border-bottom: 0; }
.cashier-payment-card .tl-account dt { margin: 0; color: var(--muted); font-size: 0.7692rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.cashier-payment-card .tl-account dd { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px; min-width: 0; margin: 0; color: var(--text); font-size: 0.9231rem; text-align: left; }
.cashier-payment-card .tl-account dd > code[data-tl-iban] { color: var(--text); font-size: 0.9231rem; letter-spacing: .02em; overflow-wrap: anywhere; user-select: all; }
.cashier-payment-card .tl-account > .tl-reference { margin: 4px -8px; padding: 8px; border: 1px solid color-mix(in srgb, #f0b90b 55%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, #f0b90b 10%, var(--bg-deep)); }
.cashier-payment-card .tl-account > .tl-reference > .tl-reference-warning { grid-column: 2; }
.cashier-payment-card .tl-account > .tl-reference dd { justify-content: flex-start; }
.tl-copy { display: inline-grid; flex: none; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.tl-copy:hover, .tl-copy:focus-visible { border-color: var(--accent); color: var(--text); outline: none; }
.tl-copy .ui-icon { width: 16px; height: 16px; }
@media (max-width: 520px) {
  .cashier-payment-card .tl-account > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cashier-payment-card .tl-account > .tl-reference > .tl-reference-warning { grid-column: 1; }
  .cashier-payment-card .tl-account dd > code[data-tl-iban] { font-size: 0.8462rem; white-space: nowrap; }
}
.tl-timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid color-mix(in srgb, #f0b90b 45%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, #f0b90b 8%, var(--bg-deep)); color: var(--text); font-size: 0.8462rem; font-weight: 700; }
.tl-timer strong { font-size: 1.6923rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.cashier-payment-card .paygate-details > .tl-reference { flex-direction: column; align-items: stretch; margin: 6px 0; padding: 10px 12px; border: 1px solid color-mix(in srgb, #f0b90b 55%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, #f0b90b 10%, var(--bg-deep)); }
.cashier-payment-card .tl-reference dd { justify-content: space-between; }
.cashier-payment-card .tl-reference code { color: var(--text); font-size: 1.2308rem; font-weight: 800; letter-spacing: .06em; overflow-wrap: anywhere; user-select: all; }
.cashier-payment-card .tl-reference .tl-reference-warning { color: var(--warning-text); font-size: 0.7692rem; font-weight: 700; }
.crypto-track-head .tl-bank-logo { width: 104px; height: 34px; }
[data-crypto-select="tlbank"] .crypto-menu { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
.cashier-payment-details { display: grid; gap: 9px; }
.cashier-payment-details > summary { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid #76652e; border-radius: 6px; background: #1b2017; color: #f4e7b5; font-size: .8rem; font-weight: 750; cursor: pointer; }
.cashier-payment-details > small { color: #e5c768; font-size: 0.6923rem; font-weight: 700; }
.cashier-safety-card ul { display: grid; gap: 11px; margin: 0; padding: 19px 25px 21px 38px; color: var(--muted-light); }
.cashier-safety-card li::marker { color: var(--accent); }
.cashier-resolution {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; margin-bottom: 14px; padding: 14px;
  border: 1px solid #a64e4e; border-radius: var(--radius-lg); background: #3b2020;
}
.cashier-resolution-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #5a2929; color: #ffaaa2; }
.cashier-resolution-icon svg { width: 20px; height: 20px; }
.cashier-resolution h2 { margin: 1px 0 2px; color: #fff; font-size: 1.231rem; }
.cashier-resolution p { margin: 0 0 3px; color: #efc7c7; }
.cashier-resolution > div > strong { color: #fff; font-variant-numeric: tabular-nums; }
.cashier-pending { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #806b2d; border-radius: var(--radius); background: #342e1b; }
.cashier-pending > div { display: flex; min-width: 0; flex-direction: column; }
.cashier-pending strong { color: #ffe69a; }
.cashier-pending small { color: #cfc39c; }
.cashier-pending-details { display: grid; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.cashier-pending-details li { display: flex; flex-wrap: wrap; gap: 3px 8px; padding-top: 5px; border-top: 1px solid #5b4e27; }
.cashier-pending-details li strong { color: #fff0af; font-size: 0.7692rem; }
.cashier-pending-details li span { color: #cfc39c; font-size: 0.7692rem; }
.cashier-spinner { width: 15px; height: 15px; flex: none; display: inline-block; border: 2px solid #8c835f; border-top-color: var(--action-border); border-radius: 50%; animation: spin .8s linear infinite; }
.cashier-history { margin-top: 25px; }
.cashier-request-list { display: grid; gap: 8px; }
.cashier-request { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.cashier-request-main { display: flex; align-items: center; gap: 10px; }
.cashier-request-type { min-width: 76px; color: var(--accent); font-size: 0.7692rem; font-weight: 850; letter-spacing: .65px; text-transform: uppercase; }
.cashier-request-type.withdrawal { color: var(--warning-text); }
.cashier-request-amount { color: var(--positive-text); font-size: 1.154rem; font-variant-numeric: tabular-nums; }
.cashier-request-amount.withdrawal { color: var(--negative-text); }
.cashier-state { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 10px; background: #4d3d1c; color: #ffe193; font-size: 0.7692rem; font-weight: 750; }
.cashier-state.completed { background: #1b4932; color: #8ff0ba; }
.cashier-state.declined { background: #4a2929; color: #ffaaaa; }
.cashier-state.returned { background: #1d3042; color: #9fd0ff; }
.cashier-state .cashier-spinner { width: 10px; height: 10px; border-width: 1px; }
.cashier-request-meta { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 8px; color: var(--muted); font-size: 0.7692rem; }
.cashier-request-meta strong { color: var(--muted-light); font-weight: 700; }
.cashier-decline { margin: 9px 0 0; padding: 8px 10px; border-radius: 6px; background: #3c2424; color: #ffc7c2; }
.cashier-returned { margin: 9px 0 0; padding: 8px 10px; border-radius: 6px; background: #1d3042; color: #bfe0ff; }
.cashier-decline small { margin-left: 4px; color: #dc8f89; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cashier-confirmation-wait { margin: 9px 0 0; padding: 8px 10px; border-radius: 6px; background: #342e1b; color: #ffe49a; font-size: 0.8462rem; }
.cashier-confirmation-wait small { display: block; margin-top: 2px; color: #cfc39c; }
.cashier-request footer { display: flex; gap: 14px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 0.6923rem; }
.cashier-request footer .bet-reference:first-child { margin-left: 0; }

/* ── Unified My Bets read model ─────────────────────────────────────────── */
.bet-filters {
  display: flex; align-items: end; gap: 10px; margin-bottom: 15px; padding: 13px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel);
}
.bet-filters label { min-width: 170px; display: grid; gap: 5px; }
.bet-filters label > span { color: var(--muted); font-size: 0.7692rem; font-weight: 750; letter-spacing: .6px; text-transform: uppercase; }
.bet-filters select {
  height: 44px; padding: 0 32px 0 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-deep); color: var(--text); outline: none; cursor: pointer;
}
.bet-filters select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.bet-verticals { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.bet-vertical {
  flex: 1; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-deep); color: var(--muted);
  font: inherit; font-weight: 750; cursor: pointer;
}
.bet-vertical:hover { color: var(--text); border-color: var(--accent); }
.bet-vertical[aria-pressed="true"] { color: var(--on-action); background: var(--odd); border-color: var(--action-border); }
.bet-vertical:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.bet-count { margin-left: auto; padding: 0 4px 10px; color: var(--muted); font-size: 0.8462rem; white-space: nowrap; }
.bet-list { display: grid; gap: 6px; }
/* A filter change keeps the page; the list dims only if the answer is slow. */
.my-bets-page > :is(.bet-list, .state-card, .history-more) { transition: opacity .15s ease; }
.my-bets-page[aria-busy="true"] > :is(.bet-list, .state-card, .history-more) { opacity: .45; pointer-events: none; transition-delay: .15s; }
/* One row per bet (owner, 2026-10-10): thumbnail, game, when, stake, multiplier,
   payout, details. The result is the payout's colour, not a status word. */
.bet-list-head, .bet-card {
  display: grid; align-items: center; gap: 4px 14px;
  grid-template-columns: 40px minmax(0, 1.6fr) minmax(128px, .9fr) minmax(96px, .7fr) minmax(64px, .45fr) minmax(104px, .7fr) 92px;
}
.bet-list-head { padding: 0 12px 0 15px; color: var(--muted); font-size: 0.6923rem; font-weight: 750; letter-spacing: .6px; text-transform: uppercase; }
.bet-card {
  padding: 7px 12px; border: 1px solid var(--line-soft); border-left: 3px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
}
.bet-list .bet-card { cursor: pointer; }
.bet-list .bet-card:hover { border-color: var(--line); }
.bet-card.outcome-win { border-left-color: var(--positive-text); }
.bet-card.outcome-pending { border-left-color: var(--warning-text); }
.bet-thumb { width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: var(--panel2); }
.bet-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bet-thumb-initial { color: var(--muted-light); font-weight: 850; }
.bet-status { margin-left: auto; padding: 3px 8px; border-radius: 10px; background: #4d3d1c; color: #ffe193; font-size: 0.7692rem; font-weight: 750; }
.bet-status.won { background: #1b4932; color: #8ff0ba; }
.bet-status.lost { background: #4a2929; color: #ffaaaa; }
.bet-status.void { background: #34403a; color: #c2d0c8; }
.bet-status.rejected { background: #4a2929; color: #ffaaaa; }
.bet-status.cashed_out { background: #3c3157; color: #d9c7ff; }
.bet-primary .bet-status { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 0.6923rem; vertical-align: 1px; }
.bet-status.settled-short { background: var(--panel2); color: var(--muted-light); }
.bet-primary .bet-status.settled-short { min-width: 18px; padding: 1px 5px; text-align: center; cursor: help; }
.bet-primary { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.bet-primary strong { overflow: hidden; color: var(--text); font-size: 0.9615rem; text-overflow: ellipsis; white-space: nowrap; }
.bet-primary small { overflow: hidden; margin-top: 1px; color: var(--muted); font-size: 0.7692rem; text-overflow: ellipsis; white-space: nowrap; }
.bet-when { color: var(--muted-light); font-size: 0.8462rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bet-amounts { display: contents; }
.bet-amounts > div { min-width: 0; }
.bet-amounts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bet-amounts dd { margin: 0; color: var(--text); font-size: 0.9231rem; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bet-multiplier dd { color: var(--muted-light); font-weight: 650; }
.outcome-win .bet-payout dd { color: var(--positive-text); }
.outcome-loss .bet-payout dd { color: var(--muted); font-weight: 650; }
.bet-card-mobile-disclosure { display: block; margin-left: auto; }
.bet-card-mobile-disclosure[open] { grid-column: 1 / -1; }
.bet-card-mobile-disclosure > summary {
  width: fit-content; min-height: 36px; display: flex; align-items: center; gap: 8px; margin-left: auto;
  color: var(--muted-light); font-size: .7692rem; font-weight: 750; cursor: pointer; list-style: none;
}
.bet-card-mobile-disclosure > summary::-webkit-details-marker { display: none; }
.bet-card-mobile-disclosure > summary > .ui-icon {
  width: 16px; height: 16px; color: var(--muted); transition: transform .15s ease;
}
.bet-card-mobile-disclosure[open] { flex-basis: 100%; width: 100%; margin-left: 0; border-top: 1px solid var(--line-soft); }
.bet-card-mobile-disclosure[open] > summary > .ui-icon { transform: rotate(180deg); }
.bet-card-mobile-detail-body { padding: 2px 0 7px; }
.bet-card-mobile-detail-body dl { display: grid; gap: 7px; margin: 0; }
.bet-card-mobile-detail-body dl > div { display: grid; grid-template-columns: minmax(78px, .3fr) minmax(0, 1fr); gap: 10px; }
.bet-card-mobile-detail-body dt { color: var(--muted); font-size: .6923rem; font-weight: 750; text-transform: uppercase; }
.bet-card-mobile-detail-body dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--muted-light); }
.bet-card-mobile-detail-body .bet-reference { width: auto; margin-left: 0; white-space: normal; }
/* A studio round's own transactions (its bet and its win), oldest first. */
.bet-transactions { margin-top: 10px; }
.bet-transactions h4 { margin: 0 0 6px; color: var(--muted); font-size: .6923rem; font-weight: 750; text-transform: uppercase; }
.bet-transactions ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.bet-transactions li {
  display: grid; grid-template-columns: minmax(56px, auto) minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 8px; background: var(--panel2); font-size: .8462rem;
}
.bet-transactions li span { color: var(--muted-light); font-weight: 750; white-space: nowrap; }
.bet-transactions li code { min-width: 0; overflow: hidden; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7692rem; text-overflow: ellipsis; white-space: nowrap; }
.bet-transactions li strong { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bet-transactions li.win strong { color: var(--positive-text); }
.bet-transactions li.void { opacity: .6; }
.bet-transactions li.void strong { text-decoration: line-through; }
.bet-sportsbook-selections { margin: 12px 0 0; padding-left: 22px; }
.bet-sportsbook-selections li { padding: 8px 0; border-top: 1px solid var(--line-soft); overflow-wrap: anywhere; }
.bet-sportsbook-selections li > * { display: block; }
.bet-sportsbook-selections span, .bet-sportsbook-selections small { color: var(--muted-light); margin-top: 4px; }
.bet-card-mobile-detail-body .bet-details-button { min-height: 40px; margin-top: 9px; }
.bet-reference { min-width: 0; overflow: hidden; margin-left: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }

/* ── Registered account settings and notifications ─────────────────────── */
body.account-route-open .category-tabs { display: none; }
body.content-route-open .category-tabs { display: none; }
body.account-route-open .view { min-height: calc(100vh - 56px); }

.cms-player-page { max-width: 1080px; padding-top: clamp(24px, 5vw, 64px); }
.cms-player-page-header { margin-bottom: 24px; }
.cms-player-page-header h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; }
.cms-player-page > section, .cms-player-page > aside { margin-bottom: 18px; }
.cms-player-hero { min-height: clamp(280px, 42vw, 500px); display: flex; align-items: center; padding: clamp(28px, 6vw, 76px); border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%), linear-gradient(135deg, var(--panel2), var(--bg-deep)); overflow: hidden; }
.cms-player-hero-copy { width: min(680px, 100%); }
.cms-player-hero.align-center { justify-content: center; text-align: center; }
.cms-player-hero.align-center .cms-player-hero-copy { margin-inline: auto; }
.cms-player-hero.align-right { justify-content: flex-end; text-align: right; }
.cms-player-hero h1 { margin: 0 0 14px; font-size: clamp(2.2rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.045em; }
.cms-player-hero p { margin: 0 0 24px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.65; }
.cms-player-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cms-player-hero.align-center .cms-player-hero-actions { justify-content: center; }
.cms-player-hero.align-right .cms-player-hero-actions { justify-content: flex-end; }
.cms-player-announcement { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px; background: var(--panel2); }
.cms-player-announcement p { margin: 0; line-height: 1.55; }
.cms-player-announcement.severity-info { border-left-color: #5ea7ff; }
.cms-player-announcement.severity-success { border-left-color: #42c98b; }
.cms-player-announcement.severity-warning { border-left-color: #e7b84b; }
.cms-player-announcement.severity-critical { border-left-color: #ed6868; }
.cms-player-inline-link { color: var(--accent); font-weight: 750; white-space: nowrap; }
.cms-player-content { padding: clamp(22px, 4vw, 46px); border: 1px solid var(--line); border-radius: 18px; background: var(--panel2); }
.cms-player-content h2 { margin: 30px 0 12px; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; }
.cms-player-content h2:first-child { margin-top: 0; }
.cms-player-content p, .cms-player-content li { color: var(--muted); font-size: 1rem; line-height: 1.75; }
.cms-player-content p { margin: 0 0 18px; white-space: pre-line; }
.cms-player-content ul { margin: 0 0 20px; padding-left: 1.4em; }
.cms-player-content li + li { margin-top: 7px; }
.cms-player-notice { margin: 20px 0; padding: 16px 18px; border-left: 4px solid var(--accent); border-radius: 10px; background: var(--panel3); color: var(--text); line-height: 1.65; }
.cms-player-cta { margin-top: 24px; }
.cms-player-banner { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--panel2); }
.cms-player-banner-slide { position: relative; min-height: clamp(280px, 42vw, 500px); display: grid; align-items: end; }
.cms-player-banner-slide[aria-hidden="true"] { display: none; }
.cms-player-banner-slide picture, .cms-player-banner-slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cms-player-banner-slide img { object-fit: cover; }
.cms-player-banner-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg-deep) 94%, transparent), color-mix(in srgb, var(--bg-deep) 12%, transparent)); }
.cms-player-banner-copy { position: relative; z-index: 1; width: min(650px, 100%); padding: clamp(28px, 6vw, 68px); }
.cms-player-banner-copy h2 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.04em; }
.cms-player-banner-copy p { margin: 0 0 22px; color: var(--text-soft); font-size: clamp(1rem, 2vw, 1.2rem); }
.cms-player-game-grid { margin-top: 24px; }
.cms-player-promotions .casino-hero { margin-top: 14px; }
.cms-player-payment-strip { margin-top: 24px; }
.cms-player-payment-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.cms-player-payment-method { min-width: 0; min-height: 132px; display: grid; align-content: center; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, var(--panel2), var(--panel3)); color: var(--text); text-decoration: none; transition: border-color .16s ease, transform .16s ease; }
.cms-player-payment-method:hover { border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); transform: translateY(-2px); }
.cms-player-payment-method:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 58%, transparent); outline-offset: 3px; }
.cms-player-payment-method > strong { font-size: 1.08rem; }
.cms-player-payment-method > small { color: var(--accent); font-weight: 750; }
.cms-player-payment-currencies { display: flex; flex-wrap: wrap; gap: 6px; }
.cms-player-payment-currencies > span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-deep); color: var(--muted); font-size: .78rem; font-weight: 750; }
.cms-player-registration { display: grid; justify-items: start; gap: 12px; padding: clamp(24px, 5vw, 52px); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--panel2)), var(--panel2)); }
.cms-player-registration h2, .cms-player-registration p { margin: 0; }
.cms-player-registration p { max-width: 700px; color: var(--muted); line-height: 1.65; }
.cms-player-link-group { margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel2); }
.cms-player-link-group h2 { margin: 0 0 14px; font-size: 1.1rem; }
.cms-player-link-group ul { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; padding: 0; list-style: none; }
.cms-player-link-group a, .cms-player-link-group button { min-height: 44px; display: inline-flex; align-items: center; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.settings-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.settings-card-head { padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.settings-card-head h2 { margin: 0 0 3px; font-size: 1.385rem; }
.settings-card-head p { margin: 0; color: var(--muted); }
.settings-form { display: grid; gap: 15px; padding: 20px; }
.settings-form > label, .settings-form-row > label { display: grid; gap: 6px; }
.settings-form label > span { color: var(--text); font-size: 0.9231rem; font-weight: 700; }
.settings-form input:not([type="checkbox"]), .settings-form select {
  width: 100%; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-deep); color: var(--text); outline: none;
}
.settings-form input:focus, .settings-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.settings-form input[readonly] { background: var(--panel2); color: var(--muted); cursor: not-allowed; }
.settings-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings-form h3 { margin: 5px 0 -5px; color: var(--muted-light); font-size: 0.8462rem; letter-spacing: .8px; text-transform: uppercase; }
.settings-actions { display: flex; justify-content: flex-end; padding-top: 4px; }
/* Profile invite card: the code in a chip and the sign-up link, each with a Copy button that drops under its value
   when the row runs out of room. */
.referral-body { display: grid; gap: 16px; padding: 20px; }
.referral-field { display: grid; gap: 6px; }
.referral-label { color: var(--text); font-size: 0.9231rem; font-weight: 700; }
.referral-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.referral-code {
  flex: 999 1 260px; min-width: 0; display: flex; align-items: center; min-height: 52px; padding: 10px 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 9%, var(--bg-deep)); color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 1.154rem; font-weight: 700;
  letter-spacing: .06em; overflow-wrap: anywhere; user-select: all;
}
.referral-link {
  flex: 999 1 260px; min-width: 0; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel2); color: var(--muted-light); font-size: 0.9231rem; text-overflow: ellipsis; outline: none;
}
.referral-link:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.referral-copy { flex: 1 0 auto; min-height: 44px; }
.referral-copy[data-copied="true"] { border-color: var(--accent); color: var(--positive-text); }
.referral-note { margin: 0; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel2); color: var(--muted-light); }
.referral-foot { display: flex; justify-content: flex-end; }
.referral-crew-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; text-decoration: none; }
.referral-crew-link:hover { text-decoration: underline; }
.referral-crew-link svg { width: 16px; height: 16px; }
[dir="rtl"] .referral-crew-link svg { transform: scaleX(-1); }
.referral-state { display: grid; justify-items: start; gap: 12px; }
.referral-state p { margin: 0; color: var(--muted-light); }
.referral-skeleton { display: grid; gap: 12px; }
.referral-skeleton span {
  display: block; height: 52px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--panel2), var(--panel3), var(--panel2)); background-size: 200% 100%;
  animation: referral-shimmer 1.4s linear infinite;
}
.referral-skeleton span + span { height: 44px; }
@keyframes referral-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .referral-skeleton span { animation: none; } }
@media (max-width: 600px) { .referral-body { padding: 16px; } .referral-code { font-size: 1rem; letter-spacing: .02em; } }
.setting-toggle {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 9px 11px;
  border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel2); cursor: pointer;
}
.setting-toggle > span { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.setting-toggle strong { color: var(--text); }
.setting-toggle small { color: var(--muted); font-weight: 400; }
.setting-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.setting-toggle i { width: 37px; height: 21px; flex: none; padding: 2px; border-radius: 11px; background: var(--line); transition: background .15s; }
.setting-toggle i::after { content: ""; display: block; width: 17px; height: 17px; border-radius: 50%; background: var(--muted-light); transition: transform .15s; }
.setting-toggle input:checked + i { background: var(--accent-dark); }
.setting-toggle input:checked + i::after { transform: translateX(16px); background: #fff; }
.setting-toggle input:focus-visible + i { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.setting-toggle input:disabled + i { opacity: .72; }
.notification-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.notification-item { position: relative; display: grid; grid-template-columns: 10px 1fr; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.notification-item:last-child { border-bottom: 0; }
.notification-item.unread { background: color-mix(in srgb, var(--accent) 9%, var(--panel)); }
.notification-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: transparent; }
.notification-item.unread .notification-dot { background: var(--accent); box-shadow: 0 0 7px color-mix(in srgb, var(--accent) 54%, transparent); }
.notification-copy { min-width: 0; }
.notification-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.7692rem; }
.notification-meta time { margin-left: auto; }
.notification-category { color: var(--accent); font-weight: 800; letter-spacing: .65px; text-transform: uppercase; }
.notification-copy h2 { margin: 3px 0 2px; font-size: 1.154rem; }
.notification-copy p { margin: 0; color: var(--muted-light); white-space: pre-line; overflow-wrap: anywhere; }
.notification-actions { display: flex; gap: 16px; margin-top: 8px; }
.notification-actions .auth-link { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 6px; }
.state-card.compact { min-height: 250px; }

/* ── Account Security Center ────────────────────────────────────────────── */
.security-layout { display: grid; grid-template-columns: minmax(290px, .75fr) minmax(460px, 1.25fr); align-items: start; gap: 16px; }
.security-password-form .auth-hint { margin: -5px 0 0; }
.security-form-status { margin: 0; padding: 10px 11px; border: 1px solid #34724f; border-radius: var(--radius); background: #183a29; color: #aaf0c5; }
.security-card-toolbar { display: flex; align-items: center; gap: 12px; }
.security-card-toolbar > div { min-width: 0; flex: 1; }
.security-card-toolbar .button { min-height: 44px; padding: 0 11px; flex: none; }
.security-sessions-body { padding: 14px; }
.security-session-list { display: grid; gap: 10px; }
.security-session { padding: 14px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel2); }
.security-session.current { border-color: color-mix(in srgb, var(--accent) 44%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--panel2)); }
.security-session-head { display: flex; align-items: center; gap: 10px; }
.security-session-head > div:last-child { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.security-session-head strong { overflow-wrap: anywhere; }
.security-device-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--panel3); color: var(--accent); }
.security-device-icon svg { width: 17px; height: 17px; }
.security-current { padding: 3px 7px; border-radius: 10px; background: #1c5738; color: #aaf0c5; font-size: 0.6923rem; font-weight: 800; letter-spacing: .55px; text-transform: uppercase; }
.security-session-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 13px 0 0; }
.security-session-details div { min-width: 0; padding: 8px 9px; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--bg-deep); }
.security-session-details dt { color: var(--muted); font-size: 0.6923rem; font-weight: 750; letter-spacing: .55px; text-transform: uppercase; }
.security-session-details dd { overflow-wrap: anywhere; margin: 3px 0 0; color: var(--muted-light); font-size: 0.8462rem; }
.security-session-actions { display: flex; justify-content: flex-end; margin-top: 11px; }
.security-session-actions .button { min-height: 44px; padding: 0 11px; }
.security-confirm { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 12px; padding: 11px; border: 1px solid #985353; border-radius: var(--radius); background: #3b2222; }
.security-confirm strong { color: #fff; }
.security-confirm p { margin: 2px 0 0; color: #e4bbbb; }
.security-confirm-actions { display: flex; gap: 7px; }
.security-danger-zone { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 16px; padding: 17px 19px; border: 1px solid #714040; border-radius: var(--radius-lg); background: #2b1d1d; }
.security-danger-zone h2 { margin: 0 0 3px; color: #fff; font-size: 1.308rem; }
.security-danger-zone > div > p { margin: 0; color: #c69f9f; }
.security-danger-zone > .security-confirm { grid-column: 1 / -1; margin-top: 0; }
.security-empty { min-height: 220px; border: 0; background: transparent; }

/* ── Game player ─────────────────────────────────────────────────────────── */
body.player-open { overflow: hidden; }
body.player-open .category-tabs { display: none; }
body.player-open .view { min-height: calc(100vh - 56px); }
.player-shell { display: flex; flex-direction: column; height: calc(100vh - 56px); background: var(--bg-deep); }
.player-toolbar {
  height: 50px; flex: none; display: flex; align-items: center; gap: 9px; padding: 0 12px;
  border-bottom: 1px solid var(--line); background: var(--panel2);
}
.player-tool {
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--muted-light); cursor: pointer;
}
.player-tool:hover { background: var(--panel3); color: var(--text); }
.player-tool.active { color: var(--action-border); }
.player-tool svg { width: 17px; height: 17px; }
.player-title { min-width: 0; display: flex; flex: 1; flex-direction: column; line-height: 1.22; }
.player-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-title small { color: var(--muted); }
.player-balance { display: flex; align-items: center; gap: 7px; margin-right: 4px; color: var(--muted); }
.player-balance strong { color: var(--text); font-variant-numeric: tabular-nums; }
.player-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at center, var(--panel2), var(--bg-deep) 72%); }
.player-frame-wrap { width: 100%; height: 100%; display: grid; place-items: center; }
.game-frame { width: 100%; height: 100%; border: 0; background: var(--bg-deep); }
.player-overlay { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; background: color-mix(in srgb, var(--bg-deep) 91%, transparent); text-align: center; }
.player-overlay h1, .player-overlay h2 { margin: 15px 0 5px; font-size: 1.538rem; }
.player-overlay p { max-width: 440px; margin: 0 0 18px; color: var(--muted); }
.player-spinner { width: 42px; height: 42px; border: 4px solid var(--panel3); border-top-color: var(--action-border); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-error-icon { width: 53px; height: 53px; display: grid; place-items: center; border-radius: 50%; background: #3b2424; color: #ff8888; }
.player-error-icon svg { width: 26px; height: 26px; }
.player-actions { display: flex; gap: 8px; }
/* A game's pre-launch view on a brand without the demo entry (docs/GUEST-ENTRY.md): its artwork and name, real play
   and, for the RGS's own games, demo play; a visitor reads why real play asks for a sign-in. */
.player-prelaunch { gap: 10px; overflow-y: auto; }
.player-prelaunch h1 { margin: 2px 0 0; font-size: 1.385rem; }
.prelaunch-art { position: relative; width: 148px; flex: none; aspect-ratio: 365 / 452; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); box-shadow: var(--shadow); }
.prelaunch-art img { width: 100%; height: 100%; object-fit: cover; }
.prelaunch-art img:not([hidden]) + .game-initials { display: none; }
.prelaunch-actions { width: min(320px, 100%); display: grid; gap: 8px; margin-top: 4px; }
.prelaunch-actions .button { width: 100%; min-height: 48px; }
.player-prelaunch .prelaunch-note { max-width: 340px; margin: 0; font-size: 0.8462rem; line-height: 1.4; }

/* ── Toast and confirmation ──────────────────────────────────────────────── */
.toast-region { position: fixed; right: 16px; bottom: 18px; z-index: 100; width: min(360px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
/* The support chat bubble (features.support). The chat itself is the lazily loaded widget, styled in its shadow root. */
.support-bubble { position: fixed; right: 16px; bottom: 18px; z-index: 90; width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--action-border); border-radius: 50%; background: var(--odd); color: var(--on-action); box-shadow: var(--shadow); cursor: pointer; }
.support-bubble:hover { background: var(--action-hover); }
.support-bubble:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.support-bubble[hidden] { display: none; }
.support-bubble[aria-busy="true"] { opacity: .7; cursor: progress; }
/* The floating Help icon (M3): in the chat bubble's place, logical properties so it sits on the reading side's end. */
.help-icon { position: fixed; inset-inline-end: 16px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.help-icon[hidden], .help-icon-menu[hidden] { display: none; }
.help-icon-button { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--action-border); border-radius: 50%; background: var(--odd); color: var(--on-action); box-shadow: var(--shadow); cursor: pointer; }
.help-icon-button:hover { background: var(--action-hover); }
.help-icon-button:focus-visible, .help-icon-menu a:focus-visible, .help-icon-menu button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.help-icon-menu { display: flex; flex-direction: column; min-width: 180px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-lg, 12px); background: var(--panel); box-shadow: var(--shadow); }
.help-icon-menu a, .help-icon-menu button { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--radius, 7px); background: transparent; color: inherit; font: inherit; text-align: start; text-decoration: none; cursor: pointer; }
.help-icon-menu a:hover, .help-icon-menu button:hover { background: var(--line-soft, rgba(255,255,255,.06)); }
.help-icon-menu [hidden] { display: none; }
.toast { display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); animation: toast-in .2s ease-out; pointer-events: auto; }
.toast.error { border-color: #724343; background: #342222; }
.toast.error strong { color: #fff; }
.toast.error small { color: #e8c5c5; }
.toast svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.toast.error svg { color: var(--danger); }
.toast div { min-width: 0; flex: 1; }
.toast strong { display: block; }
.toast small { color: var(--muted-light); }
.toast button { border: 0; padding: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.385rem; line-height: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.confirm-layer { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: #020705b8; backdrop-filter: blur(3px); }
.confirm-dialog { width: min(420px, 100%); padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); text-align: center; }
.dialog-icon { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto; border-radius: 50%; background: var(--panel3); color: var(--action-border); }
.dialog-icon svg { width: 24px; height: 24px; }
.confirm-dialog h2 { margin: 14px 0 5px; }
.confirm-dialog p { margin: 0; color: var(--muted-light); }
.dialog-actions { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }

/* ── Account authentication ─────────────────────────────────────────────── */
body.auth-open { overflow: hidden; }
.auth-layer {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  padding: 24px; overflow-y: auto; background: #020705c7; backdrop-filter: blur(5px);
}
.auth-dialog, .auth-route-card {
  position: relative; width: min(450px, 100%); padding: 29px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel), var(--panel2)); box-shadow: var(--shadow);
}
.auth-dialog { max-height: min(760px, calc(100dvh - 32px)); overflow-y: auto; }
.auth-close {
  position: absolute; z-index: 2; top: 10px; right: 10px; width: 44px; height: 44px;
  display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: var(--panel3); color: var(--text); box-shadow: 0 4px 14px #0004;
  font-size: 1.846rem; line-height: 1; cursor: pointer;
}
.auth-close:hover { border-color: var(--action-border); background: color-mix(in srgb, var(--text) 10%, var(--panel3)); color: var(--text); }
.auth-mark {
  width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 15px; overflow: hidden;
  border-radius: 11px; background: var(--odd); color: var(--on-action); font-size: 1.385rem; font-weight: 900;
  box-shadow: 0 8px 20px #03080570;
}
/* The brand's icon fills the mark's square (app.js authMarkMarkup); the letter is only its fallback. */
.auth-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.auth-kicker { color: var(--accent); font-size: 0.7692rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.auth-dialog h2, .auth-route-card h1 { margin: 3px 36px 5px 0; font-size: 1.846rem; line-height: 1.2; letter-spacing: -.4px; }
.auth-route-card h1 { margin-right: 0; }
.auth-description { margin: 0 0 20px; color: var(--muted-light); }
.auth-method-tabs {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 0 0 18px; padding: 4px;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); background: var(--bg-deep);
}
.auth-method-tabs button {
  min-width: 0; min-height: 44px; padding: 7px 8px; border: 0; border-radius: var(--radius); background: transparent;
  color: var(--muted-light); font: inherit; font-size: .7692rem; font-weight: 800; line-height: 1.18; cursor: pointer;
}
.auth-method-tabs button:hover { color: var(--text); background: color-mix(in srgb, var(--panel3) 90%, var(--accent)); }
.auth-method-tabs button[aria-selected="true"] { color: var(--on-action); background: var(--odd); box-shadow: 0 5px 14px #0003; }
.auth-method-tabs button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.auth-method-empty { margin: 5px 0 18px; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted-light); text-align: center; }
.social-auth { display: grid; gap: 14px; margin: 0 0 18px; }
.social-auth-buttons { display: grid; gap: 9px; }
.social-auth-button {
  min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel3); color: var(--text);
  font-weight: 750; text-decoration: none; transition: border-color .15s, background .15s, transform .15s;
}
.social-auth-button:hover { border-color: var(--action-border); background: color-mix(in srgb, var(--panel3) 88%, var(--accent)); transform: translateY(-1px); }
.social-auth-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.social-auth-mark {
  width: 26px; height: 26px; display: grid; place-items: center; flex: none; border-radius: 50%;
  background: var(--bg-deep); color: var(--text); font-size: .8462rem; font-weight: 900;
}
.social-auth-logo { width: 17px; height: 17px; display: block; }
.social-auth-google .social-auth-mark { background: #fff; color: #4285f4; }
.social-auth-discord .social-auth-mark { background: #5865f2; color: #fff; }
.social-auth-telegram .social-auth-mark { background: #229ed9; color: #fff; }
.social-auth-telegram .social-auth-logo { width: 16px; height: 16px; }
.social-auth-divider { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: .7692rem; }
.social-auth-divider::before, .social-auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.social-auth-divider span { white-space: nowrap; }
.wallet-auth-panel { display: grid; gap: 14px; }
.wallet-auth-panel > p { margin: 0; color: var(--muted-light); }
.wallet-auth-button {
  min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 11px; padding: 0 16px;
  border: 1px solid #f6851b99; border-radius: var(--radius); background: color-mix(in srgb, var(--panel3) 90%, #f6851b);
  color: var(--text); font: inherit; font-weight: 800; cursor: pointer; transition: border-color .15s, transform .15s, background .15s;
}
.wallet-auth-button:hover { border-color: #f6851b; background: color-mix(in srgb, var(--panel3) 82%, #f6851b); transform: translateY(-1px); }
.wallet-auth-button:focus-visible { outline: 3px solid #f6851b66; outline-offset: 2px; }
.wallet-auth-button:disabled { cursor: wait; opacity: .72; transform: none; }
.wallet-auth-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.wallet-auth-logo { width: 34px; height: 34px; display: block; }
.auth-form { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 6px; }
.auth-field label { color: var(--text); font-size: 0.9231rem; font-weight: 700; }
.auth-field input {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-deep); color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-field input::placeholder { color: var(--muted); }
.auth-field input:focus { border-color: var(--accent); background: color-mix(in srgb, var(--bg-deep) 88%, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.auth-field input[aria-invalid="true"] { border-color: var(--danger); }
.auth-hint { margin: -1px 0 0; color: var(--muted); font-size: 0.7692rem; }
.auth-error {
  display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 11px;
  border: 1px solid #733e3e; border-radius: var(--radius); background: #342020; color: #ffd2d2;
}
.auth-error svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.auth-form .button { width: 100%; min-height: 44px; margin-top: 2px; }
.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; color: var(--muted-light); font-size: 0.8462rem; }
.auth-links.center { justify-content: center; }
/* A brand that closed registration or sign-in (app.js paintAuthEntryPolicy) shows no button to it, whichever page or
   module drew the button. */
:root[data-registration-closed] [data-action="open-register"],
:root[data-login-closed] [data-action="open-login"] { display: none !important; }
.auth-link { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 6px; border: 0; background: none; color: var(--accent); font-weight: 700; cursor: pointer; }
.auth-link:hover { color: color-mix(in srgb, var(--accent) 78%, white); text-decoration: underline; }
:root[data-color-mode="light"] .section-link:hover,
:root[data-color-mode="light"] .auth-link:hover { color: var(--accent-dark); }
.auth-secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 18px 0 0; color: var(--muted); font-size: 0.7692rem; }
.auth-secure-note svg { width: 13px; height: 13px; }
.auth-result { text-align: center; }
.auth-result .state-icon { margin: 0 auto 15px; }
.auth-result h2 { margin: 0 0 7px; }
.auth-result p { margin: 0 0 20px; color: var(--muted-light); }
.auth-result .button { width: 100%; }
.auth-route-open .category-tabs { display: none; }
.auth-route-open .view { min-height: calc(100vh - 56px); }
.auth-route-shell { min-height: calc(100vh - 56px); display: grid; place-items: center; padding: 35px 18px 80px; }
.auth-route-card { text-align: left; }
.auth-route-card .state-icon { margin-bottom: 15px; }
.auth-route-card .auth-route-actions { display: flex; gap: 8px; margin-top: 20px; }
.auth-route-card .auth-route-actions .button { flex: 1; }
.auth-route-loading { display: flex; align-items: center; gap: 11px; margin-top: 20px; color: var(--muted-light); }
.auth-mini-spinner { width: 22px; height: 22px; flex: none; border: 3px solid var(--panel3); border-top-color: var(--action-border); border-radius: 50%; animation: spin .8s linear infinite; }
.noscript { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 30px; background: var(--bg); color: var(--text); font-size: 1.385rem; text-align: center; }

/* ── Mobile bottom navigation ────────────────────────────────────────────── */
.botnav { display: none; }

/* P2P Arcade is a separate product surface, not a Casino category. */
.arcade-shell { display: grid; gap: 22px; }
.arcade-hero {
	position: relative; overflow: hidden; min-height: 230px; display: flex; flex-direction: column;
	justify-content: flex-end; gap: 10px; padding: clamp(24px, 5vw, 58px); border: 1px solid var(--line);
	border-radius: calc(var(--radius) + 8px); background:
		radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 34%),
		linear-gradient(135deg, color-mix(in srgb, var(--panel) 88%, #16102c), color-mix(in srgb, var(--bg-deep) 91%, #23104b));
	box-shadow: var(--shadow);
}
.arcade-hero::after { content: "VS"; position: absolute; right: clamp(24px, 8vw, 110px); top: 50%; translate: 0 -50%; font-size: clamp(4rem, 11vw, 9rem); font-weight: 900; line-height: 1; color: color-mix(in srgb, var(--accent) 13%, transparent); pointer-events: none; }
.arcade-hero > * { position: relative; z-index: 1; }
.arcade-hero h1 { margin: 0; font-size: clamp(2.3rem, 6vw, 4.8rem); line-height: .95; }
.arcade-hero p { max-width: 700px; margin: 0; color: var(--muted-light); font-size: 1.05rem; }
.arcade-principles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.arcade-principles a { min-height: 44px; display: inline-flex; align-items: center; padding: 7px 13px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--panel) 76%, transparent); color: var(--text); font-size: .78rem; font-weight: 750; text-decoration: none; }
.arcade-principles a:hover, .arcade-principles a:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
.arcade-game-directory, .arcade-challenge-launchers { scroll-margin-top: 110px; }
.arcade-challenge-launchers { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.arcade-challenge-launchers h2 { margin: 0; font-size: 1rem; }
.arcade-challenge-launchers > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.arcade-challenge-launchers .button { min-height: 44px; }
.arcade-invite { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 9%, var(--panel)); }
.arcade-invite > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--accent) 18%, var(--panel)); color: var(--accent); }
.arcade-invite svg { width: 22px; height: 22px; }
.arcade-invite strong, .arcade-invite p { display: block; margin: 0; }
.arcade-invite p { margin-top: 3px; color: var(--muted); }
.arcade-invite-detailed { grid-template-columns: 84px minmax(0, 1fr) auto; padding: 12px; }
.arcade-invite-art { width: 84px; height: 84px; display: block; border-radius: 12px; object-fit: cover; background: var(--panel2); }
.arcade-invite-body { min-width: 0; display: grid; gap: 9px; }
.arcade-invite-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.arcade-invite-heading strong { font-size: 1.08rem; }
.arcade-challenge-status { min-height: 26px; display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted-light); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.arcade-challenge-status.open { border-color: color-mix(in srgb, var(--success, #35c98b) 48%, var(--line)); background: color-mix(in srgb, var(--success, #35c98b) 10%, var(--panel)); color: var(--success, #65e6af); }
.arcade-invite-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; }
.arcade-invite-facts > div { min-width: 0; padding: 7px 9px; border: 1px solid var(--line-soft); border-radius: 9px; background: color-mix(in srgb, var(--panel2) 82%, transparent); }
.arcade-invite-facts dt { color: var(--muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .03em; }
.arcade-invite-facts dd { overflow: hidden; margin: 2px 0 0; color: var(--text); font-size: .8rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.arcade-invite-detailed > .button { min-width: 148px; min-height: 44px; }
.arcade-activation { padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--warning, #e7a840) 42%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--warning, #e7a840) 8%, var(--panel)); }
.arcade-activation strong, .arcade-activation p { display: block; margin: 0; }
.arcade-activation p { margin-top: 4px; color: var(--muted); }
.arcade-grid .game-card { border-color: color-mix(in srgb, var(--accent) 24%, var(--line)); }
.cms-site-footer {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 22px max(18px, env(safe-area-inset-left)) 26px;
  border-top: 1px solid var(--line-soft); background: var(--panel); color: var(--muted-light); font-size: .8462rem;
}
.cms-site-footer a, .cms-site-footer button, .cms-site-footer summary { padding: 5px 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.cms-site-footer a:hover, .cms-site-footer button:hover, .cms-site-footer summary:hover { color: var(--text); }
.cms-site-footer .cms-nav-group-items { min-width: 180px; padding: 6px 0 0 14px; }
/* Always-present legal row: Terms / Privacy / Responsible gaming. Appended
   below a published footer, or shown alone when nothing is published. */
.cms-footer-legal { display: flex; flex-wrap: wrap; flex-basis: 100%; justify-content: center; gap: 4px 22px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: .9231rem; color: var(--muted-light); }
.cms-footer-legal:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cms-footer-legal a { display: inline-flex; align-items: center; min-height: 32px; padding: 0; text-decoration: underline; text-decoration-color: var(--line-soft); text-underline-offset: 3px; }

@media (min-width: 921px) {
  .category-tabs { justify-content: center; justify-content: safe center; }
}

@media (max-width: 1120px) {
  .connection span:last-child { display: none; }
  .header-mode-copy { display: none; }
  .header-mode-options button { padding: 0; }
  .cms-quick-actions { display: none; }
  /* Room for the profile button beside the wallet pill (2026-10-19); the coin names the currency. */
  .balance-code { display: none; }
  .topnav { gap: 16px; }
  .header-actions { gap: 6px; }
  .hero-copy { padding-inline-start: 66px; }
}

@media (max-width: 920px) {
  .topbar { gap: 16px; }
  .header-actions > .header-mode-options { display: none; }
  .header-theme-copy, .header-theme > summary > svg { display: none; }
  .header-theme > summary { width: 44px; padding: 0; justify-content: center; }
  .settings-grid { grid-template-columns: 1fr; }
  .security-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	.topnav { display: none; }
	.arcade-shell { gap: 14px; }
	.arcade-hero { min-height: 200px; padding: 24px 18px; border-radius: var(--radius); }
	.arcade-hero::after { right: 12px; top: 30%; font-size: 5.5rem; }
	.arcade-hero p { font-size: .92rem; }
	.arcade-invite { grid-template-columns: auto 1fr; padding: 12px; }
	.arcade-invite .button { grid-column: 1 / -1; width: 100%; }
	.arcade-invite-detailed { grid-template-columns: 64px minmax(0, 1fr); }
	.arcade-invite-art { width: 64px; height: 64px; }
	.arcade-invite-facts { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
	.arcade-invite-facts > div:nth-child(3) { grid-column: 1 / -1; }
	.arcade-invite-detailed > .button { grid-column: 1 / -1; }
	.arcade-challenge-launchers { align-items: stretch; flex-direction: column; }
	.arcade-challenge-launchers > div { display: grid; grid-template-columns: 1fr 1fr; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .game-grid, .game-row { --game-card-width: max(108px, min(184px, calc(33.333% - 9px))); }
  .game-rail-configured .game-row { --game-card-width: max(108px, var(--rail-config-mobile)); }
  .topbar { position: sticky; height: 52px; padding: 0 11px; gap: 9px; }
  .brand { font-size: 1.462rem; }
  .brand-logo { height: 22px; max-width: 118px; }
  .connection { display: none; }
  .header-theme-copy, .header-theme > summary > svg { display: none; }
  .header-theme > summary { width: 44px; padding: 0; justify-content: center; }
  .header-theme-popover {
    position: fixed; top: 59px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    width: min(320px, calc(100vw - 16px)); max-height: none;
  }
  .balance-pill { max-width: 164px; gap: 5px; padding: 0 8px 0 5px; }
  .balance-amount { font-size: 0.9231rem; }
  .balance-coin .currency-coin { width: 22px; height: 22px; }
  .wallet-row { min-height: 44px; }
  .wallet-rows { max-height: calc(7.5 * 44px); }
  .wallet-menu { position: fixed; top: 59px; inset-inline-end: 8px; width: min(300px, calc(100vw - 16px)); max-height: calc(100dvh - 125px - env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
  .notification-button { width: 44px; height: 44px; }
	.account-menu { position: fixed; top: 59px; right: 8px; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); width: min(320px, calc(100vw - 16px)); max-height: none; overflow-y: auto; overscroll-behavior: contain; }
	.casino-leaderboard { padding: 16px 13px; margin: 14px 0 20px; }
	.casino-competition { padding: 0; }
	.competition-header { grid-template-columns: 1fr; gap: 16px; padding: 18px 14px 15px; }
	.competition-title h2 { font-size: 1.42rem; }
	.competition-title p { font-size: .8rem; }
	.competition-countdown { width: 100%; gap: 5px; }
	.competition-prize-pool { min-width: 0; }
	.competition-time-unit { min-width: 0; min-height: 57px; padding: 6px 3px; border-radius: 10px; }
	.competition-time-unit strong { font-size: 1.08rem; }
	.competition-time-unit small { font-size: .53rem; }
	.competition-toolbar { align-items: stretch; flex-direction: column; padding: 9px 13px 11px; gap: 7px; }
	.competition-tabs { display: grid; grid-template-columns: repeat(2, 1fr); }
	.competition-tabs button { min-width: 0; min-height: 44px; padding: 0 5px; font-size: .72rem; }
	.competition-currency { align-self: end; }
	.competition-position { grid-template-columns: 1fr; margin: 0 13px 14px; }
	.competition-position > div { min-height: 62px; }
	.competition-position-guest { grid-template-columns: minmax(0, 1fr) auto; }
	.casino-competition-list { grid-template-columns: 1fr; padding: 12px 13px 16px; }
	.casino-competition-list li { min-height: 56px; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 7px; padding-inline: 9px; }
	.competition-wager li { grid-template-columns: 32px minmax(0, 1fr) auto; }
	.competition-history-cycle > details > summary { min-height: 62px; align-items: flex-start; flex-direction: column; gap: 4px; }
	.competition-history-cycle > details > summary > b { white-space: normal; }
	.competition-history-cycle > details > ol { grid-template-columns: 1fr; }
	.competition-drawers { grid-template-columns: 1fr; margin: 0 13px 16px; }
	.competition-prize-tiers { grid-template-columns: 1fr; }
	.leaderboard-head { align-items: stretch; flex-direction: column; gap: 12px; }
	.leaderboard-tabs { width: 100%; }
	.leaderboard-tabs button { flex: 1; padding-inline: 6px; }
	.casino-leaderboard-list { grid-template-columns: 1fr; margin-top: 14px; }
	.casino-leaderboard-list li { grid-template-columns: 34px minmax(0, 1fr) auto; padding-inline: 8px; }
	.leaderboard-rounds { display: none; }
  .category-tabs { top: 52px; min-height: 55px; padding: 0 5px; justify-content: flex-start; }
  .category-tab { min-width: 66px; padding-left: 6px; padding-right: 6px; }
  .offline-banner { top: 107px; }
  .view { min-height: calc(100vh - 107px); }
  .page-shell { padding: 10px 9px 25px; }
  .cms-player-page { padding-top: 22px; }
  .cms-player-page-header { margin-bottom: 16px; }
  .cms-player-hero { min-height: 300px; padding: 26px 20px; border-radius: 16px; align-items: flex-end; }
  .cms-player-hero.align-right { text-align: left; }
  .cms-player-hero.align-right .cms-player-hero-actions { justify-content: flex-start; }
  .cms-player-announcement { align-items: flex-start; flex-direction: column; }
  .cms-player-content { padding: 22px 18px; border-radius: 14px; }
  .cms-player-banner { border-radius: 16px; }
  .cms-player-banner-slide { min-height: 310px; }
  .cms-player-banner-copy { padding: 24px 20px; }
  .cms-player-registration { padding: 22px 18px; }
  .cms-site-footer { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .cms-footer-legal a { min-height: 44px; }
  .casino-hero { height: 220px; min-height: 190px; max-height: 220px; }
  .hero-copy { width: 88%; padding: 22px 52px; padding-inline-start: 64px; }
  .hero-copy h1 { font-size: 2.462rem; }
  .hero-copy p { max-width: 330px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .hero-art::before { background: linear-gradient(90deg, color-mix(in srgb, var(--bar2) 72%, #000) 0%, color-mix(in srgb, var(--bar2) 86%, transparent) 60%, color-mix(in srgb, var(--bar2) 30%, transparent) 100%); }
  .hero-actions .secondary { display: none; }
  .hero-arrow { width: 44px; height: 44px; }
  .hero-arrow-previous { left: 8px; }
  .hero-arrow-next { right: 8px; }
  .lobby-search { gap: 7px; padding: 8px; }
  .lobby-search-submit { min-width: 98px; padding: 0 12px; }
  .section { margin-top: 22px; }
  .section-head h2 { font-size: 1.154rem; }
  .section-head p { display: none; }
  .game-rail-actions { gap: 7px; }
  .game-rail-controls button { width: 44px; height: 44px; }
  .game-card:hover { transform: none; }
  .game-info { height: 40px; min-height: 40px; gap: 2px; padding: 0 2px 0 7px; }
  .game-players { gap: 4px; font-size: 0.7692rem; }
  .game-players .players-word { display: none; }
  .players-dot { width: 7px; height: 7px; box-shadow: none; }
  .card-play { display: none; }
  .availability { display: none; }
  .card-skeletons { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .card-skeletons i:nth-child(4) { display: none; }
  .page-header { align-items: flex-start; margin: 5px 2px 15px; }
  .page-header .header-count { font-size: 0.8462rem; }
  .page-header.category-header { align-items: center; }
  .category-count { font-size: 0.8462rem; }
  .provider-filter-toggle { min-height: 40px; gap: 6px; padding: 0 10px; font-size: 0.8462rem; }
  .history-toolbar { width: 100%; margin: 7px 0 0; }
  .history-toolbar .button { flex: 1; }
  .settings-form { padding: 16px; }
  .security-session-details { grid-template-columns: 1fr; }
  .security-danger-zone { grid-template-columns: 1fr; align-items: stretch; }
  .security-danger-zone > .button { width: 100%; }
  .security-confirm { grid-template-columns: 1fr; }
  .security-confirm-actions .button { flex: 1; }
  .cashier-layout { grid-template-columns: 1fr; }
  .cashier-resolution { grid-template-columns: auto 1fr; }
  .cashier-resolution .button { grid-column: 1 / -1; width: 100%; }
  .bet-filters { align-items: stretch; flex-wrap: wrap; }
  .bet-verticals { flex-basis: 100%; }
  .bet-filters label { min-width: calc(50% - 5px); flex: 1; }
  .bet-filters .button { align-self: end; }
  .bet-count { width: 100%; margin: 0; padding: 0; }
  /* Phones: the filters and refresh fit in two compact rows above the bets. */
  .my-bets-page .page-header { flex-wrap: nowrap; align-items: center; margin-bottom: 10px; }
  .my-bets-page .page-header p { display: none; }
  .my-bets-page .history-toolbar { width: auto; margin: 0 0 0 auto; }
  .my-bets-page .history-toolbar .button { flex: none; min-height: 40px; padding: 0 12px; }
  .my-bets-page .bet-filters { gap: 8px; padding: 10px; }
  .my-bets-page .bet-filters label { min-width: 0; flex: 1; }
  .my-bets-page .bet-filters label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .my-bets-page .bet-filters .button { width: auto; align-self: stretch; }
  .my-bets-page .bet-count { padding: 0; font-size: .7692rem; }
  .bet-list-head { display: none; }
  /* Two lines per bet; closed details are a small arrow, open they take the row below. */
  .bet-card {
    grid-template-columns: 40px minmax(0, 1fr) auto auto 16px; gap: 2px 10px; padding: 8px 10px;
    grid-template-areas: "thumb primary primary payout caret" "thumb when multi stake caret" "details details details details details";
  }
  .bet-card-mobile-disclosure { grid-area: caret; align-self: center; }
  .bet-card-mobile-disclosure > summary { min-height: 36px; font-size: 0; gap: 0; }
  .bet-thumb { grid-area: thumb; align-self: start; }
  .bet-primary { grid-area: primary; }
  .bet-when { grid-area: when; font-size: .7692rem; }
  .bet-stake { grid-area: stake; }
  .bet-multiplier { grid-area: multi; }
  .bet-payout { grid-area: payout; }
  .bet-stake, .bet-multiplier, .bet-payout { display: flex; align-items: baseline; justify-content: flex-end; }
  .bet-stake dd, .bet-multiplier dd { color: var(--muted); font-size: .7692rem; font-weight: 650; }
  .bet-stake { gap: 4px; }
  .bet-stake dt { position: static; width: auto; height: auto; overflow: visible; clip: auto; color: var(--muted); font-size: .6923rem; font-weight: 650; }
  .bet-card-mobile-disclosure[open] { grid-area: details; }
  .bet-card-mobile-disclosure[open] > summary { margin-left: auto; }
  .bet-card-mobile-detail-body .bet-details-button { width: 100%; min-height: 40px; margin-top: 9px; }
  .history-summary { grid-template-columns: 1fr 1fr; }
  .history-summary .summary-card:last-child { grid-column: 1 / -1; }
  .history-table-wrap { border: 0; background: transparent; overflow: visible; }
  .history-table, .history-table tbody { display: block; }
  .history-table thead { display: none; }
  .history-table tr { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin-bottom: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
  .history-table td { display: block; padding: 0; border: 0 !important; }
  .history-table .game-cell { grid-column: 1; grid-row: 1; }
  .history-table td[data-label="Amount"] { grid-column: 2; grid-row: 1; text-align: right; }
  .history-table td[data-label="Type"] { grid-column: 1; grid-row: 2; }
  .history-table td[data-label="Status"] { grid-column: 2; grid-row: 2; text-align: right; }
  .history-table td[data-label="Time"] { grid-column: 1; grid-row: 3; color: var(--muted); font-size: 0.8462rem; }
  .history-table td[data-label="Balance"] { grid-column: 2; grid-row: 3; text-align: right; color: var(--muted); font-size: 0.8462rem; }
  .history-table td[data-label="Reference"] { display: none; }
  .botnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(56px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: flex-start; justify-content: space-around;
    padding: 7px 4px env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-deep) 96%, transparent); backdrop-filter: blur(8px);
  }
  .botnav a { min-width: 52px; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 0.6923rem; font-weight: 650; }
	.botnav .cms-nav-action { appearance: none; min-width: 52px; min-height: 44px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font: inherit; font-size: 0.6923rem; font-weight: 650; cursor: pointer; }
	.botnav .cms-nav-action svg { width: 24px; height: 24px; }
  .botnav > .cms-nav-group { min-width: 52px; }
  .botnav > .cms-nav-group > summary { min-width: 52px; min-height: 44px; flex-direction: column; justify-content: center; gap: 2px; color: var(--muted); font-size: .6923rem; font-weight: 650; }
  .botnav > .cms-nav-group > summary > .cms-nav-chevron { display: none; }
  .botnav .cms-nav-group-items {
    position: absolute; right: 4px; bottom: calc(100% + 8px); z-index: 80; min-width: min(260px, calc(100vw - 8px)); display: grid; padding: 7px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--tabs); box-shadow: var(--shadow); color: var(--text);
  }
  .botnav .cms-nav-group-items a, .botnav .cms-nav-group-items button, .botnav .cms-nav-group-items summary { min-height: 44px; display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 0 10px; border: 0; background: transparent; color: var(--muted-light); font: inherit; }
  .botnav .cms-nav-group-items .cms-nav-group-items { position: static; min-width: 0; margin: 0 4px 5px 12px; box-shadow: none; }
  .botnav a.active, .botnav .cms-nav-action.active { color: var(--text); }
  .botnav > :is(a, .cms-nav-action).active { position: relative; }
  .botnav > :is(a, .cms-nav-action).active::before {
    content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%); width: 70%; max-width: 40px; height: 12.6px; pointer-events: none;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 20%, transparent), transparent);
  }
  .botnav > :is(a, .cms-nav-action).active::after {
    content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
    width: 70%; max-width: 40px; height: 3px; border-radius: 3px; background: var(--accent); pointer-events: none;
  }
  .botnav a.active > .ui-icon, .botnav .cms-nav-action.active > .ui-icon { color: var(--accent); }
  .botnav svg { width: 24px; height: 24px; }
  .toast-region { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); right: 9px; width: calc(100vw - 18px); }
  .support-bubble { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); right: 12px; width: 52px; height: 52px; }
  .auth-layer { padding: 12px; }
  .auth-dialog, .auth-route-card { padding: 24px 20px; }
  .auth-route-shell { min-height: calc(100dvh - 52px); padding: 20px 10px 76px; }
  .auth-route-open .view { min-height: calc(100dvh - 52px); }
  .account-route-open .view { min-height: calc(100dvh - 52px); }
  body.player-open { padding-bottom: 0; }
  body.player-open .topbar, body.player-open .botnav { display: none; }
  body.player-open .view { min-height: 100vh; }
  .player-shell { height: 100dvh; }
  /* A hosted sportsbook is a persistent product surface on mobile, not a
     full-screen casino game. Keep Betfabriq's trusted top and bottom chrome
     visible and constrain the remote document to the viewport between them. */
  /* Lock the outer document as well as the body. A cross-origin frame can
     chain its end-of-scroll gesture to the root on mobile; body overflow
     alone lets the sticky header move out of the viewport. */
  html:has(body.player-open.sportsbook-player-open) { overflow: hidden; overscroll-behavior: none; }
  body.player-open.sportsbook-player-open {
    position: fixed; inset: 0; width: 100%; height: 100dvh; min-height: 0;
    overflow: hidden; overscroll-behavior: none; padding-bottom: 0;
  }
  body.player-open.sportsbook-player-open .topbar,
  body.player-open.sportsbook-player-open .botnav { display: flex; }
  body.player-open.sportsbook-player-open .topbar { position: fixed; inset: 0 0 auto; }
  body.player-open.sportsbook-player-open .view {
    position: absolute; top: 52px; left: 0; right: 0;
    height: calc(100dvh - 108px - env(safe-area-inset-bottom, 0px));
    min-height: 0;
    overflow: hidden;
  }
  body.player-open.sportsbook-player-open .sportsbook-player-shell { height: 100%; }
  .player-toolbar { height: 48px; padding: 0 8px; }
  .player-balance span { display: none; }
  .player-toolbar .player-tool:nth-last-child(-n+2) { display: none; }
  /* The pre-launch toolbar has no restart or fullscreen: its last two tools are the info and favourite buttons. */
  .player-prelaunch-shell .player-toolbar .player-tool { display: grid; }
  .prelaunch-art { width: 120px; }
  .player-stage { min-height: 0; }
}

@media (max-width: 470px) {
  .topbar { gap: 4px; padding-right: 7px; padding-left: 7px; }
  .brand { font-size: 1.308rem; }
  .brand-logo { height: 19px; max-width: 101px; }
  .header-actions { gap: 4px; }
  .header-theme > summary { width: 44px; padding: 0; }
  .header-theme-preview { width: 24px; height: 18px; }
  .notification-button { display: none !important; }
  .balance-pill { max-width: 148px; }
  .header-auth { gap: 4px; }
  .header-auth .button { padding: 0 9px; font-size: 0.7692rem; }
  .card-skeletons { grid-template-columns: repeat(2, 1fr); }
  .card-skeletons i:nth-child(3) { display: none; }
  .casino-hero { height: 205px; }
  .hero-copy { width: 96%; padding: 18px 48px; padding-inline-start: 64px; }
  .hero-copy h1 { font-size: 2.154rem; }
  .hero-copy p { margin-bottom: 10px; }
  .lobby-search { align-items: stretch; }
  .lobby-search-field { height: 44px; }
  .lobby-search-submit { min-width: 82px; height: 44px; padding: 0 9px; font-size: 0.8462rem; }
  .game-rail-actions .section-link { display: none; }
  .game-rail-studio .game-rail-actions .section-link { display: inline-flex; }
  .page-header { flex-wrap: wrap; }
  .page-header .header-count { margin-left: 0; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
  .auth-links { align-items: flex-start; flex-direction: column; }
  .auth-links.center { align-items: center; }
  .auth-route-card .auth-route-actions { flex-direction: column; }
  .settings-form-row { grid-template-columns: 1fr; }
  .settings-actions .button { width: 100%; }
  .security-card-toolbar { align-items: flex-start; }
  .security-card-toolbar .button { width: auto; }
  .security-session-actions .button { width: 100%; }
  .security-confirm-actions { flex-direction: column-reverse; }
  .notification-item { padding: 14px 11px; }
  .notification-meta { align-items: flex-start; flex-direction: column; gap: 2px; }
  .notification-meta time { margin-left: 0; }
  .sandbox-cashier-banner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .cashier-form { padding: 16px 13px; }
  .cashier-payment-card > header { flex-direction: column; }
  .cashier-payment-card dl > div { grid-template-columns: 1fr; gap: 2px; }
  .cashier-resolution { grid-template-columns: 1fr; }
  .cashier-resolution-icon { display: none; }
  .cashier-resolution .button { grid-column: 1; }
  .cashier-request { padding: 12px; }
  .cashier-request-main { align-items: flex-start; flex-wrap: wrap; }
  .cashier-state { margin-left: 0; }
  .cashier-request-amount { margin-left: auto; }
  .cashier-request footer { flex-direction: column; gap: 3px; }
  .cashier-request footer .bet-reference { width: 100%; margin-left: 0; }
  .bet-filters label { min-width: 100%; }
  .bet-filters .button { width: 100%; }
}

@media (max-width: 480px) {
  .cashier-page .page-header { gap: 6px; margin-bottom: 8px; }
  .cashier-page .page-header p { display: none; }
  .cashier-page .history-toolbar { margin: 0; }
  .cashier-page .history-toolbar .button { min-height: 44px; padding: 0 10px; }
  .cashier-page .sandbox-cashier-banner {
    min-height: 34px; align-items: center; flex-direction: row; gap: 8px; margin-bottom: 8px; padding: 6px 9px;
  }
  .cashier-page .sandbox-cashier-banner span { display: none; }
  .cashier-page .cashier-tabs a { display: flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px; }
  .cashier-page .cashier-form { gap: 8px; padding: 11px 12px 13px; }
  .cashier-page .cashier-payment-card { gap: 7px; padding: 9px 10px; }
  .cashier-page .cashier-payment-card > header { align-items: center; flex-direction: row; }
  .cashier-page .cashier-payment-card h3 { margin: 0; font-size: .9231rem; }
  .cashier-page .cashier-payment-card header p { display: none; }
  .cashier-page .cashier-payment-details > summary { min-height: 44px; }
}

@media (max-width: 320px) {
  .topbar { gap: 2px; padding-right: 5px; padding-left: 5px; }
  .brand { font-size: 1.154rem; }
  .brand-logo { height: 17px; max-width: 90px; }
  .header-actions { min-width: 0; gap: 2px; }
  .header-theme > summary { width: 44px; }
  .balance-pill { max-width: 118px; gap: 4px; padding-right: 6px; padding-left: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Arabic is a first-class player locale. Keep direction on the document so
   native controls, flex rows and bidirectional currency/reference values use
   the browser's Unicode bidi algorithm instead of hand-reversing content. */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .header-actions { margin-right: auto; margin-left: 0; }
html[dir="rtl"] .topnav > .cms-nav-group > .cms-nav-group-items { right: 0; left: auto; }
html[dir="rtl"] .topnav .cms-nav-group-items .cms-nav-group-items { right: calc(100% + 5px); left: auto; }
html[dir="rtl"] .header-theme-popover,
html[dir="rtl"] .notification-popover,
html[dir="rtl"] .account-menu { right: auto; left: 0; }
html[dir="rtl"] .account-action,
html[dir="rtl"] .account-menu a,
html[dir="rtl"] .account-menu button,
html[dir="rtl"] .history-table th,
html[dir="rtl"] .auth-route-card { text-align: right; }
html[dir="rtl"] .page-header .header-count,
html[dir="rtl"] .section-head .section-link,
html[dir="rtl"] .game-rail-actions,
html[dir="rtl"] .history-toolbar,
html[dir="rtl"] .bet-count,
html[dir="rtl"] .bet-status,
html[dir="rtl"] .bet-reference { margin-right: auto; margin-left: 0; }
html[dir="rtl"] .lobby-search-field > svg { right: 13px; left: auto; }
html[dir="rtl"] .lobby-search-field input { padding-right: 42px; padding-left: 44px; }
html[dir="rtl"] .lobby-search-clear { right: auto; left: 0; }
html[dir="rtl"] .availability { right: auto; left: 7px; }
html[dir="rtl"] .toast-region { right: auto; left: 16px; }
html[dir="rtl"] .cms-player-announcement,
html[dir="rtl"] .cms-player-notice,
html[dir="rtl"] .bet-card { border-right-width: 4px; border-left-width: 1px; }

@media (max-width: 760px) {
  html[dir="rtl"] .header-theme-popover,
  html[dir="rtl"] .notification-popover,
  html[dir="rtl"] .account-menu { right: 8px; left: 8px; }
  html[dir="rtl"] .toast-region { right: 9px; left: 9px; }
}
.history-type-filters { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; border:1px solid var(--border, #34495e); border-radius:12px; padding:16px; margin:0 0 20px; }
.history-type-filters label { display:flex; align-items:center; gap:8px; min-height:44px; cursor:pointer; }
.history-type-filters input { width:18px; height:18px; accent-color:#56b9ff; }
.history-type-filters legend { padding:0 8px; font-weight:700; }
.amount.deposit, .amount.withdrawal_reversal { color:#70dbab; }
.amount.withdrawal { color:#ff887a; }
.notification-delete { color:var(--danger, #ff887a); min-height:44px; padding:8px 12px; border:1px solid currentColor; border-radius:8px; background:transparent; cursor:pointer; }
.notification-actions { align-items:center; gap:16px; flex-wrap:wrap; }

/* Existing curated football portraits, copied unchanged from match-tracking. */
.player-avatar[data-avatar="football-messi"], #menu-initial.player-avatar[data-avatar="football-messi"] { background-image:url("/avatars/football/messi.webp?v=sha256-f3b16803ee3222a11e3b063efb45d361"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-henry"], #menu-initial.player-avatar[data-avatar="football-henry"] { background-image:url("/avatars/football/henry.webp?v=sha256-60bbe33eefb900f449812b5137abfb2b"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-ronaldinho"], #menu-initial.player-avatar[data-avatar="football-ronaldinho"] { background-image:url("/avatars/football/ronaldinho.webp?v=sha256-b65e52efcb2dd5d16b09306f7eda3862"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-neymar"], #menu-initial.player-avatar[data-avatar="football-neymar"] { background-image:url("/avatars/football/neymar.webp?v=sha256-2c83328be237e67d3a868cd108ca125b"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-pele"], #menu-initial.player-avatar[data-avatar="football-pele"] { background-image:url("/avatars/football/pele.webp?v=sha256-29f49f301a6f0065fbdb55bb63fdf35a"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-roberto-carlos"], #menu-initial.player-avatar[data-avatar="football-roberto-carlos"] { background-image:url("/avatars/football/roberto-carlos.webp?v=sha256-05dd9a2a4536924e3d7e72741cd8d6ab"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-ronaldo-nazario"], #menu-initial.player-avatar[data-avatar="football-ronaldo-nazario"] { background-image:url("/avatars/football/ronaldo-nazario.webp?v=sha256-478526003f5ad71f22de0e21000a5b10"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-mbappe"], #menu-initial.player-avatar[data-avatar="football-mbappe"] { background-image:url("/avatars/football/mbappe.webp?v=sha256-c4ee59c3436f11eab821f5331e932217"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-zidane"], #menu-initial.player-avatar[data-avatar="football-zidane"] { background-image:url("/avatars/football/zidane.webp?v=sha256-758eb225be33f826d0f1c28d4edfd605"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-hagi"], #menu-initial.player-avatar[data-avatar="football-hagi"] { background-image:url("/avatars/football/hagi.webp?v=sha256-1f5b1cfbad71925b189c816891e182db"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-icardi"], #menu-initial.player-avatar[data-avatar="football-icardi"] { background-image:url("/avatars/football/icardi.webp?v=sha256-dd008b19ff66866ff8afa5496464715d"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-osimhen"], #menu-initial.player-avatar[data-avatar="football-osimhen"] { background-image:url("/avatars/football/osimhen.webp?v=sha256-eb8ed94e99a1bc5be17ea91258733e41"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-barella"], #menu-initial.player-avatar[data-avatar="football-barella"] { background-image:url("/avatars/football/barella.webp?v=sha256-154f9002f0e7f0c83825c8dc7259a1b3"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-bastoni"], #menu-initial.player-avatar[data-avatar="football-bastoni"] { background-image:url("/avatars/football/bastoni.webp?v=sha256-5084bf07597e536a061e31445a15fc78"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-dimarco"], #menu-initial.player-avatar[data-avatar="football-dimarco"] { background-image:url("/avatars/football/dimarco.webp?v=sha256-5435d180ae7a92bd4f1488dfc2a31d73"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-martinez"], #menu-initial.player-avatar[data-avatar="football-martinez"] { background-image:url("/avatars/football/martinez.webp?v=sha256-9b2cedb946f8e54546e7d7860db696bd"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-berardi"], #menu-initial.player-avatar[data-avatar="football-berardi"] { background-image:url("/avatars/football/berardi.webp?v=sha256-b95baa1ae0de9688fd5e5de53c7a5ec4"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-chiesa"], #menu-initial.player-avatar[data-avatar="football-chiesa"] { background-image:url("/avatars/football/chiesa.webp?v=sha256-5b45c6a8a5c3102b2ebf727ad004f52c"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-donnarumma"], #menu-initial.player-avatar[data-avatar="football-donnarumma"] { background-image:url("/avatars/football/donnarumma.webp?v=sha256-aa14eb2dc28130270558fca1359dbb52"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-scamacca"], #menu-initial.player-avatar[data-avatar="football-scamacca"] { background-image:url("/avatars/football/scamacca.webp?v=sha256-b4ffb384bf95769a38bf79424a292cb3"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-tonali"], #menu-initial.player-avatar[data-avatar="football-tonali"] { background-image:url("/avatars/football/tonali.webp?v=sha256-9d520714333874226bc012d444776566"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-cambiaso"], #menu-initial.player-avatar[data-avatar="football-cambiaso"] { background-image:url("/avatars/football/cambiaso.webp?v=sha256-b2727be039fa75378c0105dffd4f481f"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-locatelli"], #menu-initial.player-avatar[data-avatar="football-locatelli"] { background-image:url("/avatars/football/locatelli.webp?v=sha256-7dd57aea351caca40bfef63868788c91"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-salah"], #menu-initial.player-avatar[data-avatar="football-salah"] { background-image:url("/avatars/football/salah.webp?v=sha256-cc77e7c31303bc30bd99ceb78a1514ad"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-haaland"], #menu-initial.player-avatar[data-avatar="football-haaland"] { background-image:url("/avatars/football/haaland.webp?v=sha256-ca87a34c3eea0e4a2388553b6d037e5f"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-hernandez"], #menu-initial.player-avatar[data-avatar="football-hernandez"] { background-image:url("/avatars/football/hernandez.webp?v=sha256-33cd10c396251bf626a52a74412c4e2a"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-leao"], #menu-initial.player-avatar[data-avatar="football-leao"] { background-image:url("/avatars/football/leao.webp?v=sha256-d2c2d2925762ba7423e157bd4d967a3e"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-maignan"], #menu-initial.player-avatar[data-avatar="football-maignan"] { background-image:url("/avatars/football/maignan.webp?v=sha256-4860019d40cd3578e05e7ab8ad5d86a1"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-kvaratskhelia"], #menu-initial.player-avatar[data-avatar="football-kvaratskhelia"] { background-image:url("/avatars/football/kvaratskhelia.webp?v=sha256-b428c7ded65074500c404396c3eed28a"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-maradona"], #menu-initial.player-avatar[data-avatar="football-maradona"] { background-image:url("/avatars/football/maradona.webp?v=sha256-d8c04f538ec3bedbc7fbe09cd586e9e6"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-ronaldo"], #menu-initial.player-avatar[data-avatar="football-ronaldo"] { background-image:url("/avatars/football/ronaldo.webp?v=sha256-500310263df8a5d9d47d763ce7215900"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-bellingham"], #menu-initial.player-avatar[data-avatar="football-bellingham"] { background-image:url("/avatars/football/bellingham.webp?v=sha256-4b495c689d81f10026be0c06036bebcc"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-vinicius"], #menu-initial.player-avatar[data-avatar="football-vinicius"] { background-image:url("/avatars/football/vinicius.webp?v=sha256-b13ec6281d61e07a1222a7c7a545e265"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-dybala"], #menu-initial.player-avatar[data-avatar="football-dybala"] { background-image:url("/avatars/football/dybala.webp?v=sha256-4cd7cd25a38d828ef1c5701c4dcfd9e8"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-pellegrini"], #menu-initial.player-avatar[data-avatar="football-pellegrini"] { background-image:url("/avatars/football/pellegrini.webp?v=sha256-e0cd341af2513b00ee1df3928582a395"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-totti"], #menu-initial.player-avatar[data-avatar="football-totti"] { background-image:url("/avatars/football/totti.webp?v=sha256-6cbd8fe62e96568e89d6ed5b5f86ea4f"); background-size:cover; background-position:center; }
.player-avatar[data-avatar="football-maldini"], #menu-initial.player-avatar[data-avatar="football-maldini"] { background-image:url("/avatars/football/maldini.webp?v=sha256-6546555252af2de3c05b470be92b684e"); background-size:cover; background-position:center; }

.avatar-preview { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.avatar-preview .player-avatar { width:64px; height:64px; flex-shrink:0; }
.avatar-preview strong, .avatar-preview small { display:block; }
.avatar-preview small, .avatar-option small { color:var(--muted); }
.avatar-picker [data-avatar-search] { margin-bottom:12px; }
.avatar-options { max-height:330px; overflow-y:auto; overscroll-behavior:contain; padding:6px; border:1px solid var(--line); border-radius:12px; }
.avatar-option[hidden], [data-avatar-empty][hidden] { display:none; }
.avatar-options .avatar-option { gap:4px; text-align:center; min-width:0; }
.avatar-option span:last-child { font-size:12px; overflow-wrap:anywhere; }
.avatar-option small { font-size:10px; }
@media (max-width:480px) { .avatar-options { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.player-avatar[data-avatar="custom"] { background-image:none; overflow:hidden; }
.player-avatar img { display:block; width:100%; height:100%; object-fit:cover; border-radius:50%; }
.avatar-upload-button { width:fit-content; position:relative; cursor:pointer; margin-bottom:6px; }
.avatar-upload-button:focus-within { outline:2px solid var(--accent); outline-offset:3px; }
.avatar-upload-hint { display:block; color:var(--muted); margin-bottom:12px; }
.avatar-crop-dialog { width:min(400px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:20px; border:1px solid var(--line); border-radius:16px; background:var(--panel); color:var(--text); }
.avatar-crop-dialog::backdrop { background:rgba(0,0,0,.65); }
.avatar-crop-dialog h2 { margin:0 0 8px; font-size:18px; }
.avatar-crop-dialog p { font-size:12px; color:var(--muted); }
.avatar-crop-stage { width:min(256px,100%); aspect-ratio:1; margin:12px auto; border-radius:50%; overflow:hidden; }
.avatar-crop-stage canvas { display:block; width:100%; height:100%; touch-action:none; cursor:grab; }
.avatar-crop-dialog label { display:grid; grid-template-columns:90px 1fr; gap:10px; align-items:center; font-size:12px; min-height:44px; }
.avatar-crop-dialog input { width:100%; accent-color:var(--accent); }
.avatar-crop-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }

/* Betfabriq local brand options; provider support is not implied. */

:root[data-action-color="betfabriq-orange"] {
  --odd: #ea580c; --odd-soft: #fb923c; --action-hover: #fb923c;
  --action-border: #fb923c; --on-action: #241004; --action-on-dark: #fdba74;
}
:root[data-color-mode="light"][data-action-color="betfabriq-orange"] {
  --odd: #c2410c; --odd-soft: #ea580c; --action-hover: #9a3412;
  --action-border: #9a3412; --on-action: #ffffff; --action-on-dark: #fdba74;
}
:root[data-color-mode="gray"][data-action-color="betfabriq-orange"] {
  --action-on-dark: #fdba74;
}
:root:not([data-betfabriq-appearance="enabled"]) [data-palette-option="betfabriq"],
:root:not([data-betfabriq-appearance="enabled"]) [data-action-color-option="betfabriq-orange"] { display: none; }
[data-palette-option="betfabriq"] .palette-swatch i:nth-child(1) { background: #ea580c; }
[data-palette-option="betfabriq"] .palette-swatch i:nth-child(2) { background: #0a0d12; }
[data-action-color-option="betfabriq-orange"] .action-swatch { background: linear-gradient(135deg, #ea580c 0 50%, #9a3412 50%); }

/* Private profile verification shares the account settings theme. */
.profile-verification { grid-column:1 / -1; padding:20px; }
.verification-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.verification-content { padding-top:12px; }
.verification-content h3 { margin:0 0 12px; }
.verification-fields label,.verification-fields input { min-width:0; }
@media(max-width:900px) { .verification-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .verification-fields { grid-template-columns:1fr; } .profile-verification { padding:14px; } }
