/* ZerDice theme. Same class hooks as the template's starter theme (admin,
 * sign-in and member pages keep working), dark casino palette, plus the
 * casino components. Fonts are self-hosted: the CSP only allows 'self'. */

@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url("fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url("fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url("fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap; src: url("fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }

:root {
  --color-primary: #F5C542;
  --color-primary-hover: #FFD45E;
  --color-primary-text: #1A1300;

  --color-bg: #0B1019;
  --color-surface: #121A28;
  --color-surface-alt: #1F2B40;
  --color-panel: #172133;
  --color-deep: #0F1622;
  --color-text: #E8ECF3;
  --color-muted: #A7B2C5;
  --color-dim: #8D99AE;
  --color-border: #222D42;
  --color-border-strong: #2A3A58;

  --color-success: #2FD08A;  --color-success-bg: #173A2C;
  --color-info: #9DB4FF;     --color-info-bg: #1B2746;
  --color-warning: #F5C542;  --color-warning-bg: #2A2412;
  --color-danger: #F25A6C;   --color-danger-bg: #3E1C26;

  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Big Shoulders Display", "Archivo", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-size: 15px;
  --radius: 12px;
  --radius-small: 8px;
  --shadow: none;
  --space: 1rem;
  --width-page: 1480px;
  --width-auth: 420px;
  --width-sidebar: 230px;
  --width-chat: 340px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--font-size); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-sans); line-height: 1.5; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 calc(var(--space) * .5); font-weight: 800; }
p { margin: 0 0 var(--space); }
code, pre, .secret, .mono { font-family: var(--font-mono); font-size: .88em; }
code { background: var(--color-surface-alt); padding: .1em .35em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--color-border); }
img { max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shell */

.layout { min-height: 100vh; display: flex; flex-direction: column; }
.layout__main { width: 100%; max-width: var(--width-page); margin: 0 auto; padding: 1.25rem var(--space) 6rem; flex: 1; min-width: 0; }
.layout__main--centered { display: flex; align-items: flex-start; justify-content: center; padding-top: 7vh; }
.layout__body { display: flex; flex: 1; width: 100%; }
.layout__body > .layout__main { min-width: 0; }
.layout--app .layout__body { max-width: calc(var(--width-page) + var(--width-sidebar)); margin: 0 auto; }

.site-header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 30; }
.site-footer { border-top: 1px solid var(--color-border); color: var(--color-dim); font-size: .85rem; padding-bottom: 4.5rem; }
.site-footer__text { max-width: var(--width-page); margin: 0 auto; padding: var(--space); display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }
.site-footer__text a { color: var(--color-muted); }

/* Navigation */

.nav { max-width: var(--width-page); margin: 0 auto; padding: .6rem var(--space); display: flex; align-items: center; gap: .75rem; }
.nav__left { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0; }
.nav__brand { display: flex; align-items: center; margin-right: .5rem; flex: none; }
.nav__brand img { height: 34px; width: auto; display: block; }
.nav__mark { display: none !important; }
.nav__menu { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-small); background: none; border: 0; color: var(--color-text); cursor: pointer; flex: none; }
.nav__menu:hover { background: var(--color-surface-alt); }
.nav__right { flex: 1; justify-content: flex-end; }

.purse { display: flex; align-items: center; gap: .3rem; padding: .25rem; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 14px; flex: none; }
.purse__menu { position: relative; }
.purse__total { list-style: none; display: flex; align-items: center; gap: .45rem; padding: .45rem .55rem .45rem .7rem; border-radius: 10px; cursor: pointer; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color .15s; }
.purse__total::-webkit-details-marker { display: none; }
.purse__total .icon { color: var(--color-muted); transition: transform .15s; }
.purse__menu[open] .purse__total .icon { transform: rotate(180deg); }
.purse__total:hover { background: var(--color-surface-alt); }
.purse__total.balance--flash-win { background: var(--color-success-bg); }
.purse__total.balance--flash-loss { background: var(--color-danger-bg, rgba(226,74,92,.15)); }
.purse__add { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--color-primary); color: var(--color-primary-text); flex: none; }
.purse__add:hover { filter: brightness(1.08); text-decoration: none; }
.purse__panel { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + .6rem); width: 290px; background: var(--color-panel); border: 1px solid var(--color-border-strong); border-radius: 14px; overflow: hidden; z-index: 45; }
.purse__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--color-border); }
.purse__value { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.purse__label { font-size: .8rem; font-weight: 700; color: var(--color-muted); }
.purse__label--gold { color: var(--color-primary); }
.purse__foot { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem; color: var(--color-muted); font-weight: 600; }
.purse__foot:hover { background: var(--color-surface-alt); color: #fff; text-decoration: none; }

.sheet { width: min(460px, 100%); max-height: min(720px, 92vh); padding: 0; border: 1px solid var(--color-border-strong); border-radius: 18px; background: var(--color-panel); color: var(--color-text); overflow: hidden auto; }
.sheet::backdrop { background: rgba(5, 8, 14, .7); }
.sheet__grip { display: none; width: 56px; height: 5px; margin: .6rem auto 0; border-radius: 3px; background: var(--color-border-strong); }
.sheet__close { position: absolute; top: .6rem; right: .6rem; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--color-muted); cursor: pointer; border-radius: 10px; z-index: 1; }
.sheet__close:hover { background: var(--color-surface-alt); color: #fff; }
.sheet__body { padding: 0 1.25rem 1.25rem; }
.sheet__loading { padding: 3rem 0; text-align: center; color: var(--color-muted); }
.sheet__tabs { display: flex; gap: .25rem; margin: 0 -1.25rem 1.1rem; padding: .9rem 3.5rem 0 1.25rem; border-bottom: 1px solid var(--color-border); }
.sheet__tab { flex: 1; padding: .7rem .5rem; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--color-muted); font: inherit; font-weight: 700; cursor: pointer; }
.sheet__tab:hover { color: #fff; }
.sheet__tab.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.sheet__lead { margin: 0 0 1rem; color: var(--color-muted); }
.sheet__qr { margin: 0 auto 1rem; width: 180px; padding: .6rem; background: #fff; border-radius: 12px; }
.sheet__qr svg { display: block; width: 100%; height: auto; }
.sheet__address { display: flex; align-items: center; gap: .5rem; padding: .55rem .55rem .55rem .8rem; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 12px; margin-bottom: .5rem; }
.sheet__address code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .9rem; }
.sheet__more { display: block; margin-top: 1.25rem; text-align: center; color: var(--color-muted); font-weight: 600; }
body.sheet-open { overflow: hidden; }

.layout--side .shell { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.layout--side { flex-direction: row; }
.layout--side .nav { max-width: none; }
.layout--side .layout__main { max-width: 1180px; }
.side { width: 260px; flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1rem; padding: 1.1rem .8rem .9rem; background: var(--color-surface); border-right: 1px solid var(--color-border); z-index: 40; }
.side__top { display: flex; align-items: center; justify-content: space-between; padding: .1rem .5rem 0; }
.side__logo img { height: 32px; width: auto; display: block; }
.side__close { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 0; color: var(--color-text); border-radius: 10px; cursor: pointer; }
.side__find { display: flex; align-items: center; gap: .5rem; padding: 0 .7rem; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 10px; color: var(--color-dim); }
.side__find input { flex: 1; min-width: 0; padding: .55rem 0; background: none; border: 0; color: var(--color-text); font: inherit; font-size: .95rem; outline: none; }
.side__find input::-webkit-search-cancel-button { display: none; }
.side__find kbd { padding: 0 .35rem; border: 1px solid var(--color-border-strong); border-radius: 5px; font-family: inherit; font-size: .75rem; color: var(--color-dim); }
.side__find:focus-within { border-color: var(--color-primary); }
.side__find:focus-within kbd { visibility: hidden; }
.snav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: 0 -.8rem; padding: 0 .8rem .5rem; display: flex; flex-direction: column; gap: 2px; }
.snav__group { margin-top: .6rem; }
.snav__heading { margin: 0 0 .2rem; padding: 0 .65rem; font-size: .78rem; font-weight: 700; color: var(--color-dim); }
.snav__head { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .35rem .65rem; background: none; border: 0; color: var(--color-dim); font: inherit; font-size: .78rem; font-weight: 700; text-align: left; cursor: pointer; }
.snav__head:hover { color: var(--color-text); }
.snav__head .icon { margin-left: auto; transition: transform .15s; }
.snav__head .snav__badge + .icon { margin-left: 0; }
.snav__group.is-closed .snav__head .icon { transform: rotate(-90deg); }
.snav__group.is-closed:not(.is-searching) .snav__items { display: none; }
.snav__group:not(.is-closed) .snav__badge--sum, .snav__group.is-searching .snav__badge--sum { display: none; }
.snav__items { display: flex; flex-direction: column; gap: 2px; }
.snav__link { position: relative; display: flex; align-items: center; gap: .7rem; padding: .5rem .65rem; border-radius: 10px; color: var(--color-muted); font-weight: 600; font-size: .95rem; line-height: 1.2; }
.snav__link .icon { flex: none; color: var(--color-dim); }
.snav__link:hover { background: var(--color-surface-alt); color: #fff; text-decoration: none; }
.snav__link:hover .icon { color: var(--color-text); }
.snav__link.is-active { background: var(--color-surface-alt); color: #fff; }
.snav__link.is-active .icon { color: var(--color-primary); }
.snav__link.is-active::before { content: ""; position: absolute; left: -.8rem; top: .35rem; bottom: .35rem; width: 4px; border-radius: 0 4px 4px 0; background: var(--color-primary); }
.snav__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snav__badge { flex: none; min-width: 1.4rem; padding: .05rem .4rem; border-radius: 999px; background: var(--color-primary); color: var(--color-primary-text); font-size: .75rem; font-weight: 800; text-align: center; }
.snav__badge--sum { margin-left: auto; }
.snav__none { margin: .8rem .65rem; color: var(--color-dim); font-size: .92rem; }
.side__foot { display: flex; flex-direction: column; gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--color-border); }
.side__user { display: flex; align-items: center; gap: .7rem; padding: .4rem .5rem; border-radius: 10px; color: var(--color-text); }
.side__user:hover { background: var(--color-surface-alt); text-decoration: none; }
.side__avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--color-border-strong); border: 2px solid currentColor; font-size: .8rem; font-weight: 800; }
.side__avatar { color: var(--color-muted); }
.side__who { display: flex; flex-direction: column; min-width: 0; }
.side__who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__who span { font-size: .8rem; color: var(--color-dim); }
.side__actions { display: flex; gap: .25rem; }
.side__actions form { margin: 0; display: flex; flex: 1; }
.side__actions a, .side__actions button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .45rem .25rem; border-radius: 10px; background: none; border: 0; color: var(--color-dim); font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; }
.side__actions a:hover, .side__actions button:hover { background: var(--color-surface-alt); color: #fff; text-decoration: none; }
.side-scrim { position: fixed; inset: 0; background: rgba(5, 8, 14, .6); z-index: 39; }
.nav__list { list-style: none; display: none; gap: .25rem; margin: 0; padding: 0; flex: 1; }
.nav__link { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border-radius: var(--radius-small); color: var(--color-muted); font: inherit; font-weight: 600; }
.nav__link:hover, .nav__link--active { background: var(--color-surface-alt); color: #fff; text-decoration: none; }
.nav__link--button { background: none; border: 0; cursor: pointer; }
.nav__form { margin: 0; }
.nav__right { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.balance { display: inline-flex; align-items: center; gap: .45rem; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-small); padding: .5rem .75rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.balance svg { flex: none; }
.balance--flash-win { border-color: var(--color-success); }
.balance--flash-loss { border-color: var(--color-danger); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--color-border-strong); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; color: #fff; cursor: pointer; list-style: none; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu__panel { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 220px; background: var(--color-panel); border: 1px solid var(--color-border-strong); border-radius: var(--radius); padding: .4rem; display: flex; flex-direction: column; z-index: 40; }
.menu__panel a, .menu__panel button { color: var(--color-text); padding: .55rem .7rem; border-radius: var(--radius-small); font: inherit; text-align: left; background: none; border: 0; cursor: pointer; width: 100%; }
.menu__panel a:hover, .menu__panel button:hover { background: var(--color-surface-alt); text-decoration: none; }
.menu__head { padding: .5rem .7rem .6rem; border-bottom: 1px solid var(--color-border); margin-bottom: .3rem; font-size: .85rem; color: var(--color-muted); }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--color-surface); border-top: 1px solid var(--color-border); padding: .35rem .25rem calc(.6rem + env(safe-area-inset-bottom)); }
.tabbar__item { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .35rem; font-size: .75rem; font-weight: 600; color: var(--color-dim); background: none; border: 0; font-family: inherit; cursor: pointer; }
.tabbar__item:hover, .tabbar__item--active { color: var(--color-primary); text-decoration: none; }

.acpgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .75rem; }
.acpgroup { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: .5rem; }
.acpgroup__title { margin: .35rem .6rem .4rem; font-size: .85rem; font-weight: 700; color: var(--color-dim); }
.acpgroup__list { list-style: none; margin: 0; padding: 0; }
.acpgroup__link { display: flex; flex-direction: column; gap: .1rem; padding: .55rem .6rem; border-radius: var(--radius-small); color: var(--color-text); }
.acpgroup__link:hover { background: var(--color-surface-alt); text-decoration: none; }
.acpgroup__label { font-weight: 700; }
.acpgroup__text { font-size: .85rem; color: var(--color-muted); }

/* Page */

.page__header { margin-bottom: 1.25rem; }
.page__title { font-size: 1.6rem; }
.page__lead { color: var(--color-muted); font-size: 1rem; }
.page--error, .page--maintenance { text-align: center; padding-top: 3rem; }

.layout--error { min-height: 100vh; display: flex; flex-direction: column; }
.layout--error .layout__main { flex: 1; display: flex; align-items: center; width: 100%; max-width: 1040px; margin: 0 auto; padding: 1rem var(--space) 3rem; }
.oops-top { padding: 1rem var(--space); max-width: 1040px; width: 100%; margin: 0 auto; }
.oops-top__brand { display: inline-block; }
.oops { width: 100%; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.oops__tile { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; color: #0B1019; }
.oops--dice .oops__tile { background: #F5C542; }
.oops--coinflip .oops__tile { background: #6C5CE7; color: #fff; }
.oops--crash .oops__tile { background: #E24A5C; }
.oops--mines .oops__tile { background: #20C3D0; }
.oops--towers .oops__tile { background: #8FD14F; }
.oops--chicken-road .oops__tile { background: #E8763A; }
.oops--blackjack .oops__tile { background: #2C3E66; color: #fff; }
.oops--slot .oops__tile { background: #3A86FF; }
.oops--snake-eyes .oops__tile { background: #2FB37A; }
.oops--lotto .oops__tile { background: #B98CFF; }
.oops__art { position: absolute; top: 4%; right: 2%; width: 82%; height: auto; }
.oops__code { position: absolute; left: 6%; bottom: 3%; font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, 14vw, 8.5rem); line-height: .8; letter-spacing: -.01em; text-transform: uppercase; }
.oops__title { margin: 0 0 .6rem; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: .95; text-transform: uppercase; color: #fff; }
.oops__line { margin: 0 0 1.4rem; font-size: 1.1rem; color: var(--color-muted); max-width: 34rem; }
.oops__slip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 1.25rem; border-top: 2px dashed var(--color-border-strong); border-bottom: 2px dashed var(--color-border-strong); }
.oops__cell { padding: .75rem .9rem .75rem 0; }
.oops__cell + .oops__cell { padding-left: .9rem; border-left: 1px solid var(--color-border); }
.oops__cell dt { font-size: .8rem; color: var(--color-dim); }
.oops__cell dd { margin: .1rem 0 0; font-weight: 700; color: var(--color-text); }
.oops__detail { margin: 0 0 1.25rem; font-size: .95rem; color: var(--color-text); }
.oops__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

@media (max-width: 760px) {
  .oops { grid-template-columns: 1fr; gap: 1.5rem; }
  .oops__tile { max-width: 340px; width: 100%; margin: 0 auto; }
  .oops__slip { grid-template-columns: 1fr; }
  .oops__cell, .oops__cell + .oops__cell { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-left: 0; }
  .oops__cell + .oops__cell { border-top: 1px solid var(--color-border); }
  .oops__actions .btn { flex: 1; text-align: center; }
}

.section { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.15rem; margin-bottom: var(--space); }
.section__title { font-size: 1.05rem; }
h3.section__title { font-size: .95rem; margin-top: var(--space); }
.section__text { color: var(--color-muted); }
.card--auth .section { background: none; border: 0; border-top: 1px solid var(--color-border); border-radius: 0; padding: var(--space) 0 0; margin: var(--space) 0 0; }
.card--auth .btn:not(.btn--link) { width: 100%; }
.card--auth .form { margin-bottom: 0; }

.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem; }
.card--auth { width: 100%; max-width: var(--width-auth); }
.card__brand { display: block; margin-bottom: 1.25rem; }
.card__brand img { height: 40px; width: auto; display: block; }
.card__title { font-size: 1.05rem; margin-bottom: .25rem; }
.card__text { color: var(--color-muted); margin: 0; font-size: .925rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space); margin-bottom: 1.25rem; }
.card--link { color: inherit; }
.card--link:hover { border-color: var(--color-primary); text-decoration: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.stat { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); border-left-width: 4px; }
.stat:hover { text-decoration: none; }
.stat__label { font-size: .82rem; color: var(--color-dim); font-weight: 600; }
.stat__value { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.stat--ok { border-left-color: var(--color-success); }
.stat--warn { border-left-color: var(--color-warning); }
.stat--fail { border-left-color: var(--color-danger); }
.stat--plain { border-left-width: 1px; }

/* Forms */

.form { display: flex; flex-direction: column; gap: var(--space); margin-bottom: var(--space); }
.form:last-child { margin-bottom: 0; }
.form--inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: .5rem; }
.form--inline .field { flex: 1 1 200px; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field__label { font-weight: 600; font-size: .85rem; color: var(--color-muted); }
.field__input { width: 100%; padding: .7rem .75rem; font: inherit; color: #fff; background: var(--color-bg); border: 1px solid var(--color-border-strong); border-radius: var(--radius-small); }
textarea.field__input { min-height: 140px; resize: vertical; }
select.field__input { appearance: auto; }
.field__input:focus { outline: 2px solid var(--color-primary); outline-offset: -1px; border-color: transparent; }
.field__hint { color: var(--color-dim); font-size: .82rem; margin: 0; }
.field__error { color: var(--color-danger); font-size: .85rem; }
.field__row { display: flex; background: var(--color-bg); border: 1px solid var(--color-border-strong); border-radius: var(--radius-small); overflow: hidden; }
.field__row .field__input { border: 0; border-radius: 0; background: transparent; min-width: 0; flex: 1; }
.field__row .field__input:focus { outline-offset: -2px; }
.field__addon { border: 0; border-left: 1px solid var(--color-border-strong); background: var(--color-surface-alt); color: var(--color-text); font: inherit; font-weight: 700; min-width: 48px; padding: 0 .75rem; cursor: pointer; }
.field__addon:hover { background: var(--color-border-strong); }
.field__unit { padding: 0 .75rem; display: flex; align-items: center; color: var(--color-primary); font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .65rem 1.05rem; font: inherit; font-weight: 700; font-size: .93rem; color: var(--color-text); background: var(--color-surface-alt); border: 1px solid var(--color-border-strong); border-radius: var(--radius-small); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--color-border-strong); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-text); font-weight: 800; }
.btn--primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn--big { width: 100%; font-size: 1.05rem; padding: 1rem; }
.btn--small { padding: .4rem .7rem; font-size: .85rem; }
.btn--danger { color: var(--color-danger); }
.btn--success { color: var(--color-success); }
.btn--link { background: none; border-color: transparent; color: var(--color-primary); padding-left: .25rem; padding-right: .25rem; }
.btn--link:hover { background: none; text-decoration: underline; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: var(--space) 0; }
.actions__form { margin: 0; display: inline; }
.links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: var(--space); font-size: .925rem; }
.captcha { min-height: 65px; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.segmented { display: flex; background: var(--color-bg); border-radius: 999px; padding: 4px; gap: 2px; }
.segmented__item { flex: 1; border: 0; border-radius: 999px; padding: .6rem .5rem; background: transparent; color: var(--color-dim); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; text-align: center; }
.segmented__item--active, .segmented__item[aria-pressed="true"] { background: var(--color-border-strong); color: #fff; }
.segmented__item:hover { color: #fff; text-decoration: none; }

/* Feedback */

.alerts { display: flex; flex-direction: column; gap: .5rem; margin-bottom: var(--space); }
.alert { padding: .75rem 1rem; border-radius: var(--radius-small); border: 1px solid transparent; margin: 0 0 var(--space); }
.alerts .alert { margin: 0; }
.alert--success { background: var(--color-success-bg); color: var(--color-success); border-color: #23473A; }
.alert--info { background: var(--color-info-bg); color: var(--color-info); }
.alert--warning { background: var(--color-warning-bg); color: var(--color-warning); border-color: #4A3D18; }
.alert--danger { background: var(--color-danger-bg); color: var(--color-danger); }

.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--color-surface-alt); color: var(--color-muted); white-space: nowrap; }
.badge--on, .badge--win { background: var(--color-success-bg); color: var(--color-success); }
.badge--off, .badge--warn { background: var(--color-warning-bg); color: var(--color-warning); }
.badge--fail, .badge--loss { background: var(--color-danger-bg); color: var(--color-danger); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 var(--space); padding: 0; }
.tag { font-family: var(--font-mono); font-size: .8rem; padding: .15rem .5rem; border-radius: 6px; background: var(--color-surface-alt); }
.tag--grant { color: var(--color-success); }
.tag--deny { color: var(--color-danger); }

.toasts { position: fixed; right: 1rem; bottom: 5.5rem; z-index: 60; display: flex; flex-direction: column; gap: .5rem; max-width: min(360px, calc(100vw - 2rem)); }
.toast { padding: .75rem 1rem; border-radius: var(--radius-small); background: var(--color-panel); border: 1px solid var(--color-border-strong); font-weight: 600; font-size: .92rem; }
.toast--error { border-color: #6A2A36; color: #FFC2CB; }
.toast--success { border-color: #23473A; color: #A6F0CC; }

/* Data */

.datalist { margin: 0 0 var(--space); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.datalist__row { display: grid; grid-template-columns: 200px 1fr; gap: var(--space); padding: .7rem var(--space); border-bottom: 1px solid var(--color-border); }
.datalist__row:last-child { border-bottom: 0; }
.datalist__key { color: var(--color-dim); }
.datalist__value { margin: 0; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: var(--space); background: var(--color-surface); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.table thead th { font-size: .82rem; font-weight: 600; color: var(--color-dim); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover { background: #151F30; }
.table .r { text-align: right; }
.table--checks th[scope=row] { width: 220px; font-weight: 600; }
.table code { white-space: nowrap; }
.table--checks td:nth-child(2) { width: 1%; }
.table__pre { white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: .8rem; }
.win { color: var(--color-success); font-weight: 700; }
.loss { color: var(--color-dim); }

.log { margin: 0 0 var(--space); padding: var(--space); background: var(--color-deep); border-radius: var(--radius-small); overflow-x: auto; font-size: .8rem; line-height: 1.45; white-space: pre-wrap; word-break: break-all; }
.secret { display: inline-block; padding: .3rem .6rem; background: var(--color-surface-alt); border-radius: 6px; letter-spacing: .02em; user-select: all; overflow-wrap: anywhere; }
.code-list { columns: 2; padding-left: 1.5rem; margin: 0 0 var(--space); }
.code-list__item { margin-bottom: .4rem; }
.qr-code { margin: 0 0 var(--space); }
.qr { display: block; width: 200px; height: auto; max-width: 100%; border-radius: var(--radius-small); background: #fff; padding: 8px; }
.pagination { display: flex; align-items: center; gap: var(--space); margin: var(--space) 0; }
.pagination__current { color: var(--color-dim); font-size: .9rem; }

/* Casino layout: content + chat */

.casino { display: flex; flex: 1; width: 100%; }
.casino > .layout__main { max-width: none; }
.chat { display: none; }
body.chat-open .chat { display: flex; position: fixed; inset: 0 0 0 auto; width: min(100vw, 400px); z-index: 50; }
.chat { flex-direction: column; width: var(--width-chat); flex: none; background: var(--color-surface); border-left: 1px solid var(--color-border); }
.chat__head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .9rem 1rem; border-bottom: 1px solid var(--color-border); }
.chat__title { font-weight: 800; font-size: 1rem; }
.chat__meta { font-size: .82rem; color: var(--color-dim); }
.chat__close { background: var(--color-surface-alt); border: 0; color: #fff; border-radius: var(--radius-small); width: 34px; height: 34px; cursor: pointer; }
.chat__list { flex: 1; overflow-y: auto; padding: .8rem 1rem; display: flex; flex-direction: column; gap: .7rem; font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.chat__msg { color: #C9D2E0; }
.chat__name { font-weight: 700; margin-right: .3rem; }
.chat__lvl { font-size: .7rem; font-weight: 800; padding: .05rem .35rem; border-radius: 5px; background: var(--color-surface-alt); margin-right: .3rem; vertical-align: 1px; }
.chat__time { color: #5D6A80; font-size: .72rem; margin-left: .25rem; }
.chat__event { border-radius: 10px; padding: .55rem .7rem; }
.chat__event--tip { background: var(--color-warning-bg); border: 1px solid #4A3D18; }
.chat__event--rain { background: var(--color-success-bg); border: 1px solid #23473A; }
.chat__event--system { background: var(--color-info-bg); border: 1px solid #2B3B66; }
.chat__private { color: var(--color-info); font-style: italic; }
.chat__foot { border-top: 1px solid var(--color-border); padding: .75rem .9rem 1rem; display: flex; flex-direction: column; gap: .55rem; }
.chat__form { display: flex; gap: .5rem; }
.chat__input { flex: 1; min-width: 0; background: var(--color-bg); border: 1px solid var(--color-border-strong); border-radius: var(--radius-small); color: #fff; font: inherit; font-size: .92rem; padding: .6rem .7rem; }
.chat__quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.chat__cmd { border-radius: var(--radius-small); padding: .45rem; font: inherit; font-weight: 700; font-size: .85rem; background: transparent; cursor: pointer; }
.chat__cmd--tip { border: 1px solid #4A3D18; color: var(--color-primary); }
.chat__cmd--rain { border: 1px solid #23473A; color: var(--color-success); }
.chat__cmd--faucet { border: 1px solid var(--color-border-strong); color: var(--color-dim); }
.chat__hint { font-size: .78rem; color: var(--color-dim); }

/* Level tiers (chat names, badges) */

.tier-common { color: #A7B2C5; }
.tier-uncommon { color: #4ADE80; }
.tier-rare { color: #60A5FA; }
.tier-elite { color: #2DD4BF; }
.tier-epic { color: #C084FC; }
.tier-heroic { color: #F472B6; }
.tier-master { color: #FB923C; }
.tier-grandmaster { color: #F87171; }
.tier-mythical { color: #E879F9; font-weight: 800; }
.tier-legendary { color: #F5C542; font-weight: 800; }
.tier-swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; background: currentColor; vertical-align: -1px; margin-right: .35rem; }

/* Hub */

.hub-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .9rem; margin-bottom: 1.6rem; }
.acct { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.05rem; display: flex; flex-direction: column; gap: .45rem; }
.acct__label { font-size: .85rem; font-weight: 600; color: var(--color-muted); display: flex; justify-content: space-between; gap: .5rem; }
.acct__big { font-family: var(--font-display); font-weight: 900; font-size: 2.3rem; line-height: 1.02; font-variant-numeric: tabular-nums; }
.acct__big small { color: var(--color-primary); font-size: inherit; }
.acct__note { font-size: .85rem; color: var(--color-dim); margin: 0; }
.bar { height: 10px; background: var(--color-bg); border-radius: 999px; overflow: hidden; }
.bar__fill { height: 100%; background: var(--color-primary); border-radius: 999px; }
.bar__fill--green { background: var(--color-success); }
.w-0 { width: 0; } .w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; } .w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; } .w-50 { width: 50%; } .w-55 { width: 55%; } .w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; } .w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; } .w-95 { width: 95%; } .w-100 { width: 100%; }

.welcome { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.welcome__text h1 { font-size: 1.5rem; margin-bottom: .3rem; }
.welcome__text p { margin: 0; color: var(--color-muted); }

.games-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; gap: 1rem; }
.games-head h2 { margin: 0; font-size: 1.3rem; }
.games-head span { color: var(--color-dim); font-size: .9rem; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 2rem; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); padding: .85rem; display: flex; flex-direction: column; gap: .35rem; min-height: 210px; color: #0B1019; text-decoration: none; }
.tile:hover { text-decoration: none; }
.tile:hover .tile__art { transform: translateY(-3px) scale(1.03); }
.tile__tag { position: absolute; top: .75rem; left: .75rem; z-index: 1; background: rgba(11,16,25,.86); color: #fff; font-size: .74rem; font-weight: 700; padding: .25rem .55rem; border-radius: 999px; }
.tile__art { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; margin: 1.4rem 0 .2rem; transition: transform .2s ease-out; }
@media (prefers-reduced-motion: reduce) { .tile__art { transition: none; } .tile:hover .tile__art { transform: none; } }
.tile__name { font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; line-height: .95; text-transform: uppercase; }
.tile__line { font-size: .8rem; font-weight: 600; opacity: .8; }
.tile--closed { filter: grayscale(.8) brightness(.6); pointer-events: none; }
.tile--dice { background: #F5C542; }
.tile--coinflip { background: #6C5CE7; color: #fff; }
.tile--crash { background: #E24A5C; }
.tile--plinko { background: #FF7AB6; }
.tile--mines { background: #20C3D0; }
.tile--towers { background: #8FD14F; }
.tile--chicken-road { background: #E8763A; }
.tile--blackjack { background: #2C3E66; color: #fff; }
.tile--slot { background: #3A86FF; }
.tile--snake-eyes { background: #2FB37A; }
.tile--lotto { background: #B98CFF; }

/* Game screen */

.game { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; margin-bottom: 1rem; }
.game__controls { background: var(--color-panel); padding: 1rem; display: flex; flex-direction: column; gap: .9rem; }
.game__stage { background: var(--color-deep); padding: 1.1rem; display: flex; flex-direction: column; gap: 1.25rem; min-height: 320px; position: relative; }
.game__title { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; flex-wrap: wrap; }
.game__title h1 { font-family: var(--font-display); font-weight: 900; font-size: 2rem; text-transform: uppercase; margin: 0; line-height: 1; }
.game__title p { margin: 0; color: var(--color-dim); font-size: .9rem; }
.game__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .82rem; color: var(--color-dim); margin-bottom: 1rem; }
.game__foot a { color: var(--color-muted); font-weight: 600; }
.game__note { font-size: .8rem; color: var(--color-dim); margin: 0; }
.profit-line { display: flex; justify-content: space-between; font-size: .9rem; color: var(--color-muted); }
.profit-line b { color: var(--color-success); }
.chips { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.chip { padding: .3rem .6rem; border-radius: 999px; font-weight: 700; font-size: .8rem; font-variant-numeric: tabular-nums; }
.chip--win { background: var(--color-success-bg); color: var(--color-success); }
.chip--loss { background: var(--color-danger-bg); color: var(--color-danger); }
.result-big { font-family: var(--font-display); font-weight: 900; font-size: 3rem; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.result-big--win { color: var(--color-success); }
.result-big--loss { color: var(--color-danger); }
.stage-msg { text-align: center; color: var(--color-muted); font-weight: 600; min-height: 1.5em; }

/* Dice */

.dice-track { position: relative; padding: 54px 10px 0; }
.dice-marker { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; transition: left .35s ease-out; }
.dice-marker__value { background: #E8ECF3; color: #13915A; font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; line-height: 1; padding: .3rem .55rem; border-radius: 8px; font-variant-numeric: tabular-nums; }
.dice-marker--loss .dice-marker__value { color: #D23A4E; }
.dice-marker__arrow { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 8px solid #E8ECF3; }
.dice-bar { background: var(--color-surface-alt); border-radius: 999px; padding: 10px 14px; }
.dice-bar__track { position: relative; height: 12px; border-radius: 999px; display: flex; }
.dice-bar__left, .dice-bar__right { height: 100%; }
.dice-bar__left { border-radius: 999px 0 0 999px; }
.dice-bar__right { flex: 1; border-radius: 0 999px 999px 0; }
.is-red { background: var(--color-danger); }
.is-green { background: var(--color-success); }
.dice-range { -webkit-appearance: none; appearance: none; position: absolute; inset: -10px 0 auto 0; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; }
.dice-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 32px; border-radius: 6px; background: #E8ECF3; border: 3px solid #0B1019; }
.dice-range::-moz-range-thumb { width: 22px; height: 28px; border-radius: 6px; background: #E8ECF3; border: 3px solid #0B1019; }
.dice-range::-moz-range-track { background: transparent; }
.dice-scale { display: flex; justify-content: space-between; padding: .6rem 14px 0; font-size: .82rem; font-weight: 600; color: var(--color-dim); }
.dice-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; background: var(--color-panel); border-radius: 10px; padding: .8rem; }
.dice-stat { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.dice-stat label, .dice-stat span { font-size: .8rem; font-weight: 600; color: var(--color-muted); }
.dice-stat .field__input { padding: .6rem; font-weight: 700; }
.dice-flip { display: flex; justify-content: space-between; align-items: center; width: 100%; background: var(--color-bg); border: 1px solid var(--color-border-strong); border-radius: var(--radius-small); padding: .6rem; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* Crash */



/* Plinko */



/* Mines & towers grids */









/* Slot */

 }
.paytable { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .4rem; font-size: .8rem; }
.paytable__row { display: flex; justify-content: space-between; gap: .5rem; background: var(--color-panel); border-radius: 6px; padding: .35rem .55rem; color: var(--color-muted); }
.paytable__row b { color: #fff; font-variant-numeric: tabular-nums; }

/* Snake eyes */

.calls { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.call { border: 1px solid var(--color-border-strong); background: var(--color-bg); border-radius: 10px; padding: .6rem .7rem; text-align: left; color: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: .1rem; }
.call small { color: var(--color-dim); font-size: .78rem; }
.call--active { border-color: var(--color-primary); background: var(--color-warning-bg); }

/* Lotto */


/* Feed, history, fairness, help, bankroll */

.feed-tabs { display: flex; gap: 6px; margin-bottom: .7rem; }
.hash { font-family: var(--font-mono); font-size: .8rem; color: var(--color-muted); }
.seedbox { display: grid; gap: .8rem; }
.verify-out { background: var(--color-deep); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.verify-ok { color: var(--color-success); font-weight: 700; }
.verify-bad { color: var(--color-danger); font-weight: 700; }

.help-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.help-group { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.help-group h2 { font-size: 1rem; color: var(--color-primary); margin-bottom: .6rem; }
.help-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.help-group a { color: var(--color-text); font-weight: 600; }
.help-group small { display: block; color: var(--color-dim); font-weight: 400; }
.article { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.4rem; max-width: 760px; line-height: 1.65; }
.article h1 { font-size: 1.6rem; }
.article__heading { font-size: 1.1rem; margin-top: 1.4rem; }
.article__list { padding-left: 1.2rem; margin: 0 0 var(--space); }
.article__list li { margin-bottom: .35rem; }
.article__more { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--color-border); display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.suggest { background: var(--color-panel); border-radius: var(--radius-small); padding: .75rem .9rem; display: flex; flex-direction: column; gap: .4rem; }
.suggest a { font-weight: 600; }
.thread { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1rem; }
.msg { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: .9rem 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--staff { border-color: #4A3D18; background: #191A17; }
.msg__head { display: flex; justify-content: space-between; gap: .5rem; font-size: .82rem; color: var(--color-dim); margin-bottom: .4rem; white-space: normal; }
.msg__head b { color: var(--color-text); }

.chart { width: 100%; height: 220px; display: block; }
.chart__line { fill: none; stroke: var(--color-primary); stroke-width: 2.5; }
.chart__area { fill: rgba(245,197,66,.10); }
.chart__grid { stroke: var(--color-border); stroke-width: 1; }
.chart__label { fill: var(--color-dim); font-size: 11px; font-family: var(--font-sans); }
.split { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.split > * { min-width: 0; }
.terms { font-size: .92rem; color: var(--color-muted); }
.terms li { margin-bottom: .4rem; }
.risk { border: 1px solid #6A2A36; background: var(--color-danger-bg); color: #FFC2CB; border-radius: var(--radius-small); padding: .75rem 1rem; font-weight: 600; }

.exit { display: grid; gap: .75rem; margin: 0 0 1.5rem; padding: 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.exit__sum { display: grid; gap: .15rem; }
.exit__label { color: var(--color-dim); font-size: .85rem; }
.exit__value { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; line-height: 1.1; }
.exit__note { color: var(--color-dim); font-size: .82rem; }
.exit .btn.is-armed { background: var(--color-danger-bg); border-color: var(--color-danger); color: var(--color-danger); }
.exit__title { margin: 0 0 .25rem; font-size: 1rem; }

.levelcard { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.levelcard__num { font-family: var(--font-display); font-weight: 900; font-size: 3.4rem; line-height: 1; }
.levelcard__body { flex: 1 1 260px; display: flex; flex-direction: column; gap: .5rem; }

/* Wider screens */

@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .nav__list { display: flex; }
  .tabbar { display: none; }
  .site-footer { padding-bottom: 0; }
  .layout__main { padding-bottom: 2rem; }
  .game { flex-direction: row; }
  .game__controls { width: 320px; flex: none; }
  .game__stage { flex: 1; min-width: 0; padding: 1.5rem 1.75rem; }
}

@media (min-width: 1180px) {
  .chat { display: flex; position: sticky; top: 59px; height: calc(100vh - 59px); }
  .chat__close, .js-chat-toggle { display: none; }
  body.chat-open .chat { position: sticky; inset: auto; width: var(--width-chat); }
}

@media (max-width: 760px) {
  .layout__body { flex-direction: column; }
  .acpgroups { grid-template-columns: 1fr; }
  .acpgroup__text { display: none; }
  .stats { grid-template-columns: 1fr; gap: .5rem; }
  .stat { flex-direction: row; justify-content: space-between; align-items: baseline; padding: .7rem .9rem; }
  .datalist__row { grid-template-columns: 1fr; gap: .2rem; }
  .code-list { columns: 1; }
  .page__title { font-size: 1.4rem; }
  .result-big { font-size: 2.4rem; }
  .dice-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; padding: .6rem; }
}

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

@media (max-width: 560px) {
  .table--feed th:nth-child(2), .table--feed td:nth-child(2) { display: none; }
  .table--feed th, .table--feed td { padding: .55rem .5rem; }
}

@media (min-width: 1100px) {
  .layout--side .nav__brand { display: none; }
  .layout--side .nav__menu { display: none; }
}

@media (max-width: 1099px) {
  .layout--side { flex-direction: column; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: min(300px, 86vw); transform: translateX(-105%); transition: transform .2s ease-out; }
  body.side-open .side { transform: none; }
  .side__close { display: inline-flex; }
  body.side-open { overflow: hidden; }
}

@media (max-width: 760px) {
  .nav__logo { display: none !important; }
  .nav__mark { display: block !important; height: 34px; width: 34px; }
  .nav { gap: .4rem; }
  .purse__total { padding: .4rem .45rem .4rem .55rem; font-size: .95rem; }
  .purse__add { width: 36px; height: 36px; }
  .nav__right .btn { padding: .5rem .7rem; font-size: .9rem; }
  .sheet { width: 100%; max-width: none; max-height: 88vh; margin: auto 0 0; border-radius: 20px 20px 0 0; border-bottom: 0; }
  .sheet__grip { display: block; }
}

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

.invite-strip { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.5rem; padding: .9rem 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-text); }
.invite-strip:hover { border-color: var(--color-border-strong); text-decoration: none; }
.invite-strip__icon { width: 46px; height: 46px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--color-primary); color: var(--color-primary-text); }
.invite-strip__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.invite-strip__text span { color: var(--color-muted); font-size: .9rem; }

.invite__head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: 1.5rem; margin-bottom: 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px; }
.invite__art { width: 180px; height: auto; background: #FF7AB6; border-radius: 16px; }
.invite__title { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: .98; text-transform: uppercase; }
.invite__lead { margin: 0 0 1rem; color: var(--color-muted); max-width: 40rem; }
.invite__link { display: flex; gap: .5rem; align-items: center; padding: .4rem .4rem .4rem .9rem; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 12px; }
.invite__link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.invite__stat { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.invite__stat span { font-size: .8rem; color: var(--color-dim); font-weight: 600; }
.invite__stat b { font-size: 1.35rem; }
.invite__claim { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; margin-bottom: 1.5rem; border: 1px solid var(--color-primary); border-radius: var(--radius); background: rgba(245, 197, 66, .08); }
.invite__claim-label { display: block; font-size: .85rem; color: var(--color-muted); font-weight: 600; }
.invite__claim-value { font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--color-primary); }
.invite__tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: .5rem; }
.invite__tier { display: flex; flex-direction: column; gap: .15rem; padding: 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.invite__tier.is-current { border-color: var(--color-primary); }
.invite__tier-name { font-weight: 700; color: var(--color-muted); }
.invite__tier-rate { font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; line-height: 1; color: #fff; }
.invite__tier.is-current .invite__tier-rate { color: var(--color-primary); }
.invite__tier-at { font-size: .85rem; color: var(--color-dim); }

@media (max-width: 760px) {
  .invite__head { grid-template-columns: 1fr; padding: 1.1rem; }
  .invite__art { width: 120px; }
  .invite__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invite__tiers { grid-template-columns: 1fr; }
  .invite__claim { flex-direction: column; align-items: stretch; text-align: center; }
  .invite-strip .btn { display: none; }
}

.check { display: flex; gap: .65rem; align-items: flex-start; margin: 0 0 var(--space); line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--color-primary); cursor: pointer; }
.check a { color: var(--color-primary); }

.tos { width: min(640px, calc(100% - 2rem)); max-height: min(780px, calc(100vh - 2rem)); padding: 0; border: 1px solid var(--color-border-strong); border-radius: 18px; background: var(--color-panel); color: var(--color-text); overflow: hidden; }
.tos[open] { display: flex; flex-direction: column; }
.tos::backdrop { background: rgba(5, 8, 14, .82); }
.tos__head { padding: 1.4rem 1.5rem .9rem; border-bottom: 1px solid var(--color-border); }
.tos__title { margin: 0 0 .35rem; font-size: 1.35rem; }
.tos__lead { margin: 0; color: var(--color-muted); }
.tos__body { flex: 1 1 auto; min-height: 140px; overflow-y: auto; padding: 1.1rem 1.5rem; background: var(--color-surface); line-height: 1.6; font-size: .95rem; }
.tos__body:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }
.tos__body p { margin: 0 0 .85rem; }
.tos__body a { color: var(--color-primary); }
.tos__foot { padding: 1rem 1.5rem 1.3rem; border-top: 1px solid var(--color-border); }
.tos__foot .check { margin-bottom: .75rem; }
.tos__hint { margin: -.25rem 0 .75rem; color: var(--color-muted); font-size: .88rem; }
.tos__actions { display: flex; gap: .6rem; justify-content: flex-end; }
.tos__actions .btn { min-width: 120px; }
.tos__actions .btn--primary:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) {
  .tos { width: 100%; max-width: none; max-height: 92vh; margin: auto 0 0; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .tos__head, .tos__body, .tos__foot { padding-left: 1.1rem; padding-right: 1.1rem; }
  .tos__actions .btn { flex: 1; min-width: 0; }
}
@media (max-width: 760px) {
  .invite__head { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.1rem; }
  .invite__art { width: 96px; }
  .invite__link { flex-wrap: wrap; padding: .6rem; }
  .invite__link code { flex-basis: 100%; padding: .2rem .1rem; }
  .invite__link .btn { flex: 1; }
  .invite__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invite__claim { flex-direction: column; align-items: stretch; text-align: center; }
  .invite__claim .btn { width: 100%; }
  .invite__tiers { grid-template-columns: minmax(0, 1fr); }
}
.invite > .field__hint { margin-bottom: 1.75rem; }

.slot-fast { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--color-muted); cursor: pointer; }
.slot-fast input { width: 18px; height: 18px; accent-color: var(--color-primary); }

.slotm { width: 100%; max-width: 560px; margin: 0 auto; padding: 14px; background: #0E1626; border: 3px solid var(--color-primary); border-radius: 26px; box-shadow: inset 0 0 0 6px #1B2A44, 0 18px 40px rgba(0, 0, 0, .45); }
.slotm__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 4px 12px; padding: .55rem .9rem; background: #3A86FF; border-radius: 14px; color: #fff; }
.slotm__name { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.slotm__prize { display: inline-flex; align-items: center; gap: .15rem; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.slotm__prize img { width: 22px; height: 22px; }
.slotm__prize b { margin-left: .3rem; font-family: var(--font-display); font-size: 1.15rem; color: #FFF5D1; }
.slotm__window { position: relative; padding: 10px; background: #070B14; border-radius: 18px; }
.slotm__reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slotm__reel { position: relative; aspect-ratio: 1 / 2.4; overflow: hidden; border-radius: 12px; background: #FFF5D1; box-shadow: inset 0 14px 18px -10px rgba(11, 16, 25, .55), inset 0 -14px 18px -10px rgba(11, 16, 25, .55); }
.slotm__strip { display: flex; flex-direction: column; will-change: transform; }
.slotm__strip.is-rolling { transition-property: transform; transition-timing-function: cubic-bezier(.18, .7, .22, 1.03); }
.slotm__strip.is-rolling .slotm__cell img { filter: blur(1.5px); }
.slotm__cell { aspect-ratio: 1 / .8; display: flex; align-items: center; justify-content: center; }
.slotm__cell img { width: 78%; height: auto; transition: transform .25s ease; }
.slotm__cell:nth-child(1) img, .slotm__cell:nth-child(3) img { opacity: .55; }
.slotm__strip.is-rolling .slotm__cell img { opacity: 1; }
.slotm__cell.is-hit { background: rgba(245, 197, 66, .35); box-shadow: inset 0 0 0 3px var(--color-primary); border-radius: 10px; }
.slotm__cell.is-hit img { transform: scale(1.1); }
.slotm__line { position: absolute; left: 0; right: 0; top: 50%; height: 0; border-top: 3px solid rgba(245, 197, 66, .9); pointer-events: none; }
.slotm__line::before, .slotm__line::after { content: ""; position: absolute; top: -10px; border: 8px solid transparent; }
.slotm__line::before { left: -2px; border-left: 11px solid var(--color-primary); }
.slotm__line::after { right: -2px; border-right: 11px solid var(--color-primary); }
.slotm__msg { display: flex; align-items: center; justify-content: center; min-height: 3.1rem; margin: 12px 4px 2px; padding: .5rem .9rem; border-radius: 12px; background: #172133; text-align: center; font-weight: 600; color: var(--color-muted); }
.slotm.is-win .slotm__msg { background: rgba(245, 197, 66, .14); color: #FFF5D1; }
.slotm__msg b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--color-primary); vertical-align: -.12em; margin-right: .35rem; }
.slotm.is-big .slotm__msg { background: var(--color-primary); color: #0B1019; }
.slotm.is-big .slotm__msg b { color: #0B1019; }
.slotm.is-busy .slotm__line { border-top-color: rgba(245, 197, 66, .45); }

.slot-pay { width: 100%; max-width: 560px; margin: 0 auto; }
.slot-pay__title { margin: 0 0 .6rem; font-size: 1rem; }
.slot-pay__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.slot-pay__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .6rem .35rem .4rem; background: var(--color-panel); border-radius: 10px; }
.slot-pay__row b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.slot-pay__row--top { background: rgba(245, 197, 66, .12); box-shadow: inset 0 0 0 1px rgba(245, 197, 66, .5); }
.slot-pay__row--top b { color: var(--color-primary); }
.slot-pay__syms { display: inline-flex; align-items: center; gap: 2px; }
.slot-pay__syms img { width: 30px; height: 30px; }
.slot-pay__any { width: 30px; text-align: center; font-size: .7rem; font-weight: 700; color: var(--color-dim); text-transform: uppercase; }
@media (max-width: 560px) {
  .slotm { padding: 10px; border-radius: 20px; }
  .slotm__top { margin-bottom: 10px; }
  .slotm__name { font-size: 1.25rem; }
  .slotm__prize img { width: 18px; height: 18px; }
  .slotm__reels { gap: 6px; }
  .slotm__window { padding: 6px; }
  .slot-pay__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .slotm__strip.is-rolling { transition: none; }
  .slotm__cell img { transition: none; }
}

.brand { max-width: 1120px; }
.brand__hero { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1.75rem; align-items: center; padding: 1.75rem; margin-bottom: 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px; }
.brand__hero-coin { width: 150px; height: auto; }
.brand__title { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 5vw, 3.1rem); line-height: .95; text-transform: uppercase; }
.brand__lead { margin: 0 0 1.1rem; color: var(--color-muted); max-width: 40rem; }
.brand__hero .btn { display: inline-flex; gap: .5rem; align-items: center; }
.brand__jump { position: sticky; top: 0; z-index: 5; display: flex; gap: .25rem; overflow-x: auto; margin: 0 0 1.5rem; padding: .5rem; background: var(--color-bg); border-bottom: 1px solid var(--color-border); scrollbar-width: none; }
.brand__jump a { flex: none; padding: .45rem .8rem; border-radius: 9px; color: var(--color-muted); font-weight: 700; font-size: .92rem; }
.brand__jump a:hover { background: var(--color-surface-alt); color: #fff; text-decoration: none; }
.brand__sec { margin: 0 0 3rem; scroll-margin-top: 4rem; }
.brand__h { margin: 0 0 .4rem; font-family: var(--font-display); font-weight: 900; font-size: 2rem; text-transform: uppercase; line-height: 1; }
.brand__h3 { margin: 1.6rem 0 .3rem; font-size: 1.05rem; }
.brand__p { margin: 0 0 1.1rem; color: var(--color-muted); max-width: 46rem; }
.brand__p a { color: var(--color-primary); }
.brand__logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .9rem; }
.brand__logo, .brand__banner { margin: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.brand__logo-view { aspect-ratio: 16 / 7; display: flex; align-items: center; justify-content: center; padding: 1.4rem; }
.brand__logo-view img { max-width: 100%; max-height: 100%; }
.brand__logo-view--dark { background: #0E1320; }
.brand__logo-view--light { background: #FFFFFF; }
.brand__logo-view--cream { background: #FFF5D1; }
.brand__logo-view--blue { background: #3A86FF; }
.brand__logo figcaption, .brand__banner figcaption { display: flex; flex-direction: column; gap: .2rem; padding: .8rem 1rem .9rem; font-size: .9rem; color: var(--color-muted); }
.brand__logo figcaption b, .brand__banner figcaption b { color: #fff; }
.brand__dl { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.brand__dl a { padding: .25rem .6rem; border-radius: 7px; background: var(--color-surface-alt); color: #fff; font-weight: 700; font-size: .8rem; }
.brand__dl a:hover { background: var(--color-primary); color: var(--color-primary-text); text-decoration: none; }
.brand__rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: 1rem; }
.brand__rules > div { padding: 1rem 1.1rem; background: var(--color-panel); border-radius: var(--radius); }
.brand__rules h3 { margin: 0 0 .35rem; font-size: 1rem; }
.brand__rules p { margin: 0; color: var(--color-muted); font-size: .92rem; }
.brand__swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.brand__swatch, .brand__accent { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; padding: .6rem .6rem .8rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-muted); font: inherit; font-size: .85rem; text-align: left; cursor: pointer; }
.brand__swatch:hover, .brand__accent:hover { border-color: var(--color-border-strong); }
.brand__swatch b, .brand__accent b { color: #fff; font-size: .95rem; }
.brand__swatch code, .brand__accent code { color: var(--color-text); }
.brand__chip { display: block; width: 100%; height: 78px; margin-bottom: .5rem; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.brand__accents { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.brand__accent .brand__chip { height: 44px; }
.brand__type { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.brand__type-card { display: flex; flex-direction: column; gap: .25rem; padding: 1.2rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-muted); font-size: .92rem; }
.brand__type-card b { color: #fff; }
.brand__type-card a { color: var(--color-primary); font-weight: 700; margin-top: .3rem; }
.brand__type-sample { margin: 0 0 .7rem; font-size: 2rem; font-weight: 600; color: #fff; line-height: 1.1; }
.brand__type-sample--display { font-family: var(--font-display); font-weight: 900; font-size: 3.2rem; text-transform: uppercase; line-height: .95; color: var(--color-primary); }
.brand__voice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.brand__voice > div { padding: 1.1rem 1.2rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.brand__voice h3 { margin: 0 0 .5rem; font-size: 1rem; }
.brand__voice ul { margin: 0; padding-left: 1.1rem; color: var(--color-muted); line-height: 1.7; }
.brand__icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; }
.brand__icon { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .9rem .6rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-muted); font-size: .8rem; text-align: center; }
.brand__icon:hover { border-color: var(--color-primary); text-decoration: none; }
.brand__icon b { color: #fff; font-size: .9rem; }
.brand__icon-view { height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: .3rem; }
.brand__icon-view img { max-width: 96px; max-height: 96px; width: auto; height: auto; }
.brand__banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; align-items: start; }
.brand__banner--wide { grid-column: 1 / -1; }
.brand__banner-view { display: flex; align-items: center; justify-content: center; padding: 1rem; background: #151D2C; }
.brand__banner-view img { max-width: 100%; height: auto; }
.brand__banner--tall .brand__banner-view img { max-height: 520px; width: auto; }
.brand__social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1.2rem; }
@media (max-width: 760px) {
  .brand__hero { grid-template-columns: minmax(0, 1fr); padding: 1.2rem; gap: 1rem; }
  .brand__hero-coin { width: 84px; }
  .brand__rules, .brand__type, .brand__voice, .brand__social { grid-template-columns: minmax(0, 1fr); }
  .brand__banners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand__swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand__chip { height: 56px; }
  .brand__type-sample--display { font-size: 2.4rem; }
}
.brand__chip--0b1019 { background: #0B1019; }
.brand__chip--0e1320 { background: #0E1320; }
.brand__chip--121a28 { background: #121A28; }
.brand__chip--172133 { background: #172133; }
.brand__chip--2fb37a { background: #2FB37A; }
.brand__chip--2fd18a { background: #2FD18A; }
.brand__chip--3a86ff { background: #3A86FF; }
.brand__chip--8fd14f { background: #8FD14F; }
.brand__chip--a7b2c5 { background: #A7B2C5; }
.brand__chip--b98cff { background: #B98CFF; }
.brand__chip--e24a5c { background: #E24A5C; }
.brand__chip--e8763a { background: #E8763A; }
.brand__chip--e8ecf3 { background: #E8ECF3; }
.brand__chip--f5c542 { background: #F5C542; }
.brand__chip--ff7ab6 { background: #FF7AB6; }
.brand__chip--ffd45e { background: #FFD45E; }
.brand__chip--fff5d1 { background: #FFF5D1; }

.layout--default.layout--side .shell { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.layout--default:not(.layout--side) .shell { display: contents; }
@media (min-width: 1180px) and (max-width: 1439px) {
  .layout--side .chat { width: 300px; }
}

.flip-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.flip-pick__btn { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; background: var(--color-panel); border: 2px solid var(--color-border); border-radius: 14px; color: var(--color-text); font: inherit; cursor: pointer; }
.flip-pick__btn img { width: 40px; height: 40px; flex: none; }
.flip-pick__btn b { font-size: 1.05rem; }
.flip-pick__btn:hover { border-color: var(--color-border-strong); }
.flip-pick__btn.is-active { border-color: var(--color-primary); background: rgba(245, 197, 66, .1); }
.flip-odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.flip-odds > div { display: flex; flex-direction: column; gap: .1rem; padding: .5rem .6rem; background: var(--color-panel); border-radius: 10px; }
.flip-odds span { font-size: .75rem; color: var(--color-dim); font-weight: 600; }
.flip-odds b { font-variant-numeric: tabular-nums; }

.flip { --coin: 220px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 3.5rem 0 1rem; min-height: 460px; justify-content: flex-end; }
.flip__scene { perspective: 1000px; width: var(--coin); height: var(--coin); position: relative; z-index: 1; }
.flip__tilt { width: 100%; height: 100%; transform: rotateX(24deg); transform-style: preserve-3d; }
.flip__coin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip__face img { width: 100%; height: 100%; display: block; }
.flip__face--heads { transform: translateZ(7px); }
.flip__face--tails { transform: rotateX(180deg) translateZ(7px); }
.flip__slice { position: absolute; inset: 5.9%; border-radius: 50%; }
.flip__slice--0 { transform: translateZ(-6.5px); background: #C98C1C; }
.flip__slice--1 { transform: translateZ(-5.5px); background: #A86F10; }
.flip__slice--2 { transform: translateZ(-4.5px); background: #C98C1C; }
.flip__slice--3 { transform: translateZ(-3.5px); background: #A86F10; }
.flip__slice--4 { transform: translateZ(-2.5px); background: #C98C1C; }
.flip__slice--5 { transform: translateZ(-1.5px); background: #A86F10; }
.flip__slice--6 { transform: translateZ(-0.5px); background: #C98C1C; }
.flip__slice--7 { transform: translateZ(0.5px); background: #A86F10; }
.flip__slice--8 { transform: translateZ(1.5px); background: #C98C1C; }
.flip__slice--9 { transform: translateZ(2.5px); background: #A86F10; }
.flip__slice--10 { transform: translateZ(3.5px); background: #C98C1C; }
.flip__slice--11 { transform: translateZ(4.5px); background: #A86F10; }
.flip__slice--12 { transform: translateZ(5.5px); background: #C98C1C; }
.flip__slice--13 { transform: translateZ(6.5px); background: #A86F10; }
.flip__shadow { width: calc(var(--coin) * .78); height: 22px; margin-top: -1.4rem; border-radius: 50%; background: #000; opacity: .55; filter: blur(6px); }
.flip__result { min-height: 2.4rem; display: flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--color-muted); text-align: center; }
.flip__result b { font-family: var(--font-display); font-weight: 900; font-size: 2rem; text-transform: uppercase; color: #fff; }
.flip.is-win .flip__result b { color: var(--color-primary); }
.flip.is-win .flip__result { color: var(--color-success); }
.flip__trail { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: center; min-height: 26px; }
.flip__dot { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; }
.flip__dot--heads { background: var(--color-primary); color: #1A1300; }
.flip__dot--tails { background: #0E1320; color: var(--color-primary); box-shadow: inset 0 0 0 2px var(--color-primary); }
@media (max-width: 760px) {
  .flip { --coin: 170px; min-height: 360px; padding-top: 2.5rem; }
  .flip__result b { font-size: 1.6rem; }
}
.brand__chip--6c5ce7 { background: #6C5CE7; }
@media (max-width: 899px) {
  .game--coinflip .game__stage, .game--mines .game__stage, .game--towers .game__stage,
  .game--crash .game__stage, .game--plinko .game__stage, .game--dice .game__stage { order: -1; }
  .game--coinflip .flip { min-height: 300px; padding: 2rem 0 .5rem; }
}

.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--color-surface-alt); color: var(--color-muted); }
.pill--ok { background: var(--color-success-bg); color: var(--color-success); }
.pill--wait { background: var(--color-warning-bg); color: var(--color-warning); }
.pill--off { background: var(--color-danger-bg); color: var(--color-danger); }

.wal { display: flex; flex-direction: column; gap: 1rem; }
.wal-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; padding: 1.5rem 1.6rem; border-radius: 20px; background: #121A28; border: 1px solid var(--color-border); position: relative; overflow: hidden; }
.wal-hero::after { content: ""; position: absolute; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%; border: 34px solid rgba(245, 197, 66, .08); pointer-events: none; }
.wal-hero__main { display: flex; flex-direction: column; gap: .2rem; position: relative; z-index: 1; }
.wal-hero__label { font-size: .85rem; font-weight: 700; color: var(--color-dim); text-transform: uppercase; letter-spacing: .04em; }
.wal-hero__amount { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1; color: #fff; }
.wal-hero__amount em { font-style: normal; color: var(--color-primary); }
.wal-hero__facts { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .5rem; font-size: .88rem; color: var(--color-muted); }
.wal-hero__facts b { color: var(--color-text); }
.wal-hero__go { display: flex; gap: .5rem; position: relative; z-index: 1; }
.wal-go { display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 84px; padding: .75rem .9rem; border-radius: 14px; background: var(--color-surface-alt); color: var(--color-text); font-weight: 700; font-size: .85rem; }
.wal-go:hover { background: #26354F; text-decoration: none; }
.wal-go--in { background: var(--color-primary); color: var(--color-primary-text); }
.wal-go--in:hover { background: var(--color-primary-hover); }
.wal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.wal-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 20px; padding: 1.3rem 1.4rem; scroll-margin-top: 80px; }
.wal-card__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.wal-card__head h2 { margin: 0; font-size: 1.15rem; }
.wal-card__head p { margin: .1rem 0 0; font-size: .88rem; color: var(--color-muted); }
.wal-card__head--row { justify-content: space-between; flex-wrap: wrap; }
.wal-card__icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-surface-alt); color: var(--color-text); }
.wal-card__icon--in { background: var(--color-primary); color: var(--color-primary-text); }
.wal-card__icon--drop { background: #1B2746; color: #9DB4FF; }
.wal-card__icon--ptc { background: var(--color-success-bg); color: var(--color-success); }
.wal-dep { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.wal-qr { margin: 0; padding: 12px; background: #fff; border-radius: 16px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; }
.wal-qr svg { display: block; width: 100%; height: auto; }
.wal-dep__side { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.wal-dep__label { font-size: .8rem; font-weight: 700; color: var(--color-dim); text-transform: uppercase; letter-spacing: .04em; }
.wal-addr { display: flex; align-items: center; gap: .4rem; padding: .35rem .35rem .35rem .8rem; background: var(--color-bg); border: 1px solid var(--color-border-strong); border-radius: 12px; }
.wal-addr code { flex: 1; min-width: 0; font-size: .92rem; overflow-wrap: anywhere; color: #fff; }
.wal-addr__copy { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .8rem; border: 0; border-radius: 9px; background: var(--color-primary); color: var(--color-primary-text); font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; }
.wal-addr__copy:hover { background: var(--color-primary-hover); }
.wal-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; color: var(--color-muted); }
.wal-checks li { display: flex; align-items: center; gap: .5rem; }
.wal-checks svg { color: var(--color-success); flex: none; }
.wal-dep__side .btn { align-self: flex-start; }
.wal-warn { margin: 1rem 0 0; padding: .6rem .8rem; border-radius: 10px; background: var(--color-warning-bg); color: var(--color-warning); font-size: .85rem; font-weight: 600; }
.wal-sub { margin: 1.3rem 0 .5rem; font-size: .95rem; color: var(--color-muted); }
.wal-steps { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.2rem; }
.wal-step { padding: .75rem .85rem; border-radius: 12px; background: var(--color-panel); }
.wal-step__top { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; font-size: .92rem; }
.wal-step__top span { width: 24px; height: 24px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--color-surface-alt); font-weight: 800; font-size: .8rem; }
.wal-step__top b { flex: 1; }
.wal-step__top em { font-style: normal; color: var(--color-muted); font-size: .85rem; }
.wal-step.is-done .wal-step__top span { background: var(--color-success-bg); color: var(--color-success); }
.wal-step.is-done .bar__fill { background: var(--color-success); }
.wal-form { display: flex; flex-direction: column; gap: .2rem; }
.wal-sum { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .2rem 0 .9rem; font-size: .85rem; color: var(--color-muted); }
.wal-sum b { color: var(--color-text); }
.wal-blockers { list-style: none; margin: .7rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--color-muted); }
.wal-blockers li { display: flex; gap: .4rem; align-items: flex-start; }
.wal-blockers svg { margin-top: .15rem; flex: none; color: var(--color-warning); }
.wal-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wal-row { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--color-border); }
.wal-row:first-child { border-top: 0; }
.wal-row__icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-surface-alt); color: var(--color-muted); }
.wal-row__icon--in { background: var(--color-success-bg); color: var(--color-success); }
.wal-row__what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .05rem; }
.wal-row__what small, .wal-row__what .hash { font-size: .78rem; color: var(--color-dim); }
.wal-row__amt { display: flex; flex-direction: column; align-items: flex-end; gap: .05rem; }
.wal-row__amt small { font-size: .75rem; color: var(--color-dim); }
.wal-row form { margin: 0; }
.wal-faucet { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.wal-faucet__text { flex: 1; min-width: 220px; }
.wal-faucet__text h2 { margin: 0 0 .15rem; font-size: 1.1rem; }
.wal-faucet__text p { margin: 0; color: var(--color-muted); font-size: .9rem; }
.wal-faucet__go { margin-left: auto; }
.wal-faucet__text .wal-ptc__done { margin-top: .35rem; color: var(--color-text); }
.wal-ptc .btn svg { flex: none; }
.wal-empty { margin: 0; color: var(--color-muted); }
.wal-more { margin: .8rem 0 0; font-size: .88rem; }
.wal-more a { color: var(--color-primary); font-weight: 700; }
@media (min-width: 1100px) {
  .wal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wal-hero { padding: 1.2rem; }
  .wal-hero__go { width: 100%; }
  .wal-go { flex: 1; min-width: 0; }
  .wal-card { padding: 1.1rem 1rem; }
  .wal-dep { grid-template-columns: minmax(0, 1fr); }
  .wal-qr { width: min(220px, 70%); margin: 0 auto; }
  .wal-dep__side .btn { align-self: stretch; }
}
.sheet__qr { display: flex; align-items: center; justify-content: center; }
.sheet__qr svg { display: block; width: 100%; height: auto; }

.hc { display: flex; flex-direction: column; gap: 1.25rem; max-width: 1080px; }
.hc-hero { padding: 2.2rem 1.6rem 1.8rem; border-radius: 22px; background: #121A28; border: 1px solid var(--color-border); text-align: center; position: relative; overflow: hidden; }
.hc-hero::before { content: ""; position: absolute; left: -80px; bottom: -120px; width: 280px; height: 280px; border-radius: 50%; border: 36px solid rgba(58, 134, 255, .1); }
.hc-hero::after { content: ""; position: absolute; right: -70px; top: -110px; width: 240px; height: 240px; border-radius: 50%; border: 30px solid rgba(245, 197, 66, .09); }
.hc-hero__title { position: relative; z-index: 1; margin: 0 0 1.1rem; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 6vw, 3.4rem); text-transform: uppercase; line-height: .95; }
.hc-hero__hint { position: relative; z-index: 1; margin: .9rem 0 0; color: var(--color-muted); font-size: .92rem; }
.hc-search { position: relative; z-index: 1; display: flex; align-items: center; gap: .5rem; max-width: 640px; margin: 0 auto; padding: .35rem .35rem .35rem 1rem; background: var(--color-bg); border: 2px solid var(--color-border-strong); border-radius: 16px; }
.hc-search:focus-within { border-color: var(--color-primary); }
.hc-search > svg { color: var(--color-dim); flex: none; }
.hc-search input { flex: 1; min-width: 0; padding: .7rem .2rem; background: none; border: 0; color: #fff; font: inherit; font-size: 1.02rem; outline: none; }
.hc-search .btn { border-radius: 12px; }
.hc-block { display: flex; flex-direction: column; gap: .7rem; }
.hc-h { margin: 0; font-size: 1.1rem; }
.hc-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.hc-item { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; color: var(--color-text); }
.hc-item:hover { border-color: var(--color-primary); text-decoration: none; }
.hc-item > svg { color: var(--color-dim); flex: none; }
.hc-item__icon, .hc-cat__icon { width: 38px; height: 38px; flex: none; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-surface-alt); color: var(--color-primary); }
.hc-item__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.hc-item__text small { color: var(--color-dim); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .8rem; }
.hc-cat { padding: 1.1rem 1.15rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; }
.hc-cat__head { display: flex; align-items: center; gap: .7rem; margin-bottom: .75rem; }
.hc-cat__head h3 { margin: 0; font-size: 1.02rem; flex: 1; }
.hc-cat__head small { color: var(--color-dim); font-size: .78rem; }
.hc-cat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hc-cat li a { display: block; padding: .42rem 0; color: var(--color-muted); border-top: 1px solid var(--color-border); font-size: .93rem; }
.hc-cat li:first-child a { border-top: 0; }
.hc-cat li a:hover { color: #fff; text-decoration: none; }
.hc-none { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem 1.1rem; background: var(--color-surface); border-radius: 14px; }
.hc-none p { margin: 0; flex: 1; color: var(--color-muted); }
.hc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem; border-radius: 18px; background: rgba(245, 197, 66, .08); border: 1px solid rgba(245, 197, 66, .35); }
.hc-cta > div { flex: 1; min-width: 220px; }
.hc-cta h2 { margin: 0 0 .2rem; font-size: 1.15rem; }
.hc-cta p { margin: 0; color: var(--color-muted); font-size: .92rem; }
.hc-cta__icon { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary); color: var(--color-primary-text); flex: none; }
.hc-crumbs { display: flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--color-dim); }
.hc-crumbs a { color: var(--color-muted); font-weight: 600; }
.hc-crumbs svg { opacity: .6; }
.hc-read { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.hc-article, .hc-form, .tk-view { padding: 1.6rem 1.7rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 20px; }
.hc-article__tag { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; background: var(--color-surface-alt); color: var(--color-primary); font-size: .8rem; font-weight: 700; }
.hc-article h1, .hc-form h1 { margin: .7rem 0 .4rem; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.15; }
.hc-form h1 { margin-top: 0; }
.hc-article__lead, .hc-form__lead { margin: 0 0 1.2rem; color: var(--color-muted); font-size: 1.02rem; }
.hc-article__body { line-height: 1.75; font-size: 1rem; color: #D7DEEA; }
.hc-article__body p { margin: 0 0 1rem; }
.hc-article__body a { color: var(--color-primary); font-weight: 600; }
.hc-article__body strong { color: #fff; }
.hc-article__body .article__heading { margin: 1.6rem 0 .6rem; font-size: 1.15rem; color: #fff; }
.hc-article__body .article__list { margin: 0 0 1rem; padding-left: 1.2rem; }
.hc-article__body .article__list li { margin-bottom: .4rem; }
.hc-article__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--color-border); color: var(--color-muted); }
.hc-side { padding: 1.2rem 1.25rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px; }
.hc-side h2 { margin: 0 0 .6rem; font-size: .95rem; color: var(--color-muted); }
.hc-side ul { list-style: none; margin: 0; padding: 0; }
.hc-side li a { display: block; padding: .45rem 0; border-top: 1px solid var(--color-border); color: var(--color-text); font-size: .93rem; }
.hc-side li:first-child a { border-top: 0; }
.hc-side li a:hover { color: var(--color-primary); text-decoration: none; }
.hc-tips { display: flex; flex-direction: column; gap: .6rem; }
.hc-tips li { display: flex; gap: .55rem; font-size: .9rem; color: var(--color-muted); line-height: 1.45; }
.hc-tips svg { flex: none; margin-top: .15rem; color: var(--color-primary); }
.hc-side__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; color: var(--color-primary); font-weight: 700; font-size: .9rem; }
.hc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.hc-head__title { margin: 0 0 .2rem; font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; text-transform: uppercase; line-height: 1; }
.hc-head p { margin: 0; color: var(--color-muted); }
.hc-head p a { color: var(--color-primary); font-weight: 600; }
.hc-head .btn { display: inline-flex; align-items: center; gap: .4rem; }
.hc-empty { padding: 2.6rem 1.5rem; text-align: center; background: var(--color-surface); border: 1px dashed var(--color-border-strong); border-radius: 20px; }
.hc-empty__icon { width: 64px; height: 64px; margin: 0 auto .9rem; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--color-surface-alt); color: var(--color-primary); }
.hc-empty h2 { margin: 0 0 .4rem; }
.hc-empty p { margin: 0 auto 1.2rem; max-width: 420px; color: var(--color-muted); }
.tk-list { display: flex; flex-direction: column; gap: .5rem; }
.tk { display: flex; align-items: center; gap: .85rem; padding: .95rem 1.05rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; color: var(--color-text); }
.tk:hover { border-color: var(--color-border-strong); text-decoration: none; }
.tk__icon { width: 40px; height: 40px; flex: none; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-surface-alt); color: var(--color-primary); }
.tk__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.tk__main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk__main small { color: var(--color-dim); font-size: .82rem; }
.hc-topics { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; padding: 0; border: 0; }
.hc-topics legend { margin-bottom: .45rem; padding: 0; }
.hc-topic input { position: absolute; opacity: 0; pointer-events: none; }
.hc-topic span { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .8rem; border-radius: 999px; background: var(--color-panel); border: 1px solid var(--color-border); color: var(--color-muted); font-weight: 600; font-size: .88rem; cursor: pointer; }
.hc-topic span:hover { color: #fff; }
.hc-topic input:checked + span { background: rgba(245, 197, 66, .12); border-color: var(--color-primary); color: #fff; }
.hc-topic input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.hc-text { min-height: 180px; }
.hc-suggest { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 12px; background: #1B2746; }
.hc-suggest b { display: flex; align-items: center; gap: .4rem; color: #9DB4FF; font-size: .9rem; }
.hc-suggest a { color: #fff; font-weight: 600; font-size: .92rem; }
.tk-view__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.tk-view__head h1 { margin: 0 0 .3rem; font-size: 1.45rem; line-height: 1.2; }
.tk-view__head small { display: inline-flex; align-items: center; gap: .35rem; color: var(--color-dim); }
.tk-thread { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.2rem; }
.tk-msg { display: flex; align-items: flex-start; gap: .7rem; flex-direction: row-reverse; }
.tk-msg__avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--color-surface-alt); font-size: .75rem; font-weight: 800; overflow: hidden; }
.tk-msg__avatar img { width: 100%; height: 100%; }
.tk-msg__bubble { max-width: 82%; padding: .75rem .95rem; border-radius: 16px 4px 16px 16px; background: #22304A; }
.tk-msg--staff { flex-direction: row; }
.tk-msg--staff .tk-msg__bubble { border-radius: 4px 16px 16px 16px; background: var(--color-panel); border: 1px solid rgba(245, 197, 66, .35); }
.tk-msg__who { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .3rem; font-size: .8rem; color: var(--color-dim); }
.tk-msg__who b { color: var(--color-text); font-size: .86rem; }
.tk-msg--staff .tk-msg__who b { color: var(--color-primary); }
.tk-msg__text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.tk-reply { padding: .6rem; border-radius: 16px; background: var(--color-bg); border: 1px solid var(--color-border-strong); }
.tk-reply textarea { min-height: 110px; border: 0; background: transparent; resize: vertical; }
.tk-reply textarea:focus { box-shadow: none; outline: none; }
.tk-reply__bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .4rem; }
@media (min-width: 1000px) {
  .hc-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-read { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 760px) {
  .hc-hero { padding: 1.6rem 1rem 1.3rem; }
  .hc-search { flex-wrap: wrap; padding: .35rem; }
  .hc-search > svg { display: none; }
  .hc-search input { padding: .65rem .6rem; }
  .hc-search .btn { width: 100%; }
  .hc-article, .hc-form, .tk-view { padding: 1.2rem 1.05rem; }
  .tk-msg__bubble { max-width: 88%; }
  .tk { flex-wrap: wrap; }
}
.hc-crumbs svg, .hc-item > svg { transform: rotate(-90deg); }
.hc-form .field { margin-bottom: 1rem; }
.hc-form .btn--big { width: 100%; }

/* FreeCoins: play money in blue, next to ZER gold. */
:root { --color-fc: #3A86FF; --color-fc-hover: #5A9BFF; --color-fc-bg: #16264A; }
.btn--fc { background: var(--color-fc); border-color: var(--color-fc); color: #fff; font-weight: 800; }
.btn--fc:hover { background: var(--color-fc-hover); border-color: var(--color-fc-hover); }
.btn--block { width: 100%; }
.field__addon--text { display: inline-flex; align-items: center; cursor: default; color: var(--color-muted); }
.fc-mark { color: var(--color-fc); font-weight: 800; font-size: .72em; }
.fc-tag { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; padding: .1rem .5rem .1rem .3rem; border-radius: 999px; background: var(--color-fc-bg); color: #CFE0FF; font-size: .75rem; font-weight: 700; }
.fc-tag:hover { text-decoration: none; color: #fff; }
.field__label--bet { display: flex; align-items: center; gap: .5rem; }
.field__row--fc { border-color: var(--color-fc); }

.purse__coin--fc { display: block; flex: none; }
.purse__unit { font-size: .72rem; font-weight: 800; color: #9FC2FF; margin-left: -.2rem; }
.purse__label--fc { color: #9FC2FF; }
.purse__switch { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; margin: 0; padding: .5rem; border-bottom: 1px solid var(--color-border); }
.purse__opt { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .5rem; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--color-muted); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.purse__opt:hover { background: var(--color-surface-alt); color: var(--color-text); }
.purse__opt.is-on { background: var(--color-bg); border-color: var(--color-border-strong); color: var(--color-text); }
.purse__opt.is-on:last-child { border-color: var(--color-fc); }
.purse__opt.is-on:first-child { border-color: var(--color-primary); }
.purse__links { display: grid; grid-template-columns: 1fr 1fr; }
.purse__links .purse__foot + .purse__foot { border-left: 1px solid var(--color-border); }
.purse__add--fc { background: var(--color-fc); color: #fff; }

.strips { display: grid; gap: .75rem; margin: 0 0 1.5rem; }
.strips .invite-strip { margin: 0; }
.invite-strip__chip { width: 46px; height: 46px; flex: none; }
.invite-strip--fc:hover { border-color: var(--color-fc); }
@media (min-width: 900px) { .strips { grid-template-columns: 1fr 1fr; } }

.fcx__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.1rem; margin-bottom: 1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px; }
.fcx__art { width: 132px; height: auto; justify-self: center; }
.fcx__title { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.1rem, 5vw, 3rem); line-height: .95; text-transform: uppercase; }
.fcx__lead { margin: 0 0 1rem; color: var(--color-muted); max-width: 38rem; }
.fcx__purse { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 14px; }
.fcx__balance { display: flex; flex-direction: column; gap: .15rem; }
.fcx__label { font-size: .8rem; font-weight: 700; color: var(--color-dim); }
.fcx__amount { display: flex; align-items: center; gap: .55rem; font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 900; line-height: 1.1; }
.fcx__rank { color: #9FC2FF; font-weight: 700; font-size: .9rem; }
.fcx__do { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.fcx__do form { margin: 0; display: flex; }
.fcx__do .btn { width: 100%; padding: .8rem 1rem; }
.fcx__do--one, .fcx__wide { grid-column: 1 / -1; }
.fcx__do--one { grid-template-columns: 1fr; }
.fcx__on { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; color: var(--color-muted); font-weight: 600; font-size: .85rem; }

.fcx__grid { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.fcx__card { padding: 1.1rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); scroll-margin-top: 90px; }
.fcx__card-title { font-size: 1.1rem; margin-bottom: .75rem; }
.fcx__rate { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-weight: 800; font-size: 1.15rem; }
.fcx__rate span:first-child { color: var(--color-primary); }
.fcx__rate span:last-child { color: #9FC2FF; }
.fcx__rate .icon { transform: rotate(-90deg); color: var(--color-dim); }
.fcx__get { margin: 0 0 .9rem; color: var(--color-muted); }
.fcx__get b { color: var(--color-text); font-size: 1.2rem; }
.fcx__rules { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.fcx__rules li { display: flex; gap: .7rem; align-items: flex-start; color: var(--color-muted); }
.fcx__rules .icon { flex: none; margin-top: .15rem; color: var(--color-fc); }

.fcx__board { list-style: none; margin: 0 0 1.5rem; padding: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.fcx__row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .65rem 1rem; border-bottom: 1px solid var(--color-border); }
.fcx__row:last-child { border-bottom: 0; }
.fcx__row.is-me { background: var(--color-fc-bg); }
.fcx__row--gap { border-top: 1px dashed var(--color-border-strong); }
.fcx__place { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 .35rem; border-radius: 999px; background: var(--color-bg); color: var(--color-muted); font-weight: 800; font-size: .85rem; font-variant-numeric: tabular-nums; }
.fcx__place--gold { background: #F5C542; color: #1A1300; }
.fcx__place--silver { background: #C9D2E0; color: #141B27; }
.fcx__place--bronze { background: #C98A52; color: #1E1006; }
.fcx__who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.fcx__who small { margin-left: .3rem; padding: .05rem .4rem; border-radius: 999px; background: var(--color-fc); color: #fff; font-size: .7rem; }
.fcx__held { font-weight: 800; }
.fcx__held small { color: #9FC2FF; }
.fcx__log { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.fcx__log li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .75rem; padding: .65rem .9rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-small); }
.fcx__log time { grid-column: 1 / -1; color: var(--color-dim); font-size: .8rem; }

@media (min-width: 760px) {
  .fcx__head { grid-template-columns: 200px minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: 1.5rem; }
  .fcx__art { width: 200px; }
  .fcx__purse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); align-items: center; gap: 1.25rem; }
  .fcx__grid { grid-template-columns: 1fr 1fr; }
}


/* Sound switch under every game. */
.sound-toggle { display: inline-flex; align-items: center; gap: .35rem; padding: 0; border: 0; background: none; color: var(--color-muted); font: inherit; font-weight: 600; cursor: pointer; }
.sound-toggle:hover { color: #fff; }
.sound-toggle .snd-x { display: none; }
.sound-toggle.is-off .snd-wave { display: none; }
.sound-toggle.is-off .snd-x { display: inline; }
.btn--cash { background: var(--color-success); border-color: var(--color-success); color: #06210F; font-weight: 800; }
.btn--cash:hover { background: #46E09B; border-color: #46E09B; }

/* Mines: raised enamel tiles on a recessed board, pieces from img/mines. */
.mn-count { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: .5rem; align-items: center; }
.mn-count .segmented__item { padding: .55rem .2rem; }
.mn-count__select { padding-left: .6rem; padding-right: .4rem; }
.mn-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.mn-stats > div { display: flex; flex-direction: column; gap: .1rem; padding: .55rem .65rem; background: var(--color-bg); border-radius: var(--radius-small); }
.mn-stats span { font-size: .72rem; font-weight: 700; color: var(--color-dim); }
.mn-stats b { font-size: 1rem; }
.mn-stats__next { color: var(--color-success); }

.mn { display: flex; flex-direction: column; gap: .9rem; width: 100%; max-width: 520px; margin: 0 auto; }
.mn__ladder { display: flex; gap: .4rem; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 2px; }
.mn__ladder::-webkit-scrollbar { display: none; }
.mn-step { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 68px; padding: .4rem .55rem; border-radius: 10px; background: var(--color-surface); border: 1px solid var(--color-border); }
.mn-step b { font-size: .86rem; font-variant-numeric: tabular-nums; }
.mn-step small { font-size: .66rem; color: var(--color-dim); font-weight: 600; }
.mn-step.is-done { background: var(--color-success-bg); border-color: #23593F; }
.mn-step.is-done b { color: var(--color-success); }
.mn-step.is-next { border-color: var(--color-success); box-shadow: inset 0 0 0 1px var(--color-success); }

.mn__board { position: relative; padding: 12px; border-radius: 18px; background: #0A0F18; box-shadow: inset 0 3px 10px rgba(0,0,0,.55); border: 1px solid #1B2539; }
.mn__board.is-shake { animation: mn-shake .45s cubic-bezier(.36,.07,.19,.97); }
.mn__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1.6vw, 10px); }
.mn-tile { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; background: transparent; cursor: default; }
.mn-tile__cover { position: absolute; inset: 0 0 5px; border-radius: 12px; background: #2A3A58; box-shadow: 0 5px 0 #17223A, inset 0 2px 0 rgba(255,255,255,.09), inset 0 -2px 0 rgba(0,0,0,.25); transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease; }
.mn-tile.is-live { cursor: pointer; }
.mn-tile.is-live .mn-tile__cover { background: #304468; }
.mn-tile.is-live:hover .mn-tile__cover { transform: translateY(-3px); background: #3A5280; box-shadow: 0 8px 0 #17223A, inset 0 2px 0 rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.25); }
.mn-tile.is-live:active .mn-tile__cover { transform: translateY(3px); box-shadow: 0 2px 0 #17223A, inset 0 2px 0 rgba(255,255,255,.12); }
.mn-tile.is-busy .mn-tile__cover { animation: mn-wobble .3s ease-in-out infinite alternate; }
.mn-tile.is-open .mn-tile__cover { inset: 3px 0 0; background: #0F1828; box-shadow: inset 0 3px 8px rgba(0,0,0,.6); }
.mn-tile.is-gem.is-open .mn-tile__cover { background: #10281F; }
.mn-tile.is-hit .mn-tile__cover { background: #4A1621; }
.mn-tile__art { position: absolute; left: 16%; top: 16%; width: 68%; height: 68%; object-fit: contain; animation: mn-pop .38s cubic-bezier(.2,1.6,.4,1) both; pointer-events: none; }
.mn-tile.is-ghost { opacity: .5; }
.mn-tile.is-ghost .mn-tile__art { width: 60%; height: 60%; left: 20%; top: 20%; animation-duration: .25s; }
.mn-tile__boom { position: absolute; left: -45%; top: -45%; width: 190%; height: 190%; object-fit: contain; pointer-events: none; z-index: 3; animation: mn-boom .8s ease-out both; }
.wincard { position: absolute; left: 50%; top: 50%; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 190px; padding: 1rem 1.4rem; border-radius: 16px; background: #0E1320; border: 2px solid var(--color-success); transform: translate(-50%, -50%); animation: wincard-in .4s cubic-bezier(.2,1.5,.4,1) both; }
.wincard__x { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--color-success); }
.wincard__amount { font-weight: 800; color: #fff; }

@keyframes mn-pop { 0% { transform: scale(.2) rotate(-12deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes mn-boom { 0% { transform: scale(.25); opacity: 1; } 55% { opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes mn-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
@keyframes mn-wobble { from { transform: translateY(-2px) rotate(-1.5deg); } to { transform: translateY(-2px) rotate(1.5deg); } }
@keyframes wincard-in { 0% { transform: translate(-50%, -50%) scale(.6); opacity: 0; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .mn__board.is-shake, .mn-tile.is-busy .mn-tile__cover, .mn-tile__art, .wincard, .tw-cell__art, .tw.is-shake, .tw__tower.is-shake { animation: none; }
  .mn-tile__boom { display: none; }
}
.game__links { display: inline-flex; align-items: center; gap: 1rem; }

/* Dragon Towers: stone floors, payout beside each, the egg nest on top. */
.tw-diff { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--color-bg); border-radius: 12px; }
.tw-diff__item { display: flex; flex-direction: column; align-items: center; gap: .05rem; padding: .45rem .1rem; border: 0; border-radius: 9px; background: none; color: var(--color-dim); font: inherit; cursor: pointer; }
.tw-diff__item b { font-size: .78rem; }
.tw-diff__item small { font-size: .62rem; font-weight: 600; white-space: nowrap; }
.tw-diff__item:hover:not(:disabled) { color: #fff; }
.tw-diff__item[aria-pressed="true"] { background: var(--color-border-strong); color: #fff; }
.tw-diff__item:disabled { cursor: default; }
.tw-next { color: #8FD14F; }

.tw { position: relative; width: 100%; max-width: 500px; margin: 0 auto; padding-top: 44px; }
.tw__flag { position: absolute; left: 50%; top: -8px; width: 76px; height: 76px; transform: translateX(-50%); pointer-events: none; z-index: 1; }
.tw__tower { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 16px; background: #0A0F18; border: 1px solid #1B2539; box-shadow: inset 0 3px 10px rgba(0,0,0,.55); }
.tw__tower.is-shake { animation: mn-shake .45s cubic-bezier(.36,.07,.19,.97); }
.tw-row { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 8px; align-items: center; }
.tw-row__x { font-size: .8rem; font-weight: 800; color: var(--color-dim); text-align: right; }
.tw-row.is-current .tw-row__x { color: #8FD14F; }
.tw-row.is-done .tw-row__x { color: var(--color-success); }
.tw-row__cells { display: grid; gap: 6px; }
.tw-row__cells--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tw-row__cells--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tw-row__cells--c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tw-cell { position: relative; height: clamp(38px, 6.2vw, 48px); border: 0; padding: 0; background: none; cursor: default; }
.tw-cell__face { position: absolute; inset: 0 0 4px; border-radius: 9px; background: #223049; box-shadow: 0 4px 0 #141D2F, inset 0 2px 0 rgba(255,255,255,.06); transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease; }
.tw-row.is-current .tw-cell__face { background: #3B5A2C; box-shadow: 0 4px 0 #22351A, inset 0 2px 0 rgba(255,255,255,.12); }
.tw-row.is-current .tw-cell:not(:disabled) { cursor: pointer; }
.tw-row.is-current .tw-cell:not(:disabled):hover .tw-cell__face { transform: translateY(-3px); background: #4C7337; box-shadow: 0 7px 0 #22351A, inset 0 2px 0 rgba(255,255,255,.14); }
.tw-cell.is-busy .tw-cell__face { animation: mn-wobble .3s ease-in-out infinite alternate; }
.tw-cell.is-open .tw-cell__face { inset: 3px 0 0; background: #0F1828; box-shadow: inset 0 3px 8px rgba(0,0,0,.6); }
.tw-cell.is-safe.is-open .tw-cell__face { background: #10281F; }
.tw-cell.is-bad.is-open:not(.is-ghost) .tw-cell__face { background: #4A1621; }
.tw-cell__art { position: absolute; left: 50%; top: 50%; height: 86%; width: auto; aspect-ratio: 1; transform: translate(-50%, -48%); animation: tw-pop .35s cubic-bezier(.2,1.6,.4,1) both; pointer-events: none; }
.tw-cell.is-still .tw-cell__art { animation: none; }
.tw-cell.is-ghost { opacity: .4; }
.tw-cell.is-ghost .tw-cell__art { height: 66%; animation-duration: .2s; }
.tw-cell__art--dragon { height: 104%; }
.tw-cell.is-bad.is-open:not(.is-ghost) .tw-cell__art--dragon { animation: tw-roar .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes tw-roar { 0% { transform: translate(-50%, -10%) scale(.3); opacity: 0; } 60% { transform: translate(-50%, -60%) scale(1.25); opacity: 1; } 100% { transform: translate(-50%, -52%) scale(1.1); } }
@keyframes tw-pop { 0% { transform: translate(-50%, -48%) scale(.2); opacity: 0; } 100% { transform: translate(-50%, -48%) scale(1); opacity: 1; } }
@media (max-width: 899px) {
  .game--mines .game__controls > [data-action], .game--towers .game__controls > [data-action],
  .game--crash .game__controls > [data-action], .game--plinko .game__controls > [data-drop], .game--dice .game__controls > [data-roll] { order: -3; }
  .game--dice .game__controls > .segmented { order: -2; }
  .game--mines .game__controls > .mn-stats, .game--towers .game__controls > .mn-stats { order: -2; }
  .game--mines .game__controls > [data-random], .game--towers .game__controls > [data-random] { order: -1; }
  .game--mines .game__stage, .game--towers .game__stage { padding-bottom: .5rem; }
}
@media (max-width: 560px) { .tw-diff { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tw-row { grid-template-columns: 50px minmax(0, 1fr); } }
/* Crash: night screen, gold line, the rocket on its tip. */
.mn-stats--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cr-quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: .45rem; }
.cr-quick__item { padding: .45rem 0; border: 1px solid var(--color-border-strong); border-radius: 8px; background: var(--color-bg); color: var(--color-muted); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.cr-quick__item:hover { color: #fff; }
.cr-quick__item[aria-pressed="true"] { border-color: var(--color-primary); color: var(--color-primary); }
.cr { display: flex; flex-direction: column; gap: .75rem; width: 100%; }
.cr__history { display: flex; gap: .35rem; overflow: hidden; min-height: 28px; }
.cr-chip { flex: none; padding: .25rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cr-chip--low { background: var(--color-danger-bg); color: var(--color-danger); }
.cr-chip--mid { background: #2A2412; color: var(--color-primary); }
.cr-chip--high { background: var(--color-success-bg); color: var(--color-success); }
.cr__screen { position: relative; height: clamp(260px, 42vw, 360px); border-radius: 16px; background: #080C14; border: 1px solid #1B2539; box-shadow: inset 0 3px 12px rgba(0,0,0,.6); overflow: hidden; }
.cr__svg { position: absolute; inset: 0 0 0 52px; width: calc(100% - 52px); height: 100%; overflow: visible; }
.cr__grid line { stroke: #1A2438; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; }
.cr__area { fill: rgba(245,197,66,.1); stroke: none; }
.cr__line { fill: none; stroke: var(--color-primary); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cr__screen.is-crashed .cr__line { stroke: var(--color-danger); }
.cr__screen.is-crashed .cr__area { fill: rgba(226,74,92,.1); }
.cr__screen.is-cashed .cr__line { stroke: var(--color-success); }
.cr__screen.is-cashed .cr__area { fill: rgba(47,208,138,.1); }
.cr__labels { position: absolute; inset: 0 auto 0 0; width: 52px; }
.cr__labels span { position: absolute; left: 10px; transform: translateY(-50%); font-size: .72rem; font-weight: 700; color: #4C5B78; font-variant-numeric: tabular-nums; }
.cr__rocket, .cr__boom, .cr__cashed { position: absolute; margin-left: 52px; }
.cr__rocket { width: 72px; height: 72px; object-fit: contain; pointer-events: none; z-index: 2; transform-origin: 18% 50%; }
.cr__rocket.is-away { animation: cr-away .9s ease-in forwards; }
.cr__boom { width: 150px; height: 150px; transform: translate(-50%, -50%); pointer-events: none; z-index: 3; opacity: 0; }
.cr__boom.is-on { animation: cr-boom .9s ease-out forwards; }
.cr__cashed { transform: translate(-50%, -150%); padding: .2rem .55rem; border-radius: 999px; background: var(--color-success); color: #06210F; font-size: .78rem; font-weight: 800; white-space: nowrap; z-index: 2; }
.cr__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; z-index: 1; }
.cr__mult { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 9vw, 5.2rem); line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.cr__mult.is-pulse { animation: cr-pulse .35s ease-out; }
.cr__sub { margin-top: .35rem; font-weight: 700; color: var(--color-muted); }
.cr__screen.is-flying .cr__sub { color: var(--color-primary); }
.cr__screen.is-crashed .cr__mult, .cr__screen.is-crashed .cr__sub { color: var(--color-danger); }
.cr__screen.is-cashed .cr__mult, .cr__screen.is-cashed .cr__sub { color: var(--color-success); }
@keyframes cr-away { to { transform: translate(260%, -320%) rotate(-40deg) scale(.6); opacity: 0; } }
@keyframes cr-boom { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; } 60% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; } }
@keyframes cr-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (max-width: 560px) { .cr__rocket { width: 54px; height: 54px; } .cr__svg { inset: 0 0 0 40px; width: calc(100% - 40px); } .cr__labels { width: 40px; } .cr__labels span { left: 6px; } .cr__rocket, .cr__boom, .cr__cashed { margin-left: 40px; } }
@media (prefers-reduced-motion: reduce) { .cr__rocket.is-away, .cr__boom.is-on, .cr__mult.is-pulse { animation: none; } }

/* Plinko: recessed board, cream pegs that light up, buckets that sink. */
.pk { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; width: 100%; max-width: 640px; margin: 0 auto; }
.pk__board { padding: 14px 10px 12px; border-radius: 18px; background: #0A0F18; border: 1px solid #1B2539; box-shadow: inset 0 3px 10px rgba(0,0,0,.55); }
.pk__svg { display: block; width: 100%; height: auto; overflow: visible; }
.pk-peg { fill: #C9D2E0; transform-box: fill-box; transform-origin: center; }
.pk-peg.is-hit { animation: pk-peg .3s ease-out; }
.pk-ball { pointer-events: none; }
.pk__slots { display: grid; gap: 3px; margin-top: 2px; }
.pk-slot { padding: .45rem 0 .4rem; border-radius: 7px; font-size: .7rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; overflow: hidden; white-space: nowrap; transition: transform .1s; }
.pk__slots--dense .pk-slot { font-size: .62rem; padding: .4rem 0 .35rem; letter-spacing: -.02em; }
.pk-slot.is-hit { animation: pk-sink .45s cubic-bezier(.2,1.5,.4,1); }
.pk-lv1 { background: #F5C542; color: #1A1300; box-shadow: 0 4px 0 #A8841F; }
.pk-lv2 { background: #F2A33A; color: #1E1000; box-shadow: 0 4px 0 #A86A1C; }
.pk-lv3 { background: #EE8336; color: #200B00; box-shadow: 0 4px 0 #A5541B; }
.pk-lv4 { background: #E86440; color: #fff; box-shadow: 0 4px 0 #9E3E22; }
.pk-lv5 { background: #E24A5C; color: #fff; box-shadow: 0 4px 0 #9A2737; }
.pk__recent { display: flex; gap: .35rem; min-height: 30px; overflow: hidden; }
.pk-recent { min-width: 52px; padding: .3rem .5rem; border-radius: 8px; font-size: .78rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; animation: pk-in .3s ease-out; }
@keyframes pk-peg { 0% { transform: scale(1); fill: #fff; } 35% { transform: scale(1.9); fill: #FFF5D1; } 100% { transform: scale(1); } }
@keyframes pk-sink { 0% { transform: translateY(0); } 35% { transform: translateY(5px); box-shadow: 0 0 0 transparent; } 100% { transform: translateY(0); } }
@keyframes pk-in { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 560px) { .pk-slot { font-size: .58rem; } .pk__slots--dense .pk-slot { font-size: .5rem; letter-spacing: -.04em; } .pk__board { padding: 10px 4px; } .pk__slots { gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .pk-peg.is-hit, .pk-slot.is-hit, .pk-recent { animation: none; } }

/* Dice: the roll counter with a tumbling die above the slider. */
.dc-hero { display: flex; align-items: center; justify-content: center; gap: clamp(.75rem, 3vw, 1.6rem); padding: .4rem 0 .2rem; }
.dc-hero__die { width: clamp(64px, 12vw, 96px); height: auto; transition: transform .3s cubic-bezier(.2,1.4,.4,1); }
.dc-hero.is-rolling .dc-hero__die { animation: dc-tumble .42s linear infinite; }
.dc-hero.is-win .dc-hero__die { transform: rotate(-8deg) scale(1.04); }
.dc-hero__text { display: flex; flex-direction: column; min-width: 0; }
.dc-hero__roll { font-family: var(--font-display); font-weight: 900; font-size: clamp(3.2rem, 10vw, 5rem); line-height: .95; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.dc-hero.is-rolling .dc-hero__roll { color: var(--color-dim); }
.dc-hero.is-win .dc-hero__roll { color: var(--color-success); animation: dc-land .35s cubic-bezier(.2,1.6,.4,1); }
.dc-hero.is-loss .dc-hero__roll { color: var(--color-danger); animation: dc-land .35s cubic-bezier(.2,1.6,.4,1); }
.dc-hero__sub { font-weight: 700; color: var(--color-muted); }
.dc-hero.is-win .dc-hero__sub { color: var(--color-success); }
.dice-bar { background: #0A0F18; border: 1px solid #1B2539; box-shadow: inset 0 3px 8px rgba(0,0,0,.5); padding: 12px 16px; }
.dice-bar__track { height: 14px; }
.dice-range::-webkit-slider-thumb { width: 30px; height: 36px; border-radius: 8px; background: var(--color-primary); border: 0; box-shadow: 0 4px 0 #A8841F, inset 0 0 0 3px #FFD45E; cursor: grab; }
.dice-range::-moz-range-thumb { width: 28px; height: 34px; border-radius: 8px; background: var(--color-primary); border: 0; box-shadow: 0 4px 0 #A8841F; cursor: grab; }
.dice-marker__value { box-shadow: 0 4px 0 rgba(0,0,0,.35); }
@keyframes dc-tumble { 0% { transform: rotate(0) translateY(0); } 25% { transform: rotate(90deg) translateY(-6px); } 50% { transform: rotate(180deg) translateY(0); } 75% { transform: rotate(270deg) translateY(-6px); } 100% { transform: rotate(360deg) translateY(0); } }
@keyframes dc-land { 0% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .dc-hero.is-rolling .dc-hero__die, .dc-hero__roll { animation: none !important; } }

/* Blackjack: felt table, real cards, chips on the betting spot. */
.bj-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.bj-move { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .75rem .85rem; border: 1px solid var(--color-border-strong); border-radius: 12px; background: var(--color-surface-alt); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 3px 0 #141D2F; }
.bj-move b { font-size: 1.02rem; }
.bj-move small { font-size: .72rem; color: var(--color-muted); font-weight: 600; }
.bj-move:hover:not(:disabled) { border-color: var(--color-primary); }
.bj-move:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #141D2F; }
.bj-move:disabled { opacity: .4; cursor: default; }
.bj-move--hit { background: #173A2C; border-color: #23593F; }
.bj-move--stand { background: #2A2412; border-color: #5A4A1A; }

.bj { position: relative; display: flex; flex-direction: column; align-items: center; gap: .6rem; width: 100%; max-width: 640px; margin: 0 auto; padding: 1.25rem 1rem 1.5rem; border-radius: 26px 26px 120px 120px / 26px 26px 60px 60px; background: #0E4A3A; border: 6px solid #3A2A18; box-shadow: inset 0 0 0 2px #1F6A53, inset 0 6px 24px rgba(0,0,0,.4); min-height: 420px; }
.bj.is-win { border-color: #2FD08A; }
.bj.is-loss { border-color: #6B2230; }
.bj__dealer, .bj-hand { display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.bj__dealer { min-height: 132px; }
.bj__arc { width: min(100%, 380px); height: auto; margin-top: -.2rem; }
.bj__arc text { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: .12em; fill: #F5C542; }
.bj__rule { margin: -.6rem 0 .2rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8FC7B3; }
.bj__hands { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; min-height: 150px; }
.bj-hand { padding: .5rem .6rem; border-radius: 14px; border: 2px solid transparent; }
.bj-hand.is-active { border-color: rgba(245,197,66,.6); background: rgba(0,0,0,.12); }
.bj-hand__meta { display: flex; align-items: center; gap: .35rem; }
.bj-cards { display: flex; min-height: 104px; padding-left: 26px; }
.bj-cards .pc { margin-left: -26px; }
.bj-score { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 26px; padding: 0 .5rem; border-radius: 999px; background: #0B1019; color: #fff; font-weight: 800; font-size: .85rem; font-variant-numeric: tabular-nums; }
.bj-score.is-bust { background: var(--color-danger); }
.bj-tag { padding: .15rem .5rem; border-radius: 999px; background: rgba(0,0,0,.25); color: #CDE7DC; font-size: .72rem; font-weight: 700; }
.bj-badge { padding: .2rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; animation: pk-in .3s ease-out both; }
.bj-badge--win, .bj-badge--blackjack { background: var(--color-success); color: #06210F; }
.bj-badge--blackjack { background: var(--color-primary); color: #1A1300; }
.bj-badge--push { background: #C9D2E0; color: #141B27; }
.bj-badge--lose, .bj-badge--bust { background: var(--color-danger); color: #fff; }
.bj__bet { position: absolute; right: 1.1rem; bottom: 1.1rem; display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.bj__bet img { width: 58px; height: auto; }
.bj__bet span { padding: .1rem .45rem; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; font-size: .72rem; font-weight: 800; }

.pc { position: relative; flex: none; width: 70px; height: 100px; border-radius: 9px; background: #FBF8EF; color: #121826; box-shadow: -2px 3px 0 rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.08); }
.pc--red { color: #C8283E; }
.pc__corner { position: absolute; left: 6px; top: 5px; display: flex; flex-direction: column; align-items: center; line-height: .95; }
.pc__corner b { font-size: 1.05rem; font-weight: 900; }
.pc__corner i { font-style: normal; font-size: .85rem; }
.pc__corner--end { left: auto; top: auto; right: 6px; bottom: 5px; transform: rotate(180deg); }
.pc__mid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.1rem; }
.pc__mid--face { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; }
.pc__mid--ace { font-size: 2.8rem; }
.pc--back { background: #1C2A48; border: 3px solid #FBF8EF; display: flex; align-items: center; justify-content: center; }
.pc--back::before { content: ""; position: absolute; inset: 5px; border-radius: 5px; border: 1.5px solid #F5C542; }
.pc--back img { width: 34px; height: 34px; }
.pc.is-new { animation: pc-deal .38s cubic-bezier(.2,.9,.3,1) both; }
.pc.is-flip { animation: pc-flip .45s ease-out both; }
@keyframes pc-deal { 0% { transform: translate(180px, -140px) rotate(25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes pc-flip { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
@media (min-width: 900px) { .bj-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .bj { min-height: 380px; padding: 1rem .5rem 1.25rem; border-width: 5px; }
  .pc { width: 58px; height: 84px; }
  .pc__mid { font-size: 1.7rem; } .pc__mid--face { font-size: 2.1rem; }
  .bj-cards { min-height: 88px; padding-left: 22px; } .bj-cards .pc { margin-left: -22px; }
  .bj__dealer { min-height: 116px; }
  .bj__bet { right: .7rem; bottom: .7rem; } .bj__bet img { width: 44px; }
}
@media (prefers-reduced-motion: reduce) { .pc.is-new, .pc.is-flip, .bj-badge { animation: none; } }

/* Chicken Road: asphalt lanes, manhole covers with the payout, the hen hops. */
.tw-diff--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rd-buttons { display: grid; gap: .5rem; }
.rd-next { color: #E8763A; }
.rd { width: 100%; overflow-x: auto; overflow-y: hidden; border-radius: 16px; border: 1px solid #1B2539; background: #0A0F18; scrollbar-width: thin; }
.rd__road { position: relative; display: flex; height: clamp(250px, 34vw, 300px); width: max-content; }
.rd-side { flex: none; width: 96px; background: #3A4256; border-right: 6px solid #C9D2E0; box-shadow: inset 0 0 0 2px rgba(0,0,0,.15); }
.rd-side--end { width: 70px; border-right: 0; border-left: 6px solid #C9D2E0; background: #2F7A4F; }
.rd-lane { position: relative; flex: none; width: 96px; background: #262B38; border-right: 3px dashed rgba(232,236,243,.28); overflow: hidden; }
.rd-lane:last-of-type { border-right: 0; }
.rd-lane.is-done { background: #23302C; }
.rd-lane.is-hit { background: #3A1C24; }
.rd-cover { position: absolute; left: 50%; top: 58%; width: 74px; height: 74px; transform: translate(-50%, -50%); }
.rd-cover__img { width: 100%; height: 100%; }
.rd-cover b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .86rem; font-weight: 900; text-shadow: 0 1px 0 #0B1019; }
.rd-lane.is-done .rd-cover b { color: var(--color-success); }
.rd-lane.is-here .rd-cover { outline: 3px solid var(--color-primary); outline-offset: 2px; border-radius: 50%; }
.rd-hen { position: absolute; top: 58%; width: 82px; height: 82px; transform: translate(-50%, -78%); transition: left .32s cubic-bezier(.3,.7,.3,1); z-index: 3; pointer-events: none; }
.rd-hen.is-hop { animation: rd-hop .34s ease-out; }
.rd-hen.is-flat { transform: translate(-50%, -30%) scaleY(.25) scaleX(1.3); transition: transform .12s; opacity: .8; }
.rd-truck { position: absolute; left: 50%; top: 0; width: 86px; height: 86px; transform: translate(-50%, -110%); z-index: 4; pointer-events: none; animation: rd-drive 1.3s linear forwards; }
.rd-truck.is-fast { animation-duration: .55s; }
.rd-boom { position: absolute; left: 50%; top: 58%; width: 150px; height: 150px; transform: translate(-50%, -60%); z-index: 5; pointer-events: none; animation: rd-burst .9s ease-out forwards; }
@keyframes rd-burst { 0% { transform: translate(-50%, -60%) scale(.3); opacity: 1; } 60% { opacity: 1; } 100% { transform: translate(-50%, -60%) scale(1.2); opacity: 0; } }
@keyframes rd-hop { 0% { transform: translate(-50%, -78%); } 45% { transform: translate(-50%, -120%); } 100% { transform: translate(-50%, -78%); } }
@keyframes rd-drive { from { top: 0; transform: translate(-50%, -110%); } to { top: 100%; transform: translate(-50%, 10%); } }
@media (max-width: 560px) { .rd-lane, .rd-side { width: 84px; } .rd-cover { width: 64px; height: 64px; } .rd-hen { width: 70px; height: 70px; } .rd-truck { width: 74px; height: 74px; } }
@media (prefers-reduced-motion: reduce) { .rd-hen, .rd-hen.is-hop { transition: none; animation: none; } }

/* Snake Eyes: 3D dice in a tray, the snake, the sums 2–12. */
.se { display: flex; flex-direction: column; gap: 1rem; width: 100%; max-width: 560px; margin: 0 auto; }
.se__tray { position: relative; display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2.4rem 1rem 1.4rem; border-radius: 20px; background: #0E3B2E; border: 5px solid #3A2A18; box-shadow: inset 0 0 0 2px #1E5C47, inset 0 6px 20px rgba(0,0,0,.4); }
.se__snake { position: absolute; left: 10px; bottom: 6px; width: 92px; height: auto; transition: transform .4s cubic-bezier(.2,1.6,.4,1); transform-origin: 50% 100%; }
.se__snake.is-up { transform: scale(1.25) rotate(-6deg); animation: se-hiss .5s ease-in-out 2; }
.se__dice { display: flex; gap: clamp(24px, 6vw, 44px); justify-content: center; perspective: 700px; }
.cube-wrap { width: var(--cube, 84px); height: var(--cube, 84px); }
.cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.cube__face { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 4px; padding: 13px; border-radius: 16px; background: #FBF8EF; box-shadow: inset 0 0 0 2px rgba(0,0,0,.06), inset 0 -5px 0 rgba(0,0,0,.08); backface-visibility: hidden; }
.cube__face--1 { transform: rotateY(0deg) translateZ(calc(var(--cube, 84px) / 2)); }
.cube__face--6 { transform: rotateY(180deg) translateZ(calc(var(--cube, 84px) / 2)); }
.cube__face--2 { transform: rotateY(90deg) translateZ(calc(var(--cube, 84px) / 2)); }
.cube__face--5 { transform: rotateY(-90deg) translateZ(calc(var(--cube, 84px) / 2)); }
.cube__face--3 { transform: rotateX(90deg) translateZ(calc(var(--cube, 84px) / 2)); }
.cube__face--4 { transform: rotateX(-90deg) translateZ(calc(var(--cube, 84px) / 2)); }
.cube__pip { border-radius: 50%; visibility: hidden; background: #121826; }
.cube__pip.is-on { visibility: visible; }
.cube__face--1 .cube__pip.is-on { background: #C8283E; transform: scale(1.35); }
.se__sum { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 8vw, 3.6rem); line-height: 1; color: #fff; min-height: 1em; }
.se__sum.is-rolling { color: #8FC7B3; }
.se__sum.is-win { color: var(--color-success); animation: se-land .35s cubic-bezier(.2,1.6,.4,1); }
.se__sum.is-loss { color: #FF8A98; animation: se-land .35s cubic-bezier(.2,1.6,.4,1); }
.se__sums { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; align-items: end; }
.se-sum { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.se-sum b { font-size: .78rem; color: var(--color-dim); font-variant-numeric: tabular-nums; }
.se-sum__bar { width: 100%; border-radius: 5px 5px 2px 2px; background: #223049; }
.se-sum__bar--1 { height: 10px; } .se-sum__bar--2 { height: 18px; } .se-sum__bar--3 { height: 26px; } .se-sum__bar--4 { height: 34px; } .se-sum__bar--5 { height: 42px; } .se-sum__bar--6 { height: 50px; }
.se-sum.is-win .se-sum__bar { background: #2FB37A; }
.se-sum.is-win b { color: #7FE0B4; }
.se-sum.is-rolled .se-sum__bar { background: #fff; }
.se-sum.is-rolled b { color: #fff; }
.se-sum.is-rolled.is-win .se-sum__bar { background: var(--color-success); box-shadow: 0 0 0 2px #fff; }
.se__sums.is-doubles .se-sum__bar { background: #223049; }
@keyframes se-hiss { 0%, 100% { transform: scale(1.25) rotate(-6deg); } 50% { transform: scale(1.3) rotate(6deg); } }
@keyframes se-land { 0% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (max-width: 560px) { .se__tray { --cube: 70px; padding-top: 2rem; } .se__snake { width: 64px; } .cube__face { padding: 10px; gap: 3px; border-radius: 13px; } }
@media (prefers-reduced-motion: reduce) { .se__snake.is-up, .se__sum.is-win, .se__sum.is-loss { animation: none; } }

/* Lotto: the drum, the tray of six, the number board. */
.paytable__row.is-hit { background: var(--color-success-bg); color: var(--color-success); box-shadow: inset 0 0 0 1px var(--color-success); }
.lt { display: flex; flex-direction: column; gap: 1rem; width: 100%; max-width: 560px; margin: 0 auto; }
.lt__draw { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; gap: .4rem .9rem; align-items: center; padding: 1rem; border-radius: 18px; background: #0A0F18; border: 1px solid #1B2539; box-shadow: inset 0 3px 10px rgba(0,0,0,.55); }
.lt__drum { grid-row: 1 / span 2; width: 96px; height: auto; transform-origin: 50% 60%; }
.lt__drum.is-turning { animation: lt-turn .5s ease-in-out infinite alternate; }
.lt__tray { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.lt-slot { aspect-ratio: 1; border-radius: 50%; border: 2px dashed #2A3A58; display: flex; align-items: center; justify-content: center; }
.lt__count { display: flex; align-items: baseline; gap: .4rem; color: var(--color-muted); font-weight: 700; font-size: .85rem; }
.lt__count b { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; color: #fff; }
.lt-ball { position: relative; display: block; width: 112%; height: 112%; }
.lt-ball img { width: 100%; height: 100%; }
.lt-ball b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #0E1320; font-weight: 900; font-size: clamp(.8rem, 2.4vw, 1.05rem); }
.lt-ball.is-in { animation: lt-in .45s cubic-bezier(.2,1.5,.4,1) both; }
.balls { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; width: 100%; }
.ball { aspect-ratio: 1; border-radius: 50%; border: 0; background: #223049; color: #C9D2E0; font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; font-variant-numeric: tabular-nums; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); transition: transform .1s; }
.ball:hover { transform: translateY(-2px); background: #2A3A58; }
.ball--picked { background: #FFF5D1; color: #0E1320; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), 0 0 0 2px var(--color-primary); }
.ball--hit { background: var(--color-primary); color: #1A1300; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 0 0 2px #fff; }
.ball--drawn { box-shadow: inset 0 0 0 2px #B98CFF; color: #fff; }
@keyframes lt-turn { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@keyframes lt-in { 0% { transform: translate(-160%, -40%) scale(.4) rotate(-200deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (max-width: 560px) { .balls { grid-template-columns: repeat(6, minmax(0, 1fr)); } .lt__draw { grid-template-columns: 64px minmax(0, 1fr); padding: .75rem; } .lt__drum { width: 64px; } }
@media (prefers-reduced-motion: reduce) { .lt__drum.is-turning, .lt-ball.is-in { animation: none; } }

/* Phones: the table first, the main button right under it. */
@media (max-width: 899px) {
  .game--blackjack .game__stage, .game--chicken-road .game__stage, .game--snake-eyes .game__stage, .game--lotto .game__stage { order: -1; }
  .game--blackjack .game__controls > [data-deal], .game--blackjack .game__controls > [data-moves],
  .game--chicken-road .game__controls > .rd-buttons, .game--snake-eyes .game__controls > [data-roll], .game--lotto .game__controls > [data-draw] { order: -3; }
  .game--chicken-road .game__controls > .mn-stats, .game--lotto .game__controls > .actions { order: -2; }
}

/* Ad slot (casino/_ad.php + assets/js/ads.js): below the content, quiet, its
   height kept free before the banner arrives so nothing below it jumps. */
.ad { container-type: inline-size; display: grid; justify-items: center; gap: .35rem; margin: 2rem 0; }
.ad__label { color: var(--color-dim); font-size: .72rem; letter-spacing: .02em; }
.ad__slot { width: 100%; display: flex; justify-content: center; min-height: 250px; }
.ad__slot iframe { display: block; border: 0; border-radius: 4px; max-width: 100%; color-scheme: light; }
@container (min-width: 468px) { .ad__slot { min-height: 60px; } }
@container (min-width: 728px) { .ad__slot { min-height: 90px; } }
.ad__slot--728 { min-height: 90px; }
.ad__slot--468 { min-height: 60px; }
.ad__slot--300 { min-height: 250px; }
.hc .ad { margin-top: 2.5rem; }
