/* Components — carried over from mockup A «Tischkante»; new ones drawn in its language. */

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn--gold { background: linear-gradient(180deg, var(--color-brand-hi), var(--color-brand)); color: var(--color-brand-ink); box-shadow: var(--shadow-gold); }
.btn--gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); translate: -120% 0; transition: translate .7s var(--ease); }
.btn--gold:hover::after { translate: 120% 0; }
.btn--ghost { border: 1px solid var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(213, 180, 107, .35); }
.btn--danger { background: var(--color-danger); color: #fff; }
.btn--danger:hover { background: color-mix(in srgb, var(--color-danger) 85%, white); }
.btn--lg { height: 54px; padding: 0 28px; font-size: 15px; }
.btn--block { width: 100%; }
.linklike { color: var(--color-brand-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(236, 211, 154, .4); font-size: inherit; }
.linklike:hover { text-decoration-color: currentColor; }

.round { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(12, 15, 19, .6); border: 1px solid var(--line); backdrop-filter: blur(6px); transition: background var(--dur-fast), transform var(--dur-base) var(--ease), border-color var(--dur-fast); }
.round:hover { background: var(--surface-3); transform: scale(1.06); border-color: rgba(213, 180, 107, .4); }
.round:disabled { opacity: .35; cursor: default; transform: none; }
.round--sm { width: 42px; height: 42px; }

/* ---------- signature: the betting spot ---------- */
.spot {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 1px solid var(--color-brand); color: var(--color-brand);
  font: italic 20px/1 var(--ff-display); position: relative;
}
.spot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed rgba(213, 180, 107, .35); transition: rotate 1.2s var(--ease); }
*:hover > .spot::after { rotate: 90deg; }
.spot--sm { width: 36px; height: 36px; font-size: 15px; font-style: normal; font-family: var(--ff-body); font-weight: 600; }
.spot--lg { width: 84px; height: 84px; font: 400 30px/1 var(--ff-display); }
.spot--xl { width: 150px; height: 150px; font: 400 34px/1 var(--ff-display); letter-spacing: .06em; }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--color-brand); }
.kicker .icon { width: 15px; height: 15px; }
.kicker--lines::before, .kicker--lines::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }

.badge { position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(12, 15, 19, .74); backdrop-filter: blur(8px); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.badge .icon { width: 13px; height: 13px; color: var(--color-brand); }
.badge--gold { color: var(--color-brand-hi); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(227, 93, 91, .6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(227, 93, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 93, 91, 0); } }

.chip { display: inline-block; font-size: 11.5px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text-2); }

/* ---------- tabs, chips, segmented ---------- */
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line-soft); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 9px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: background var(--dur-base) var(--ease), color var(--dur-fast); }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--color-brand); color: var(--color-brand-ink); }
.tabs--line { width: auto; border-radius: 0; background: none; border: 0; border-bottom: 1px solid var(--line-soft); padding: 0 20px; gap: 18px; }
.tabs--line button { border-radius: 0; padding: 14px 2px; position: relative; }
.tabs--line button[aria-selected="true"] { background: none; color: var(--text); }
.tabs--line button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--color-brand); border-radius: 2px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-soft); font-size: 14px; color: var(--text-2); transition: all var(--dur-base) var(--ease); }
.chips button:hover { color: var(--text); border-color: var(--line); }
.chips button[aria-pressed="true"] { background: var(--text); color: var(--surface-1); border-color: var(--text); }
.chip__n { font-size: 11.5px; opacity: .9; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: var(--r-pill); background: var(--surface-0); border: 1px solid var(--line-soft); margin-bottom: 20px; }
.seg button { height: 38px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--text-2); transition: background var(--dur-base) var(--ease), color var(--dur-fast); }
.seg button[aria-selected="true"] { background: var(--surface-3); color: var(--color-brand); }

/* ---------- sections ---------- */
.sec { position: relative; padding: var(--sec-y) var(--sec-x); max-width: calc(var(--container) + 2 * var(--sec-x)); margin: 0 auto; }
.sec__head { display: flex; align-items: flex-end; gap: 22px; margin-bottom: 34px; flex-wrap: wrap; }
.sec__head .spot { align-self: flex-start; margin-top: 4px; }
.sec__titles { flex: 1; min-width: min(100%, 280px); }
.sec__head h2 { font: 400 var(--fs-h2)/1.05 var(--ff-display); letter-spacing: -.01em; }
.sec__head h2 em { color: var(--color-brand); }
.sec__head p { color: var(--text-2); max-width: 58ch; margin-top: 8px; }
.sec__head .more { display: inline-flex; align-items: center; gap: 6px; color: var(--color-brand); font-weight: 600; font-size: 14px; padding: 8px 0; }
.sec__head .more .icon { width: 18px; transition: translate var(--dur-base) var(--ease); }
.sec__head .more:hover .icon { translate: 4px 0; }

/* full-bleed band with a photo behind */
.sec--band { max-width: none; isolation: isolate; overflow: hidden; }
.sec--band > :not(.band__bg) { max-width: var(--container); margin-left: auto; margin-right: auto; }
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg picture, .band__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__bg img { opacity: .32; filter: saturate(.75); }
.sec--band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--surface-1), rgba(16, 19, 24, .55) 30%, rgba(16, 19, 24, .6) 70%, var(--surface-1)); }
.sec--band::after { content: ""; position: absolute; left: 50%; top: 0; width: 140%; height: 120px; translate: -50% -60%; border-radius: 50%; border-bottom: 1px solid rgba(213, 180, 107, .35); pointer-events: none; }

.shelf-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.shelf-arrows { display: flex; gap: 8px; }
.count { color: var(--text-3); font-size: 14px; font-variant-numeric: tabular-nums; }

/* horizontal shelf (slider) */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; overscroll-behavior-x: contain; }
.shelf > * { scroll-snap-align: start; }
.shelf--sm { grid-auto-columns: 220px; }

/* ---------- game card (mockup .game / .tile) ---------- */
.game { position: relative; display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-soft); transition: transform var(--dur-slow) var(--ease), border-color var(--dur-slow), box-shadow var(--dur-slow); }
.game:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow-2); }
.game__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-3); }
.game__img img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.game:hover .game__img img { scale: 1.06; }
.game__img::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(0deg, rgba(26, 31, 39, .7), transparent); pointer-events: none; }
.game__body { display: flex; align-items: center; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.game__text { min-width: 0; flex: 1; }
.game h3 { font: 600 15px/1.3 var(--ff-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.game__text p { color: var(--text-3); font-size: 12.5px; margin-bottom: 6px; }
.play { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--color-brand); color: var(--color-brand-ink); transition: transform var(--dur-slow) var(--ease-spring), background var(--dur-fast); }
.play .icon { width: 16px; height: 16px; fill: currentColor; }
.play::before { content: ""; position: absolute; inset: -4px; }
.game:hover .play, .play:hover { transform: scale(1.1) rotate(-8deg); background: var(--color-brand-hi); }
.fav { position: absolute; right: 12px; top: 12px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(12, 15, 19, .62); backdrop-filter: blur(8px); color: var(--text-2); transition: color var(--dur-fast), transform var(--dur-base) var(--ease-spring), background var(--dur-fast); }
.fav .icon { width: 17px; height: 17px; }
.fav:hover { color: var(--text); background: rgba(12, 15, 19, .85); }
.fav[aria-pressed="true"] { color: var(--color-brand); }
.fav[aria-pressed="true"] .icon { fill: currentColor; }
.fav.is-pop { animation: pop .45s var(--ease-spring); }
@keyframes pop { 40% { transform: scale(1.35); } }

/* ---------- note, empty, info ---------- */
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: var(--r-m); background: rgba(26, 31, 39, .7); border: 1px solid var(--line-soft); color: var(--text-2); font-size: var(--fs-small); }
.note .icon { color: var(--color-brand); width: 18px; height: 18px; margin-top: 2px; }
.empty { display: flex; gap: 10px; align-items: center; color: var(--text-3); font-size: var(--fs-small); padding: 14px 0; }
.empty .icon { color: var(--color-brand); }
.info-card, .status-card { padding: 20px; border-radius: var(--r-l); background: var(--surface-2); border: 1px solid var(--line-soft); margin-bottom: 16px; }
.info-card h3 { font: 400 24px/1.1 var(--ff-display); margin-bottom: 8px; }
.info-card p { color: var(--text-2); font-size: var(--fs-small); margin-bottom: 14px; }
.status-card .kicker { margin-bottom: 10px; }
.status-card__state { display: flex; align-items: center; gap: 10px; font: 400 26px/1.1 var(--ff-display); margin-bottom: 12px; }
.status-card__state .icon { color: var(--color-brand); width: 22px; height: 22px; }
.status-card__state.is-ok .icon { color: var(--color-success); }
.status-card .muted { font-size: var(--fs-small); margin-top: 6px; }
.meter { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--color-brand-lo), var(--color-brand)); transform-origin: left; animation: grow-x 1s var(--ease) both; }
@keyframes grow-x { from { transform: scaleX(0); } }
.state-banner { padding: 14px 16px; border-radius: var(--r-m); background: rgba(201, 83, 79, .12); border: 1px solid rgba(201, 83, 79, .45); color: #f3c7c5; font-size: var(--fs-small); margin-bottom: 16px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > label { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r-m); background: var(--surface-0);
  border: 1px solid var(--line-soft); color: var(--text); font-size: 15px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { height: auto; min-height: 150px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6f7680; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(245, 245, 245, .16); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(213, 180, 107, .18); }
.field input:disabled, .field select:disabled { opacity: .5; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-error); }
.field__error { color: var(--color-error); font-size: 13px; }
.field__hint { color: var(--text-3); font-size: 12.5px; }
.field__select { position: relative; }
.field .field__select select { appearance: none; padding-right: 40px; cursor: pointer; }
.field__select .icon { position: absolute; right: 14px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--text-3); width: 16px; }
.field__pw { position: relative; }
.field .field__pw input { padding-right: 48px; }
.field__eye { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.field__eye:hover { color: var(--text); background: var(--surface-2); }
.pw-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pw-meter i { height: 3px; border-radius: 3px; background: var(--surface-3); transition: background var(--dur-base); }
.pw-meter[data-score="1"] i:nth-child(1) { background: var(--color-error); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: var(--color-brand); }
.pw-meter[data-score="3"] i { background: var(--color-success); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); margin: 6px 0 4px; cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1px solid rgba(245, 245, 245, .25); background: var(--surface-0); display: grid; place-items: center; margin-top: 1px; cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast); }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--color-brand-ink); border-top: 0; border-right: 0; rotate: -45deg; translate: 0 -1px; opacity: 0; }
.check input:checked { background: var(--color-brand); border-color: var(--color-brand); }
.check input:checked::after { opacity: 1; }
.form__error { padding: 10px 14px; border-radius: var(--r-m); background: rgba(255, 138, 128, .1); border: 1px solid rgba(255, 138, 128, .35); color: var(--color-error); font-size: 13.5px; margin-bottom: 12px; }
.form__ok { padding: 10px 14px; border-radius: var(--r-m); background: rgba(127, 209, 168, .1); border: 1px solid rgba(127, 209, 168, .35); color: var(--color-success); font-size: 13.5px; margin-bottom: 12px; }
.chips-radio { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips-radio label { position: relative; cursor: pointer; }
.chips-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips-radio span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-soft); font-size: 14px; color: var(--text-2); transition: all var(--dur-fast); }
.chips-radio input:checked + span { background: var(--color-brand); color: var(--color-brand-ink); border-color: var(--color-brand); }
.chips-radio input:focus-visible + span { box-shadow: var(--focus-ring); }
.toggle { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); cursor: pointer; }
.toggle > span { flex: 1; }
.toggle b { display: block; font-size: 14px; }
.toggle small { color: var(--text-3); font-size: 12.5px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { width: 44px; height: 26px; border-radius: 26px; background: var(--surface-3); position: relative; flex: none; transition: background var(--dur-base); }
.toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: translate var(--dur-base) var(--ease-spring); }
.toggle input:checked + i { background: var(--color-brand); }
.toggle input:checked + i::after { translate: 18px 0; background: var(--color-brand-ink); }
.toggle input:disabled + i { opacity: .6; }
.toggle input:focus-visible + i { box-shadow: var(--focus-ring); }
.done { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-m); background: rgba(127, 209, 168, .08); border: 1px solid rgba(127, 209, 168, .3); color: var(--text); }
.done .icon { color: var(--color-success); }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; place-items: center; padding: 16px; background: var(--overlay-scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--dur-base) var(--ease); }
.overlay.is-open { opacity: 1; }
.overlay__panel { position: relative; transform: translateY(16px) scale(.98); transition: transform var(--dur-slow) var(--ease); }
.overlay.is-open .overlay__panel { transform: none; }
.overlay__close { position: absolute; right: 14px; top: 14px; z-index: 3; }
.dialog { width: min(100%, 880px); max-height: calc(100dvh - 32px); overflow: auto; display: grid; grid-template-columns: 300px 1fr; border-radius: var(--r-l); background: var(--surface-1); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.dialog__art { position: relative; overflow: hidden; }
.dialog__art picture, .dialog__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dialog__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 19, 24, .1), rgba(16, 19, 24, .85)); }
.dialog__art .spot { position: absolute; left: 24px; bottom: 24px; z-index: 1; width: 64px; height: 64px; font: 400 22px/1 var(--ff-display); background: rgba(12, 15, 19, .5); }
.dialog__body { padding: 36px 32px 28px; min-width: 0; }
.dialog__title { font: 400 34px/1.05 var(--ff-display); margin-bottom: 8px; padding-right: 40px; }
.dialog__lead { color: var(--text-2); font-size: var(--fs-small); margin-bottom: 22px; }
.dialog__alt { margin-top: 16px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.note { line-height: 1.5; }
.dialog .note { margin: 12px 0 16px; }
.dialog--game { grid-template-columns: 1fr 1fr; }
.game-dialog__media { position: relative; min-height: 320px; overflow: hidden; }
.game-dialog__media picture, .game-dialog__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-dialog__meta { display: flex; gap: 28px; margin: 14px 0; }
.game-dialog__meta dt { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.game-dialog__meta dd { margin: 2px 0 0; font-weight: 600; }
.dialog--game p { color: var(--text-2); font-size: var(--fs-small); }
.game-dialog__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.fav-btn[aria-pressed="true"] { color: var(--color-brand); border-color: rgba(213, 180, 107, .5); }
.fav-btn[aria-pressed="true"] .icon { fill: currentColor; }

/* drawer (account) */
.overlay--drawer { place-items: stretch end; padding: 0; }
.drawer { width: min(100vw, 480px); height: 100dvh; display: flex; flex-direction: column; background: var(--surface-1); border-left: 1px solid var(--line); box-shadow: var(--shadow-2); transform: translateX(40px); }
.drawer__head { position: relative; display: flex; align-items: center; gap: 14px; padding: 24px 64px 20px 20px; }
.drawer__head h2 { font: 400 26px/1.1 var(--ff-display); }
.drawer__head p { color: var(--text-3); font-size: 13px; overflow-wrap: anywhere; }
.drawer__body { flex: 1; overflow: auto; padding: 20px; }
.drawer .tabs--line { overflow-x: auto; }
.limit-card { padding: 18px; border-radius: var(--r-l); background: var(--surface-2); border: 1px solid var(--line-soft); margin: 14px 0; }
.limit-card h3 { display: flex; align-items: center; gap: 10px; font: 600 16px/1.3 var(--ff-body); margin-bottom: 4px; }
.limit-card h3 .icon { color: var(--color-brand); }
.limit-card--warn { border-color: rgba(201, 83, 79, .35); }
.limit-card__now { color: var(--text); font-size: var(--fs-small); margin-bottom: 4px; }
.limit-card__pending { color: var(--color-brand-hi); font-size: 13px; margin-bottom: 8px; }
.limit-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.limit-card .muted { font-size: 13.5px; }
.fav-list { display: grid; gap: 8px; margin-top: 12px; }
.fav-list li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-m); background: var(--surface-2); }
.fav-list img { width: 52px; height: 52px; border-radius: var(--r-s); object-fit: cover; }
.fav-list b { display: block; font-size: 14px; }
.fav-list small { color: var(--text-3); }
.fav-list .actions { margin-left: auto; display: flex; gap: 6px; }

/* sheet (mobile "More") */
.overlay--sheet { place-items: end stretch; padding: 0; }
.sheet { width: 100%; max-height: 86dvh; overflow: auto; padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--surface-1); border-top: 1px solid var(--line); transform: translateY(40px); }
.sheet__grip { width: 44px; height: 4px; border-radius: 4px; background: var(--surface-3); margin: 0 auto 12px; }
.sheet__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 30px; }
.sheet__nav .rail__group { grid-column: 1 / -1; opacity: 1; padding: 12px 4px 4px; }
.sheet__nav a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r-m); background: var(--surface-2); font-size: 14px; color: var(--text); }
.sheet__nav a .icon { color: var(--color-brand); }
.sheet__legal { background: transparent !important; border: 1px solid var(--line-soft); }

/* age gate */
.overlay--gate { z-index: var(--z-gate); background: rgba(8, 10, 13, .9); }
.gate { position: relative; width: min(100%, 560px); padding: 48px 36px 36px; text-align: center; border-radius: var(--r-l); background: var(--surface-1); border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden; isolation: isolate; }
.gate__felt { position: absolute; left: 50%; top: 62%; width: 900px; height: 900px; translate: -50% 0; z-index: -1; border-radius: 50%; background: radial-gradient(circle at 50% 30%, var(--felt-hi), var(--felt) 40%, #0a201b 70%); box-shadow: inset 0 0 0 8px #2a1f12, inset 0 0 0 9px var(--color-brand-lo); opacity: .55; }
.gate .spot { margin: 0 auto 20px; background: var(--surface-1); }
.gate__title { font: 400 clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem)/1.05 var(--ff-display); margin-bottom: 12px; }
.gate p { color: var(--text-2); }
.gate__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 18px; }
.gate__note { font-size: 12.5px; color: var(--text-3); }
.gate__help { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 14px; color: var(--text); }
.gate__help .icon { color: var(--color-brand); }

/* cookie banner */
.cookie { position: fixed; left: calc(var(--rail) + 20px); right: 20px; bottom: 20px; z-index: var(--z-cookie); display: flex; justify-content: center; pointer-events: none; transition: left var(--dur-slow) var(--ease); }
.rail-open .cookie { left: calc(var(--rail-open) + 20px); }
.cookie__panel { pointer-events: auto; width: min(100%, 980px); padding: 20px 22px; border-radius: var(--r-l); background: rgba(26, 31, 39, .96); backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow-2); display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; animation: toast-in .5s var(--ease); }
.cookie__main { display: flex; gap: 14px; align-items: flex-start; }
.cookie__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--color-brand); flex: none; }
.cookie__title { font: 400 22px/1.1 var(--ff-display); margin-bottom: 4px; }
.cookie p { color: var(--text-2); font-size: 13.5px; }
.cookie a { color: var(--color-brand-hi); text-decoration: underline; text-underline-offset: 3px; }
.cookie__settings { grid-column: 1 / -1; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie .btn { height: 40px; }

/* data table (company) */
.datatable { display: grid; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: rgba(16, 19, 24, .78); backdrop-filter: blur(8px); }
.datatable > div { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line-soft); transition: background var(--dur-fast); }
.datatable > div:first-child { border-top: 0; }
.datatable > div:hover { background: rgba(213, 180, 107, .05); }
.datatable dt { color: var(--text-3); font-size: 13.5px; }
.datatable dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* accordion (terms, faq) */
.acc { border-top: 1px solid var(--line-soft); }
.acc__btn { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 4px; text-align: left; font: 500 17px/1.35 var(--ff-body); color: var(--text); transition: color var(--dur-fast); }
.acc__btn:hover { color: var(--color-brand-hi); }
.acc__btn .acc__icon { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: rotate var(--dur-slow) var(--ease), background var(--dur-fast); }
.acc__btn[aria-expanded="true"] .acc__icon { rotate: 45deg; background: var(--color-brand); color: var(--color-brand-ink); }
.acc__btn .acc__icon .icon { width: 16px; height: 16px; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-slow) var(--ease); }
.acc__panel.is-open { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s var(--dur-slow); }
.acc__panel.is-open > div { visibility: visible; transition-delay: 0s; }
.acc__inner { padding: 0 4px 22px; color: var(--text-2); }
.acc__inner p + p, .acc__inner ul { margin-top: .8em; }
.acc__inner ul { padding-left: 1.2em; }

/* marquee */
.marquee { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line-soft); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); margin-bottom: 32px; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { display: flex; align-items: center; gap: 56px; font: 400 28px/1 var(--ff-display); color: var(--text-3); white-space: nowrap; }
.marquee span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--color-brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .shelf { grid-auto-columns: 72%; }
  .dialog, .dialog--game { grid-template-columns: 1fr; }
  .dialog__art { display: none; }
  .game-dialog__media { min-height: 200px; aspect-ratio: 16 / 9; }
  .dialog__body { padding: 28px 20px 22px; }
  .dialog__title { font-size: 30px; }
  .overlay:not(.overlay--gate):not(.overlay--sheet):not(.overlay--drawer) { place-items: end stretch; padding: 0; }
  .overlay:not(.overlay--gate) .dialog { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; }
  .cookie, .rail-open .cookie { left: 12px; right: 12px; bottom: calc(var(--tabbar) + 12px); }
  .cookie__panel { grid-template-columns: 1fr; padding: 16px; }
  .cookie__actions { justify-content: stretch; }
  .cookie__actions .btn { flex: 1 1 auto; }
  .datatable > div { grid-template-columns: 1fr; gap: 2px; }
  .sec__head { gap: 14px; }
  .sec__head .spot { width: 38px; height: 38px; font-size: 17px; }
}
@media (max-width: 520px) {
  .grid-2 { grid-template-columns: 1fr; }
  .gate { padding: 36px 20px 24px; }
  .gate__actions .btn { width: 100%; }
}

/* <picture> inside a fixed-ratio frame fills the frame (img alone would, picture is a block without height) */
.game__img > picture, .tile__img > picture, .jrow__img > picture, .rg-teaser__media > picture,
.guest-card__stack picture, .lcard > picture, .hero__bg > picture, .media-frame > picture { position: absolute; inset: 0; }
.jrow__img { position: relative; }
.jrow__img > picture { inset: 4px; border-radius: 50%; overflow: hidden; }
