/* components.css — reusable UI components. All colors/sizes via tokens. */

/* ============================================================ Button system (Stake-style)
   Pill by default; small/technical buttons get a slightly-rounded radius. One class API:
   .btn + variant (--primary/secondary/ghost/danger/vip) + size (--sm default-md --lg --icon). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
  height: var(--btn-h-md);                 /* 44px — interface standard */
  padding: 0 var(--space-5);               /* 24px horizontal */
  border-radius: var(--btn-radius);        /* pill */
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  transition: background var(--transition-base),
              border-color var(--transition-base),
              color var(--transition-base),
              transform var(--transition-base),
              box-shadow var(--transition-base),
              filter var(--transition-base);
}
/* keyboard accessibility — visible focus ring */
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.btn:disabled,
.btn[disabled],
.btn.is-loading { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
/* `.btn { display: inline-flex }` above wins over the UA `[hidden] { display: none }`,
   so a hidden button stayed visible. Restore the default. */
.btn[hidden] { display: none; }

/* Анимация кнопок: lift на hover, тактильное нажатие на active.
   ВАЖНО: анимируются только transform/box-shadow/filter — цвет текста НЕ трогаем,
   поэтому содержимое кнопки остаётся видимым в hover и active (color: transparent
   используется ТОЛЬКО в состоянии .is-loading, где вместо текста крутится спиннер). */
.btn--primary:hover:not(:disabled),
.btn--secondary:hover:not(:disabled),
.btn--danger:hover:not(:disabled),
.btn--warning:hover:not(:disabled),
.bet-primary--cashout:hover:not(:disabled),
.btn--vip:hover:not(:disabled) { transform: translateY(-2px); }
/* press: возврат вниз + лёгкое сжатие — быстрый отклик (fast), текст виден */
.btn--primary:active:not(:disabled),
.btn--secondary:active:not(:disabled),
.btn--danger:active:not(:disabled),
.btn--warning:active:not(:disabled),
.bet-primary--cashout:active:not(:disabled),
.btn--vip:active:not(:disabled),
.btn--ghost:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
  transition-duration: 90ms;
}
/* ghost/secondary тоже слегка приподнимаются для единообразия отклика */
.btn--ghost:hover:not(:disabled) { transform: translateY(-1px); }

/* ---- variants ---- */
.btn--primary {
  /* ярко-зелёный градиент сверху-вниз + лёгкий верхний хайлайт. БЕЗ свечения. */
  background: linear-gradient(180deg, #00FF6B, #00B24B);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--primary:hover:not(:disabled) {
  filter: brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);  /* без glow — только подсветка верхней грани */
}
/* Log in (header) — тёмная кнопка из макета: фон #28283D, серый текст+иконка,
   тонкий верхний хайлайт. Радиус наследуется (10px). */
.btn--login {
  background: #28283D;
  color: #A0A0B8;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.btn--login:hover:not(:disabled) {
  background: #303049;
  color: #FFFFFF;
  transform: translateY(-2px);
}
.btn--login:active:not(:disabled) { transform: translateY(0) scale(0.97); transition-duration: 90ms; }
.btn--secondary {
  background: transparent;
  color: var(--btn-secondary-text);         /* rgba white 0.7 — not pure white */
  border-color: var(--btn-secondary-border);
}
.btn--secondary:hover:not(:disabled) {
  background: var(--btn-secondary-hover-bg);
  border-color: var(--btn-secondary-border-hover);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
}
.btn--ghost:hover:not(:disabled) {
  color: var(--color-text-primary);
  background: var(--btn-ghost-hover-bg);
}
.btn--danger {
  background: var(--color-danger);
  color: var(--color-on-danger);
}
.btn--danger:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 0 20px var(--color-danger-glow);
}
/* warning — amber actions (Cash Out, Cancel withdrawal, Pause auto-bet …).
   .bet-primary--cashout is a legacy alias kept so existing markup keeps working. */
.btn--warning,
.bet-primary--cashout {
  background: var(--color-warning);
  color: var(--color-on-warning);
}
.btn--warning:hover:not(:disabled),
.bet-primary--cashout:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 0 20px var(--color-warning-glow);
}
.btn--vip {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-2));
  color: #2A1A00;
  font-weight: 700;
}
.btn--vip:hover:not(:disabled) {
  filter: brightness(1.05);
  box-shadow: 0 0 22px var(--color-gold-glow);
}

/* ---- sizes ---- */
.btn--lg { height: var(--btn-h-lg); padding: 0 var(--space-6); font-size: var(--text-base); }
.btn--sm { height: var(--btn-h-sm); padding: 0 var(--space-4); font-size: var(--text-xs); border-radius: var(--btn-radius-technical); }
.btn--icon { width: 40px; height: 40px; padding: 0; border-radius: var(--btn-radius-technical); flex-shrink: 0; }
.btn--block { width: 100%; }

/* ---- pulsing glow (active promo offers) ---- */
.btn--pulse:not(:disabled) { animation: btn-pulse 1.8s ease-in-out infinite; }
.btn--pulse:hover:not(:disabled) { animation: none; }
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--color-accent-glow-strong); }
  50% { box-shadow: 0 0 18px 2px var(--color-accent-glow-strong); }
}

/* ---- loading spinner (replaces the label) ---- */
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: var(--radius-full);
  animation: spin 0.6s linear infinite;
  color: var(--color-on-accent);
}
.btn--secondary.is-loading::after,
.btn--ghost.is-loading::after { color: var(--color-text-primary); }
.btn--danger.is-loading::after { color: var(--color-on-danger); }
.btn--warning.is-loading::after,
.bet-primary--cashout.is-loading::after { color: var(--color-on-warning); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================ Input */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input {
  width: 100%;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.input::placeholder { color: var(--color-text-tertiary); }
.input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.input:disabled { opacity: 0.5; cursor: not-allowed; }

/* icons inside input */
.input-wrap--icon-left .input { padding-left: var(--space-8); }
.input-wrap--icon-right .input { padding-right: var(--space-8); }
.input-wrap .input-icon {
  position: absolute;
  color: var(--color-text-tertiary);
  display: flex;
  pointer-events: none;
}
.input-wrap .input-icon--left { left: var(--space-3); }
.input-wrap .input-icon--right { right: var(--space-3); pointer-events: auto; cursor: pointer; }

/* states */
.field.is-error .input { border-color: var(--color-danger); }
.field.is-success .input { border-color: var(--color-success); }
.field__hint { font-size: var(--text-xs); color: var(--color-text-tertiary); }
.field.is-error .field__hint { color: var(--color-danger); }
.field.is-success .field__hint { color: var(--color-success); }

/* checkbox */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
}
.checkbox input { width: 18px; height: 18px; accent-color: var(--color-accent); margin-top: 1px; flex-shrink: 0; }

/* ============================================================ Card */
.card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.card--elevated { background: var(--color-bg-elevated); box-shadow: var(--shadow-md); }
.card__title { font-size: var(--text-lg); margin-bottom: var(--space-4); }

/* ============================================================ Game card (3:4) */
.game-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.game-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-hover);
  z-index: 2;
}
.game-card__thumb {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  background: var(--color-bg-elevated);
}
.game-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 14, 20, 0.65);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.game-card:hover .game-card__overlay { opacity: 1; }
.game-card__meta {
  padding: var(--space-2) var(--space-3) var(--space-3);
}
.game-card__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card__provider {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}
.game-card__badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 1;
}
/* Originals: gradient art panel with a bespoke icon instead of an image thumb */
.game-card__art {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.game-card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.18), transparent 62%);
}
.game-card__icon {
  position: relative;
  width: 44%;
  max-width: 88px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.28));
}
.game-card__icon svg { width: 100%; height: auto; display: block; }
/* Originals: full-bleed poster illustration variant (keeps the 3:4 preview area) */
.game-card__art--poster::after { display: none; }
.game-card__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================ Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-bg-elevated);
  color: var(--color-text-secondary);
  line-height: 1.4;
}
.badge--hot { background: var(--color-danger); color: var(--color-on-danger); }
.badge--new { background: var(--color-accent); color: var(--color-on-accent); }
.badge--exclusive { background: var(--color-warning); color: #2A1A00; }
.badge--success { background: var(--color-accent-glow); color: var(--color-success); }
.badge--info { background: rgba(77, 159, 255, 0.15); color: var(--color-info); }
.badge--danger { background: rgba(255, 77, 106, 0.15); color: var(--color-danger); }
.badge--warning { background: rgba(255, 176, 32, 0.15); color: var(--color-warning); }

/* ============================================================ Tabs */
.tabs {
  display: flex;
  gap: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.tab {
  position: relative;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  background: none;
  transition: color var(--transition-fast);
}
.tab:hover { color: var(--color-text-primary); }
.tab.is-active { color: var(--color-text-primary); }
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

/* segmented control (pill-style tabs, e.g. Manual/Auto) */
.segmented {
  display: inline-flex;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1);
  gap: var(--space-1);
}
.segmented__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  min-height: 32px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
}
.segmented__item:hover:not(.is-active) { color: var(--color-text-primary); }
.segmented__item:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.segmented__item.is-active {
  background: var(--color-bg-elevated);
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

/* ============================================================ Progress bar */
.progress {
  width: 100%;
  height: 8px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* ============================================================ Dropdown menu */
.dropdown { position: relative; }
.dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + var(--space-2));
  min-width: 200px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: 50;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.dropdown.is-open .dropdown__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-align: left;
}
.dropdown__item:hover { background: var(--color-bg-tertiary); color: var(--color-text-primary); }
.dropdown__divider { height: 1px; background: var(--color-border); margin: var(--space-2) 0; }

/* ============================================================ Tooltip */
.tooltip { position: relative; }
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + var(--space-2));
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 60;
}
.tooltip:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================ Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  z-index: 1000;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.modal-overlay.is-open { opacity: 1; }
.modal {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  transform: scale(0.95);
  transition: transform var(--transition-base);
}
.modal-overlay.is-open .modal { transform: scale(1); }
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.modal__title { font-size: var(--text-lg); }
/* modal close uses the shared icon button: .btn.btn--icon.btn--ghost */

/* ============================================================ Toast */
.toast-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 2000;
  max-width: min(360px, calc(100vw - var(--space-8)));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-info);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg);
  /* NOTE: --transition-base already includes a cubic-bezier timing function,
     so do NOT append another (e.g. ease-out) — two timing functions make the
     whole `animation` shorthand invalid and it silently does nothing. */
  animation: toast-in var(--transition-base);
}
.toast.is-leaving { animation: toast-out var(--transition-base) forwards; }
.toast--success { border-left-color: var(--color-success); }
.toast--warning { border-left-color: var(--color-warning); }
.toast--danger { border-left-color: var(--color-danger); }
.toast--info { border-left-color: var(--color-info); }
.toast__icon { flex-shrink: 0; display: flex; margin-top: 1px; }
.toast--success .toast__icon { color: var(--color-success); }
.toast--warning .toast__icon { color: var(--color-warning); }
.toast--danger .toast__icon { color: var(--color-danger); }
.toast--info .toast__icon { color: var(--color-info); }
.toast__body { flex: 1; }
.toast__title { font-size: var(--text-sm); font-weight: 600; }
.toast__msg { font-size: var(--text-xs); color: var(--color-text-secondary); }
.toast__close { color: var(--color-text-tertiary); display: flex; }
.toast__close:hover { color: var(--color-text-primary); }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateX(24px); }
}

/* ============================================================ Carousel (rows of cards) */
.carousel { position: relative; }
.carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.carousel__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 700;
}
.carousel__viewall { font-size: var(--text-sm); color: var(--color-accent); font-weight: 600; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-bottom: var(--space-2);
  scrollbar-width: thin;
  cursor: grab;
}
.carousel__track > * { scroll-snap-align: start; }
/* prevent the OS image/link drag-ghost so a press-drag scrolls instead */
.carousel__track img, .carousel__track a { -webkit-user-drag: none; user-drag: none; }
/* while dragging: instant scroll, no snap fighting the drag, no text selection */
.carousel__track.is-grabbing {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}
.carousel__track.is-grabbing a { pointer-events: none; }
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity var(--transition-fast), background var(--transition-fast);
  z-index: 3;
}
.carousel:hover .carousel__nav { opacity: 1; }
.carousel__nav:hover { background: var(--color-accent); color: var(--color-on-accent); }
.carousel__nav--prev { left: calc(-1 * var(--space-3)); }
.carousel__nav--next { right: calc(-1 * var(--space-3)); }
@media (max-width: 768px) {
  .carousel__nav { display: none; }
}

/* ============================================================ Data table */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.data-table th {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-tertiary);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.data-table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.data-table tbody tr:hover td { background: var(--color-bg-tertiary); }
.data-table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--color-text-primary); }
.data-table .empty-row td { text-align: center; color: var(--color-text-tertiary); padding: var(--space-6); }

/* ============================================================ Key-value list */
.kv-list { display: flex; flex-direction: column; }
.kv-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  border-bottom: 1px dashed var(--color-border);
}
.kv-row:last-child { border-bottom: none; }
.kv-row__key { color: var(--color-text-tertiary); }
.kv-row__val { color: var(--color-text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============================================================ Copy field */
.copy-field {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3);
}
.copy-field input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.copy-field input:focus { outline: none; }

/* ============================================================ Coin / payment chip */
.coin-badge {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-xs);
  color: #fff;
  flex-shrink: 0;
}
.coin-badge--lg { width: 40px; height: 40px; font-size: var(--text-sm); }

/* ============================================================ Pay method tabs (compact segmented control: Crypto / Card) */
.pay-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 44px;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.pay-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.pay-tab + .pay-tab { border-left: 1px solid var(--color-border); }
.pay-tab:hover:not(.is-selected) { color: var(--color-text-primary); }
.pay-tab.is-selected { background: var(--color-accent); color: var(--color-on-accent); }

/* ============================================================ Provider grid (fiat partners) */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-2);
}
.provider-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-tertiary);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition-fast);
}
.provider-card:hover { border-color: var(--color-border-hover); }
.provider-card.is-selected { border-color: var(--color-accent); }
.provider-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 6px; right: 8px;
  color: var(--color-accent);
  font-weight: 700;
  font-size: var(--text-sm);
}
.provider-card__name { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-primary); }

/* ============================================================ Searchable coin select (withdraw) */
.coin-select { position: relative; }
.coin-select__trigger {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-tertiary);
  cursor: pointer;
  text-align: left;
}
.coin-select__trigger:hover { border-color: var(--color-border-hover); }
.coin-select__trigger .chev { margin-left: auto; color: var(--color-text-tertiary); transition: transform var(--transition-fast); }
.coin-select.is-open .coin-select__trigger .chev { transform: rotate(180deg); }
.coin-select__panel {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + var(--space-2));
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 40;
  padding: var(--space-2);
  max-height: 300px;
  overflow-y: auto;
  display: none;
}
.coin-select.is-open .coin-select__panel { display: block; }
.coin-select__search { margin-bottom: var(--space-2); }
.coin-select__option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
}
.coin-select__option:hover,
.coin-select__option.is-selected { background: var(--color-bg-tertiary); }
.coin-select__option .name { font-weight: 600; font-size: var(--text-sm); color: var(--color-text-primary); }
.coin-select__option .ticker { font-size: var(--text-xs); color: var(--color-text-tertiary); }

/* amount input + Max button row */
.amount-row { display: flex; gap: var(--space-2); align-items: stretch; }
.amount-row .amount-field { flex: 1; }
.amount-row .amount-field input { font-size: var(--text-xl); }
.amount-row .btn { align-self: stretch; }

/* ============================================================ Selectable option list / grid */
.select-list { display: flex; flex-direction: column; gap: var(--space-2); }
.select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-2); }
.select-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-tertiary);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-fast);
}
.select-option:hover { border-color: var(--color-border-hover); }
.select-option.is-selected { border-color: var(--color-accent); }
.select-option__name { flex: 1; font-weight: 600; font-size: var(--text-sm); color: var(--color-text-primary); }
.select-option__sub { font-size: var(--text-xs); color: var(--color-text-tertiary); }

/* ============================================================ Big amount input */
.amount-field { position: relative; }
.amount-field input {
  width: 100%;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-2xl);
  padding: var(--space-4);
  padding-right: var(--space-8);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
}
.amount-field input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-glow); }
.amount-field__suffix {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-xl);
  color: var(--color-text-tertiary);
}

/* ============================================================ QR box */
.qr-box {
  width: 200px; height: 200px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.qr-box svg { width: 100%; height: 100%; display: block; }

/* ============================================================ Note / callout */
.note {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}
.note strong { color: var(--color-text-primary); }
.note--accent { border-color: var(--color-accent); }
.note--accent strong { color: var(--color-accent); }
.note--warn { border-color: var(--color-warning); }
.note--warn strong { color: var(--color-warning); }
.note--danger { border-color: var(--color-danger); }
.note--danger strong { color: var(--color-danger); }

/* ============================================================ Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--color-text-primary); }
.breadcrumb__sep { opacity: 0.5; }
.breadcrumb__current { color: var(--color-text-primary); }

/* ============================================================ Game frame + info */
.game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 178, 75,0.10), transparent 60%),
    var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-frame iframe { width: 100%; height: 100%; border: 0; }
.game-frame__placeholder { text-align: center; color: var(--color-text-tertiary); display: flex; flex-direction: column; gap: var(--space-3); align-items: center; }
.game-actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }
.game-info {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.game-info__title { margin-right: auto; }
.game-info__title h1 { font-size: var(--text-xl); }
.game-info__title .provider { font-size: var(--text-sm); color: var(--color-text-tertiary); }
.game-info__stat { display: flex; flex-direction: column; }
.game-info__stat .label { font-size: var(--text-xs); color: var(--color-text-tertiary); }
.game-info__stat .value { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============================================================ Chat (global / game sidebar) */
.chat {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.chat__head .online { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-text-tertiary); font-weight: 500; }
.chat__head .online .pulse { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--color-accent); }
.chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.chat-msg { display: flex; gap: var(--space-2); font-size: var(--text-sm); }
.chat-msg__body { min-width: 0; }
.chat-msg__user { font-weight: 600; color: var(--color-accent); font-size: var(--text-xs); }
.chat-msg__text { color: var(--color-text-secondary); overflow-wrap: anywhere; }
.chat-msg--system .chat-msg__text { color: var(--color-warning); }
.chat__input {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}
.chat__input .input { padding: var(--space-2) var(--space-3); }

/* ============================================================ VIP track */
.vip-track {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}
.vip-track__node.is-current { color: var(--color-accent); font-weight: 700; }
.vip-track__node.is-done { color: var(--color-text-secondary); }

/* ============================================================ Originals: Bet Panel */
.bet-panel {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.bet-panel .segmented { width: 100%; }
.bet-panel .segmented__item { flex: 1; text-align: center; }
.bet-amount-row { display: flex; gap: var(--space-2); }
.bet-amount-row .input { flex: 1; min-width: 0; }
.bet-currency { width: 90px; flex-shrink: 0; }
.bet-quickrow { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
.bet-quickrow .btn { padding: 0; }
.bet-auto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.bet-foot { display: flex; align-items: center; gap: var(--space-2); }
.bet-foot .btn { flex: 1; }
.bet-foot .btn--icon { flex: 0 0 auto; }   /* sound toggle stays square, doesn't stretch */
/* the panel's dominant action (Place Bet / Cash Out) — sized via .btn--lg.btn--block */
.bet-primary { width: 100%; }
/* Cash Out styling now lives in the .btn--warning variant (see Button system);
   .bet-primary--cashout is grouped there as a legacy alias. */

/* Crash mini-history (squares colored by result) */
.crash-history { display: flex; flex-wrap: wrap; gap: 4px; }
.crash-history__cell {
  min-width: 30px;
  padding: 3px 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}
.crash-history__cell--red { background: rgba(255, 77, 106, 0.16); color: var(--color-danger); }
.crash-history__cell--gray { background: var(--color-bg-elevated); color: var(--color-text-secondary); }
.crash-history__cell--green { background: var(--color-accent-glow); color: var(--color-accent); }
.crash-history__cell--gold { background: rgba(255, 176, 32, 0.18); color: var(--color-warning); }

/* ============================================================ Originals: Crash stage */
.crash-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 50% 90%, rgba(0, 178, 75, 0.10), transparent 55%),
    var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.crash-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.crash-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}
.crash-multiplier {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 12vw, 120px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent);
  text-shadow: 0 0 30px var(--color-accent-glow);
  transition: color var(--transition-fast);
}
.crash-multiplier.is-pulsing { animation: crash-pulse 0.5s ease-in-out infinite; }
.crash-multiplier.is-crashed { color: var(--color-danger); text-shadow: none; }
@keyframes crash-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.crash-substatus { margin-top: var(--space-3); font-size: var(--text-lg); font-weight: 600; color: var(--color-text-secondary); }
.crash-profit { margin-top: var(--space-2); font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--color-accent); font-weight: 600; }
.crash-countdown-label { font-size: var(--text-base); color: var(--color-text-tertiary); }
.crash-countdown { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 9vw, 84px); color: var(--color-text-primary); font-variant-numeric: tabular-nums; }
.crash-stage.is-shaking { animation: crash-shake 0.4s ease-in-out; }
@keyframes crash-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-7px, 3px); }
  40% { transform: translate(7px, -3px); }
  60% { transform: translate(-5px, 2px); }
  80% { transform: translate(5px, -2px); }
}
.crash-splash {
  position: absolute;
  left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  animation: crash-splash 0.9s ease-out forwards;
}
@keyframes crash-splash {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translate(-50%, -160%) scale(1.3); opacity: 0; }
}

/* ============================================================ Originals: Plinko stage */
.plinko-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 178, 75, 0.08), transparent 55%),
    var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.plinko-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ============================================================ Originals: Recent Bets */
.recent-bets {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-top: var(--space-4);
}
.recent-bets .data-table td .user-cell { display: flex; align-items: center; gap: var(--space-2); }

/* ============================================================ Responsible Gambling */
.rg-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.card--danger { border-color: rgba(255, 77, 106, 0.45); }
.rg-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.rg-pending { font-size: var(--text-xs); color: var(--color-warning); margin-top: var(--space-3); }
.rg-resources { display: flex; flex-direction: column; gap: var(--space-2); }
.rg-resource {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-tertiary);
}
.rg-resource__name { font-weight: 600; color: var(--color-text-primary); }
.rg-resource__sub { font-size: var(--text-xs); color: var(--color-text-tertiary); }

/* PGSI-9 self-assessment */
.pgsi-item { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.pgsi-item:last-child { border-bottom: none; }
.pgsi-q { font-size: var(--text-sm); font-weight: 500; margin-bottom: var(--space-2); }
.pgsi-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.pgsi-opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 11px; line-height: 1.2; text-align: center;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.pgsi-opt:hover, .pgsi-opt.is-selected { border-color: var(--color-accent); color: var(--color-text-primary); }
.pgsi-opt input { accent-color: var(--color-accent); }
.rg-result { text-align: center; }
.rg-result__score { font-family: var(--font-display); font-size: var(--text-3xl); font-variant-numeric: tabular-nums; }

@media (max-width: 768px) { .rg-row { grid-template-columns: 1fr; } }

/* ============================================================ VIP */
.vip-badge { width: 40px; height: 40px; border-radius: var(--radius-full); display: inline-flex; flex-shrink: 0; }
.vip-badge svg { width: 100%; height: 100%; display: block; }
.vip-badge--lg { width: 76px; height: 76px; }
.vip-status { display: flex; gap: var(--space-5); align-items: center; flex-wrap: wrap; }
.vip-status__main { flex: 1; min-width: 240px; }
.vip-status__perks { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

.vip-levels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 248px;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scroll-snap-type: x proximity;
  align-items: start;   /* cards align at the top and grow downward (different heights are fine) */
}
.vip-level {
  position: relative;
  scroll-snap-align: start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-secondary);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.vip-level.is-achieved { opacity: 0.6; }
/* current tier — prominent accent frame + corner pill */
.vip-level.is-current {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), 0 8px 24px var(--color-accent-glow);
  opacity: 1;
}
.vip-level__you {
  position: absolute; top: var(--space-3); right: var(--space-3);
  font-size: var(--text-xs); font-weight: 700;
  color: var(--color-on-accent); background: var(--color-accent);
  border-radius: var(--radius-full); padding: 2px 10px;
}

/* category label — small, restrained, slightly differentiated per group */
.vip-level__cat {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--radius-sm);
  background: var(--color-bg-elevated); color: var(--color-text-tertiary);
}
.vip-level__cat--exclusive { background: var(--color-accent-glow); color: var(--color-accent); }
.vip-level__cat--mythic { background: rgba(139, 56, 245, 0.16); color: #b46cff; }

.vip-level__head { display: flex; align-items: center; gap: var(--space-2); }
.vip-level__name { font-weight: 700; font-size: var(--text-lg); }

/* goal: big wagered number + caption */
.vip-level__wagered { font-size: var(--text-2xl); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.vip-level__goal-label { font-size: var(--text-xs); color: var(--color-text-tertiary); margin-top: 2px; }

.vip-level__divider { height: 1px; background: var(--color-border); margin: 2px 0; }

/* body: params (Rakeback / Tier-up bonus / Max bet) + cumulative perks as one continuous,
   left-aligned list. Label and value sit next to each other, same size and weight. */
.vip-level__params { display: flex; flex-direction: column; gap: 7px; }
.vip-level__param { font-size: var(--text-sm); color: var(--color-text-primary); }
.vip-level__param-label { color: var(--color-text-primary); }
.vip-level__param-value { color: var(--color-text-primary); font-variant-numeric: tabular-nums; }
.vip-level__perk { font-size: var(--text-sm); color: var(--color-text-primary); }

.vip-level__lock { position: absolute; top: var(--space-3); right: var(--space-3); color: var(--color-text-tertiary); display: flex; }

/* progression scale — 7 dots, one per tier, connected by a line */
.vip-scale { display: flex; align-items: flex-start; margin: var(--space-4) 0 var(--space-3); }
.vip-scale__step { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; position: relative; }
.vip-scale__step::before {
  content: ""; position: absolute; top: 8px; right: 50%; width: 100%; height: 2px;
  background: var(--color-border); z-index: 0;
}
.vip-scale__step:first-child::before { display: none; }
.vip-scale__step.is-done::before, .vip-scale__step.is-current::before { background: var(--color-accent); }
.vip-scale__dot {
  width: 16px; height: 16px; border-radius: var(--radius-full);
  background: var(--color-bg-elevated); border: 2px solid var(--color-border);
  position: relative; z-index: 1;
}
.vip-scale__step.is-done .vip-scale__dot { background: var(--color-accent); border-color: var(--color-accent); }
.vip-scale__step.is-current .vip-scale__dot { background: var(--color-accent); border-color: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-glow); }
.vip-scale__name { font-size: 11px; color: var(--color-text-tertiary); margin-top: 7px; text-align: center; white-space: nowrap; }
.vip-scale__step.is-current .vip-scale__name { color: var(--color-accent); font-weight: 700; }
@media (max-width: 640px) {
  .vip-scale__name { display: none; }   /* dots only on narrow screens */
}

/* ============================================================ Promo */
.welcome-hero {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--color-banner-to), var(--color-banner-from));
  box-shadow: var(--shadow-banner);
  color: #fff;
  display: flex; flex-direction: column; gap: var(--space-3);
}
.welcome-hero h2 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; color: #fff; max-width: 60%; }
.welcome-hero p { color: rgba(255,255,255,0.9); }
/* Claim Now — CTA баннера: pill (полное скругление), как в макете */
.welcome-hero .btn { align-self: flex-start; border-radius: var(--radius-full); }
@media (max-width: 768px) { .welcome-hero h2 { max-width: 100%; } }

.tournament-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-tertiary);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.tournament-row:hover { border-color: var(--color-accent); }
.tournament-row__meta { display: flex; flex-direction: column; gap: 2px; }
.tournament-row__name { font-weight: 600; }
.tournament-row__sub { font-size: var(--text-xs); color: var(--color-text-tertiary); }
.tournament-row__prize { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--color-accent); font-weight: 600; text-align: right; }

/* FAQ (accordion) */
.faq details { border-bottom: 1px solid var(--color-border); }
.faq details:last-child { border-bottom: none; }
.faq summary { cursor: pointer; font-weight: 600; font-size: var(--text-sm); padding: var(--space-3) 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--color-text-tertiary); font-size: var(--text-lg); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 var(--space-3); font-size: var(--text-sm); }

/* ============================================================ Originals: generic stat boxes */
.game-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.game-stats--2 { grid-template-columns: repeat(2, 1fr); }
.game-stat { background: var(--color-bg-tertiary); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); }
.game-stat .label { font-size: var(--text-xs); color: var(--color-text-tertiary); }
.game-stat .value { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .game-stats { grid-template-columns: 1fr 1fr; } }

/* shake for any game stage (Crash uses .crash-stage.is-shaking; this covers the rest) */
.is-shaking { animation: crash-shake 0.4s ease-in-out; }

/* ============================================================ Originals: Dice */
.dice-board { position: relative; background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); }
.dice-number { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 8vw, 80px); font-variant-numeric: tabular-nums; color: var(--color-text-secondary); transition: color var(--transition-fast); }
.dice-number.is-win { color: var(--color-accent); }
.dice-number.is-loss { color: var(--color-danger); }
.dice-track-wrap { position: relative; margin: var(--space-8) 0 var(--space-3); }
.dice-track { height: 14px; border-radius: var(--radius-full); }
.dice-range { position: absolute; inset: -8px 0; width: 100%; appearance: none; -webkit-appearance: none; background: transparent; margin: 0; }
.dice-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: var(--radius-full); background: #fff; border: 3px solid var(--color-accent); cursor: pointer; box-shadow: var(--shadow-md); }
.dice-range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--color-accent); cursor: pointer; }
.dice-marker { position: absolute; top: -32px; transform: translateX(-50%); background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 2px 8px; font-family: var(--font-mono); font-size: var(--text-xs); font-variant-numeric: tabular-nums; transition: left 0.12s ease-out; opacity: 0; }
.dice-marker.show { opacity: 1; }
.dice-scale { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--color-text-tertiary); }

/* ============================================================ Originals: Limbo */
.limbo-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 340px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 178, 75,0.06), transparent 60%), var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.limbo-number { font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 13vw, 132px); font-variant-numeric: tabular-nums; color: var(--color-text-secondary); transition: color var(--transition-fast); }
.limbo-number.is-win { color: var(--color-accent); text-shadow: 0 0 30px var(--color-accent-glow); }
.limbo-number.is-loss { color: var(--color-danger); }

/* ============================================================ Originals: Coinflip */
.coin-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-5); min-height: 340px; padding: var(--space-6); background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.coin { width: 140px; height: 140px; position: relative; transform-style: preserve-3d; transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.coin__face { position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); backface-visibility: hidden; box-shadow: var(--shadow-lg); }
.coin__face--heads { background: linear-gradient(135deg, #FFD700, #b8860b); color: #3a2a00; }
.coin__face--tails { background: linear-gradient(135deg, #D8D8D8, #8a8a8a); color: #222; transform: rotateY(180deg); }
.coin-sides { display: flex; gap: var(--space-3); width: 100%; max-width: 360px; }
.coin-side { flex: 1; padding: var(--space-3) var(--space-4); border: 2px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg-tertiary); font-weight: 700; cursor: pointer; color: var(--color-text-secondary); }
.coin-side.is-selected { border-color: var(--color-accent); color: var(--color-accent); }
.coin-streak { font-size: var(--text-sm); color: var(--color-text-secondary); font-variant-numeric: tabular-nums; min-height: 1.2em; }

/* ============================================================ Originals: Mines */
.mines-board { position: relative; background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); }
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); max-width: 460px; margin: 0 auto; }
.mines-tile {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-tertiary); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  color: var(--color-text-tertiary); font-size: clamp(20px, 4vw, 30px);
  cursor: not-allowed; transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-user-select: none; user-select: none;
}
.mines-tile svg { width: 1em; height: 1em; display: block; }
.mines-board.is-playing .mines-tile:not(.is-revealed) { cursor: pointer; }
.mines-board.is-playing .mines-tile:not(.is-revealed):hover { transform: translateY(-2px); border-color: var(--color-border-hover); background: var(--color-bg-elevated); }
.mines-tile.is-safe { background: rgba(0, 178, 75, 0.14); border-color: var(--color-accent); color: var(--color-accent); animation: tile-pop 0.22s ease-out; }
.mines-tile.is-mine { background: rgba(255, 75, 92, 0.18); border-color: var(--color-danger); color: var(--color-danger); animation: tile-pop 0.22s ease-out; }
.mines-tile.is-mine-faint { background: rgba(255, 75, 92, 0.07); border-color: var(--color-border); color: rgba(255, 75, 92, 0.45); }
.mines-tile.is-safe-faint { background: rgba(0, 178, 75, 0.05); border-color: var(--color-border); color: rgba(0, 178, 75, 0.4); }
@keyframes tile-pop { 0% { transform: scale(0.7); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
.mines-cashout-banner { text-align: center; font-size: var(--text-sm); color: var(--color-text-secondary); font-variant-numeric: tabular-nums; min-height: 1.4em; margin-bottom: var(--space-4); }
.mines-cashout-banner strong { color: var(--color-accent); }

/* ============================================================ Originals: Tower */
.tower-board { position: relative; background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); }
.tower-rows { display: flex; flex-direction: column; gap: var(--space-2); max-width: 460px; margin: 0 auto; }
.tower-row { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1); border-radius: var(--radius-md); transition: background var(--transition-fast); }
.tower-row.is-active { background: rgba(0, 178, 75, 0.06); box-shadow: inset 0 0 0 1px var(--color-accent); }
.tower-row.is-locked { opacity: 0.4; }
.tower-row__mult { width: 64px; flex-shrink: 0; text-align: right; font-family: var(--font-mono); font-size: var(--text-xs); font-variant-numeric: tabular-nums; color: var(--color-text-tertiary); }
.tower-row.is-active .tower-row__mult { color: var(--color-accent); }
.tower-row__tiles { display: flex; gap: var(--space-2); flex: 1; }
.tower-tile {
  flex: 1; min-height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-tertiary); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  color: var(--color-text-tertiary); font-size: var(--text-lg);
  cursor: not-allowed; transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  -webkit-user-select: none; user-select: none;
}
.tower-tile svg { width: 1.1em; height: 1.1em; display: block; }
.tower-row.is-active .tower-tile { cursor: pointer; }
.tower-row.is-active .tower-tile:hover { transform: translateY(-2px); border-color: var(--color-border-hover); background: var(--color-bg-elevated); }
.tower-tile.is-safe { background: rgba(0, 178, 75, 0.14); border-color: var(--color-accent); color: var(--color-accent); animation: tile-pop 0.22s ease-out; }
.tower-tile.is-bomb { background: rgba(255, 75, 92, 0.18); border-color: var(--color-danger); color: var(--color-danger); animation: tile-pop 0.22s ease-out; }
.tower-tile.is-bomb-faint { background: rgba(255, 75, 92, 0.07); color: rgba(255, 75, 92, 0.45); }
.tower-tile.is-safe-faint { background: rgba(0, 178, 75, 0.05); color: rgba(0, 178, 75, 0.4); }
.tower-cashout-banner { text-align: center; font-size: var(--text-sm); color: var(--color-text-secondary); font-variant-numeric: tabular-nums; min-height: 1.4em; margin-bottom: var(--space-4); }
.tower-cashout-banner strong { color: var(--color-accent); }

/* ============================================================ Support chat widget */
/* EXCEPTION to the button system: .support-fab is a Floating Action Button — a distinct
   design pattern (fixed-position, oversized 56px, elevated shadow, sits above everything via
   z-index). It is intentionally NOT a .btn variant and should not be folded into the system. */
.support-fab {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-on-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1500;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.support-fab:hover { transform: scale(1.06); box-shadow: var(--shadow-glow), var(--shadow-lg); }
.support-panel {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 380px; height: 540px;
  max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1500;
  overflow: hidden;
}
.support-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-tertiary);
}
.support-head__id { display: flex; align-items: center; gap: var(--space-2); }
.support-status { display: flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--color-text-tertiary); }
.support-status .pulse { width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--color-accent); }
.support-min { color: var(--color-text-secondary); padding: var(--space-1); border-radius: var(--radius-sm); display: flex; }
.support-min:hover { background: var(--color-bg-elevated); color: var(--color-text-primary); }
.support-messages { flex: 1; overflow-y: auto; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.support-msg { display: flex; }
.support-msg--user { justify-content: flex-end; }
.support-bubble { max-width: 78%; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); font-size: var(--text-sm); line-height: 1.4; overflow-wrap: anywhere; }
.support-msg--agent .support-bubble { background: var(--color-bg-elevated); color: var(--color-text-primary); border-bottom-left-radius: 4px; }
.support-msg--user .support-bubble { background: var(--color-accent); color: var(--color-on-accent); border-bottom-right-radius: 4px; }
.support-typing { display: flex; gap: 4px; }
.support-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--color-text-tertiary); animation: support-blink 1s infinite; }
.support-typing span:nth-child(2) { animation-delay: 0.2s; }
.support-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes support-blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.support-presets { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0 var(--space-4) var(--space-3); }
.support-chip {
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
}
.support-chip:hover { border-color: var(--color-accent); color: var(--color-accent); }
.support-input { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--color-border); }
.support-input .input { padding: var(--space-2) var(--space-3); }

@media (max-width: 768px) {
  .support-fab { right: 16px; bottom: calc(var(--bottomnav-height) + 16px); }
  .support-panel { right: 0; left: 0; bottom: 0; top: 0; width: auto; height: auto; max-height: none; border-radius: 0; }
}

/* ============================================================ Empty / skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-tertiary) 25%, var(--color-bg-elevated) 50%, var(--color-bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ============================================================ Reviews */
/* stars */
.stars { display: inline-flex; gap: 2px; line-height: 1; }
.stars .star { color: #FFB020; font-size: var(--text-base); }
.stars .star--empty { color: var(--color-border-hover); }
.stars--lg .star { font-size: var(--text-xl); }
.stars--sm .star { font-size: var(--text-sm); }

/* summary header */
.reviews-summary {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: var(--space-6);
  align-items: center;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.reviews-summary__score { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; line-height: 1; }
.reviews-summary__score small { font-size: var(--text-lg); color: var(--color-text-tertiary); font-weight: 500; }
.reviews-summary__count { color: var(--color-text-secondary); font-size: var(--text-sm); margin-top: var(--space-2); }
.reviews-summary__left { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.review-hist { display: flex; flex-direction: column; gap: var(--space-2); }
.review-hist__row { display: grid; grid-template-columns: 36px 1fr 40px; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
.review-hist__label { color: var(--color-text-secondary); display: inline-flex; gap: 2px; align-items: center; }
.review-hist__bar { display: block; height: 8px; border-radius: var(--radius-full); background: var(--color-bg-tertiary); overflow: hidden; }
/* `display: block` is essential here — without it the inline default ignores height/width
   and the fill renders 0×0 even with `width: 76%` set inline. */
.review-hist__fill { display: block; height: 100%; min-width: 0; border-radius: var(--radius-full); background: #FFB020; transition: width 400ms cubic-bezier(.4, 0, .2, 1); }
.review-hist__pct { color: var(--color-text-tertiary); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .reviews-summary { grid-template-columns: 1fr; } }

/* controls (sort / filter / search) */
.reviews-controls { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin: var(--space-5) 0; }
.reviews-controls .seg-filter { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.seg-filter .is-active-filter { background: var(--color-accent-glow); border-color: var(--color-accent); color: var(--color-accent); }

/* review card */
.review-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.review-card + .review-card { margin-top: var(--space-3); }
.review-card__head { display: flex; align-items: center; gap: var(--space-3); }
.review-avatar {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--text-sm); color: #fff;
}
.review-card__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.review-card__name { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; color: var(--color-text-primary); }
.review-card__date { font-size: var(--text-xs); color: var(--color-text-tertiary); }
.verified-badge { display: inline-flex; align-items: center; gap: 3px; font-size: var(--text-xs); font-weight: 600; color: var(--color-info); }
.verified-badge svg { width: 14px; height: 14px; }
.review-card__stars { margin-left: auto; }
.review-card__title { font-weight: 600; margin-top: var(--space-3); }
.review-card__text { color: var(--color-text-secondary); margin-top: var(--space-2); line-height: 1.55; }
.review-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.review-tag {
  font-size: var(--text-xs); font-weight: 600;
  padding: 3px var(--space-3); border-radius: var(--radius-full);
  background: var(--color-bg-tertiary); color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.review-card__foot { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.review-helpful { display: inline-flex; align-items: center; gap: var(--space-2); }
.review-helpful__count { font-size: var(--text-xs); color: var(--color-text-tertiary); }
.review-reply {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
}
.review-reply__head { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: var(--text-sm); color: var(--color-accent); }
.review-reply__head svg { width: 14px; height: 14px; }
.review-reply__date { font-size: var(--text-xs); color: var(--color-text-tertiary); margin-left: var(--space-2); }

/* Static "past 7 days" pill that sits below the listing. Not sticky — just a quiet
   info note explaining the time-window filter. `width: fit-content + margin-inline: auto`
   keeps the pill its natural width while centring it in the block flow. */
.reviews-window-note {
  display: flex; align-items: center; gap: var(--space-2);
  width: fit-content; margin: var(--space-5) auto 0;
  padding: 10px var(--space-4);
  background: var(--color-bg-secondary); border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs); color: var(--color-text-tertiary);
}
.reviews-window-note__icon { font-size: var(--text-sm); }
.reviews-window-note__text { line-height: 1; }
/* `display: flex` above wins over UA `[hidden] { display: none }`, restore the default. */
.reviews-window-note[hidden] { display: none; }

/* ------ Photos attached to a review (card thumbnails + uploader + lightbox) ------ */
.review-photos { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.review-photo-thumb {
  width: 80px; height: 80px; padding: 0; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); background: var(--color-bg-tertiary);
  overflow: hidden; cursor: pointer; transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.review-photo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.review-photo-thumb:hover { transform: scale(1.04); border-color: var(--color-accent); }
.review-photo-thumb:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
/* Fallback when /assets/img/reviews/oN.jpg is missing — the <img> removes itself and we
   show a soft gradient + small camera glyph instead so the row still has visual weight. */
.review-photo-thumb.is-missing { background: linear-gradient(135deg, #5C3DD9, #2A0E5C); position: relative; }
.review-photo-thumb.is-missing::after {
  content: ""; position: absolute; inset: 0; background-repeat: no-repeat;
  background-position: center; background-size: 32px 32px; opacity: 0.55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><circle cx='12' cy='12' r='3.5'/><path d='M8 5l1.5-2h5L16 5'/></svg>");
}
.lightbox.is-missing::before {
  content: "Photo unavailable"; color: rgba(255, 255, 255, 0.6); font-size: var(--text-lg);
  font-weight: 500; padding: var(--space-6) var(--space-8);
  border: 1px dashed rgba(255, 255, 255, 0.18); border-radius: var(--radius-lg);
}

/* Uploader in the modal */
.photo-uploader { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.photo-previews { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.photo-preview {
  position: relative; width: 80px; height: 80px;
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--color-border); background: var(--color-bg-tertiary);
}
.photo-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-preview__remove {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.72); color: #fff;
  font-size: 18px; line-height: 18px; cursor: pointer; display: grid; place-items: center;
  transition: background var(--transition-fast);
}
.photo-preview__remove:hover { background: var(--color-danger, #FF4D6A); }
.photo-uploader__add {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  width: 80px; height: 80px; border-radius: var(--radius-md);
  border: 1px dashed var(--color-border); color: var(--color-text-tertiary);
  background: transparent; cursor: pointer; font-size: var(--text-xs); font-weight: 600;
  text-align: center; padding: var(--space-2); flex-direction: column;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.photo-uploader__add:hover { border-color: var(--color-accent); color: var(--color-accent); }
.photo-uploader__add svg { opacity: 0.8; }
/* `display: inline-flex` above beats the UA `[hidden] { display: none }`, restore default. */
.photo-uploader__add[hidden] { display: none; }

/* Lightbox overlay */
.lightbox {
  position: fixed; inset: 0; background: rgba(8, 10, 18, 0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; padding: var(--space-6);
}
.lightbox.hidden { display: none; }
.lightbox__img {
  max-width: min(90vw, 1200px); max-height: 85vh;
  object-fit: contain; border-radius: var(--radius-md);
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
}
.lightbox__close {
  position: absolute; top: var(--space-5); right: var(--space-5);
  background: rgba(255, 255, 255, 0.08); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 50%;
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  transition: background var(--transition-fast);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.18); }
.review-reply__text { color: var(--color-text-secondary); font-size: var(--text-sm); margin-top: var(--space-2); line-height: 1.55; }

/* clickable star-rating input (Write a Review form) */
.star-input { display: inline-flex; gap: var(--space-1); }
.star-input button { font-size: var(--text-2xl); color: var(--color-border-hover); line-height: 1; padding: 0; background: none; cursor: pointer; transition: color var(--transition-fast), transform var(--transition-fast); }
.star-input button:hover { transform: scale(1.1); }
.star-input button.is-on { color: #FFB020; }

/* tag multi-select chips (form) */
.tag-select { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag-chip {
  font-size: var(--text-xs); font-weight: 600;
  padding: 5px var(--space-3); border-radius: var(--radius-full);
  background: transparent; color: var(--color-text-secondary);
  border: 1px solid var(--btn-secondary-border); cursor: pointer;
  transition: all var(--transition-fast);
}
.tag-chip:hover { border-color: var(--btn-secondary-border-hover); color: #fff; }
.tag-chip.is-on { background: var(--color-accent-glow); border-color: var(--color-accent); color: var(--color-accent); }

/* lobby trust preview — Madgamb-style player-review social proof */
.trust-section { margin-top: var(--space-8); margin-bottom: var(--space-2); }
.trust-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.trust-head__title { display: flex; align-items: center; gap: var(--space-3); }
.trust-head__emoji { font-size: 26px; line-height: 1; }
.trust-head__h { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; margin: 0; line-height: 1.1; }
.trust-head__sub { display: flex; align-items: center; gap: var(--space-2); margin-top: 3px; font-size: var(--text-sm); color: var(--color-text-tertiary); }
.trust-head__sub strong { color: var(--color-text-primary); font-weight: 700; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }

/* raised review card */
.rtcard {
  display: flex; flex-direction: column;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.rtcard:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.6), 0 0 22px -6px var(--color-accent-glow);
}
.rtcard__head {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-border);
}
.rtcard__avatar {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.5px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14);
}
.rtcard__who { display: flex; flex-direction: column; min-width: 0; }
.rtcard__name { font-weight: 700; color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtcard__since { font-size: var(--text-xs); color: var(--color-text-tertiary); }
.rtcard__art { flex-shrink: 0; margin-left: auto; display: grid; place-items: center; opacity: 0.9; }
.rtcard__art svg { display: block; }
.rtcard__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); flex: 1; }
.rtcard__stars .star { color: var(--color-accent-bright); font-size: var(--text-base); }
.rtcard__text {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm); line-height: 1.6;
  max-height: 4.8em; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
}
.rtcard__more {
  margin-top: auto;
  color: var(--color-accent); font-weight: 600; font-size: var(--text-sm);
  transition: color var(--transition-fast);
}
.rtcard:hover .rtcard__more { color: var(--color-accent-bright); }

/* ============================================================ Site footer (GTSpin) */
/* Big structured footer (1Win-style). Injected by shell.js into .main; breaks out of
   .main padding to span the content column. */
.site-footer {
  margin: var(--space-8) calc(-1 * var(--space-5)) calc(-1 * var(--space-5));
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  color: rgba(255, 255, 255, 0.42);
  font-size: var(--text-sm);
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* TOP — three contact cards */
.footer-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.footer-card {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.footer-card > * { position: relative; z-index: 1; }
/* large, muted decorative icon anchored to the right of the card */
.footer-card__deco {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  color: var(--color-accent);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.footer-card__deco svg { width: 78px; height: 78px; display: block; }
.footer-card__title { color: var(--color-text-primary); font-weight: 700; font-size: var(--text-base); }
.footer-card__text { margin: 0; color: rgba(255, 255, 255, 0.5); line-height: 1.5; max-width: 22ch; }
.footer-card__email { color: var(--color-accent); text-decoration: none; font-weight: 600; }
.footer-card__email:hover { color: var(--color-accent-bright); }
.footer-card .btn { margin-top: auto; }

/* MIDDLE — four navigation columns */
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.footer-col__title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}
.footer-col__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col__list a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color var(--transition-fast); }
.footer-col__list a:hover { color: var(--color-accent); }

/* divider + brand */
.site-footer__divider { border: 0; height: 1px; background: rgba(255, 255, 255, 0.08); margin: 0; }
.site-footer__brand { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.site-footer__logo { display: inline-flex; }
.site-footer__brandname {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}
/* bottom-bar brand a touch larger so it doesn't get lost */
.footer-bottom__brand .site-footer__logo svg { width: 34px; height: 34px; }
.footer-bottom__brand .site-footer__brandname { font-size: var(--text-2xl); }

/* BOTTOM bar — brand+copyright (left), language + badges (right) */
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.footer-bottom__brand { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.footer-bottom__copy { color: rgba(255, 255, 255, 0.4); font-size: var(--text-xs); }
.footer-bottom__right { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }

/* language selector (opens upward — footer sits at page bottom) */
.lang-select { position: relative; }
.lang-select__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.lang-select__btn:hover { border-color: var(--color-border-hover); color: #fff; }
.lang-select__chev { display: inline-flex; opacity: 0.7; }
.lang-select__flag { font-size: 1.05em; }
.lang-select__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  min-width: 168px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-1);
  z-index: 20;
}
.lang-select__opt {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-sm);
  text-align: left;
  cursor: pointer;
}
.lang-select__opt:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.lang-select__opt.is-active { color: var(--color-accent); }

/* trust pills (18+, Responsible Gambling) */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
a.trust-pill:hover { border-color: var(--color-accent); color: var(--color-accent); }
.trust-pill__icon { display: inline-flex; }
.trust-pill__icon svg { width: 14px; height: 14px; }
.trust-pill--age { color: #fff; border-color: rgba(255, 255, 255, 0.25); font-weight: 700; }

/* подвал — legal paragraph (placeholder) + slogan */
.site-footer__law { color: rgba(255, 255, 255, 0.38); line-height: 1.6; font-size: var(--text-xs); margin: 0; max-width: 1000px; }
.site-footer__slogan { color: rgba(255, 255, 255, 0.5); font-style: italic; font-size: var(--text-xs); margin: var(--space-2) 0 0; }
.footer-license-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--space-3); padding: 8px 14px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); border-radius: var(--radius-md); text-decoration: none; max-width: 360px; }
.footer-license-badge:hover { border-color: var(--color-accent); }
.footer-license-badge__icon { display: inline-flex; color: rgba(255, 255, 255, 0.55); }
.footer-license-badge:hover .footer-license-badge__icon { color: var(--color-accent); }
.footer-license-badge__text { display: flex; flex-direction: column; gap: 1px; }
.footer-license-badge__title { color: rgba(255, 255, 255, 0.7); font-size: var(--text-xs); font-weight: 600; }
.footer-license-badge__sub { color: rgba(255, 255, 255, 0.4); font-size: var(--text-xs); }

/* responsive */
@media (max-width: 900px) {
  .footer-cards { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}
@media (max-width: 768px) {
  .site-footer { margin: var(--space-6) calc(-1 * var(--space-4)) 0; }
  .site-footer__inner { padding: var(--space-5) var(--space-4); gap: var(--space-5); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .footer-bottom__right { width: 100%; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ============================================================ Legal documents */
/* The document reads as a "card": an elevated panel on the page background, with text
   tuned to the site palette (no pure-white-on-pure-black). Spacing uses 4px-grid tokens
   where they map exactly. */
.legal-doc {
  max-width: 760px; margin: 0 auto;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: var(--space-6);
}
.legal-doc__head { margin-bottom: var(--space-6); padding-bottom: var(--space-5); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.legal-doc__head h1 { font-size: var(--text-2xl); margin: 0 0 var(--space-2); color: rgba(255, 255, 255, 0.95); }
.legal-doc__sub { color: rgba(255, 255, 255, 0.6); margin: 0 0 var(--space-3); font-size: 15px; }
.legal-doc__meta { color: rgba(255, 255, 255, 0.45); font-size: 13px; margin: 0; }
.legal-doc__body h2 { font-size: 22px; margin: 40px 0 var(--space-4); color: rgba(255, 255, 255, 0.9); }
.legal-doc__body h3 { font-size: var(--text-lg); margin: 28px 0 var(--space-3); color: rgba(255, 255, 255, 0.9); }
.legal-doc__body h4 { font-size: var(--text-base); margin: 20px 0 10px; color: rgba(255, 255, 255, 0.8); }
.legal-doc__body p { line-height: 1.7; color: rgba(255, 255, 255, 0.7); font-size: 15px; margin: 0 0 14px; }
.legal-doc__body ul { margin: 0 0 var(--space-4); padding-left: var(--space-5); color: rgba(255, 255, 255, 0.7); }
.legal-doc__body li { line-height: 1.7; margin-bottom: var(--space-2); }
.legal-doc__body strong { color: rgba(255, 255, 255, 0.9); }

/* ---- Legal pages: two-column layout (local Policies nav + breadcrumb) ---- */
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
/* sticky just below the sticky topbar so the nav stays in view down a long document */
.legal-nav { position: sticky; top: calc(var(--topbar-height) + var(--space-4)); align-self: start; }
.legal-nav__title {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-3); padding-left: var(--space-3);
}
.legal-nav__list { display: flex; flex-direction: column; gap: 2px; }
.legal-nav__link {
  display: block; padding: 10px var(--space-3); border-radius: var(--radius-md);
  color: var(--color-text-secondary); text-decoration: none; font-size: var(--text-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.legal-nav__link:hover { background: rgba(255, 255, 255, 0.05); color: var(--color-text-primary); }
.legal-nav__link.is-active { background: var(--color-accent-glow); color: var(--color-accent); font-weight: 600; }
.legal-content { min-width: 0; }
.breadcrumb {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-4);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb__sep { opacity: 0.5; }
.breadcrumb__current { color: var(--color-text-primary); }
/* inside the layout the card hugs the left under the breadcrumb (no auto-centering) */
.legal-layout .legal-doc { margin: 0; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: var(--space-3); }
  /* sidebar becomes a horizontal scroll-row of tabs above the content */
  .legal-nav { position: static; }
  .legal-nav__title { padding-left: 0; }
  .legal-nav__list { flex-direction: row; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-2); -webkit-overflow-scrolling: touch; }
  .legal-nav__link { white-space: nowrap; border: 1px solid var(--color-border); padding: 8px var(--space-3); }
  .legal-nav__link.is-active { border-color: var(--color-accent); }
  .legal-doc { padding: var(--space-5); }
}

/* ============================================================ News (listing) */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.news-head__title { font-family: var(--font-display); font-size: var(--text-2xl); margin: 0; }
.news-head__sub { color: var(--color-text-secondary); margin: var(--space-2) 0 0; }
.news-search { display: inline-flex; align-items: center; gap: var(--space-2); background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: 0 var(--space-4); height: 44px; color: var(--color-text-tertiary); min-width: 260px; transition: border-color var(--transition-fast); }
.news-search input { background: none; border: 0; outline: none; color: var(--color-text-primary); font-size: var(--text-sm); width: 100%; }
.news-search:focus-within { border-color: var(--color-accent); color: var(--color-accent); }

.news-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.chip { padding: 8px 14px; border-radius: var(--radius-full); border: 1px solid var(--color-border); background: var(--color-bg-secondary); color: var(--color-text-secondary); font-size: var(--text-sm); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast); }
.chip:hover { border-color: var(--color-border-hover); color: var(--color-text-primary); }
.chip.is-active { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }

.news-card { display: flex; flex-direction: column; background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast); }
.news-card:hover { transform: translateY(-4px); border-color: var(--color-accent); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6), 0 0 18px -6px var(--color-accent-glow); }
.news-card__cover { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: var(--space-4); }
.news-card__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.45)); }
.news-card__cover-title { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); color: #fff; line-height: 1.1; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); flex: 1; }
.news-chip { align-self: flex-start; padding: 3px 10px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 700; }
.news-card__title { font-size: var(--text-base); font-weight: 700; color: var(--color-text-primary); margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__excerpt { color: var(--color-text-secondary); font-size: var(--text-sm); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__meta { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); font-size: var(--text-xs); color: var(--color-text-tertiary); }
.news-card__more { color: var(--color-accent); font-weight: 600; white-space: nowrap; }
.news-loadmore { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); margin: var(--space-6) 0; }

/* ============================================================ News page wrapper
   Caps content width on the news listing + article pages so they stay
   balanced when the left sidebar is collapsed (otherwise the content hugs
   the left edge with a big empty band on the right at wide viewports).
   `.main` itself is a grid item that fills the track — instead we cap and
   centre the inner content via `> *` so the existing padding survives. */
.main.news-page > * { max-width: 1280px; margin-inline: auto; }
/* The article layout is capped tighter than the listing (which needs the
   full 1280 for its 3-col grid) so prose doesn't reflow into uncomfortable
   line lengths when the sidebar collapses. Overrides the generic cap above. */
.main.news-page > .article-layout { max-width: 1040px; }
/* Footer (injected by shell.js) is the one direct child that should still
   span the full width — it has its own internal max-width and breaks out
   of .main's padding. */
.main.news-page > .site-footer { max-width: none; margin: var(--space-6) 0 0; }

/* ============================================================ News (article) */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-6); align-items: start; }
/* Body + sidebar are wrapped in cards (same vocabulary as .spon-section). */
.article-main { min-width: 0; background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); }
.article-aside { position: sticky; top: calc(var(--topbar-height) + var(--space-4)); background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); }
.article-aside__title { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: rgba(255, 255, 255, 0.5); margin-bottom: var(--space-3); }
.related-card { display: flex; gap: var(--space-3); padding: var(--space-2); border-radius: var(--radius-md); text-decoration: none; transition: background var(--transition-fast); }
.related-card:hover { background: rgba(255, 255, 255, 0.05); }
.related-card__cover { flex-shrink: 0; width: 64px; height: 48px; border-radius: var(--radius-sm); }
.related-card__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.related-card__title { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card__meta { font-size: var(--text-xs); color: var(--color-text-tertiary); }
.article-title { font-family: var(--font-display); font-size: var(--text-2xl); margin: var(--space-3) 0 var(--space-2); color: rgba(255, 255, 255, 0.95); }
.article-meta { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; color: var(--color-text-tertiary); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.article-meta .dot { opacity: 0.5; }
.article-cover { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); display: flex; align-items: flex-end; padding: var(--space-5); margin-bottom: var(--space-5); }
.article-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.5)); }
.article-cover__title { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); color: #fff; line-height: 1.1; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5); }
.article-share { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.article-share__label { font-weight: 600; color: var(--color-text-primary); }
.article-share__btns { display: flex; gap: var(--space-2); flex-wrap: wrap; }
/* blockquote + inline code inside article/legal body */
.legal-doc__body blockquote { margin: var(--space-4) 0; padding: var(--space-3) var(--space-4); border-left: 3px solid var(--color-accent); background: rgba(255, 255, 255, 0.03); border-radius: 0 var(--radius-md) var(--radius-md) 0; color: rgba(255, 255, 255, 0.82); font-style: italic; }
.legal-doc__body code { font-family: var(--font-mono); font-size: 0.9em; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.08); padding: 2px 6px; border-radius: 6px; color: var(--color-accent-bright); }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}

/* ============================================================ Sponsorships */
.spon-banner { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-5); align-items: center; background: linear-gradient(120deg, var(--color-bg-secondary), var(--color-bg-tertiary)); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-6); }
.spon-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 100% 0%, var(--color-accent-glow), transparent 55%); pointer-events: none; }
.spon-banner__text { position: relative; z-index: 1; }
.spon-banner__title { font-family: var(--font-display); font-size: var(--text-2xl); margin: 0 0 var(--space-3); display: flex; align-items: center; gap: var(--space-3); }
.spon-banner__icon { color: var(--color-accent); display: inline-flex; }
.spon-banner__sub { color: var(--color-text-secondary); line-height: 1.6; margin: 0; max-width: 60ch; }
.spon-banner__photo { position: relative; z-index: 1; aspect-ratio: 16 / 10; border-radius: var(--radius-md); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 12px, rgba(255, 255, 255, 0.07) 12px 24px); border: 1px dashed rgba(255, 255, 255, 0.15); display: flex; align-items: center; justify-content: center; }
.spon-banner__photo span { color: rgba(255, 255, 255, 0.4); font-size: var(--text-sm); font-weight: 600; }

.spon-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.spon-nav { position: sticky; top: calc(var(--topbar-height) + var(--space-4)); display: flex; flex-direction: column; gap: 2px; }
.spon-nav__title { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: rgba(255, 255, 255, 0.5); margin-bottom: var(--space-2); padding-left: var(--space-2); }
.spon-nav__item { display: flex; align-items: center; gap: var(--space-3); padding: 10px var(--space-3); border-radius: var(--radius-md); background: none; border: 0; cursor: pointer; text-align: left; transition: background var(--transition-fast); }
.spon-nav__item:hover { background: rgba(255, 255, 255, 0.05); }
.spon-nav__item.is-active { background: rgba(255, 255, 255, 0.06); box-shadow: inset 3px 0 0 var(--accent, var(--color-accent)); }
.spon-nav__badge { flex-shrink: 0; width: 34px; height: 34px; border-radius: var(--radius-md); display: grid; place-items: center; font-weight: 700; font-size: var(--text-xs); }
.spon-nav__meta { display: flex; flex-direction: column; min-width: 0; }
.spon-nav__name { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spon-nav__type { font-size: var(--text-xs); color: var(--color-text-tertiary); }

.spon-content { min-width: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.spon-hero { display: flex; flex-direction: column; gap: var(--space-4); background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); }
.spon-hero__logos { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.spon-logo { display: grid; place-items: center; min-width: 120px; height: 60px; border-radius: var(--radius-md); font-weight: 700; font-size: var(--text-sm); border: 1px dashed rgba(255, 255, 255, 0.14); padding: 0 var(--space-3); text-align: center; }
.spon-logo--brand { font-family: var(--font-display); color: var(--color-text-primary); background: var(--color-bg-tertiary); border-style: solid; border-color: var(--color-border); }
.spon-hero__x { color: var(--color-text-tertiary); font-size: var(--text-xl); }
.spon-hero__type { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.spon-hero__name { font-family: var(--font-display); font-size: var(--text-xl); margin: var(--space-1) 0 var(--space-2); }
.spon-hero__blurb { color: var(--color-text-secondary); line-height: 1.6; margin: 0; }
.spon-section { background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); }
.spon-section h3 { font-family: var(--font-display); font-size: var(--text-lg); margin: 0 0 var(--space-3); }
.spon-section p { color: var(--color-text-secondary); line-height: 1.7; margin: 0 0 var(--space-3); }
.spon-section p:last-child { margin-bottom: 0; }
.spon-events { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.spon-event { background: var(--color-bg-tertiary); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.spon-event__cover { aspect-ratio: 16 / 9; }
.spon-event__body { padding: var(--space-3) var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: 6px; }
.spon-event__meta { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-tertiary); font-weight: 700; }
.spon-event__title { font-size: var(--text-base); font-weight: 700; margin: 0; }
.spon-event__desc { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: 1.5; margin: 0; }
.spon-cobrand { display: flex; align-items: center; justify-content: center; gap: var(--space-5); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-5); }
.spon-cobrand__logo { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }
.spon-cobrand__x { color: rgba(255, 255, 255, 0.75); font-size: var(--text-xl); }

@media (max-width: 900px) {
  .spon-banner { grid-template-columns: 1fr; }
  .spon-layout { grid-template-columns: 1fr; }
  .spon-nav { position: static; flex-direction: row; overflow-x: auto; gap: var(--space-2); padding-bottom: var(--space-2); }
  .spon-nav__title { display: none; }
  .spon-nav__item { flex-shrink: 0; border: 1px solid var(--color-border); }
  .spon-events { grid-template-columns: 1fr; }
}

/* ============================================================ Inline links in prose
   Accent-coloured inline links inside articles + legal docs. */
.article-body a,
.legal-doc__body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-glow);
  text-underline-offset: 2px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}
.article-body a:hover,
.legal-doc__body a:hover {
  color: var(--color-accent-bright);
  text-decoration-color: var(--color-accent);
}
