:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: rgba(13, 17, 24, 0.94);
  --panel-soft: rgba(17, 21, 29, 0.9);
  --panel-strong: rgba(19, 24, 33, 0.98);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f4f7;
  --muted: #99a3b3;
  --accent: #7d889c;
  --accent-soft: rgba(125, 136, 156, 0.14);
  --danger: #ff7188;
  --success: #66d4a3;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --radius-lg: 26px;
  --radius-md: 18px;
  --content-width: 1200px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.overnight-room-game-page .overnight-room-player__sound {
  position: absolute;
  top: 40px;
  right: 8px;
  z-index: 19;
}

body.overnight-room-game-page .overnight-room-player__sound summary {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(6,10,16,.36);
  color: #f8fafc;
  cursor: pointer;
  list-style: none;
}

body.overnight-room-game-page .overnight-room-player__sound summary::-webkit-details-marker {
  display: none;
}

body.overnight-room-game-page .overnight-room-player__sound summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.overnight-room-game-page .overnight-room-player__sound summary svg path:first-child {
  fill: currentColor;
  stroke: none;
}

body.overnight-room-game-page .overnight-room-player__sound .overnight-room-player__sound-x {
  display: none;
}

body.overnight-room-game-page .overnight-room-player__sound.is-muted summary {
  border-color: rgba(248,113,113,.62);
  background: rgba(127,29,29,.76);
  color: #fecaca;
}

body.overnight-room-game-page .overnight-room-player__sound.is-muted .overnight-room-player__sound-wave {
  display: none;
}

body.overnight-room-game-page .overnight-room-player__sound.is-muted .overnight-room-player__sound-x {
  display: block;
}

body.overnight-room-game-page .overnight-room-player__sound-popover {
  position: absolute;
  top: 32px;
  right: 0;
  width: 172px;
  padding: 10px;
  border: 1px solid rgba(148,163,184,.26);
  border-radius: 8px;
  background: rgba(10,14,21,.98);
  box-shadow: 0 14px 34px rgba(0,0,0,.34);
}

body.overnight-room-game-page .overnight-room-player__sound-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #dbeafe;
  font-size: .68rem;
  font-weight: 900;
}

body.overnight-room-game-page .overnight-room-player__sound-head b {
  color: #ffffff;
  font-size: .7rem;
}

body.overnight-room-game-page .overnight-room-player__sound-slider {
  --overnight-sound-volume: 100%;
  position: relative;
  height: 18px;
  padding: 0 8px;
  box-sizing: border-box;
}

body.overnight-room-game-page .overnight-room-player__sound-slider::before {
  content: "";
  position: absolute;
  inset: 0 8px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      #38bdf8 0 var(--overnight-sound-volume),
      rgba(255,255,255,.22) var(--overnight-sound-volume) 100%
    );
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  pointer-events: none;
}

body.overnight-room-game-page .overnight-room-player__sound-slider input[type="range"] {
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  z-index: 1;
  width: auto;
  height: 18px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

body.overnight-room-game-page .overnight-room-player__sound-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 18px;
  border: 0;
  background: transparent;
}

body.overnight-room-game-page .overnight-room-player__sound-slider input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 0;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56,189,248,.22), 0 4px 10px rgba(0,0,0,.28);
  appearance: none;
  -webkit-appearance: none;
}

body.overnight-room-game-page .overnight-room-player__sound-slider input[type="range"]::-moz-range-track,
body.overnight-room-game-page .overnight-room-player__sound-slider input[type="range"]::-moz-range-progress {
  height: 18px;
  border: 0;
  background: transparent;
}

body.overnight-room-game-page .overnight-room-player__sound-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56,189,248,.22), 0 4px 10px rgba(0,0,0,.28);
}

@media (max-width: 720px) {
  body.overnight-page .overnight-modal {
    place-items: start center !important;
    align-items: start !important;
    min-height: 100dvh !important;
    padding: max(10px, env(safe-area-inset-top, 0px) + 10px) 10px calc(118px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }

  body.overnight-page .overnight-create-dialog {
    width: min(100%, 680px) !important;
    max-height: none !important;
    overflow: visible !important;
    grid-template-columns: 1fr !important;
    margin: 0 auto !important;
    border-radius: 22px !important;
  }

  body.overnight-page .overnight-create-dialog__modes {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  body.overnight-page .overnight-create-mode {
    min-height: 64px !important;
    padding: 10px 12px !important;
    border-radius: 15px !important;
  }

  body.overnight-page .overnight-create-mode strong {
    font-size: clamp(.92rem, 4.8vw, 1.1rem) !important;
    line-height: 1.08 !important;
  }

  body.overnight-page .overnight-create-mode span {
    display: none !important;
  }

  body.overnight-page .overnight-create-dialog__settings {
    padding: 20px 16px 22px !important;
    gap: 13px !important;
  }

  body.overnight-page .overnight-modal-close {
    position: fixed !important;
    top: max(12px, env(safe-area-inset-top, 0px) + 8px) !important;
    right: 14px !important;
    z-index: 12 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 14px !important;
    background: rgba(31, 42, 58, .94) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28) !important;
  }

  body.overnight-page .overnight-player-stepper > div {
    width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  body.overnight-page .overnight-player-stepper--wide > div {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    overflow: visible !important;
  }

  body.overnight-page .overnight-player-stepper--wide button {
    min-width: 0 !important;
    padding: 0 10px !important;
    font-size: clamp(.82rem, 4.2vw, .98rem) !important;
  }

  body.overnight-page .overnight-vip-note {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  body.overnight-page #overnight-confirm-create {
    width: 100% !important;
    min-height: 54px !important;
    margin-top: 2px !important;
    border-radius: 18px !important;
  }
}

.catalog-shell,
.landing-shell {
  display: grid;
  gap: 18px;
}

.catalog-hero,
.landing-hero {
  gap: 22px;
  align-items: stretch;
}

.catalog-hero__copy,
.landing-hero__copy {
  gap: 16px;
}

.catalog-hero__actions,
.landing-hero__actions,
.landing-pills,
.catalog-pills,
.landing-card-tags,
.catalog-card__tags,
.catalog-mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-hero__art,
.landing-hero__art {
  align-items: center;
}

.catalog-shot,
.landing-shot,
.catalog-card__media,
.landing-game-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top, rgba(102,212,163,.12), transparent 40%),
    linear-gradient(180deg, rgba(10,14,20,.96), rgba(8,11,16,.98));
}

.catalog-shot::before,
.landing-shot::before,
.catalog-card__media::before,
.landing-game-card__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,20,.02), rgba(10,14,20,.24));
  pointer-events: none;
}

.catalog-shot img,
.landing-shot img,
.catalog-card__media img,
.landing-game-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-shot--hero,
.landing-shot--hero {
  min-height: 420px;
}

.catalog-grid,
.landing-games-grid,
.catalog-info-grid,
.landing-info-grid {
  display: grid;
  gap: 18px;
}

.catalog-grid,
.landing-games-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-card,
.landing-game-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.catalog-card__media,
.landing-game-card__media {
  min-height: 260px;
}

.catalog-card__body,
.landing-game-card__body {
  display: grid;
  gap: 14px;
  align-content: start;
}

.catalog-card h3,
.landing-game-card h3 {
  font-size: clamp(1.22rem, 2vw, 1.8rem);
}

.catalog-info-grid,
.landing-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.catalog-shell--compact {
  gap: 16px;
}

.catalog-choice-hero {
    display: block;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
  padding: 0;
  margin-bottom: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.catalog-choice-hero::before {
  display: none;
}

.catalog-choice-hero__copy {
  gap: 10px;
  max-width: 760px;
  align-content: center;
}

.catalog-choice-hero__copy h2 {
  max-width: 16ch;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
}

.catalog-choice-hero__copy .hero-panel__text {
  max-width: 44ch;
  white-space: pre-line;
}

.catalog-choice-hero__feature {
  display: flex;
  height: 100%;
  min-height: 100%;
  min-width: 0;
  width: 100%;
  max-width: none;
}

.catalog-choice-hero__feature.catalog-choice-card {
    min-height: 224px;
    width: 100%;
    max-width: none;
}

.catalog-choice-hero__feature .catalog-choice-card__body h3 {
  max-width: 12ch;
}

.catalog-choice-hero__feature .catalog-choice-card__body > p:not(.hero-panel__eyebrow) {
  max-width: 50ch;
}

.catalog-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.games-page--list .catalog-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.truth-modes-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.alias-modes-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.catalog-choice-card {
  display: flex !important;
  flex-direction: column;
  gap: 18px;
  min-height: 260px;
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(102,212,163,.1), transparent 34%),
    linear-gradient(180deg, rgba(19,24,33,.98), rgba(11,15,22,.98));
}

.catalog-choice-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
}

.catalog-choice-card__body h3 {
  max-width: 11ch;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.catalog-choice-card__body > p:not(.hero-panel__eyebrow) {
  max-width: 34ch;
}

.catalog-choice-card__today {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 12px 14px;
  border: 1px solid rgba(102,212,163,.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(102,212,163,.08), rgba(255,255,255,.02));
}

.catalog-choice-card__today-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  background: #66d4a3;
  box-shadow: 0 0 0 6px rgba(102,212,163,.12), 0 0 18px rgba(102,212,163,.22);
}

.catalog-choice-card__today-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.catalog-choice-card__today-copy strong {
  color: var(--success);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 800;
  line-height: 1;
}

.catalog-choice-card__today-copy span {
  color: rgba(242,244,247,.72);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
}

.catalog-choice-card .action-btn {
  width: 100%;
  justify-content: center;
}

.catalog-choice-card__actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.catalog-choice-card__actions .action-btn {
  margin-top: 0 !important;
}

.catalog-profile-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 100%;
}

.catalog-profile-card strong {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.catalog-profile-card p {
  white-space: pre-line;
}

.catalog-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-profile-actions .action-btn {
  min-width: 140px;
  justify-content: center;
}

.catalog-choice-card--truth {
  background:
    radial-gradient(circle at top left, rgba(102,212,163,.14), transparent 38%),
    radial-gradient(circle at right, rgba(255,113,136,.1), transparent 34%),
    linear-gradient(180deg, rgba(19,24,33,.98), rgba(11,15,22,.98));
}

.catalog-choice-card--monopolis {
  background:
    radial-gradient(circle at top left, rgba(102,212,163,.16), transparent 38%),
    radial-gradient(circle at bottom right, rgba(250,204,21,.1), transparent 34%),
    linear-gradient(180deg, rgba(19,24,33,.98), rgba(11,15,22,.98));
}

.catalog-choice-card--alias {
  background:
    radial-gradient(circle at top left, rgba(98,131,255,.16), transparent 36%),
    radial-gradient(circle at bottom right, rgba(255,203,112,.08), transparent 30%),
    linear-gradient(180deg, rgba(19,24,33,.98), rgba(11,15,22,.98));
}

.catalog-choice-card--whoami {
  background:
    radial-gradient(circle at top left, rgba(174,130,255,.14), transparent 36%),
    radial-gradient(circle at bottom right, rgba(102,212,163,.08), transparent 30%),
    linear-gradient(180deg, rgba(19,24,33,.98), rgba(11,15,22,.98));
}

.catalog-choice-card--roulette {
  background:
    radial-gradient(circle at top left, rgba(255,160,122,.16), transparent 36%),
    radial-gradient(circle at bottom right, rgba(102,212,163,.08), transparent 30%),
    linear-gradient(180deg, rgba(19,24,33,.98), rgba(11,15,22,.98));
}

.catalog-choice-card--anonymous {
  background:
    radial-gradient(circle at top left, rgba(104,141,255,.18), transparent 36%),
    radial-gradient(circle at right, rgba(102,212,163,.1), transparent 34%),
    linear-gradient(180deg, rgba(19,24,33,.98), rgba(11,15,22,.98));
}

.catalog-choice-card--anonymous.catalog-choice-hero__feature {
  min-height: 208px;
}

.catalog-choice-card--anonymous .catalog-choice-card__body {
  width: 100%;
  margin-left: 0;
  gap: 14px;
}

.catalog-choice-card__intro--anonymous {
  display: grid;
  grid-template-columns: minmax(220px, 292px) minmax(260px, 1fr);
  align-items: start;
  gap: 28px;
}

.catalog-choice-card__intro-main {
  display: grid;
  gap: 10px;
}

.catalog-choice-card__intro-side {
  display: flex;
  justify-content: flex-end;
  align-self: center;
}

.catalog-choice-card__intro-side p {
  width: min(44ch, 100%);
  margin: 0 0 0 auto;
}

.catalog-choice-card--anonymous .catalog-choice-card__intro-main h3 {
  max-width: 11ch;
}

.topbar--landing {
  grid-template-columns: minmax(220px, 1fr) minmax(520px, 720px) minmax(220px, 1fr);
}

.topbar-tabs--landing .topbar-tab {
  text-wrap: balance;
}

.landing-pill {
  text-decoration: none;
}

.landing-pill .session-pill__info {
  display: grid;
}

@media (max-width: 980px) {
  .catalog-grid,
  .catalog-choice-grid,
  .landing-games-grid,
  .catalog-info-grid,
  .landing-info-grid {
    grid-template-columns: 1fr;
  }

  .catalog-hero,
  .landing-hero,
  .catalog-choice-hero,
  .topbar--landing {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1220px) {
  .truth-modes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .truth-modes-grid {
    grid-template-columns: 1fr;
  }
  .alias-modes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .landing-pill .session-pill__info {
    display: grid !important;
  }

  .landing-pill .session-pill__action {
    width: auto;
    min-width: 90px;
  }

  .catalog-shot--hero,
  .landing-shot--hero {
    min-height: 260px;
  }

  .catalog-card,
  .landing-game-card,
  .catalog-choice-card {
    padding: 16px;
  }

  .catalog-choice-card {
    min-height: 220px;
    gap: 16px;
  }

  .catalog-choice-card__today {
    padding: 11px 12px;
    gap: 10px;
  }

  .catalog-choice-card__today-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
  }

  .catalog-choice-card__today-copy span {
    font-size: .72rem;
    letter-spacing: .12em;
  }

  .catalog-choice-hero {
    padding: 18px 16px;
  }

  .catalog-choice-hero__feature.catalog-choice-card {
    min-height: 212px;
  }

  .catalog-choice-hero__copy h2 {
    max-width: 14ch;
    font-size: clamp(1.32rem, 6vw, 1.82rem);
  }

  .catalog-card__media,
  .landing-game-card__media {
    min-height: 220px;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(98,131,255,.1), transparent 28%),
    radial-gradient(circle at top right, rgba(255,113,136,.06), transparent 24%),
    linear-gradient(180deg, #07090d 0%, #0b0e14 100%);
}
body.modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}
button, input, textarea, select { font: inherit; }
button { border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
textarea, select, input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9,12,17,.72);
  color: var(--text);
  outline: none;
}
.page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 18px;
}
.topbar {
  position: sticky;
  top: 10px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(520px, 720px) minmax(220px, 1fr);
  gap: 14px;
  align-items: center;
  width: min(100%, var(--content-width));
  max-width: var(--content-width);
  margin: 0 auto 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(9,12,18,.88);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.topbar::before {
  content: '';
  position: absolute;
  inset: -120px -40px -26px -40px;
  z-index: -1;
  background: radial-gradient(circle at top, rgba(8, 11, 17, .96) 0%, rgba(8, 11, 17, .78) 42%, rgba(8, 11, 17, 0) 100%);
  filter: blur(18px);
  pointer-events: none;
}
.brand-button { display: inline-flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; min-width: 0; justify-self: start; }
.brand-mark {
  position: relative;
  width: 64px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f1b2d, #131620);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
  cursor: pointer;
  user-select: none;
}
.brand-mark__knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.brand-mark__moon {
  position: absolute;
  right: 9px;
  top: 5px;
  font-size: 19px;
  color: #f4f0ff;
  text-shadow: 0 0 12px rgba(255,255,255,.14);
  pointer-events: none;
}
.brand-copy { display: grid; gap: 1px; }
.brand-copy p { margin: 0; color: var(--muted); font-size: .74rem; font-weight: 600; }
.brand-kicker, .hero-panel__eyebrow, .game-badge span, .decision-card__badge, .decision-card__type, .heat-panel__head span {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
  font-weight: 700;
}
.brand-block h1, .hero-panel h2, .stage-card h3, .modal__header h3, .task-modal__content h3, .admin-panel__head h4 { margin: 0; line-height: 1.08; }
.brand-block h1 { font-size: clamp(1rem, 1.35vw, 1.3rem); font-weight: 800; }
.topbar-tabs {
  text-decoration: none;
  display: grid;
  grid-template-columns: minmax(148px, 1.34fr) minmax(92px, .82fr) minmax(82px, .74fr) minmax(132px, 1.08fr) minmax(82px, .62fr);
  gap: 5px;
  align-items: center;
  justify-self: center;
  width: 100%;
  max-width: 820px;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}
.topbar-tab {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  line-height: 1.15;
  font-size: .77rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, background .25s ease, color .25s ease;
}
.topbar-tab.active { color: var(--text); background: linear-gradient(180deg, rgba(122,132,151,.32), rgba(77,85,99,.3)); }
.topbar-dropdown {
  position: relative;
  min-width: 0;
}
.topbar-dropdown__toggle {
  gap: 8px;
  width: 100%;
}
.topbar-dropdown__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform .2s ease;
}
.topbar-dropdown.is-open .topbar-dropdown__chevron {
  transform: translateY(1px) rotate(-135deg);
}
.topbar-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 228px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9,12,18,.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
}
.topbar-dropdown.is-open .topbar-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.topbar-dropdown__item {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.topbar-dropdown__item:hover,
.topbar-dropdown__item:focus-visible {
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}
.topbar-tab--live {
  color: var(--text);
}
.topbar-tab--live::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: rgba(102,212,163,.95);
  box-shadow: 0 0 0 1px rgba(102,212,163,.08), 0 0 14px rgba(102,212,163,.18);
  transform: translateX(-50%);
}
.session-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  justify-self: end;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  min-width: 0;
  padding: 8px 10px 8px 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}
.session-pill__info { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.session-pill__info strong, .session-pill__sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-pill__summary { display: none; }
.session-pill strong { display: block; font-size: .92rem; line-height: 1.1; }
.session-pill strong.text-fit--compact,
.session-pill strong.text-fit--tiny { font-size: .92rem !important; line-height: 1.1 !important; }
.session-pill__sub { display: block; color: var(--muted); font-size: .74rem; }
.session-pill__action {
  min-width: 94px;
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 15, 21, .98);
  box-shadow: var(--shadow);
}
.profile-menu__item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,.035);
  cursor: pointer;
}
.profile-menu__item:hover { background: rgba(255,255,255,.07); }
.profile-menu__item--danger { color: #ffd6de; }
.session-pill__action--menu {
  position: relative;
}
.session-pill__action--menu::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  opacity: .76;
  transition: transform .18s ease, opacity .18s ease;
}
.session-pill__action--open::after {
  transform: translateY(2px) rotate(-135deg);
  opacity: 1;
}
.app-shell {
  width: min(100%, var(--content-width));
  max-width: var(--content-width);
  margin: 0 auto;
}
.tab-page { display: none; }
.tab-page.active { display: grid; gap: 18px; animation: fade-up .35s ease; }
.hero-panel, .stage-card, .admin-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); }
.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, .8fr);
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  transition: opacity .25s ease, transform .25s ease;

  margin-bottom: 18px;
}
.hero-panel--after-category { margin-top: 14px; }
.hero-panel.is-hidden { opacity: 0; transform: translateY(-16px); pointer-events: none; height: 0; padding-top: 0; padding-bottom: 0; margin: 0; overflow: hidden; border-width: 0; box-shadow: none; }
.hero-panel__copy, .hero-panel__side { display: grid; align-content: center; }
.hero-panel h2 { font-size: clamp(1rem, 1.8vw, 1.4rem); font-weight: 800; max-width: 540px; }
.hero-panel__text, .stage-card p, .category-card p, .modal__header p, .task-modal__text { margin: 0; color: var(--muted); line-height: 1.58; font-size: .94rem; }
.game-session-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(89, 215, 125, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 28, 23, 0.94), rgba(11, 18, 16, 0.96));
  box-shadow: var(--shadow);
}
.game-session-panel.hidden { display: none !important; }
.game-session-panel__copy,
.game-session-panel__actions,
.game-session-modal__head,
.game-session-modal__actions {
  display: grid;
  gap: 10px;
}
.game-session-panel__copy h3,
.game-session-modal__head h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.42rem);
}
.game-session-panel__text,
.game-session-modal__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.game-session-panel__actions,
.game-session-modal__actions {
  grid-template-columns: 1fr 1fr;
}
.game-session-modal__dialog {
  width: min(640px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16,21,29,.98), rgba(8,10,15,1));
}
.stage-card { display: none; gap: 20px; padding: 24px; overflow: visible; position: relative; }
.stage-card--active { display: grid; animation: fade-up .35s ease; }
.stage-card__head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.stage-card__step { display: inline-flex; align-items: center; justify-content: center; min-width: 68px; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); color: #d1d8e6; font-size: .95rem; font-weight: 800; }
.stage-card h3 { margin-bottom: 8px; font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 800; }
.room-create-head {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
.room-create-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  min-height: 46px;
  padding: 0 18px;
  align-self: center;
  border-radius: 16px;
  font-size: .94rem;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
  background:
    radial-gradient(circle at top left, rgba(96,118,192,.14), transparent 42%),
    linear-gradient(180deg, rgba(33,38,53,.96), rgba(25,29,42,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.room-create-back-btn span[aria-hidden="true"] {
  font-size: 1rem;
  line-height: 1;
}
.room-create-back-btn span:last-child {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.room-create-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 104px;
  width: 100%;
  padding: 16px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(102,212,163,.08), transparent 34%),
    linear-gradient(180deg, rgba(22,27,38,.98), rgba(12,16,24,.98));
}
.room-create-heading__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  align-content: center;
}
.room-create-kicker {
  margin: 0;
  color: #9bb2db;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.room-create-heading .stage-card__title {
  margin: 0;
  font-size: clamp(1.22rem, 1.8vw, 1.9rem);
  line-height: 1.04;
  font-weight: 800;
}
.room-create-heading .stage-card__subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: .9rem;
  max-width: 58ch;
}
#create-room-form.stage-card__body {
  display: grid;
  gap: 18px;
}
.room-create-actions {
  display: grid;
  width: 100%;
  margin-top: 10px;
  padding-top: 6px;
}
.room-create-actions .action-btn {
  width: 100%;
  min-height: 56px;
  justify-content: center;
  border-radius: 18px;
}
.room-join-head {
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}
.room-join-note,
.room-share-card {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(96,118,192,.08), transparent 34%),
    linear-gradient(180deg, rgba(19,24,33,.98), rgba(12,16,24,.98));
}
.room-join-note strong,
.room-share-card__head h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.36rem);
}
.room-join-note span,
.room-share-card__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.room-share-card__head {
  display: grid;
  gap: 10px;
}
.room-share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.room-share-field {
  gap: 8px;
}
.room-share-field__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.room-share-copy-btn {
  min-width: 132px;
  justify-content: center;
}
.room-share-field__code {
  text-align: center;
  letter-spacing: .18em;
  font-size: 1.12rem;
  font-weight: 800;
  text-transform: uppercase;
}
.room-lobby-head {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.room-lobby-back-btn {
  min-width: 0;
  width: auto;
  align-self: center;
}
.room-lobby-heading {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: center;
  min-height: 78px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(102,212,163,.05), transparent 34%),
    linear-gradient(180deg, rgba(20,24,34,.86), rgba(13,17,25,.94));
}
.room-lobby-heading .stage-card__title,
.room-lobby-heading .stage-card__subtitle {
  margin: 0;
}
.room-lobby-heading .stage-card__title {
  font-size: clamp(1.32rem, 1.9vw, 2rem);
  line-height: 1.06;
}
.room-lobby-heading .stage-card__subtitle {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.4;
}
.room-lobby-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.room-lobby-actions__start {
  width: min(420px, 100%);
  margin: 0 auto;
}
.room-lobby-actions__manage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  width: min(540px, 100%);
  margin: 0 auto;
}
.room-lobby-actions .action-btn {
  justify-content: center;
  min-width: 0;
  min-height: 52px;
}
.room-lobby-actions__manage .action-btn {
  width: 100%;
}
#close-room-btn.action-btn--danger {
  background: linear-gradient(180deg, rgba(118,48,68,.34), rgba(73,24,39,.28));
  border-color: rgba(255,113,136,.46);
}
@media (max-width: 720px) {
  .room-create-head {
    grid-template-columns: 1fr;
  }
  .room-join-head,
  .room-lobby-head,
  .room-share-grid,
  .room-share-field__row {
    grid-template-columns: 1fr;
  }
  .room-create-back-btn {
    width: 100%;
    min-height: 50px;
  }
  .room-create-heading {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 12px;
    padding: 14px 16px;
  }
  .room-create-heading .stage-card__title {
    font-size: 1.34rem;
  }
  .room-lobby-back-btn {
    width: 100%;
  }
  .room-lobby-heading {
    min-height: 0;
    padding: 14px 16px;
  }
  .room-create-actions {
    margin-top: 14px;
  }
  .room-create-actions .action-btn {
    width: 100%;
  }
  .room-share-copy-btn {
    width: 100%;
  }
.room-lobby-actions__start,
.room-lobby-actions__manage {
  width: 100%;
}

body.alias-lobby-page .room-lobby-hero {
  display: none;
}

body.alias-lobby-page .room-lobby-actions-card__copy {
  display: none;
}

body.alias-lobby-page .room-lobby-actions {
  margin-top: 0;
}

body.alias-lobby-page .room-lobby-actions__manage {
  width: 100%;
  grid-template-columns: 1fr;
  justify-items: stretch;
}

body.alias-lobby-page #close-room-btn.action-btn--danger {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: .98rem;
}
}
.room-join-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.room-join-submit-btn {
  width: min(460px, 100%);
  min-height: 58px;
  justify-content: center;
  border-radius: 18px;
  font-size: 1rem;
}
.heat-panel, .selected-categories-box { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.03); }
.heat-panel__head, .selected-categories-box__head, .admin-panel__head, .admin-actions-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.heat-panel__head strong { display:flex; align-items:center; gap:8px; font-size:1rem; }
.heat-meter { display: grid; gap: 10px; }
.heat-meter__scale { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .82rem; font-weight: 600; }
.heat-range { --heat-progress: 0%; -webkit-appearance: none; appearance: none; height: 12px; border-radius: 999px; padding: 0; background: linear-gradient(90deg, rgba(72,112,255,.82) 0%, rgba(111,127,214,.74) 28%, rgba(171,117,168,.74) 58%, rgba(214,118,97,.78) 82%, rgba(255,126,71,.84) 100%) 0/var(--heat-progress) 100% no-repeat, rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.heat-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 3px solid #fff; background: #8c95aa; box-shadow: 0 0 0 5px rgba(125,136,156,.18); cursor: pointer; }
.heat-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #fff; background: #8c95aa; box-shadow: 0 0 0 5px rgba(125,136,156,.18); cursor: pointer; }
.category-carousel { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 16px; align-items: center; position: relative; isolation: isolate; }
.carousel-btn { width: 56px; height: 56px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); font-size: 2.05rem; font-weight: 700; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: Arial, sans-serif; }
.category-stage { position: relative; min-height: 386px; padding-bottom: 4px; overflow: visible; touch-action: pan-y; }
.category-track { position: relative; height: 100%; min-height: 346px; }.category-card {
  position: absolute;
  top: 16px;
  left: 50%;
  width: min(340px, 64vw);
  height: 372px;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(21,26,35,.96), rgba(11,14,20,.98));
  text-align: left;
  cursor: pointer;
  transition: transform .42s cubic-bezier(.22,1,.36,1), opacity .3s ease, box-shadow .28s ease, border-color .28s ease;
  transform-origin: center center;
  will-change: transform, opacity;
}
.category-card__emoji { font-size: 3rem; line-height: 1; margin-bottom: 6px; }
.category-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.category-tag { display: inline-flex; align-items: center; padding: 8px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: rgba(255,255,255,.05); }
.category-tag--premium { color: #ffd7df; background: rgba(255,113,136,.14); }
.category-card__title { font-size: 1.48rem; font-weight: 800; min-height: 64px; display: flex; align-items: flex-start; word-break: break-word; }
.category-card__heat { color: #dbe2ff; font-size: .86rem; font-weight: 700; min-height: 22px; }
.category-card__footer { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:auto; padding-top: 10px; min-height: 56px; border-top: 1px solid rgba(255,255,255,.08); }
.category-card p { margin: 0; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; line-height: 1.55; min-height: 5.9em; }
.category-card__footer span { color: var(--muted); font-size: .9rem; line-height: 1.35; flex: 1 1 auto; min-width: 0; display:flex; align-items:center; min-height: 40px; padding-right: 6px; }
.category-card__add { min-height: 42px; padding: 10px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); font-weight: 700; cursor: pointer; flex: 0 0 auto; }
.category-card__add.is-added { border-color: rgba(102,212,163,.55); background: rgba(102,212,163,.12); }
.category-card.is-selected { border-color: rgba(161, 176, 205, .68); box-shadow: 0 18px 38px rgba(98,131,255,.10); z-index: 5; }
.category-card.is-left { z-index: 3; }
.category-card.is-right { z-index: 4; }
.category-card.is-hidden { opacity: 0; pointer-events: none; }
.category-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; margin-bottom: 6px; }
.category-dot { display:block; flex: 0 0 12px; width: 12px; height: 12px; min-width: 12px; min-height: 12px; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); transition: transform .2s ease, background .2s ease; }
.category-dot.active,
.category-dot.is-active { background: #aeb7ca; transform: scale(1.25); }
.category-dots__count,
.category-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: .9rem;
  font-weight: 700;
}
.selected-categories-box__head span, .profile-summary__item span { color: var(--muted); font-size: .9rem; }
.selected-categories-box { position: relative; z-index: 3; }
.selected-categories, .active-category-badges { display:flex; flex-wrap:wrap; gap:10px; }
.selected-chip, .active-category-badge { display:inline-flex; align-items:center; gap:8px; padding:10px 12px; border-radius:999px; border:1px solid var(--line); background: rgba(255,255,255,.05); font-weight:700; }
.selected-chip button { width:22px; height:22px; border-radius:50%; background: rgba(255,255,255,.08); cursor:pointer; }
.players-list, .decision-grid, .game-meta, .player-form, .stage-actions, .auth-actions, .admin-grid, .admin-form-grid { display: grid; gap: 14px; }
.players-list, .admin-grid { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.game-meta { grid-template-columns: 1fr; }
.game-meta--compact { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.decision-grid { grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); perspective: 1200px; }
.player-form { grid-template-columns: minmax(0,1fr) auto; }
.player-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(17,21,29,.95); cursor: pointer; }
.player-chip strong { font-size: 1rem; }
.player-chip span { color: var(--muted); font-size: .82rem; }
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.action-btn:hover, .topbar-tab:hover, .carousel-btn:hover { transform: translateY(-1px); }
.action-btn--primary { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.08); }
.action-btn--danger { border-color: rgba(255,113,136,.54); background: rgba(255,113,136,.14); }
.action-btn--square { min-width: 52px; font-size: 1.5rem; }
.action-btn:disabled, .carousel-btn:disabled { opacity: .45; cursor: not-allowed; transform:none; }
.inline-status { min-height: 24px; margin: 0; color: var(--muted); font-size: .92rem; }
.inline-status__action {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-left: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
}
.inline-status__action:hover {
  background: rgba(255,255,255,.14);
}
.stage-actions--reverse, .stage-actions--game { grid-template-columns: 1fr 1fr; }
.auth-actions--single { grid-template-columns: 1fr; }
.game-badge, .modal__dialog, .admin-panel { padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel-strong); box-shadow: var(--shadow); }
.game-badge { display: grid; gap: 10px; align-content: start; }
.game-badge strong { display:block; margin-top: 0; font-size:1.15rem; line-height: 1.22; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.game-badge p { margin: 0; color: var(--muted); line-height: 1.62; }
.text-fit-target { min-width: 0; }
.text-fit--compact { font-size: 1rem !important; line-height: 1.28 !important; }
.text-fit--tiny { font-size: .9rem !important; line-height: 1.32 !important; }
.subscription-preview { display: grid; gap: 12px; padding: 22px; }
.subscription-preview .auth-actions { margin-top: 2px; }
.subscription-preview .action-btn { min-height: 46px; }
.decision-card { position: relative; min-height: 280px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, rgba(22,28,37,.98), rgba(12,15,21,1)); cursor: pointer; transform-style: preserve-3d; transition: transform .65s ease, border-color .3s ease, box-shadow .3s ease, opacity .2s ease; }
.decision-card.is-revealed { transform: rotateY(180deg); border-color: rgba(161,176,205,.45); box-shadow: 0 18px 42px rgba(98,131,255,.12); }
.decision-card.is-disabled { opacity: .42; cursor: not-allowed; }
.decision-card__badge { position: absolute; top: 20px; left: 20px; z-index: 3; backface-visibility: hidden; }
.decision-card.is-revealed .decision-card__badge { transform: rotateY(180deg); }
.decision-card__face { position: absolute; inset: 0; display: grid; align-content: center; gap: 10px; padding: 30px 22px 22px; border-radius: inherit; backface-visibility: hidden; }
.decision-card__face h4 { margin:0; font-size: clamp(1.75rem,3vw,2.4rem); font-weight:800; }
.decision-card__face p { margin:0; font-size:.98rem; line-height:1.6; color:var(--muted); }
.decision-card__face--back { transform: rotateY(180deg); background: radial-gradient(circle at top, rgba(98,131,255,.16), transparent 34%), linear-gradient(180deg, rgba(20,25,33,.98), rgba(10,13,18,1)); }
.decision-card__face--back p { color:var(--text); font-size:1.08rem; font-weight:600; }
.truth-solo-game-card {
  gap: 16px;
}
.truth-solo-turn {
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(102, 212, 163, .12), transparent 42%),
    rgba(255,255,255,.045);
}
.truth-solo-turn span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.truth-solo-turn strong {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
}
.truth-solo-game-card .decision-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.truth-solo-game-card .decision-card {
  min-height: 220px;
}
.truth-solo-game-card .decision-card__face {
  justify-items: center;
  text-align: center;
}
.truth-solo-game-card .decision-card__face h4 {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
}
.truth-solo-game-card .stage-actions--game {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.truth-solo-game-categories {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.truth-solo-game-categories > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.alias-word-card .decision-card__face--back {
  justify-items: center;
  text-align: center;
  padding: 42px 32px 32px;
  transform: none;
  opacity: 0;
  transition: opacity .16s ease;
}
.alias-word-card.is-revealed {
  transform: none;
  border-color: rgba(161,176,205,.45);
  box-shadow: 0 18px 42px rgba(98,131,255,.12);
}
.alias-word-card.is-revealed .decision-card__badge {
  transform: none;
}
.alias-word-card.is-revealed .decision-card__face--front {
  opacity: 0;
}
.alias-word-card.is-revealed .decision-card__face--back {
  opacity: 1;
}
.alias-word-card .decision-card__face--back p {
  max-width: 18ch;
  font-size: clamp(1.9rem, 4.8vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.02em;
}
.alias-word-card__start-pill {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: min(260px, 78%);
  margin-top: 2px;
  padding: 0 28px;
  border: 1px solid rgba(102, 212, 163, .72);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(102,212,163,.95), rgba(58,190,132,.88));
  color: #062016;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 18px 34px rgba(102,212,163,.18);
}
.alias-word-card__start-pill[hidden] {
  display: none !important;
}
.alias-room-ready-text:empty {
  display: none !important;
}
.alias-setup-grid,
.alias-settings-grid,
.alias-scoreboard,
.alias-round-stats {
  display: grid;
  gap: 14px;
}
.alias-setup-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.alias-settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.alias-format-card,
.alias-setting-card,
.alias-toggle-card,
.alias-timer-panel,
.alias-round-summary,
.alias-victory-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}
.alias-format-card {
  display: grid;
  gap: 8px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.alias-format-card:hover { transform: translateY(-1px); }
.alias-format-card.is-active {
  border-color: rgba(161,176,205,.45);
  background: linear-gradient(180deg, rgba(31,39,53,.98), rgba(14,18,25,1));
}
.alias-format-card span,
.alias-setting-card span,
.alias-toggle-card small,
.alias-timer-panel__head span,
.alias-score-chip span,
.alias-round-stats span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.alias-format-card span {
  text-transform: uppercase;
  letter-spacing: .16em;
}
.alias-format-card strong {
  font-size: 1.08rem;
  line-height: 1.25;
}
.alias-format-card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}
.alias-setting-card,
.alias-toggle-card {
  display: grid;
  gap: 10px;
}
.alias-setting-card input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  color: var(--text);
  font: inherit;
  font-weight: 800;
}
.alias-toggle-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}
.alias-toggle-card input {
  width: 22px;
  height: 22px;
  accent-color: #a1b0cd;
}
.alias-toggle-card strong,
.alias-toggle-card small {
  display: block;
}
.alias-toggle-card small {
  margin-top: 4px;
  line-height: 1.45;
}
.alias-scoreboard {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.alias-score-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}
.alias-score-chip.is-active {
  border-color: rgba(161,176,205,.42);
  background: rgba(161,176,205,.1);
}
.alias-score-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.alias-score-chip strong {
  font-size: 1.18rem;
}
.alias-timer-panel {
  display: grid;
  gap: 12px;
  position: relative;
}
.alias-timer-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.alias-timer-panel__metric {
  display: grid;
  gap: 5px;
}
.alias-timer-panel__metric--score {
  margin-left: auto;
  text-align: right;
}
.alias-timer-panel__head strong {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}
.alias-timer-panel__metric--score strong {
  color: var(--text);
}
.alias-timer-panel__metric--score strong.is-positive {
  color: var(--success);
}
.alias-timer-panel__metric--score strong.is-negative {
  color: var(--danger);
}
.alias-score-pop {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
  color: var(--success);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 8px 24px rgba(0,0,0,.28);
  animation: alias-score-pop .72s ease-out forwards;
}
.alias-score-pop--danger {
  color: var(--danger);
}
@keyframes alias-score-pop {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(.8);
  }
  18% {
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translateY(-32px) scale(1);
  }
}
.alias-timer-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}
.alias-timer-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8fb4ff, #e3e8f4);
  transition: width .25s linear;
}
.alias-round-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.alias-round-stats div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}
.alias-round-stats strong {
  font-size: 1.45rem;
}
.alias-round-summary,
.alias-victory-panel {
  display: grid;
  gap: 8px;
}
.alias-round-summary.hidden,
.alias-victory-panel.hidden {
  display: none !important;
}
.alias-round-summary h4,
.alias-victory-panel h4 {
  margin: 0;
  font-size: 1.35rem;
}
.alias-round-summary p,
.alias-victory-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.alias-play-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stage-card[data-alias-stage="game"] .stage-card__head,
.stage-card[data-alias-stage="game"] .game-badge:not(.game-badge--center) {
  display: none !important;
}
.stage-card[data-alias-stage="game"] .game-meta {
  order: 1;
  grid-template-columns: 1fr;
}
.stage-card[data-alias-stage="game"] .game-badge--center {
  justify-items: center;
  text-align: center;
}
.stage-card[data-alias-stage="game"] .alias-timer-panel { order: 2; }
.stage-card[data-alias-stage="game"] .alias-word-card { order: 3; }
.stage-card[data-alias-stage="game"] .alias-round-stats { order: 4; }
.stage-card[data-alias-stage="game"] .alias-round-summary,
.stage-card[data-alias-stage="game"] .alias-victory-panel { order: 5; }
.stage-card[data-alias-stage="game"] #alias-status { order: 6; }
.stage-card[data-alias-stage="game"] .alias-play-actions { order: 7; }
.stage-card[data-alias-stage="game"] .alias-scoreboard { order: 8; }
.stage-card[data-alias-stage="game"][data-alias-phase="ready"],
.stage-card[data-alias-stage="game"][data-alias-phase="active"] {
  gap: 14px;
}
.stage-card[data-alias-stage="game"][data-alias-phase="ready"] .alias-timer-panel,
.stage-card[data-alias-stage="game"][data-alias-phase="ready"] .alias-round-stats,
.stage-card[data-alias-stage="game"][data-alias-phase="ready"] .alias-round-summary,
.stage-card[data-alias-stage="game"][data-alias-phase="ready"] .alias-victory-panel,
.stage-card[data-alias-stage="game"][data-alias-phase="ready"] #alias-status,
.stage-card[data-alias-stage="game"][data-alias-phase="ready"] #alias-correct-btn,
.stage-card[data-alias-stage="game"][data-alias-phase="ready"] #alias-skip-btn,
.stage-card[data-alias-stage="game"][data-alias-phase="ready"] #alias-next-btn,
.stage-card[data-alias-stage="game"][data-alias-phase="active"] .alias-round-stats,
.stage-card[data-alias-stage="game"][data-alias-phase="active"] .alias-round-summary,
.stage-card[data-alias-stage="game"][data-alias-phase="active"] .alias-victory-panel,
.stage-card[data-alias-stage="game"][data-alias-phase="active"] #alias-status,
.stage-card[data-alias-stage="game"][data-alias-phase="active"] #alias-next-btn,
.stage-card[data-alias-stage="game"][data-alias-phase="active"] #alias-restart-btn {
  display: none !important;
}
.stage-card[data-alias-stage="game"][data-alias-phase="active"] .alias-play-actions {
  order: 4;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stage-card[data-alias-stage="game"][data-alias-phase="active"] .alias-scoreboard {
  order: 8;
  margin-top: 4px;
}
.stage-card[data-alias-stage="game"][data-alias-phase="ready"] .alias-word-card {
  min-height: clamp(260px, 45dvh, 430px);
}
.stage-card.alias-game--ready,
.stage-card.alias-game--active {
  gap: 14px;
}
.alias-game--ready .stage-card__head,
.alias-game--ready .alias-timer-panel,
.alias-game--ready .alias-round-stats,
.alias-game--ready .alias-round-summary,
.alias-game--ready .alias-victory-panel,
.alias-game--ready #alias-status,
.alias-game--ready #alias-correct-btn,
.alias-game--ready #alias-skip-btn,
.alias-game--ready #alias-next-btn,
.alias-game--active .stage-card__head,
.alias-game--active .alias-round-stats,
.alias-game--active .alias-round-summary,
.alias-game--active .alias-victory-panel,
.alias-game--active #alias-status,
.alias-game--active #alias-next-btn,
.alias-game--active #alias-restart-btn,
.alias-game--summary .stage-card__head,
.alias-game--summary .game-meta,
.alias-game--summary .alias-timer-panel,
.alias-game--summary .alias-word-card,
.alias-game--summary #alias-status,
.alias-game--summary #alias-correct-btn,
.alias-game--summary #alias-skip-btn {
  display: none !important;
}
.alias-game--ready .alias-word-card {
  min-height: 360px;
}
.alias-game--ready .alias-play-actions {
  grid-template-columns: 1fr;
}
.alias-game--ready .alias-word-card .decision-card__face--front {
  justify-items: center;
  text-align: center;
}
.alias-game--ready .alias-word-card .decision-card__face--front h4 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}
.alias-game--active .alias-word-card {
  min-height: clamp(300px, 48dvh, 520px);
}
.alias-game--active .alias-play-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.alias-game--active .alias-play-actions .action-btn {
  min-height: 58px;
  font-size: 1rem;
}
.alias-game--summary .alias-play-actions {
  grid-template-columns: 1fr 1fr;
}
body.alias-minimal-play .site-footer {
  display: none;
}
body.alias-room-game-page .room-game-summary,
body.alias-room-game-page .room-chat,
body.alias-room-game-page .site-footer {
  display: none !important;
}
.alias-room-panel {
  display: grid;
  gap: 14px;
}
.alias-room-panel .alias-word-card {
  min-height: clamp(300px, 46dvh, 520px);
}
.alias-room-panel[data-phase="ready"] .alias-scoreboard,
.alias-room-panel[data-phase="ready"] .alias-timer-panel,
.alias-room-panel[data-phase="ready"] .alias-round-summary,
.alias-room-panel[data-phase="summary"] .alias-timer-panel,
.alias-room-panel[data-phase="summary"] .alias-word-card,
.alias-room-panel[data-phase="finished"] .alias-timer-panel,
.alias-room-panel[data-phase="finished"] .alias-word-card {
  display: none !important;
}
.alias-room-panel[data-phase="active"] .alias-scoreboard,
.alias-room-panel[data-phase="active"] .alias-round-summary,
.alias-room-panel[data-phase="active"] #alias-room-status {
  display: none !important;
}
.alias-room-panel[data-phase="ready"] .alias-word-card {
  min-height: min(470px, calc(100dvh - 230px));
}
.alias-room-panel[data-phase="active"] .alias-play-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.alias-room-panel .alias-play-actions .action-btn {
  min-height: 58px;
}
.alias-room-panel[data-phase="summary"] .alias-play-actions,
.alias-room-panel[data-phase="finished"] .alias-play-actions {
  grid-template-columns: 1fr;
}

.alias-category-edit-dialog {
  display: grid;
  gap: 10px;
  width: min(94vw, 560px);
  max-height: min(82dvh, 640px);
  padding: 18px;
  overflow: hidden;
}
.alias-category-edit-list {
  grid-template-columns: 1fr;
  max-height: min(42dvh, 320px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
}
.alias-category-edit-item {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 14px;
}
.alias-category-edit-item .truth-invite-category__emoji {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 1rem;
}
.alias-category-edit-item .truth-invite-category__title {
  font-size: .88rem;
}
.alias-category-edit-item .truth-create-category__mark {
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  font-size: .68rem;
}
.alias-category-edit-item.is-selected .truth-create-category__mark {
  background: rgba(255,255,255,.1);
  color: var(--text);
}

.truth-category-edit-dialog {
  display: grid;
  gap: 14px;
  width: min(94vw, 560px);
  max-height: calc(100dvh - 32px);
}
#truth-category-edit-modal {
  z-index: 1700;
}

#truth-category-edit-modal:not(.hidden) {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

#premium-gate-modal,
#reverse-word-premium-gate-modal,
#room-photo-premium-modal,
#bottle-premium-modal {
  z-index: 2600;
}

#premium-gate-modal:not(.hidden),
#reverse-word-premium-gate-modal:not(.hidden),
#room-photo-premium-modal:not(.hidden),
#bottle-premium-modal:not(.hidden) {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

#premium-gate-modal .premium-gate-modal__dialog,
#reverse-word-premium-gate-modal .premium-gate-modal__dialog,
#room-photo-premium-modal .premium-gate-modal__dialog,
#bottle-premium-modal .premium-gate-modal__dialog {
  max-height: calc(100dvh - 32px);
}

.truth-category-edit-list {
  grid-template-columns: 1fr;
  max-height: min(54dvh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
}
.truth-category-edit-item {
  min-height: 54px;
}
.truth-category-edit-item.is-selected .truth-create-category__mark {
  background: rgba(255,255,255,.1);
  color: var(--text);
}

body.overnight-room-game-page .site-footer,
body.overnight-room-game-page .room-game-hero,
body.overnight-room-game-page #chat-expand-btn {
  display: none !important;
}
body.overnight-room-game-page .room-game-page {
  width: min(100%, 1560px);
  padding-top: 4px;
  padding-bottom: 6px;
}
body.overnight-room-game-page .room-game-stage {
  padding: 5px;
  gap: 0;
  overflow: visible;
}
.overnight-room-panel { display: grid; gap: 8px; }
.overnight-room-footer {
  display: flex;
  justify-content: center;
}
.overnight-room-leave-btn {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(248, 113, 113, .28);
  border-radius: 999px;
  background: rgba(248, 113, 113, .08);
  color: #ffc4c4;
  font-size: .72rem;
  font-weight: 900;
  cursor: pointer;
}
.overnight-room-leave-btn:hover {
  border-color: rgba(248, 113, 113, .45);
  background: rgba(248, 113, 113, .14);
}
.overnight-room-visual {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  justify-content: center;
}
.overnight-room-scoreboard { display: grid; align-content: start; gap: 6px; }
.overnight-room-player,
.overnight-room-card { border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .04); }
.overnight-room-player {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 3px 6px;
  align-items: center;
  min-height: 72px;
  padding: 7px;
  border-radius: 9px;
  border-color: color-mix(in srgb, var(--player-color, rgba(255,255,255,.18)) 55%, rgba(255,255,255,.12));
}
.overnight-room-player.is-active { border-color: var(--player-color, rgba(102, 212, 163, .65)); background: color-mix(in srgb, var(--player-color, #66d4a3) 18%, rgba(255,255,255,.04)); }
.overnight-room-player.is-jailed { border-color: rgba(248, 113, 113, .42); background: rgba(248, 113, 113, .08); }
.overnight-room-player.is-bankrupt { opacity: .5; filter: grayscale(.35); }
.overnight-room-player__avatar {
  display: grid;
  grid-row: span 3;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--player-color, rgba(102, 212, 163, .38));
  color: #effff5;
  font-size: .82rem;
  font-weight: 900;
}
.overnight-room-player__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.overnight-room-player__head em,
.overnight-room-turn-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 19px; padding: 2px 6px; border: 1px solid rgba(102, 212, 163, .32); border-radius: 999px; color: #bff6d7; background: rgba(102, 212, 163, .10); font-size: .56rem; font-style: normal; font-weight: 900; text-transform: uppercase; }
.overnight-room-turn-badge.is-my-turn { border-color: rgba(102, 212, 163, .68); color: #f7fff9; background: rgba(102, 212, 163, .20); }
.overnight-room-player strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .73rem; }
.overnight-room-player span { color: var(--muted); font-size: .61rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overnight-room-player__stats { display: flex; flex-wrap: wrap; gap: 2px 5px; align-items: baseline; }
.overnight-room-player__stats b { color: var(--text); font-size: .7rem; }
.overnight-room-player__stats small { color: var(--muted); font-size: .55rem; }
.overnight-room-player.is-trade-target {
  box-shadow: 0 0 0 2px rgba(102, 212, 163, .22);
}
.overnight-room-player__trade {
  grid-column: 1 / -1;
  min-height: 26px;
  border: 1px solid rgba(102, 212, 163, .34);
  border-radius: 8px;
  background: rgba(102, 212, 163, .12);
  color: #dfffee;
  font-size: .62rem;
  font-weight: 900;
  cursor: pointer;
}
.overnight-room-player__trade:hover {
  border-color: rgba(102, 212, 163, .58);
  background: rgba(102, 212, 163, .20);
}
.overnight-room-map {
  position: relative;
  min-height: 112px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.overnight-room-route { grid-auto-columns: minmax(118px, 13vw); padding-bottom: 0; }
.overnight-room-route .overnight-route__cell { min-height: 90px; }

.overnight-room-board-layout {
  gap: 14px;
}

.overnight-room-map--board {
  display: grid;
  --edge-size: clamp(58px, 4.65vw, 74px);
  --corner-size: calc(var(--edge-size) * 1.78);
  grid-template-columns: var(--corner-size) repeat(var(--edge-count, 9), var(--edge-size)) var(--corner-size);
  grid-template-rows: var(--corner-size) repeat(var(--edge-count, 9), var(--edge-size)) var(--corner-size);
  place-items: stretch;
  width: max-content;
  max-width: none;
  min-width: 0;
  aspect-ratio: auto;
  min-height: 0;
  margin: 0 auto;
  padding: 4px;
  overflow: visible;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 46%, rgba(102, 212, 163, .10), transparent 34%),
    rgba(255,255,255,.035);
}

.overnight-room-route--board {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  grid-template-columns: var(--corner-size) repeat(var(--edge-count, 9), var(--edge-size)) var(--corner-size);
  grid-template-rows: var(--corner-size) repeat(var(--edge-count, 9), var(--edge-size)) var(--corner-size);
  grid-auto-flow: initial;
  grid-auto-columns: initial;
  gap: 3px;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  overflow: visible;
}

.overnight-room-route--board .overnight-route__cell {
  position: relative;
  min-height: 0;
  align-content: center;
  justify-items: center;
  gap: 1px;
  padding: 13px 4px 4px;
  border-radius: 5px;
  border-color: color-mix(in srgb, var(--cell-color, rgba(255,255,255,.16)) 55%, rgba(255,255,255,.12));
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  overflow: hidden;
}

.overnight-room-route--board .overnight-route__color {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  border-radius: 5px 5px 0 0;
  background: var(--cell-color, #66d4a3);
}
.overnight-room-route--board .overnight-route__cell.is-owned .overnight-route__color {
  background: var(--owner-color, var(--cell-color, #66d4a3));
}
.overnight-room-route--board .overnight-route__cell.is-owned {
  border-color: color-mix(in srgb, var(--owner-color, #66d4a3) 72%, rgba(255,255,255,.12));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--owner-color, #66d4a3) 28%, transparent);
}
.overnight-room-route--board .overnight-route__cell.is-mortgaged {
  opacity: .62;
}
.overnight-room-route--board .overnight-route__cell.is-trade-selectable {
  cursor: pointer;
  outline: 1px dashed rgba(102, 212, 163, .42);
  outline-offset: -4px;
}
.overnight-room-route--board .overnight-route__cell.is-trade-selected {
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.72),
    0 0 0 2px color-mix(in srgb, var(--owner-color, #66d4a3) 72%, transparent);
}

.overnight-room-route--board .overnight-route__cell--chance .overnight-route__color,
.overnight-room-route--board .overnight-route__cell--chest .overnight-route__color,
.overnight-room-route--board .overnight-route__cell--tax .overnight-route__color,
.overnight-room-route--board .overnight-route__cell--start .overnight-route__color,
.overnight-room-route--board .overnight-route__cell--corner .overnight-route__color {
  height: 100%;
  opacity: .1;
}

.overnight-room-route--board .overnight-route__cell--transport .overnight-route__color,
.overnight-room-route--board .overnight-route__cell--utility .overnight-route__color {
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 7px, rgba(255,255,255,.18) 7px 14px);
}

.overnight-room-route--board .overnight-route__cell--venue .overnight-route__icon,
.overnight-room-route--board .overnight-route__cell--transport .overnight-route__icon,
.overnight-room-route--board .overnight-route__cell--utility .overnight-route__icon {
  display: none;
}

.overnight-room-route--board .overnight-route__cell--venue strong,
.overnight-room-route--board .overnight-route__cell--transport strong,
.overnight-room-route--board .overnight-route__cell--utility strong {
  font-size: clamp(.72rem, 1.02vw, 1.2rem);
  line-height: .9;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: none;
}

.overnight-room-route--board .overnight-route__cell--venue em,
.overnight-room-route--board .overnight-route__cell--transport em,
.overnight-room-route--board .overnight-route__cell--utility em {
  margin-top: 2px;
  font-size: clamp(.42rem, .48vw, .58rem);
}

.overnight-room-board-center {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 3px;
  grid-column: 4 / 9;
  grid-row: 4 / 9;
  min-width: 0;
  min-height: 0;
  padding: 3px;
  z-index: 2;
}

.overnight-room-dice-stage {
  position: absolute;
  left: 50%;
  top: 39%;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translate(-50%, -50%) rotate(-5deg);
  pointer-events: none;
}
.overnight-room-dice-stage.hidden {
  display: none;
}
.overnight-room-dice-stage i {
  display: grid;
  place-items: center;
  width: clamp(58px, 6vw, 82px);
  height: clamp(58px, 6vw, 82px);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(145deg, rgba(24, 35, 48, .96), rgba(8, 13, 21, .96));
  box-shadow: 0 12px 34px rgba(0,0,0,.36);
  color: #f8fafc;
  font-size: 1.9rem;
  font-style: normal;
  font-weight: 1000;
}
.overnight-room-dice-stage.is-double i {
  border-color: rgba(102, 212, 163, .62);
  box-shadow: 0 0 0 4px rgba(102, 212, 163, .10), 0 12px 34px rgba(0,0,0,.36);
}
.overnight-room-dice-stage.is-rolling i {
  animation: overnightDiceDrop .64s linear infinite;
}

.overnight-room-board-center .overnight-room-card,
.overnight-room-chat-slot .room-chat {
  min-height: 0;
  border-radius: 12px;
  background: rgba(7, 11, 18, .78);
  backdrop-filter: blur(10px);
}

.overnight-room-chat-slot {
  min-height: 0;
  display: grid;
}

.overnight-room-chat-slot .room-chat {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.overnight-room-chat-slot .room-chat__header {
  padding: 5px 8px;
}
.overnight-room-chat-slot .room-chat__head-copy span,
.overnight-room-chat-slot .room-chat__media-btn {
  display: none;
}
.overnight-room-chat-slot .room-chat__messages {
  padding: 3px 4px;
  gap: 2px;
  font-size: .64rem;
}
.overnight-room-chat-slot .chat-message {
  width: 100%;
}
.overnight-room-chat-slot .chat-message__bubble {
  max-width: min(58%, 270px);
  gap: 2px;
  padding: 4px 6px;
  border-radius: 8px;
}
.overnight-room-chat-slot .chat-message__meta {
  gap: 5px;
  min-height: 10px;
}
.overnight-room-chat-slot .chat-message__author,
.overnight-room-chat-slot .chat-message__time {
  font-size: .44rem;
  line-height: 1;
}
.overnight-room-chat-slot .chat-message__text {
  font-size: .64rem;
  line-height: 1.18;
}
.overnight-room-chat-slot .chat-message__badge {
  min-height: 14px;
  padding: 1px 4px;
  font-size: .44rem;
}
.overnight-room-chat-slot .chat-message__system {
  max-width: min(78%, 300px);
  padding: 3px 6px;
  border-radius: 999px;
  font-size: .58rem;
  line-height: 1.18;
}
.overnight-room-chat-slot .room-chat__composer {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 5px;
}
.overnight-room-chat-slot .room-chat__input {
  min-height: 28px;
  border-radius: 9px;
  padding: 4px 8px;
  font-size: .78rem;
}
.overnight-room-chat-slot .room-chat__send--icon {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  border-radius: 9px;
}

.overnight-route__cell--venue strong::after { display: none; }
.overnight-room-map__line {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(102,212,163,.18), rgba(102,212,163,.62), rgba(124,149,255,.24));
}
.overnight-room-map__pins { position: relative; min-height: 48px; }
.overnight-room-map__pin {
  position: absolute;
  top: 7px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 92px;
}
.overnight-room-map__pin i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: #233a35;
  color: #f5fff9;
  font-style: normal;
  font-weight: 900;
}
.overnight-room-map__pin.is-active i { border-color: rgba(102,212,163,.76); box-shadow: 0 0 0 6px rgba(102,212,163,.10); }
.overnight-room-map__pin span { max-width: 92px; color: var(--muted); font-size: .68rem; line-height: 1.15; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overnight-room-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; padding: 7px; }
.overnight-room-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.overnight-room-card__top > div { display: grid; gap: 4px; }
.overnight-room-card__top { grid-column: 1 / -1; }
.overnight-room-position { display: none; }
.overnight-room-dice {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: 72px auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  min-height: 48px;
  border: 1px solid rgba(102, 212, 163, .42);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(102, 212, 163, .22), rgba(60, 180, 220, .12));
  color: var(--text);
  font-size: .82rem;
  font-weight: 900;
  cursor: pointer;
}
.overnight-room-dice__faces {
  display: flex;
  gap: 4px;
}
.overnight-room-dice__faces i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  font-size: 1.25rem;
  font-style: normal;
  line-height: 1;
}
.overnight-room-dice.is-rolling .overnight-room-dice__faces i {
  animation: overnightDiceRoll .64s linear infinite;
}
.overnight-room-dice.is-rolling .overnight-room-dice__faces i:nth-child(2) {
  animation-delay: .08s;
}
@keyframes overnightDiceRoll {
  0% { transform: rotate(0deg) scale(1); }
  35% { transform: rotate(14deg) scale(1.08); }
  70% { transform: rotate(-12deg) scale(.98); }
  100% { transform: rotate(0deg) scale(1); }
}
@keyframes overnightDiceDrop {
  0% { transform: translate3d(-6px, -10px, 0) rotate(-18deg); }
  35% { transform: translate3d(8px, 6px, 0) rotate(16deg); }
  70% { transform: translate3d(-4px, 2px, 0) rotate(-10deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}
.overnight-room-dice:disabled { cursor: not-allowed; opacity: .55; }
.overnight-room-place {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 46px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: radial-gradient(circle at top left, rgba(102,212,163,.12), transparent 45%), rgba(255,255,255,.035);
}
.overnight-room-place__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255,255,255,.07);
  font-size: 1.35rem;
}
.overnight-room-place span { color: var(--muted); font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.overnight-room-place h3,
.overnight-room-place p { margin: 0; }
.overnight-room-place h3 { font-size: .86rem; line-height: 1.05; }
.overnight-room-place p { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); line-height: 1.2; font-size: .66rem; }
.overnight-room-choices { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.overnight-room-choices.is-single { grid-template-columns: minmax(0, 1fr); }
.overnight-choice-btn { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-content: center; gap: 2px 6px; min-height: 38px; white-space: normal; text-align: left; }
.overnight-choice-btn i { display: grid; grid-row: span 2; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(255,255,255,.08); font-style: normal; font-weight: 900; }
.overnight-choice-btn strong { font-size: .72rem; line-height: 1.08; }
.overnight-choice-btn span { color: var(--muted); font-size: .54rem; line-height: 1.18; text-transform: uppercase; font-weight: 900; }
body.overnight-room-game-page #overnight-room-status {
  display: none;
}
.overnight-trade-layer {
  position: absolute;
  inset: 0;
  z-index: 520;
  display: grid;
  place-items: center;
  padding: 8px;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}
.overnight-trade-layer.hidden {
  display: none;
}
.overnight-trade-dialog {
  position: relative;
  pointer-events: auto;
  display: grid;
  gap: 10px;
  width: min(470px, calc(100% - 20px));
  max-height: min(92%, 520px);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 0, rgba(102, 212, 163, .12), transparent 38%),
    linear-gradient(180deg, #121926 0%, #0b111c 100%);
  box-shadow: 0 18px 52px rgba(0,0,0,.44);
}
.overnight-trade-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
}
.overnight-trade-title {
  display: grid;
  gap: 4px;
  padding-right: 40px;
}
.overnight-trade-title span,
.overnight-trade-columns small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.overnight-trade-title strong {
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.05;
}
.overnight-trade-hint {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.35;
}
.overnight-trade-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.overnight-trade-columns section {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 120px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}
.overnight-trade-columns label {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.overnight-trade-columns label i {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 10px;
  background: rgba(102, 212, 163, .14);
  color: #bff6d7;
  font-style: normal;
  font-weight: 1000;
}
.overnight-trade-columns input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(0,0,0,.18);
  color: var(--text);
  padding: 0 10px;
  font-weight: 900;
}
.overnight-trade-columns b {
  color: var(--text);
}
.overnight-trade-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.overnight-trade-list b,
.overnight-trade-empty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-size: .72rem;
  line-height: 1.15;
}
.overnight-trade-list b span {
  color: rgba(203, 213, 225, .76);
  font-size: .66rem;
  font-weight: 1000;
  white-space: nowrap;
}
.overnight-trade-empty {
  color: var(--muted);
}
.overnight-trade-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.overnight-room-history { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 10px; }
.overnight-room-history__head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.overnight-room-history__empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 6px; padding: 18px; border: 1px dashed rgba(255,255,255,.12); border-radius: 18px; color: var(--muted); text-align: center; }
.overnight-room-history__empty span { font-size: 1.8rem; }
.overnight-room-history__empty strong { color: var(--text); }
.overnight-room-history__empty p { margin: 0; }
.overnight-room-story {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.overnight-room-story span { font-size: 1.45rem; }
.overnight-room-story strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; line-height: 1.2; }
.overnight-room-story small { color: var(--muted); font-size: .76rem; }
.overnight-story-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.overnight-story-modal.hidden { display: none !important; }
.overnight-story-modal__overlay { position: absolute; inset: 0; background: rgba(4,6,10,.74); backdrop-filter: blur(8px); }
.overnight-story-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(24,29,39,.98), rgba(9,12,18,.98));
  box-shadow: var(--shadow);
}
.overnight-story-modal__close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.06); color: var(--text); font-size: 1.2rem; cursor: pointer; }
.overnight-story-modal__icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: rgba(102,212,163,.12); font-size: 2.4rem; }
.overnight-story-modal__dialog h3,
.overnight-story-modal__dialog p { margin: 0; }
.overnight-story-modal__dialog h3 { font-size: clamp(1.35rem, 5vw, 2rem); line-height: 1.12; }
.overnight-story-modal__dialog p { color: var(--muted); line-height: 1.65; }
.overnight-story-modal__stats { display: flex; flex-wrap: wrap; gap: 8px; }
.overnight-story-modal__stats span { padding: 7px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); font-size: .8rem; font-weight: 800; }
body.alias-minimal-play .app-shell {
  gap: 10px;
}
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; overflow: hidden; }
.modal.hidden { display: none !important; }
.modal__overlay { position: absolute; inset: 0; z-index: 0; background: rgba(4, 6, 10, .72); backdrop-filter: blur(8px); }
.modal__dialog, .task-modal__dialog { position: relative; z-index: 1; width: min(720px, 100%); display: grid; gap: 18px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; pointer-events: auto; }
.modal__header, .account-panel, .profile-summary { display:grid; gap: 12px; }
.modal__close { position:absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); font-size: 1.5rem; cursor:pointer; }
#account-modal {
  z-index: 3200;
}
.auth-form { display:grid; gap:14px; }
.auth-form--modal label, .admin-panel label { display:grid; gap:8px; }
.auth-form span, .admin-panel span { font-size:.84rem; font-weight:700; color:var(--muted); }
.account-mode-tabs {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.04);
}
.account-mode-tab {
  min-height:42px;
  padding:10px 12px;
  border:0;
  border-radius:13px;
  background:transparent;
  color:var(--muted);
  font-size:.9rem;
  font-weight:800;
  line-height:1.15;
  overflow-wrap:anywhere;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, box-shadow .18s ease;
}
.account-mode-tab.is-active {
  background:rgba(255,255,255,.1);
  color:var(--text);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.account-mode-tab:focus-visible {
  outline:2px solid rgba(116,177,255,.7);
  outline-offset:2px;
}
.social-auth { display:grid; gap:12px; margin-top:4px; }
.social-auth__divider { position:relative; text-align:center; }
.social-auth__divider::before { content:''; position:absolute; inset:50% 0 auto; height:1px; background:rgba(255,255,255,.08); }
.social-auth__divider span { position:relative; display:inline-block; padding:0 12px; background:var(--surface); color:var(--muted); font-size:.82rem; font-weight:700; }
.social-auth__buttons { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
.social-auth__button { display:grid; justify-items:center; gap:8px; min-height:78px; padding:12px 8px; border-radius:18px; border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.03); color:var(--text); transition:transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease; }
.social-auth__button:hover:not(:disabled) { transform:translateY(-1px); border-color:rgba(116,177,255,.36); background:rgba(116,177,255,.08); }
.social-auth__button:disabled { opacity:.48; cursor:not-allowed; }
.social-auth__button svg { width:22px; height:22px; display:block; }
.social-auth__button span { font-size:.82rem; font-weight:700; }
.social-auth__button--telegram { color:#72c3ff; }
.social-auth__note { margin:0; color:var(--muted); font-size:.86rem; line-height:1.45; text-align:center; }
#social-provider-modal,
#social-email-modal {
  z-index: 5000 !important;
}
.social-provider-modal { max-width: 460px; }
.social-provider-stage { display:grid; gap:14px; justify-items:center; padding:8px 0 2px; min-height:72px; }
.social-provider-stage__widget { display:grid; justify-items:center; width:100%; }
.profile-summary { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.admin-users-list, .admin-prompts-list { display:grid; gap:10px; max-height: 420px; overflow:auto; }
.admin-user, .admin-prompt { display:grid; gap:10px; padding:14px; border:1px solid var(--line); border-radius:16px; background: rgba(255,255,255,.03); }
.admin-user__row, .admin-prompt__row { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.admin-user__row--wallet { padding:10px 12px; border:1px solid rgba(255,210,72,.28); border-radius:14px; background:linear-gradient(135deg, rgba(255,225,94,.12), rgba(255,126,45,.08)); }
.admin-user__row--wallet strong { color:#ffe16f; }
.admin-link-button { display:inline; padding:0; color:#dbe7ff; font-weight:800; text-align:left; text-decoration:underline; text-decoration-color:rgba(219,231,255,.34); text-underline-offset:3px; cursor:pointer; }
.admin-link-button:hover { color:#fff; text-decoration-color:rgba(255,255,255,.72); }
.admin-payment-client-evidence { display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:8px; padding:12px; border:1px solid rgba(116,177,255,.22); border-radius:14px; background:rgba(116,177,255,.06); }
.admin-payment-client-evidence > span { grid-column:1 / -1; color:var(--muted); font-size:.78rem; font-weight:800; }
.admin-payment-client-evidence div { display:grid; gap:4px; min-width:0; }
.admin-payment-client-evidence small { color:var(--muted); font-size:.72rem; font-weight:800; }
.admin-payment-client-evidence strong { min-width:0; overflow-wrap:anywhere; font-size:.9rem; line-height:1.35; }
.admin-user-payments-modal__dialog { width:min(980px, 100%); }
.admin-coin-credit-modal__dialog { width:min(560px, 100%); }
.admin-coin-credit-form { margin-top:10px; }
.admin-user-payments-profile { display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); gap:10px; }
.admin-user-payments-profile__item { display:grid; gap:6px; padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.035); }
.admin-user-payments-profile__item span { color:var(--muted); font-size:.78rem; font-weight:800; }
.admin-user-payments-profile__item strong { min-width:0; overflow-wrap:anywhere; font-size:.95rem; line-height:1.35; }
.admin-user-payments-list { max-height:460px; }
.admin-user-payment-history-item .admin-user__row span { min-width:0; overflow-wrap:anywhere; }
.admin-prompt__row span { display: block; flex: 1; line-height: 1.5; color: var(--text); }
.task-modal__dialog { width: min(880px, 100%); padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(180deg, rgba(16,21,29,.98), rgba(8,10,15,1)); box-shadow: var(--shadow); }
.task-modal__content { display:grid; gap: 8px; text-align:center; }
.task-modal__content h3 { font-size: clamp(2rem, 4vw, 3.8rem); margin: 0; }
.task-modal__player { color: var(--muted); font-size: 1rem; margin: 0; }
.task-modal__category { color: #dbe2ff; font-size: .98rem; font-weight: 700; margin: 0 0 2px; }
.task-modal__text-wrap { min-height: 220px; display:grid; place-items:center; padding: 16px; margin-top: 6px; border:1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.03); }
.task-modal__text { font-size: clamp(1.3rem, 2.6vw, 2rem); color: var(--text); line-height: 1.45; font-weight: 700; }
.task-modal__actions { display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; position: relative; z-index: 2; }
.site-footer { max-width: var(--content-width); margin: 14px auto 0; padding: 18px 0 18px; }
body.truth-solo-game-active .site-footer { display: none; }
.page-shell > .site-footer { margin-top: auto; }
.site-footer__links { display:flex; flex-wrap:wrap; gap:10px; }
.site-footer__links--centered { justify-content:center; }
.site-footer__meta { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight: 600;
}
.site-footer__links .site-footer__telegram {
  width: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 50%;
  color: #9ac8ff;
  background: linear-gradient(180deg, rgba(43, 128, 255, 0.2), rgba(19, 91, 191, 0.12));
  border-color: rgba(84, 166, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 8px 18px rgba(13, 93, 186, 0.18);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.site-footer__links .site-footer__telegram:hover {
  transform: translateY(-1px);
  color: #d8ecff;
  background: linear-gradient(180deg, rgba(58, 149, 255, 0.28), rgba(25, 101, 205, 0.18));
  border-color: rgba(122, 191, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 10px 22px rgba(17, 111, 220, 0.24);
}
.site-footer__links .site-footer__telegram svg {
  width: 18px;
  height: 18px;
  display: block;
}
.legal-shell { display: grid; gap: 18px; max-width: var(--content-width); margin: 0 auto; }
.legal-document {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.legal-copy { white-space: pre-line; color: var(--muted); line-height: 1.72; font-size: .95rem; }
.hidden { display:none !important; }
.hub-shell { gap: 20px; }
.hub-hero { position: relative; overflow: hidden; }
.hub-hero::after {
  content: '';
  position: absolute;
  inset: auto -12% -36% 40%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116,177,255,.18), transparent 65%);
  pointer-events: none;
}
.hub-hero__copy, .hub-hero__side { gap: 16px; }
.hub-hero__actions, .hub-card__chips, .hub-info-grid { display: grid; gap: 12px; }
.hub-hero__actions { grid-template-columns: repeat(2, minmax(0, max-content)); align-items: start; }
.hub-stat-grid, .hub-grid, .hub-info-grid { display: grid; gap: 16px; }
.hub-stat-card, .hub-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.035);
}
.hub-stat-card { padding: 18px; display: grid; gap: 8px; }
.hub-stat-card span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
  font-weight: 700;
}
.hub-stat-card strong { line-height: 1.45; }
.hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hub-card { display: grid; gap: 16px; padding: 22px; }
.hub-card__glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,113,136,.12), transparent 70%);
  pointer-events: none;
}
.hub-card h3 { font-size: 1.28rem; }
.hub-info-panel { gap: 18px; }
.hub-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@keyframes fade-up { from { opacity:0; transform: translateY(12px);} to { opacity:1; transform:translateY(0);} }
@media (max-width: 980px) {
  .topbar, .hero-panel { grid-template-columns: 1fr; }
  .topbar-tabs { order: 2; max-width: none; }
  .session-pill { order: 3; justify-content: space-between; }
}

@media (max-width: 720px) {
  .page-shell { padding: 10px; }
  .site-footer__meta { font-size: .82rem; }
  .hub-hero__actions, .hub-grid, .hub-info-grid { grid-template-columns: 1fr; }
  .topbar {
    position: relative;
    top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
    margin-bottom: 12px;
  }
  .topbar::before { display: none; }
  .brand-button {
    order: 1;
    gap: 10px;
    min-width: 0;
  }
  .brand-mark { width: 52px; height: 32px; }
  .brand-mark__knob { width: 24px; height: 24px; }
  .brand-mark__moon { top: 4px; right: 8px; font-size: 16px; }
  .brand-block h1 { font-size: 1rem; }
  .brand-copy p { font-size: .68rem; }
  .topbar-tabs {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-self: stretch;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px;
    border-radius: 18px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .topbar-tabs::-webkit-scrollbar { display: none; }
  .topbar-tab {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: .74rem;
    line-height: 1;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .topbar-profile-actions {
    order: 2;
    width: auto;
    max-width: min(56vw, 230px);
    justify-self: end;
  }
  .session-pill {
    order: 2;
    width: auto;
    max-width: min(56vw, 230px);
    min-width: 0;
    align-items: center;
    justify-self: end;
    padding: 8px 9px 8px 12px;
  }
  .session-pill__info strong { max-width: 102px; font-size: .85rem; }
  .session-pill__sub { font-size: .67rem; }
  .session-pill__action { min-width: 84px; padding: 8px 12px; font-size: .82rem; }
  .profile-menu { left: 0; right: 0; min-width: auto; }
  .hero-panel, .stage-card { padding: 16px; }
  .hero-panel { grid-template-columns: 1fr; gap: 12px; }
  .hero-panel h2 { font-size: 1.25rem; line-height: 1.12; }
  .hero-panel__text, .stage-card p { font-size: .92rem; }
  .game-session-panel,
  .game-session-panel__actions,
  .game-session-modal__actions {
    grid-template-columns: 1fr;
  }
  .game-session-panel {
    padding: 16px;
  }
  .stage-card__head, .player-form, .stage-actions--reverse, .stage-actions--game, .task-modal__actions { grid-template-columns: 1fr; }
  .stage-card__step { min-width: auto; width: 100%; }
  .category-carousel { grid-template-columns: 40px minmax(0,1fr) 40px; gap: 6px; align-items: center; }
  .category-stage { min-height: 454px; overflow: hidden; }
  .category-track { min-height: 426px; }
  .category-card { width: min(316px, calc(100vw - 92px)); height: 396px; top: 12px; padding: 18px; }
  .category-card__emoji { font-size: 2.5rem; }
  .category-card__title { min-height: 72px; font-size: 1.35rem; }
  .category-card p { font-size: .88rem; line-height: 1.5; }
  .category-card:not(.is-selected) p,
  .category-card:not(.is-selected) .category-card__title,
  .category-card:not(.is-selected) .category-card__heat,
  .category-card:not(.is-selected) .category-card__footer,
  .category-card:not(.is-selected) .category-card__meta {
    opacity: 0;
  }
  .carousel-btn { width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; }
  .decision-grid { grid-template-columns: 1fr; }
  .decision-card { min-height: 240px; }
  .truth-solo-game-card {
    gap: 12px;
    padding: 14px;
  }
  .truth-solo-turn {
    padding: 18px 14px;
  }
  .truth-solo-turn strong {
    font-size: 2rem;
  }
  .truth-solo-game-card .decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .truth-solo-game-card .decision-card {
    min-height: 190px;
    border-radius: 18px;
  }
  .truth-solo-game-card .decision-card__face {
    padding: 18px 12px;
  }
  .truth-solo-game-card .decision-card__face h4 {
    font-size: 1.45rem;
  }
  .truth-solo-game-card .decision-card__face p {
    font-size: .82rem;
    line-height: 1.35;
  }
  .truth-solo-game-card .decision-card__face--back p {
    font-size: .9rem;
    line-height: 1.35;
  }
  .truth-solo-game-card .stage-actions--game {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .truth-solo-game-card .stage-actions--game .action-btn {
    min-height: 44px;
    padding: 10px 12px;
    font-size: .82rem;
  }
  .truth-solo-game-categories .active-category-badge {
    padding: 8px 10px;
    font-size: .78rem;
  }
  .game-badge { padding: 16px; }
  .alias-setup-grid,
  .alias-settings-grid,
  .alias-round-stats,
  .alias-play-actions {
    grid-template-columns: 1fr;
  }
  .alias-scoreboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .alias-format-card,
  .alias-setting-card,
  .alias-toggle-card,
  .alias-timer-panel,
  .alias-round-summary,
  .alias-victory-panel {
    padding: 16px;
    border-radius: 20px;
  }
  .alias-word-card .decision-card__face--back p {
    max-width: 14ch;
  }
  .stage-card.alias-game--ready,
  .stage-card.alias-game--active {
    padding: 14px;
  }
  .alias-game--ready .alias-word-card {
    min-height: min(470px, calc(100dvh - 230px));
  }
  .alias-game--active .alias-word-card {
    min-height: min(430px, calc(100dvh - 270px));
  }
  .alias-game--active .alias-timer-panel {
    padding: 14px;
  }
  .alias-game--active .alias-play-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .alias-game--summary .alias-play-actions {
    grid-template-columns: 1fr;
  }
  .alias-game--summary {
    padding: 12px;
    gap: 10px;
  }
  .alias-game--summary .alias-round-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .alias-game--summary .alias-round-stats div {
    padding: 12px 10px;
    border-radius: 16px;
  }
  .alias-game--summary .alias-round-stats span {
    font-size: .7rem;
  }
  .alias-game--summary .alias-round-stats strong {
    font-size: 1.2rem;
  }
  .alias-game--summary .alias-round-summary,
  .alias-game--summary .alias-victory-panel {
    padding: 16px;
  }
  .alias-room-panel {
    gap: 10px;
  }
  .alias-room-panel[data-phase="ready"] .alias-word-card {
    min-height: min(470px, calc(100dvh - 220px));
  }
  .alias-room-panel[data-phase="active"] .alias-word-card {
    min-height: min(430px, calc(100dvh - 245px));
  }
  .alias-room-panel[data-phase="active"] .alias-timer-panel {
    padding: 14px;
  }
  .alias-room-panel[data-phase="active"] .alias-play-actions {
    gap: 10px;
  }
  .alias-game--active .alias-word-card,
  .alias-room-panel[data-phase="active"] .alias-word-card {
    min-height: clamp(250px, 34dvh, 330px) !important;
  }
  .alias-game--active .alias-play-actions .action-btn,
  .alias-room-panel[data-phase="active"] .alias-play-actions .action-btn {
    min-height: 52px;
  }
  .stage-card[data-alias-stage="game"][data-alias-phase="ready"] .alias-word-card {
    min-height: min(360px, calc(100dvh - 280px)) !important;
  }
  .stage-card[data-alias-stage="game"][data-alias-phase="active"] .alias-word-card {
    min-height: clamp(250px, 34dvh, 330px) !important;
  }
  .stage-card[data-alias-stage="game"][data-alias-phase="active"] .alias-play-actions {
    order: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overnight-room-scoreboard,
  .overnight-room-choices {
    grid-template-columns: 1fr;
  }

  .overnight-room-visual {
    overflow-x: auto;
    padding-bottom: 8px;
   }

  .overnight-room-map--board {
    display: grid;
    --edge-size: 58px;
    width: max-content;
    max-width: none;
    min-height: 0;
    overflow: visible;
    padding: 6px;
  }

  .overnight-room-route--board {
    display: grid;
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    grid-template-columns: var(--corner-size) repeat(var(--edge-count, 9), var(--edge-size)) var(--corner-size);
    grid-template-rows: var(--corner-size) repeat(var(--edge-count, 9), var(--edge-size)) var(--corner-size);
    width: max-content;
    min-width: 0;
    gap: 3px;
  }

  .overnight-room-route--board .overnight-route__cell {
    min-height: 0;
    padding: 13px 3px 3px;
  }

  .overnight-room-board-center {
    grid-column: 4 / 9;
    grid-row: 4 / 9;
    padding: 3px;
    min-width: 0;
    margin-top: 0;
    gap: 6px;
  }

  .overnight-room-chat-slot {
    min-height: 118px;
  }

  .overnight-room-board-center .overnight-room-card {
    padding: 7px;
    gap: 5px;
  }

  .overnight-room-place {
    padding: 8px;
  }

  .overnight-room-place h3 {
    font-size: 1rem;
  }

  .overnight-room-dice {
    min-height: 48px;
    font-size: .86rem;
  }

  .overnight-route__icon {
    min-height: 18px;
    font-size: .9rem;
  }

  .overnight-room-route--board .overnight-route__cell--venue strong,
  .overnight-room-route--board .overnight-route__cell--transport strong,
  .overnight-room-route--board .overnight-route__cell--utility strong {
    font-size: .72rem;
  }

  .overnight-route__cell em,
  .overnight-route__index {
    font-size: .42rem;
  }
}

.game-badge--center { display:grid; justify-items:center; text-align:center; gap:8px; }
.game-badge--center strong { font-size: 1.5rem; }
.subscription-page .profile-summary { margin-bottom: 6px; }
.premium-games-link-row {
  display: flex;
  justify-content: center;
  margin: -2px 0 4px;
}
.premium-games-link {
  width: min(100%, 260px);
  min-height: 42px;
  border-color: rgba(245, 158, 11, .72);
  background: linear-gradient(180deg, #facc15, #f59e0b);
  color: #17120a;
  box-shadow: 0 14px 32px rgba(245, 158, 11, .24);
}
.premium-games-link:hover {
  border-color: rgba(250, 204, 21, .86);
  color: #17120a;
}
.premium-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 16px; }
.premium-card { display:grid; gap: 14px; }
.premium-card--highlight { background: linear-gradient(180deg, rgba(22,28,37,.98), rgba(12,15,21,1)); }
.premium-categories { display:flex; flex-wrap:wrap; gap: 10px; }
.premium-chip { display:inline-flex; align-items:center; gap:8px; padding:10px 12px; border-radius:999px; border:1px solid var(--line); background: rgba(255,255,255,.05); font-weight:700; }
.premium-chip--locked { border-color: rgba(255,113,136,.22); background: rgba(255,113,136,.08); }
.premium-chip--free { border-color: rgba(125,136,156,.22); }


.player-form--stacked {
  grid-template-columns: 1fr;
}

.player-form--stacked .action-btn {
  width: 100%;
}

.carousel-btn {
  position: relative;
  z-index: 40;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  line-height: 1;
}

.topbar-tab {
  white-space: nowrap;
}

.hero-panel__copy h2 {
  margin-top: 0;
}

.category-stage {
  min-height: 430px;
}

.category-track {
  min-height: 390px;
}

.category-card {
  width: min(340px, 64vw);
  height: 372px;
  gap: 14px;
}

.category-card__title {
  min-height: 88px;
}

.category-card p {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
  font-size: .94rem;
  line-height: 1.55;
}

.category-card__footer {
  align-items: center;
}

.category-dots {
  margin-top: 14px;
  margin-bottom: 16px;
}

.profile-menu {
  z-index: 20;
}

.profile-menu__item.hidden {
  display: none !important;
}

.admin-panel--full {
  margin-top: 18px;
}

.admin-form-grid--content {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-overnight-content {
  display: grid;
  gap: 16px;
}

.admin-overnight-list {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
}

.admin-overnight-row {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) repeat(4, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.admin-overnight-row--chance {
  grid-template-columns: minmax(190px, .7fr) minmax(180px, .75fr) minmax(260px, 1.15fr) minmax(190px, .8fr) minmax(150px, auto) auto;
}

.admin-overnight-row__head {
  display: grid;
  gap: 4px;
  align-self: center;
}

.admin-overnight-row__head strong {
  color: var(--text);
  line-height: 1.15;
}

.admin-overnight-row__head span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.25;
}

.admin-overnight-placeholder {
  color: rgba(95, 228, 183, .9);
  font-size: .78rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
}

.admin-overnight-money-fields {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(102, 212, 163, .22);
  border-radius: 12px;
  background: rgba(102, 212, 163, .07);
}

.admin-overnight-money-fields__summary {
  color: #a7f3d0;
  font-size: .78rem;
  font-weight: 900;
}

.admin-overnight-money-fields__chat {
  width: fit-content;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 9px;
  color: #fde68a;
  background: rgba(245, 158, 11, .1);
  font-size: .74rem;
  font-weight: 850;
  line-height: 1.25;
}

.admin-overnight-money-fields label {
  min-width: 120px;
}

.admin-overnight-money-fields small {
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.25;
}

.admin-overnight-logo-box {
  display: grid;
  gap: 6px;
}

.admin-overnight-logo-preview {
  --preview-edge-size: 66px;
  --preview-price-gutter: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
}

.admin-overnight-logo-preview__cell {
  position: relative;
  display: grid;
  place-items: center;
  width: calc((var(--preview-edge-size) * 1.7) + var(--preview-price-gutter));
  height: var(--preview-edge-size);
  padding: 4px var(--preview-price-gutter) 4px 4px;
  overflow: hidden;
  border: 1px solid rgba(145, 160, 176, .28);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
    rgba(13, 18, 27, .92);
}

.admin-overnight-logo-preview__cell > b {
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: var(--cell-color, #f97316);
}

.admin-overnight-logo-preview__cell > span {
  position: absolute;
  top: 2px;
  left: 3px;
  z-index: 2;
  color: rgba(226,232,240,.72);
  font-size: .5rem;
  font-weight: 900;
  line-height: 1;
}

.admin-overnight-logo-preview__cell > em {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: var(--preview-price-gutter);
  background: var(--cell-color, #f97316);
  color: #fff;
  font-size: .64rem;
  font-style: normal;
  font-weight: 1000;
  line-height: 1;
  writing-mode: vertical-rl;
}

.admin-overnight-logo-preview__logo {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  line-height: 1;
  transform: translate(var(--logo-x, 0), var(--logo-y, 0));
}

.admin-overnight-logo-preview__logo--glass {
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.09)),
    rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 6px 14px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
}

.admin-overnight-logo-preview__logo--light {
  padding: 3px;
  border-radius: 5px;
  background: rgba(255,255,255,.9);
}

.admin-overnight-logo-preview__logo--dark {
  padding: 3px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 5px;
  background: rgba(3, 7, 18, .72);
}

.admin-overnight-logo-preview__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-overnight-logo-preview__empty {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.admin-overnight-row input[type="range"] {
  min-height: 34px;
  padding: 0;
}

@media (max-width: 1100px) {
  .admin-overnight-row,
  .admin-overnight-row--chance {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.admin-form-grid__full {
  grid-column: 1 / -1;
}

.admin-form-grid--user {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.admin-lobby-chat-modal {
  z-index: 120;
  padding: 18px;
}

.admin-lobby-chat-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  height: min(820px, calc(100dvh - 36px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  max-height: calc(100dvh - 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16,21,30,.98), rgba(10,13,19,1));
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0,0,0,.42);
}

.admin-lobby-chat-modal .room-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-lobby-chat-modal .room-chat__head-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.admin-lobby-chat-modal .room-chat__head-copy strong {
  font-size: 1rem;
  line-height: 1.2;
}

.admin-lobby-chat-modal .room-chat__head-copy span {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.admin-lobby-chat-modal .room-chat__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-lobby-chat-modal .room-chat__next-btn,
.admin-lobby-chat-modal .room-chat__expand-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-lobby-chat-modal .room-chat__expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor: pointer;
}

.admin-lobby-chat-modal .room-chat__expand-btn--icon-only {
  width: 40px;
  min-width: 40px;
  padding: 0;
  font-size: 1.35rem;
}

.admin-lobby-chat-summary {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
}

.admin-lobby-chat-summary .game-badge {
  min-width: 150px;
  padding: 12px;
}

.admin-lobby-chat-summary .game-badge strong {
  font-size: .92rem;
  line-height: 1.25;
}

.admin-lobby-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
  padding: 16px;
  overflow-y: auto;
  background: radial-gradient(circle at top, rgba(102,212,163,.035), transparent 30%), linear-gradient(180deg, rgba(8,11,16,.45), rgba(8,11,16,.12));
}

.admin-lobby-chat-modal .chat-message {
  display: flex;
  width: 100%;
}

.admin-lobby-chat-modal .chat-message--self { justify-content: flex-end; }
.admin-lobby-chat-modal .chat-message--other { justify-content: flex-start; }
.admin-lobby-chat-modal .chat-message--system,
.admin-lobby-chat-modal .chat-message--prompt { justify-content: center; }

.admin-lobby-chat-modal .chat-message__bubble {
  display: grid;
  gap: 8px;
  max-width: min(84%, 430px);
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

.admin-lobby-chat-modal .chat-message--self .chat-message__bubble {
  border-color: rgba(116,177,255,.34);
  background: linear-gradient(180deg, rgba(116,177,255,.16), rgba(116,177,255,.08));
}

.admin-lobby-chat-modal .chat-message__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(242,244,247,.72);
  font-size: .7rem;
  font-weight: 700;
}

.admin-lobby-chat-modal .chat-message__badge {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-lobby-chat-modal .chat-message__text {
  color: var(--text);
  line-height: 1.52;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-lobby-chat-modal .chat-message__system {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: .76rem;
  text-align: center;
}

.admin-lobby-chat-modal .chat-message__bubble--media {
  max-width: min(300px, 48vw);
}

.admin-lobby-chat-modal .chat-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: min(260px, 100%);
}

.admin-lobby-chat-modal .chat-media-grid--single {
  grid-template-columns: 1fr;
}

.admin-lobby-chat-modal .chat-media-grid__item {
  display: grid;
  place-items: center;
  min-height: 110px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

.admin-lobby-chat-modal .chat-media-grid__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgba(255,255,255,.04);
}

.subscription-page .stage-card__head,
.subscription-page .profile-summary,
.subscription-page .premium-grid,
.subscription-page .subscription-preview {
  align-items: stretch;
}

.subscription-page .game-badge strong,
.subscription-page h3,
.subscription-page p {
  word-break: normal;
}

@media (max-width: 720px) {
  .admin-lobby-chat-modal {
    padding: 10px;
  }

  .admin-lobby-chat-modal__dialog {
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
  }

  .admin-lobby-chat-modal .room-chat__header {
    align-items: flex-start;
    padding: 12px;
  }

  .admin-lobby-chat-modal .room-chat__actions {
    gap: 6px;
  }

  .admin-lobby-chat-modal .room-chat__next-btn {
    display: none;
  }

  .admin-lobby-chat-summary {
    padding: 10px 12px;
  }

  .admin-lobby-chat-summary .game-badge {
    min-width: 132px;
  }

  .admin-lobby-chat-messages {
    padding: 12px;
  }

  .admin-lobby-chat-modal .chat-message__bubble {
    max-width: min(90%, 360px);
  }

  .admin-lobby-chat-modal .chat-message__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .admin-lobby-chat-modal .chat-message__bubble--media {
    max-width: min(86%, 280px);
  }

  .category-stage {
    min-height: 454px;
  }

  .category-card {
    width: min(344px, 88vw);
    height: 402px;
  }
}

@media (max-width: 520px) {
  .topbar-tabs {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .8fr);
  }

  .topbar-tab {
    min-height: 38px;
    padding: 7px 5px;
    font-size: .68rem;
  }

  .topbar-tab:first-child {
    font-size: .58rem;
  }

  .brand-copy p {
    font-size: .64rem;
  }
}

@media (max-width: 720px) {
  .site-footer {
    margin-top: 8px;
    padding-bottom: 12px;
  }

  .site-footer__links {
    gap: 8px;
  }

  .site-footer__links a {
    min-height: 36px;
    padding: 8px 12px;
    font-size: .82rem;
    font-weight: 600;
  }

  .site-footer__links .site-footer__telegram {
    width: 36px;
    min-width: 36px;
    padding: 0;
  }

  .site-footer__links .site-footer__telegram svg {
    width: 16px;
    height: 16px;
  }
}

.subscription-page .stage-card__head { align-items: center; }
.subscription-page .stage-card__step { min-width: 72px; padding: 10px 12px; font-size: .88rem; }
.subscription-page h3 { font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.14; }
.subscription-page .stage-card__head p { max-width: 760px; font-size: .95rem; }
.subscription-page .profile-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.subscription-page .game-badge { padding: 18px; border-radius: 18px; }
.subscription-page .game-badge strong { font-size: 1rem; line-height: 1.2; }
.subscription-page .premium-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.subscription-page .premium-card { padding: 22px; border-radius: 22px; }
.subscription-page .premium-card h3 { font-size: clamp(1.1rem, 1.45vw, 1.35rem); line-height: 1.16; margin: 0; max-width: 420px; }
.subscription-page .premium-card p { font-size: .97rem; line-height: 1.58; max-width: 520px; }
.subscription-page .hero-panel__eyebrow { font-size: .72rem; letter-spacing: .16em; }
.subscription-page .premium-categories { gap: 8px; }
.subscription-page .premium-chip { padding: 8px 12px; font-size: .9rem; }
.subscription-page .subscription-preview { gap: 10px; }
.subscription-preview p { margin: 0; font-size: .95rem; line-height: 1.55; }
@media (max-width: 980px) { .subscription-page .premium-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .subscription-page .profile-summary { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .subscription-page .premium-card, .subscription-page .game-badge { padding: 16px; } .subscription-page .premium-card h3 { font-size: 1.18rem; } .subscription-page .premium-chip { font-size: .86rem; } }

.profile-summary + .game-badge.subscription-preview { margin-top: 4px; }
.subscription-page .subscription-preview { gap: 14px; }
.subscription-page .subscription-preview strong { font-size: 1.22rem; }
.subscription-page .subscription-preview p { max-width: 880px; }
@media (max-width: 720px) { .subscription-preview { padding: 18px; gap: 10px; } .subscription-preview .action-btn { min-height: 42px; } }

/* 2026-03-11 UX refresh */
.category-carousel {
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  gap: 18px;
}

.carousel-btn {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  font-size: 1.7rem;
  font-weight: 800;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow: 0 12px 28px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.02);
}

.carousel-btn:disabled {
  opacity: 1;
  cursor: pointer;
}

.category-stage {
  min-height: 560px;
}

.category-track {
  min-height: 500px;
}

.category-card {
  width: min(372px, 70vw);
  height: 452px;
  padding: 24px;
  gap: 16px;
  overflow: hidden;
}

.category-card__title {
  min-height: 92px;
}

.category-card p {
  font-size: .96rem;
  line-height: 1.62;
}

.category-card__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.category-card__footer span {
  line-height: 1.45;
}

.category-dots {
  gap: 10px;
}

.category-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
}

.session-pill__info strong {
  max-width: 122px;
}

.topbar {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255,255,255,.02), 0 0 64px rgba(82, 112, 212, .08);
}

.hero-panel,
.stage-card,
.admin-card,
.game-badge,
.admin-panel,
.premium-card {
  position: relative;
}

.hero-panel::before,
.stage-card::before,
.admin-card::before,
.game-badge::before,
.admin-panel::before,
.premium-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(90, 117, 214, .08), rgba(255, 113, 136, .03) 45%, transparent 72%);
  pointer-events: none;
}

.subscription-page .profile-summary,
.subscription-page .premium-grid {
  gap: 18px;
}

.subscription-page .game-badge,
.subscription-page .premium-card,
.subscription-preview {
  padding: 24px;
}

.subscription-page .game-badge strong,
.subscription-page .premium-card h3,
.subscription-preview strong {
  line-height: 1.2;
}

.subscription-preview {
  gap: 16px;
}

.subscription-preview p,
.subscription-page .premium-card p {
  line-height: 1.7;
}

@media (max-width: 720px) {
  .topbar-tabs {
    grid-template-columns: minmax(0, 1.14fr) minmax(0, .93fr) minmax(0, .93fr);
  }

  .topbar-tab {
    min-height: 42px;
    padding: 8px 7px;
    font-size: .7rem;
    line-height: 1.1;
  }

  .topbar-tab:first-child {
    font-size: .6rem;
  }

  .category-carousel {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }

  .category-stage {
    min-height: 490px;
    overflow: hidden;
  }

  .category-track {
    min-height: 452px;
  }

  .category-card {
    width: min(340px, calc(100vw - 92px));
    height: 418px;
    padding: 18px;
    gap: 12px;
  }

  .category-card__title {
    min-height: 74px;
    font-size: 1.28rem;
  }

  .category-card:not(.is-selected) p,
  .category-card:not(.is-selected) .category-card__title,
  .category-card:not(.is-selected) .category-card__heat,
  .category-card:not(.is-selected) .category-card__footer,
  .category-card:not(.is-selected) .category-card__meta {
    opacity: .02;
  }

  .category-card__footer {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .category-card__add {
    width: 100%;
  }

  .session-pill__info strong {
    max-width: 90px;
  }

  .site-footer__links a {
    min-height: 34px;
    padding: 7px 11px;
    font-size: .78rem;
  }

  .site-footer__links .site-footer__telegram {
    width: 34px;
    min-width: 34px;
    padding: 0;
  }
}

/* 2026-03-11 final polish */
.topbar-tabs {
  max-width: 780px;
}

.topbar-tab {
  white-space: nowrap;
}

.profile-page-shell {
  gap: 18px;
}

.stage-card__head--compact {
  align-items: center;
}

.profile-summary--wide {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.profile-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.compact-panel {
  padding: 20px;
  gap: 14px;
}

.compact-panel__head {
  display: grid;
  gap: 6px;
}

.compact-panel__head strong {
  font-size: 1.04rem;
  line-height: 1.24;
}

.subscription-preview--airy {
  gap: 14px;
  padding: 24px;
}

.subscription-preview--airy strong {
  font-size: 1.18rem;
  line-height: 1.22;
}

.subscription-preview--airy p {
  max-width: 760px;
  line-height: 1.72;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-app-grid {
  display: grid;
  gap: 18px;
}

.admin-card--portal {
  max-width: 680px;
  margin: 0 auto;
}

.admin-login-form {
  max-width: 440px;
}

.admin-dashboard-card {
  gap: 18px;
}

.admin-log-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.admin-stats-card {
  min-height: 132px;
}

.admin-stats-card p {
  margin: 0;
  color: var(--muted);
}

.admin-log-list {
  display: grid;
  gap: 10px;
}

.admin-log-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.admin-log-item strong {
  font-size: .95rem;
}

.admin-log-item span,
.admin-log-item time {
  color: var(--muted);
  font-size: .84rem;
}

.admin-audio-entry {
  gap: 10px;
}

.admin-audio-entry__head,
.admin-audio-entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.admin-audio-entry__meta {
  justify-content: flex-start;
}

.admin-audio-entry__player {
  width: 100%;
  min-height: 42px;
}

.admin-panel--airy,
.admin-card {
  padding: 22px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-toolbar__search {
  display: grid;
  gap: 8px;
  flex: 1 1 320px;
}

.admin-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

.admin-checkbox input {
  width: auto;
  margin: 0;
}

.admin-form-grid--category-create {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-form-grid__wide {
  grid-column: 1 / -1;
}

#admin-category-preview,
[data-category-preview-host] {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 8px 0;
}

#admin-category-preview .category-card,
[data-category-preview-host] .category-card {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: min(100%, 340px);
  min-height: 372px;
  height: auto;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
  margin: 0 auto;
}

#admin-category-preview .category-card:not(.is-selected),
[data-category-preview-host] .category-card:not(.is-selected) {
  filter: none !important;
  opacity: 1 !important;
}

#admin-category-preview .category-card:not(.is-selected) p,
#admin-category-preview .category-card:not(.is-selected) .category-card__title,
#admin-category-preview .category-card:not(.is-selected) .category-card__heat,
#admin-category-preview .category-card:not(.is-selected) .category-card__footer,
#admin-category-preview .category-card:not(.is-selected) .category-card__meta,
#admin-category-preview .category-card:not(.is-selected) .category-card__emoji,
[data-category-preview-host] .category-card:not(.is-selected) p,
[data-category-preview-host] .category-card:not(.is-selected) .category-card__title,
[data-category-preview-host] .category-card:not(.is-selected) .category-card__heat,
[data-category-preview-host] .category-card:not(.is-selected) .category-card__footer,
[data-category-preview-host] .category-card:not(.is-selected) .category-card__meta,
[data-category-preview-host] .category-card:not(.is-selected) .category-card__emoji {
  opacity: 1 !important;
}

.db-entity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.db-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.db-table th,
.db-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: left;
  vertical-align: top;
  font-size: .88rem;
  line-height: 1.5;
}

.db-table th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
}

.speak-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  cursor: pointer;
  z-index: 3;
}

.task-modal__actions {
  grid-template-columns: repeat(3, 1fr);
}

.category-card {
  height: 462px;
  grid-template-rows: auto auto auto auto minmax(94px, 1fr) auto;
}

.category-card > p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 6.2em;
}

.category-card__footer {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.category-card__footer span {
  min-height: 2.8em;
  display: flex;
  align-items: flex-end;
}

.category-dots {
  align-items: center;
}

.category-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  min-width: 11px;
  min-height: 11px;
  max-width: 11px;
  max-height: 11px;
  line-height: 0;
  transform: none;
}

.category-dot.active,
.category-dot.is-active {
  transform: scale(1.18);
}

.carousel-btn {
  font-size: 2rem;
}

.category-card:not(.is-selected) {
  filter: blur(1px);
}

@media (max-width: 720px) {
  .topbar {
    padding: 10px 10px 12px;
  }

  .topbar-tabs {
    grid-template-columns: minmax(0, 1.52fr) minmax(0, .8fr) minmax(0, .8fr);
    max-width: none;
  }

  .topbar-tab {
    min-height: 44px;
    font-size: .68rem;
    padding: 8px 6px;
    line-height: 1.08;
  }

  .topbar-tab:first-child {
    font-size: .62rem;
  }

  .session-pill {
    padding: 8px 9px 8px 12px;
  }

  .session-pill__info strong {
    max-width: 104px;
    font-size: .9rem;
  }

  .session-pill__sub {
    font-size: .69rem;
  }

  .category-stage {
  min-height: 430px;
}

  .category-track {
    min-height: 480px;
  }

  .category-card {
    width: min(344px, calc(100vw - 96px));
    height: 430px;
    padding: 18px;
  }

  .category-card:not(.is-selected) {
    filter: blur(2px);
  }

  .category-card:not(.is-selected) p,
  .category-card:not(.is-selected) .category-card__title,
  .category-card:not(.is-selected) .category-card__heat,
  .category-card:not(.is-selected) .category-card__footer,
  .category-card:not(.is-selected) .category-card__meta,
  .category-card:not(.is-selected) .category-card__emoji {
    opacity: 0;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }

  .task-modal__actions {
    grid-template-columns: 1fr;
  }

  .site-footer__links a {
    min-height: 32px;
    padding: 6px 10px;
    font-size: .74rem;
  }

  .site-footer__links .site-footer__telegram {
    width: 32px;
    min-width: 32px;
    padding: 0;
  }

  .profile-layout-grid,
  .admin-log-grid,
  .subscription-page .premium-grid {
    grid-template-columns: 1fr;
  }

  .subscription-page .premium-card,
  .subscription-page .game-badge,
  .subscription-preview,
  .admin-card,
  .admin-panel {
    padding: 18px;
  }
}





/* admin layout + category sync polish */
.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.admin-sidebar__head {
  display: grid;
  gap: 8px;
}

.admin-sidebar__head h3 {
  font-size: 1.35rem;
  margin: 0;
}

.admin-sidebar__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-section-nav {
  display: grid;
  gap: 10px;
}

.admin-section-nav .action-btn {
  justify-content: flex-start;
  text-align: left;
  min-height: 46px;
}

.admin-content-stack {
  display: grid;
  gap: 18px;
}

.admin-section-panel.hidden {
  display: none !important;
}

#admin-status {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}

.category-stage {
  min-height: 500px;
}

.category-track {
  min-height: 438px;
}

.category-card {
  height: 412px;
  grid-template-rows: auto auto auto auto minmax(74px, 1fr) auto;
}

.category-card > p {
  -webkit-line-clamp: 3;
  min-height: 4.9em;
}

.category-card__footer {
  align-items: center;
}

.category-card__footer span {
  min-height: 42px;
  align-items: center;
}

@media (max-width: 980px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }
}

/* final-ui-overrides */
.category-carousel {
  position: relative;
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) 64px !important;
  gap: 18px !important;
  align-items: center !important;
  margin: 6px 0 10px !important;
}
.category-stage {
  min-height: 392px !important;
  padding: 0 0 18px !important;
  overflow: hidden !important;
}
.category-track {
  min-height: 374px !important;
}
.category-card {
  top: 0 !important;
  width: min(330px, 58vw) !important;
  height: 356px !important;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto !important;
  gap: 10px !important;
  padding: 18px 20px !important;
}
.category-card__title {
  min-height: 40px !important;
  font-size: 1.42rem !important;
  align-items: flex-start !important;
}
.category-card__heat {
  min-height: 20px !important;
}
.category-card p {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
  line-height: 1.45 !important;
  min-height: 4.2em !important;
  margin-top: 0 !important;
}
.category-card__footer {
  align-items: center !important;
  min-height: 54px !important;
  margin-top: auto !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
}
.category-card__footer span {
  display: flex !important;
  align-items: center !important;
  min-height: 24px !important;
  padding-right: 6px !important;
}
.selected-categories-box {
  position: relative;
  z-index: 3;
}
.category-dots {
  position: relative !important;
  z-index: 8 !important;
  margin-top: 10px !important;
  margin-bottom: 14px !important;
}
.category-dot {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
}
.carousel-btn {
  position: relative !important;
  z-index: 40 !important;
  width: 56px !important;
  height: 56px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
.carousel-btn::before {
  display: block;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1;
  color: inherit;
}
#category-prev-btn::before,
#alias-category-prev-btn::before,
#whoami-category-prev-btn::before {
  content: "‹";
  transform: translate(-1px, -1px);
}
#category-next-btn::before,
#alias-category-next-btn::before,
#whoami-category-next-btn::before {
  content: "›";
  transform: translate(1px, -1px);
}
.modal__overlay {
  z-index: 0 !important;
}
.modal__dialog,
.task-modal__dialog {
  z-index: 1 !important;
}
.task-modal__actions {
  position: relative;
  z-index: 2;
}
.modal__close {
  z-index: 3;
}
.task-modal__text-wrap {
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .category-carousel {
    grid-template-columns: 56px minmax(0, 1fr) 56px !important;
    gap: 12px !important;
  }
  .category-stage {
    min-height: 378px !important;
    padding-bottom: 16px !important;
  }
  .category-track {
    min-height: 362px !important;
  }
  .category-card {
    width: min(316px, calc(100vw - 124px)) !important;
    height: 344px !important;
    padding: 16px 18px !important;
  }
}
@media (max-width: 720px) {
  .category-stage {
    min-height: 372px !important;
    overflow: hidden !important;
  }
  .category-track {
    min-height: 356px !important;
  }
  .category-card {
    width: min(304px, calc(100vw - 92px)) !important;
    height: 336px !important;
    padding: 16px !important;
  }
}

.premium-plans,
.premium-controls {
  display: grid;
  gap: 16px;
  margin: 14px 0 18px;
}
  .admin-premium-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 6px;
    align-items: start;
  }
  .admin-premium-layout .admin-panel {
    height: 100%;
  }
  .admin-premium-layout .admin-panel__head {
    align-items: flex-start;
    gap: 10px;
  }
.premium-plans {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.premium-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.premium-controls .premium-card {
  height: 100%;
  align-content: start;
}
.premium-controls .premium-card--wide {
  grid-column: 1 / -1;
}
.subscription-page .premium-controls .premium-card {
  grid-template-rows: auto auto auto 1fr;
}
.premium-more {
  display: grid;
  gap: 12px;
  margin: -2px 0 18px;
}
.premium-more__toggle {
  width: 100%;
  min-height: 52px;
  justify-content: center;
  position: relative;
}
.premium-more__toggle::after {
  content: '';
  width: 10px;
  height: 10px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .78;
  transition: transform .2s ease, opacity .2s ease;
}
.premium-more__toggle[aria-expanded="true"]::after {
  transform: translateY(3px) rotate(-135deg);
  opacity: 1;
}
.premium-more__panel {
  display: grid;
  gap: 14px;
}
.subscription-page .premium-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.subscription-page .premium-chip {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  text-align: center;
  line-height: 1.3;
  padding: 10px 14px;
}
@media (max-width: 900px) {
  .premium-controls {
    grid-template-columns: 1fr;
  }

  .premium-controls .premium-card--wide {
    grid-column: auto;
  }
}
@media (max-width: 720px) {
  .subscription-page .premium-categories {
    grid-template-columns: 1fr;
  }
}
.plan-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(14,18,24,.95), rgba(24,30,39,.88));
  box-shadow: var(--shadow-soft);
  transition: border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.plan-card--active {
  border-color: rgba(102,212,163,.34);
  box-shadow: 0 18px 46px rgba(47,139,100,.16);
}
.plan-card--disabled {
  opacity: .92;
}
.plan-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.plan-card h3,
.plan-card p,
.plan-card ul {
  margin: 0;
}
.plan-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-card__status--active {
  color: var(--success);
  background: rgba(102,212,163,.12);
  border-color: rgba(102,212,163,.25);
}
.plan-card__status--muted {
  color: var(--muted);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}
.plan-card__meta {
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
.subscription-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.subscription-toggle span {
  display: grid;
  gap: 4px;
}
.subscription-toggle small {
  color: var(--muted);
}
.subscription-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.subscription-toggle__slider {
  position: relative;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  transition: background .2s ease;
}
.subscription-toggle__slider::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.subscription-toggle input:checked + .subscription-toggle__slider {
  background: rgba(91, 214, 141, .55);
}
.subscription-toggle input:checked + .subscription-toggle__slider::after {
  transform: translateX(26px);
}
.subscription-toggle input:disabled + .subscription-toggle__slider {
  opacity: .45;
}
.premium-gate-modal__dialog {
  width: min(860px, calc(100vw - 28px));
  max-height: min(860px, calc(100dvh - 28px));
  height: auto;
  min-height: 0;
  touch-action: pan-y;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(125, 211, 252, .1), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(167, 139, 250, .1), transparent 34%),
    linear-gradient(180deg, rgba(16, 21, 31, .98), rgba(8, 11, 18, 1));
  box-shadow: 0 30px 86px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.premium-gate-modal__head {
  display: grid;
  gap: 8px;
  max-width: 680px;
}
.premium-gate-modal__head .hero-panel__eyebrow,
.premium-gate-modal__head h3 {
  margin: 0;
}
.premium-gate-modal__head h3 {
  line-height: 1.08;
  font-size: clamp(1.45rem, 3.4vw, 2.45rem);
}
.premium-gate-modal__text {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.48;
}
.premium-gate-modal__value {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.premium-gate-modal__value .hero-panel__eyebrow {
  margin: 0;
}
.premium-gate-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.premium-gate-benefit {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 3px 11px;
  align-items: center;
  min-height: 68px;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035)),
    rgba(15, 23, 42, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.premium-gate-benefit span {
  grid-row: span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, .2), transparent 38%),
    linear-gradient(145deg, rgba(51, 65, 85, .82), rgba(30, 41, 59, .9));
  font-size: 1.28rem;
}
.premium-gate-benefit strong {
  min-width: 0;
  color: var(--text);
  font-size: .92rem;
  line-height: 1.15;
}
.premium-gate-benefit small {
  min-width: 0;
  color: rgba(203, 213, 225, .72);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.2;
}
.premium-gate-modal__plans {
  margin: 8px 0 2px;
}
.premium-gate-modal__footer {
  display: grid;
  gap: 12px;
  align-items: start;
}
.premium-gate-modal__footer .action-btn {
  width: 100%;
}
.premium-gate-modal__dialog .plan-card {
  gap: 11px;
  min-height: 236px;
  padding: 18px;
  border-color: rgba(148, 163, 184, .2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 8%, rgba(125, 211, 252, .11), transparent 34%),
    linear-gradient(165deg, rgba(30, 41, 59, .9), rgba(15, 23, 42, .82));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .055);
}
.premium-gate-modal__dialog .plan-card h3 {
  color: #f8fafc;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1;
}
.premium-gate-modal__dialog .plan-card p {
  color: rgba(203, 213, 225, .78);
  line-height: 1.35;
}
.premium-gate-modal__dialog .plan-card__meta {
  padding-left: 18px;
  color: rgba(226, 232, 240, .72);
}
.premium-gate-modal__dialog .plan-card .action-btn {
  width: 100%;
  margin-top: auto;
}
.premium-terms-note {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.45;
  opacity: .76;
}
.premium-terms-note a {
  color: #c8d7ff;
  text-decoration: underline;
  text-decoration-color: rgba(200, 215, 255, .42);
  text-underline-offset: 2px;
}
.premium-terms-note a:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, .72);
}
.subscription-result-modal__dialog {
  width: min(560px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16,21,29,.98), rgba(8,10,15,1));
}
.subscription-result-modal__head {
  display: grid;
  gap: 10px;
}
.subscription-result-modal__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}
.subscription-result-modal__actions {
  display: grid;
  gap: 12px;
}
@media (min-width: 721px) {
  .premium-gate-modal__footer {
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    align-items: center;
  }
  .premium-terms-note {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .modal {
    align-items: start;
    padding: 10px;
  }
  .modal__dialog,
  .task-modal__dialog,
  .premium-gate-modal__dialog {
    max-height: calc(100dvh - 20px);
  }
  .subscription-toggle {
    align-items: flex-start;
  }
  .premium-gate-modal__dialog {
    width: min(100%, calc(100vw - 20px));
    max-height: none;
    padding: 18px;
    border-radius: 24px;
  }
  .premium-gate-benefits {
    grid-template-columns: 1fr;
  }
  .premium-gate-benefit {
    min-height: 58px;
    padding: 9px 10px;
  }
  .premium-gate-modal__plans {
    grid-template-columns: 1fr;
  }
  .premium-gate-modal__dialog .plan-card {
    min-height: 0;
  }
  .subscription-result-modal__dialog {
    padding: 18px;
  }
}

@media (max-width: 720px) {
  .category-carousel {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    gap: 8px !important;
    margin: 4px 0 8px !important;
  }
  .carousel-btn {
    width: 42px !important;
    height: 42px !important;
  }
  .carousel-btn::before {
    font-size: 1.55rem !important;
  }
  .category-stage {
    min-height: 348px !important;
    padding-bottom: 8px !important;
    overflow: hidden !important;
  }
  .category-track {
    min-height: 332px !important;
  }
  .category-card {
    top: 0 !important;
    width: min(286px, calc(100vw - 136px)) !important;
    height: 320px !important;
    padding: 16px !important;
    gap: 10px !important;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto !important;
  }
  .category-card__emoji {
    font-size: 2.2rem !important;
    margin-bottom: 0 !important;
  }
  .category-card__meta {
    gap: 8px !important;
  }
  .category-tag {
    padding: 6px 9px !important;
    font-size: .72rem !important;
  }
  .category-card__title {
    min-height: 54px !important;
    font-size: 1.18rem !important;
  }
  .category-card__heat {
    min-height: 18px !important;
    font-size: .82rem !important;
  }
  .category-card p,
  .category-card > p {
    -webkit-line-clamp: 3 !important;
    min-height: 4.2em !important;
    font-size: .88rem !important;
    line-height: 1.42 !important;
    overflow: hidden !important;
  }
  .category-card__footer {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding-top: 10px !important;
  }
  .category-card__footer span {
    min-height: 22px !important;
    font-size: .86rem !important;
    align-items: center !important;
  }
  .category-card__add {
    width: 100% !important;
    min-height: 40px !important;
  }
  .category-dots {
    margin-top: 8px !important;
    margin-bottom: 10px !important;
  }
}

@media (max-width: 390px) {
  .category-card {
    width: min(274px, calc(100vw - 128px)) !important;
    height: 312px !important;
    padding: 14px !important;
  }
  .category-card__title {
    font-size: 1.1rem !important;
    min-height: 50px !important;
  }
}

@media (max-width: 720px) {
  .category-stage {
    min-height: 322px !important;
    padding-bottom: 4px !important;
  }
  .category-track {
    min-height: 306px !important;
  }
  .category-card {
    width: min(280px, calc(100vw - 138px)) !important;
    height: 294px !important;
    padding: 14px !important;
    gap: 8px !important;
    grid-template-rows: auto auto auto auto auto auto !important;
  }
  .category-card__emoji {
    font-size: 2rem !important;
  }
  .category-card__title {
    min-height: 42px !important;
    font-size: 1.08rem !important;
  }
  .category-card__heat {
    min-height: 16px !important;
    font-size: .78rem !important;
  }
  .category-card p,
  .category-card > p {
    -webkit-line-clamp: 2 !important;
    min-height: 2.9em !important;
    font-size: .83rem !important;
    line-height: 1.36 !important;
    margin: 0 !important;
  }
  .category-card__footer {
    gap: 8px !important;
    padding-top: 8px !important;
    margin-top: 0 !important;
  }
  .category-card__footer span {
    min-height: 18px !important;
    font-size: .82rem !important;
  }
  .category-card__add {
    min-height: 38px !important;
    padding: 8px 14px !important;
  }
  .category-dots {
    margin-top: 6px !important;
    margin-bottom: 8px !important;
  }
}

@media (max-width: 390px) {
  .category-card {
    width: min(268px, calc(100vw - 128px)) !important;
    height: 286px !important;
    padding: 12px !important;
  }
  .category-card__title {
    font-size: 1rem !important;
    min-height: 38px !important;
  }
}

@media (max-width: 720px) {
  .category-carousel {
    grid-template-columns: 1fr auto auto !important;
    grid-template-areas:
      "stage stage stage"
      "prev . next" !important;
    gap: 10px !important;
    align-items: start !important;
    margin: 8px 0 6px !important;
  }
  #category-stage,
  #alias-category-stage,
  #whoami-category-stage {
    grid-area: stage;
    min-height: 296px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  #category-prev-btn,
  #alias-category-prev-btn,
  #whoami-category-prev-btn {
    grid-area: prev;
    justify-self: start;
  }
  #category-next-btn,
  #alias-category-next-btn,
  #whoami-category-next-btn {
    grid-area: next;
    justify-self: end;
  }
  .category-track {
    min-height: 296px !important;
  }
  .category-card {
    top: 0 !important;
    width: min(calc(100vw - 48px), 340px) !important;
    height: 286px !important;
    padding: 16px !important;
    gap: 10px !important;
    border-radius: 24px !important;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto !important;
  }
  .category-card:not(.is-selected),
  .category-card:not(.is-selected) p,
  .category-card:not(.is-selected) .category-card__title,
  .category-card:not(.is-selected) .category-card__heat,
  .category-card:not(.is-selected) .category-card__footer,
  .category-card:not(.is-selected) .category-card__meta,
  .category-card:not(.is-selected) .category-card__emoji {
    opacity: 0 !important;
    filter: none !important;
  }
  .category-card__emoji {
    font-size: 2rem !important;
    margin-bottom: 0 !important;
  }
  .category-card__meta {
    gap: 8px !important;
  }
  .category-tag {
    padding: 6px 10px !important;
    font-size: .72rem !important;
  }
  .category-card__title {
    min-height: 0 !important;
    font-size: 1.2rem !important;
  }
  .category-card__heat {
    min-height: 0 !important;
    font-size: .84rem !important;
  }
  .category-card p,
  .category-card > p {
    -webkit-line-clamp: 3 !important;
    min-height: 4.1em !important;
    font-size: .9rem !important;
    line-height: 1.45 !important;
    margin: 0 !important;
  }
  .category-card__footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 0 !important;
    margin-top: auto !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
  }
  .category-card__footer span {
    min-height: 0 !important;
    padding-right: 0 !important;
    font-size: .84rem !important;
    line-height: 1.35 !important;
  }
  .category-card__add {
    width: auto !important;
    min-width: 108px !important;
    min-height: 36px !important;
    padding: 8px 14px !important;
    border-radius: 12px !important;
    font-size: .95rem !important;
  }
  .carousel-btn {
    width: 38px !important;
    height: 38px !important;
  }
  .carousel-btn::before {
    font-size: 1.28rem !important;
  }
  .category-dots {
    margin-top: 2px !important;
    margin-bottom: 10px !important;
  }
  .selected-categories-box__head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    align-items: start !important;
  }

  .decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  .decision-card {
    min-height: 176px !important;
    padding: 14px !important;
    border-radius: 20px !important;
  }

  .decision-card__badge {
    top: 14px !important;
    left: 14px !important;
    font-size: .56rem !important;
    letter-spacing: .14em !important;
  }

  .decision-card__face {
    justify-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    padding: 26px 14px 14px !important;
  }

  .decision-card__face h4 {
    font-size: clamp(1.12rem, 6vw, 1.75rem) !important;
    line-height: 1.02 !important;
  }

  .decision-card__face p {
    font-size: .82rem !important;
    line-height: 1.35 !important;
    max-width: 16ch !important;
    margin-inline: auto !important;
  }

  .decision-card__face--back p {
    font-size: .92rem !important;
    line-height: 1.38 !important;
    max-width: none !important;
  }

  .alias-word-card .decision-card__face--back p {
    max-width: 14ch !important;
    font-size: clamp(1.45rem, 9vw, 2.35rem) !important;
    line-height: 1.08 !important;
  }

  .alias-game--ready .alias-word-card {
    min-height: min(470px, calc(100dvh - 230px)) !important;
  }

  .alias-game--active .alias-word-card {
    min-height: clamp(250px, 34dvh, 330px) !important;
  }
}

@media (max-width: 390px) {
  .category-card {
    width: calc(100vw - 40px) !important;
    height: 278px !important;
    padding: 14px !important;
  }
  .category-card__title {
    font-size: 1.08rem !important;
  }
  .category-card__add {
    min-width: 98px !important;
    font-size: .9rem !important;
  }
}

.alias-word-card .decision-card__face--back p.alias-word-text {
  width: 100%;
  max-width: 100% !important;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
  hyphens: auto;
}

.alias-word-card .decision-card__face--back p.alias-word-text--phrase {
  max-width: min(100%, 15ch) !important;
}

.alias-word-card .decision-card__face--back p.alias-word-text--long {
  font-size: clamp(1.5rem, 6vw, 2.8rem) !important;
  letter-spacing: -.025em;
}

.alias-word-card .decision-card__face--back p.alias-word-text--xlong {
  font-size: clamp(1.2rem, 5vw, 2.3rem) !important;
  letter-spacing: -.035em;
}

.alias-word-card .decision-card__face--back p.alias-word-text--xxlong {
  font-size: clamp(1rem, 4.2vw, 1.9rem) !important;
  letter-spacing: -.04em;
}

@media (max-width: 720px) {
  #category-stage,
  #alias-category-stage {
    position: relative !important;
    isolation: isolate;
    min-height: 296px !important;
    overflow: hidden !important;
  }
  .category-card.is-selected::before,
  .category-card.is-selected::after {
    content: none !important;
  }
  .category-track {
    position: relative;
    z-index: 3;
    min-height: 296px !important;
  }
  .category-card.is-selected {
    box-shadow: 0 18px 34px rgba(7, 11, 20, 0.52), 0 0 0 1px rgba(176, 194, 236, 0.08);
    isolation: isolate;
  }
  .category-card {
    width: min(calc(100vw - 88px), 298px) !important;
  }
  .category-card.is-left,
  .category-card.is-right {
    opacity: .28 !important;
  }
  .category-card.is-left,
  .category-card.is-right,
  .category-card.is-hidden {
    filter: none !important;
  }
  .category-card.is-left p,
  .category-card.is-right p,
  .category-card.is-left .category-card__title,
  .category-card.is-right .category-card__title,
  .category-card.is-left .category-card__heat,
  .category-card.is-right .category-card__heat,
  .category-card.is-left .category-card__footer,
  .category-card.is-right .category-card__footer {
    opacity: 0 !important;
  }
  .category-card.is-left .category-card__emoji,
  .category-card.is-right .category-card__emoji {
    opacity: .64 !important;
  }
  .category-card.is-left .category-card__meta,
  .category-card.is-right .category-card__meta {
    opacity: .42 !important;
  }
  .carousel-btn {
    width: 46px !important;
    height: 46px !important;
    border-radius: 999px !important;
    font-size: 0 !important;
    line-height: 0 !important;
    display: grid !important;
    place-items: center !important;
  }
  .carousel-btn::before {
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    transform: none !important;
  }
  #category-prev-btn::before,
  #category-next-btn::before,
  #alias-category-prev-btn::before,
  #alias-category-next-btn::before,
  #whoami-category-prev-btn::before,
  #whoami-category-next-btn::before {
    transform: none !important;
  }
  .category-dots {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 4px !important;
    margin-bottom: 10px !important;
  }
  .category-dot {
    display: inline-block !important;
  }
  .category-dots__count,
  .category-counter {
    width: 100%;
    color: var(--text);
    font-size: .82rem;
    letter-spacing: .04em;
  }
}

@media (max-width: 390px) {
  .category-card {
    width: min(calc(100vw - 78px), 284px) !important;
  }
  .carousel-btn {
    width: 42px !important;
    height: 42px !important;
  }
  .carousel-btn::before {
    font-size: 1.85rem !important;
  }
}


.roulette-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 18px;
  align-items: start;
}

.roulette-chip-grid,
.roulette-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.roulette-option-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .25s ease, border-color .25s ease, color .25s ease;
}

.roulette-option-chip.is-active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(122,132,151,.32), rgba(77,85,99,.3));
  border-color: rgba(161,176,205,.38);
}

.roulette-empty-state {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.02);
  color: var(--muted);
}

.roulette-empty-state strong {
  color: var(--text);
  font-size: .98rem;
}

.roulette-option-form {
  align-items: end;
}

.roulette-game-meta {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.roulette-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 22px;
  align-items: start;
}

.roulette-wheel-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.roulette-wheel-wrap {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  min-height: 274px;
}

.roulette-wheel-wrap::before,
.roulette-wheel-wrap::after {
  content: '';
  position: absolute;
  top: 22px;
  bottom: 22px;
  width: 92px;
  z-index: 3;
  pointer-events: none;
}

.roulette-wheel-wrap::before {
  left: 22px;
  background: linear-gradient(90deg, rgba(8,11,16,.96), rgba(8,11,16,0));
}

.roulette-wheel-wrap::after {
  right: 22px;
  background: linear-gradient(270deg, rgba(8,11,16,.96), rgba(8,11,16,0));
}

.roulette-pointer {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 50%;
  width: 176px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(102,212,163,.08), rgba(102,212,163,.03)),
    linear-gradient(90deg, rgba(102,212,163,.06), rgba(102,212,163,0) 18%, rgba(102,212,163,0) 82%, rgba(102,212,163,.06));
  transform: translateX(-50%);
  box-shadow:
    inset 1px 0 0 rgba(118, 229, 181, .16),
    inset -1px 0 0 rgba(118, 229, 181, .16),
    inset 0 0 28px rgba(88, 196, 151, .06);
  z-index: 4;
  pointer-events: none;
}

.roulette-pointer::before,
.roulette-pointer::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: rgba(102,212,163,.95);
  transform: translateX(-50%);
  box-shadow: 0 0 18px rgba(102,212,163,.32);
}

.roulette-pointer::before {
  top: 10px;
}

.roulette-pointer::after {
  bottom: 10px;
}

.roulette-pointer > span {
  display: none;
}

.roulette-wheel {
  position: relative;
  --roulette-card-width: 176px;
  --roulette-card-gap: 14px;
  overflow: hidden;
  min-height: 228px;
  padding: 12px 0;
}

.roulette-wheel.is-empty {
  display: grid;
  place-items: center;
}

.roulette-wheel__labels {
  display: flex;
  align-items: stretch;
  gap: var(--roulette-card-gap);
  width: max-content;
  min-height: 228px;
  padding: 0 18px;
  will-change: transform;
}

.roulette-wheel__card {
  position: relative;
  flex: 0 0 var(--roulette-card-width);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-height: 204px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(17,22,30,.95), rgba(9,11,16,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}

.roulette-wheel__card::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  top: 12px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 78%, white 22%);
  opacity: .92;
}

.roulette-wheel__card.is-current {
  border-color: rgba(127, 239, 190, .34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 36px rgba(0,0,0,.22);
}

.roulette-wheel__card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 116px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
}

.roulette-wheel__card-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.12;
  font-weight: 800;
  align-self: center;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.roulette-wheel__empty {
  width: min(100%, 320px);
  min-height: 184px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 24px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
}

.roulette-wheel__empty strong {
  color: var(--text);
  font-size: 1.05rem;
}

.roulette-result-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
}

.roulette-result-banner {
  display: grid;
  gap: 10px;
  padding: 20px 24px 22px;
  border: 1px solid rgba(127, 239, 190, .18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top center, rgba(127, 239, 190, .08), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
}

.roulette-result-banner h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.roulette-result-banner .hero-panel__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.roulette-result-panel h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.roulette-result-panel .hero-panel__text {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.roulette-actions {
  grid-template-columns: 1fr;
}

.roulette-actions .action-btn {
  width: 100%;
  min-width: 0;
}

@media (max-width: 900px) {
  .roulette-builder-grid,
  .roulette-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .roulette-wheel {
    --roulette-card-width: 148px;
    --roulette-card-gap: 10px;
    min-height: 208px;
  }

  .roulette-wheel-wrap {
    min-height: 238px;
    padding: 16px;
  }

  .roulette-result-banner {
    padding: 16px 18px 18px;
    gap: 8px;
  }

  .roulette-result-banner h3 {
    font-size: clamp(1.28rem, 6vw, 1.75rem);
  }

  .roulette-wheel-wrap::before,
  .roulette-wheel-wrap::after {
    top: 16px;
    bottom: 16px;
    width: 44px;
  }

  .roulette-wheel-wrap::before {
    left: 16px;
  }

  .roulette-wheel-wrap::after {
    right: 16px;
  }

  .roulette-pointer {
    top: 14px;
    bottom: 14px;
    width: 132px;
  }

  .roulette-wheel__labels {
    min-height: 208px;
    padding: 0 12px;
  }

  .roulette-wheel__card {
    min-height: 184px;
    padding: 14px;
    border-radius: 20px;
  }

  .roulette-wheel__card-tag {
    width: 104px;
    min-height: 32px;
    font-size: .66rem;
  }

  .roulette-wheel__card-title {
    font-size: 1.06rem;
  }

  .roulette-option-chip {
    min-height: 38px;
    padding: 9px 12px;
    font-size: .82rem;
  }
}

@media (min-width: 981px) {
  .topbar {
    grid-template-columns: minmax(190px, 228px) minmax(0, 1fr) minmax(190px, 228px);
    justify-content: normal;
    align-items: center;
    overflow: visible;
    gap: 18px;
    padding: 12px 14px;
    border-radius: 24px;
  }

  .topbar > * {
    min-width: 0;
  }

  .brand-button {
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    justify-self: start;
  }

  .topbar-tabs {
    width: 100%;
    max-width: none;
    min-width: 0;
    grid-template-columns: minmax(148px, 1.34fr) minmax(92px, .82fr) minmax(82px, .74fr) minmax(132px, 1.08fr) minmax(82px, .62fr);
    justify-self: stretch;
    gap: 4px;
    padding: 4px;
    min-height: 52px;
    border-radius: 18px;
  }

  .topbar-tab {
    min-height: 42px;
    padding: 8px 9px;
    white-space: nowrap;
    font-size: .74rem;
  }

  .session-pill {
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 52px;
    padding: 6px 6px 6px 10px;
    overflow: visible;
    border-radius: 18px;
  }

  .session-pill__info {
    gap: 2px;
  }

  .session-pill strong {
    font-size: .85rem;
  }

  .session-pill__sub {
    font-size: .68rem;
  }

  .session-pill__action {
    min-width: 78px;
    min-height: 38px;
    padding: 8px 10px;
    font-size: .82rem;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
  }

  .brand-button {
    order: 1;
    min-width: 0;
  }

  .brand-mark {
    flex: 0 0 52px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-block h1 {
    white-space: nowrap;
  }

  .topbar-tabs {
    order: 3;
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-self: stretch;
    gap: 8px;
    padding: 6px;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 18px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .topbar-tabs::-webkit-scrollbar {
    display: none;
  }

  .topbar-tab,
  .topbar-tab:first-child {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 14px;
    font-size: .74rem;
    line-height: 1;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .topbar-dropdown__menu {
      left: 0;
      right: auto;
      min-width: 220px;
    }

  .topbar-profile-actions {
    order: 2;
    width: auto;
    max-width: min(48vw, 176px);
    justify-self: end;
  }

  .session-pill {
    order: 2;
    width: auto;
    max-width: min(48vw, 176px);
    min-width: 0;
    min-height: 0;
    justify-self: end;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .session-pill__info {
    display: none;
  }

  .session-pill__action {
    min-width: 0;
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    font-size: .82rem;
  }

  .session-pill__action--menu {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 14px;
  }

  .profile-menu {
    left: auto;
    right: 0;
    top: calc(100% + 8px);
    min-width: 210px;
    width: max-content;
    max-width: min(260px, calc(100vw - 24px));
    padding: 8px;
    border-radius: 18px;
    z-index: 90;
  }

  .profile-menu__item {
    min-height: 42px;
    padding: 10px 14px;
  }

  .catalog-choice-hero {
    width: 100%;
    max-width: none;
  }

  .catalog-choice-hero__feature.catalog-choice-card {
    min-height: 212px;
  }
}

.topbar--admin {
  grid-template-columns: minmax(0, 1fr) auto;
}

.topbar--admin .session-pill--admin {
  max-width: 340px;
  position: relative;
}

.topbar--admin .session-pill--admin.session-pill--interactive {
  cursor: pointer;
}

.admin-session-trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.admin-session-trigger__chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255,255,255,.78);
  border-bottom: 2px solid rgba(255,255,255,.78);
  transform: translateY(-62%) rotate(45deg);
  transition: transform .18s ease, opacity .18s ease;
  opacity: .88;
}

.admin-session-trigger--open .admin-session-trigger__chevron {
  transform: translateY(-35%) rotate(-135deg);
}

.topbar--admin #admin-sections-toggle {
  display: none;
}

.admin-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
}

.admin-mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, .72);
  backdrop-filter: blur(8px);
}

.admin-mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, calc(100vw - 18px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16,21,29,.98), rgba(8,10,15,1));
  box-shadow: var(--shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.admin-mobile-menu__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.admin-mobile-menu__head h3,
.admin-mobile-menu__head p {
  margin: 0;
}

.admin-mobile-menu__close {
  position: static;
  flex: 0 0 36px;
}

.admin-section-nav--mobile .action-btn {
  justify-content: flex-start;
  text-align: left;
  min-height: 48px;
}

.admin-mobile-menu__footer {
  display: grid;
  gap: 12px;
}

@media (min-width: 981px) {
  .topbar--admin {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  }

  .topbar--admin #admin-sections-toggle,
  .admin-mobile-menu {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .topbar--admin {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    z-index: 85;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 14px;
  }

  .topbar--admin .brand-button {
    max-width: calc(100vw - 190px);
  }

  .topbar--admin .session-pill {
    width: auto;
    max-width: min(62vw, 248px);
    min-width: 0;
    justify-self: end;
    padding: 8px 10px 8px 12px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    box-shadow: var(--shadow);
    gap: 8px;
  }

  .topbar--admin .session-pill__info {
    display: grid !important;
    padding-right: 20px;
  }

  .topbar--admin .session-pill__info strong {
    max-width: 102px;
    font-size: .82rem;
  }

  .topbar--admin .session-pill__sub {
    display: block;
    font-size: .66rem;
  }

  .topbar--admin #admin-logout-btn {
    display: none !important;
  }

  .topbar--admin #admin-sections-toggle {
    display: none !important;
  }

  .topbar--admin #admin-sections-toggle.hidden {
    display: none !important;
  }

  .topbar--admin .admin-session-trigger {
    display: block;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar--admin {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 8px);
  }

  .topbar--admin .session-pill {
    max-width: min(64vw, 252px);
  }

.topbar--admin .session-pill__action {
    min-width: 96px;
    width: auto;
  }
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #eef4ff;
  --panel: rgba(248, 251, 255, 0.94);
  --panel-soft: rgba(241, 246, 255, 0.94);
  --panel-strong: rgba(251, 253, 255, 0.98);
  --line: rgba(93, 123, 177, 0.16);
  --text: #172033;
  --muted: #5e7192;
  --accent: #4f7cff;
  --accent-soft: rgba(79, 124, 255, 0.14);
  --danger: #d16186;
  --success: #2f7df4;
  --shadow: 0 24px 60px rgba(70, 102, 156, 0.14);
}

:root[data-theme='light'] body {
  background:
    radial-gradient(circle at top left, rgba(96, 143, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(120, 214, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #e9f1ff 100%);
}

:root[data-theme='light'] textarea,
:root[data-theme='light'] select,
:root[data-theme='light'] input {
  background: rgba(255,255,255,.92);
  border-color: rgba(93, 123, 177, 0.18);
  color: var(--text);
}

:root[data-theme='light'] .topbar {
  background: rgba(247, 250, 255, 0.92);
  border-color: rgba(93, 123, 177, 0.14);
  box-shadow: 0 20px 48px rgba(76, 110, 168, 0.12), 0 0 0 1px rgba(255,255,255,.52), 0 0 38px rgba(119, 173, 255, 0.14);
}

:root[data-theme='light'] .topbar::before {
  background: radial-gradient(circle at top, rgba(239, 246, 255, .96) 0%, rgba(239, 246, 255, .74) 44%, rgba(239, 246, 255, 0) 100%);
}

:root[data-theme='light'] .brand-mark {
  background: linear-gradient(180deg, #7eb2ff, #4d82f6);
  border-color: rgba(70, 108, 184, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}

:root[data-theme='light'] .brand-mark__knob {
  left: 32px;
  background: #fdfefe;
  box-shadow: 0 6px 18px rgba(68, 104, 170, .24);
}

:root[data-theme='light'] .brand-mark__moon {
  left: 9px;
  right: auto;
  color: #ffd76f;
  text-shadow: none;
}

:root[data-theme='light'] .topbar-tab.active,
:root[data-theme='light'] .topbar-dropdown__toggle.active {
  color: #17315f;
  background: linear-gradient(180deg, rgba(126, 178, 255, .32), rgba(79, 124, 255, .18));
}

:root[data-theme='light'] .topbar-dropdown__menu,
:root[data-theme='light'] .profile-menu,
:root[data-theme='light'] .session-pill {
  background: rgba(248, 251, 255, .98);
  border-color: rgba(93, 123, 177, 0.14);
  box-shadow: 0 18px 42px rgba(76, 110, 168, 0.12);
}

:root[data-theme='light'] .topbar-dropdown__item:hover,
:root[data-theme='light'] .topbar-dropdown__item:focus-visible,
:root[data-theme='light'] .profile-menu__item:hover,
:root[data-theme='light'] .profile-menu__item:focus-visible,
:root[data-theme='light'] .session-pill__action {
  background: rgba(79, 124, 255, 0.08);
}

:root[data-theme='light'] .session-pill__action,
:root[data-theme='light'] .action-btn,
:root[data-theme='light'] .topbar-tab,
:root[data-theme='light'] .topbar-dropdown__item,
:root[data-theme='light'] .profile-menu__item {
  color: var(--text);
}

:root[data-theme='light'] .brand-copy p,
:root[data-theme='light'] .hero-panel__eyebrow,
:root[data-theme='light'] .game-badge span,
:root[data-theme='light'] .decision-card__badge,
:root[data-theme='light'] .decision-card__type,
:root[data-theme='light'] .heat-panel__head span,
:root[data-theme='light'] .session-pill__sub,
:root[data-theme='light'] .inline-status {
  color: #62779b;
}

:root[data-theme='light'] .catalog-shot,
:root[data-theme='light'] .landing-shot,
:root[data-theme='light'] .catalog-card__media,
:root[data-theme='light'] .landing-game-card__media {
  background:
    radial-gradient(circle at top, rgba(126, 178, 255, .16), transparent 42%),
    linear-gradient(180deg, rgba(249, 252, 255, .98), rgba(235, 242, 255, .98));
}

:root[data-theme='light'] .action-btn--primary {
  background: linear-gradient(180deg, rgba(126, 178, 255, .24), rgba(79, 124, 255, .16));
  border-color: rgba(79, 124, 255, .22);
  color: #18386a;
}

:root[data-theme='light'] .room-game-hero,
:root[data-theme='light'] .room-turn-card,
:root[data-theme='light'] .room-game-panel,
:root[data-theme='light'] .room-lobby-hero,
:root[data-theme='light'] .room-lobby-panel,
:root[data-theme='light'] .room-lobby-actions-card,
:root[data-theme='light'] .room-lobby-chat,
:root[data-theme='light'] .anonymous-chat-hero,
:root[data-theme='light'] .anonymous-chat-panel,
:root[data-theme='light'] .anonymous-chat-matchmaker__card,
:root[data-theme='light'] .anonymous-chat-invite {
  background: rgba(248, 251, 255, .94) !important;
  border-color: rgba(93, 123, 177, 0.14) !important;
  box-shadow: 0 16px 42px rgba(76, 110, 168, 0.1) !important;
}

:root[data-theme='light'] .room-chat,
:root[data-theme='light'] .hero-panel,
:root[data-theme='light'] .stage-card,
:root[data-theme='light'] .game-badge,
:root[data-theme='light'] .modal__dialog,
:root[data-theme='light'] .admin-panel,
:root[data-theme='light'] .premium-card {
  background: var(--panel) !important;
}

:root[data-theme='light'] .catalog-choice-card {
  background:
    radial-gradient(circle at top left, rgba(126, 178, 255, .16), transparent 38%),
    linear-gradient(180deg, rgba(249, 252, 255, .98), rgba(237, 243, 255, .98)) !important;
  border-color: rgba(93, 123, 177, 0.14) !important;
  box-shadow: 0 18px 42px rgba(76, 110, 168, 0.1), 0 0 0 1px rgba(255,255,255,.44) !important;
}

:root[data-theme='light'] .catalog-choice-card--truth {
  background:
    radial-gradient(circle at top left, rgba(95, 194, 255, .14), transparent 38%),
    radial-gradient(circle at right, rgba(124, 160, 255, .1), transparent 34%),
    linear-gradient(180deg, rgba(249, 252, 255, .98), rgba(237, 243, 255, .98)) !important;
}

:root[data-theme='light'] .catalog-choice-card--alias {
  background:
    radial-gradient(circle at top left, rgba(79, 124, 255, .16), transparent 36%),
    radial-gradient(circle at bottom right, rgba(120, 214, 255, .1), transparent 30%),
    linear-gradient(180deg, rgba(249, 252, 255, .98), rgba(237, 243, 255, .98)) !important;
}

:root[data-theme='light'] .catalog-choice-card--whoami {
  background:
    radial-gradient(circle at top left, rgba(134, 145, 255, .15), transparent 36%),
    radial-gradient(circle at bottom right, rgba(126, 178, 255, .1), transparent 30%),
    linear-gradient(180deg, rgba(249, 252, 255, .98), rgba(237, 243, 255, .98)) !important;
}

:root[data-theme='light'] .catalog-choice-card--roulette {
  background:
    radial-gradient(circle at top left, rgba(112, 187, 255, .14), transparent 36%),
    radial-gradient(circle at bottom right, rgba(154, 171, 255, .1), transparent 30%),
    linear-gradient(180deg, rgba(249, 252, 255, .98), rgba(237, 243, 255, .98)) !important;
}

:root[data-theme='light'] .catalog-choice-card--anonymous {
  background:
    radial-gradient(circle at top left, rgba(91, 140, 255, .16), transparent 36%),
    radial-gradient(circle at right, rgba(110, 213, 255, .1), transparent 34%),
    linear-gradient(180deg, rgba(249, 252, 255, .98), rgba(237, 243, 255, .98)) !important;
}

:root[data-theme='light'] .catalog-choice-card--monopolis {
  background:
    radial-gradient(circle at top left, rgba(39, 162, 111, .14), transparent 38%),
    radial-gradient(circle at bottom right, rgba(250, 204, 21, .12), transparent 34%),
    linear-gradient(180deg, rgba(249, 252, 255, .98), rgba(237, 243, 255, .98)) !important;
}

:root[data-theme='light'] .catalog-choice-card__today {
    border-color: rgba(79, 124, 255, .14);
    background: linear-gradient(180deg, rgba(79, 124, 255, .07), rgba(255,255,255,.72));
  }

.catalog-choice-hero {
  width: 100%;
  max-width: none;
  margin: 0;
}

.catalog-choice-hero__feature {
  align-self: stretch;
}

.catalog-choice-hero__feature.catalog-choice-card {
  width: 100%;
  min-width: 0;
}

@media (max-width: 720px) {
  .topbar-tabs {
    padding-inline-end: 18px;
    scroll-padding-inline-end: 18px;
  }

  .topbar-dropdown {
    flex: 0 0 auto;
  }

  .topbar-dropdown__toggle {
    min-width: 76px;
  }

  .topbar-dropdown__menu {
    left: auto;
    right: 0;
  }

  .catalog-choice-card--anonymous.catalog-choice-hero__feature {
    min-height: 212px;
  }

  .catalog-choice-card__intro--anonymous {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .catalog-choice-card__intro-side {
    justify-content: flex-start;
  }

  .catalog-choice-card__intro-side p {
    width: 100%;
    margin-left: 0;
  }

  .catalog-choice-card--anonymous .catalog-choice-card__intro-main h3 {
    max-width: none;
  }
}

.catalog-home-page .page-shell {
  padding-bottom: 18px;
}

.catalog-home-page .topbar {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 280px);
}

.catalog-home-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.catalog-home-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.catalog-home-dashboard {
  display: grid;
  gap: 16px;
  scroll-margin-top: 110px;
}

.catalog-home-dashboard__hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(340px, 1.08fr);
  gap: 18px;
  align-items: stretch;
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(102, 212, 163, .13), transparent 34%),
    radial-gradient(circle at right, rgba(104, 141, 255, .14), transparent 32%),
    linear-gradient(180deg, rgba(19, 24, 33, .98), rgba(11, 15, 22, .98));
  box-shadow: var(--shadow);
}

.catalog-home-dashboard__copy {
  display: grid;
  gap: 12px;
  align-content: center;
  max-width: 660px;
}

.catalog-home-dashboard__copy h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.65rem, 2.5vw, 2.55rem);
  line-height: 1.04;
  font-weight: 800;
}

.catalog-home-dashboard__copy p:not(.hero-panel__eyebrow) {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.catalog-home-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.catalog-home-metric {
  display: grid;
  gap: 7px;
  align-content: center;
  min-height: 124px;
  padding: 15px;
  border: 1px solid rgba(102, 212, 163, .12);
  border-radius: 20px;
  background: rgba(8, 13, 18, .52);
}

.catalog-home-metric span,
.catalog-home-metric small {
  color: var(--muted);
}

.catalog-home-metric span {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.catalog-home-metric strong {
  color: var(--success);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
}

.catalog-home-metric small {
  font-size: .78rem;
  line-height: 1.3;
}

.catalog-home-games-link {
  display: none;
}

.catalog-home-quickgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.catalog-home-quickcard {
  display: grid;
  gap: 8px;
  min-height: 142px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 18, 27, .86);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.catalog-home-quickcard:hover,
.catalog-home-quickcard:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(102, 212, 163, .26);
  background: rgba(17, 23, 34, .94);
}

.catalog-home-quickcard span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.catalog-home-quickcard strong {
  font-size: 1.05rem;
  line-height: 1.15;
}

.catalog-home-quickcard small {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.catalog-home-quickcard:first-child {
  background:
    radial-gradient(circle at top left, rgba(102, 212, 163, .16), transparent 42%),
    rgba(13, 22, 20, .9);
}

.catalog-news-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(13, 17, 24, .94);
  box-shadow: var(--shadow);
}

.catalog-news-panel__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.catalog-news-panel__head h3 {
  margin: 6px 0 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.08;
}

.catalog-news-list {
  display: grid;
  gap: 12px;
}

.catalog-news-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at left, rgba(102, 212, 163, .08), transparent 38%),
    rgba(9, 13, 19, .72);
}

.catalog-news-card__meta {
  color: #a9c4ef;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.catalog-news-card h4 {
  margin: 0;
  font-size: clamp(1.1rem, 1.45vw, 1.45rem);
  line-height: 1.15;
}

.catalog-news-card__body {
  display: grid;
  gap: 8px;
  color: #b8c8e4;
  font-size: .96rem;
  line-height: 1.58;
}

.catalog-news-card__body p,
.catalog-news-card__body ul {
  margin: 0;
}

.catalog-news-card__body ul {
  display: grid;
  gap: 5px;
  padding-left: 1.15rem;
}

.catalog-news-card__link {
  width: fit-content;
  color: var(--success);
  font-weight: 800;
}

.catalog-news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.catalog-news-pagination .action-btn {
  width: auto;
  min-width: 116px;
}

.catalog-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.catalog-sidebar__nav,
.catalog-sidebar__status,
.catalog-sidebar__promo {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(9, 12, 18, .82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.catalog-sidebar__nav {
  display: grid;
  gap: 4px;
  padding: 8px;
}

.catalog-sidebar__item,
.catalog-mobile-nav__item {
  color: var(--muted);
  text-decoration: none;
}

.catalog-sidebar__item {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 10px 11px;
  border-radius: 14px;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.catalog-sidebar__item:hover,
.catalog-sidebar__item:focus-visible,
.catalog-sidebar__item--active {
  color: var(--text);
  background: rgba(255, 255, 255, .07);
}

.catalog-sidebar__item svg,
.catalog-mobile-nav__item svg {
  width: 23px;
  height: 23px;
  display: block;
  fill: currentColor;
}

.catalog-sidebar__item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-sidebar__item b {
  min-width: 30px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(102, 212, 163, .14);
  color: #7ff0bd;
  font-size: .62rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.catalog-sidebar__item.topbar-tab,
.catalog-mobile-nav__item.topbar-tab {
  justify-content: initial;
  overflow: visible;
  white-space: normal;
}

.catalog-sidebar__item.topbar-tab.active,
.catalog-mobile-nav__item.topbar-tab.active {
  background: rgba(255, 255, 255, .07);
}

.catalog-sidebar__item.topbar-tab--live::after {
  left: auto;
  right: 11px;
  bottom: auto;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
}

.catalog-sidebar__status.game-session-panel {
  grid-template-columns: 1fr;
  margin: 0;
  padding: 16px;
  border-radius: 22px;
}

.catalog-sidebar__status .game-session-panel__copy h3 {
  font-size: 1rem;
  line-height: 1.18;
}

.catalog-sidebar__status .game-session-panel__text {
  font-size: .82rem;
  line-height: 1.5;
}

.catalog-sidebar__status .game-session-panel__actions {
  grid-template-columns: 1fr;
}

.catalog-sidebar__status .action-btn {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: .84rem;
}

.catalog-sidebar__promo {
  display: grid;
  gap: 6px;
  padding: 16px;
  background:
    radial-gradient(circle at top left, rgba(104, 141, 255, .18), transparent 45%),
    linear-gradient(180deg, rgba(16, 22, 32, .9), rgba(9, 12, 18, .94));
}

.catalog-sidebar__promo span,
.catalog-sidebar__promo small {
  color: var(--muted);
}

.catalog-sidebar__promo span {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.catalog-sidebar__promo strong {
  font-size: 1.05rem;
  line-height: 1.15;
}

.catalog-sidebar__promo small {
  font-size: .82rem;
  line-height: 1.45;
}

.catalog-mobile-nav {
  display: none;
}

.site-shell-sidebar,
.site-shell-mobile-nav {
  display: none;
}

html.is-telegram-webapp {
  --mobile-nav-lift: 12px;
}

@media (min-width: 981px) {
  body.site-shell-nav-enabled {
    --site-sidebar-width: 250px;
    --site-shell-gap: 18px;
    --site-sidebar-offset: calc(var(--site-sidebar-width) + var(--site-shell-gap));
    --site-shell-width: min(calc(var(--content-width) + var(--site-sidebar-offset)), calc(100vw - 36px));
    --site-nav-left: max(18px, calc((100vw - var(--site-shell-width)) / 2));
    --site-content-left: calc(var(--site-nav-left) + var(--site-sidebar-offset));
    --site-right-gap: max(18px, calc(100vw - var(--site-nav-left) - var(--site-shell-width)));
    --site-content-available: calc(var(--site-shell-width) - var(--site-sidebar-offset));
  }

  body.site-shell-nav-enabled .page-shell {
    padding-left: var(--site-content-left);
    padding-right: var(--site-right-gap);
  }

  body.site-shell-nav-enabled .topbar {
    width: var(--site-shell-width);
    max-width: none;
    margin-left: calc(-1 * var(--site-sidebar-offset));
    margin-right: 0;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 280px);
  }

  body.site-shell-nav-enabled .topbar::before {
    inset: -120px 0 -26px 0;
  }

  body.site-shell-nav-enabled .app-shell,
  body.site-shell-nav-enabled .site-footer,
  body.site-shell-nav-enabled .legal-shell {
    width: var(--site-content-available);
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  body.site-shell-nav-enabled .topbar-tabs {
    display: none;
  }

  .site-shell-sidebar {
    position: fixed;
    top: 116px;
    left: var(--site-nav-left);
    z-index: 28;
    width: var(--site-sidebar-width);
    max-height: calc(100vh - 134px);
    display: grid;
    gap: 14px;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .site-shell-sidebar::-webkit-scrollbar {
    display: none;
  }

  .site-shell-sidebar__nav,
  .site-shell-sidebar__more {
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(9, 12, 18, .82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .site-shell-nav__item {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 44px;
    padding: 10px 11px;
    border-radius: 14px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
  }

  .site-shell-nav__item:hover,
  .site-shell-nav__item:focus-visible,
  .site-shell-nav__item.active {
    color: var(--text);
    background: rgba(255, 255, 255, .07);
  }

  .site-shell-nav__item svg {
    width: 23px;
    height: 23px;
    display: block;
    fill: currentColor;
  }

  .site-shell-nav__item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-shell-nav__item b {
    min-width: 30px;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(102, 212, 163, .14);
    color: #7ff0bd;
    font-size: .62rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .08em;
  }

  .site-shell-nav__item--muted {
    min-height: 40px;
    font-size: .82rem;
  }

  .site-shell-nav__item.topbar-tab {
    justify-content: initial;
    overflow: visible;
    white-space: normal;
  }

  .site-shell-nav__item.topbar-tab--live::after {
    left: auto;
    right: 11px;
    bottom: auto;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translateY(-50%);
  }
}

@media (max-width: 980px) {
  body.site-shell-nav-enabled .page-shell {
    padding-bottom: calc(96px + var(--mobile-nav-lift, 0px) + env(safe-area-inset-bottom, 0px));
  }

  body.site-shell-nav-enabled .topbar-tabs {
    display: none;
  }

  .site-shell-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--mobile-nav-browser-offset, 0px) + var(--mobile-nav-lift, 0px));
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 7px max(10px, env(safe-area-inset-left, 0px)) calc(7px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-right, 0px));
    border-top: 1px solid var(--line);
    background: #090c12;
    box-shadow: 0 -18px 38px rgba(0, 0, 0, .24);
    backdrop-filter: blur(20px);
  }

  .site-shell-mobile-nav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: calc(var(--mobile-nav-browser-offset, 0px) + var(--mobile-nav-lift, 0px) + max(52px, env(safe-area-inset-bottom, 0px)));
    background: #090c12;
    pointer-events: none;
  }

  body.has-active-session .site-shell-mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .site-shell-mobile-nav__item {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 52px;
    padding: 3px 2px;
    border-radius: 14px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.05;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
  }

  .site-shell-mobile-nav__item svg {
    width: 25px;
    height: 25px;
    display: block;
    fill: currentColor;
  }

  .site-shell-mobile-nav__item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-shell-mobile-nav__item.active,
  .site-shell-mobile-nav__item:hover,
  .site-shell-mobile-nav__item:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
  }

  .site-shell-mobile-nav__item.topbar-tab--live::after {
    left: calc(50% + 14px);
    top: 7px;
    bottom: auto;
    width: 8px;
    height: 8px;
    transform: none;
  }
}

@media (max-width: 980px) {
  .catalog-home-page .topbar {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  }

  .catalog-home-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    display: none;
  }

  .catalog-home-dashboard {
    scroll-margin-top: 24px;
  }

  .catalog-home-dashboard__hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .catalog-home-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-home-quickgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .catalog-home-page .page-shell {
    padding-bottom: calc(96px + var(--mobile-nav-lift, 0px) + env(safe-area-inset-bottom, 0px));
  }

  .catalog-home-page .topbar {
    position: relative;
    top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .catalog-home-page .session-pill {
    max-width: min(56vw, 230px);
  }

  .catalog-home-page .site-footer {
    padding-bottom: 16px;
  }

  .catalog-home-dashboard__hero {
    gap: 16px;
    padding: 18px 16px;
    border-radius: 24px;
  }

  .catalog-home-dashboard__copy h2 {
    max-width: 16ch;
    font-size: clamp(1.65rem, 7vw, 2.15rem);
  }

  .catalog-home-dashboard__copy p:not(.hero-panel__eyebrow) {
    font-size: .94rem;
  }

  .catalog-home-metrics {
    grid-template-columns: 1fr;
  }

  .catalog-home-metric {
    min-height: 86px;
  }

  .catalog-home-games-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 16px;
    border: 1px solid rgba(102, 212, 163, .24);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(102, 212, 163, .16), rgba(102, 212, 163, .08));
    color: var(--text);
    font-weight: 800;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
  }

  .catalog-home-games-link:hover,
  .catalog-home-games-link:focus-visible {
    border-color: rgba(102, 212, 163, .38);
    background: linear-gradient(180deg, rgba(102, 212, 163, .21), rgba(102, 212, 163, .1));
  }

  .catalog-home-quickgrid {
    grid-template-columns: 1fr;
  }

  .catalog-home-quickcard {
    min-height: 118px;
    padding: 15px;
    border-radius: 20px;
  }

  .catalog-news-panel {
    padding: 16px;
    border-radius: 24px;
  }

  .catalog-news-panel__head {
    display: grid;
    align-items: start;
    gap: 8px;
  }

  .catalog-news-card {
    padding: 15px;
    border-radius: 18px;
  }

  .catalog-news-pagination {
    justify-content: stretch;
  }

  .catalog-news-pagination .action-btn {
    flex: 1 1 120px;
    min-width: 0;
  }

  .catalog-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--mobile-nav-browser-offset, 0px) + var(--mobile-nav-lift, 0px));
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 7px max(10px, env(safe-area-inset-left, 0px)) calc(7px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-right, 0px));
    border-top: 1px solid var(--line);
    background: #090c12;
    box-shadow: 0 -18px 38px rgba(0, 0, 0, .24);
    backdrop-filter: blur(20px);
  }

  .catalog-mobile-nav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: calc(var(--mobile-nav-browser-offset, 0px) + var(--mobile-nav-lift, 0px) + max(52px, env(safe-area-inset-bottom, 0px)));
    background: #090c12;
    pointer-events: none;
  }

  body.has-active-session .catalog-mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .catalog-mobile-nav__item {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 52px;
    padding: 3px 2px;
    border-radius: 14px;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.05;
    transition: background .2s ease, color .2s ease;
  }

  .catalog-mobile-nav__item svg {
    width: 25px;
    height: 25px;
  }

  .catalog-mobile-nav__item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-mobile-nav__item--active,
  .catalog-mobile-nav__item:hover,
  .catalog-mobile-nav__item:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
  }

  .catalog-mobile-nav__item.topbar-tab--live::after {
    left: calc(50% + 14px);
    top: 7px;
    bottom: auto;
    width: 8px;
    height: 8px;
    transform: none;
  }
}

:root[data-theme='light'] .catalog-sidebar__nav,
:root[data-theme='light'] .catalog-sidebar__status,
:root[data-theme='light'] .catalog-sidebar__promo,
:root[data-theme='light'] .catalog-mobile-nav,
:root[data-theme='light'] .catalog-mobile-nav::after,
:root[data-theme='light'] .site-shell-sidebar__nav,
:root[data-theme='light'] .site-shell-sidebar__more,
:root[data-theme='light'] .site-shell-mobile-nav,
:root[data-theme='light'] .site-shell-mobile-nav::after {
  background: rgba(248, 251, 255, .94);
  border-color: rgba(93, 123, 177, 0.14);
  box-shadow: 0 18px 42px rgba(76, 110, 168, 0.12);
}

:root[data-theme='light'] .catalog-sidebar__item:hover,
:root[data-theme='light'] .catalog-sidebar__item:focus-visible,
:root[data-theme='light'] .catalog-sidebar__item--active,
:root[data-theme='light'] .catalog-sidebar__item.topbar-tab.active,
:root[data-theme='light'] .catalog-mobile-nav__item--active,
:root[data-theme='light'] .catalog-mobile-nav__item:hover,
:root[data-theme='light'] .catalog-mobile-nav__item:focus-visible,
:root[data-theme='light'] .catalog-mobile-nav__item.topbar-tab.active,
:root[data-theme='light'] .site-shell-nav__item:hover,
:root[data-theme='light'] .site-shell-nav__item:focus-visible,
:root[data-theme='light'] .site-shell-nav__item.active,
:root[data-theme='light'] .site-shell-mobile-nav__item:hover,
:root[data-theme='light'] .site-shell-mobile-nav__item:focus-visible,
:root[data-theme='light'] .site-shell-mobile-nav__item.active {
  background: rgba(79, 124, 255, 0.08);
  color: var(--text);
}

:root[data-theme='light'] .catalog-sidebar__item b,
:root[data-theme='light'] .site-shell-nav__item b {
  background: rgba(79, 124, 255, .11);
  color: #275fe0;
}

:root[data-theme='light'] .catalog-sidebar__promo {
  background:
    radial-gradient(circle at top left, rgba(91, 140, 255, .14), transparent 45%),
    linear-gradient(180deg, rgba(249, 252, 255, .96), rgba(237, 243, 255, .96));
}

:root[data-theme='light'] .catalog-home-dashboard__hero {
  background:
    radial-gradient(circle at top left, rgba(95, 194, 255, .15), transparent 34%),
    radial-gradient(circle at right, rgba(124, 160, 255, .12), transparent 32%),
    linear-gradient(180deg, rgba(249, 252, 255, .98), rgba(237, 243, 255, .98));
  border-color: rgba(93, 123, 177, 0.14);
  box-shadow: 0 18px 42px rgba(76, 110, 168, 0.1), 0 0 0 1px rgba(255,255,255,.44);
}

:root[data-theme='light'] .catalog-home-quickcard {
  background: rgba(248, 251, 255, .94);
  border-color: rgba(93, 123, 177, 0.14);
  box-shadow: 0 14px 34px rgba(76, 110, 168, 0.08);
}

:root[data-theme='light'] .catalog-home-quickcard:hover,
:root[data-theme='light'] .catalog-home-quickcard:focus-visible {
  background: rgba(255, 255, 255, .98);
  border-color: rgba(79, 124, 255, .18);
}

:root[data-theme='light'] .catalog-home-quickcard:first-child {
  background:
    radial-gradient(circle at top left, rgba(79, 124, 255, .13), transparent 42%),
    rgba(248, 251, 255, .95);
}

:root[data-theme='light'] .catalog-home-games-link {
  border-color: rgba(45, 144, 104, .2);
  background: linear-gradient(180deg, rgba(57, 188, 134, .16), rgba(57, 188, 134, .08));
  color: #133f31;
}

:root[data-theme='light'] .catalog-home-games-link:hover,
:root[data-theme='light'] .catalog-home-games-link:focus-visible {
  border-color: rgba(45, 144, 104, .32);
  background: linear-gradient(180deg, rgba(57, 188, 134, .21), rgba(57, 188, 134, .1));
}

:root[data-theme='light'] .catalog-choice-card__today-dot {
  background: #5b8cff;
  box-shadow: 0 0 0 6px rgba(91,140,255,.1), 0 0 18px rgba(91,140,255,.18);
}

:root[data-theme='light'] .catalog-choice-card__today-copy strong {
  color: #275fe0;
}

:root[data-theme='light'] .catalog-choice-card__today-copy span {
  color: #6a82a8;
}

.games-page--list {
  padding-top: 0;
}

.games-page--list .catalog-choice-card__today {
  display: none;
}

.games-page--list .catalog-choice-card {
  --catalog-card-accent: rgba(255, 124, 159, 0.14);
  --catalog-card-edge: rgba(255, 223, 214, 0.13);
  gap: 12px;
  min-height: 100%;
  padding: 14px;
  overflow: hidden;
  border-color: var(--catalog-card-edge);
  border-radius: 20px;
  background:
    radial-gradient(circle at 24% 0, var(--catalog-card-accent), transparent 42%),
    linear-gradient(180deg, rgba(30, 18, 30, 0.94), rgba(15, 10, 18, 0.97)) !important;
}

.games-page--list .catalog-choice-card--monopolis {
  --catalog-card-accent: rgba(255, 210, 122, 0.16);
  --catalog-card-edge: rgba(255, 210, 122, 0.2);
}

.games-page--list .catalog-choice-card--truth {
  --catalog-card-accent: rgba(255, 113, 136, 0.2);
}

.games-page--list .catalog-choice-card--alias {
  --catalog-card-accent: rgba(102, 212, 163, 0.16);
}

.games-page--list .catalog-choice-card--anonymous {
  --catalog-card-accent: rgba(255, 124, 159, 0.2);
}

.games-page--list .catalog-choice-card--whoami {
  --catalog-card-accent: rgba(154, 124, 255, 0.18);
}

.games-page--list .catalog-choice-card--roulette {
  --catalog-card-accent: rgba(102, 212, 163, 0.14);
}

.games-page--list .catalog-choice-card__body {
  gap: 7px;
}

.games-page--list .catalog-choice-card__body h3 {
  max-width: 13ch;
  color: #fff8f5;
  font-size: clamp(1.24rem, 1.55vw, 1.68rem);
  line-height: 1.02;
}

.games-page--list .catalog-choice-card__body > p:not(.hero-panel__eyebrow) {
  max-width: 38ch;
  color: rgba(255, 242, 235, 0.76);
  line-height: 1.62;
}

.games-page--list .catalog-choice-card .action-btn {
  width: fit-content;
  margin-top: auto;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.84rem;
}

.catalog-game-visual {
  position: relative;
  display: grid;
  height: clamp(148px, 12vw, 180px);
  min-height: 148px;
  overflow: hidden;
  border: 1px solid rgba(255, 223, 214, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 18%, rgba(102, 212, 163, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(12, 18, 28, 0.96), rgba(7, 10, 16, 0.98));
}

.catalog-game-visual--truth {
  place-items: center;
}

.catalog-game-visual-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 88px;
  height: 116px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(21, 31, 45, 0.98), rgba(8, 13, 21, 0.98));
  color: #f9fbff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-game-visual-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 11px;
  right: 11px;
  height: 3px;
  border-radius: 999px;
  background: #66d4a3;
}

.catalog-game-visual-card.is-front {
  z-index: 2;
  width: 102px;
  height: 132px;
  border-color: rgba(102, 212, 163, 0.38);
}

.catalog-game-visual-card.is-back:first-child {
  transform: translateX(-64px) rotate(-10deg);
  opacity: 0.52;
}

.catalog-game-visual-card.is-back:last-child {
  transform: translateX(64px) rotate(10deg);
  opacity: 0.52;
}

.catalog-game-visual--alias {
  align-content: center;
  gap: 7px;
  padding: 16px;
}

.catalog-game-visual--alias strong {
  color: #f9fbff;
  font-size: 1.55rem;
  line-height: 1;
}

.catalog-game-visual--alias span {
  width: fit-content;
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 248, 245, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
}

.catalog-game-visual--alias span:nth-child(3) {
  justify-self: end;
  background: rgba(255, 210, 122, 0.12);
}

.catalog-game-visual--chat {
  align-content: end;
  gap: 8px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(154, 124, 255, 0.14), rgba(255, 124, 159, 0.08)),
    rgba(9, 7, 12, 0.56);
}

.catalog-game-visual--chat p {
  width: fit-content;
  max-width: 82%;
  margin: 0;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255, 248, 245, 0.09);
  color: #fff8f5;
  font-size: 0.78rem;
  font-weight: 700;
}

.catalog-game-visual--chat p:nth-child(2) {
  justify-self: end;
  background: rgba(255, 124, 159, 0.18);
}

.catalog-game-visual--chat p:nth-child(3) {
  background: rgba(255, 210, 122, 0.14);
}

.catalog-game-visual--whoami {
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 16px;
}

.catalog-game-visual--whoami span,
.catalog-game-visual--whoami div {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 248, 245, 0.72);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.catalog-game-visual--whoami strong {
  max-width: 9ch;
  color: #f9fbff;
  font-size: 1.72rem;
  line-height: 0.96;
  text-align: center;
}

.catalog-game-visual--roulette {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 16px;
}

.catalog-game-visual--roulette span {
  display: grid;
  place-items: center;
  width: min(112px, 72%);
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255, 217, 102, 0.34);
  border-radius: 24px;
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 72% 76%, rgba(255, 202, 75, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(32, 39, 59, 0.98), rgba(21, 13, 31, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 34px rgba(255, 83, 143, 0.14);
  color: #f9fbff;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
}

.catalog-game-visual--roulette span:nth-child(2n) {
  background: inherit;
}

.catalog-game-visual--monopolis {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 1px;
  padding: 8px;
  background:
    radial-gradient(circle at center, rgba(102, 212, 163, 0.06), transparent 48%),
    rgba(9, 7, 12, 0.58);
}

.catalog-board-cell {
  position: relative;
  grid-column: var(--c);
  grid-row: var(--r);
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 8px 3px 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(37, 39, 49, 0.92), rgba(19, 20, 28, 0.96));
}

.catalog-board-cell b {
  position: absolute;
  inset: 0 0 auto;
  min-height: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #2f9dff;
  font-size: 0.34rem;
  line-height: 1;
}

.catalog-board-cell img {
  width: min(95%, 46px);
  max-height: 22px;
  object-fit: contain;
}

.catalog-board-cell span {
  color: #f9fbff;
  font-size: 0.4rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.catalog-board-cell--start,
.catalog-board-cell--chance,
.catalog-board-cell--rest,
.catalog-board-cell--jackpot,
.catalog-board-cell--corner {
  background:
    radial-gradient(circle at center, rgba(102, 212, 163, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(28, 47, 48, 0.94), rgba(17, 28, 31, 0.98));
}

.catalog-board-cell--chance span {
  font-size: 1rem;
}

.catalog-board-center {
  grid-column: 2 / 8;
  grid-row: 2 / 6;
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(102, 212, 163, 0.18);
  border-radius: 8px;
  background: rgba(3, 10, 17, 0.9);
}

.catalog-board-center span {
  color: rgba(255, 248, 245, 0.7);
  font-size: 0.4rem;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-board-center strong {
  color: #fff8f5;
  font-size: 0.62rem;
  line-height: 1.1;
}

.catalog-board-center p {
  width: fit-content;
  max-width: 24ch;
  margin: 3px auto 0;
  padding: 5px 7px;
  border: 1px solid rgba(102, 212, 163, 0.3);
  border-radius: 999px;
  color: rgba(220, 246, 237, 0.86);
  font-size: 0.46rem;
  line-height: 1.1;
  text-align: center;
}

@media (max-width: 1040px) {
  .games-page--list .catalog-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .games-page-body {
    overflow-x: hidden;
  }

  .games-page-body .page-shell,
  .games-page-body .topbar,
  .games-page--list,
  .games-page--list .catalog-choice-grid,
  .games-page--list .catalog-choice-card {
    width: min(100%, 370px);
    max-width: min(100%, 370px);
  }

  .games-page-body .page-shell {
    align-items: center;
  }

  .games-page-body .site-footer {
    display: none;
  }

  .games-page-body #games-active-session-panel {
    display: none !important;
  }

  .games-page--list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .games-page--list .catalog-choice-hero,
  .games-page--list .catalog-choice-grid {
    display: contents;
  }

  .games-page--list .catalog-choice-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
  }

  .games-page--list .catalog-choice-card,
  .games-page--list .catalog-choice-hero__feature.catalog-choice-card,
  .games-page--list .catalog-choice-card--anonymous.catalog-choice-hero__feature {
    position: relative;
    min-height: 0;
    padding: 12px;
    gap: 9px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 18px;
  }

  .games-page--list .catalog-choice-card__body {
    min-width: 0;
    gap: 6px;
  }

  .games-page--list .catalog-choice-card__intro--anonymous {
    display: grid;
    gap: 6px;
  }

  .games-page--list .hero-panel__eyebrow {
    display: inline-flex;
    min-height: 24px;
    padding: 5px 8px;
    font-size: 0.6rem;
  }

  .games-page--list .catalog-choice-card__intro-side {
    display: block;
  }

  .games-page--list .catalog-choice-card__intro-side p,
  .games-page--list .catalog-choice-card__body > p:not(.hero-panel__eyebrow) {
    max-width: none;
    color: rgba(255, 242, 235, 0.74);
    font-size: .9rem;
    line-height: 1.5;
  }

  .games-page--list .catalog-choice-card h3,
  .games-page--list .catalog-choice-card--anonymous .catalog-choice-card__intro-main h3 {
    max-width: none;
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.05;
  }

  .games-page--list .catalog-choice-card .action-btn {
    position: relative;
    inset: auto;
    z-index: auto;
    width: auto;
    min-width: 132px;
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
    color: var(--text);
    box-shadow: none;
    font-size: .82rem;
  }

  .catalog-game-visual {
    width: 100%;
    height: 150px;
    min-height: 150px;
  }

  .catalog-game-visual--roulette span {
    width: min(92px, 62%);
    font-size: 2.65rem;
  }

  .catalog-game-visual--monopolis {
    height: 150px;
    grid-template-rows: repeat(6, minmax(0, 1fr));
  }

  .catalog-board-cell {
    padding: 8px 3px 3px;
  }

  .catalog-board-cell b {
    min-height: 9px;
    font-size: 0.34rem;
  }

  .catalog-board-cell img {
    width: min(96%, 46px);
    max-height: 22px;
  }

  .catalog-board-cell span {
    font-size: 0.42rem;
  }

  .catalog-board-center strong {
    font-size: 0.68rem;
  }

  .catalog-board-center p {
    display: none;
  }
}

/* Compact hybrid game tiles: visual + colored quick-pick block */
.games-page--list .catalog-choice-card {
  --game-emoji: "🎮";
  --tile-glow: var(--catalog-card-accent);
  display: grid !important;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  grid-template-areas: "visual body action";
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at right top, var(--tile-glow), transparent 52%),
    linear-gradient(180deg, rgba(30, 18, 30, 0.94), rgba(15, 10, 18, 0.97)) !important;
}

.games-page--list .catalog-choice-card--monopolis { --game-emoji: "🎲"; }
.games-page--list .catalog-choice-card--truth { --game-emoji: "💬"; }
.games-page--list .catalog-choice-card--alias { --game-emoji: "🗣️"; }
.games-page--list .catalog-choice-card--anonymous { --game-emoji: "💌"; }
.games-page--list .catalog-choice-card--whoami { --game-emoji: "🎭"; }
.games-page--list .catalog-choice-card--roulette { --game-emoji: "🍾"; }
.games-page--list .catalog-choice-card--reverse-word { --game-emoji: "🔈"; }

.catalog-choice-card--reverse-word {
  background:
    radial-gradient(circle at 24% 18%, rgba(89, 213, 255, 0.22), transparent 30%),
    linear-gradient(145deg, rgba(23, 28, 49, 0.94), rgba(34, 27, 62, 0.92));
}

:root[data-theme='light'] .catalog-choice-card--reverse-word {
  background:
    radial-gradient(circle at 24% 18%, rgba(0, 139, 186, 0.16), transparent 30%),
    linear-gradient(145deg, #ffffff, #eef7fb);
}

.catalog-game-visual--reverse-word {
  display: grid;
  place-items: center;
  gap: 10px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 28% 22%, rgba(108, 220, 255, 0.4), transparent 27%),
    radial-gradient(circle at 74% 72%, rgba(255, 192, 95, 0.32), transparent 28%),
    linear-gradient(135deg, #182442, #2a1648 58%, #172a34);
  overflow: hidden;
}

.catalog-game-visual--reverse-word strong {
  position: relative;
  z-index: 1;
  font-size: 34px;
  line-height: 1;
}

.catalog-game-visual--reverse-word p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-weight: 800;
  font-size: 22px;
}

.reverse-word-visual__wave {
  position: absolute;
  inset: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.75;
}

.reverse-word-visual__wave span {
  width: 9px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, #74e3ff, #ffce72);
  transform: scaleY(0.5);
}

.reverse-word-visual__wave span:nth-child(2),
.reverse-word-visual__wave span:nth-child(4) { transform: scaleY(0.82); }
.reverse-word-visual__wave span:nth-child(3) { transform: scaleY(1.18); }

.reverse-word-page .page-shell {
  min-height: 100vh;
}

.reverse-word-shell {
  width: min(960px, calc(100% - 32px));
  min-height: calc(100svh - 190px);
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 22px 0 30px;
}

.reverse-word-screen {
  width: 100%;
  min-height: 620px;
  display: grid;
  align-content: center;
  gap: 22px;
}

.reverse-word-start {
  max-width: 520px;
  margin: 0 auto;
}

.reverse-word-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reverse-word-mode-card {
  min-height: 116px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(116, 227, 255, .16), transparent 42%),
    rgba(255,255,255,0.055);
  font: inherit;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.reverse-word-mode-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  font-size: 24px;
}

.reverse-word-mode-card strong {
  font-size: 17px;
  line-height: 1.08;
  font-weight: 900;
}

.reverse-word-mode-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.reverse-word-mode-card.is-active {
  border-color: rgba(116, 227, 255, .62);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 206, 114, .22), transparent 45%),
    linear-gradient(145deg, rgba(116, 227, 255, .22), rgba(255, 206, 114, .10));
  box-shadow: 0 18px 44px rgba(75, 190, 220, .14), inset 0 1px 0 rgba(255,255,255,0.12);
}

.reverse-word-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.reverse-word-brand h2,
.reverse-word-finish h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.reverse-word-brand__orb {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(145deg, #55d6ff, #ffca72);
  box-shadow: 0 24px 60px rgba(55, 160, 210, 0.28);
  flex: 0 0 auto;
}

.reverse-word-brand__orb::after {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #172033;
}

.reverse-word-brand__orb i {
  position: absolute;
  width: 9px;
  border-radius: 999px;
  background: #172033;
}

.reverse-word-brand__orb i:nth-child(1) { height: 42px; transform: translateX(-22px); }
.reverse-word-brand__orb i:nth-child(2) { height: 58px; }
.reverse-word-brand__orb i:nth-child(3) { height: 42px; transform: translateX(22px); }

.reverse-word-start-form {
  display: grid;
  gap: 18px;
}

.reverse-word-player-fields {
  display: grid;
  gap: 12px;
}

.reverse-word-player-fields label {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 10px;
}

.reverse-word-player-fields label.is-removable {
  grid-template-columns: 46px 1fr 38px;
}

.reverse-word-player-fields span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #182033;
  background: #ffce72;
}

.reverse-word-player-fields input {
  min-height: 56px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  font: inherit;
  font-weight: 800;
}

.reverse-word-remove-player-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(242, 244, 247, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.reverse-word-remove-player-btn:active {
  transform: scale(0.96);
}

.reverse-word-add-player-btn {
  width: 100%;
  min-height: 58px;
  border: 1px dashed rgba(116, 227, 255, 0.45);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  background: rgba(116, 227, 255, 0.08);
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.reverse-word-add-player-btn span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #152033;
  background: linear-gradient(145deg, #74e3ff, #ffce72);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.reverse-word-add-player-btn strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}

.reverse-word-add-player-btn:disabled {
  opacity: 0.48;
}

.reverse-word-field-title {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.reverse-word-rounds-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
}

.reverse-word-rounds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.reverse-word-rounds button {
  min-height: 58px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255,255,255,0.07);
  font: inherit;
  font-weight: 900;
}

.reverse-word-rounds button.is-active {
  color: #152033;
  background: #74e3ff;
  border-color: transparent;
}

.reverse-word-main-action {
  min-height: 58px;
  justify-content: center;
  font-weight: 900;
}

.reverse-word-pass-actions {
  width: min(100%, 360px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.reverse-word-pass-actions .reverse-word-main-action {
  min-height: 52px;
  padding-inline: 12px;
}

.reverse-word-game {
  max-width: 560px;
  margin: 0 auto;
}

.reverse-word-topline {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 800;
}

.reverse-word-step {
  min-height: 520px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 22px;
}

#reverse-word-pass-step {
  gap: 18px;
  transform: translateY(-12px);
}

.reverse-word-player-name {
  margin: 0;
  min-height: 34px;
  color: var(--text);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.12;
  text-align: center;
}

.reverse-word-card {
  width: min(100%, 440px);
  min-height: 150px;
  border: 0;
  border-radius: 8px;
  color: #172033;
  background: linear-gradient(135deg, #fff4c7, #74e3ff);
  box-shadow: 0 26px 70px rgba(67, 177, 218, 0.22);
}

.reverse-word-card span {
  display: block;
  padding: 18px;
  font-size: 52px;
  line-height: 1;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.reverse-word-record-btn,
.reverse-word-play-btn {
  width: 176px;
  height: 176px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #152033;
  background: linear-gradient(145deg, #74e3ff, #ffce72);
  box-shadow: 0 28px 80px rgba(75, 190, 220, 0.3);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.reverse-word-record-btn svg,
.reverse-word-play-btn svg,
.reverse-word-icon-btn svg {
  width: 54px;
  height: 54px;
  fill: currentColor;
}

.reverse-word-record-btn:active,
.reverse-word-play-btn:active,
.reverse-word-icon-btn:active {
  transform: scale(0.97);
}

.reverse-word-record-btn.is-recording {
  color: #fff;
  background: linear-gradient(145deg, #ff4f7b, #ff9d66);
  animation: reverse-word-pulse 0.82s ease-in-out infinite alternate;
}

.reverse-word-record-btn.is-recording svg {
  display: none;
}

.reverse-word-record-btn.is-recording::before {
  content: "Завершити\A запись";
  white-space: pre-line;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0;
}

.reverse-word-record-btn--small {
  width: 132px;
  height: 132px;
}

.reverse-word-record-btn--small svg {
  width: 44px;
  height: 44px;
}

.reverse-word-record-btn--small.is-recording::before {
  font-size: 18px;
}

.reverse-word-play-btn {
  width: 190px;
  height: 190px;
  background: linear-gradient(145deg, #c8ff7c, #69d8ff);
}

.reverse-word-play-btn--text {
  padding: 0 22px;
  color: #111827;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0;
}

.reverse-word-play-btn--text.is-playing {
  color: #fff;
  background: linear-gradient(145deg, #ff5c7a, #ff9b5d);
  box-shadow: 0 28px 80px rgba(255, 92, 122, 0.28);
}

.reverse-word-status {
  margin: 0;
  min-height: 24px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.reverse-word-pass-icon {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #74e3ff, #ffce72);
}

.reverse-word-pass-icon span {
  width: 76px;
  height: 118px;
  border: 8px solid #172033;
  border-radius: 22px;
  position: relative;
}

.reverse-word-pass-icon span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #172033;
  transform: translateX(-50%);
}

.reverse-word-pass-play {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.reverse-word-pass-play span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.1;
  font-weight: 900;
}

.reverse-word-result-ring {
  --score: 0;
  width: 212px;
  height: 212px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle closest-side, var(--bg) 72%, transparent 73%),
    conic-gradient(#74e3ff calc(var(--score) * 1%), rgba(255,255,255,0.12) 0);
  box-shadow: 0 22px 70px rgba(70, 186, 220, 0.2);
}

.reverse-word-result-ring strong {
  font-size: 52px;
  line-height: 1;
  font-weight: 900;
}

.reverse-word-result-ring--final {
  margin: 0 auto;
  background:
    radial-gradient(circle closest-side, var(--bg) 72%, transparent 73%),
    conic-gradient(#ffce72 calc(var(--score) * 1%), rgba(255,255,255,0.12) 0);
}

.reverse-word-audio-actions {
  display: flex;
  gap: 18px;
}

.reverse-word-icon-btn {
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #172033;
  background: rgba(255,255,255,0.86);
}

.reverse-word-audio-btn {
  min-width: 100px;
  border: 0;
  padding: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--text);
  background: transparent;
  font: inherit;
}

.reverse-word-audio-btn strong {
  font-size: 13px;
  line-height: 1.1;
  font-weight: 900;
  color: var(--muted);
}

.reverse-word-audio-btn.is-playing strong {
  color: #74e3ff;
}

.reverse-word-icon-btn--large {
  width: 76px;
  height: 76px;
  color: #152033;
  background: linear-gradient(145deg, #c8ff7c, #69d8ff);
}

.reverse-word-icon-btn--large svg {
  width: 42px;
  height: 42px;
}

.reverse-word-final-list {
  width: min(100%, 500px);
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.reverse-word-final-item {
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}

.reverse-word-final-item span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #172033;
  background: #74e3ff;
  font-weight: 900;
}

.reverse-word-final-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reverse-word-final-item em {
  color: #ffce72;
  font-style: normal;
  font-weight: 900;
}

.reverse-word-final-item--total {
  background: rgba(116, 227, 255, 0.14);
}

@keyframes reverse-word-pulse {
  from { box-shadow: 0 22px 70px rgba(255, 79, 123, 0.28); }
  to { box-shadow: 0 22px 100px rgba(255, 79, 123, 0.52); }
}

@media (max-width: 720px) {
  .reverse-word-shell {
    width: min(100% - 24px, 520px);
    min-height: calc(100svh - 96px);
    padding: 10px 0 calc(86px + var(--mobile-nav-browser-offset, 0px));
  }

  .reverse-word-screen {
    min-height: calc(100svh - 138px);
    gap: 16px;
  }

  .reverse-word-brand {
    align-items: flex-start;
  }

  .reverse-word-brand h2,
  .reverse-word-finish h2 {
    font-size: 30px;
  }

  .reverse-word-brand__orb {
    width: 64px;
    height: 64px;
  }

  .reverse-word-brand__orb::after {
    width: 28px;
    height: 28px;
  }

  .reverse-word-brand__orb i:nth-child(1) { height: 34px; transform: translateX(-17px); }
  .reverse-word-brand__orb i:nth-child(2) { height: 46px; }
  .reverse-word-brand__orb i:nth-child(3) { height: 34px; transform: translateX(17px); }

  .reverse-word-start-form {
    gap: 10px;
  }

  .reverse-word-mode-grid {
    gap: 8px;
  }

  .reverse-word-mode-card {
    min-height: 92px;
    padding: 12px;
    border-radius: 10px;
  }

  .reverse-word-mode-card span {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 20px;
  }

  .reverse-word-mode-card strong {
    font-size: 14px;
  }

  .reverse-word-mode-card small {
    font-size: 11px;
  }

  .reverse-word-player-fields {
    gap: 8px;
  }

  .reverse-word-player-fields label {
    grid-template-columns: 58px 1fr;
    gap: 8px;
  }

  .reverse-word-player-fields label.is-removable {
    grid-template-columns: 58px 1fr 34px;
  }

  .reverse-word-player-fields span {
    width: 58px;
    height: 58px;
  }

  .reverse-word-player-fields input {
    min-height: 58px;
    padding: 0 14px;
  }

  .reverse-word-remove-player-btn {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .reverse-word-add-player-btn {
    min-height: 50px;
  }

  .reverse-word-add-player-btn strong {
    font-size: 15px;
  }

  .reverse-word-rounds-panel {
    gap: 10px;
    padding: 12px;
  }

  .reverse-word-rounds button {
    min-height: 54px;
  }

  .reverse-word-main-action {
    min-height: 54px;
  }

  .reverse-word-pass-actions {
    width: min(100%, 330px);
    gap: 8px;
  }

  .reverse-word-pass-actions .reverse-word-main-action {
    min-height: 48px;
    font-size: 14px;
  }

  .reverse-word-step {
    min-height: calc(100svh - 196px);
    gap: 18px;
  }

  #reverse-word-pass-step {
    gap: 14px;
    transform: translateY(-18px);
  }

  .reverse-word-player-name {
    font-size: 24px;
  }

  .reverse-word-card {
    min-height: 128px;
  }

  .reverse-word-card span {
    font-size: 42px;
  }

  .reverse-word-record-btn,
  .reverse-word-play-btn {
    width: 156px;
    height: 156px;
  }

  .reverse-word-play-btn--text {
    padding: 0 12px;
    font-size: 18px;
    white-space: nowrap;
  }

  .reverse-word-record-btn--small {
    width: 124px;
    height: 124px;
  }

  .reverse-word-pass-icon,
  .reverse-word-result-ring {
    width: 176px;
    height: 176px;
  }

  .reverse-word-result-ring strong {
    font-size: 44px;
  }
}

.games-page--list .catalog-choice-card::before {
  display: none;
}

.games-page--list .catalog-game-visual {
  grid-area: visual;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 74px;
  min-height: 74px;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(255, 248, 245, 0.16), transparent 56%),
    linear-gradient(180deg, rgba(255, 248, 245, 0.08), rgba(255, 248, 245, 0.035));
  color: #fff8f5;
  text-decoration: none;
}

.games-page--list .catalog-game-visual::before {
  content: var(--game-emoji);
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 2.05rem;
  line-height: 1;
  text-align: center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32));
  transform: translateY(1px);
}

.games-page--list .catalog-game-visual:hover,
.games-page--list .catalog-game-visual:focus-visible {
  outline: none;
  border-color: rgba(255, 210, 122, 0.34);
  background:
    radial-gradient(circle at top, rgba(255, 248, 245, 0.2), transparent 56%),
    linear-gradient(180deg, rgba(255, 248, 245, 0.1), rgba(255, 248, 245, 0.045));
}

.games-page--list .catalog-game-visual > * {
  display: none !important;
}

.games-page--list .catalog-choice-card__body {
  grid-area: body;
  min-width: 0;
  gap: 6px;
}

.games-page--list .hero-panel__eyebrow {
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 223, 214, 0.13);
  border-radius: 999px;
  background: rgba(255, 248, 245, 0.075);
  color: rgba(183, 199, 225, 0.84);
  font-size: 0.6rem;
  line-height: 1.1;
  letter-spacing: 0.12em;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.games-page--list .catalog-choice-card__body h3 {
  max-width: 100%;
  font-size: clamp(1.02rem, 1.18vw, 1.26rem);
  line-height: 1.05;
}

.games-page--list .catalog-choice-card__mobile-desc {
  display: none;
}

.games-page--list .catalog-choice-grid__head {
  display: none;
}

.games-page--list .catalog-choice-card .action-btn {
  grid-area: action;
  position: relative;
  width: auto;
  min-width: 82px;
  height: auto;
  min-height: 38px;
  margin: 0;
  padding: 0 15px;
  border-radius: 14px;
  color: #fff8f5;
  font-size: 0.84rem;
}

.games-page--list .catalog-choice-card .action-btn::after {
  content: none;
}

.games-page--list .catalog-game-visual-card {
  width: 52px;
  height: 68px;
  border-radius: 12px;
  font-size: 0.52rem;
}

.games-page--list .catalog-game-visual-card::before {
  top: 6px;
  left: 8px;
  right: 8px;
  height: 2px;
}

.games-page--list .catalog-game-visual-card.is-front {
  width: 60px;
  height: 76px;
}

.games-page--list .catalog-game-visual-card.is-back:first-child {
  transform: translateX(-34px) rotate(-10deg);
}

.games-page--list .catalog-game-visual-card.is-back:last-child {
  transform: translateX(34px) rotate(10deg);
}

.games-page--list .catalog-game-visual--alias,
.games-page--list .catalog-game-visual--whoami,
.games-page--list .catalog-game-visual--chat,
.games-page--list .catalog-game-visual--roulette {
  padding: 10px;
}

.games-page--list .catalog-game-visual--alias strong,
.games-page--list .catalog-game-visual--whoami strong {
  font-size: 0.95rem;
}

.games-page--list .catalog-game-visual--alias span,
.games-page--list .catalog-game-visual--whoami span,
.games-page--list .catalog-game-visual--whoami div {
  padding: 5px 7px;
  font-size: 0.52rem;
}

.games-page--list .catalog-game-visual--chat p {
  padding: 6px 8px;
  border-radius: 11px;
  font-size: 0.58rem;
}

.games-page--list .catalog-game-visual--roulette {
  grid-template-columns: 1fr;
  gap: 0;
}

.games-page--list .catalog-game-visual--roulette span {
  width: 44px;
  min-height: 0;
  border-radius: 12px;
  font-size: 1.5rem;
}

.games-page--list .catalog-game-visual--monopolis {
  padding: 5px;
}

.games-page--list .catalog-game-visual--monopolis .catalog-board-cell {
  padding: 6px 2px 2px;
  border-radius: 5px;
}

.games-page--list .catalog-game-visual--monopolis .catalog-board-cell b {
  min-height: 7px;
  font-size: 0.26rem;
}

.games-page--list .catalog-game-visual--monopolis .catalog-board-cell img {
  width: min(95%, 34px);
  max-height: 16px;
}

.games-page--list .catalog-game-visual--monopolis .catalog-board-cell span {
  font-size: 0.3rem;
}

.games-page--list .catalog-game-visual--monopolis .catalog-board-center {
  gap: 3px;
  padding: 5px;
}

.games-page--list .catalog-game-visual--monopolis .catalog-board-center span {
  font-size: 0.3rem;
}

.games-page--list .catalog-game-visual--monopolis .catalog-board-center strong {
  font-size: 0.44rem;
}

.games-page--list .catalog-game-visual--monopolis .catalog-board-center p {
  display: none;
}

@media (min-width: 981px) {
  .games-page--list .catalog-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .games-page--list {
    width: min(100%, 370px);
    max-width: min(100%, 370px);
  }

  .games-page--list .catalog-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
    width: 100%;
    max-width: none;
    padding: 14px;
    border: 1px solid rgba(255, 223, 214, 0.12);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(22, 13, 24, 0.76), rgba(12, 9, 17, 0.82));
  }

  .games-page--list .catalog-choice-grid__head {
    display: grid;
    grid-column: 1 / -1;
    gap: 6px;
    order: 0;
  }

  .games-page--list .catalog-choice-grid__head .hero-panel__eyebrow {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(183, 199, 225, 0.82);
    font-size: 0.62rem;
    line-height: 1.45;
    letter-spacing: 0.12em;
    white-space: normal;
  }

  .games-page--list .catalog-choice-grid__head h1 {
    margin: 0;
    color: #fff8f5;
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.08;
    letter-spacing: 0;
  }

  .games-page--list .catalog-choice-card,
  .games-page--list .catalog-choice-hero__feature.catalog-choice-card,
  .games-page--list .catalog-choice-card--anonymous.catalog-choice-hero__feature {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "body";
    align-content: start;
    gap: 6px;
    min-height: 118px;
    padding: 12px;
    border-radius: 18px;
    box-shadow: none;
  }

  .games-page--list .catalog-choice-card--truth { order: 1; }
  .games-page--list .catalog-choice-card--monopolis { order: 2; }
  .games-page--list .catalog-choice-card--alias { order: 3; }
  .games-page--list .catalog-choice-card--reverse-word { order: 4; }
  .games-page--list .catalog-choice-card--whoami { order: 5; }
  .games-page--list .catalog-choice-card--anonymous { order: 6; }
  .games-page--list .catalog-choice-card--roulette { order: 7; }

  .games-page--list .catalog-game-visual {
    width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 13px;
  }

  .games-page--list .catalog-game-visual::before {
    font-size: 1rem;
  }

  .games-page--list .catalog-choice-card--reverse-word .catalog-game-visual::before {
    font-size: 1.42rem;
    transform: translateY(0);
  }

  .games-page--list .catalog-choice-card > .catalog-choice-card__body .hero-panel__eyebrow {
    display: none;
  }

  .games-page--list .catalog-choice-card__body {
    gap: 4px;
  }

  .games-page--list .catalog-choice-card h3,
  .games-page--list .catalog-choice-card--anonymous .catalog-choice-card__intro-main h3 {
    font-size: 0.9rem;
    line-height: 1.12;
  }

  .games-page--list .catalog-choice-card__mobile-desc {
    display: block;
    margin: 0;
    color: rgba(255, 248, 245, 0.64);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.18;
  }

  .games-page--list .catalog-choice-card .action-btn {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    font-size: 0;
  }
}

@media (max-width: 390px) {
  .games-page--list .catalog-choice-grid {
    gap: 8px;
  }

  .games-page--list .catalog-choice-card,
  .games-page--list .catalog-choice-hero__feature.catalog-choice-card,
  .games-page--list .catalog-choice-card--anonymous.catalog-choice-hero__feature {
    min-height: 118px;
    padding: 12px;
  }
}

@media (max-width: 720px) {
  .games-page-body .page-shell {
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding-inline: 10px;
    overflow-x: hidden;
  }

  .games-page-body .topbar,
  .games-page--list {
    width: calc(100vw - 20px);
    max-width: none;
    margin-inline: auto;
  }

  .games-page--list .catalog-choice-grid {
    width: 100%;
    max-width: none;
    overflow: hidden;
  }

  .games-page--list .catalog-choice-card,
  .games-page--list .catalog-choice-hero__feature.catalog-choice-card,
  .games-page--list .catalog-choice-card--anonymous.catalog-choice-hero__feature {
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  .games-page--list .catalog-choice-card h3,
  .games-page--list .catalog-choice-card__mobile-desc {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .games-page--list .catalog-game-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
  }

  .games-page--list .catalog-game-visual::before {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1;
    text-align: center;
    transform: translateY(1px);
  }
}

/* Монополіс */
.overnight-shell { gap: 18px; }

.overnight-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 20px;
  align-items: stretch;
  min-height: 460px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(102, 212, 163, .16), transparent 42%),
    radial-gradient(circle at bottom right, rgba(255, 211, 106, .09), transparent 34%),
    linear-gradient(180deg, rgba(17, 23, 33, .96), rgba(9, 12, 18, .98));
}

.overnight-hero__copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
}

.overnight-hero__copy h2,
.overnight-finale__head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.4rem, 8vw, 5.8rem);
  line-height: .92;
}

.overnight-hero__copy p:not(.hero-panel__eyebrow),
.overnight-finale__head p:not(.hero-panel__eyebrow) {
  max-width: 58ch;
  margin: 0;
  color: #b8c8e4;
  font-size: clamp(.98rem, 1.55vw, 1.12rem);
  line-height: 1.65;
}

.overnight-hero__panel,
.overnight-dice-card,
.overnight-place-card,
.overnight-journal-panel,
.overnight-finale {
  border: 1px solid var(--line);
  background: rgba(9, 12, 18, .74);
  box-shadow: var(--shadow);
}

.overnight-hero__panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border-radius: 26px;
}

.overnight-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
}

.overnight-mode__btn {
  min-height: 42px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.overnight-mode__btn.is-active {
  color: var(--text);
  background: rgba(102, 212, 163, .14);
  box-shadow: inset 0 0 0 1px rgba(102, 212, 163, .25);
}

.overnight-category-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overnight-category-option {
  flex: 1 1 150px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.overnight-category-option strong,
.overnight-category-option span {
  display: block;
}

.overnight-category-option strong {
  font-size: .92rem;
  line-height: 1.25;
}

.overnight-category-option span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.25;
}

.overnight-category-option.is-active {
  border-color: rgba(102, 212, 163, .48);
  background: rgba(102, 212, 163, .14);
  box-shadow: inset 0 0 0 1px rgba(102, 212, 163, .2);
}

.overnight-category-option.is-locked {
  border-color: rgba(239, 196, 116, .38);
}

.overnight-friends-panel {
  display: grid;
  gap: 10px;
}

.overnight-room-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.overnight-room-options .action-btn {
  width: 100%;
  min-height: 46px;
}

.overnight-setup {
  display: grid;
  grid-template-columns: minmax(260px, .86fr) minmax(360px, 1.14fr);
  gap: 18px;
  min-height: min(620px, calc(100dvh - 190px));
  padding: 24px;
}

.overnight-setup__board {
  display: grid;
  align-items: center;
  min-width: 0;
}

.overnight-mini-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 5px;
  width: min(100%, 480px);
  aspect-ratio: 1 / 1;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(102, 212, 163, .12), transparent 42%),
    rgba(255,255,255,.035);
}

.overnight-mini-board span {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  color: rgba(255,255,255,.58);
  font-weight: 900;
}

.overnight-mini-board strong {
  position: absolute;
  inset: 24%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(102,212,163,.24);
  border-radius: 18px;
  background: rgba(7,11,18,.78);
  color: var(--text);
  font-size: clamp(1.7rem, 4vw, 3.6rem);
  line-height: 1;
  text-transform: uppercase;
}

.overnight-setup__panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.overnight-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.overnight-mode-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 10px;
  min-height: 112px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.overnight-mode-card i {
  display: grid;
  grid-row: span 3;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(102,212,163,.12);
  color: #a7ffd4;
  font-style: normal;
  font-weight: 900;
}

.overnight-mode-card span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.overnight-mode-card strong {
  font-size: .96rem;
  line-height: 1.12;
}

.overnight-mode-card small {
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.34;
}

.overnight-mode-card.is-active {
  border-color: rgba(102, 212, 163, .52);
  background: rgba(102, 212, 163, .12);
}

.overnight-mode-card.is-locked {
  border-color: rgba(239, 196, 116, .34);
}

.overnight-room-create,
.overnight-lobby-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.overnight-room-create .inline-status {
  grid-column: 1 / -1;
}

.overnight-room-create .action-btn,
.overnight-lobby-actions .action-btn {
  width: 100%;
  min-height: 48px;
}

.overnight-lobby-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(102,212,163,.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(102,212,163,.10), transparent 36%),
    rgba(255,255,255,.04);
}

.overnight-lobby-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.overnight-lobby-card__head > div {
  display: grid;
  gap: 3px;
}

.overnight-lobby-card__head span,
.overnight-invite-tile span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.overnight-lobby-card__head strong {
  font-size: 1.08rem;
}

.overnight-lobby-card__head .action-btn {
  min-height: 36px;
  padding: 0 12px;
}

.overnight-invite-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 10px;
}

.overnight-invite-tile {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(7, 11, 18, .46);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.overnight-invite-tile strong {
  font-size: 1.35rem;
  line-height: 1;
}

.overnight-invite-tile small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overnight-lobby-players {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.overnight-lobby-player {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 10px 6px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  text-align: center;
}

.overnight-lobby-player i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(102,212,163,.18);
  color: #effff5;
  font-style: normal;
  font-weight: 900;
}

.overnight-lobby-player span {
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overnight-lobby-player small {
  color: var(--muted);
  font-size: .66rem;
}

.overnight-lobby-player.is-empty {
  opacity: .55;
}

.overnight-lobby-player.is-empty i {
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 1.3rem;
  font-weight: 500;
}

.overnight-games {
  display: grid;
  width: min(100%, 760px);
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
  background: rgba(255,255,255,.985);
  color: #334155;
  overflow: hidden;
}

.overnight-games__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.overnight-games__head h1 {
  margin: 0;
  color: #475569;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0;
}

.overnight-games__head p {
  display: none;
}

.overnight-create-main-btn {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: #fb9b73;
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
}

.overnight-games__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.overnight-join-code-btn {
  appearance: none;
  display: inline-grid;
  min-height: 42px;
  padding: 0 16px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-family: inherit;
  font-size: .88rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.overnight-code-dialog {
  width: min(100%, 520px);
  gap: 16px;
}

.overnight-code-form,
.overnight-code-field {
  display: grid;
  gap: 10px;
}

.overnight-code-field span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.overnight-code-input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  color: var(--text);
  font-family: inherit;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase;
  outline: none;
}

.overnight-code-input:focus {
  border-color: rgba(82, 211, 169, .58);
  box-shadow: 0 0 0 4px rgba(82, 211, 169, .12);
}

.overnight-code-submit {
  width: 100%;
}

.overnight-games__list {
  display: grid;
  background: #f4f4f5;
}

.overnight-room-row {
  display: grid;
  gap: 16px;
  min-height: 154px;
  padding: 14px 18px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.overnight-room-row__head,
.overnight-room-row__tags {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.overnight-room-row__head {
  justify-content: space-between;
}

.overnight-room-row__head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 1rem;
  font-weight: 500;
}

.overnight-room-row__head strong i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-style: normal;
  font-size: .72rem;
}

.overnight-room-row__tags {
  margin-top: 4px;
  color: #9ca3af;
}

.overnight-room-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  color: #9ca3af;
  font-size: .78rem;
}

.overnight-room-tag--mode {
  color: #ef5f76;
  font-size: .96rem;
}

.overnight-room-open {
  color: #64748b;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: underline;
}

.overnight-room-row__slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 8px;
  align-items: start;
}

.overnight-room-slot {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  text-align: center;
}

.overnight-room-slot i {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111827, #6b7280);
  color: #fff;
  font-style: normal;
  font-size: 1.15rem;
  font-weight: 800;
}

.overnight-room-slot i::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 5px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #7ac943;
}

.overnight-room-slot span {
  max-width: 100%;
  overflow: hidden;
  color: #64748b;
  font-size: .82rem;
  text-decoration: underline;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overnight-room-slot small {
  color: #9ca3af;
  font-size: .68rem;
}

.overnight-room-slot--empty {
  cursor: pointer;
}

.overnight-room-slot--empty i {
  background: transparent;
  color: #a1aab8;
  font-size: 3rem;
  font-weight: 200;
}

.overnight-room-slot--empty i::after {
  display: none;
}

.overnight-room-slot--empty span {
  color: #a1aab8;
  text-decoration: none;
}

.overnight-empty-rooms {
  display: grid;
  gap: 6px;
  padding: 34px 18px;
  background: #fff;
  color: #64748b;
}

.overnight-empty-rooms strong {
  color: #334155;
  font-size: 1.1rem;
}

.overnight-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.overnight-modal__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.52);
}

.overnight-create-dialog,
.overnight-invite-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  border-radius: 4px;
  background: #fff;
  color: #4b5563;
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
  overflow: hidden;
}

.overnight-create-dialog {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
}

.overnight-create-dialog__modes {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 16px 10px;
  background: #f3f4f6;
}

.overnight-create-mode {
  display: grid;
  gap: 4px;
  padding: 11px 16px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #4b5563;
  text-align: left;
  cursor: pointer;
}

.overnight-create-mode strong {
  font-size: 1.04rem;
}

.overnight-create-mode span {
  color: #6b7280;
  font-size: .78rem;
  line-height: 1.2;
}

.overnight-create-mode.is-active {
  background: #85c84a;
  color: #fff;
}

.overnight-create-mode.is-active span {
  color: rgba(255,255,255,.92);
}

.overnight-create-dialog__settings,
.overnight-invite-dialog {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px 20px 24px;
}

.overnight-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 1.25rem;
  cursor: pointer;
}

.overnight-create-kicker {
  color: #6b7280;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.overnight-create-dialog h2,
.overnight-invite-dialog h2 {
  margin: 0;
  color: #4b5563;
  font-size: 1.35rem;
}

.overnight-create-dialog p,
.overnight-invite-dialog p {
  margin: 0;
  color: #6b7280;
  font-size: .85rem;
  line-height: 1.35;
}

.overnight-player-stepper {
  display: grid;
  gap: 8px;
}

.overnight-player-stepper > span {
  color: #6b7280;
  font-size: .9rem;
}

.overnight-player-stepper div {
  display: flex;
  gap: 0;
}

.overnight-player-stepper button {
  min-width: 38px;
  height: 30px;
  border: 0;
  background: #d1d5db;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.overnight-player-stepper button:first-child {
  border-radius: 5px 0 0 5px;
}

.overnight-player-stepper button:last-child {
  min-width: 52px;
  border-radius: 0 5px 5px 0;
}

.overnight-player-stepper button.is-active {
  background: #85c84a;
}

.overnight-toggle-list {
  display: grid;
  gap: 8px;
}

.overnight-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #9ca3af;
  font-size: .92rem;
}

.overnight-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.overnight-toggle i {
  position: relative;
  width: 50px;
  height: 28px;
  border-radius: 8px;
  background: #e5e7eb;
}

.overnight-toggle i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #fff;
  transition: transform .18s ease;
}

.overnight-toggle input:checked + i {
  background: #b5dc8e;
}

.overnight-toggle input:checked + i::after {
  transform: translateX(22px);
}

.overnight-vip-note {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, #fb8076, #9187e8);
  color: #fff;
}

.overnight-vip-note a {
  justify-self: start;
  padding: 8px 18px;
  border-radius: 4px;
  background: #fff;
  color: #ef776f;
  font-weight: 900;
  text-decoration: none;
}

.overnight-games {
  border-color: var(--line);
  border-radius: 22px;
  background: rgba(10, 16, 26, .76);
  box-shadow: 0 20px 70px rgba(0,0,0,.28);
  overflow: hidden;
}

.overnight-games__head {
  min-height: 64px;
  padding: 14px 18px;
  border-color: var(--line);
  background:
    radial-gradient(circle at 18% 0, rgba(102, 212, 163, .12), transparent 34%),
    rgba(255,255,255,.035);
}

.overnight-games__head h1 {
  color: var(--text);
  font-weight: 900;
}

.overnight-create-main-btn {
  min-height: 42px;
  border: 1px solid rgba(102, 212, 163, .34);
  border-radius: 12px;
  background: rgba(102, 212, 163, .14);
  color: #eafff4;
}

.overnight-games__list {
  background: transparent;
}

.overnight-room-row {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}

.overnight-room-row + .overnight-room-row {
  border-top-color: rgba(255,255,255,.08);
}

.overnight-room-row__head strong,
.overnight-room-slot span {
  color: var(--text);
}

.overnight-room-slot small,
.overnight-room-row__tags,
.overnight-room-slot--empty span {
  color: var(--muted);
}

.overnight-create-dialog,
.overnight-invite-dialog {
  border-radius: 22px;
  border-color: var(--line);
  background:
    radial-gradient(circle at 18% 0, rgba(102, 212, 163, .12), transparent 32%),
    rgba(13, 18, 27, .98);
  color: var(--text);
  box-shadow: 0 28px 90px rgba(0,0,0,.48);
}

.overnight-create-dialog__modes {
  gap: 8px;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}

.overnight-create-mode {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  color: var(--text);
}

.overnight-create-mode span {
  color: var(--muted);
}

.overnight-create-mode.is-active {
  border-color: rgba(102, 212, 163, .52);
  background: rgba(102, 212, 163, .16);
  color: #effff5;
}

.overnight-create-dialog__settings,
.overnight-invite-dialog {
  background: transparent;
}

.overnight-create-kicker,
.overnight-player-stepper > span,
.overnight-create-dialog p,
.overnight-invite-dialog p {
  color: var(--muted);
}

.overnight-create-dialog h2,
.overnight-invite-dialog h2 {
  color: var(--text);
}

.overnight-modal-close {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--muted);
}

.overnight-player-stepper button {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.08);
  color: var(--muted);
}

.overnight-player-stepper button.is-active {
  background: rgba(102, 212, 163, .8);
  color: #062015;
}

.overnight-toggle {
  color: var(--muted);
}

.overnight-toggle i {
  background: rgba(255,255,255,.10);
}

.overnight-toggle input:checked + i {
  background: rgba(102, 212, 163, .42);
}

.overnight-vip-note {
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(102, 212, 163, .16), rgba(124, 149, 255, .13));
  color: var(--text);
}

.overnight-vip-note a {
  border-radius: 10px;
  background: rgba(255,255,255,.10);
  color: #dfffee;
}

.overnight-copy-tile {
  border-color: rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  color: var(--text);
}

.overnight-copy-tile span {
  color: var(--muted);
}

.overnight-copy-tile {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.overnight-copy-tile span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.overnight-copy-tile strong {
  overflow: hidden;
  font-size: 1.2rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.truth-shell {
  align-content: start;
  gap: 20px;
  width: min(100%, 1468px);
}

.truth-games {
  width: 100% !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(82, 211, 169, .09), transparent 36%),
    linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(8, 13, 22, .96)) !important;
  color: var(--text) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34) !important;
}

.truth-games__head p {
  display: block !important;
  margin: 4px 0 0 !important;
  color: rgba(203, 213, 225, .72) !important;
  font-size: .9rem !important;
}

.truth-games__head {
  min-height: 76px !important;
  padding: 16px 24px !important;
  border-bottom: 1px solid rgba(148, 163, 184, .14) !important;
  background:
    radial-gradient(circle at 12% -20%, rgba(82, 211, 169, .14), transparent 42%),
    rgba(255, 255, 255, .025) !important;
}

.truth-games__head h1 {
  color: #f8fafc !important;
  font-size: clamp(1.28rem, 1.7vw, 1.62rem) !important;
  font-weight: 900 !important;
}

.truth-games .overnight-games__list {
  min-height: 132px;
  gap: 12px;
  padding: 12px;
  background: transparent !important;
}

.truth-games .overnight-empty-rooms {
  min-height: 132px !important;
  padding: 30px 28px !important;
  border-top: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .018)),
    rgba(7, 11, 18, .38) !important;
  color: rgba(203, 213, 225, .72) !important;
}

.truth-games .overnight-empty-rooms strong {
  color: #f8fafc !important;
  font-size: 1.02rem !important;
}

.truth-games .overnight-create-main-btn {
  min-height: 42px !important;
  padding: 0 20px !important;
  border: 1px solid rgba(255, 214, 111, .64) !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ffe08a 0%, #f0bd45 100%) !important;
  color: #171923 !important;
  box-shadow: 0 12px 24px rgba(240, 189, 69, .18), inset 0 1px 0 rgba(255, 255, 255, .44) !important;
}

.truth-games .overnight-create-main-btn:hover {
  border-color: rgba(255, 226, 146, .84) !important;
  background: linear-gradient(180deg, #ffe9a8 0%, #f5c856 100%) !important;
  box-shadow: 0 14px 28px rgba(240, 189, 69, .24), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
}

body.overnight-page .overnight-join-code-btn,
body.truth-page .overnight-join-code-btn {
  border-color: rgba(148, 163, 184, .18) !important;
  background: rgba(255,255,255,.06) !important;
  color: #f8fafc !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

body.overnight-page .overnight-join-code-btn:hover,
body.truth-page .overnight-join-code-btn:hover {
  border-color: rgba(148, 163, 184, .34) !important;
  background: rgba(255,255,255,.09) !important;
}

body.truth-page .truth-invite-modal .overnight-modal__overlay,
body.truth-page .truth-join-code-modal .overnight-modal__overlay,
body.truth-page .truth-create-modal .overnight-modal__overlay {
  background: rgba(2, 6, 12, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body.truth-page.truth-create-modal-open .topbar,
body.truth-page.truth-create-modal-open .truth-games,
body.truth-page.truth-create-modal-open #truth-active-session-panel,
body.truth-page.truth-create-modal-open .site-footer,
body.truth-page.truth-create-modal-open .site-shell-mobile-nav {
  filter: blur(8px);
  transform: translateZ(0);
  pointer-events: none;
  transition: filter .18s ease;
}

body.truth-page.truth-create-modal-open .truth-create-modal {
  background: rgba(2, 6, 12, .28);
}

body.truth-page .truth-invite-modal .overnight-invite-dialog,
body.truth-page .truth-join-code-modal .overnight-invite-dialog {
  width: min(100%, 680px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(82, 211, 169, .12), transparent 36%),
    #101722;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .46);
}

body.truth-page .truth-session-conflict-modal {
  z-index: 2300;
  background: rgba(2, 6, 12, .78);
}

body.truth-page .truth-session-conflict-modal .overnight-modal__overlay {
  position: fixed;
  display: block !important;
  background: rgba(2, 6, 12, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.truth-page .truth-session-conflict-dialog {
  width: min(100%, 620px);
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(82, 211, 169, .13), transparent 36%),
    linear-gradient(180deg, rgba(16, 23, 35, .98), rgba(8, 12, 19, .99));
  color: #f8fafc;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .58);
}

body.truth-page .truth-session-conflict-dialog .overnight-modal-close {
  top: 14px;
  right: 14px;
  background: rgba(31, 42, 58, .94);
}

body.truth-page .truth-session-conflict-dialog .inline-status {
  color: rgba(203, 213, 225, .82);
  font-size: .96rem;
}

body.truth-page .truth-session-conflict-dialog .game-session-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.truth-page .truth-session-conflict-dialog .action-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
}

body.truth-page .truth-invite-modal .overnight-copy-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  grid-template-rows: auto auto;
  gap: 5px 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(170, 184, 204, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

body.truth-page .truth-invite-modal .overnight-copy-tile:hover {
  border-color: rgba(82, 211, 169, .55);
  background: rgba(82, 211, 169, .09);
}

body.truth-page .truth-invite-modal .overnight-copy-tile span,
body.truth-page .truth-invite-modal .overnight-copy-tile strong {
  grid-column: 1;
  min-width: 0;
}

body.truth-page .truth-invite-modal .overnight-copy-tile strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.truth-page .truth-invite-modal .overnight-copy-tile i {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(82, 211, 169, .12);
  color: #6ff0bf;
}

body.truth-page .truth-invite-modal .overnight-copy-tile svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.truth-room-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(360px, 1.6fr) minmax(150px, .42fr);
  align-items: center;
  gap: 18px;
  min-height: 154px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(116, 177, 255, .16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 16% 0, rgba(116,177,255,.13), transparent 34%),
    rgba(255,255,255,.045);
}

.truth-room-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(82, 211, 169, .95), rgba(82, 211, 169, .18));
}

.truth-room-row__head,
.truth-room-row__tags,
.truth-room-row__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.truth-room-row__head {
  justify-content: space-between;
  align-self: center;
}

.truth-room-row__slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(88px, 1fr));
  gap: 10px;
  align-items: stretch;
  align-self: stretch;
  padding-left: 14px;
  border-left: 1px solid rgba(148, 163, 184, .12);
}

.truth-room-row__head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.truth-room-row__head strong i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-style: normal;
  font-size: .86rem;
}

.truth-room-row__tags {
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.truth-room-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 19px;
  padding: 2px 7px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
  white-space: normal;
}

.truth-room-tag--category {
  border-color: rgba(116,177,255,.16);
  color: #d9e8ff;
}

.truth-room-open {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: var(--text);
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.truth-room-invite {
  display: inline-grid;
  width: 100%;
  min-height: 48px;
  place-items: center;
  padding: 0 18px;
  border: 1px solid rgba(82, 211, 169, .52);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 0, rgba(139, 255, 211, .22), transparent 36%),
    linear-gradient(180deg, rgba(39, 122, 101, .96), rgba(22, 93, 78, .92));
  color: #effff8;
  font-size: .9rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 14px 28px rgba(82, 211, 169, .1);
  cursor: pointer;
}

.truth-room-row__owner-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  align-self: center;
}

.truth-room-status {
  display: grid;
  place-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(116,177,255,.14);
  border-radius: 12px;
  background: rgba(116,177,255,.08);
  color: rgba(203, 213, 225, .86);
  font-size: .74rem;
  font-weight: 900;
  white-space: nowrap;
}

.truth-room-start,
.truth-room-leave,
.truth-room-danger {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
}

.truth-room-start {
  border: 1px solid rgba(255, 207, 92, .72);
  background:
    radial-gradient(circle at 18% 0, rgba(255, 231, 151, .32), transparent 36%),
    linear-gradient(180deg, rgba(255, 205, 81, .96), rgba(218, 154, 43, .9));
  color: #241505;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 12px 24px rgba(255, 190, 72, .12);
}

.truth-room-leave {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.truth-room-danger {
  border: 1px solid rgba(255, 100, 130, .34);
  background: rgba(255, 100, 130, .11);
  color: #ffd9e1;
}

.truth-room-open:hover {
  background: rgba(255,255,255,.09);
}

.truth-room-slot {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  width: 100%;
  min-height: 96px;
  padding: 10px 8px;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 14px;
  background: rgba(15, 23, 42, .46);
  color: var(--muted);
  appearance: none;
  font: inherit;
  text-align: center;
}

.truth-room-slot--filled {
  border-color: rgba(82, 211, 169, .24);
  background:
    radial-gradient(circle at 50% 0, rgba(116, 177, 255, .10), transparent 52%),
    rgba(8, 15, 27, .64);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.truth-room-slot i {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7df4, #ff6f91);
  color: #fff;
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 900;
}

.truth-room-slot i::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 5px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(13,18,27,.98);
  border-radius: 50%;
  background: var(--success);
}

.truth-room-slot span {
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.truth-room-slot small {
  color: var(--muted);
  font-size: .68rem;
}

.truth-room-kick {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 100, 130, .34);
  border-radius: 50%;
  background: rgba(18, 24, 34, .94);
  color: #ffd9e1;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: scale(.86);
  cursor: pointer;
  transition: opacity .16s ease, transform .16s ease, background .16s ease, border-color .16s ease;
}

.truth-room-slot--filled:hover .truth-room-kick,
.truth-room-kick:focus-visible {
  opacity: 1;
  transform: scale(1);
}

.truth-room-kick:hover {
  border-color: rgba(255, 100, 130, .72);
  background: rgba(255, 100, 130, .18);
}

.truth-room-slot--empty {
  border-style: dashed;
  border-color: rgba(148, 163, 184, .20);
  background: rgba(255,255,255,.025);
  cursor: pointer;
}

.truth-room-slot--waiting {
  cursor: default;
  pointer-events: none;
}

.truth-room-slot--empty i {
  width: 38px;
  height: 38px;
  border: 1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 1.45rem;
  font-weight: 300;
}

.truth-room-slot--empty:hover,
.truth-room-slot--empty:focus-visible {
  border-color: rgba(116, 177, 255, .38);
  background: rgba(116, 177, 255, .06);
}

.truth-room-slot--waiting:hover,
.truth-room-slot--waiting:focus-visible {
  border-color: rgba(148, 163, 184, .20);
  background: rgba(255,255,255,.025);
}

.truth-room-slot--empty i::after {
  display: none;
}

.truth-room-slot--empty span {
  color: var(--muted);
}

.truth-create-dialog {
  width: min(100%, 920px);
  grid-template-columns: 250px minmax(0, 1fr);
}

.truth-create-dialog--solo-players {
  width: min(100%, 640px);
  grid-template-columns: 1fr;
}

.truth-create-dialog__settings {
  gap: 16px;
}

.truth-create-category-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(54px, auto);
  gap: 8px;
}

.truth-create-category {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 9px 11px;
  border-color: rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  box-shadow: none;
}

.truth-create-category.is-locked {
  padding-top: 18px;
}

.truth-create-category.truth-invite-category.is-selected {
  border-color: rgba(116,177,255,.44);
  background: linear-gradient(180deg, rgba(116,177,255,.14), rgba(116,177,255,.08));
  box-shadow: none;
}

.truth-create-category:hover {
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
  transform: none;
}

.truth-create-category.is-selected:hover {
  border-color: rgba(116,177,255,.54);
  background: linear-gradient(180deg, rgba(116,177,255,.17), rgba(116,177,255,.09));
}

@media (hover: none), (pointer: coarse) {
  .truth-create-category:not(.is-selected):hover {
    border-color: rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
  }
}

.truth-create-category .truth-invite-category__emoji {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  font-size: 1rem;
}

.truth-create-category__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.truth-create-category .truth-invite-category__title {
  overflow: visible;
  font-size: .82rem;
  line-height: 1.12;
  text-overflow: clip;
  white-space: normal;
}

.truth-create-category__description {
  color: rgba(203, 213, 225, .68);
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.28;
}

.truth-create-category__mark {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  white-space: nowrap;
}

.truth-create-category.is-selected .truth-create-category__mark {
  background: rgba(255,255,255,.08);
  color: #dbeafe;
  font-size: 1rem;
  line-height: 1;
}

.truth-create-category.is-locked .truth-create-category__mark {
  background: rgba(255,214,102,.13);
  color: #ffe29b;
  font-size: .78rem;
}

.truth-create-category__premium {
  position: absolute;
  top: 6px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255,214,102,.14);
  color: #ffe29b;
  font-size: .5rem;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
}

.truth-create-selected {
  gap: 7px;
}

.truth-player-stepper div {
  flex-wrap: wrap;
  gap: 6px;
}

.truth-player-stepper button,
.truth-player-stepper button:first-child,
.truth-player-stepper button:last-child {
  min-width: 42px;
  border-radius: 10px;
}

body.truth-page .truth-premium-modal {
  z-index: 140;
}

.truth-create-back {
  display: none;
}

.truth-create-dialog--settings-step .truth-create-back,
.truth-create-dialog--solo-players .truth-create-back {
  display: inline-grid;
  width: max-content;
  min-height: 34px;
  padding: 0 12px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.truth-create-continue {
  width: 100%;
  min-height: 42px;
}

.truth-create-continue:disabled {
  opacity: .48;
  cursor: default;
}

.truth-create-mobile-head {
  display: none;
}

.truth-room-name-field {
  display: grid;
  gap: 7px;
}

.truth-room-name-field span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.truth-room-name-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  outline: none;
}

.truth-room-name-field input:focus {
  border-color: rgba(82, 211, 169, .42);
  box-shadow: 0 0 0 3px rgba(82, 211, 169, .1);
}

.truth-solo-player-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.truth-solo-player-field {
  display: grid;
  gap: 6px;
}

.truth-solo-player-field span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.truth-solo-player-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  outline: none;
}

.truth-solo-player-field input:focus {
  border-color: rgba(82, 211, 169, .42);
  box-shadow: 0 0 0 3px rgba(82, 211, 169, .1);
}

.truth-solo-note {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(116,177,255,.16);
  border-radius: 14px;
  background: rgba(116,177,255,.08);
}

.truth-solo-note strong {
  color: var(--text);
}

.truth-solo-note span {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.35;
}

.alias-mobile-open-btn {
  display: none;
}

.alias-mobile-flow {
  z-index: 1500;
  backdrop-filter: blur(14px);
}

body.alias-mobile-flow-open {
  overflow: hidden;
}

.alias-premium-inline-modal {
  z-index: 1600;
}

.alias-mobile-flow .overnight-modal__overlay {
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(10px);
}

.alias-mobile-flow-dialog {
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.alias-mobile-mode-list {
  display: grid;
  gap: 10px;
}

.alias-mobile-category-list {
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(72px, auto);
  max-height: none;
  overflow: visible;
  padding-right: 0;
  scrollbar-width: thin;
}

.alias-mobile-category-wrap {
  position: relative;
}

.alias-mobile-category-wrap.has-scroll-hint {
  padding-bottom: 0;
}

.alias-mobile-category-wrap.has-scroll-hint::before {
  content: none;
}

.alias-mobile-category-wrap.has-scroll-hint::after {
  content: none;
}

.alias-mobile-category-settings {
  padding-top: 34px;
}

.alias-mobile-category-settings h2 {
  margin-top: 0;
}

.alias-mobile-category-settings .alias-mobile-category-list {
  max-height: min(40dvh, 320px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.alias-mobile-category-settings .truth-create-selected {
  max-height: 76px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.whoami-mobile-flow {
  z-index: 1500;
  backdrop-filter: blur(14px);
}

body.whoami-mobile-flow-open {
  overflow: hidden;
}

.whoami-mobile-flow .overnight-modal__overlay {
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(10px);
}

.whoami-mobile-flow-dialog {
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.whoami-mobile-category-list {
  grid-template-columns: 1fr;
  gap: 7px;
  max-height: min(44dvh, 350px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.whoami-rules-modal {
  z-index: 1600;
}

#whoami-premium-gate-modal {
  z-index: 1700;
}

.whoami-card-hint {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.whoami-hidden-game-badge {
  display: none;
}

.alias-mobile-category-settings .truth-create-continue {
  margin-top: 0;
}

.alias-mobile-settings {
  gap: 16px;
}

.alias-mobile-format {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.alias-mobile-format .alias-format-card {
  position: relative;
  min-height: 92px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  box-shadow: none;
}

.alias-mobile-format .alias-format-card p {
  display: none;
}

.alias-mobile-format .alias-format-card.is-active {
  border-color: rgba(102, 212, 163, .64);
  background:
    radial-gradient(circle at 85% 12%, rgba(102, 212, 163, .22), transparent 34%),
    rgba(102, 212, 163, .13);
  box-shadow: inset 0 0 0 1px rgba(102, 212, 163, .12);
}

.alias-mobile-format .alias-format-card.is-active span,
.alias-mobile-format .alias-format-card.is-active strong {
  color: #d9fff0;
}

.alias-mobile-format .alias-format-card.is-active::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(102, 212, 163, .24);
  color: #73e6b4;
  font-size: .82rem;
  font-weight: 900;
}

.alias-mobile-option-group div {
  flex-wrap: wrap;
  gap: 8px;
}

.alias-mobile-settings .alias-mobile-option-group {
  display: grid;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
}

.alias-mobile-settings .alias-mobile-option-group > span {
  color: rgba(214, 222, 238, .74);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.alias-mobile-option-group button,
.alias-mobile-option-group button:first-child,
.alias-mobile-option-group button:last-child {
  min-width: 64px;
  min-height: 40px;
  border-radius: 12px;
}

.alias-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.alias-mobile-toggle.is-active {
  border-color: rgba(102, 212, 163, .48);
  background: rgba(102, 212, 163, .13);
}

.alias-mobile-toggle__copy {
  display: grid;
  gap: 3px;
}

.alias-mobile-toggle__copy strong {
  font-size: .9rem;
}

.alias-mobile-toggle__copy em {
  color: var(--muted);
  font-style: normal;
  font-size: .78rem;
  font-weight: 800;
}

.alias-mobile-switch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: background .18s ease, box-shadow .18s ease;
}

.alias-mobile-switch i {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(214, 222, 238, .92);
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
  transition: transform .18s ease, background .18s ease;
}

.alias-mobile-toggle.is-active .alias-mobile-switch {
  background: rgba(102, 212, 163, .82);
  box-shadow: inset 0 0 0 1px rgba(186, 255, 224, .26);
}

.alias-mobile-toggle.is-active .alias-mobile-switch i {
  background: #062016;
  transform: translateX(20px);
}

@media (max-width: 720px) {
  body.truth-page .site-footer,
  body.overnight-page .site-footer {
    display: none;
  }

  body.alias-modes-page .site-footer {
    display: none;
  }

  body.alias-modes-page .catalog-choice-hero {
    display: none;
  }

  body.alias-modes-page .game-session-panel {
    display: none;
  }

  body.alias-modes-page .alias-modes-grid .catalog-choice-card__actions {
    display: none;
  }

  .alias-mobile-open-btn {
    display: inline-flex;
  }

  .alias-mobile-flow {
    align-items: center;
    padding: 18px 16px calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .alias-mobile-flow-dialog {
    width: min(100%, 540px);
    border-radius: 24px;
  }

  .alias-mobile-flow-dialog:not(.truth-create-dialog--mode-step) {
    align-self: start;
  }

  .alias-mobile-flow .truth-create-mobile-head {
    display: grid;
    gap: 8px;
  }

  .alias-mobile-flow .truth-create-mobile-head h2,
  .alias-mobile-flow-dialog h2 {
    font-size: 1.65rem;
    line-height: 1.08;
  }

  .alias-mobile-flow .truth-create-mobile-head p,
  .alias-mobile-flow-dialog p {
    font-size: .92rem;
    line-height: 1.35;
  }

  .alias-mobile-flow .truth-create-mobile-modes {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .alias-mobile-flow .truth-create-mobile-modes .overnight-create-mode {
    min-height: 72px;
    padding: 11px 12px;
  }

  .alias-mobile-category-list {
    gap: 6px;
  }

  .alias-mobile-category-list .truth-create-category {
    min-height: 72px;
    align-items: start;
    padding: 10px 9px;
    border-radius: 13px;
    gap: 8px;
  }

  .alias-mobile-category-list .truth-invite-category__emoji {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    font-size: .95rem;
  }

  .alias-mobile-category-list .truth-invite-category__emoji,
  .alias-mobile-category-list .truth-create-category__mark {
    margin-top: 2px;
  }

  body:not(.whoami-game-active) .app-shell > [data-whoami-stage],
  body:not(.whoami-game-active) #whoami-hero-panel {
    display: none;
  }

  .whoami-mobile-flow {
    align-items: center;
    padding: 18px 16px calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .whoami-mobile-flow-dialog {
    width: min(100%, 540px);
    border-radius: 24px;
  }

  .whoami-mobile-flow-dialog .overnight-modal-close {
    top: 48px;
    right: 16px;
    z-index: 2;
  }

  .whoami-mobile-settings {
    padding-top: 52px;
  }

  .whoami-mobile-flow-dialog h2 {
    margin-top: 0;
    font-size: 1.8rem;
    line-height: 1.08;
  }

  .whoami-mobile-category-list .truth-create-category {
    min-height: 72px;
    align-items: start;
    padding: 10px 10px;
    border-radius: 14px;
    gap: 9px;
  }

  .whoami-mobile-category-list .truth-invite-category__emoji,
  .whoami-mobile-category-list .truth-create-category__mark {
    margin-top: 2px;
  }

  body.whoami-game-active .site-footer {
    display: none;
  }

  body.whoami-game-active .app-shell {
    gap: 0;
  }

  body.whoami-game-active [data-whoami-stage="game"] {
    padding: 18px 16px;
    gap: 14px;
  }

  body.whoami-game-active [data-whoami-stage="game"] .stage-card__head,
  body.whoami-game-active #whoami-active-category-badges,
  body.whoami-game-active #whoami-source-category,
  body.whoami-game-active #whoami-status {
    display: none;
  }

  body.whoami-game-active [data-whoami-stage="game"] .game-meta {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.whoami-game-active [data-whoami-stage="game"] .game-badge {
    min-height: 96px;
    justify-content: center;
    text-align: center;
  }

  body.whoami-game-active #whoami-current-player {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  body.whoami-game-active #whoami-word-card {
    min-height: 320px;
    width: 100%;
  }

  body.whoami-game-active #whoami-word-card .decision-card__face h4,
  body.whoami-game-active #whoami-word {
    font-size: clamp(2rem, 9vw, 3.6rem);
    line-height: 1.05;
  }

  body.whoami-game-active [data-whoami-stage="game"] .stage-actions--game {
    grid-template-columns: 1fr;
  }

  .alias-mobile-category-list .truth-invite-category__title {
    font-size: .83rem;
    line-height: 1.08;
  }

  .alias-mobile-category-list .truth-create-category__description,
  .whoami-mobile-category-list .truth-create-category__description {
    font-size: .7rem;
    line-height: 1.3;
  }

  .alias-mobile-category-list .truth-create-category__mark {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    font-size: .66rem;
  }

  .overnight-games {
    width: 100%;
    border-radius: 0;
  }

  .overnight-games__head {
    padding: 0 12px;
  }

  .overnight-games__head h1 {
    font-size: 1.12rem;
  }

  .overnight-create-main-btn {
    min-height: 44px;
    padding: 0 12px;
  }

  .overnight-games__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .overnight-join-code-btn {
    width: 100%;
  }

  .overnight-room-row {
    min-height: 136px;
    padding: 12px;
  }

  .overnight-room-row__slots {
    grid-template-columns: repeat(4, minmax(68px, 1fr));
    gap: 6px;
  }

  .overnight-room-slot i {
    width: 58px;
    height: 58px;
  }

  .overnight-room-slot span {
    font-size: .74rem;
  }

  .overnight-create-dialog {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
  }

  .overnight-create-dialog__modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .overnight-create-mode {
    padding: 10px;
  }

  .overnight-create-mode strong {
    font-size: .9rem;
  }

  .overnight-create-mode span {
    display: none;
  }

  .truth-games {
    width: 100%;
  }

  .truth-games__head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .truth-games__head p {
    font-size: .82rem;
  }

  .truth-room-row {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 12px;
  }

  .truth-room-row__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .truth-room-row__actions {
    width: 100%;
  }

  .truth-room-row__owner-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .truth-room-row__slots {
    padding-left: 0;
    border-left: 0;
  }

  .truth-room-open {
    flex: 1 1 0;
  }

  .truth-room-row__slots {
    grid-template-columns: repeat(4, minmax(68px, 1fr));
    gap: 8px;
  }

  .truth-room-slot i {
    width: 58px;
    height: 58px;
  }

  .truth-room-slot {
    min-height: 88px;
    padding: 8px 6px;
  }

  .truth-room-slot--empty i {
    width: 42px;
    height: 42px;
    font-size: 1.55rem;
  }

  .truth-room-slot span {
    font-size: .72rem;
  }

  .truth-room-kick {
    opacity: 1;
    transform: none;
  }

  .truth-create-dialog {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
  }

  .truth-create-dialog--mode-step {
    width: min(calc(100vw - 28px), 520px);
    gap: 14px;
    padding: 16px;
    overflow: hidden;
  }

  .truth-create-dialog--settings-step > .overnight-create-dialog__modes {
    display: none;
  }

  .truth-create-mobile-head {
    display: grid;
    gap: 6px;
    padding-right: 42px;
  }

  .truth-create-mobile-head h2,
  .truth-create-mobile-head p {
    margin: 0;
  }

  .truth-create-mobile-head h2 {
    color: var(--text);
    font-size: 1.38rem;
    line-height: 1.1;
  }

  .truth-create-mobile-head p {
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.3;
  }

  .truth-create-mobile-modes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0;
    border-right: 0;
  }

  .truth-create-mobile-modes .overnight-create-mode {
    position: relative;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    min-height: 62px;
    padding: 9px 12px;
    border-radius: 16px;
  }

  .truth-create-mobile-modes .overnight-create-mode i {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    font-style: normal;
    font-size: 1.25rem;
  }

  .truth-create-mobile-modes .overnight-create-mode strong {
    grid-column: 2;
    align-self: end;
    overflow: hidden;
    font-size: .98rem;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .truth-create-mobile-modes .overnight-create-mode span {
    grid-column: 2;
    align-self: start;
    display: block;
    overflow: hidden;
    font-size: .74rem;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .truth-create-mobile-modes .overnight-create-mode::after {
    content: "";
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 10px;
    height: 10px;
    justify-self: end;
    border: 2px solid rgba(148, 163, 184, .42);
    border-radius: 999px;
  }

  .truth-create-mobile-modes .overnight-create-mode.is-active::after {
    border-color: rgba(102, 212, 163, .82);
    background: #66d4a3;
    box-shadow: 0 0 0 5px rgba(102, 212, 163, .12);
  }

  .truth-create-mobile-modes .overnight-create-mode:not(.is-active) {
    border-color: rgba(255,255,255,.1);
    background: rgba(255,255,255,.045);
  }

  .truth-create-back {
    display: inline-grid;
    width: max-content;
    min-height: 34px;
    padding: 0 12px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
  }

  .truth-create-continue {
    margin-top: 2px;
  }

  .truth-create-category-list {
    grid-template-columns: 1fr;
  }

  .truth-solo-player-list {
    grid-template-columns: 1fr;
  }
}

.overnight-premium-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.overnight-premium-option {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, opacity .2s ease;
}

.overnight-premium-option span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.overnight-premium-option strong {
  font-size: .92rem;
  line-height: 1.2;
}

.overnight-premium-option.is-active {
  border-color: rgba(102, 212, 163, .58);
  background: rgba(102, 212, 163, .13);
}

.overnight-premium-option.is-locked:not(.is-active) {
  border-color: rgba(255, 211, 106, .22);
}

.overnight-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.overnight-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
  color: var(--text);
  font: inherit;
}

.overnight-player-list {
  grid-template-columns: 1fr;
  gap: 8px;
}

.overnight-board {
  display: grid;
  gap: 16px;
}

.overnight-board__top,
.overnight-finale__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.overnight-board__top h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  line-height: 1.02;
}

.overnight-scoreboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.overnight-player-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
}

.overnight-player-card.is-active {
  border-color: rgba(102, 212, 163, .48);
  background:
    radial-gradient(circle at top left, rgba(102, 212, 163, .16), transparent 42%),
    rgba(255, 255, 255, .05);
}

.overnight-player-card.is-out {
  opacity: .62;
  border-style: dashed;
}

.overnight-player-card strong {
  display: block;
  color: var(--text);
  line-height: 1.12;
}

.overnight-player-card span,
.overnight-player-card li {
  color: var(--muted);
  font-size: .82rem;
}

.overnight-player-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.overnight-player-card li {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
}

.overnight-route {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(118px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.overnight-route__cell {
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}

.overnight-route__cell.is-owned { border-color: rgba(255, 211, 106, .24); }

.overnight-route__cell.is-occupied {
  background:
    radial-gradient(circle at top, rgba(102, 212, 163, .13), transparent 46%),
    rgba(255, 255, 255, .045);
}

.overnight-route__cell.is-current {
  border-color: rgba(102, 212, 163, .58);
  box-shadow: inset 0 0 0 1px rgba(102, 212, 163, .22);
}

.overnight-route__index {
  position: absolute;
  top: 14px;
  left: 5px;
  color: var(--muted);
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: 0;
  z-index: 2;
}

.overnight-route__icon {
  display: grid;
  place-items: center;
  min-height: 24px;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  filter: saturate(1.05);
}

.overnight-route__cell strong {
  color: var(--text);
  font-size: .56rem;
  line-height: 1.06;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  z-index: 1;
}

.overnight-route__tokens {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  max-width: calc(100% - 8px);
  min-height: 0;
  z-index: 3;
}

.overnight-route__tokens i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #06110d;
  font-size: .56rem;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .28);
}

.overnight-route__cell em {
  color: var(--muted);
  font-size: .52rem;
  font-style: normal;
  line-height: 1.1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 1;
}

.overnight-route__cell--corner {
  padding-top: 8px !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(102, 212, 163, .16), transparent 42%),
    rgba(255, 255, 255, .045) !important;
}

.overnight-route__cell--corner .overnight-route__icon,
.overnight-route__cell--start .overnight-route__icon {
  font-size: 1.45rem;
}

.overnight-route__cell--corner strong,
.overnight-route__cell--start strong {
  font-size: .62rem;
  font-weight: 900;
}

.overnight-route__cell--chance,
.overnight-route__cell--chest {
  border-style: dashed;
}

.overnight-route__cell--tax {
  border-color: rgba(255, 113, 136, .3);
}

.overnight-play-area {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: 14px;
}

.overnight-dice-card,
.overnight-place-card,
.overnight-journal-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  border-radius: 24px;
}

.overnight-dice {
  width: min(100%, 190px);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgba(102, 212, 163, .42);
  border-radius: 32px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .18), transparent 24%),
    linear-gradient(145deg, rgba(102, 212, 163, .24), rgba(124, 149, 255, .12));
  color: var(--text);
  font-size: clamp(3.4rem, 12vw, 6rem);
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 44px rgba(0, 0, 0, .24);
  transition: transform .2s ease, border-color .2s ease;
}

.overnight-dice:hover,
.overnight-dice:focus-visible {
  transform: translateY(-2px) rotate(-1deg);
  border-color: rgba(102, 212, 163, .72);
}

.overnight-dice:disabled {
  cursor: default;
  opacity: .76;
  transform: none;
}

.overnight-dice-card p,
.overnight-place-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.overnight-place-card__meta {
  display: grid;
  gap: 6px;
}

.overnight-place-card__meta span {
  color: #7ff0bd;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.overnight-place-card__meta strong {
  color: var(--text);
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  line-height: 1.03;
}

.overnight-owner-note {
  padding: 11px 12px;
  border: 1px solid rgba(255, 211, 106, .24);
  border-radius: 14px;
  background: rgba(255, 211, 106, .08);
  color: #ffe0a0;
  font-size: .88rem;
  line-height: 1.42;
}

.overnight-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.overnight-actions:empty { display: none; }

.overnight-actions .action-btn {
  min-height: 48px;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  text-align: center;
}

.overnight-actions .action-btn strong,
.overnight-actions .action-btn span {
  display: block;
}

.overnight-actions .action-btn span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.3;
}

.overnight-journal-panel {
  background:
    radial-gradient(circle at top left, rgba(124, 149, 255, .09), transparent 40%),
    rgba(9, 12, 18, .74);
}

.overnight-journal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.overnight-story-card,
.overnight-final-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(102, 212, 163, .11), transparent 42%),
    rgba(255, 255, 255, .04);
}

.overnight-story-card--rare { border-color: rgba(255, 211, 106, .34); }

.overnight-story-card span,
.overnight-final-card span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.overnight-story-card strong,
.overnight-final-card h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.12;
}

.overnight-story-card p,
.overnight-final-card p {
  margin: 0;
  color: #b8c8e4;
  font-size: .88rem;
  line-height: 1.48;
}

.overnight-finale {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
}

.overnight-finale__head {
  align-items: start;
  flex-direction: column;
}

.overnight-final-ranking {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.overnight-final-card {
  gap: 10px;
}

.overnight-final-card p {
  max-width: 76ch;
  font-size: .98rem;
  line-height: 1.66;
}

.overnight-final-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.catalog-choice-card--overnight {
  background:
    radial-gradient(circle at top left, rgba(102, 212, 163, .18), transparent 40%),
    radial-gradient(circle at bottom right, rgba(255, 211, 106, .1), transparent 34%),
    linear-gradient(180deg, rgba(17, 24, 31, .98), rgba(10, 13, 18, .98));
}

.catalog-choice-card--overnight.catalog-choice-hero__feature {
  min-height: 260px;
}

@media (max-width: 980px) {
  .overnight-hero,
  .overnight-play-area,
  .overnight-setup {
    grid-template-columns: 1fr;
  }

  .overnight-hero {
    min-height: 0;
  }

  .overnight-setup {
    min-height: 0;
    padding: 16px;
  }

  .overnight-setup__board {
    display: none;
  }

  .overnight-mode-options,
  .overnight-invite-grid,
  .overnight-room-create,
  .overnight-lobby-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .overnight-page .topbar {
    position: relative;
    top: 0;
  }

  .overnight-shell {
    gap: 14px;
  }

  .overnight-hero,
  .overnight-board,
  .overnight-finale {
    padding: 16px;
    border-radius: 24px;
  }

  .overnight-hero__panel,
  .overnight-dice-card,
  .overnight-place-card,
  .overnight-journal-panel {
    padding: 14px;
    border-radius: 20px;
  }

  .overnight-premium-options {
    grid-template-columns: 1fr;
  }

  .overnight-room-options {
    grid-template-columns: 1fr;
  }

  body.overnight-room-game-page .room-game-page {
    padding: 6px;
  }

  body.overnight-room-game-page .room-game-stage {
    padding: 5px;
  }

  .overnight-room-visual {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .overnight-room-scoreboard {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .overnight-room-scoreboard::-webkit-scrollbar {
    display: none;
  }

  .overnight-room-player {
    flex: 0 0 136px;
  }

  .overnight-room-map--board {
    --edge-size: 56px;
    width: max-content;
    min-width: 0;
  }

  .overnight-room-board-center {
    gap: 3px;
    padding: 3px;
  }

  .overnight-room-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 7px;
  }

  .overnight-room-card__top,
  .overnight-room-place p {
    display: none;
  }

  .overnight-room-dice {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-height: 46px;
  }

  .overnight-room-place {
    grid-column: auto;
    grid-row: auto;
    min-height: 46px;
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .overnight-room-place__icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .overnight-room-place h3 {
    font-size: .84rem;
  }

  .overnight-choice-btn {
    min-height: 38px;
  }

  .overnight-room-chat-slot .room-chat__header {
    display: none;
  }

  .overnight-room-chat-slot .room-chat__messages {
    padding: 3px 4px;
  }

  .overnight-room-chat-slot .room-chat__composer {
    padding: 5px;
  }

  .overnight-setup {
    padding: 12px;
  }

  .overnight-mode-options {
    gap: 8px;
  }

  .overnight-mode-card {
    min-height: 92px;
    padding: 10px;
  }

  .overnight-lobby-players {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overnight-board__top {
    align-items: stretch;
    flex-direction: column;
  }

  .overnight-board__top .action-btn {
    width: 100%;
  }

  .overnight-route {
    grid-auto-columns: minmax(102px, 42vw);
  }

  .overnight-scoreboard,
  .overnight-journal,
  .overnight-final-ranking,
  .overnight-actions {
    grid-template-columns: 1fr;
  }

  .overnight-dice {
    width: min(72vw, 180px);
    border-radius: 28px;
  }

  .overnight-trade-layer {
    align-items: center;
    padding: 6px;
  }

  .overnight-trade-dialog {
    width: min(360px, calc(100% - 12px));
    max-height: calc(100% - 12px);
    padding: 12px;
    border-radius: 14px;
  }

  .overnight-trade-columns {
    grid-template-columns: 1fr;
  }

  .overnight-trade-title strong {
    font-size: 1.15rem;
  }

  .overnight-room-dice-stage {
    top: 39%;
  }
}

:root[data-theme='light'] .chat-message__bubble,
:root[data-theme='light'] .room-chat-message__system,
:root[data-theme='light'] .chat-prompt-card {
  background: rgba(255,255,255,.88) !important;
}

.admin-lobby-entry {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 35, 0.82);
  color: var(--text);
  text-align: left;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.admin-lobby-entry:hover {
  border-color: rgba(97, 212, 162, 0.38);
  transform: translateY(-1px);
}

.admin-lobby-entry--active {
  border-color: rgba(97, 212, 162, 0.52);
  background: radial-gradient(circle at top, rgba(97, 212, 162, 0.08), rgba(15, 23, 35, 0.92) 62%);
}

.admin-lobby-entry__head,
.admin-lobby-entry__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-lobby-entry__meta {
  color: var(--muted);
  font-size: 14px;
}

.admin-log-item--lobby {
  gap: 10px;
}

.admin-log-item--lobby p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.admin-lobby-history-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-lobby-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}

.admin-lobby-participant-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 35, 0.7);
  color: var(--text);
  font-size: 13px;
}

.admin-lobby-participant-tag--leader {
  border-color: rgba(97, 212, 162, 0.35);
}

.admin-lobby-history-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 10px;
  width: 100%;
}

.admin-lobby-history-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.admin-lobby-history-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 160px;
  object-fit: cover;
}

.admin-lobby-history-photo--expired {
  padding: 12px;
}

.action-btn--compact {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: .82rem;
}

.friend-code-badge {
  align-content: start;
}

.friend-code-badge .action-btn {
  width: fit-content;
}

.friends-shell {
  gap: 18px;
}

.friends-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.friends-sidebar,
.friends-chat,
.friends-panel {
  min-width: 0;
}

.friends-sidebar {
  display: grid;
  gap: 12px;
  align-content: start;
}

.friends-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.035);
}

.friends-sidebar .friends-panel:first-child {
  gap: 10px;
  padding: 12px 14px;
}

.friends-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.friends-code {
  font-size: clamp(1.2rem, 2.4vw, 1.95rem);
  line-height: 1;
  letter-spacing: .08em;
}

.friends-add-form label {
  display: grid;
  gap: 8px;
}

.friends-add-form label span {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

.friends-list {
  display: grid;
  gap: 10px;
}

.friend-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,23,32,.96), rgba(10,13,19,.98));
}

.friend-card.is-active {
  border-color: rgba(102,212,163,.34);
  background: radial-gradient(circle at top right, rgba(102,212,163,.1), transparent 38%), linear-gradient(180deg, rgba(18,23,32,.98), rgba(10,13,19,1));
}

.friend-card__main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.friend-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.friend-card__open {
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.friend-card__main strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.2;
}

.friend-card__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(102,212,163,.24), rgba(61,171,124,.36));
  border: 1px solid rgba(102,212,163,.32);
  color: #dffff1;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.friend-card__main span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.friend-card__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.friend-card__menu {
  position: relative;
}

.friend-card__menu-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

.friend-card__menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15,18,27,.98);
  box-shadow: var(--shadow);
}

.friend-card__menu-list button {
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text);
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.friend-card__menu-list button:hover {
  background: rgba(255,255,255,.07);
}

.friends-chat {
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16,21,30,.98), rgba(10,13,19,1));
  overflow: hidden;
}

.friends-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.friends-chat__header h3 {
  margin: 4px 0 0;
  font-size: 1.15rem;
}

.friends-chat__actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.friends-invite-game-modal__dialog {
  width: min(460px, calc(100vw - 28px));
  display: grid;
  gap: 18px;
}

.friends-invite-game-modal__head {
  display: grid;
  gap: 8px;
}

.friends-invite-game-modal__head h3 {
  margin: 0;
}

.friends-invite-game-modal__text {
  margin: 0;
  color: var(--muted);
}

.friends-invite-game-list {
  display: grid;
  gap: 10px;
}

.friends-invite-game-option {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.friends-invite-game-option:hover {
  border-color: rgba(102,212,163,.32);
  background: linear-gradient(180deg, rgba(102,212,163,.08), rgba(255,255,255,.04));
  transform: translateY(-1px);
}

.friends-invite-game-option strong {
  font-size: 1rem;
}

.friends-invite-game-option span {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.4;
}

.friends-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: radial-gradient(circle at top, rgba(102,212,163,.035), transparent 30%), linear-gradient(180deg, rgba(8,11,16,.45), rgba(8,11,16,.12));
}

.friends-chat__composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.friends-chat .room-chat__media-btn {
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.friends-chat .room-chat__media-btn:hover:not(:disabled),
.friends-chat .room-chat__send:hover:not(:disabled) {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.09);
  transform: translateY(-1px);
}

.friends-chat .room-chat__media-btn:disabled,
.friends-chat .room-chat__send:disabled,
.friends-chat .room-chat__input:disabled {
  opacity: .58;
  cursor: not-allowed;
}

.friends-chat .room-chat__input {
  min-height: 48px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}

.friends-chat .room-chat__input--textarea {
  display: block;
  width: 100%;
  resize: none;
  overflow-y: hidden;
  padding: 12px 14px;
}

.friends-chat .room-chat__send {
  min-width: 120px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.friends-chat .room-chat__send--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  width: 48px;
  padding: 0;
}

.friends-chat .room-chat__send--icon svg {
  width: 20px;
  height: 20px;
}

.friend-message {
  display: flex;
  width: 100%;
}

.friend-message--self {
  justify-content: flex-end;
}

.friend-message--other {
  justify-content: flex-start;
}

.friend-message--system {
  justify-content: center;
}

.friend-message__bubble {
  display: grid;
  gap: 7px;
  max-width: min(84%, 420px);
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
}

.friend-message--self .friend-message__bubble {
  border-color: rgba(116,177,255,.34);
  background: linear-gradient(180deg, rgba(116,177,255,.16), rgba(116,177,255,.08));
}

.friend-message__bubble strong {
  font-size: .74rem;
  color: var(--muted);
}

.friend-message__bubble span {
  line-height: 1.45;
}

.friend-message__bubble--invite {
  justify-items: start;
  gap: 10px;
  width: min(100%, 440px);
  text-align: left;
  border-color: rgba(116,177,255,.24);
  background:
    radial-gradient(circle at top, rgba(116,177,255,.12), transparent 38%),
    linear-gradient(180deg, rgba(24,30,42,.96), rgba(14,18,26,.98));
  box-shadow: 0 18px 42px rgba(0,0,0,.2);
}

.friend-message__invite-eyebrow {
  color: #b9d4ff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.friend-message__invite-title {
  font-size: 1.1rem;
  color: var(--text);
}

.friend-message__invite-text {
  color: var(--muted);
  line-height: 1.5;
}

.friend-message__invite-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.friend-message__photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.friend-message__photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.friend-message__photos img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  object-fit: cover;
}

.chat-photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 760;
  display: grid;
  place-items: center;
  padding: 18px;
}

.chat-photo-viewer.hidden {
  display: none !important;
}

.chat-photo-viewer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3,5,9,.82);
  backdrop-filter: blur(8px);
}

.chat-photo-viewer__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 720px);
  max-height: 88dvh;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(12,15,22,.98);
}

.chat-photo-viewer__image {
  display: block;
  max-width: 100%;
  max-height: calc(88dvh - 24px);
  border-radius: 18px;
  object-fit: contain;
}

.chat-photo-viewer__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

#truth-invite-setup-modal {
  z-index: 620;
}

#alias-invite-setup-modal {
  z-index: 620;
}

#friends-photo-premium-modal {
  z-index: 640;
}

#friends-photo-subscription-result-modal {
  z-index: 650;
}

.truth-invite-setup-modal__dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: min(86vh, 760px);
  overflow-y: auto;
  display: grid;
  gap: 12px;
}

.truth-invite-setup-modal__head {
  display: grid;
  gap: 6px;
}

.truth-invite-setup-modal__head h3,
.truth-invite-setup-modal__head p {
  margin: 0;
}

.truth-invite-setup-modal__text {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}

.truth-invite-category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.truth-invite-category {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.truth-invite-category:hover {
  border-color: rgba(116,177,255,.32);
  background: rgba(116,177,255,.08);
  transform: translateY(-1px);
}

.truth-invite-category.is-selected {
  border-color: rgba(116,177,255,.44);
  background: linear-gradient(180deg, rgba(116,177,255,.14), rgba(116,177,255,.08));
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}

.truth-invite-category.is-locked {
  border-color: rgba(255,214,102,.2);
}

.truth-invite-category__top,
.truth-invite-category__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.truth-invite-category__emoji {
  font-size: 1.15rem;
  line-height: 1;
}

.truth-invite-category__badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.truth-invite-category__badge--premium {
  background: rgba(255,214,102,.12);
  color: #ffe29b;
}

.truth-invite-category__title {
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.2;
}

.truth-invite-category__state {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
}

.truth-invite-category__state strong {
  color: var(--text);
}

.truth-invite-setup-modal__selected {
  display: grid;
  gap: 10px;
}

.truth-invite-setup-modal__selected-label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.truth-invite-selected-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 721px) {
  body.truth-page .truth-create-modal {
    place-items: center;
    padding: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.truth-page .truth-create-dialog:not(.truth-create-dialog--solo-players) {
    width: min(860px, calc(100vw - 36px));
    max-height: calc(100dvh - 36px);
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  body.truth-page .truth-create-dialog--mode-step {
    width: min(540px, calc(100vw - 36px));
    gap: 16px;
    padding: 22px;
    overflow: hidden;
  }

  body.truth-page .truth-create-dialog--settings-step > .overnight-create-dialog__modes {
    display: none;
  }

  body.truth-page .truth-create-dialog--mode-step .truth-create-mobile-head {
    display: grid;
    gap: 7px;
    padding-right: 46px;
  }

  body.truth-page .truth-create-dialog--mode-step .truth-create-mobile-head h2,
  body.truth-page .truth-create-dialog--mode-step .truth-create-mobile-head p {
    margin: 0;
  }

  body.truth-page .truth-create-dialog--mode-step .truth-create-mobile-head h2 {
    color: var(--text);
    font-size: 1.42rem;
    line-height: 1.1;
  }

  body.truth-page .truth-create-mobile-modes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 0;
    border-right: 0;
    background: transparent;
  }

  body.truth-page .truth-create-mobile-modes .overnight-create-mode {
    position: relative;
    min-height: 70px;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 11px;
    padding: 11px 13px;
    border-radius: 16px;
  }

  body.truth-page .truth-create-mobile-modes .overnight-create-mode i {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    background: rgba(255,255,255,.06);
    font-style: normal;
    font-size: 1.12rem;
  }

  body.truth-page .truth-create-mobile-modes .overnight-create-mode strong {
    grid-column: 2;
    align-self: end;
    overflow: hidden;
    font-size: .98rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.truth-page .truth-create-mobile-modes .overnight-create-mode span {
    grid-column: 2;
    align-self: start;
    overflow: hidden;
    font-size: .74rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.truth-page .truth-create-mobile-modes .overnight-create-mode::after {
    content: "";
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 10px;
    height: 10px;
    justify-self: end;
    border: 2px solid rgba(148, 163, 184, .42);
    border-radius: 999px;
  }

  body.truth-page .truth-create-mobile-modes .overnight-create-mode.is-active::after {
    border-color: rgba(102, 212, 163, .82);
    background: #66d4a3;
    box-shadow: 0 0 0 5px rgba(102, 212, 163, .12);
  }

  body.truth-page .truth-create-dialog__settings {
    min-height: 0;
    gap: 10px;
    padding: 18px 24px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.truth-page .truth-create-dialog h2 {
    font-size: 1.24rem;
    line-height: 1.12;
  }

  body.truth-page .truth-create-dialog p {
    font-size: .82rem;
    line-height: 1.32;
  }

  body.truth-page .truth-player-stepper {
    display: grid;
    gap: 6px;
  }

  body.truth-page .truth-player-stepper > span,
  body.truth-page .truth-invite-setup-modal__selected-label,
  body.truth-page .overnight-create-kicker,
  body.truth-page .truth-room-name-field span {
    font-size: .68rem;
  }

  body.truth-page .truth-player-stepper div {
    gap: 7px;
  }

  body.truth-page .truth-player-stepper button,
  body.truth-page .truth-player-stepper button:first-child,
  body.truth-page .truth-player-stepper button:last-child {
    min-width: 38px;
    min-height: 32px;
    border-radius: 9px;
  }

  body.truth-page .truth-room-name-field {
    max-width: 520px;
    gap: 5px;
  }

  body.truth-page .truth-room-name-field input {
    min-height: 38px;
    border-radius: 10px;
    font-size: .82rem;
  }

  body.truth-page .truth-create-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(84px, auto);
    gap: 8px;
  }

  body.truth-page .truth-create-category {
    position: relative;
    min-height: 84px;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 12px;
    border-radius: 12px;
  }

  body.truth-page .truth-create-category.is-locked {
    padding-top: 26px;
  }

  body.truth-page .truth-create-category .truth-invite-category__emoji {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: .96rem;
  }

  body.truth-page .truth-create-category .truth-invite-category__title {
    display: -webkit-box;
    overflow: hidden;
    font-size: .86rem;
    line-height: 1.1;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.truth-page .truth-create-category__description {
    display: -webkit-box;
    overflow: hidden;
    font-size: .68rem;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.truth-page .truth-create-category__mark {
    min-width: 28px;
    height: 26px;
    padding: 0 8px;
  }

  body.truth-page .truth-create-category.is-locked .truth-create-category__mark {
    background: rgba(255,214,102,.12);
    color: #ffe29b;
    font-size: .78rem;
  }

  body.truth-page .truth-create-category__premium {
    position: absolute;
    top: 8px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255,214,102,.14);
    color: #ffe29b;
    font-size: .52rem;
    font-weight: 900;
    letter-spacing: .05em;
    line-height: 1;
    text-transform: uppercase;
  }

  body.truth-page .truth-create-selected {
    gap: 6px;
    padding-top: 0;
  }

  body.truth-page .truth-create-continue {
    min-height: 42px;
  }

  body.truth-page .truth-create-dialog--solo-players {
    width: min(640px, calc(100vw - 36px));
  }
}

.truth-invite-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(116,177,255,.26);
  border-radius: 999px;
  background: rgba(116,177,255,.1);
  color: var(--text);
  font-size: .82rem;
  font-weight: 700;
}

.truth-invite-selected-chip button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor: pointer;
}

.truth-invite-setup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.truth-invite-setup-actions .action-btn {
  min-height: 46px;
}

.site-notification-wrap {
  position: relative;
}

.topbar-profile-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  max-width: 332px;
  min-width: 0;
}

.topbar-profile-actions .session-pill {
  flex: 1 1 auto;
  min-width: 0;
}

.site-notification-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  color: var(--text);
  cursor: pointer;
}

.site-notification-bell svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.topbar-profile-actions .site-notification-bell {
  width: 38px;
  height: 38px;
  border-radius: 14px;
}

.topbar-profile-actions .site-notification-bell svg {
  width: 18px;
  height: 18px;
}

.site-notification-badge,
.site-nav-badge {
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--success);
  color: #06120d;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

.site-notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
}

.site-notification-bell.has-items .site-notification-badge,
.site-shell-mobile-nav__item.has-notifications .site-nav-badge,
.site-shell-nav__item.has-notifications .site-nav-badge,
.site-mobile-more-panel a.has-notifications .site-nav-badge,
.site-mobile-more-panel button.has-notifications .site-nav-badge {
  display: block;
}

.site-shell-mobile-nav__item .site-nav-badge {
  position: absolute;
  top: 6px;
  right: 10px;
}

.site-notification-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 35;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15,18,27,.98);
  box-shadow: var(--shadow);
}

.site-notification-menu__list {
  display: grid;
  gap: 8px;
  max-height: min(390px, calc(100vh - 170px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.site-notification-item {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.site-notification-item strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-notification-item__title {
  min-width: 0;
}

.site-notification-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 8px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(111, 238, 183, .12);
}

.site-notification-item.is-unread {
  background: rgba(255,255,255,.03);
}

.site-notification-item:hover {
  background: rgba(255,255,255,.07);
}

.site-notification-item span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.site-notification-item time {
  margin: 0;
  color: var(--muted);
  opacity: .72;
  font-size: .7rem;
  line-height: 1.2;
}

.site-notification-menu__readall {
  min-height: 40px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.site-notification-menu__readall:disabled {
  opacity: .45;
  cursor: default;
}

.site-mobile-more-panel {
  position: fixed;
  right: 12px;
  bottom: calc(82px + var(--mobile-nav-browser-offset, 0px) + var(--mobile-nav-lift, 0px) + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: grid;
  gap: 8px;
  width: min(260px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15,18,27,.98);
  box-shadow: var(--shadow);
}

.site-mobile-more-panel a,
.site-mobile-more-panel button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

@media (min-width: 981px) {
  .friends-page,
  .friends-shell,
  .friends-layout,
  .friends-chat {
    min-height: 0;
  }

  .friends-shell {
    align-content: start;
  }

  .friends-chat {
    height: min(760px, calc(100dvh - 244px));
    max-height: calc(100dvh - 244px);
  }
}

@media (max-width: 980px) {
  .friends-layout {
    grid-template-columns: 1fr;
  }

  .friends-chat {
    min-height: 560px;
  }

  .truth-invite-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-notification-wrap {
    display: none;
  }

  .topbar-profile-actions {
    order: 2;
    width: auto;
    max-width: min(48vw, 176px);
    justify-self: end;
  }

  .truth-invite-category-list {
    grid-template-columns: 1fr;
  }

  .truth-invite-setup-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .truth-invite-setup-actions .action-btn {
    width: 100%;
  }

  .friends-shell {
    padding: 14px;
  }

  .friend-card {
    grid-template-columns: 1fr;
  }

  .friend-card__actions,
  .friends-chat__actions {
    width: 100%;
    justify-content: stretch;
  }

  .friend-card__actions .action-btn,
  .friends-chat__actions .action-btn {
    flex: 1 1 0;
  }

  .friends-chat {
    min-height: 520px;
    border-radius: 20px;
  }

  .friends-chat__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .friends-chat__composer {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 7px;
    padding: 10px;
  }

  .friends-chat .room-chat__media-btn {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 13px;
    font-size: .96rem;
  }

  .friends-chat .room-chat__input {
    min-height: 40px;
    border-radius: 13px;
    font-size: 16px;
    padding: 10px 12px;
  }

  .friends-chat .room-chat__send--icon {
    min-width: 40px;
    width: 40px;
  }

.friends-chat .room-chat__send--icon svg {
  width: 18px;
  height: 18px;
}
  }

body.overnight-room-game-page .room-game-page {
  width: min(100%, 1180px);
  padding-top: 0;
  padding-bottom: 0;
}

body.overnight-room-game-page .room-game-stage {
  overflow: hidden;
  padding: 4px;
}

.overnight-room-visual {
  grid-template-columns: minmax(84px, 96px) auto;
  gap: 6px;
  align-items: start;
  justify-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.overnight-room-map--board {
  --edge-size: clamp(30px, min(3vw, 4.7dvh), 42px);
  --corner-size: calc(var(--edge-size) * 1.75);
  grid-template-columns: var(--corner-size) repeat(var(--edge-count, 9), var(--edge-size)) var(--corner-size);
  grid-template-rows: var(--corner-size) repeat(var(--edge-count, 9), var(--edge-size)) var(--corner-size);
  width: calc((var(--corner-size) * 2) + (var(--edge-size) * var(--edge-count, 9)) + 20px);
  max-width: 100%;
  overflow: hidden;
  padding: 3px;
  border-radius: 12px;
}

.overnight-room-route--board {
  grid-template-columns: var(--corner-size) repeat(var(--edge-count, 9), var(--edge-size)) var(--corner-size);
  grid-template-rows: var(--corner-size) repeat(var(--edge-count, 9), var(--edge-size)) var(--corner-size);
  gap: 2px;
}

.overnight-room-route--board .overnight-route__cell {
  cursor: pointer;
  padding: 9px 2px 3px;
  border-radius: 3px;
}

.overnight-room-route--board .overnight-route__cell:hover,
.overnight-room-route--board .overnight-route__cell.is-selected {
  border-color: color-mix(in srgb, var(--cell-color, #66d4a3) 82%, rgba(255,255,255,.2));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--cell-color, #66d4a3) 42%, transparent),
    0 0 0 1px rgba(255,255,255,.14);
}

.overnight-room-route--board .overnight-route__cell--venue strong,
.overnight-room-route--board .overnight-route__cell--transport strong,
.overnight-room-route--board .overnight-route__cell--utility strong {
  max-width: 100%;
  font-size: clamp(.42rem, .55vw, .58rem);
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: normal;
}

.overnight-room-route--board .overnight-route__cell--venue em,
.overnight-room-route--board .overnight-route__cell--transport em,
.overnight-room-route--board .overnight-route__cell--utility em {
  font-size: clamp(.3rem, .38vw, .4rem);
}

.overnight-room-board-center {
  grid-column: 2 / -2;
  grid-row: 2 / -2;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 3px;
  padding: 3px;
}

.overnight-room-board-center .overnight-room-card {
  align-self: start;
}

.overnight-room-chat-slot {
  min-height: 0;
}

.overnight-room-chat-slot .room-chat {
  border-radius: 8px;
  border-radius: 7px;
}

.overnight-room-chat-slot .room-chat__header {
  padding: 4px 6px;
}

.overnight-room-chat-slot .room-chat__messages {
  padding: 3px;
  gap: 2px;
}

.overnight-room-scoreboard {
  gap: 5px;
}

.overnight-room-player {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 5px;
  min-height: 92px;
  padding: 8px 7px;
  text-align: center;
  overflow: hidden;
}

.overnight-room-player__avatar {
  grid-row: auto;
  width: 30px;
  height: 30px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.12);
  font-size: .78rem;
}

.overnight-room-player__body {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.overnight-room-player__head {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 100%;
}

.overnight-room-player strong {
  display: -webkit-box;
  max-width: 100%;
  color: #f8fafc;
  font-size: .74rem;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.overnight-room-player span,
.overnight-room-player small {
  display: block;
  max-width: 100%;
  font-size: .54rem;
  line-height: 1.1;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overnight-room-player__money {
  color: #f8fafc;
  font-size: .92rem;
  line-height: 1;
  letter-spacing: 0;
}

.overnight-room-player__head em {
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 17px;
  padding: 1px 5px;
  font-size: .45rem;
}

.overnight-room-player.is-active {
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--player-color, #66d4a3) 20%, transparent), transparent 38%),
    color-mix(in srgb, var(--player-color, #66d4a3) 24%, rgba(255,255,255,.035));
}

.overnight-room-player__trade {
  width: 100%;
  min-height: 32px;
  border-color: rgba(74, 222, 128, .72);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, .42), rgba(22, 163, 74, .30)),
    rgba(20, 83, 45, .48);
  color: #dcfce7;
  font-size: .7rem;
  box-shadow: 0 8px 18px rgba(22, 163, 74, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.overnight-room-player__trade:hover {
  border-color: rgba(134, 239, 172, .86);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, .56), rgba(22, 163, 74, .38)),
    rgba(20, 83, 45, .58);
  color: #f0fdf4;
}

.overnight-room-card {
  padding: 5px;
  gap: 4px;
}

.overnight-room-card__top {
  gap: 8px;
}

.overnight-room-card__top strong {
  font-size: .74rem;
}

.overnight-room-turn-badge {
  min-height: 16px;
  padding: 1px 5px;
  font-size: .48rem;
}

.overnight-room-dice {
  min-width: 104px;
  min-height: 38px;
  grid-template-columns: 48px auto;
  gap: 6px;
  border-radius: 8px;
  font-size: .68rem;
}

.overnight-room-dice__faces i {
  min-width: 22px;
  min-height: 22px;
  border-radius: 6px;
}

.overnight-room-place {
  min-height: 42px;
  padding: 6px;
  gap: 6px;
}

.overnight-room-place__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 1rem;
}

.overnight-room-place span {
  font-size: .48rem;
}

.overnight-room-place h3 {
  font-size: .76rem;
}

.overnight-room-place p {
  font-size: .54rem;
  line-height: 1.15;
}

.overnight-route__index {
  top: 2px;
  left: 3px;
  font-size: .34rem;
}

.overnight-route__tokens {
  right: 2px;
  bottom: 2px;
  gap: 2px;
}

.overnight-route__tokens i {
  width: 14px;
  height: 14px;
  font-size: .44rem;
}

.overnight-place-info {
  position: absolute;
  left: clamp(10px, 3vw, 34px);
  top: clamp(10px, 3vw, 34px);
  z-index: 36;
  width: min(270px, calc(100% - 20px));
  max-height: calc(100% - 20px);
  overflow: auto;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  box-shadow: 0 16px 36px rgba(0,0,0,.34);
}

.overnight-room-route--board .overnight-route__cell em {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 0;
  background: var(--cell-color, rgba(255,255,255,.12));
  color: #f8fafc;
  font-size: clamp(.3rem, .36vw, .4rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.overnight-room-route--board .overnight-route__cell--top,
.overnight-room-route--board .overnight-route__cell--bottom {
  padding: 13px 2px 11px;
}

.overnight-room-route--board .overnight-route__cell--top em {
  inset: 0 0 auto;
  min-height: 10px;
}

.overnight-room-route--board .overnight-route__cell--bottom em {
  inset: auto 0 0;
  min-height: 10px;
}

.overnight-room-route--board .overnight-route__cell--left,
.overnight-room-route--board .overnight-route__cell--right {
  padding-top: 8px;
  padding-bottom: 3px;
}

.overnight-room-route--board .overnight-route__cell--left {
  padding-left: 11px;
  padding-right: 2px;
}

.overnight-room-route--board .overnight-route__cell--right {
  padding-left: 2px;
  padding-right: 11px;
}

.overnight-room-route--board .overnight-route__cell--left em,
.overnight-room-route--board .overnight-route__cell--right em {
  top: 0;
  bottom: 0;
  width: 10px;
  min-height: 100%;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.overnight-room-route--board .overnight-route__cell--left em {
  left: 0;
  transform: rotate(180deg);
}

.overnight-room-route--board .overnight-route__cell--right em {
  right: 0;
}

.overnight-room-route--board .overnight-route__cell--top strong,
.overnight-room-route--board .overnight-route__cell--bottom strong {
  display: -webkit-box;
  max-width: 100%;
  font-size: clamp(.38rem, .48vw, .54rem);
  line-height: 1.02;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.overnight-room-route--board .overnight-route__cell--left strong,
.overnight-room-route--board .overnight-route__cell--right strong {
  font-size: clamp(.4rem, .52vw, .58rem);
  line-height: 1.02;
  white-space: normal;
  overflow-wrap: anywhere;
}

.overnight-room-route--board .overnight-route__cell--chance em,
.overnight-room-route--board .overnight-route__cell--chest em,
.overnight-room-route--board .overnight-route__cell--tax em,
.overnight-room-route--board .overnight-route__cell--start em,
.overnight-room-route--board .overnight-route__cell--corner em {
  background: rgba(255,255,255,.1);
  color: rgba(248,250,252,.72);
}

.overnight-place-info.hidden {
  display: none !important;
}

.overnight-place-info__head {
  display: grid;
  gap: 2px;
  padding: 14px 18px 12px;
  background: var(--cell-color, #dc4254);
  color: #fff;
}

.overnight-place-info__head strong {
  color: #fff;
  font-size: 1.28rem;
  line-height: 1.05;
  display: flex;
  align-items: center;
  gap: 7px;
}

.overnight-place-info__partner {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: rgba(255,255,255,.18);
  color: #fff;
  text-decoration: none;
  font-size: .86rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
}

.overnight-place-info__partner:hover {
  background: rgba(255,255,255,.28);
}

.overnight-place-info__head span {
  color: rgba(255,255,255,.86);
  font-size: .78rem;
  font-weight: 700;
}

.overnight-place-info__close {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
  background: rgba(0,0,0,.18);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.overnight-place-info__owner,
.overnight-place-info__note {
  margin: 0;
  padding: 12px 18px 0;
  color: #64748b;
  font-size: .82rem;
  line-height: 1.25;
}

.overnight-place-info__rent,
.overnight-place-info__prices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(82px, max-content);
  align-items: baseline;
  gap: 0;
  padding: 12px 18px 0;
  font-size: .88rem;
}

.overnight-place-info__prices {
  padding-top: 2px;
}

.overnight-place-info__rent span,
.overnight-place-info__prices span {
  min-width: 0;
  padding: 4px 8px 4px 0;
  border-bottom: 1px solid rgba(100, 116, 139, .48);
  color: #475569;
  line-height: 1.22;
}

.overnight-place-info__rent b,
.overnight-place-info__prices b {
  justify-self: end;
  min-width: 82px;
  width: 100%;
  padding: 4px 12px 4px 10px;
  border-bottom: 1px solid rgba(100, 116, 139, .48);
  border-left: 1px solid rgba(100, 116, 139, .56);
  background: rgba(100, 116, 139, .09);
  color: #475569;
  font-size: .98rem;
  line-height: 1.22;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.overnight-place-info__rent span:nth-last-child(-n + 2),
.overnight-place-info__rent b:nth-last-child(-n + 2),
.overnight-place-info__prices span:nth-last-child(-n + 2),
.overnight-place-info__prices b:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.overnight-place-info__rent b.is-current {
  color: #0f172a;
}

.overnight-place-info__prices {
  padding-bottom: 16px;
}

.overnight-place-info__note {
  padding-bottom: 16px;
}

@media (max-width: 980px) {
  .overnight-room-visual {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .overnight-room-scoreboard {
    justify-self: stretch;
    max-width: 100%;
  }

  .overnight-room-map--board {
    --edge-size: clamp(25px, calc((100vw - 24px) / 15), 36px);
    width: calc((var(--corner-size) * 2) + (var(--edge-size) * var(--edge-count, 9)) + 20px);
  }

  .overnight-room-board-center {
    gap: 3px;
    padding: 3px;
  }

  .overnight-room-route--board .overnight-route__cell {
    padding: 8px 2px 3px;
  }

  .overnight-room-route--board .overnight-route__cell--top,
  .overnight-room-route--board .overnight-route__cell--bottom {
    padding: 12px 2px 10px;
  }

  .overnight-room-route--board .overnight-route__cell--left {
    padding-left: 10px;
    padding-right: 2px;
  }

  .overnight-room-route--board .overnight-route__cell--right {
    padding-left: 2px;
    padding-right: 10px;
  }

  .overnight-room-route--board .overnight-route__cell--left em,
  .overnight-room-route--board .overnight-route__cell--right em {
    width: 9px;
  }

  .overnight-room-route--board .overnight-route__cell--top em,
  .overnight-room-route--board .overnight-route__cell--bottom em {
    min-height: 9px;
  }

  .overnight-room-route--board .overnight-route__cell--venue strong,
  .overnight-room-route--board .overnight-route__cell--transport strong,
  .overnight-room-route--board .overnight-route__cell--utility strong {
    font-size: clamp(.34rem, 1.15vw, .48rem);
  }

  .overnight-room-route--board .overnight-route__cell em {
    font-size: clamp(.26rem, .9vw, .34rem);
  }
}

@media (max-width: 720px) {
  body.overnight-room-game-page .room-game-page {
    padding: 4px;
  }

  body.overnight-room-game-page .room-game-stage {
    padding: 4px;
  }

  .overnight-room-panel {
    gap: 5px;
  }

  .overnight-room-map--board {
    --edge-size: clamp(21px, calc((100vw - 20px) / 16), 28px);
    border-radius: 12px;
    padding: 3px;
  }

  .overnight-room-route--board {
    gap: 2px;
  }

  .overnight-room-board-center {
    grid-column: 2 / -2;
    grid-row: 2 / -2;
  }

  .overnight-room-card {
    min-height: 0;
  }

  .overnight-room-place {
    min-height: 34px;
    padding: 5px;
  }

  .overnight-room-place h3 {
    font-size: .72rem;
  }

  .overnight-room-dice {
    min-width: 0;
    min-height: 34px;
    grid-template-columns: auto auto;
    padding: 4px 6px;
    font-size: .66rem;
  }

  .overnight-room-chat-slot .room-chat__header {
    display: none;
  }

  .overnight-room-chat-slot .room-chat__input {
    min-height: 24px;
    font-size: .68rem;
  }

  .overnight-room-chat-slot .room-chat__send--icon {
    width: 26px;
    min-width: 26px;
    min-height: 26px;
  }

  .overnight-place-info {
    left: 50%;
    top: 50%;
    width: min(270px, calc(100% - 18px));
    max-height: calc(100% - 18px);
    transform: translate(-50%, -50%);
  }
}

/* Overnight game focus mode */
body.overnight-room-game-page {
  overflow: hidden;
}

body.overnight-room-game-page .topbar {
  display: none !important;
}

body.overnight-room-game-page .page-shell {
  min-height: 100dvh;
  padding: 8px;
}

body.site-shell-nav-enabled.overnight-room-game-page .page-shell {
  padding: 8px 8px 8px 72px;
}

body.site-shell-nav-enabled.overnight-room-game-page .app-shell,
body.site-shell-nav-enabled.overnight-room-game-page .room-game-page {
  width: min(100%, calc(100vw - 90px));
  max-width: none;
}

body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar {
  top: 8px;
  left: 8px;
  bottom: 8px;
  width: 52px;
  z-index: 120;
  transition: width .18s ease, filter .18s ease;
}

body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar:hover,
body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar:focus-within {
  width: 250px;
  filter: drop-shadow(0 18px 44px rgba(0,0,0,.36));
}

body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar__nav,
body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar__more {
  gap: 5px;
  padding: 6px;
}

body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar__more {
  display: grid;
  margin-top: 6px;
}

body.site-shell-nav-enabled.overnight-room-game-page .site-shell-nav__item {
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 38px;
  padding: 0 8px;
  overflow: hidden;
}

body.site-shell-nav-enabled.overnight-room-game-page .site-shell-nav__item svg {
  width: 20px;
  height: 20px;
  justify-self: center;
}

body.site-shell-nav-enabled.overnight-room-game-page .site-shell-nav__item span,
body.site-shell-nav-enabled.overnight-room-game-page .site-shell-nav__item b {
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar:hover .site-shell-nav__item span,
body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar:hover .site-shell-nav__item b,
body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar:focus-within .site-shell-nav__item span,
body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar:focus-within .site-shell-nav__item b {
  opacity: 1;
  pointer-events: auto;
}

/* Overnight board hard fit override: keep the field monolithic and non-scrollable. */
body.overnight-room-game-page .overnight-room-panel {
  width: calc(100vw - 84px) !important;
  max-height: calc(100dvh - 8px) !important;
}

body.overnight-room-game-page .overnight-room-visual {
  grid-template-columns: minmax(210px, 240px) auto !important;
  gap: 16px !important;
  justify-content: center !important;
  align-items: center !important;
  min-width: 0 !important;
}

body.overnight-room-game-page .overnight-room-map,
body.overnight-room-game-page .overnight-room-map--board {
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  overscroll-behavior: none !important;
}

body.overnight-room-game-page .overnight-room-map--board {
  --board-gap: 2px;
  --price-gutter: clamp(14px, 1.55dvh, 18px);
  --edge-size: clamp(50px, min(4.65vw, 6.55dvh), 66px);
  --corner-size: calc(var(--edge-size) * 1.7);
  box-sizing: border-box !important;
  width: calc((var(--corner-size) * 2) + (var(--edge-size) * var(--edge-count, 9)) + (var(--board-gap) * 10) + (var(--price-gutter) * 2) + 8px) !important;
  height: calc((var(--corner-size) * 2) + (var(--edge-size) * var(--edge-count, 9)) + (var(--board-gap) * 10) + (var(--price-gutter) * 2) + 8px) !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: var(--price-gutter) !important;
  border-radius: 4px !important;
  background: rgba(8, 12, 19, .92) !important;
}

body.overnight-room-game-page .overnight-room-route--board {
  gap: var(--board-gap) !important;
  overflow: visible !important;
  width: 100% !important;
  height: 100% !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell {
  min-width: 0 !important;
  min-height: 0 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom {
  padding: 17px 3px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell em {
  min-height: clamp(16px, 1.85dvh, 20px) !important;
  font-size: clamp(.68rem, min(.78vw, 1.15dvh), .84rem) !important;
  line-height: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top em {
  transform: translateY(calc(-1 * (var(--price-gutter) - 2px))) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom em {
  transform: translateY(calc(var(--price-gutter) - 2px)) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left em,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right em {
  width: clamp(16px, 1.85dvh, 20px) !important;
  min-height: 100% !important;
  font-size: clamp(.62rem, min(.7vw, 1.05dvh), .78rem) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left em {
  transform: translateX(calc(-1 * (var(--price-gutter) - 2px))) rotate(180deg) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right em {
  transform: translateX(calc(var(--price-gutter) - 2px)) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left {
  padding-left: clamp(16px, 1.9dvh, 20px) !important;
  padding-right: 3px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right {
  padding-left: 3px !important;
  padding-right: clamp(16px, 1.9dvh, 20px) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom strong {
  width: calc(var(--corner-size) - 18px) !important;
  font-size: clamp(.78rem, min(1.05vw, 1.55dvh), 1.02rem) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right strong {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  font-size: clamp(.72rem, min(.95vw, 1.38dvh), .96rem) !important;
  line-height: 1.04 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--corner strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chance strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chest strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--tax strong {
  font-size: clamp(.68rem, min(.9vw, 1.3dvh), .88rem) !important;
  overflow-wrap: anywhere !important;
}

body.overnight-room-game-page .overnight-room-board-center {
  grid-column: 2 / -2 !important;
  grid-row: 2 / -2 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: hidden !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

body.overnight-room-game-page .overnight-room-chat-slot,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded {
  min-width: 0 !important;
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  overflow: hidden !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  transform: none !important;
  margin: 0 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded .room-chat__header,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded .room-turn-widget,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded .room-chat__composer,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded .room-chat__messages {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__messages {
  min-height: 0 !important;
  overflow-y: auto !important;
  font-size: .95rem !important;
}

body.overnight-room-game-page .overnight-room-dice[hidden],
body.overnight-room-game-page .overnight-room-dice.hidden {
  display: none !important;
}

body.overnight-room-game-page .overnight-room-player__body,
body.overnight-room-game-page .overnight-room-player__head {
  width: 100% !important;
  min-width: 0 !important;
  justify-items: center !important;
  text-align: center !important;
}

body.overnight-room-game-page .overnight-room-player__head {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-content: center !important;
}

body.overnight-room-game-page .overnight-room-player__head strong {
  display: block !important;
  width: 100% !important;
  max-width: calc(100% - 18px) !important;
  margin: 0 auto !important;
  text-align: center !important;
}

body.overnight-room-game-page .overnight-room-player__head em {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: auto !important;
  max-width: 54px !important;
  min-height: 18px !important;
  padding: 2px 6px !important;
  font-size: .52rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  z-index: 8 !important;
}

body.overnight-room-game-page .overnight-room-player__menu {
  top: 8px !important;
  right: 8px !important;
  z-index: 12 !important;
}

@media (max-width: 1360px) {
  body.overnight-room-game-page .overnight-room-panel {
    width: calc(100vw - 72px) !important;
  }

  body.overnight-room-game-page .overnight-room-visual {
    grid-template-columns: minmax(190px, 220px) auto !important;
    gap: 12px !important;
  }

  body.overnight-room-game-page .overnight-room-map--board {
    --edge-size: clamp(47px, min(4.55vw, 6.35dvh), 61px);
  }
}

@media (max-width: 980px) {
  body.overnight-room-game-page .overnight-room-panel {
    width: calc(100vw - 12px) !important;
  }

  body.overnight-room-game-page .overnight-room-visual {
    grid-template-columns: minmax(116px, 142px) auto !important;
    gap: 8px !important;
  }

  body.overnight-room-game-page .overnight-room-map--board {
    --price-gutter: 12px;
    --edge-size: clamp(34px, min(4.05vw, 5.9dvh), 47px);
  }
}

/* True final board scale override. */
body.overnight-room-game-page .overnight-room-panel {
  width: calc(100vw - 72px) !important;
  max-height: calc(100dvh - 4px) !important;
}

body.overnight-room-game-page .overnight-room-visual {
  grid-template-columns: minmax(220px, 240px) auto !important;
  gap: 18px !important;
  width: 100% !important;
  justify-content: center !important;
  align-items: center !important;
}

body.overnight-room-game-page .overnight-room-map--board {
  --edge-size: clamp(56px, min(4.9vw, 7.35dvh), 74px);
  --corner-size: calc(var(--edge-size) * 1.7);
}

body.overnight-room-game-page .overnight-room-player__body,
body.overnight-room-game-page .overnight-room-player__head {
  width: 100% !important;
  min-width: 0 !important;
  justify-items: center !important;
  text-align: center !important;
}

body.overnight-room-game-page .overnight-room-player__head {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-content: center !important;
}

body.overnight-room-game-page .overnight-room-player__head strong {
  display: block !important;
  width: 100% !important;
  max-width: calc(100% - 22px) !important;
  margin: 0 auto !important;
  text-align: center !important;
}

body.overnight-room-game-page .overnight-room-player__head em {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: auto !important;
  max-width: 56px !important;
  z-index: 8 !important;
}

body.overnight-room-game-page .overnight-room-player__menu {
  top: 8px !important;
  right: 8px !important;
  z-index: 12 !important;
}

@media (max-width: 1360px) {
  body.overnight-room-game-page .overnight-room-panel {
    width: calc(100vw - 64px) !important;
  }

  body.overnight-room-game-page .overnight-room-visual {
    grid-template-columns: minmax(200px, 220px) auto !important;
    gap: 14px !important;
  }

  body.overnight-room-game-page .overnight-room-map--board {
    --edge-size: clamp(54px, min(4.85vw, 7.15dvh), 70px);
  }
}

@media (max-width: 980px) {
  body.overnight-room-game-page .overnight-room-panel {
    width: calc(100vw - 8px) !important;
  }

  body.overnight-room-game-page .overnight-room-visual {
    grid-template-columns: minmax(116px, 142px) auto !important;
    gap: 8px !important;
  }

  body.overnight-room-game-page .overnight-room-map--board {
    --edge-size: clamp(38px, min(4.55vw, 6.35dvh), 50px);
  }
}

/* Price ribbons must sit on the board edge, like monopoly-one, without being clipped by cells. */
body.overnight-room-game-page .overnight-room-map--board {
  --price-gutter: clamp(22px, 2.35dvh, 28px);
}

body.overnight-room-game-page .overnight-room-route--board,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell {
  overflow: visible !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell em {
  position: absolute !important;
  z-index: 40 !important;
  display: grid !important;
  place-items: center !important;
  min-height: clamp(20px, 2.2dvh, 25px) !important;
  padding: 0 7px !important;
  border-radius: 0 !important;
  background: var(--cell-color, rgba(71, 85, 105, .95)) !important;
  color: #fff !important;
  font-size: clamp(.78rem, min(.9vw, 1.3dvh), 1rem) !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Fast die bus targets. Keep late so board ownership/selection styles do not bury it. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-speed-target {
  outline: 3px solid rgba(52, 211, 153, .92) !important;
  outline-offset: -4px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .22),
    0 0 0 2px rgba(20, 184, 166, .18) !important;
}

body.overnight-room-game-page .overnight-choice-modal__actions--speed {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.overnight-room-game-page .overnight-room-dice__faces i.is-speed-die,
body.overnight-room-game-page .overnight-room-dice-stage i.is-speed-die {
  border-color: rgba(52, 211, 153, .52);
  background:
    radial-gradient(circle at 50% 35%, rgba(52, 211, 153, .18), transparent 52%),
    linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(5, 13, 23, .98));
  color: #d1fae5;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top em {
  top: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  transform: translateY(-100%) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom em {
  top: auto !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  transform: translateY(100%) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left em,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right em {
  top: 0 !important;
  bottom: 0 !important;
  width: clamp(20px, 2.2dvh, 25px) !important;
  min-height: 100% !important;
  padding: 0 !important;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(.74rem, min(.78vw, 1.16dvh), .9rem) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left em {
  right: auto !important;
  left: 0 !important;
  transform: translateX(-100%) rotate(180deg) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right em {
  right: 0 !important;
  left: auto !important;
  transform: translateX(100%) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue:not(.is-owned),
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport:not(.is-owned),
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility:not(.is-owned) {
  border-color: rgba(255, 255, 255, .2) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025)),
    rgba(18, 22, 33, .98) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue:not(.is-owned) .overnight-route__color,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport:not(.is-owned) .overnight-route__color,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility:not(.is-owned) .overnight-route__color {
  opacity: 0 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue.is-owned,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport.is-owned,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility.is-owned {
  border-color: color-mix(in srgb, var(--owner-color, #38bdf8) 82%, #ffffff 18%) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(0, 0, 0, .08)),
    color-mix(in srgb, var(--owner-color, #38bdf8) 76%, #101827 24%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    inset 0 -18px 38px rgba(0, 0, 0, .16) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue.is-owned .overnight-route__color,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport.is-owned .overnight-route__color,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility.is-owned .overnight-route__color {
  opacity: 0 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-owned strong {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-owned .overnight-route__index {
  color: rgba(255, 255, 255, .82) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-owned em {
  background: var(--cell-color, rgba(71, 85, 105, .95)) !important;
}

@media (max-width: 980px) {
  body.overnight-room-game-page .overnight-room-map--board {
    --price-gutter: 18px;
  }

  body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell em {
    min-height: 16px !important;
    font-size: .68rem !important;
  }

  body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left em,
  body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right em {
    width: 16px !important;
    font-size: .62rem !important;
  }
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner),
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) {
  padding: clamp(12px, 1.45dvh, 16px) 2px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) strong {
  height: calc(100% - clamp(8px, 1dvh, 12px)) !important;
  font-size: clamp(.82rem, min(1.08vw, 1.62dvh), 1.08rem) !important;
  line-height: 1.03 !important;
  transform: rotate(180deg) !important;
}

body.overnight-room-game-page .overnight-route__title-fit--sm {
  transform: scale(.95) !important;
}

body.overnight-room-game-page .overnight-route__title-fit--xs {
  transform: scale(.86) !important;
}

body.overnight-room-game-page .overnight-route__title-fit--stacked {
  transform: scale(.92) !important;
}

body.overnight-room-game-page .overnight-route__title-stack {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

body.overnight-room-game-page .overnight-route__title-stack span {
  display: block;
}

/* Overnight lobby final theme: keep at EOF so older lobby rules cannot revive white panels. */
body.overnight-page .overnight-shell {
  align-content: start;
  gap: 20px;
  width: min(100%, 1468px);
}

body.overnight-page .overnight-games {
  width: 100% !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(82, 211, 169, .09), transparent 36%),
    linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(8, 13, 22, .96)) !important;
  color: var(--text) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34) !important;
}

body.overnight-page .overnight-games__head {
  min-height: 76px !important;
  padding: 16px 24px !important;
  border-bottom: 1px solid rgba(148, 163, 184, .14) !important;
  background:
    radial-gradient(circle at 12% -20%, rgba(82, 211, 169, .14), transparent 42%),
    rgba(255, 255, 255, .025) !important;
}

body.overnight-page .overnight-games__head h1 {
  color: #f8fafc !important;
  font-size: clamp(1.28rem, 1.7vw, 1.62rem) !important;
  font-weight: 900 !important;
}

body.overnight-page .overnight-games__head p {
  display: block !important;
  margin: 4px 0 0 !important;
  color: rgba(203, 213, 225, .72) !important;
  font-size: .9rem !important;
}

body.overnight-page .overnight-games__list {
  min-height: 132px;
  background: transparent !important;
}

body.overnight-page .overnight-empty-rooms {
  min-height: 132px !important;
  padding: 30px 28px !important;
  border-top: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .018)),
    rgba(7, 11, 18, .38) !important;
  color: rgba(203, 213, 225, .72) !important;
}

body.overnight-page .overnight-empty-rooms strong {
  color: #f8fafc !important;
  font-size: 1.02rem !important;
}

body.overnight-page .overnight-create-main-btn {
  min-height: 42px !important;
  padding: 0 20px !important;
  border: 1px solid rgba(82, 211, 169, .38) !important;
  border-radius: 14px !important;
  background: rgba(82, 211, 169, .14) !important;
  color: #eafff4 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

body.overnight-page .overnight-create-main-btn:hover {
  border-color: rgba(82, 211, 169, .58) !important;
  background: rgba(82, 211, 169, .2) !important;
}

body.overnight-page .overnight-room-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .024)),
    rgba(11, 17, 28, .62) !important;
  color: var(--text) !important;
}

/* Overnight lobby room separation: absolute final layer after legacy waiting-list rules. */
body.overnight-page .overnight-games__list {
  display: grid !important;
  gap: 14px !important;
  min-height: 132px !important;
  padding: 14px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, .006)),
    rgba(3, 7, 13, .28) !important;
}

body.overnight-page .overnight-room-row {
  --room-accent: #52d3a9;
  display: grid !important;
  grid-template-columns: minmax(180px, 238px) minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: center !important;
  min-height: 150px !important;
  padding: 18px 24px 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--room-accent) 14%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(20, 29, 45, .88), rgba(10, 15, 25, .9)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 14px 34px rgba(0, 0, 0, .18) !important;
}

body.overnight-page .overnight-room-row + .overnight-room-row {
  border-top: 1px solid rgba(148, 163, 184, .16) !important;
}

body.overnight-page .overnight-room-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--room-accent), color-mix(in srgb, var(--room-accent) 52%, #050914));
  opacity: .9;
}

body.overnight-page .overnight-room-row--classic {
  --room-accent: #52d3a9;
}

body.overnight-page .overnight-room-row--speed {
  --room-accent: #f05b6f;
}

body.overnight-page .overnight-room-row--party {
  --room-accent: #38bdf8;
}

body.overnight-page .overnight-room-row--rasklad {
  --room-accent: #a78bfa;
}

body.overnight-page .overnight-room-row__head {
  grid-column: 1 !important;
  align-self: start !important;
  padding-top: 2px !important;
}

body.overnight-page .overnight-room-row__head strong {
  gap: 10px !important;
  color: #f8fafc !important;
  font-size: 1.08rem !important;
}

body.overnight-page .overnight-room-row__head strong i {
  width: 26px !important;
  height: 26px !important;
  border: 1px solid color-mix(in srgb, var(--room-accent) 48%, rgba(255, 255, 255, .14)) !important;
  background: rgba(3, 7, 13, .58) !important;
  color: var(--room-accent) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--room-accent) 12%, transparent) !important;
}

body.overnight-page .overnight-room-row__tags {
  margin-top: 6px !important;
}

body.overnight-page .overnight-room-row__slots {
  grid-column: 2 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(90px, 118px)) !important;
  gap: 18px !important;
  align-items: start !important;
  justify-content: start !important;
}

body.overnight-page .overnight-room-slot {
  min-height: 112px !important;
  gap: 6px !important;
}

body.overnight-page .overnight-room-slot i {
  width: 74px !important;
  height: 74px !important;
  font-size: 1.55rem !important;
}

body.overnight-page .overnight-room-slot--empty {
  min-height: 112px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.overnight-page .overnight-room-slot--empty i {
  width: 68px !important;
  height: 68px !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(148, 163, 184, .74) !important;
  font-size: 3rem !important;
  box-shadow: none !important;
}

body.overnight-page .overnight-room-slot--empty span {
  color: rgba(203, 213, 225, .86) !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.overnight-page .overnight-room-action,
body.overnight-page .overnight-room-waiting {
  grid-column: 3 !important;
  align-self: start !important;
  justify-self: end !important;
  white-space: nowrap !important;
}

/* Overnight board: keep "Сервисный сбор" readable on vertical top/bottom cells. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--service-fee strong {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.overnight-room-game-page .overnight-route__title-fit--service-fee {
  transform: none !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--service-fee .overnight-route__title-stack {
  max-height: 100% !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--service-fee .overnight-route__title-stack span {
  display: block !important;
  white-space: nowrap !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked {
  display: inline-flex !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  transform: none !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack {
  display: inline-flex !important;
  flex-direction: row !important;
  gap: 3px !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  max-height: 100% !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack span,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack span {
  display: block !important;
  writing-mode: vertical-rl !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
}

body.overnight-room-game-page .overnight-route__title-fit--xxl {
  font-size: 1.28em !important;
}

body.overnight-room-game-page .overnight-route__title-fit--xl {
  font-size: 1.18em !important;
}

body.overnight-room-game-page .overnight-route__title-fit--lg,
body.overnight-room-game-page .overnight-route__title-fit--md {
  font-size: 1.1em !important;
}

/* Overnight board: keep chat composer pinned to the bottom as a normal input row. */
body.overnight-room-game-page .overnight-room-chat-slot {
  display: block !important;
  overflow: hidden !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  align-content: stretch !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__header,
body.overnight-room-game-page .overnight-room-chat-slot .room-turn-widget {
  display: none !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__messages {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  min-height: 0 !important;
  height: auto !important;
  overflow-y: auto !important;
  padding: 10px 12px !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__composer {
  grid-column: 1 !important;
  grid-row: 2 !important;
  align-self: end !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 42px !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 62px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border-top: 1px solid rgba(145, 160, 176, .18) !important;
  background: transparent !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__composer input[type="file"],
body.overnight-room-game-page .overnight-room-chat-slot .room-chat__media-btn {
  display: none !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__input {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  height: 42px !important;
  max-height: 92px !important;
  resize: none !important;
  align-self: center !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__send,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat__send--icon {
  grid-column: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: end !important;
  align-self: center !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 0 !important;
}

/* Overnight lobby: absolute last layer for room controls and centered waiting parties. */
body.overnight-page .overnight-room-row {
  position: relative !important;
  grid-template-columns: minmax(180px, 230px) minmax(280px, 1fr) minmax(150px, auto) !important;
  align-items: start !important;
  min-height: 172px !important;
  padding: 18px 26px 18px !important;
}

body.overnight-page .overnight-room-row__head {
  align-self: start !important;
}

body.overnight-page .overnight-room-row__slots {
  grid-column: 2 !important;
  align-self: start !important;
  padding-top: 18px !important;
  grid-template-columns: repeat(auto-fit, minmax(96px, 126px)) !important;
  gap: 22px !important;
  justify-content: start !important;
}

body.overnight-page .overnight-room-slot {
  position: relative !important;
  display: grid !important;
  justify-items: center !important;
  align-content: start !important;
  min-height: 120px !important;
  padding-top: 0 !important;
}

body.overnight-page .overnight-room-slot i {
  width: 78px !important;
  height: 78px !important;
}

body.overnight-page .overnight-room-slot span {
  max-width: 118px !important;
  text-align: center !important;
}

body.overnight-page .overnight-room-slot--empty span {
  max-width: 126px !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
}

body.overnight-page .overnight-room-row__tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body.overnight-page .overnight-room-tag--bonus {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: rgba(203, 213, 225, .72) !important;
}

body.overnight-page .overnight-room-tag--bonus i {
  display: grid !important;
  place-items: center !important;
  width: 18px !important;
  height: 18px !important;
  border: 1px solid rgba(148, 163, 184, .26) !important;
  border-radius: 5px !important;
  background: rgba(15, 23, 42, .72) !important;
  color: color-mix(in srgb, var(--room-accent) 70%, #f8fafc) !important;
  font-size: .68rem !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

body.overnight-page .overnight-room-actions {
  grid-column: 3 !important;
  align-self: start !important;
  justify-self: end !important;
  display: grid !important;
  gap: 10px !important;
  justify-items: end !important;
  min-width: 142px !important;
}

body.overnight-page .overnight-room-actions .overnight-room-action,
body.overnight-page .overnight-room-actions .overnight-room-waiting {
  grid-column: auto !important;
  justify-self: end !important;
}

body.overnight-page .overnight-room-action--ghost {
  border-color: rgba(248, 113, 113, .34) !important;
  background: rgba(127, 29, 29, .18) !important;
  color: #fecaca !important;
}

body.overnight-page .overnight-room-action--ghost:hover {
  border-color: rgba(248, 113, 113, .58) !important;
  background: rgba(127, 29, 29, .28) !important;
}

body.overnight-page .overnight-room-kick {
  position: absolute !important;
  top: 3px !important;
  right: 14px !important;
  z-index: 2 !important;
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 1px solid rgba(248, 113, 113, .54) !important;
  border-radius: 999px !important;
  background: rgba(127, 29, 29, .86) !important;
  color: #fff !important;
  font: 900 16px/1 Montserrat, sans-serif !important;
  opacity: 0 !important;
  transform: translateY(-3px) scale(.96) !important;
  transition: opacity .16s ease, transform .16s ease, background .16s ease !important;
  cursor: pointer !important;
}

body.overnight-page .overnight-room-slot--filled:hover .overnight-room-kick,
body.overnight-page .overnight-room-kick:focus-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

body.overnight-page .overnight-room-kick:hover {
  background: #ef4444 !important;
}

body.overnight-page .overnight-membership-dialog {
  position: relative !important;
  z-index: 1 !important;
  width: min(100%, 460px) !important;
  padding: 24px !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(82, 211, 169, .12), transparent 42%),
    linear-gradient(180deg, #151b27, #0d121b) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42) !important;
}

body.overnight-page .overnight-membership-dialog h2 {
  margin: 6px 0 8px !important;
  color: #f8fafc !important;
  font-size: 1.35rem !important;
}

body.overnight-page .overnight-membership-dialog p {
  margin: 0 !important;
  color: rgba(203, 213, 225, .78) !important;
  line-height: 1.45 !important;
}

body.overnight-page .overnight-membership-dialog__actions {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 10px !important;
  margin-top: 20px !important;
}

@media (max-width: 900px) {
  body.overnight-page .overnight-room-row {
    grid-template-columns: 1fr !important;
  }

  body.overnight-page .overnight-room-row__slots,
  body.overnight-page .overnight-room-actions {
    grid-column: 1 !important;
  }

  body.overnight-page .overnight-room-actions {
    justify-self: stretch !important;
    justify-items: stretch !important;
  }

  body.overnight-page .overnight-room-actions .overnight-room-action,
  body.overnight-page .overnight-room-actions .overnight-room-waiting {
    justify-self: stretch !important;
  }
}

/* Overnight board labels: last override for stacked vertical words and compact names. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked {
  display: inline-flex !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  transform: none !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  line-height: 1 !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack span,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack span {
  display: block !important;
  writing-mode: vertical-rl !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__title-fit--service-fee {
  transform: none !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--service-fee .overnight-route__title-stack {
  flex-direction: row !important;
  gap: 3px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__title-fit--xxl {
  font-size: 1.28em !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__title-fit--xl {
  font-size: 1.2em !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__title-fit--lg,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__title-fit--md {
  font-size: 1.12em !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left .overnight-route__title-fit--lg,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left .overnight-route__title-fit--md,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right .overnight-route__title-fit--lg,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right .overnight-route__title-fit--md {
  font-size: 1.14em !important;
}

body.overnight-room-game-page .overnight-room-player__body {
  overflow: visible !important;
}

body.overnight-room-game-page .overnight-room-player__money-wrap {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;
  overflow: visible !important;
  min-width: 0 !important;
  color: inherit !important;
  line-height: 1 !important;
}

body.overnight-room-game-page .overnight-room-player__money-bursts {
  position: absolute !important;
  left: 50%;
  top: 100%;
  display: block !important;
  overflow: visible !important;
  width: max-content !important;
  max-width: none !important;
  height: 0;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 18;
}

body.overnight-room-game-page .overnight-room-player__money-bursts i {
  position: absolute;
  left: 50%;
  top: calc(var(--burst-index, 0) * 15px);
  display: block;
  width: max-content;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(7, 11, 18, .72);
  font-size: clamp(.72rem, 1vw, .86rem);
  font-style: normal;
  font-weight: 1000;
  line-height: 1.05;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  transform: translateX(-50%);
}

body.overnight-room-game-page .overnight-room-player__money-bursts i.is-gain {
  color: #7bf5ac;
  animation: overnightMoneyGain 1.05s cubic-bezier(.16, 1, .3, 1) forwards;
}

body.overnight-room-game-page .overnight-room-player__money-bursts i.is-loss {
  color: #ff8d8d;
  animation: overnightMoneyLoss 1.05s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes overnightMoneyGain {
  0% {
    opacity: 0;
    transform: translate(-50%, 16px) scale(.94);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, 8px) scale(1);
  }
  72% {
    opacity: 1;
    transform: translate(-50%, -10px) scale(1.04);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -20px) scale(.98);
  }
}

@keyframes overnightMoneyLoss {
  0% {
    opacity: 0;
    transform: translate(-50%, -9px) scale(.96);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -2px) scale(1);
  }
  72% {
    opacity: 1;
    transform: translate(-50%, 15px) scale(1.02);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 28px) scale(.98);
  }
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__logo-wrap {
  position: absolute !important;
  inset: 0 !important;
  z-index: 12 !important;
  display: grid !important;
  place-items: center !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  line-height: 1 !important;
  -webkit-line-clamp: unset !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__logo-badge {
  display: grid !important;
  place-items: center !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: translate(var(--logo-x, 0), var(--logo-y, 0)) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__logo-badge--glass {
  padding: 4px 5px !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 5px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.09)),
    rgba(255,255,255,.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 6px 14px rgba(0,0,0,.18) !important;
  backdrop-filter: blur(8px);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__logo-badge--light {
  padding: 4px 5px !important;
  border-radius: 5px !important;
  background: rgba(255,255,255,.9) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__logo-badge--dark {
  padding: 4px 5px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 5px !important;
  background: rgba(3, 7, 18, .72) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__logo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__logo-badge,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__logo-badge {
  padding-inline: 3px !important;
}

/* Overnight chance cells: keep every side as one large question mark. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chance,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chest {
  align-content: center !important;
  justify-items: center !important;
  padding: 6px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chance .overnight-route__icon,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chest .overnight-route__icon {
  display: grid !important;
  place-items: center !important;
  min-height: 0 !important;
  color: #f8fafc !important;
  font-size: clamp(1.6rem, min(2.8vw, 4.2dvh), 2.45rem) !important;
  font-weight: 1000 !important;
  line-height: .85 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .42);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chance strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chest strong {
  display: none !important;
}

/* Overnight chance cells: keep every side as one large question mark. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chance,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chest {
  align-content: center !important;
  justify-items: center !important;
  padding: 6px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chance .overnight-route__icon,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chest .overnight-route__icon {
  display: grid !important;
  place-items: center !important;
  min-height: 0 !important;
  color: #f8fafc !important;
  font-size: clamp(1.6rem, min(2.8vw, 4.2dvh), 2.45rem) !important;
  font-weight: 1000 !important;
  line-height: .85 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .42);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chance strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chest strong {
  display: none !important;
}

/* Overnight board labels: final override for stacked vertical words and compact names. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked {
  display: inline-flex !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  transform: none !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  line-height: 1 !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack span,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack span {
  display: block !important;
  writing-mode: vertical-rl !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__title-fit--service-fee {
  transform: none !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--service-fee .overnight-route__title-stack {
  flex-direction: row !important;
  gap: 3px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__title-fit--xxl {
  font-size: 1.28em !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__title-fit--xl {
  font-size: 1.2em !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__title-fit--lg,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__title-fit--md {
  font-size: 1.12em !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left .overnight-route__title-fit--lg,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left .overnight-route__title-fit--md,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right .overnight-route__title-fit--lg,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right .overnight-route__title-fit--md {
  font-size: 1.14em !important;
}

/* Overnight board labels: must stay after every earlier board override. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked {
  display: inline-flex !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  transform: none !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack {
  display: inline-flex !important;
  flex-direction: row !important;
  gap: 3px !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack span,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack span {
  display: block !important;
  writing-mode: vertical-rl !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
}

body.overnight-room-game-page .overnight-route__title-fit--service-fee {
  transform: none !important;
}

body.overnight-room-game-page .overnight-route__title-fit--xxl {
  font-size: 1.28em !important;
}

body.overnight-room-game-page .overnight-route__title-fit--xl {
  font-size: 1.18em !important;
}

body.overnight-room-game-page .overnight-route__title-fit--lg,
body.overnight-room-game-page .overnight-route__title-fit--md {
  font-size: 1.1em !important;
  transform: none !important;
}

/* Overnight lobby: final room controls and centered waiting-party layout. */
body.overnight-page .overnight-room-row {
  position: relative !important;
  grid-template-columns: minmax(180px, 230px) minmax(280px, 1fr) minmax(150px, auto) !important;
  align-items: start !important;
  min-height: 172px !important;
  padding: 18px 26px 18px !important;
}

body.overnight-page .overnight-room-row__head {
  align-self: start !important;
}

body.overnight-page .overnight-room-row__slots {
  align-self: start !important;
  padding-top: 18px !important;
  grid-template-columns: repeat(auto-fit, minmax(96px, 126px)) !important;
  gap: 22px !important;
  justify-content: start !important;
}

body.overnight-page .overnight-room-slot {
  position: relative !important;
  display: grid !important;
  justify-items: center !important;
  align-content: start !important;
  min-height: 120px !important;
  padding-top: 0 !important;
}

body.overnight-page .overnight-room-slot i {
  width: 78px !important;
  height: 78px !important;
}

body.overnight-page .overnight-room-slot span {
  max-width: 118px !important;
  text-align: center !important;
}

body.overnight-page .overnight-room-slot--empty span {
  max-width: 126px !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
}

body.overnight-page .overnight-room-actions {
  grid-column: 3 !important;
  align-self: start !important;
  justify-self: end !important;
  display: grid !important;
  gap: 10px !important;
  justify-items: end !important;
  min-width: 142px !important;
}

body.overnight-page .overnight-room-actions .overnight-room-action,
body.overnight-page .overnight-room-actions .overnight-room-waiting {
  grid-column: auto !important;
  justify-self: end !important;
}

body.overnight-page .overnight-room-action--ghost {
  border-color: rgba(248, 113, 113, .34) !important;
  background: rgba(127, 29, 29, .18) !important;
  color: #fecaca !important;
}

body.overnight-page .overnight-room-action--ghost:hover {
  border-color: rgba(248, 113, 113, .58) !important;
  background: rgba(127, 29, 29, .28) !important;
}

body.overnight-page .overnight-room-kick {
  position: absolute !important;
  top: 3px !important;
  right: 14px !important;
  z-index: 2 !important;
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 1px solid rgba(248, 113, 113, .54) !important;
  border-radius: 999px !important;
  background: rgba(127, 29, 29, .86) !important;
  color: #fff !important;
  font: 900 16px/1 Montserrat, sans-serif !important;
  opacity: 0 !important;
  transform: translateY(-3px) scale(.96) !important;
  transition: opacity .16s ease, transform .16s ease, background .16s ease !important;
  cursor: pointer !important;
}

body.overnight-page .overnight-room-slot--filled:hover .overnight-room-kick,
body.overnight-page .overnight-room-kick:focus-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

body.overnight-page .overnight-room-kick:hover {
  background: #ef4444 !important;
}

body.overnight-page .overnight-membership-dialog {
  position: relative !important;
  z-index: 1 !important;
  width: min(100%, 460px) !important;
  padding: 24px !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(82, 211, 169, .12), transparent 42%),
    linear-gradient(180deg, #151b27, #0d121b) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42) !important;
}

body.overnight-page .overnight-membership-dialog h2 {
  margin: 6px 0 8px !important;
  color: #f8fafc !important;
  font-size: 1.35rem !important;
}

body.overnight-page .overnight-membership-dialog p {
  margin: 0 !important;
  color: rgba(203, 213, 225, .78) !important;
  line-height: 1.45 !important;
}

body.overnight-page .overnight-membership-dialog__actions {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 10px !important;
  margin-top: 20px !important;
}

@media (max-width: 900px) {
  body.overnight-page .overnight-room-row {
    grid-template-columns: 1fr !important;
  }

  body.overnight-page .overnight-room-row__slots,
  body.overnight-page .overnight-room-actions {
    grid-column: 1 !important;
  }

  body.overnight-page .overnight-room-actions {
    justify-self: stretch !important;
    justify-items: stretch !important;
  }

  body.overnight-page .overnight-room-actions .overnight-room-action,
  body.overnight-page .overnight-room-actions .overnight-room-waiting {
    justify-self: stretch !important;
  }
}

@media (max-width: 900px) {
  body.overnight-page .overnight-room-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.overnight-page .overnight-room-row__head,
  body.overnight-page .overnight-room-row__slots,
  body.overnight-page .overnight-room-action,
  body.overnight-page .overnight-room-waiting {
    grid-column: 1 !important;
  }

body.overnight-page .overnight-room-action,
body.overnight-page .overnight-room-waiting {
    justify-self: start !important;
  }
}

/* Overnight board: keep "Сервисный сбор" readable on vertical top/bottom cells. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--service-fee strong {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.overnight-room-game-page .overnight-route__title-fit--service-fee {
  transform: scale(.9) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--service-fee .overnight-route__title-stack {
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  max-height: 100% !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--service-fee .overnight-route__title-stack span {
  display: block !important;
  white-space: nowrap !important;
}

/* Overnight lobby room separation: final layer after legacy waiting-list rules. */
body.overnight-page .overnight-games__list {
  display: grid !important;
  gap: 14px !important;
  min-height: 132px !important;
  padding: 14px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, .006)),
    rgba(3, 7, 13, .28) !important;
}

body.overnight-page .overnight-room-row {
  --room-accent: #52d3a9;
  display: grid !important;
  grid-template-columns: minmax(180px, 238px) minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: center !important;
  min-height: 150px !important;
  padding: 18px 24px 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--room-accent) 14%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(20, 29, 45, .88), rgba(10, 15, 25, .9)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 14px 34px rgba(0, 0, 0, .18) !important;
}

body.overnight-page .overnight-room-row + .overnight-room-row {
  border-top: 1px solid rgba(148, 163, 184, .16) !important;
}

body.overnight-page .overnight-room-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--room-accent), color-mix(in srgb, var(--room-accent) 52%, #050914));
  opacity: .9;
}

body.overnight-page .overnight-room-row--classic {
  --room-accent: #52d3a9;
}

body.overnight-page .overnight-room-row--speed {
  --room-accent: #f05b6f;
}

body.overnight-page .overnight-room-row--party {
  --room-accent: #38bdf8;
}

body.overnight-page .overnight-room-row--rasklad {
  --room-accent: #a78bfa;
}

body.overnight-page .overnight-room-row__head {
  grid-column: 1 !important;
  align-self: start !important;
  padding-top: 2px !important;
}

body.overnight-page .overnight-room-row__head strong {
  gap: 10px !important;
  color: #f8fafc !important;
  font-size: 1.08rem !important;
}

body.overnight-page .overnight-room-row__head strong i {
  width: 26px !important;
  height: 26px !important;
  border: 1px solid color-mix(in srgb, var(--room-accent) 48%, rgba(255, 255, 255, .14)) !important;
  background: rgba(3, 7, 13, .58) !important;
  color: var(--room-accent) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--room-accent) 12%, transparent) !important;
}

body.overnight-page .overnight-room-row__tags {
  margin-top: 6px !important;
}

body.overnight-page .overnight-room-row__slots {
  grid-column: 2 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(90px, 118px)) !important;
  gap: 18px !important;
  align-items: start !important;
  justify-content: start !important;
}

body.overnight-page .overnight-room-slot {
  min-height: 112px !important;
  gap: 6px !important;
}

body.overnight-page .overnight-room-slot i {
  width: 74px !important;
  height: 74px !important;
  font-size: 1.55rem !important;
}

body.overnight-page .overnight-room-slot--empty {
  min-height: 112px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.overnight-page .overnight-room-slot--empty i {
  width: 68px !important;
  height: 68px !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(148, 163, 184, .74) !important;
  font-size: 3rem !important;
  box-shadow: none !important;
}

body.overnight-page .overnight-room-slot--empty span {
  color: rgba(203, 213, 225, .86) !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.overnight-page .overnight-room-action,
body.overnight-page .overnight-room-waiting {
  grid-column: 3 !important;
  align-self: start !important;
  justify-self: end !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  body.overnight-page .overnight-room-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.overnight-page .overnight-room-row__head,
  body.overnight-page .overnight-room-row__slots,
  body.overnight-page .overnight-room-action,
  body.overnight-page .overnight-room-waiting {
    grid-column: 1 !important;
  }

  body.overnight-page .overnight-room-action,
  body.overnight-page .overnight-room-waiting {
    justify-self: start !important;
  }
}

/* Overnight board: keep "Сервисный сбор" readable on vertical top/bottom cells. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--service-fee strong {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.overnight-room-game-page .overnight-route__title-fit--service-fee {
  transform: scale(.9) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--service-fee .overnight-route__title-stack {
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  max-height: 100% !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--service-fee .overnight-route__title-stack span {
  display: block !important;
  white-space: nowrap !important;
}

/* Overnight lobby list layout: compact rows inspired by Monopoly One, in ne-spim theme. */
body.overnight-page .overnight-games {
  border-radius: 22px !important;
}

body.overnight-page .overnight-room-row {
  display: grid !important;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  min-height: 154px !important;
  padding: 18px 24px 20px !important;
  border-bottom: 1px solid rgba(148, 163, 184, .14) !important;
}

body.overnight-page .overnight-room-row__head {
  display: grid !important;
  align-content: start;
  gap: 8px;
}

body.overnight-page .overnight-room-row__head > div {
  min-width: 0;
}

body.overnight-page .overnight-room-row__head strong {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: #f8fafc !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
  line-height: 1.1;
}

body.overnight-page .overnight-room-row__head strong i {
  display: grid !important;
  place-items: center;
  width: 28px !important;
  height: 28px !important;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: #050910 !important;
  color: #f8fafc !important;
  font-size: .9rem !important;
  font-style: normal;
  font-weight: 900;
  box-shadow: inset 0 -8px 18px rgba(255, 255, 255, .04);
}

body.overnight-page .overnight-room-row__tags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 0 38px !important;
}

body.overnight-page .overnight-room-tag {
  min-height: 22px !important;
  padding: 0 8px !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .04) !important;
  color: rgba(203, 213, 225, .78) !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
}

body.overnight-page .overnight-room-row__slots {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(104px, 126px)) !important;
  gap: 18px !important;
  align-items: start;
  justify-content: start;
  grid-column: 2;
}

body.overnight-page .overnight-room-slot {
  min-height: 108px !important;
  display: grid !important;
  align-content: start;
  justify-items: center;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(203, 213, 225, .82) !important;
  text-align: center;
}

body.overnight-page .overnight-room-slot i {
  width: 72px !important;
  height: 72px !important;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 24%, rgba(255, 255, 255, .12), transparent 36%),
    linear-gradient(135deg, #1f2937, #4b5563) !important;
  color: #fff !important;
  font-size: 1.42rem !important;
  font-weight: 900 !important;
}

body.overnight-page .overnight-room-slot i::after {
  right: 2px !important;
  bottom: 6px !important;
  width: 13px !important;
  height: 13px !important;
  border-color: #111827 !important;
  background: #87c957 !important;
}

body.overnight-page .overnight-room-slot span {
  max-width: 100%;
  color: #f8fafc !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
  line-height: 1.1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.overnight-page .overnight-room-slot small {
  color: rgba(148, 163, 184, .82) !important;
  font-size: .72rem !important;
}

body.overnight-page .overnight-room-slot--empty {
  min-height: 108px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.overnight-page .overnight-room-slot--empty i {
  width: 72px !important;
  height: 72px !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(148, 163, 184, .78) !important;
  font-size: 3.1rem !important;
  font-weight: 200 !important;
  box-shadow: none !important;
}

body.overnight-page .overnight-room-slot--empty span {
  color: rgba(148, 163, 184, .82) !important;
  font-weight: 600 !important;
  text-decoration: none;
}

body.overnight-page .overnight-room-waiting,
body.overnight-page .overnight-room-action {
  grid-column: 3;
  align-self: start;
  justify-self: end;
}

body.overnight-page .overnight-room-waiting {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: rgba(203, 213, 225, .86);
  font-size: .78rem;
  font-weight: 900;
}

@media (max-width: 900px) {
  body.overnight-page .overnight-room-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body.overnight-page .overnight-room-row__slots,
  body.overnight-page .overnight-room-waiting,
  body.overnight-page .overnight-room-action {
    grid-column: 1;
  }

  body.overnight-page .overnight-room-waiting,
  body.overnight-page .overnight-room-action {
    justify-self: start;
  }
}

/* Overnight lobby final theme: keep the waiting page in the site's dark UI. */
body.overnight-page .overnight-shell {
  align-content: start;
  gap: 20px;
  width: min(100%, 1468px);
}

body.overnight-page .overnight-games {
  width: 100% !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(82, 211, 169, .09), transparent 36%),
    linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(8, 13, 22, .96)) !important;
  color: var(--text) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34) !important;
}

body.overnight-page .overnight-games__head {
  min-height: 76px !important;
  padding: 16px 24px !important;
  border-bottom: 1px solid rgba(148, 163, 184, .14) !important;
  background:
    radial-gradient(circle at 12% -20%, rgba(82, 211, 169, .14), transparent 42%),
    rgba(255, 255, 255, .025) !important;
}

body.overnight-page .overnight-games__head h1 {
  color: #f8fafc !important;
  font-size: clamp(1.28rem, 1.7vw, 1.62rem) !important;
  font-weight: 900 !important;
}

body.overnight-page .overnight-games__head p {
  display: block !important;
  margin: 4px 0 0 !important;
  color: rgba(203, 213, 225, .72) !important;
  font-size: .9rem !important;
}

body.overnight-page .overnight-games__list {
  min-height: 132px;
  background: transparent !important;
}

body.overnight-page .overnight-empty-rooms {
  min-height: 132px !important;
  padding: 30px 28px !important;
  border-top: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .018)),
    rgba(7, 11, 18, .38) !important;
  color: rgba(203, 213, 225, .72) !important;
}

body.overnight-page .overnight-empty-rooms strong {
  color: #f8fafc !important;
  font-size: 1.02rem !important;
}

body.overnight-page .overnight-create-main-btn {
  min-height: 42px !important;
  padding: 0 20px !important;
  border: 1px solid rgba(82, 211, 169, .38) !important;
  border-radius: 14px !important;
  background: rgba(82, 211, 169, .14) !important;
  color: #eafff4 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

body.overnight-page .overnight-create-main-btn:hover {
  border-color: rgba(82, 211, 169, .58) !important;
  background: rgba(82, 211, 169, .2) !important;
}

body.overnight-page .overnight-room-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .024)),
    rgba(11, 17, 28, .62) !important;
  color: var(--text) !important;
}

body.overnight-room-game-page .overnight-choice-modal--rent .overnight-choice-modal__copy h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.overnight-room-game-page .overnight-choice-modal--rent .overnight-choice-modal__copy h2::before {
  content: "грн.";
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(226, 232, 240, .14);
  color: rgba(248, 250, 252, .9);
  font-size: .95rem;
  font-weight: 900;
}

body.overnight-room-game-page .overnight-choice-modal--rent .overnight-choice-modal__actions {
  grid-template-columns: minmax(0, 1fr);
}

body.overnight-room-game-page .overnight-choice-modal--rent .overnight-choice-modal__button {
  min-height: 54px;
  text-transform: uppercase;
}

body.overnight-page .overnight-shell {
  width: 100%;
  max-width: min(1280px, calc(100vw - 36px));
  margin: 0 auto;
  padding-inline: 0;
}

body.overnight-page .overnight-games {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(10, 16, 26, .86);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}

body.overnight-page .overnight-games__head {
  min-height: 74px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 0%, rgba(82, 211, 169, .16), transparent 38%),
    rgba(14, 20, 32, .92);
}

body.overnight-page .overnight-games__head h1 {
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 900;
}

body.overnight-page .overnight-games__list {
  background: transparent;
}

body.overnight-page .overnight-empty {
  padding: 34px 24px;
  color: var(--muted);
}

body.overnight-page .overnight-empty-rooms {
  display: grid;
  gap: 8px;
  min-height: 132px;
  align-content: center;
  padding: 30px 28px;
  color: var(--muted);
}

body.overnight-page .overnight-empty-rooms strong {
  color: var(--text);
  font-size: 1rem;
}

body.overnight-page .overnight-room-row {
  position: relative;
  min-height: 220px;
  padding: 24px 28px;
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .035);
}

body.overnight-page .overnight-room-row + .overnight-room-row {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

body.overnight-page .overnight-room-row__head strong {
  color: var(--text);
  font-size: 1.2rem;
}

body.overnight-page .overnight-room-row__tags {
  margin-top: 8px;
  color: var(--muted);
}

body.overnight-page .overnight-room-row__tags span:first-child {
  display: none;
}

body.overnight-page .overnight-room-row__slots {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 18px;
  align-items: start;
}

body.overnight-page .overnight-room-slot {
  min-height: 132px;
  gap: 8px;
  color: var(--text);
}

body.overnight-page .overnight-room-slot i {
  width: 86px;
  height: 86px;
  font-size: 1.8rem;
  box-shadow: inset 0 -18px 36px rgba(0, 0, 0, .18);
}

body.overnight-page .overnight-room-slot span {
  color: var(--text);
  font-size: .92rem;
  font-weight: 900;
  text-align: center;
}

body.overnight-page .overnight-room-slot small {
  color: var(--muted);
  font-size: .76rem;
}

body.overnight-page .overnight-room-slot--empty {
  border: 1px dashed rgba(170, 184, 204, .26);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

body.overnight-page .overnight-room-slot--empty i {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 3rem;
  box-shadow: none;
}

body.overnight-page .overnight-room-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(82, 211, 169, .5);
  border-radius: 12px;
  background: rgba(28, 92, 75, .52);
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

body.overnight-page .overnight-room-action--primary {
  background: linear-gradient(180deg, #27c58c, #169d72);
  color: #04100d;
}

body.overnight-page .overnight-room-waiting {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(170, 184, 204, .18);
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

body.overnight-page .overnight-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

body.overnight-page .overnight-modal.hidden {
  display: none;
}

body.overnight-page .overnight-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 14, .78);
  backdrop-filter: blur(8px);
}

body.overnight-page .overnight-create-dialog,
body.overnight-page .overnight-invite-dialog {
  width: min(100%, 680px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(82, 211, 169, .12), transparent 36%),
    #101722;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .46);
}

body.overnight-page .overnight-invite-dialog {
  padding: 22px;
}

body.overnight-page .overnight-invite-grid {
  grid-template-columns: minmax(170px, .75fr) minmax(260px, 1.25fr);
}

body.overnight-page .overnight-copy-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  grid-template-rows: auto auto;
  gap: 5px 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(170, 184, 204, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

body.overnight-page .overnight-copy-tile:hover {
  border-color: rgba(82, 211, 169, .55);
  background: rgba(82, 211, 169, .09);
}

body.overnight-page .overnight-copy-tile span,
body.overnight-page .overnight-copy-tile strong {
  grid-column: 1;
  min-width: 0;
}

body.overnight-page .overnight-copy-tile strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.overnight-page .overnight-copy-tile i {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(82, 211, 169, .12);
  color: #6ff0bf;
}

body.overnight-page .overnight-copy-tile svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

body.overnight-page .overnight-player-stepper--wide > div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  body.overnight-page .overnight-shell {
    max-width: calc(100vw - 16px);
  }

  body.overnight-page .overnight-room-row__slots,
  body.overnight-page .overnight-invite-grid {
    grid-template-columns: 1fr;
  }
}

/* Final side-label fit: side cells need more text room than icon room. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left.is-side-title-words .overnight-route__icon,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right.is-side-title-words .overnight-route__icon,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left.is-side-title-long .overnight-route__icon,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right.is-side-title-long .overnight-route__icon {
  display: none !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right strong {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  padding: 2px !important;
  overflow: visible !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  font-size: clamp(.76rem, min(1.02vw, 1.48dvh), 1.02rem) !important;
  line-height: .98 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left.is-side-title-words strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right.is-side-title-words strong {
  font-size: clamp(.68rem, min(.88vw, 1.26dvh), .88rem) !important;
  line-height: .94 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left.is-side-title-long strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right.is-side-title-long strong {
  font-size: clamp(.63rem, min(.78vw, 1.12dvh), .8rem) !important;
  line-height: .92 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left .overnight-route__title-stack,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right .overnight-route__title-stack {
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  max-width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded {
  grid-template-rows: minmax(0, 1fr) auto auto !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__header {
  display: none !important;
}

body.overnight-room-game-page .overnight-place-info {
  width: min(304px, calc(100% - 14px)) !important;
  max-height: min(390px, calc(100% - 14px)) !important;
  font-size: .84rem !important;
  line-height: 1.14 !important;
  overflow: auto !important;
}

body.overnight-room-game-page .overnight-place-info__head {
  padding: 9px 14px 8px !important;
  gap: 0 !important;
  background:
    radial-gradient(circle at 18% 0, color-mix(in srgb, var(--cell-color, #66d4a3) 25%, transparent), transparent 42%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--cell-color, #66d4a3) 16%, #172431) 0%,
      color-mix(in srgb, var(--cell-color, #66d4a3) 9%, #101722) 100%
    ) !important;
  color: #f8fafc !important;
  border-bottom: 1px solid color-mix(in srgb, var(--cell-color, #66d4a3) 48%, rgba(148, 163, 184, .22));
}

body.overnight-room-game-page .overnight-place-info__head strong {
  font-size: 1.12rem !important;
  line-height: 1 !important;
  color: #f8fafc !important;
}

body.overnight-room-game-page .overnight-place-info__head span {
  font-size: .7rem !important;
  line-height: 1.05 !important;
  color: rgba(248, 250, 252, .86) !important;
}

body.overnight-room-game-page .overnight-place-info__close {
  top: 5px !important;
  right: 5px !important;
  width: 23px !important;
  height: 23px !important;
  background: rgba(15, 23, 42, .72) !important;
  color: #f8fafc !important;
}

body.overnight-room-game-page .overnight-place-info__owner,
body.overnight-room-game-page .overnight-place-info__note {
  padding: 9px 14px 0 !important;
  color: #334155 !important;
  font-size: .76rem !important;
  line-height: 1.22 !important;
}

body.overnight-room-game-page .overnight-place-info__note {
  padding-bottom: 14px !important;
}

body.overnight-room-game-page .overnight-place-info__actions,
body.overnight-room-game-page .overnight-place-info__build {
  gap: 5px !important;
  padding: 8px 14px 0 !important;
}

body.overnight-room-game-page .overnight-place-info__action-btn,
body.overnight-room-game-page .overnight-place-info__build-btn {
  min-height: 30px !important;
  padding: 3px 7px !important;
  font-size: .8rem !important;
  line-height: 1.05 !important;
}

body.overnight-room-game-page .overnight-place-info__actions span,
body.overnight-room-game-page .overnight-place-info__build span {
  font-size: .7rem !important;
  line-height: 1.12 !important;
}

body.overnight-room-game-page .overnight-place-info__rent,
body.overnight-room-game-page .overnight-place-info__prices {
  grid-template-columns: minmax(0, 1fr) minmax(82px, max-content) !important;
  align-items: baseline !important;
  gap: 0 !important;
  padding: 9px 14px 0 !important;
  font-size: .82rem !important;
}

body.overnight-room-game-page .overnight-place-info__prices {
  padding-top: 2px !important;
}

body.overnight-room-game-page .overnight-place-info__rent span,
body.overnight-room-game-page .overnight-place-info__prices span {
  padding: 3px 7px 3px 0 !important;
}

body.overnight-room-game-page .overnight-place-info__rent b,
body.overnight-room-game-page .overnight-place-info__prices b {
  min-width: 82px !important;
  padding: 3px 11px 3px 8px !important;
  font-size: .88rem !important;
  line-height: 1.18 !important;
}

body.overnight-room-game-page .overnight-place-info__prices {
  padding-bottom: 10px !important;
}

body.overnight-room-game-page .overnight-route__title-fit {
  display: inline-block !important;
  transform-origin: center !important;
  max-width: 100% !important;
}

body.overnight-room-game-page .overnight-route__title-fit--xxl {
  transform: scale(1.24) !important;
}

body.overnight-room-game-page .overnight-route__title-fit--xl {
  transform: scale(1.16) !important;
}

body.overnight-room-game-page .overnight-route__title-fit--lg {
  transform: scale(1.08) !important;
}

body.overnight-room-game-page .overnight-route__title-fit--md {
  transform: scale(1) !important;
}

body.overnight-room-game-page .overnight-route__title-fit--sm {
  transform: scale(.92) !important;
}

body.overnight-room-game-page .overnight-route__title-fit--xs {
  transform: scale(.8) !important;
}

body.overnight-room-game-page .overnight-route__title-fit--edge.overnight-route__title-fit--xxl {
  transform: scale(1.18) !important;
}

body.overnight-room-game-page .overnight-route__title-fit--edge.overnight-route__title-fit--xl {
  transform: scale(1.12) !important;
}

body.overnight-room-game-page .overnight-route__title-fit--edge.overnight-route__title-fit--xs {
  transform: scale(.76) !important;
}

body.overnight-room-game-page .overnight-route__title-fit--stacked {
  transform: scale(.94) !important;
}

body.overnight-room-game-page .overnight-route__title-stack {
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: .95 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-stack,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-stack {
  display: inline-grid !important;
  grid-auto-flow: column !important;
  gap: 3px !important;
  line-height: 1 !important;
}

body.overnight-room-game-page .overnight-route__title-stack span {
  display: block !important;
}

body.overnight-room-game-page .overnight-room-dice-stage {
  top: 49% !important;
  z-index: 64 !important;
}

/* Final monolithic board skin: one connected Monopoly-style surface. */
body.overnight-room-game-page .overnight-room-map--board {
  --board-gap: 0px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #111820 !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-route--board {
  gap: 0 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell {
  border: 1px solid rgba(145, 160, 176, .28) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell:hover,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-selected {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .24) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell em {
  border-radius: 0 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--corner {
  border-radius: 0 !important;
}

body.overnight-room-game-page .overnight-room-board-center {
  position: relative !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(145, 160, 176, .24) !important;
  border-radius: 0 !important;
  background: #070c12 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.overnight-room-game-page .overnight-room-board-center .overnight-room-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px 12px !important;
  min-height: 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(145, 160, 176, .18) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-card__top {
  grid-column: 1 / -1 !important;
}

body.overnight-room-game-page .overnight-room-place {
  grid-column: 1 !important;
  min-height: 58px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-place__icon {
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .07) !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-chat-slot,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__header {
  min-height: 34px !important;
  padding: 8px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(145, 160, 176, .18) !important;
  background: transparent !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__messages {
  padding: 10px 12px !important;
  background: transparent !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__composer {
  padding: 10px 12px !important;
  border-top: 1px solid rgba(145, 160, 176, .18) !important;
  background: transparent !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__input,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat__send--icon {
  border-radius: 3px !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message__bubble {
  border-radius: 3px !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-choice-modal {
  border-radius: 4px !important;
}

/* Final choice modal: Monopoly-one style decisions over the board center. */
body.overnight-room-game-page .overnight-room-board-center {
  position: relative !important;
  overflow: visible !important;
}

body.overnight-room-game-page .overnight-room-choices {
  position: absolute !important;
  top: clamp(12px, 2.4dvh, 24px) !important;
  left: 50% !important;
  z-index: 70 !important;
  display: block !important;
  width: min(560px, calc(100% - 28px)) !important;
  transform: translateX(-50%) !important;
  pointer-events: none;
}

body.overnight-room-game-page .overnight-room-choices:empty {
  display: none !important;
}

body.overnight-room-game-page .overnight-choice-modal {
  pointer-events: auto;
  display: grid;
  gap: 14px;
  padding: clamp(14px, 2dvh, 20px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)),
    rgba(13, 18, 27, .96);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .42),
    inset 0 0 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(14px);
}

body.overnight-room-game-page .overnight-choice-modal__copy {
  display: grid;
  gap: 6px;
}

body.overnight-room-game-page .overnight-choice-modal__copy h2,
body.overnight-room-game-page .overnight-choice-modal__copy p {
  margin: 0;
}

body.overnight-room-game-page .overnight-choice-modal__copy h2 {
  color: #f8fafc;
  font-size: clamp(1.18rem, 1.35vw, 1.42rem);
  line-height: 1.05;
  font-weight: 900;
}

body.overnight-room-game-page .overnight-choice-modal__copy p {
  color: rgba(226, 232, 240, .78);
  font-size: clamp(.9rem, .96vw, 1rem);
  line-height: 1.35;
}

body.overnight-room-game-page .overnight-choice-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.overnight-room-game-page .overnight-choice-modal__actions.is-single {
  grid-template-columns: minmax(0, 1fr);
}

body.overnight-room-game-page .overnight-choice-modal__button {
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #e5e7eb;
  font-size: clamp(.9rem, .95vw, 1rem);
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

body.overnight-room-game-page .overnight-choice-modal__button.is-primary {
  border-color: rgba(102, 212, 163, .62);
  background: linear-gradient(180deg, rgba(52, 211, 153, .95), rgba(20, 184, 126, .92));
  color: #042014;
}

body.overnight-room-game-page .overnight-choice-modal__button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
}

body.overnight-room-game-page .overnight-choice-modal__button.is-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(74, 222, 128, .98), rgba(20, 184, 126, .96));
}

body.overnight-room-game-page .overnight-choice-modal__button:disabled {
  cursor: not-allowed;
  opacity: .46;
}

body.overnight-room-game-page .overnight-choice-modal--rent .overnight-choice-modal__copy h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.overnight-room-game-page .overnight-choice-modal--rent .overnight-choice-modal__copy h2::before {
  content: "грн.";
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(226, 232, 240, .14);
  color: rgba(248, 250, 252, .9);
  font-size: .95rem;
  font-weight: 900;
}

body.overnight-room-game-page .overnight-choice-modal--rent .overnight-choice-modal__actions {
  grid-template-columns: minmax(0, 1fr);
}

body.overnight-room-game-page .overnight-choice-modal--rent .overnight-choice-modal__button {
  min-height: 54px;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  body.overnight-room-game-page .overnight-room-choices {
    top: 8px !important;
    width: min(420px, calc(100% - 16px)) !important;
  }

  body.overnight-room-game-page .overnight-choice-modal__actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Final ownership colors: free businesses are neutral; bought businesses use player color. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue:not(.is-owned),
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport:not(.is-owned),
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility:not(.is-owned) {
  border-color: rgba(255, 255, 255, .2) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025)),
    rgba(18, 22, 33, .98) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue:not(.is-owned) .overnight-route__color,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport:not(.is-owned) .overnight-route__color,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility:not(.is-owned) .overnight-route__color {
  opacity: 0 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue.is-owned,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport.is-owned,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility.is-owned {
  border-color: color-mix(in srgb, var(--owner-color, #38bdf8) 82%, #ffffff 18%) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(0, 0, 0, .08)),
    color-mix(in srgb, var(--owner-color, #38bdf8) 76%, #101827 24%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    inset 0 -18px 38px rgba(0, 0, 0, .16) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue.is-owned .overnight-route__color,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport.is-owned .overnight-route__color,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility.is-owned .overnight-route__color {
  opacity: 0 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-owned strong {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-owned .overnight-route__index {
  color: rgba(255, 255, 255, .82) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-owned em {
  background: var(--cell-color, rgba(71, 85, 105, .95)) !important;
}

/* Monopoly-one ownership model: free businesses stay neutral; owner color fills bought cells. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue:not(.is-owned),
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport:not(.is-owned),
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility:not(.is-owned) {
  border-color: rgba(255, 255, 255, .2) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025)),
    rgba(18, 22, 33, .98) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue:not(.is-owned) .overnight-route__color,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport:not(.is-owned) .overnight-route__color,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility:not(.is-owned) .overnight-route__color {
  opacity: 0 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue.is-owned,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport.is-owned,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility.is-owned {
  border-color: color-mix(in srgb, var(--owner-color, #38bdf8) 82%, #ffffff 18%) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(0, 0, 0, .08)),
    color-mix(in srgb, var(--owner-color, #38bdf8) 76%, #101827 24%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    inset 0 -18px 38px rgba(0, 0, 0, .16) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue.is-owned .overnight-route__color,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport.is-owned .overnight-route__color,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility.is-owned .overnight-route__color {
  opacity: 0 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-owned strong {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-owned .overnight-route__index {
  color: rgba(255, 255, 255, .82) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-owned em {
  background: var(--cell-color, rgba(71, 85, 105, .95)) !important;
}

/* Fill more of the available screen, close to monopoly-one proportions. */
body.overnight-room-game-page .overnight-room-panel {
  width: calc(100vw - 72px) !important;
  max-height: calc(100dvh - 4px) !important;
}

body.overnight-room-game-page .overnight-room-visual {
  grid-template-columns: minmax(220px, 240px) auto !important;
  gap: 18px !important;
  width: 100% !important;
  justify-content: center !important;
  align-items: center !important;
}

body.overnight-room-game-page .overnight-room-map--board {
  --edge-size: clamp(56px, min(4.9vw, 7.35dvh), 74px);
  --corner-size: calc(var(--edge-size) * 1.7);
}

body.overnight-room-game-page .overnight-room-player__body,
body.overnight-room-game-page .overnight-room-player__head {
  width: 100% !important;
  min-width: 0 !important;
  justify-items: center !important;
  text-align: center !important;
}

body.overnight-room-game-page .overnight-room-player__head {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-content: center !important;
}

body.overnight-room-game-page .overnight-room-player__head strong {
  display: block !important;
  width: 100% !important;
  max-width: calc(100% - 22px) !important;
  margin: 0 auto !important;
  text-align: center !important;
}

body.overnight-room-game-page .overnight-room-player__head em {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: auto !important;
  max-width: 56px !important;
  z-index: 8 !important;
}

body.overnight-room-game-page .overnight-room-player__menu {
  top: 8px !important;
  right: 8px !important;
  z-index: 12 !important;
}

@media (max-width: 1360px) {
  body.overnight-room-game-page .overnight-room-panel {
    width: calc(100vw - 64px) !important;
  }

  body.overnight-room-game-page .overnight-room-visual {
    grid-template-columns: minmax(200px, 220px) auto !important;
    gap: 14px !important;
  }

  body.overnight-room-game-page .overnight-room-map--board {
    --edge-size: clamp(54px, min(4.85vw, 7.15dvh), 70px);
  }
}

@media (max-width: 980px) {
  body.overnight-room-game-page .overnight-room-panel {
    width: calc(100vw - 8px) !important;
  }

  body.overnight-room-game-page .overnight-room-visual {
    grid-template-columns: minmax(116px, 142px) auto !important;
    gap: 8px !important;
  }

  body.overnight-room-game-page .overnight-room-map--board {
    --edge-size: clamp(38px, min(4.55vw, 6.35dvh), 50px);
  }
}

/* Overnight board hard fit: the chat is part of the board grid, and price tags live in an inner gutter. */
body.overnight-room-game-page .overnight-room-panel {
  width: calc(100vw - 84px);
  max-height: calc(100dvh - 8px);
}

body.overnight-room-game-page .overnight-room-visual {
  grid-template-columns: minmax(210px, 240px) auto;
  gap: 16px;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

body.overnight-room-game-page .overnight-room-map,
body.overnight-room-game-page .overnight-room-map--board {
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  overscroll-behavior: none;
}

body.overnight-room-game-page .overnight-room-map--board {
  --board-gap: 2px;
  --price-gutter: clamp(14px, 1.55dvh, 18px);
  --edge-size: clamp(50px, min(4.65vw, 6.55dvh), 66px);
  --corner-size: calc(var(--edge-size) * 1.7);
  box-sizing: border-box;
  width: calc((var(--corner-size) * 2) + (var(--edge-size) * var(--edge-count, 9)) + (var(--board-gap) * 10) + (var(--price-gutter) * 2) + 8px) !important;
  height: calc((var(--corner-size) * 2) + (var(--edge-size) * var(--edge-count, 9)) + (var(--board-gap) * 10) + (var(--price-gutter) * 2) + 8px) !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: var(--price-gutter) !important;
  border-radius: 4px;
  background: rgba(8, 12, 19, .92);
}

body.overnight-room-game-page .overnight-room-route--board {
  gap: var(--board-gap);
  overflow: visible;
  width: 100%;
  height: 100%;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell {
  min-width: 0;
  min-height: 0;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom {
  padding: 17px 3px;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell em {
  min-height: clamp(16px, 1.85dvh, 20px);
  font-size: clamp(.68rem, min(.78vw, 1.15dvh), .84rem);
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top em {
  transform: translateY(calc(-1 * (var(--price-gutter) - 2px)));
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom em {
  transform: translateY(calc(var(--price-gutter) - 2px));
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left em,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right em {
  width: clamp(16px, 1.85dvh, 20px);
  min-height: 100%;
  font-size: clamp(.62rem, min(.7vw, 1.05dvh), .78rem);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left em {
  transform: translateX(calc(-1 * (var(--price-gutter) - 2px))) rotate(180deg);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right em {
  transform: translateX(calc(var(--price-gutter) - 2px));
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left {
  padding-left: clamp(16px, 1.9dvh, 20px);
  padding-right: 3px;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right {
  padding-left: 3px;
  padding-right: clamp(16px, 1.9dvh, 20px);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom strong {
  width: calc(var(--corner-size) - 18px);
  font-size: clamp(.78rem, min(1.05vw, 1.55dvh), 1.02rem);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: clamp(.72rem, min(.95vw, 1.38dvh), .96rem);
  line-height: 1.04;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--corner strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chance strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chest strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--tax strong {
  font-size: clamp(.68rem, min(.9vw, 1.3dvh), .88rem);
  overflow-wrap: anywhere;
}

body.overnight-room-game-page .overnight-room-board-center {
  grid-column: 2 / -2;
  grid-row: 2 / -2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden !important;
  min-width: 0;
  min-height: 0;
}

body.overnight-room-game-page .overnight-room-chat-slot,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded {
  min-width: 0 !important;
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  overflow: hidden !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  transform: none !important;
  margin: 0 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded .room-chat__header,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded .room-turn-widget,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded .room-chat__composer,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded .room-chat__messages {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__messages {
  min-height: 0 !important;
  overflow-y: auto !important;
  font-size: .95rem;
}

@media (max-width: 1360px) {
  body.overnight-room-game-page .overnight-room-panel {
    width: calc(100vw - 72px);
  }

  body.overnight-room-game-page .overnight-room-visual {
    grid-template-columns: minmax(190px, 220px) auto;
    gap: 12px;
  }

  body.overnight-room-game-page .overnight-room-map--board {
    --edge-size: clamp(47px, min(4.55vw, 6.35dvh), 61px);
  }
}

@media (max-width: 980px) {
  body.overnight-room-game-page .overnight-room-panel {
    width: calc(100vw - 12px);
  }

  body.overnight-room-game-page .overnight-room-visual {
    grid-template-columns: minmax(116px, 142px) auto;
    gap: 8px;
  }

  body.overnight-room-game-page .overnight-room-map--board {
    --price-gutter: 12px;
    --edge-size: clamp(34px, min(4.05vw, 5.9dvh), 47px);
  }
}

body.overnight-room-game-page .room-game-page {
  padding: 0;
}

body.overnight-room-game-page .room-game-stage {
  min-height: calc(100dvh - 16px);
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

body.overnight-room-game-page .overnight-room-panel {
  width: min(100%, calc(100vw - 100px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.overnight-room-game-page .overnight-room-visual {
  grid-template-columns: minmax(162px, 220px) auto;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
}

body.overnight-room-game-page .overnight-room-scoreboard {
  width: 100%;
  justify-self: stretch;
  align-content: start;
  gap: 8px;
}

body.overnight-room-game-page .overnight-room-player {
  min-height: clamp(132px, 18dvh, 174px);
  width: 100%;
  padding: 12px 10px;
}

body.overnight-room-game-page .overnight-room-player__avatar {
  width: clamp(44px, 5dvh, 58px);
  height: clamp(44px, 5dvh, 58px);
}

body.overnight-room-game-page .overnight-room-player strong {
  font-size: clamp(.92rem, 1.3vw, 1.1rem);
}

body.overnight-room-game-page .overnight-room-player__money {
  font-size: clamp(1.24rem, 2.2vw, 1.8rem);
}

body.overnight-room-game-page .overnight-room-player span,
body.overnight-room-game-page .overnight-room-player small {
  font-size: .72rem;
}

body.overnight-room-game-page .overnight-room-map--board {
  --edge-size: clamp(50px, min(4.85vw, 7.45dvh), 70px);
  --corner-size: calc(var(--edge-size) * 1.72);
  width: calc((var(--corner-size) * 2) + (var(--edge-size) * var(--edge-count, 9)) + 22px);
  max-width: calc(100vw - 360px);
  max-height: calc(100dvh - 24px);
  padding: 4px;
  border-radius: 0;
  overflow: visible;
}

body.overnight-room-game-page .overnight-room-route--board {
  gap: 2px;
}

body.overnight-room-game-page .overnight-room-board-center {
  padding: 6px;
  gap: 6px;
}

body.overnight-room-game-page .overnight-room-card {
  padding: 9px;
  border-radius: 4px;
}

body.overnight-room-game-page .overnight-room-card__top strong {
  font-size: .96rem;
}

body.overnight-room-game-page .overnight-room-dice {
  min-width: 136px;
  min-height: 52px;
}

body.overnight-room-game-page .overnight-room-place {
  min-height: 58px;
  padding: 8px;
}

body.overnight-room-game-page .overnight-room-place__icon {
  width: 42px;
  height: 42px;
}

body.overnight-room-game-page .overnight-room-place h3 {
  font-size: 1rem;
}

body.overnight-room-game-page .overnight-room-place p {
  font-size: .72rem;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat {
  border-radius: 4px;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__header {
  padding: 8px 10px;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__head-copy strong {
  font-size: .96rem;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__messages {
  padding: 8px;
  gap: 5px;
  min-height: 0;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__composer {
  padding: 8px;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__input {
  min-height: 38px;
  font-size: .9rem;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__send--icon {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
}

body.overnight-room-game-page .overnight-room-footer {
  position: fixed;
  left: calc(50% + 36px);
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 80;
}

@media (max-width: 1360px) {
  body.overnight-room-game-page .overnight-room-visual {
    grid-template-columns: minmax(144px, 178px) auto;
    gap: 10px;
  }

  body.overnight-room-game-page .overnight-room-map--board {
    --edge-size: clamp(45px, min(4.6vw, 7.05dvh), 62px);
    max-width: calc(100vw - 300px);
  }

  body.overnight-room-game-page .overnight-room-player {
    min-height: clamp(116px, 17dvh, 152px);
    padding: 10px 8px;
  }
}

@media (max-width: 980px) {
  body.site-shell-nav-enabled.overnight-room-game-page .page-shell {
    padding-left: 8px;
  }

  body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar {
    display: none;
  }

  body.site-shell-nav-enabled.overnight-room-game-page .app-shell,
  body.site-shell-nav-enabled.overnight-room-game-page .room-game-page,
  body.overnight-room-game-page .overnight-room-panel {
    width: calc(100vw - 16px);
  }

  body.overnight-room-game-page .overnight-room-visual {
    grid-template-columns: minmax(112px, 138px) auto;
    gap: 8px;
  }

  body.overnight-room-game-page .overnight-room-map--board {
    --edge-size: clamp(34px, min(4.2vw, 6.25dvh), 48px);
    max-width: calc(100vw - 170px);
  }
}

/* Final overnight board polish: no scrollbars, readable cells, profile menu */
body.overnight-room-game-page,
body.overnight-room-game-page .page-shell,
body.overnight-room-game-page .room-game-page,
body.overnight-room-game-page .room-game-stage,
body.overnight-room-game-page .overnight-room-panel {
  overflow: hidden !important;
}

body.overnight-room-game-page .overnight-room-panel {
  max-height: calc(100dvh - 16px);
}

body.overnight-room-game-page .overnight-room-footer {
  display: none !important;
}

body.overnight-room-game-page .overnight-room-map,
body.overnight-room-game-page .overnight-room-map--board {
  --board-gap: 2px;
  overflow: hidden !important;
  scrollbar-width: none;
}

body.overnight-room-game-page .overnight-room-map--board {
  overflow: visible !important;
  margin: 18px;
}

body.overnight-room-game-page .overnight-room-map::-webkit-scrollbar,
body.overnight-room-game-page .overnight-room-map--board::-webkit-scrollbar {
  display: none;
}

body.overnight-room-game-page .overnight-room-map--board {
  --edge-size: clamp(52px, min(4.85vw, 6.85dvh), 66px);
  --corner-size: calc(var(--edge-size) * 1.7);
  width: calc((var(--corner-size) * 2) + (var(--edge-size) * var(--edge-count, 9)) + (var(--board-gap) * 10) + 8px);
  height: calc((var(--corner-size) * 2) + (var(--edge-size) * var(--edge-count, 9)) + (var(--board-gap) * 10) + 8px);
  max-width: calc(100vw - 330px);
  max-height: calc(100dvh - 54px);
  padding: 4px;
}

body.overnight-room-game-page .overnight-room-route--board {
  gap: var(--board-gap);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell {
  border-radius: 3px;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom {
  padding: 16px 4px;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell em {
  min-height: 18px;
  font-size: clamp(.66rem, .84vw, .82rem);
  letter-spacing: 0;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top em {
  top: 0;
  bottom: auto;
  transform: translateY(-70%);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom em {
  top: auto;
  bottom: 0;
  transform: translateY(70%);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left em,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right em {
  width: 18px;
  min-height: 100%;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left em {
  transform: translateX(-70%) rotate(180deg);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right em {
  transform: translateX(70%);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left {
  padding-left: 20px;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right {
  padding-right: 20px;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom strong {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: calc(var(--corner-size) - 24px);
  max-width: none;
  color: #fff;
  font-size: clamp(.84rem, min(1.2vw, 1.75dvh), 1.1rem);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right strong {
  color: #fff;
  font-size: clamp(.78rem, min(1.05vw, 1.55dvh), 1.04rem);
  line-height: 1.02;
  text-align: center;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--corner strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chance strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chest strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--tax strong {
  position: static;
  width: auto;
  white-space: normal;
  transform: none;
}

body.overnight-room-game-page .overnight-route__index {
  font-size: .45rem;
}

body.overnight-room-game-page .overnight-route__tokens {
  right: 4px;
  bottom: 4px;
  gap: 4px;
  z-index: 8;
}

body.overnight-room-game-page .overnight-route__tokens i {
  width: clamp(22px, min(1.9vw, 2.7dvh), 28px);
  height: clamp(22px, min(1.9vw, 2.7dvh), 28px);
  border: 2px solid rgba(6,10,16,.78);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.48),
    0 5px 12px rgba(0,0,0,.42);
  color: #fff;
  font-size: clamp(.68rem, min(.9vw, 1.3dvh), .86rem);
  font-weight: 1000;
}

body.overnight-room-game-page .overnight-room-board-center {
  grid-column: 2 / -2;
  grid-row: 2 / -2;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 4px;
  gap: 4px;
  z-index: 1;
  overflow: hidden;
  background: rgba(7, 11, 18, .88);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 2px;
}

body.overnight-room-game-page .overnight-room-card {
  padding: 10px;
  min-height: 0;
  border-radius: 2px;
}

body.overnight-room-game-page .overnight-room-chat-slot {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat {
  position: relative;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border-radius: 2px;
  box-shadow: none;
  transform: none;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__messages {
  min-height: 0;
  overflow-y: auto;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__messages {
  padding: 10px;
  gap: 8px;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message__bubble {
  max-width: min(70%, 360px);
  padding: 8px 10px;
  gap: 4px;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message__author,
body.overnight-room-game-page .overnight-room-chat-slot .chat-message__time {
  font-size: .58rem;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message__text {
  font-size: .9rem;
  line-height: 1.32;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message__highlight {
  --chat-highlight-color: rgba(255, 255, 255, .92);
  display: inline;
  color: var(--chat-highlight-color);
  font-weight: 900;
  text-shadow: 0 0 12px color-mix(in srgb, var(--chat-highlight-color) 42%, transparent);
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message__highlight.is-place {
  padding: 0 .14em;
  border-radius: 3px;
  background: color-mix(in srgb, var(--chat-highlight-color) 18%, transparent);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message__system {
  max-width: min(82%, 460px);
  padding: 7px 12px;
  font-size: .76rem;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__input {
  font-size: .96rem;
}

body.overnight-room-game-page .overnight-room-player {
  position: relative;
  overflow: visible;
}

body.overnight-room-game-page .overnight-room-player.is-rescue-trade {
  cursor: pointer;
  border-color: rgba(134, 239, 172, .58) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(134, 239, 172, .18), transparent 42%),
    color-mix(in srgb, var(--player-color, #66d4a3) 12%, rgba(15, 23, 42, .84)) !important;
  box-shadow: 0 0 0 1px rgba(134, 239, 172, .18), 0 0 24px rgba(34, 197, 94, .14) !important;
}

body.overnight-room-game-page .overnight-room-player.is-rescue-trade::after {
  content: "можна договориться";
  position: absolute;
  left: 50%;
  bottom: -10px;
  z-index: 22;
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(20, 83, 45, .96);
  border: 1px solid rgba(134, 239, 172, .34);
  color: #bbf7d0;
  font-size: .55rem;
  font-weight: 1000;
  white-space: nowrap;
  pointer-events: none;
}

body.overnight-room-game-page .overnight-room-scoreboard {
  overflow: visible;
}

body.overnight-room-game-page .overnight-room-player__body,
body.overnight-room-game-page .overnight-room-player__head {
  justify-items: center;
  text-align: center;
}

body.overnight-room-game-page .overnight-room-player strong,
body.overnight-room-game-page .overnight-room-player span,
body.overnight-room-game-page .overnight-room-player small,
body.overnight-room-game-page .overnight-room-player__money {
  text-align: center;
}

body.overnight-room-game-page .overnight-room-player__menu {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
}

body.overnight-room-game-page .overnight-room-player__menu summary {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(6,10,16,.36);
  cursor: pointer;
  list-style: none;
}

body.overnight-room-game-page .overnight-room-player__menu summary::-webkit-details-marker {
  display: none;
}

body.overnight-room-game-page .overnight-room-player__menu summary::before {
  content: "⋮";
  color: #f8fafc;
  font-size: 1.05rem;
  line-height: 1;
}

body.overnight-room-game-page .overnight-room-player__menu-popover {
  position: absolute;
  top: 32px;
  right: 0;
  min-width: 150px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(10,14,21,.98);
  box-shadow: 0 14px 34px rgba(0,0,0,.34);
}

body.overnight-room-game-page .overnight-room-player__menu-popover button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(248,113,113,.28);
  border-radius: 6px;
  background: rgba(248,113,113,.12);
  color: #ffd0d0;
  font-size: .74rem;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 1360px) {
  body.overnight-room-game-page .overnight-room-map--board {
    --edge-size: clamp(50px, min(4.95vw, 7dvh), 64px);
    max-width: calc(100vw - 300px);
  }
}

/* Keep the expanded game sidebar identical to the regular site sidebar. */
body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar {
  width: 52px;
  overflow: visible;
}

body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar:hover,
body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar:focus-within {
  width: 250px;
}

body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar__nav,
body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar__more {
  gap: 4px;
  padding: 8px;
  border-radius: 22px;
}

body.site-shell-nav-enabled.overnight-room-game-page .site-shell-nav__item {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 44px;
  padding: 10px 11px;
  border-radius: 14px;
  overflow: hidden;
}

body.site-shell-nav-enabled.overnight-room-game-page .site-shell-nav__item svg {
  width: 23px;
  height: 23px;
}

body.site-shell-nav-enabled.overnight-room-game-page .site-shell-nav__item b {
  min-width: 30px;
  padding: 3px 6px;
  font-size: .62rem;
}

body.site-shell-nav-enabled.overnight-room-game-page .site-shell-nav__item--muted {
  min-height: 40px;
  font-size: .82rem;
}

body.site-shell-nav-enabled.overnight-room-game-page .site-shell-nav__item span,
body.site-shell-nav-enabled.overnight-room-game-page .site-shell-nav__item b {
  opacity: 0;
  pointer-events: none;
}

body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar:hover .site-shell-nav__item span,
body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar:hover .site-shell-nav__item b,
body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar:focus-within .site-shell-nav__item span,
body.site-shell-nav-enabled.overnight-room-game-page .site-shell-sidebar:focus-within .site-shell-nav__item b {
  opacity: 1;
  pointer-events: auto;
}

/* Last overnight board pass: old board rules above must not reintroduce scrollbars. */
body.overnight-room-game-page .overnight-room-panel {
  width: calc(100vw - 84px) !important;
  max-height: calc(100dvh - 8px) !important;
}

body.overnight-room-game-page .overnight-room-visual {
  grid-template-columns: minmax(210px, 240px) auto !important;
  gap: 16px !important;
  justify-content: center !important;
  align-items: center !important;
  min-width: 0 !important;
}

body.overnight-room-game-page .overnight-room-map,
body.overnight-room-game-page .overnight-room-map--board {
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  overscroll-behavior: none !important;
}

body.overnight-room-game-page .overnight-room-map--board {
  --board-gap: 2px;
  --price-gutter: clamp(14px, 1.55dvh, 18px);
  --edge-size: clamp(50px, min(4.65vw, 6.55dvh), 66px);
  --corner-size: calc(var(--edge-size) * 1.7);
  box-sizing: border-box !important;
  width: calc((var(--corner-size) * 2) + (var(--edge-size) * var(--edge-count, 9)) + (var(--board-gap) * 10) + (var(--price-gutter) * 2) + 8px) !important;
  height: calc((var(--corner-size) * 2) + (var(--edge-size) * var(--edge-count, 9)) + (var(--board-gap) * 10) + (var(--price-gutter) * 2) + 8px) !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: var(--price-gutter) !important;
  border-radius: 4px !important;
}

body.overnight-room-game-page .overnight-room-route--board {
  gap: var(--board-gap) !important;
  overflow: visible !important;
  width: 100% !important;
  height: 100% !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom {
  padding: 17px 3px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell em {
  min-height: clamp(16px, 1.85dvh, 20px) !important;
  font-size: clamp(.68rem, min(.78vw, 1.15dvh), .84rem) !important;
  line-height: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top em {
  transform: translateY(calc(-1 * (var(--price-gutter) - 2px))) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom em {
  transform: translateY(calc(var(--price-gutter) - 2px)) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left em,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right em {
  width: clamp(16px, 1.85dvh, 20px) !important;
  min-height: 100% !important;
  font-size: clamp(.62rem, min(.7vw, 1.05dvh), .78rem) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left em {
  transform: translateX(calc(-1 * (var(--price-gutter) - 2px))) rotate(180deg) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right em {
  transform: translateX(calc(var(--price-gutter) - 2px)) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left {
  padding-left: clamp(16px, 1.9dvh, 20px) !important;
  padding-right: 3px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right {
  padding-left: 3px !important;
  padding-right: clamp(16px, 1.9dvh, 20px) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom strong {
  width: calc(var(--corner-size) - 18px) !important;
  font-size: clamp(.78rem, min(1.05vw, 1.55dvh), 1.02rem) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right strong {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  font-size: clamp(.72rem, min(.95vw, 1.38dvh), .96rem) !important;
  line-height: 1.04 !important;
}

body.overnight-room-game-page .overnight-room-board-center {
  grid-column: 2 / -2 !important;
  grid-row: 2 / -2 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  overflow: hidden !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

body.overnight-room-game-page .overnight-room-chat-slot,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded {
  min-width: 0 !important;
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  overflow: hidden !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  transform: none !important;
  margin: 0 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded .room-chat__header,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded .room-turn-widget,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded .room-chat__composer,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded .room-chat__messages {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__messages {
  min-height: 0 !important;
  overflow-y: auto !important;
  font-size: .95rem !important;
}

@media (max-width: 1360px) {
  body.overnight-room-game-page .overnight-room-panel {
    width: calc(100vw - 72px) !important;
  }

  body.overnight-room-game-page .overnight-room-visual {
    grid-template-columns: minmax(190px, 220px) auto !important;
    gap: 12px !important;
  }

  body.overnight-room-game-page .overnight-room-map--board {
    --edge-size: clamp(47px, min(4.55vw, 6.35dvh), 61px);
  }
}

@media (max-width: 980px) {
  body.overnight-room-game-page .overnight-room-panel {
    width: calc(100vw - 12px) !important;
  }

  body.overnight-room-game-page .overnight-room-visual {
    grid-template-columns: minmax(116px, 142px) auto !important;
    gap: 8px !important;
  }

  body.overnight-room-game-page .overnight-room-map--board {
    --price-gutter: 12px;
    --edge-size: clamp(34px, min(4.05vw, 5.9dvh), 47px);
  }
}

/* Screen-fill scale override: keep this after the legacy board pass. */
body.overnight-room-game-page .overnight-room-panel {
  width: calc(100vw - 72px) !important;
  max-height: calc(100dvh - 4px) !important;
}

body.overnight-room-game-page .overnight-room-visual {
  grid-template-columns: minmax(220px, 240px) auto !important;
  gap: 18px !important;
  width: 100% !important;
  justify-content: center !important;
  align-items: center !important;
}

body.overnight-room-game-page .overnight-room-map--board {
  --edge-size: clamp(56px, min(4.9vw, 7.35dvh), 74px);
  --corner-size: calc(var(--edge-size) * 1.7);
}

body.overnight-room-game-page .overnight-room-player__body,
body.overnight-room-game-page .overnight-room-player__head {
  width: 100% !important;
  min-width: 0 !important;
  justify-items: center !important;
  text-align: center !important;
}

body.overnight-room-game-page .overnight-room-player__head {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-content: center !important;
}

body.overnight-room-game-page .overnight-room-player__head strong {
  display: block !important;
  width: 100% !important;
  max-width: calc(100% - 22px) !important;
  margin: 0 auto !important;
  text-align: center !important;
}

body.overnight-room-game-page .overnight-room-player__head em {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: auto !important;
  max-width: 56px !important;
  z-index: 8 !important;
}

body.overnight-room-game-page .overnight-room-player__menu {
  top: 8px !important;
  right: 8px !important;
  z-index: 12 !important;
}

@media (max-width: 1360px) {
  body.overnight-room-game-page .overnight-room-panel {
    width: calc(100vw - 64px) !important;
  }

  body.overnight-room-game-page .overnight-room-visual {
    grid-template-columns: minmax(200px, 220px) auto !important;
    gap: 14px !important;
  }

  body.overnight-room-game-page .overnight-room-map--board {
    --edge-size: clamp(54px, min(4.85vw, 7.15dvh), 70px);
  }
}

@media (max-width: 980px) {
  body.overnight-room-game-page .overnight-room-panel {
    width: calc(100vw - 8px) !important;
  }

  body.overnight-room-game-page .overnight-room-visual {
    grid-template-columns: minmax(116px, 142px) auto !important;
    gap: 8px !important;
  }

  body.overnight-room-game-page .overnight-room-map--board {
    --edge-size: clamp(38px, min(4.55vw, 6.35dvh), 50px);
  }
}

/* Final choice modal: Monopoly-one style decisions over the board center. */
body.overnight-room-game-page .overnight-room-board-center {
  position: relative !important;
  overflow: visible !important;
}

body.overnight-room-game-page .overnight-room-choices {
  position: absolute !important;
  top: clamp(12px, 2.4dvh, 24px) !important;
  left: 50% !important;
  z-index: 70 !important;
  display: block !important;
  width: min(560px, calc(100% - 28px)) !important;
  transform: translateX(-50%) !important;
  pointer-events: none;
}

body.overnight-room-game-page .overnight-room-choices:empty {
  display: none !important;
}

body.overnight-room-game-page .overnight-choice-modal {
  pointer-events: auto;
  display: grid;
  gap: 14px;
  padding: clamp(14px, 2dvh, 20px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)),
    rgba(13, 18, 27, .96);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .42),
    inset 0 0 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(14px);
}

body.overnight-room-game-page .overnight-choice-modal__copy {
  display: grid;
  gap: 6px;
}

body.overnight-room-game-page .overnight-choice-modal__copy h2,
body.overnight-room-game-page .overnight-choice-modal__copy p {
  margin: 0;
}

body.overnight-room-game-page .overnight-choice-modal__copy h2 {
  color: #f8fafc;
  font-size: clamp(1.18rem, 1.35vw, 1.42rem);
  line-height: 1.05;
  font-weight: 900;
}

body.overnight-room-game-page .overnight-choice-modal__copy p {
  color: rgba(226, 232, 240, .78);
  font-size: clamp(.9rem, .96vw, 1rem);
  line-height: 1.35;
}

body.overnight-room-game-page .overnight-choice-modal__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.overnight-room-game-page .overnight-choice-modal__actions.is-single {
  grid-template-columns: minmax(0, 1fr);
}

body.overnight-room-game-page .overnight-choice-modal__button {
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #e5e7eb;
  font-size: clamp(.9rem, .95vw, 1rem);
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

body.overnight-room-game-page .overnight-choice-modal__button.is-primary {
  border-color: rgba(102, 212, 163, .62);
  background: linear-gradient(180deg, rgba(52, 211, 153, .95), rgba(20, 184, 126, .92));
  color: #042014;
}

body.overnight-room-game-page .overnight-choice-modal__button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
}

body.overnight-room-game-page .overnight-choice-modal__button.is-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(74, 222, 128, .98), rgba(20, 184, 126, .96));
}

body.overnight-room-game-page .overnight-choice-modal__button:disabled {
  cursor: not-allowed;
  opacity: .46;
}

@media (max-width: 720px) {
  body.overnight-room-game-page .overnight-room-choices {
    top: 8px !important;
    width: min(420px, calc(100% - 16px)) !important;
  }

  body.overnight-room-game-page .overnight-choice-modal__actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Final board text orientation: top and bottom businesses read vertically like monopoly-one. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) strong {
  position: static !important;
  display: grid !important;
  place-items: center !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  max-height: calc(100% - 18px) !important;
  margin: 0 auto !important;
  transform: none !important;
  writing-mode: vertical-rl !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  font-size: clamp(.82rem, min(1.15vw, 1.7dvh), 1.08rem) !important;
  line-height: 1 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner),
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) {
  align-content: center !important;
  justify-items: center !important;
  padding: clamp(18px, 2.25dvh, 24px) 3px !important;
}

/* Final monolithic board skin: one connected Monopoly-style surface. */
body.overnight-room-game-page .overnight-room-map--board {
  --board-gap: 0px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #111820 !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-route--board {
  gap: 0 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--corner {
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell em {
  border-radius: 0 !important;
}

body.overnight-room-game-page .overnight-room-board-center {
  position: relative !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #070c12 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.overnight-room-game-page .overnight-room-board-center .overnight-room-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px 12px !important;
  min-height: 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(145, 160, 176, .18) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-card__top {
  grid-column: 1 / -1 !important;
}

body.overnight-room-game-page .overnight-room-place {
  grid-column: 1 !important;
  min-height: 58px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-place__icon {
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .07) !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-chat-slot,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded {
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  height: 100% !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded .room-chat__header,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded .room-turn-widget,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded .room-chat__composer,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded .room-chat__messages {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__header {
  padding: 10px 12px !important;
  border-bottom: 1px solid rgba(145, 160, 176, .18) !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__head-copy strong {
  font-size: clamp(1rem, 1vw, 1.18rem) !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__messages {
  padding: 10px 12px !important;
  border: 0 !important;
  background: transparent !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__composer {
  padding: 10px 12px !important;
  border-top: 1px solid rgba(145, 160, 176, .18) !important;
  background: transparent !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__input,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat__send--icon,
body.overnight-room-game-page .overnight-room-chat-slot .chat-message__bubble,
body.overnight-room-game-page .overnight-choice-modal {
  border-radius: 3px !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message__bubble {
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-choice-modal {
  box-shadow: 0 16px 34px rgba(0, 0, 0, .36) !important;
}

body.overnight-room-game-page .overnight-choice-modal--mortgage-rent {
  position: relative;
  z-index: 160;
  width: min(540px, calc(100vw - 28px));
  max-height: min(70dvh, 560px);
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

body.overnight-room-game-page .overnight-mortgage-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.overnight-room-game-page .overnight-mortgage-summary span {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: rgba(255, 255, 255, .055);
  color: rgba(226, 232, 240, .78);
  font-size: .88rem;
}

body.overnight-room-game-page .overnight-mortgage-summary b {
  color: #f8fafc;
  white-space: nowrap;
}

body.overnight-room-game-page .overnight-mortgage-summary .is-ready b {
  color: #86efac;
}

body.overnight-room-game-page .overnight-mortgage-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
  max-height: clamp(124px, 24dvh, 230px);
  overflow: auto;
  padding-right: 2px;
}

body.overnight-room-game-page .overnight-mortgage-option {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 6px;
  background: rgba(15, 23, 42, .66);
  color: #e2e8f0;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
}

body.overnight-room-game-page .overnight-mortgage-option:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .095);
}

body.overnight-room-game-page .overnight-mortgage-option.is-selected {
  border-color: rgba(52, 211, 153, .72);
  background: rgba(20, 184, 126, .18);
}

body.overnight-room-game-page .overnight-mortgage-option__swatch {
  width: 12px;
  height: 24px;
  border-radius: 3px;
  background: var(--mortgage-color, #60a5fa);
  box-shadow: 0 0 14px color-mix(in srgb, var(--mortgage-color, #60a5fa) 45%, transparent);
}

body.overnight-room-game-page .overnight-mortgage-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

body.overnight-room-game-page .overnight-mortgage-option b {
  color: #86efac;
  white-space: nowrap;
}

body.overnight-room-game-page .overnight-mortgage-empty,
body.overnight-room-game-page .overnight-mortgage-hint {
  margin: 0;
  color: rgba(226, 232, 240, .72);
  font-size: .86rem;
  line-height: 1.3;
}

body.overnight-room-game-page .overnight-choice-modal__button.is-danger {
  border-color: rgba(248, 113, 113, .42);
  background: rgba(127, 29, 29, .42);
  color: #fecaca;
}

body.overnight-room-game-page .overnight-choice-modal__button.is-danger:hover:not(:disabled) {
  border-color: rgba(252, 165, 165, .62);
  background: rgba(153, 27, 27, .58);
}

@media (max-width: 620px) {
  body.overnight-room-game-page .overnight-mortgage-summary,
  body.overnight-room-game-page .overnight-mortgage-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.overnight-room-game-page .overnight-choice-modal--jackpot {
  gap: 16px !important;
  max-width: min(560px, calc(100vw - 28px));
  border-color: rgba(250, 204, 21, .34) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(250, 204, 21, .16), transparent 44%),
    linear-gradient(180deg, rgba(25, 31, 45, .98), rgba(12, 16, 24, .98)) !important;
}

body.overnight-room-game-page .overnight-choice-modal--jackpot .overnight-choice-modal__copy h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fef3c7 !important;
  font-size: clamp(1.35rem, 1.8vw, 1.85rem) !important;
}

body.overnight-room-game-page .overnight-jackpot-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(250, 204, 21, .2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(96, 165, 250, .22), rgba(59, 130, 246, .12)),
    rgba(15, 23, 42, .72);
}

body.overnight-room-game-page .overnight-jackpot-slots__reel {
  display: grid;
  min-height: 74px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .16), transparent 48%),
    linear-gradient(180deg, rgba(30, 41, 59, .96), rgba(8, 13, 22, .98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 22px rgba(0, 0, 0, .24);
  font-size: clamp(2.15rem, 4.2vw, 3.3rem);
  line-height: 1;
  transform: translateY(0);
  animation: overnightJackpotIdle 2.8s ease-in-out infinite;
  animation-delay: calc(var(--reel-index, 0) * .16s);
}

body.overnight-room-game-page .overnight-jackpot-prizes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: rgba(255, 255, 255, .045);
  color: rgba(226, 232, 240, .86);
  font-size: .82rem;
  line-height: 1.15;
}

body.overnight-room-game-page .overnight-jackpot-prizes span {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.overnight-room-game-page .overnight-jackpot-prizes b {
  color: #fef08a;
  font-weight: 900;
  white-space: nowrap;
}

body.overnight-room-game-page .overnight-choice-modal--jackpot-spin {
  width: min(520px, calc(100vw - 28px));
}

body.overnight-room-game-page .overnight-choice-modal--jackpot-spin.is-spinning .overnight-jackpot-slots__reel:not(.is-locked) {
  animation: overnightJackpotSpinPulse .34s linear infinite, overnightJackpotReelShake .18s linear infinite;
  border-color: rgba(96, 165, 250, .38);
}

body.overnight-room-game-page .overnight-choice-modal--jackpot-spin .overnight-jackpot-slots__reel.is-locked {
  animation: overnightJackpotLock .42s ease both;
  border-color: rgba(250, 204, 21, .62);
  background:
    radial-gradient(circle at 50% 30%, rgba(250, 204, 21, .24), transparent 54%),
    linear-gradient(180deg, rgba(49, 46, 129, .96), rgba(15, 23, 42, .98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 0 22px rgba(250, 204, 21, .2),
    0 12px 26px rgba(0, 0, 0, .28);
}

body.overnight-room-game-page .overnight-jackpot-spin__result {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(250, 204, 21, .22);
  border-radius: 6px;
  background: rgba(250, 204, 21, .08);
  color: rgba(254, 243, 199, .92);
  animation: overnightJackpotResult .36s ease both;
}

body.overnight-room-game-page .overnight-jackpot-spin__result.is-hidden {
  display: none;
}

body.overnight-room-game-page .overnight-jackpot-spin__result strong {
  color: #fef3c7;
  font-size: 1rem;
  line-height: 1.1;
  text-transform: uppercase;
}

body.overnight-room-game-page .overnight-jackpot-spin__result span {
  color: rgba(226, 232, 240, .9);
  font-size: .92rem;
  line-height: 1.25;
}

@keyframes overnightJackpotIdle {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-4px);
  }
}

@keyframes overnightJackpotSpinPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.22);
  }
}

@keyframes overnightJackpotReelShake {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-2px) rotate(.8deg);
  }
}

@keyframes overnightJackpotLock {
  0% {
    transform: scale(1);
  }
  55% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes overnightJackpotResult {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Final branch/build layer: monopoly upgrades stay visible on the board. */
body.overnight-room-game-page .overnight-place-info {
  position: absolute !important;
  z-index: 95 !important;
  width: min(348px, calc(100% - 16px)) !important;
  max-height: min(420px, calc(100% - 16px)) !important;
  border-radius: 3px !important;
}

body.overnight-room-game-page .overnight-place-info__actions,
body.overnight-room-game-page .overnight-place-info__build {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 12px 18px 0;
}

body.overnight-room-game-page .overnight-place-info__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.overnight-room-game-page .overnight-place-info__build-btn {
  width: 100%;
}

body.overnight-room-game-page .overnight-place-info__action-btn,
body.overnight-room-game-page .overnight-place-info__build-btn {
  width: 100%;
  min-height: 38px;
  padding: 4px 8px;
  border: 0;
  border-radius: 3px;
  background: var(--cell-color, #2563eb);
  color: #fff;
  font: inherit;
  font-size: .75rem;
  font-weight: 900;
  line-height: 1;
  white-space: normal;
  overflow-wrap: break-word;
  text-align: center;
  cursor: pointer;
}

body.overnight-room-game-page .overnight-place-info__action-btn:not(.is-primary) {
  background: #e2e8f0;
  color: #1e293b;
}

body.overnight-room-game-page .overnight-place-info__action-btn[data-overnight-build-branch] {
  background: #22c55e;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .28);
}

body.overnight-room-game-page .overnight-place-info__action-btn[data-overnight-sell-branch],
body.overnight-room-game-page .overnight-place-info__action-btn[data-overnight-mortgage-action="mortgage"] {
  background: #ef4444;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .28);
}

body.overnight-room-game-page .overnight-place-info__action-btn[data-overnight-mortgage-action="redeem"] {
  background: #facc15;
  color: #1f2937;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

body.overnight-room-game-page .overnight-place-info__action-btn:disabled,
body.overnight-room-game-page .overnight-place-info__build-btn:disabled {
  cursor: not-allowed;
  opacity: .48;
  text-shadow: none;
  filter: grayscale(.25);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chance,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chest {
  align-content: center !important;
  justify-items: center !important;
  padding: 6px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chance .overnight-route__icon,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chest .overnight-route__icon {
  display: grid !important;
  place-items: center !important;
  min-height: 0 !important;
  color: #f8fafc !important;
  font-size: clamp(1.6rem, min(2.8vw, 4.2dvh), 2.45rem) !important;
  font-weight: 1000 !important;
  line-height: .85 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .42);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chance strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--chest strong {
  display: none !important;
}

body.overnight-room-game-page .overnight-place-info__actions span,
body.overnight-room-game-page .overnight-place-info__build span {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: .84rem;
  line-height: 1.25;
}

body.overnight-room-game-page .overnight-room-scoreboard {
  align-self: start !important;
  justify-self: stretch !important;
}

body.overnight-room-game-page .overnight-route__branches {
  position: absolute;
  z-index: 45;
  top: 3px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 20px;
  min-height: 16px;
  padding: 1px 3px;
  color: #fde68a;
  font-size: clamp(.62rem, min(.82vw, 1.08dvh), .82rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .62);
  transform: translateX(-50%);
  pointer-events: none;
}

body.overnight-room-game-page .overnight-route__branches.is-complete {
  font-size: clamp(1.05rem, min(1.35vw, 1.9dvh), 1.4rem);
  color: #facc15;
}

body.overnight-room-game-page .overnight-route__cell--left .overnight-route__branches,
body.overnight-room-game-page .overnight-route__cell--right .overnight-route__branches {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  writing-mode: horizontal-tb;
}

body.overnight-room-game-page .overnight-route__cell--bottom .overnight-route__branches {
  top: auto;
  bottom: 3px;
}

/* Final branch stars: draw upgrades as an overlay without moving the business logo. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-upgraded:not(.overnight-route__cell--corner) {
  --branch-lane: clamp(18px, min(1.5vw, 2.45dvh), 24px);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-upgraded:not(.overnight-route__cell--corner) strong {
  margin-top: 0 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__branches,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left .overnight-route__branches,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right .overnight-route__branches,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom .overnight-route__branches {
  z-index: 60 !important;
  top: 4px !important;
  bottom: auto !important;
  left: 50% !important;
  right: auto !important;
  width: min(84%, 56px) !important;
  min-width: 0 !important;
  min-height: var(--branch-lane, 20px) !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  transform: translateX(-50%) !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__branches i {
  display: inline-block !important;
  font-style: normal !important;
  font-size: clamp(.9rem, min(1.12vw, 1.75dvh), 1.18rem) !important;
  line-height: 1 !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7));
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__branches.is-complete i {
  font-size: clamp(1.18rem, min(1.52vw, 2.2dvh), 1.55rem) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__branches:not(.is-complete),
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__branches:not(.is-complete) {
  width: 28px !important;
  min-height: 22px !important;
  display: grid !important;
  grid-template-columns: repeat(2, max-content) !important;
  grid-auto-rows: max-content !important;
  align-content: center !important;
  justify-content: center !important;
  gap: 0 1px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__branches:not(.is-complete) i,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__branches:not(.is-complete) i {
  font-size: clamp(.68rem, min(.82vw, 1.18dvh), .86rem) !important;
}

body.overnight-room-game-page .overnight-route__tokens {
  right: 5px !important;
  bottom: 5px !important;
  gap: 5px !important;
  z-index: 58 !important;
}

body.overnight-room-game-page .overnight-route__tokens i {
  width: clamp(30px, min(2.45vw, 3.45dvh), 38px) !important;
  height: clamp(30px, min(2.45vw, 3.45dvh), 38px) !important;
  border: 3px solid rgba(6, 10, 16, .82) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .58),
    0 8px 18px rgba(0, 0, 0, .48) !important;
  font-size: clamp(.84rem, min(1.08vw, 1.55dvh), 1.08rem) !important;
  transition: transform .16s ease, box-shadow .16s ease;
}

body.overnight-room-game-page .overnight-route__tokens i.is-moving {
  animation: overnightTokenStep .34s ease-in-out infinite alternate;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .7),
    0 0 18px rgba(102, 212, 163, .46),
    0 10px 22px rgba(0, 0, 0, .52) !important;
}

body.overnight-room-game-page .overnight-room-dice-stage.is-rolling i {
  animation-duration: .34s !important;
}

@keyframes overnightTokenStep {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-6px) scale(1.08); }
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner),
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) {
  align-items: stretch !important;
  justify-items: center !important;
  padding: clamp(20px, 2.3dvh, 25px) 2px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) strong {
  display: block !important;
  width: auto !important;
  height: min(100%, calc(var(--edge-size, 72px) - clamp(22px, 2.45dvh, 28px))) !important;
  max-height: none !important;
  margin: auto !important;
  padding: 0 !important;
  writing-mode: vertical-rl !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  font-size: clamp(.66rem, min(.9vw, 1.25dvh), .92rem) !important;
  line-height: .96 !important;
  letter-spacing: 0 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner):not(.overnight-route__cell--chance):not(.overnight-route__cell--chest) .overnight-route__icon,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner):not(.overnight-route__cell--chance):not(.overnight-route__cell--chest) .overnight-route__icon {
  display: none !important;
}

body.overnight-room-game-page .overnight-route__title-fit {
  display: inline-block;
  transform-origin: center;
}

body.overnight-room-game-page .overnight-route__title-fit--sm {
  transform: scale(.9);
}

body.overnight-room-game-page .overnight-route__title-fit--xs {
  transform: scale(.78);
}

body.overnight-room-game-page .overnight-room-position,
body.overnight-room-game-page .overnight-room-place {
  display: none !important;
}

body.overnight-room-game-page .overnight-room-board-center .overnight-room-card {
  grid-template-columns: minmax(0, 1fr) !important;
  padding: 10px 12px !important;
}

body.overnight-room-game-page .overnight-room-card__top {
  grid-column: 1 !important;
}

body.overnight-room-game-page .overnight-room-card .inline-status {
  display: none !important;
}

/* Final price ribbons: keep this block at EOF so board scaling cannot hide prices. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue:not(.is-owned),
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport:not(.is-owned),
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility:not(.is-owned) {
  border-color: rgba(255, 255, 255, .2) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025)),
    rgba(18, 22, 33, .98) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue:not(.is-owned) .overnight-route__color,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport:not(.is-owned) .overnight-route__color,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility:not(.is-owned) .overnight-route__color {
  opacity: 0 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue.is-owned,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport.is-owned,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility.is-owned {
  border-color: color-mix(in srgb, var(--owner-color, #38bdf8) 82%, #ffffff 18%) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(0, 0, 0, .08)),
    color-mix(in srgb, var(--owner-color, #38bdf8) 76%, #101827 24%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    inset 0 -18px 38px rgba(0, 0, 0, .16) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue.is-owned .overnight-route__color,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport.is-owned .overnight-route__color,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility.is-owned .overnight-route__color {
  opacity: 0 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-owned strong {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-owned .overnight-route__index {
  color: rgba(255, 255, 255, .82) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-owned em {
  background: var(--cell-color, rgba(71, 85, 105, .95)) !important;
}

body.overnight-room-game-page .overnight-room-map--board {
  --price-gutter: clamp(22px, 2.35dvh, 28px);
}

body.overnight-room-game-page .overnight-room-route--board,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell {
  overflow: visible !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell em {
  position: absolute !important;
  z-index: 40 !important;
  display: grid !important;
  place-items: center !important;
  min-height: clamp(20px, 2.2dvh, 25px) !important;
  padding: 0 7px !important;
  border-radius: 0 !important;
  background: var(--cell-color, rgba(71, 85, 105, .95)) !important;
  color: #fff !important;
  font-size: clamp(.78rem, min(.9vw, 1.3dvh), 1rem) !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top em {
  top: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  transform: translateY(-100%) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom em {
  top: auto !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  transform: translateY(100%) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left em,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right em {
  top: 0 !important;
  bottom: 0 !important;
  width: clamp(20px, 2.2dvh, 25px) !important;
  min-height: 100% !important;
  padding: 0 !important;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(.74rem, min(.78vw, 1.16dvh), .9rem) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left em {
  right: auto !important;
  left: 0 !important;
  transform: translateX(-100%) rotate(180deg) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right em {
  right: 0 !important;
  left: auto !important;
  transform: translateX(100%) !important;
}

@media (max-width: 980px) {
  body.overnight-room-game-page .overnight-room-map--board {
    --price-gutter: 18px;
  }

  body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell em {
    min-height: 16px !important;
    font-size: .68rem !important;
  }

  body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left em,
  body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right em {
    width: 16px !important;
    font-size: .62rem !important;
  }
}
/* Final overnight label pass: keep this after older board overrides. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner),
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) {
  padding: clamp(12px, 1.45dvh, 16px) 2px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) strong,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) strong {
  height: calc(100% - clamp(8px, 1dvh, 12px)) !important;
  font-size: clamp(.82rem, min(1.08vw, 1.62dvh), 1.08rem) !important;
  line-height: 1.03 !important;
  transform: rotate(180deg) !important;
}

body.overnight-room-game-page .overnight-route__title-fit--sm {
  transform: scale(.95) !important;
}

body.overnight-room-game-page .overnight-route__title-fit--xs {
  transform: scale(.86) !important;
}

body.overnight-room-game-page .overnight-route__title-fit--stacked {
  transform: scale(.92) !important;
}

body.overnight-room-game-page .overnight-route__title-stack {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

body.overnight-room-game-page .overnight-route__title-stack span {
  display: block;
}

body.overnight-room-game-page .overnight-route__title-fit--stacked .overnight-route__title-stack {
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

/* Overnight lobby final theme: keep after all board overrides so waiting-page panels stay dark. */
body.overnight-page .overnight-shell {
  align-content: start;
  gap: 20px;
  width: min(100%, 1468px);
}

body.overnight-page .overnight-games {
  width: 100% !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(82, 211, 169, .09), transparent 36%),
    linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(8, 13, 22, .96)) !important;
  color: var(--text) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34) !important;
}

body.overnight-page .overnight-games__head {
  min-height: 76px !important;
  padding: 16px 24px !important;
  border-bottom: 1px solid rgba(148, 163, 184, .14) !important;
  background:
    radial-gradient(circle at 12% -20%, rgba(82, 211, 169, .14), transparent 42%),
    rgba(255, 255, 255, .025) !important;
}

body.overnight-page .overnight-games__head h1 {
  color: #f8fafc !important;
  font-size: clamp(1.28rem, 1.7vw, 1.62rem) !important;
  font-weight: 900 !important;
}

body.overnight-page .overnight-games__head p {
  display: block !important;
  margin: 4px 0 0 !important;
  color: rgba(203, 213, 225, .72) !important;
  font-size: .9rem !important;
}

body.overnight-page .overnight-games__list {
  min-height: 132px;
  background: transparent !important;
}

body.overnight-page .overnight-empty-rooms {
  min-height: 132px !important;
  padding: 30px 28px !important;
  border-top: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .018)),
    rgba(7, 11, 18, .38) !important;
  color: rgba(203, 213, 225, .72) !important;
}

body.overnight-page .overnight-empty-rooms strong {
  color: #f8fafc !important;
  font-size: 1.02rem !important;
}

body.overnight-page .overnight-create-main-btn {
  min-height: 42px !important;
  padding: 0 20px !important;
  border: 1px solid rgba(82, 211, 169, .38) !important;
  border-radius: 14px !important;
  background: rgba(82, 211, 169, .14) !important;
  color: #eafff4 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

body.overnight-page .overnight-create-main-btn:hover {
  border-color: rgba(82, 211, 169, .58) !important;
  background: rgba(82, 211, 169, .2) !important;
}

body.overnight-page .overnight-room-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .024)),
    rgba(11, 17, 28, .62) !important;
  color: var(--text) !important;
}

/* Overnight lobby room separation: absolute final layer after legacy waiting-list rules. */
body.overnight-page .overnight-games__list {
  display: grid !important;
  gap: 14px !important;
  min-height: 132px !important;
  padding: 14px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, .006)),
    rgba(3, 7, 13, .28) !important;
}

body.overnight-page .overnight-room-row {
  --room-accent: #52d3a9;
  display: grid !important;
  grid-template-columns: minmax(180px, 238px) minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: center !important;
  min-height: 150px !important;
  padding: 18px 24px 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--room-accent) 14%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(20, 29, 45, .88), rgba(10, 15, 25, .9)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 14px 34px rgba(0, 0, 0, .18) !important;
}

body.overnight-page .overnight-room-row + .overnight-room-row {
  border-top: 1px solid rgba(148, 163, 184, .16) !important;
}

body.overnight-page .overnight-room-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--room-accent), color-mix(in srgb, var(--room-accent) 52%, #050914));
  opacity: .9;
}

body.overnight-page .overnight-room-row--classic {
  --room-accent: #52d3a9;
}

body.overnight-page .overnight-room-row--speed {
  --room-accent: #f05b6f;
}

body.overnight-page .overnight-room-row--party {
  --room-accent: #38bdf8;
}

body.overnight-page .overnight-room-row--rasklad {
  --room-accent: #a78bfa;
}

body.overnight-page .overnight-room-row__head {
  grid-column: 1 !important;
  align-self: start !important;
  padding-top: 2px !important;
}

body.overnight-page .overnight-room-row__head strong {
  gap: 10px !important;
  color: #f8fafc !important;
  font-size: 1.08rem !important;
}

body.overnight-page .overnight-room-row__head strong i {
  width: 26px !important;
  height: 26px !important;
  border: 1px solid color-mix(in srgb, var(--room-accent) 48%, rgba(255, 255, 255, .14)) !important;
  background: rgba(3, 7, 13, .58) !important;
  color: var(--room-accent) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--room-accent) 12%, transparent) !important;
}

body.overnight-page .overnight-room-row__tags {
  margin-top: 6px !important;
}

body.overnight-page .overnight-room-row__slots {
  grid-column: 2 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(90px, 118px)) !important;
  gap: 18px !important;
  align-items: start !important;
  justify-content: start !important;
}

body.overnight-page .overnight-room-slot {
  min-height: 112px !important;
  gap: 6px !important;
}

body.overnight-page .overnight-room-slot i {
  width: 74px !important;
  height: 74px !important;
  font-size: 1.55rem !important;
}

body.overnight-page .overnight-room-slot--empty {
  min-height: 112px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.overnight-page .overnight-room-slot--empty i {
  width: 68px !important;
  height: 68px !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(148, 163, 184, .74) !important;
  font-size: 3rem !important;
  box-shadow: none !important;
}

body.overnight-page .overnight-room-slot--empty span {
  color: rgba(203, 213, 225, .86) !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.overnight-page .overnight-room-action,
body.overnight-page .overnight-room-waiting {
  grid-column: 3 !important;
  align-self: start !important;
  justify-self: end !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  body.overnight-page .overnight-room-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.overnight-page .overnight-room-row__head,
  body.overnight-page .overnight-room-row__slots,
  body.overnight-page .overnight-room-action,
  body.overnight-page .overnight-room-waiting {
    grid-column: 1 !important;
  }

  body.overnight-page .overnight-room-action,
  body.overnight-page .overnight-room-waiting {
    justify-self: start !important;
  }
}

/* Overnight board: final service-fee label fit after all board/lobby overrides. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--service-fee strong {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.overnight-room-game-page .overnight-route__title-fit--service-fee {
  transform: scale(.9) !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--service-fee .overnight-route__title-stack {
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  max-height: 100% !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--service-fee .overnight-route__title-stack span {
  display: block !important;
  white-space: nowrap !important;
}

/* Overnight board: final chat composer layout after all board/lobby overrides. */
body.overnight-room-game-page .overnight-room-chat-slot {
  display: block !important;
  overflow: hidden !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  align-content: stretch !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__header,
body.overnight-room-game-page .overnight-room-chat-slot .room-turn-widget {
  display: none !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__messages {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  min-height: 0 !important;
  height: auto !important;
  overflow-y: auto !important;
  padding: 10px 12px !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__composer {
  grid-column: 1 !important;
  grid-row: 2 !important;
  align-self: end !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 42px !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 62px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border-top: 1px solid rgba(145, 160, 176, .18) !important;
  background: transparent !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__composer input[type="file"],
body.overnight-room-game-page .overnight-room-chat-slot .room-chat__media-btn {
  display: none !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__input {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  height: 42px !important;
  max-height: 92px !important;
  resize: none !important;
  align-self: center !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__send,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat__send--icon {
  grid-column: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: end !important;
  align-self: center !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 0 !important;
}

/* Overnight lobby: absolute last layer for room controls and centered waiting parties. */
body.overnight-page .overnight-room-row {
  position: relative !important;
  grid-template-columns: minmax(180px, 230px) minmax(280px, 1fr) minmax(150px, auto) !important;
  align-items: start !important;
  min-height: 172px !important;
  padding: 18px 26px 18px !important;
}

body.overnight-page .overnight-room-row__head {
  align-self: start !important;
}

body.overnight-page .overnight-room-row__slots {
  grid-column: 2 !important;
  align-self: start !important;
  padding-top: 18px !important;
  grid-template-columns: repeat(auto-fit, minmax(96px, 126px)) !important;
  gap: 22px !important;
  justify-content: start !important;
}

body.overnight-page .overnight-room-slot {
  position: relative !important;
  display: grid !important;
  justify-items: center !important;
  align-content: start !important;
  min-height: 120px !important;
  padding-top: 0 !important;
}

body.overnight-page .overnight-room-slot i {
  width: 78px !important;
  height: 78px !important;
}

body.overnight-page .overnight-room-slot span {
  max-width: 118px !important;
  text-align: center !important;
}

body.overnight-page .overnight-room-slot--empty span {
  max-width: 126px !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
}

body.overnight-page .overnight-room-actions {
  grid-column: 3 !important;
  align-self: start !important;
  justify-self: end !important;
  display: grid !important;
  gap: 10px !important;
  justify-items: end !important;
  min-width: 142px !important;
}

body.overnight-page .overnight-room-actions .overnight-room-action,
body.overnight-page .overnight-room-actions .overnight-room-waiting {
  grid-column: auto !important;
  justify-self: end !important;
}

body.overnight-page .overnight-room-action--ghost {
  border-color: rgba(248, 113, 113, .34) !important;
  background: rgba(127, 29, 29, .18) !important;
  color: #fecaca !important;
}

body.overnight-page .overnight-room-action--ghost:hover {
  border-color: rgba(248, 113, 113, .58) !important;
  background: rgba(127, 29, 29, .28) !important;
}

body.overnight-page .overnight-room-kick {
  position: absolute !important;
  top: 3px !important;
  right: 14px !important;
  z-index: 2 !important;
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 1px solid rgba(248, 113, 113, .54) !important;
  border-radius: 999px !important;
  background: rgba(127, 29, 29, .86) !important;
  color: #fff !important;
  font: 900 16px/1 Montserrat, sans-serif !important;
  opacity: 0 !important;
  transform: translateY(-3px) scale(.96) !important;
  transition: opacity .16s ease, transform .16s ease, background .16s ease !important;
  cursor: pointer !important;
}

body.overnight-page .overnight-room-slot--filled:hover .overnight-room-kick,
body.overnight-page .overnight-room-kick:focus-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

body.overnight-page .overnight-room-kick:hover {
  background: #ef4444 !important;
}

body.overnight-page .overnight-membership-dialog {
  position: relative !important;
  z-index: 1 !important;
  width: min(100%, 460px) !important;
  padding: 24px !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(82, 211, 169, .12), transparent 42%),
    linear-gradient(180deg, #151b27, #0d121b) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42) !important;
}

body.overnight-page .overnight-membership-dialog h2 {
  margin: 6px 0 8px !important;
  color: #f8fafc !important;
  font-size: 1.35rem !important;
}

body.overnight-page .overnight-membership-dialog p {
  margin: 0 !important;
  color: rgba(203, 213, 225, .78) !important;
  line-height: 1.45 !important;
}

body.overnight-page .overnight-membership-dialog__actions {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 10px !important;
  margin-top: 20px !important;
}

@media (max-width: 900px) {
  body.overnight-page .overnight-room-row {
    grid-template-columns: 1fr !important;
  }

  body.overnight-page .overnight-room-row__slots,
  body.overnight-page .overnight-room-actions {
    grid-column: 1 !important;
  }

  body.overnight-page .overnight-room-actions {
    justify-self: stretch !important;
    justify-items: stretch !important;
  }

  body.overnight-page .overnight-room-actions .overnight-room-action,
  body.overnight-page .overnight-room-actions .overnight-room-waiting {
    justify-self: stretch !important;
  }
}
/* Overnight board labels: true EOF override for stacked vertical words and compact names. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked {
  display: inline-flex !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  transform: none !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  line-height: 1 !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack span,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack span {
  display: block !important;
  writing-mode: vertical-rl !important;
  text-orientation: mixed !important;
  white-space: nowrap !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__title-fit--service-fee {
  transform: none !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--service-fee .overnight-route__title-stack {
  flex-direction: row !important;
  gap: 3px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__title-fit--xxl {
  font-size: 1.28em !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__title-fit--xl {
  font-size: 1.2em !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__title-fit--lg,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__title-fit--md {
  font-size: 1.12em !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left .overnight-route__title-fit--lg,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left .overnight-route__title-fit--md,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right .overnight-route__title-fit--lg,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right .overnight-route__title-fit--md {
  font-size: 1.14em !important;
}

/* Overnight money delta animation: true final override. */
body.overnight-room-game-page .overnight-room-player__body {
  overflow: visible !important;
}

body.overnight-room-game-page .overnight-room-player .overnight-room-player__money-wrap {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;
  overflow: visible !important;
  width: max-content !important;
  max-width: none !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
}

body.overnight-room-game-page .overnight-room-player .overnight-room-player__money-bursts {
  position: absolute !important;
  left: 50%;
  top: 100%;
  display: block !important;
  overflow: visible !important;
  width: max-content !important;
  max-width: none !important;
  height: 0;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 18;
}

/* Overnight finish and leaving states. */
body.overnight-room-game-page .overnight-room-player.is-left {
  opacity: .58 !important;
  filter: grayscale(.75) brightness(.72) !important;
  border-color: rgba(148, 163, 184, .34) !important;
  background: rgba(15, 23, 42, .74) !important;
}

body.overnight-room-game-page .overnight-room-player.is-left .overnight-room-player__avatar {
  background: rgba(15, 23, 42, .92) !important;
  border-color: rgba(148, 163, 184, .45) !important;
  color: #e2e8f0 !important;
}

body.overnight-room-game-page .overnight-room-player.is-winner {
  border-color: rgba(250, 204, 21, .72) !important;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, .16), 0 16px 34px rgba(250, 204, 21, .12) !important;
}

body.overnight-room-game-page .overnight-room-player__avatar {
  position: relative !important;
}

body.overnight-room-game-page .overnight-room-player__crown {
  position: absolute;
  top: -16px;
  left: 50%;
  color: #facc15;
  font-size: 1rem;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,.42);
  transform: translateX(-50%);
}

body.overnight-room-game-page .overnight-finish-modal {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 7, 18, .58);
  backdrop-filter: blur(5px);
}

body.overnight-room-game-page .overnight-finish-modal.hidden {
  display: none !important;
}

body.overnight-room-game-page .overnight-finish-modal__card {
  width: min(360px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(250, 204, 21, .32);
  border-radius: 14px;
  background: rgba(15, 23, 42, .94);
  color: #f8fafc;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

body.overnight-room-game-page .overnight-finish-modal__avatar {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(250, 204, 21, .72);
  border-radius: 999px;
  background: var(--player-color, #facc15);
  color: #fff;
  font-weight: 1000;
  font-size: 1.45rem;
  box-shadow: 0 16px 34px rgba(250, 204, 21, .18);
}

body.overnight-room-game-page .overnight-finish-modal__avatar i {
  position: absolute;
  top: -26px;
  left: 50%;
  color: #facc15;
  font-size: 1.8rem;
  font-style: normal;
  transform: translateX(-50%);
  text-shadow: 0 4px 12px rgba(0,0,0,.45);
}

body.overnight-room-game-page .overnight-finish-modal__copy span {
  color: #fde68a;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.overnight-room-game-page .overnight-finish-modal__copy h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.45rem, 4vw, 2rem);
  letter-spacing: 0;
}

body.overnight-room-game-page .overnight-finish-modal__copy p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.35;
}

body.overnight-room-game-page .overnight-finish-modal__card button {
  min-width: 132px;
  min-height: 42px;
  border: 1px solid rgba(250, 204, 21, .5);
  border-radius: 10px;
  background: #facc15;
  color: #111827;
  font-weight: 1000;
}

/* Overnight lobby: compact, centered slot rows. */
body.overnight-page .overnight-games__list {
  gap: 12px !important;
  padding: 12px !important;
}

body.overnight-page .overnight-room-row {
  display: grid !important;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr) minmax(126px, auto) !important;
  align-items: center !important;
  gap: 16px !important;
  min-height: 132px !important;
  padding: 16px 22px !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(90deg, rgba(45, 212, 191, .12), rgba(15, 23, 42, 0) 26%),
    rgba(15, 23, 42, .62) !important;
}

body.overnight-page .overnight-room-row__head {
  align-self: center !important;
}

body.overnight-page .overnight-room-row__head strong {
  font-size: 1.04rem !important;
}

body.overnight-page .overnight-room-row__tags {
  margin-left: 36px !important;
  gap: 6px !important;
}

body.overnight-page .overnight-room-row__slots {
  grid-column: 2 !important;
  display: grid !important;
  grid-template-columns: repeat(var(--overnight-room-slots, 4), minmax(0, 92px)) !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 10px !important;
  min-width: 0 !important;
  padding: 0 !important;
}

body.overnight-page .overnight-room-row--slots-5 .overnight-room-row__slots,
body.overnight-page .overnight-room-row--slots-6 .overnight-room-row__slots,
body.overnight-page .overnight-room-row--slots-7 .overnight-room-row__slots,
body.overnight-page .overnight-room-row--slots-8 .overnight-room-row__slots {
  grid-template-columns: repeat(var(--overnight-room-slots, 5), minmax(0, 82px)) !important;
  gap: 8px !important;
}

body.overnight-page .overnight-room-slot {
  position: relative !important;
  display: grid !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 5px !important;
  min-height: 98px !important;
  width: 100% !important;
  padding: 9px 7px 8px !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  border-radius: 12px !important;
  background: rgba(2, 6, 23, .32) !important;
  color: #e2e8f0 !important;
  text-align: center !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}

body.overnight-page .overnight-room-slot--filled {
  border-color: rgba(82, 211, 169, .24) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(82, 211, 169, .10), transparent 54%),
    rgba(2, 6, 23, .38) !important;
}

body.overnight-page .overnight-room-slot--empty {
  border-style: dashed !important;
  border-color: rgba(148, 163, 184, .22) !important;
  background: rgba(15, 23, 42, .22) !important;
}

body.overnight-page .overnight-room-slot i {
  width: 46px !important;
  height: 46px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  font-size: 1.08rem !important;
  line-height: 1 !important;
}

body.overnight-page .overnight-room-slot--filled i {
  border: 1px solid rgba(255,255,255,.10) !important;
  background:
    radial-gradient(circle at 38% 24%, rgba(255,255,255,.16), transparent 38%),
    linear-gradient(135deg, #1f2937, #4b5563) !important;
  color: #fff !important;
  font-weight: 1000 !important;
}

body.overnight-page .overnight-room-slot--empty i {
  width: 38px !important;
  height: 38px !important;
  border: 1px solid rgba(148, 163, 184, .24) !important;
  background: rgba(15, 23, 42, .44) !important;
  color: rgba(203, 213, 225, .82) !important;
  font-size: 1.55rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

body.overnight-page .overnight-room-slot i::after {
  right: 0 !important;
  bottom: 3px !important;
  width: 11px !important;
  height: 11px !important;
}

body.overnight-page .overnight-room-slot span {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: #f8fafc !important;
  font-size: .68rem !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body.overnight-page .overnight-room-slot--empty span {
  color: rgba(203, 213, 225, .80) !important;
  font-size: .62rem !important;
  white-space: normal !important;
}

body.overnight-page .overnight-room-slot small {
  color: rgba(148, 163, 184, .84) !important;
  font-size: .58rem !important;
  line-height: 1 !important;
}

body.overnight-page .overnight-room-actions {
  grid-column: 3 !important;
  align-self: center !important;
  justify-self: end !important;
  display: grid !important;
  gap: 8px !important;
  justify-items: stretch !important;
  min-width: 126px !important;
}

body.overnight-page .overnight-room-actions .overnight-room-action,
body.overnight-page .overnight-room-actions .overnight-room-waiting {
  width: 100% !important;
  justify-content: center !important;
  justify-self: stretch !important;
}

body.overnight-page .overnight-room-kick {
  top: 5px !important;
  right: 5px !important;
  width: 20px !important;
  height: 20px !important;
  font-size: 13px !important;
}

@media (max-width: 1060px) {
  body.overnight-page .overnight-room-row {
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) !important;
  }

  body.overnight-page .overnight-room-row__slots {
    grid-column: 2 !important;
  }

  body.overnight-page .overnight-room-actions {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.overnight-page .overnight-room-row {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    padding: 14px !important;
  }

  body.overnight-page .overnight-room-row__slots {
    grid-column: 1 !important;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)) !important;
    justify-content: stretch !important;
  }

  body.overnight-page .overnight-room-actions {
    grid-column: 1 !important;
  }
}

body.overnight-page .overnight-notice-dialog__actions {
  display: flex !important;
  justify-content: flex-end !important;
  margin-top: 20px !important;
}

body.overnight-page .overnight-notice-dialog__actions .action-btn {
  min-width: 132px !important;
}

/* Overnight lobby: denser created-room cards with larger player slots. */
body.overnight-page .overnight-room-row {
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: center !important;
  min-height: 126px !important;
  padding: 16px 174px 16px 22px !important;
}

body.overnight-page .overnight-room-row__head {
  grid-column: 1 !important;
}

body.overnight-page .overnight-room-row__head strong {
  font-size: 1.16rem !important;
}

body.overnight-page .overnight-room-row__tags {
  margin-left: 38px !important;
}

body.overnight-page .overnight-room-row__slots {
  grid-column: 2 !important;
  grid-template-columns: repeat(var(--overnight-room-slots, 4), minmax(116px, 136px)) !important;
  justify-content: center !important;
  gap: 10px !important;
}

body.overnight-page .overnight-room-row--slots-5 .overnight-room-row__slots,
body.overnight-page .overnight-room-row--slots-6 .overnight-room-row__slots,
body.overnight-page .overnight-room-row--slots-7 .overnight-room-row__slots,
body.overnight-page .overnight-room-row--slots-8 .overnight-room-row__slots {
  grid-template-columns: repeat(var(--overnight-room-slots, 5), minmax(104px, 120px)) !important;
  gap: 8px !important;
}

body.overnight-page .overnight-room-slot {
  min-height: 98px !important;
  padding: 10px 10px 9px !important;
}

body.overnight-page .overnight-room-slot i {
  width: 54px !important;
  height: 54px !important;
  font-size: 1.24rem !important;
}

body.overnight-page .overnight-room-slot--empty i {
  width: 42px !important;
  height: 42px !important;
}

body.overnight-page .overnight-room-slot span {
  font-size: .76rem !important;
}

body.overnight-page .overnight-room-slot--empty span {
  font-size: .68rem !important;
  overflow: visible !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
}

body.overnight-page .overnight-room-slot small {
  font-size: .64rem !important;
}

body.overnight-page .overnight-room-actions {
  position: absolute !important;
  top: 16px !important;
  right: 20px !important;
  grid-column: auto !important;
  display: grid !important;
  gap: 8px !important;
  min-width: 128px !important;
  width: 128px !important;
}

body.overnight-page .overnight-room-actions .overnight-room-waiting {
  min-height: 31px !important;
  padding: 0 10px !important;
  font-size: .72rem !important;
}

body.overnight-page .overnight-room-actions .overnight-room-action {
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: .8rem !important;
}

@media (max-width: 1060px) {
  body.overnight-page .overnight-room-row {
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) !important;
    padding-right: 154px !important;
  }

  body.overnight-page .overnight-room-actions {
    right: 14px !important;
    width: 118px !important;
    min-width: 118px !important;
  }

  body.overnight-page .overnight-room-row__slots,
  body.overnight-page .overnight-room-row--slots-5 .overnight-room-row__slots,
  body.overnight-page .overnight-room-row--slots-6 .overnight-room-row__slots,
  body.overnight-page .overnight-room-row--slots-7 .overnight-room-row__slots,
  body.overnight-page .overnight-room-row--slots-8 .overnight-room-row__slots {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.overnight-page .overnight-room-row {
    grid-template-columns: 1fr !important;
    padding: 14px !important;
  }

  body.overnight-page .overnight-room-row__slots {
    grid-column: 1 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.overnight-page .overnight-room-actions {
    position: static !important;
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

body.overnight-room-game-page.modal-open .overnight-room-dice-stage {
  display: none !important;
}

body.overnight-room-game-page #site-dialog-modal,
body.overnight-room-game-page .site-dialog-modal {
  z-index: 1000 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom:not(.overnight-route__cell--corner) .overnight-route__title-fit--stacked .overnight-route__title-stack,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--service-fee .overnight-route__title-stack {
  flex-direction: row-reverse !important;
}

body.overnight-room-game-page .overnight-room-player.is-left .overnight-room-player__avatar {
  font-size: clamp(2rem, 3.8dvh, 2.7rem) !important;
  line-height: 1 !important;
  color: #f8fafc !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55) !important;
}

body.overnight-page .overnight-room-row--party .overnight-room-row__slots {
  grid-template-columns: repeat(2, minmax(96px, 112px)) minmax(62px, 78px) repeat(2, minmax(96px, 112px)) !important;
  align-items: center !important;
}

body.overnight-page .overnight-room-team-divider {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 62px !important;
  height: 62px !important;
  color: #f8fafc !important;
  font-weight: 1000 !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45) !important;
}

body.overnight-page .overnight-room-team-divider i {
  font-style: normal !important;
  font-size: 2.25rem !important;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, .42)) !important;
}

@media (max-width: 760px) {
  body.overnight-page .overnight-room-row--party .overnight-room-row__slots {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.overnight-page .overnight-room-team-divider {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: 42px !important;
  }
}

body.overnight-room-game-page .overnight-room-player .overnight-room-player__money-bursts i {
  top: calc(var(--burst-index, 0) * 44px) !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: rgba(7, 11, 18, .86) !important;
  font-size: clamp(2rem, 3.2dvh, 2.55rem) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .26) !important;
}

body.overnight-room-game-page .overnight-room-player .overnight-room-player__money-bursts i.is-gain {
  animation: overnightMoneyGain 3.45s cubic-bezier(.16, 1, .3, 1) forwards !important;
}

body.overnight-room-game-page .overnight-room-player .overnight-room-player__money-bursts i.is-loss {
  animation: overnightMoneyLoss 3.45s cubic-bezier(.16, 1, .3, 1) forwards !important;
}

.overnight-money-burst-layer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  overflow: visible;
}

.overnight-money-burst-layer .overnight-room-player__money-burst {
  position: fixed;
  left: var(--burst-left, 50vw);
  top: calc(var(--burst-top, 50vh) + (var(--burst-index, 0) * 44px));
  display: block;
  width: max-content;
  max-width: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(7, 11, 18, .86);
  font-size: clamp(2rem, 3.2dvh, 2.55rem);
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .36);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .26);
  will-change: transform, opacity;
}

.overnight-money-burst-layer .overnight-room-player__money-burst.is-gain {
  color: #67f59f;
  animation: overnightMoneyGain 3.45s cubic-bezier(.16, 1, .3, 1) forwards;
}

.overnight-money-burst-layer .overnight-room-player__money-burst.is-loss {
  color: #ff8585;
  animation: overnightMoneyLoss 3.45s cubic-bezier(.16, 1, .3, 1) forwards;
}

/* Overnight decision timers and loss modal. */
body.overnight-room-game-page .overnight-room-player__timer {
  position: relative !important;
  display: grid !important;
  grid-row: auto !important;
  place-items: center !important;
  width: clamp(48px, 5.4dvh, 64px) !important;
  height: clamp(48px, 5.4dvh, 64px) !important;
  border: 3px solid color-mix(in srgb, var(--player-color, #38bdf8) 70%, #ffffff 15%) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.16), transparent 58%),
    color-mix(in srgb, var(--player-color, #38bdf8) 28%, rgba(15, 23, 42, .94)) !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--player-color, #38bdf8) 22%, transparent), inset 0 0 0 1px rgba(255,255,255,.1) !important;
}

body.overnight-room-game-page .overnight-room-player__timer b {
  color: #ffffff !important;
  font-size: clamp(1.35rem, 2.6dvh, 1.85rem) !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
}

body.overnight-room-game-page .overnight-room-player__timer.is-danger {
  border-color: rgba(248, 113, 113, .95) !important;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.16), transparent 58%),
    rgba(127, 29, 29, .92) !important;
  animation: overnightDecisionTimerPulse .8s ease-in-out infinite alternate;
}

body.overnight-room-game-page .overnight-trade-timer {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(56, 189, 248, .32);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 165, 233, .12);
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
}

body.overnight-room-game-page .overnight-loss-modal {
  position: absolute;
  inset: 0;
  z-index: 92;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 7, 18, .58);
  backdrop-filter: blur(5px);
}

body.overnight-room-game-page .overnight-loss-modal.hidden {
  display: none !important;
}

body.overnight-room-game-page .overnight-loss-modal__card {
  width: min(360px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(248, 113, 113, .34);
  border-radius: 14px;
  background: rgba(15, 23, 42, .96);
  color: #f8fafc;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

body.overnight-room-game-page .overnight-loss-modal__avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(248, 113, 113, .78);
  border-radius: 999px;
  background: var(--player-color, #ef4444);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 1000;
  box-shadow: 0 16px 34px rgba(248, 113, 113, .16);
}

body.overnight-room-game-page .overnight-loss-modal__copy span {
  color: #fecaca;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.overnight-room-game-page .overnight-loss-modal__copy h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.45rem, 4vw, 2rem);
  letter-spacing: 0;
}

body.overnight-room-game-page .overnight-loss-modal__copy p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.35;
}

body.overnight-room-game-page .overnight-loss-modal__card button {
  min-width: 132px;
  min-height: 42px;
  border: 1px solid rgba(248, 113, 113, .5);
  border-radius: 10px;
  background: #ef4444;
  color: #ffffff;
  font-weight: 1000;
}

@keyframes overnightDecisionTimerPulse {
  from { transform: scale(1); box-shadow: 0 10px 26px rgba(248, 113, 113, .18); }
  to { transform: scale(1.04); box-shadow: 0 14px 34px rgba(248, 113, 113, .34); }
}

/* Overnight lobby slot width final override. */
body.overnight-page .overnight-room-row__slots {
  grid-template-columns: repeat(var(--overnight-room-slots, 4), minmax(116px, 136px)) !important;
}

body.overnight-page .overnight-room-row--slots-5 .overnight-room-row__slots,
body.overnight-page .overnight-room-row--slots-6 .overnight-room-row__slots,
body.overnight-page .overnight-room-row--slots-7 .overnight-room-row__slots,
body.overnight-page .overnight-room-row--slots-8 .overnight-room-row__slots {
  grid-template-columns: repeat(var(--overnight-room-slots, 5), minmax(104px, 120px)) !important;
}

body.overnight-page .overnight-room-row--party .overnight-room-row__slots {
  grid-template-columns: repeat(2, minmax(116px, 136px)) minmax(62px, 78px) repeat(2, minmax(116px, 136px)) !important;
}

body.overnight-page .overnight-room-slot--empty span {
  overflow: visible !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
}

@media (max-width: 1060px) {
  body.overnight-page .overnight-room-row__slots,
  body.overnight-page .overnight-room-row--slots-5 .overnight-room-row__slots,
  body.overnight-page .overnight-room-row--slots-6 .overnight-room-row__slots,
  body.overnight-page .overnight-room-row--slots-7 .overnight-room-row__slots,
  body.overnight-page .overnight-room-row--slots-8 .overnight-room-row__slots {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)) !important;
  }
}

@keyframes overnightMoneyGain {
  0% {
    opacity: 0;
    transform: translate(-50%, 26px) scale(.92);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, 12px) scale(1);
  }
  58% {
    opacity: 1;
    transform: translate(-50%, -24px) scale(1.04);
  }
  88% {
    opacity: 1;
    transform: translate(-50%, -24px) scale(1.04);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -24px) scale(1);
  }
}

@keyframes overnightMoneyLoss {
  0% {
    opacity: 0;
    transform: translate(-50%, -18px) scale(.92);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -4px) scale(1);
  }
  58% {
    opacity: 1;
    transform: translate(-50%, 30px) scale(1.04);
  }
  88% {
    opacity: 1;
    transform: translate(-50%, 30px) scale(1.04);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 30px) scale(1);
  }
}

/* Final logo geometry: keep after text-label board overrides. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__logo-wrap {
  position: absolute !important;
  inset: 0 !important;
  z-index: 12 !important;
  display: grid !important;
  place-items: center !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal !important;
  line-height: 1 !important;
  -webkit-line-clamp: unset !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--right .overnight-route__logo-wrap {
  inset: 8px 11px 3px 2px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--left .overnight-route__logo-wrap {
  inset: 8px 2px 3px 11px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--top .overnight-route__logo-wrap {
  inset: 13px 2px 2px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--bottom .overnight-route__logo-wrap {
  inset: 2px 2px 13px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell:has(.overnight-route__logo-wrap) > strong:not(.overnight-route__logo-wrap) {
  display: none !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell:has(.overnight-route__logo-wrap) .overnight-route__index {
  z-index: 45 !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__logo-badge {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: translate(var(--logo-x, 0), var(--logo-y, 0)) scale(var(--logo-scale, 1)) !important;
  writing-mode: horizontal-tb !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__logo-wrap--vertical .overnight-route__logo-badge {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: calc(var(--corner-size) - 15px) !important;
  height: calc(var(--edge-size) - 4px) !important;
  transform: translate(calc(-50% + var(--logo-x, 0)), calc(-50% + var(--logo-y, 0))) rotate(90deg) scale(var(--logo-scale, 1)) !important;
  transform-origin: center !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__logo-badge--glass,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__logo-badge--light,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__logo-badge--dark {
  padding: 4px 5px !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__logo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transform: none !important;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__logo-wrap--vertical .overnight-route__logo {
  transform: none !important;
}

/* Overnight: recovery flow for selling branches and mortgaging from the board. */
body.overnight-room-game-page .overnight-choice-modal--mortgage-rent {
  position: fixed !important;
  z-index: 520 !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(520px, calc(100vw - 32px)) !important;
  max-height: min(74dvh, 520px) !important;
}

body.overnight-room-game-page .overnight-recovery-selected {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-height: 44px;
  max-height: clamp(88px, 18dvh, 150px);
  overflow: auto;
}

body.overnight-room-game-page .overnight-recovery-chip {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  color: #f8fafc;
  font-weight: 900;
  cursor: pointer;
}

body.overnight-room-game-page .overnight-recovery-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

body.overnight-room-game-page .overnight-recovery-chip b {
  color: #86efac;
  white-space: nowrap;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-recovery-selectable {
  cursor: pointer;
  outline: 2px dashed rgba(134, 239, 172, .68) !important;
  outline-offset: -5px;
  box-shadow:
    inset 0 0 0 1px rgba(134, 239, 172, .22),
    0 0 18px rgba(34, 197, 94, .18) !important;
  animation: overnightRecoveryPulse 1s ease-in-out infinite;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-recovery-selected {
  outline-style: solid !important;
  outline-color: rgba(250, 204, 21, .92) !important;
  box-shadow:
    inset 0 0 0 2px rgba(250, 204, 21, .45),
    0 0 22px rgba(250, 204, 21, .24) !important;
  animation: none;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-recovery-muted {
  filter: brightness(.48) saturate(.72);
  opacity: .54;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-recovery-muted .overnight-route__tokens,
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-recovery-muted.is-current {
  filter: brightness(1.35) saturate(1.15);
  opacity: .9;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-asset-manageable {
  cursor: pointer;
  outline: 2px dashed rgba(96, 165, 250, .72) !important;
  outline-offset: -5px;
  box-shadow:
    inset 0 0 0 1px rgba(96, 165, 250, .24),
    0 0 18px rgba(59, 130, 246, .18) !important;
  animation: overnightAssetPulse 1s ease-in-out infinite;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-asset-manageable.is-selected {
  outline-style: solid !important;
  outline-color: rgba(125, 211, 252, .98) !important;
  box-shadow:
    inset 0 0 0 2px rgba(125, 211, 252, .48),
    0 0 24px rgba(14, 165, 233, .28) !important;
  animation: none;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-asset-foreign::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 40;
  border-radius: inherit;
  background: rgba(2, 6, 23, .62);
  pointer-events: none;
}

body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell.is-asset-foreign.is-current::after {
  background: rgba(2, 6, 23, .46);
}

@keyframes overnightRecoveryPulse {
  0%, 100% {
    outline-color: rgba(134, 239, 172, .58);
    filter: brightness(1);
    box-shadow:
      inset 0 0 0 1px rgba(134, 239, 172, .22),
      0 0 14px rgba(34, 197, 94, .16);
  }
  50% {
    outline-color: rgba(190, 242, 100, .98);
    filter: brightness(1.24);
    box-shadow:
      inset 0 0 0 2px rgba(190, 242, 100, .54),
      0 0 30px rgba(132, 204, 22, .42);
  }
}

@keyframes overnightAssetPulse {
  0%, 100% {
    outline-color: rgba(96, 165, 250, .60);
    filter: brightness(1);
    box-shadow:
      inset 0 0 0 1px rgba(96, 165, 250, .22),
      0 0 14px rgba(59, 130, 246, .16);
  }
  50% {
    outline-color: rgba(125, 211, 252, .98);
    filter: brightness(1.22);
    box-shadow:
      inset 0 0 0 2px rgba(125, 211, 252, .48),
      0 0 30px rgba(14, 165, 233, .40);
  }
}

body.overnight-room-game-page .overnight-route__recovery-badge,
body.overnight-room-game-page .overnight-route__mortgage-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 58;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .9);
  border: 1px solid rgba(250, 204, 21, .72);
  color: #fde68a;
  font-size: .64rem;
  font-weight: 1000;
  line-height: 1;
  pointer-events: none;
}

body.overnight-room-game-page .overnight-route__recovery-badge {
  z-index: 60;
}

/* Overnight board: keep business hover visible after ownership color overrides. */
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--venue:hover:not(.is-recovery-selectable):not(.is-asset-manageable),
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--transport:hover:not(.is-recovery-selectable):not(.is-asset-manageable),
body.overnight-room-game-page .overnight-room-route--board .overnight-route__cell--utility:hover:not(.is-recovery-selectable):not(.is-asset-manageable) {
  border-color: color-mix(in srgb, var(--owner-color, var(--cell-color, #93a4bd)) 48%, #ffffff 52%) !important;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .24),
    0 0 0 1px rgba(255, 255, 255, .08) !important;
}

/* Overnight asset manager. */
body.overnight-room-game-page .overnight-room-player__assets {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(251, 191, 36, .72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #f8c94e 0%, #e5a526 100%),
    rgba(245, 158, 11, .36);
  color: #2d1800;
  font-size: .68rem;
  font-weight: 1000;
  box-shadow: 0 10px 22px rgba(245, 158, 11, .24), inset 0 1px 0 rgba(255, 255, 255, .22);
  cursor: pointer;
}

body.overnight-room-game-page .overnight-room-player__assets:hover {
  border-color: rgba(253, 224, 71, .9);
  background:
    linear-gradient(180deg, #ffda65 0%, #ecad2d 100%),
    rgba(245, 158, 11, .42);
  color: #241200;
}

body.overnight-room-game-page .overnight-room-player__assets.is-active {
  border-color: rgba(125, 211, 252, .88);
  background:
    linear-gradient(180deg, #7dd3fc 0%, #38bdf8 100%),
    rgba(14, 165, 233, .42);
  color: #082f49;
  box-shadow: 0 10px 22px rgba(14, 165, 233, .26), inset 0 1px 0 rgba(255, 255, 255, .28);
}

body.overnight-room-game-page .overnight-assets-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 560;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 14, .46);
  backdrop-filter: blur(5px);
}

body.overnight-room-game-page .overnight-assets-modal-layer.hidden {
  display: none !important;
}

body.overnight-room-game-page .overnight-assets-modal-layer .overnight-choice-modal--assets {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 1 !important;
}

body.overnight-room-game-page .overnight-choice-modal--assets {
  position: fixed !important;
  z-index: 530 !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(620px, calc(100vw - 32px)) !important;
  max-height: min(78dvh, 640px) !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

body.overnight-room-game-page .overnight-assets-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(15, 23, 42, .72);
  color: #e5e7eb;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

body.overnight-room-game-page .overnight-assets-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

body.overnight-room-game-page .overnight-asset-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
}

body.overnight-room-game-page .overnight-asset-row .overnight-mortgage-option__swatch {
  background: var(--asset-color, #60a5fa);
}

body.overnight-room-game-page .overnight-asset-row__main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.overnight-room-game-page .overnight-asset-row__main strong,
body.overnight-room-game-page .overnight-asset-row__main span,
body.overnight-room-game-page .overnight-asset-row__main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.overnight-room-game-page .overnight-asset-row__main strong {
  color: #f8fafc;
  font-size: .92rem;
  font-weight: 1000;
}

body.overnight-room-game-page .overnight-asset-row__main span {
  color: rgba(226, 232, 240, .72);
  font-size: .72rem;
  font-weight: 800;
}

body.overnight-room-game-page .overnight-asset-row__main small {
  color: #fca5a5;
  font-size: .66rem;
  font-weight: 800;
}

body.overnight-room-game-page .overnight-asset-row__action {
  min-width: 132px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(102, 212, 163, .38);
  border-radius: 7px;
  background: rgba(34, 197, 94, .16);
  color: #dcfce7;
  font-size: .76rem;
  font-weight: 1000;
  cursor: pointer;
}

body.overnight-room-game-page .overnight-asset-row__action:hover:not(:disabled) {
  border-color: rgba(134, 239, 172, .68);
  background: rgba(34, 197, 94, .26);
}

body.overnight-room-game-page .overnight-asset-row__action:disabled {
  cursor: not-allowed;
  opacity: .42;
}

/* Overnight lobby: visible invite CTA and passive waiting slots. */
body.overnight-page .overnight-room-slot--waiting {
  cursor: default !important;
  pointer-events: none !important;
}

body.overnight-page .overnight-room-slot--waiting i {
  border-color: rgba(148, 163, 184, .22) !important;
  background: rgba(15, 23, 42, .48) !important;
  color: rgba(203, 213, 225, .72) !important;
}

body.overnight-page .overnight-room-slot--waiting span {
  color: rgba(203, 213, 225, .82) !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

body.overnight-page .overnight-room-action--invite {
  border-color: rgba(251, 191, 36, .72) !important;
  background: linear-gradient(180deg, #f8c94e 0%, #e5a526 100%) !important;
  color: #2d1800 !important;
  box-shadow: 0 12px 28px rgba(245, 158, 11, .24) !important;
}

body.overnight-page .overnight-room-action--invite:hover {
  border-color: rgba(253, 224, 71, .9) !important;
  background: linear-gradient(180deg, #ffda65 0%, #ecad2d 100%) !important;
  color: #241200 !important;
}

@media (max-width: 900px) {
  body.overnight-page .overnight-room-actions .overnight-room-action--invite {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
  }
}

/* Overnight room chat: softer event feed skin. */
body.overnight-room-game-page .overnight-room-chat-slot {
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(102, 212, 163, .10), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, .82), rgba(7, 11, 18, .92)) !important;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .14), 0 18px 42px rgba(0, 0, 0, .30) !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat.room-chat--expanded {
  border-radius: 0 !important;
  background: transparent !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__header,
body.overnight-room-game-page .overnight-room-chat-slot .room-turn-widget {
  border-radius: 20px !important;
  border: 1px solid rgba(148, 163, 184, .14) !important;
  background: rgba(15, 23, 42, .54) !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__messages {
  padding: 16px 18px !important;
  gap: 10px !important;
  scrollbar-color: rgba(148, 163, 184, .38) transparent;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message {
  align-items: flex-start !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message--self {
  justify-content: flex-end !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message--other {
  justify-content: flex-start !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message__bubble {
  max-width: min(76%, 440px) !important;
  padding: 10px 13px 11px !important;
  border: 1px solid rgba(148, 163, 184, .14) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .08), transparent 34%),
    rgba(24, 31, 43, .88) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22) !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message--self .chat-message__bubble {
  border-color: rgba(96, 165, 250, .30) !important;
  border-bottom-right-radius: 8px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, .16), transparent 38%),
    rgba(15, 35, 58, .92) !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message--other .chat-message__bubble {
  border-bottom-left-radius: 8px !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message--prompt .chat-message__bubble,
body.overnight-room-game-page .overnight-room-chat-slot .chat-message--system .chat-message__system {
  border: 1px solid rgba(102, 212, 163, .22) !important;
  border-radius: 999px !important;
  background: rgba(102, 212, 163, .10) !important;
  color: rgba(209, 250, 229, .92) !important;
  box-shadow: none !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message__meta {
  margin-bottom: 3px !important;
  gap: 10px !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message__author {
  color: rgba(226, 232, 240, .78) !important;
  font-size: .62rem !important;
  font-weight: 900 !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message__time {
  color: rgba(148, 163, 184, .78) !important;
  font-size: .58rem !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message__text {
  color: rgba(248, 250, 252, .94) !important;
  font-size: .92rem !important;
  line-height: 1.36 !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message__badge {
  border-radius: 999px !important;
  background: rgba(102, 212, 163, .16) !important;
  color: #a7f3d0 !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .chat-message__highlight.is-place {
  padding: .02em .34em !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--chat-highlight-color) 22%, rgba(15, 23, 42, .72)) !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__composer {
  grid-template-columns: minmax(0, 1fr) 46px !important;
  min-height: 68px !important;
  padding: 12px 14px 14px !important;
  border-top: 0 !important;
  background: linear-gradient(180deg, transparent, rgba(7, 11, 18, .72)) !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__input {
  min-height: 46px !important;
  height: 46px !important;
  padding: 12px 16px !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, .72) !important;
  color: #f8fafc !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__input:focus {
  border-color: rgba(102, 212, 163, .48) !important;
  box-shadow: 0 0 0 3px rgba(102, 212, 163, .10), inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

body.overnight-room-game-page .overnight-room-chat-slot .room-chat__send,
body.overnight-room-game-page .overnight-room-chat-slot .room-chat__send--icon {
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  border-color: rgba(102, 212, 163, .42) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(102, 212, 163, .24), rgba(34, 197, 94, .18)) !important;
  color: #d1fae5 !important;
}

/* Overnight debt recovery: keep chat usable and point players to board cells. */
body.overnight-room-game-page .overnight-room-chat-slot {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  align-content: stretch !important;
  min-height: 0 !important;
}

body.overnight-room-game-page .overnight-chat-recovery-panel {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  padding: 12px 14px 0 !important;
}

body.overnight-room-game-page .overnight-chat-recovery-panel.hidden {
  display: none !important;
}

body.overnight-room-game-page .overnight-chat-recovery-panel + .room-chat,
body.overnight-room-game-page .overnight-chat-recovery-panel + .room-chat.room-chat--expanded {
  grid-column: 1 !important;
  grid-row: 2 !important;
  min-height: 0 !important;
}

body.overnight-room-game-page .overnight-chat-recovery {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(134, 239, 172, .28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(134, 239, 172, .16), transparent 34%),
    linear-gradient(180deg, rgba(20, 83, 45, .34), rgba(15, 23, 42, .88));
  box-shadow: 0 16px 32px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .06);
}

body.overnight-room-game-page .overnight-chat-recovery--assets {
  border-color: rgba(96, 165, 250, .30);
  background:
    radial-gradient(circle at 0% 0%, rgba(96, 165, 250, .17), transparent 34%),
    linear-gradient(180deg, rgba(30, 64, 175, .30), rgba(15, 23, 42, .90));
}

body.overnight-room-game-page .overnight-chat-recovery--assets .overnight-chat-recovery__head span {
  color: rgba(191, 219, 254, .82);
}

body.overnight-room-game-page .overnight-chat-recovery--assets .overnight-chat-recovery__head > b {
  background: rgba(96, 165, 250, .16);
  color: #bfdbfe;
}

body.overnight-room-game-page .overnight-chat-recovery--assets .overnight-chat-recovery__summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.overnight-room-game-page .overnight-chat-recovery__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

body.overnight-room-game-page .overnight-chat-recovery__head span {
  display: block;
  color: rgba(187, 247, 208, .78);
  font-size: .62rem;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.overnight-room-game-page .overnight-chat-recovery__head strong {
  display: block;
  min-width: 0;
  margin-top: 2px;
  color: #f8fafc;
  font-size: 1.02rem;
  font-weight: 1000;
  line-height: 1.08;
}

body.overnight-room-game-page .overnight-chat-recovery__head > b {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(134, 239, 172, .14);
  color: #bbf7d0;
  font-size: .86rem;
  font-weight: 1000;
  white-space: nowrap;
}

body.overnight-room-game-page .overnight-chat-recovery__head > b.is-shortfall {
  border: 1px solid rgba(248, 113, 113, .42);
  background:
    radial-gradient(circle at 18% 20%, rgba(248, 113, 113, .28), transparent 58%),
    rgba(127, 29, 29, .58);
  color: #fecaca;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, .12), 0 0 18px rgba(248, 113, 113, .16);
}

body.overnight-room-game-page .overnight-chat-recovery p {
  margin: 0;
  color: rgba(226, 232, 240, .95);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.38;
}

body.overnight-room-game-page .overnight-chat-recovery__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

body.overnight-room-game-page .overnight-chat-recovery__summary span {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  background: rgba(15, 23, 42, .56);
  color: rgba(203, 213, 225, .82);
  font-size: .66rem;
  font-weight: 700;
}

body.overnight-room-game-page .overnight-chat-recovery__summary b {
  display: block;
  margin-top: 2px;
  color: #f8fafc;
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
}

body.overnight-room-game-page .overnight-chat-recovery__summary .is-ready b {
  color: #86efac;
}

body.overnight-room-game-page .overnight-chat-recovery--assets .overnight-chat-recovery__summary .is-total {
  grid-column: 1 / -1;
  border-color: rgba(134, 239, 172, .28);
  background:
    radial-gradient(circle at 0% 0%, rgba(134, 239, 172, .16), transparent 34%),
    rgba(15, 23, 42, .72);
  color: rgba(187, 247, 208, .86);
}

body.overnight-room-game-page .overnight-chat-recovery--assets .overnight-chat-recovery__summary .is-total b {
  color: #86efac;
}

body.overnight-room-game-page .overnight-chat-recovery__selected {
  display: grid;
  gap: 6px;
  max-height: 86px;
  overflow: auto;
}

body.overnight-room-game-page .overnight-chat-recovery__empty {
  display: block;
  padding: 8px 10px;
  border: 1px dashed rgba(134, 239, 172, .30);
  border-radius: 8px;
  color: rgba(187, 247, 208, .86);
  font-size: .72rem;
  font-weight: 900;
}

body.overnight-room-game-page .overnight-chat-recovery__actions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 8px;
}

body.overnight-room-game-page .overnight-chat-recovery__actions.is-single {
  grid-template-columns: 1fr;
}

body.overnight-room-game-page .overnight-chat-recovery__actions .overnight-choice-modal__button {
  min-height: 42px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
}

@media (max-width: 720px) {
  body.overnight-room-game-page .overnight-chat-recovery-panel {
    padding: 8px 10px 0 !important;
  }

  body.overnight-room-game-page .overnight-chat-recovery {
    gap: 6px;
    padding: 8px;
  }

  body.overnight-room-game-page .overnight-chat-recovery__head strong {
    font-size: .9rem;
  }

  body.overnight-room-game-page .overnight-chat-recovery__head span,
  body.overnight-room-game-page .overnight-chat-recovery__summary span {
    font-size: .56rem;
  }

  body.overnight-room-game-page .overnight-chat-recovery__head > b {
    padding: 5px 8px;
    font-size: .78rem;
  }

  body.overnight-room-game-page .overnight-chat-recovery p {
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.24;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.overnight-room-game-page .overnight-chat-recovery__summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.overnight-room-game-page .overnight-chat-recovery--assets .overnight-chat-recovery__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.overnight-room-game-page .overnight-chat-recovery__summary span {
    padding: 5px 6px;
  }

  body.overnight-room-game-page .overnight-chat-recovery__summary b {
    font-size: .68rem;
  }

  body.overnight-room-game-page .overnight-chat-recovery__selected {
    max-height: 36px;
  }

  body.overnight-room-game-page .overnight-chat-recovery__selected .overnight-recovery-chip {
    min-height: 34px;
    padding: 6px 8px;
    font-size: .76rem;
  }

  body.overnight-room-game-page .overnight-chat-recovery__actions {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  }

  body.overnight-room-game-page .overnight-chat-recovery__actions .overnight-choice-modal__button {
    min-height: 36px !important;
    font-size: .74rem !important;
  }
}

@media (max-width: 720px) {
  body.truth-page.truth-create-modal-open:not(.modal-open),
  body.alias-mobile-flow-open:not(.modal-open),
  body.whoami-mobile-flow-open:not(.modal-open) {
    position: static !important;
    width: auto !important;
    overflow: visible !important;
    overflow-y: auto !important;
  }

  body.truth-page.truth-create-modal-open .topbar,
  body.truth-page.truth-create-modal-open .truth-games,
  body.truth-page.truth-create-modal-open #truth-active-session-panel,
  body.truth-page.truth-create-modal-open .site-footer,
  body.truth-page.truth-create-modal-open .site-shell-mobile-nav {
    display: none !important;
    filter: none !important;
    transform: none !important;
  }

  body.alias-mobile-flow-open .page-shell > :not(#alias-mobile-flow-root),
  body.whoami-mobile-flow-open:not(.whoami-game-active) .page-shell > :not(#whoami-mobile-flow-root) {
    visibility: hidden;
  }

  body.truth-page .truth-create-modal,
  .alias-mobile-flow,
  .whoami-mobile-flow {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    display: block !important;
    width: 100% !important;
    min-height: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
    background:
      radial-gradient(circle at 18% -8%, rgba(82, 211, 169, .12), transparent 36%),
      linear-gradient(180deg, #071018 0%, #090d14 100%) !important;
    backdrop-filter: none !important;
  }

  body.truth-page .truth-create-modal .overnight-modal__overlay,
  .alias-mobile-flow .overnight-modal__overlay,
  .whoami-mobile-flow .overnight-modal__overlay {
    display: none !important;
  }

  body.truth-page .truth-create-dialog,
  .alias-mobile-flow-dialog,
  .whoami-mobile-flow-dialog {
    width: 100% !important;
    min-height: 100svh !important;
    max-height: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    background:
      radial-gradient(circle at 18% -8%, rgba(82, 211, 169, .12), transparent 36%),
      linear-gradient(180deg, #071018 0%, #090d14 100%) !important;
  }

  body.truth-page .truth-create-dialog--mode-step,
  .alias-mobile-flow-dialog.truth-create-dialog--mode-step {
    display: grid !important;
    align-content: center !important;
    gap: 16px !important;
    width: 100% !important;
    min-height: 100svh !important;
    padding: max(58px, env(safe-area-inset-top, 0px) + 22px) 16px max(26px, env(safe-area-inset-bottom, 0px) + 26px) !important;
  }

  body.truth-page .truth-create-dialog__settings,
  .alias-mobile-flow-dialog .truth-create-dialog__settings,
  .whoami-mobile-flow-dialog .truth-create-dialog__settings {
    min-height: 100svh !important;
    padding: max(52px, env(safe-area-inset-top, 0px) + 44px) 16px calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 14px !important;
  }

  .alias-mobile-category-settings,
  .whoami-mobile-settings {
    padding-top: max(52px, env(safe-area-inset-top, 0px) + 44px) !important;
  }

  body.truth-page .truth-create-mobile-head,
  .alias-mobile-flow .truth-create-mobile-head {
    padding-right: 48px !important;
  }

  body.truth-page .truth-create-dialog h2,
  .alias-mobile-flow-dialog h2,
  .whoami-mobile-flow-dialog h2 {
    max-width: calc(100% - 42px);
    overflow-wrap: anywhere;
  }

  body.truth-page .truth-create-dialog .overnight-modal-close,
  .alias-mobile-flow-dialog .overnight-modal-close,
  .whoami-mobile-flow-dialog .overnight-modal-close {
    position: fixed !important;
    top: max(12px, env(safe-area-inset-top, 0px) + 8px) !important;
    right: 14px !important;
    z-index: 12 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 14px !important;
    background: rgba(31, 42, 58, .94) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28) !important;
  }

  body.truth-page .truth-create-category-list,
  .alias-mobile-category-list,
  .alias-mobile-category-settings .alias-mobile-category-list,
  .whoami-mobile-category-list {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  body.truth-page .truth-create-category {
    min-height: 74px;
    align-items: start;
    padding: 11px 11px;
  }

  body.truth-page .truth-create-category .truth-invite-category__emoji,
  body.truth-page .truth-create-category .truth-create-category__mark {
    margin-top: 2px;
  }

  body.truth-page .truth-create-category.is-locked .truth-create-category__mark {
    margin-top: 22px;
  }

  body.truth-page .truth-create-category__description {
    font-size: .7rem;
    line-height: 1.3;
  }

  body.truth-page .truth-create-selected,
  .alias-mobile-category-settings .truth-create-selected,
  .whoami-mobile-settings .truth-create-selected {
    max-height: none !important;
    overflow: visible !important;
  }

  body.truth-page .truth-create-continue,
  body.truth-page #truth-confirm-create,
  .alias-mobile-flow .truth-create-continue,
  .whoami-mobile-flow .truth-create-continue {
    position: static !important;
    width: 100% !important;
    min-height: 54px !important;
    margin-top: 8px !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .08) !important;
  }

  #truth-category-edit-modal {
    place-items: start center !important;
    align-items: start !important;
    min-height: 100dvh !important;
    padding: max(10px, env(safe-area-inset-top, 0px) + 10px) 10px calc(104px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }

  #truth-category-edit-modal .truth-category-edit-dialog {
    width: min(100%, 560px) !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 auto !important;
  }

  #truth-category-edit-modal .truth-category-edit-list {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  #whoami-premium-gate-modal,
  #premium-gate-modal,
  #reverse-word-premium-gate-modal,
  #room-photo-premium-modal,
  #bottle-premium-modal,
  body.truth-page .truth-premium-modal,
  .alias-premium-inline-modal {
    place-items: start center !important;
    align-items: start !important;
    min-height: 100dvh !important;
    padding: max(10px, env(safe-area-inset-top, 0px) + 10px) 10px calc(104px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }

  #whoami-premium-gate-modal {
    z-index: 2200 !important;
  }

  #premium-gate-modal,
  #reverse-word-premium-gate-modal,
  #room-photo-premium-modal,
  #bottle-premium-modal {
    z-index: 2600 !important;
  }

  body.truth-page .truth-premium-modal {
    z-index: 2200 !important;
  }

  .alias-premium-inline-modal {
    z-index: 2200 !important;
  }

  #whoami-premium-gate-modal .premium-gate-modal__dialog,
  #premium-gate-modal .premium-gate-modal__dialog,
  #reverse-word-premium-gate-modal .premium-gate-modal__dialog,
  #room-photo-premium-modal .premium-gate-modal__dialog,
  #bottle-premium-modal .premium-gate-modal__dialog,
  body.truth-page .truth-premium-modal .premium-gate-modal__dialog,
  .alias-premium-inline-modal .premium-gate-modal__dialog {
    width: min(100%, 680px) !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 auto !important;
  }

  body.truth-page .truth-session-conflict-modal {
    position: fixed !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    min-height: 100dvh !important;
    padding: max(16px, env(safe-area-inset-top, 0px) + 12px) 16px max(16px, env(safe-area-inset-bottom, 0px) + 16px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.truth-page .truth-session-conflict-dialog {
    width: min(100%, 560px) !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 22px 18px 18px !important;
    border-radius: 24px !important;
  }

  body.truth-page .truth-session-conflict-dialog h2 {
    max-width: calc(100% - 42px);
    font-size: clamp(1.55rem, 7vw, 2.05rem);
    line-height: 1.08;
  }

  body.truth-page .truth-session-conflict-dialog .game-session-modal__actions {
    grid-template-columns: 1fr !important;
  }
}
/* Bottle game */
.bottle-page .app-shell {
  max-width: 1360px;
}

.bottle-shell {
  gap: 18px;
}

.bottle-entry {
  min-height: min(680px, calc(100vh - 150px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, .58fr);
  gap: 14px;
  align-items: stretch;
}

.bottle-entry__copy,
.bottle-entry__form,
.bottle-music-panel,
.bottle-gifts-panel,
.bottle-chat,
.bottle-toolbar {
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(145deg, rgba(31, 41, 55, .9), rgba(88, 28, 61, .64));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

.bottle-entry__copy {
  padding: clamp(28px, 5vw, 64px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(122deg, #201737 0%, #4a214a 42%, #9f4963 74%, #f2b46f 100%);
}

.bottle-entry__copy h2,
.bottle-toolbar h2 {
  margin: 0;
  letter-spacing: 0;
}

.bottle-entry__copy h2 {
  font-size: clamp(2.45rem, 4.6vw, 4.65rem);
  max-width: 680px;
}

.bottle-entry__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.bottle-entry__chips span,
.bottle-room-summary span {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
  color: rgba(255, 255, 255, .86);
  padding: 7px 11px;
  font-size: .82rem;
  font-weight: 800;
}

.bottle-entry__form {
  border-radius: 8px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 14px;
}

.bottle-photo-picker {
  display: grid;
  justify-items: center;
  gap: 8px;
  cursor: pointer;
}

.bottle-photo-picker input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.bottle-photo-picker__preview,
.bottle-profile-card__photo,
.bottle-player__photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #132238, #7f1d55);
  color: rgba(255, 255, 255, .82);
}

.bottle-photo-picker__preview {
  width: min(220px, 58vw);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
}

.bottle-photo-picker__preview img,
.bottle-player__photo img,
.bottle-profile-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottle-entry__name {
  display: grid;
  gap: 7px;
}

.bottle-entry__name span {
  color: var(--muted);
  font-size: .92rem;
}

.bottle-entry__name input,
.bottle-chat__form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  padding: 13px 14px;
}

.bottle-game {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
}

.bottle-toolbar {
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.bottle-room-info {
  min-width: 0;
  flex: 1 1 260px;
}

.bottle-room-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.bottle-room-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.bottle-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.bottle-toolbar__actions .action-btn {
  min-height: 40px;
  padding-inline: 13px;
}

.bottle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 14px;
  min-height: 650px;
}

.bottle-board {
  position: relative;
  min-height: 650px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  background:
    radial-gradient(circle at 18% 20%, rgba(244, 114, 182, .24), transparent 28%),
    radial-gradient(circle at 82% 76%, rgba(45, 212, 191, .18), transparent 30%),
    linear-gradient(135deg, #07111f, #30114a 48%, #0f3442);
}

.bottle-players {
  position: absolute;
  inset: 18px;
}

.bottle-player {
  position: absolute;
  transform: translate(-50%, -50%);
  width: clamp(92px, 8.5vw, 124px);
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  padding: 7px;
  display: grid;
  gap: 6px;
  justify-items: center;
  background: rgba(8, 13, 26, .78);
  color: var(--text);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .24);
  cursor: pointer;
}

.bottle-player.is-turn {
  border-color: #facc15;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, .24), 0 16px 32px rgba(0, 0, 0, .24);
}

.bottle-player.is-target {
  border-color: #fb7185;
  box-shadow: 0 0 0 2px rgba(251, 113, 133, .3), 0 16px 32px rgba(0, 0, 0, .24);
}

.bottle-player.is-me {
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, .28), 0 16px 32px rgba(0, 0, 0, .24);
}

.bottle-player__photo {
  width: 62px;
  aspect-ratio: 1;
  border-radius: 8px;
}

.bottle-player__gift-stickers {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.bottle-player__gift-sticker,
.bottle-player__gift-more {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .42), transparent 35%),
    linear-gradient(135deg, rgba(250, 204, 21, .9), rgba(251, 113, 133, .88));
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

.bottle-player__gift-art {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.bottle-player__gift-art img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .26));
}

.bottle-player__gift-art.is-emoji {
  font-size: 1rem;
}

.bottle-player__gift-sticker.is-slot-0 { top: 3px; right: 3px; }
.bottle-player__gift-sticker.is-slot-1 { right: 3px; bottom: 3px; }
.bottle-player__gift-sticker.is-slot-2 { top: 3px; left: 3px; }
.bottle-player__gift-sticker.is-slot-3 { left: 3px; bottom: 3px; }

.bottle-player.is-vip .bottle-player__gift-sticker.is-slot-0 {
  top: auto;
  right: 3px;
  bottom: 3px;
}

.bottle-player.is-vip .bottle-player__gift-sticker.is-slot-1 {
  top: 3px;
  right: auto;
  bottom: auto;
  left: 3px;
}

.bottle-player.is-vip .bottle-player__gift-sticker.is-slot-2 {
  top: auto;
  right: auto;
  bottom: 3px;
  left: 3px;
}

.bottle-player__gift-more {
  left: 3px;
  bottom: 3px;
  background: linear-gradient(135deg, #67e8f9, #a78bfa 52%, #fb7185);
  font-size: .72rem;
}

.bottle-gift-flight-layer {
  position: absolute;
  inset: 0;
  z-index: 34;
  pointer-events: none;
}

.bottle-gift-flight {
  position: absolute;
  left: 0;
  top: 0;
  width: min(184px, 36vw);
  height: min(184px, 36vw);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 30px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .42), transparent 35%),
    linear-gradient(135deg, rgba(250, 204, 21, .96), rgba(251, 113, 133, .92));
  font-size: clamp(4rem, 11vw, 7.4rem);
  line-height: 1;
  box-shadow: 0 32px 74px rgba(0, 0, 0, .38), 0 0 48px rgba(250, 204, 21, .28);
  will-change: transform, opacity;
}

.bottle-gift-flight img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .32));
}

.bottle-player__timer {
  min-width: 34px;
  height: 34px;
  margin-top: -2px;
  border: 2px solid rgba(250, 204, 21, .72);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .34), transparent 34%),
    linear-gradient(145deg, rgba(250, 204, 21, .95), rgba(249, 115, 22, .88));
  color: #22120a;
  font-size: .82rem;
  font-weight: 950;
  line-height: 1;
  box-shadow:
    0 8px 18px rgba(249, 115, 22, .26),
    inset 0 1px 0 rgba(255, 255, 255, .4);
}

.bottle-player__timer.is-danger {
  border-color: rgba(254, 202, 202, .82);
  background: linear-gradient(145deg, #fecdd3, #fb7185 48%, #e11d48);
  color: #fff;
  box-shadow:
    0 0 0 4px rgba(251, 113, 133, .16),
    0 10px 22px rgba(225, 29, 72, .3);
}

.bottle-player.is-vip .bottle-player__photo {
  border: 2px solid rgba(250, 204, 21, .78);
  box-shadow: 0 0 18px rgba(250, 204, 21, .28);
}

.bottle-vip-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  border-radius: 999px;
  padding: 3px 6px 2px;
  background: linear-gradient(135deg, #fff7ad, #facc15 48%, #f97316);
  color: #2b1600;
  font-size: .62rem;
  line-height: 1;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .04em;
  box-shadow: 0 6px 16px rgba(250, 204, 21, .32);
}

.bottle-player strong,
.bottle-player small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottle-player small {
  color: var(--muted);
  font-size: .72rem;
}

.bottle-spin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(160px, 16vw, 210px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  gap: 8px;
  color: white;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 20px 50px rgba(0, 0, 0, .35);
  cursor: pointer;
  isolation: isolate;
  transition: border-color .18s ease, filter .18s ease, box-shadow .18s ease, background .18s ease;
}

.bottle-spin::before {
  content: '';
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, rgba(250, 204, 21, .78), rgba(251, 113, 133, .62), rgba(125, 211, 252, .52));
  filter: blur(14px);
  transition: opacity .18s ease;
}

.bottle-spin.is-spin-ready {
  color: #fffbe8;
  background:
    linear-gradient(145deg, rgba(250, 204, 21, .26), rgba(251, 113, 133, .22) 48%, rgba(125, 211, 252, .14)),
    rgba(71, 28, 73, .72);
  box-shadow:
    inset 0 0 0 2px rgba(250, 204, 21, .72),
    inset 0 0 42px rgba(251, 113, 133, .24),
    0 0 0 5px rgba(250, 204, 21, .14),
    0 26px 62px rgba(0, 0, 0, .42),
    0 0 44px rgba(250, 204, 21, .26);
  animation: bottleSpinReadyPulse 1.8s ease-in-out infinite;
}

.bottle-spin.is-spin-ready::before {
  opacity: .72;
}

.bottle-spin.is-spin-ready:hover {
  filter: brightness(1.08);
  box-shadow:
    inset 0 0 0 2px rgba(255, 237, 149, .95),
    inset 0 0 48px rgba(251, 113, 133, .3),
    0 0 0 6px rgba(250, 204, 21, .18),
    0 30px 70px rgba(0, 0, 0, .46),
    0 0 56px rgba(250, 204, 21, .34);
}

.bottle-spin:disabled {
  cursor: default;
  opacity: .82;
}

.bottle-spin__shape {
  --bottle-silhouette: polygon(0 47%, 4% 36%, 10% 33%, 14% 36%, 31% 36%, 39% 17%, 49% 8%, 87% 8%, 96% 19%, 100% 37%, 100% 63%, 96% 81%, 87% 92%, 49% 92%, 39% 83%, 31% 64%, 14% 64%, 10% 67%, 4% 64%, 0 53%);
  position: relative;
  width: clamp(166px, 13.2vw, 198px);
  height: 70px;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 88% 50%, rgba(255, 255, 255, .22) 0 14%, transparent 15%),
    linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .12) 25%, rgba(23, 52, 92, .28) 62%, rgba(3, 10, 24, .38)),
    linear-gradient(90deg, #ffe08a 0 7.8%, #d39531 7.8% 10.6%, rgba(214, 239, 255, .96) 10.6% 17%, rgba(130, 207, 255, .9) 17% 29%, rgba(74, 153, 226, .88) 29% 37%, rgba(236, 250, 255, .9) 37% 43%, rgba(68, 153, 226, .82) 43% 100%);
  clip-path: var(--bottle-silhouette);
  box-shadow:
    inset 0 6px 13px rgba(255, 255, 255, .38),
    inset 0 -13px 18px rgba(7, 18, 45, .36),
    inset 0 0 0 1px rgba(205, 236, 255, .32);
  filter: drop-shadow(0 0 18px rgba(205, 236, 255, .28)) drop-shadow(0 14px 22px rgba(7, 10, 24, .34));
  transition: transform 1.5s cubic-bezier(.17, .84, .24, 1);
}

.bottle-spin__shape::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: var(--bottle-silhouette);
  background:
    linear-gradient(90deg, rgba(20, 72, 142, .5), rgba(255, 255, 255, .5), rgba(20, 72, 142, .28)) 28.5% 50% / 3px 24px no-repeat,
    linear-gradient(90deg, rgba(20, 72, 142, .42), rgba(255, 255, 255, .45), rgba(20, 72, 142, .25)) 36.5% 50% / 4px 41px no-repeat,
    linear-gradient(90deg, #d83362 0 34%, #ffb4c8 34% 47%, #be234c 47% 100%) 54% 50% / 35px 48px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, .34), transparent 70%) 74% 50% / 4px 54px no-repeat,
    radial-gradient(ellipse at 76% 18%, rgba(255, 255, 255, .28), transparent 24%);
}

.bottle-spin__shape::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: var(--bottle-silhouette);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .62) 0 13%, rgba(255, 255, 255, .18) 14% 26%, transparent 27% 58%, rgba(8, 18, 45, .24) 82%, rgba(2, 6, 23, .38) 100%),
    radial-gradient(ellipse at 19% 46%, rgba(255, 255, 255, .26), transparent 12%),
    radial-gradient(ellipse at 88% 50%, rgba(2, 6, 23, .12), transparent 18%);
  box-shadow:
    inset 0 0 0 1px rgba(222, 244, 255, .34),
    inset 14px 0 10px rgba(255, 255, 255, .12),
    inset -8px 0 14px rgba(5, 14, 34, .18);
}

.bottle-spin b {
  max-width: 150px;
  font-size: .98rem;
  line-height: 1.25;
  font-weight: 950;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .42);
}

.bottle-spin.is-spin-ready b {
  color: #fff7d6;
  text-transform: uppercase;
  letter-spacing: .04em;
}

@keyframes bottleSpinReadyPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.025);
  }
}

.bottle-decision {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 18;
  width: min(620px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: minmax(92px, 136px) minmax(180px, 1fr) minmax(92px, 136px);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(251, 113, 133, .14), rgba(250, 204, 21, .1)),
    rgba(7, 17, 31, .88);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
  animation: bottleDecisionAppear .32s ease both;
}

.bottle-decision__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bottle-decision__actions.is-watching {
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  min-height: 92px;
}

.bottle-decision__hint {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.bottle-decision__actions.is-watching .bottle-decision__hint {
  color: #fff7ed;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  text-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.bottle-decision__wait {
  grid-column: 1 / -1;
  margin-top: -2px;
  color: rgba(255, 255, 255, .62);
  font-size: .72rem;
  font-weight: 850;
  text-align: center;
}

.bottle-decision__actions .action-btn {
  min-height: 52px;
  padding-inline: 14px;
}

.bottle-decision-player {
  min-width: 0;
  border: 1px solid rgba(250, 204, 21, .26);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--text);
  background: linear-gradient(160deg, rgba(33, 22, 54, .94), rgba(112, 27, 83, .78));
  box-shadow: 0 18px 38px rgba(0, 0, 0, .26);
  cursor: pointer;
  animation:
    bottleDecisionPlayerInLeft .42s cubic-bezier(.2, .85, .25, 1.15) both,
    bottleChoiceFloat 2.6s ease-in-out .42s infinite;
}

.bottle-decision-player--target {
  animation:
    bottleDecisionPlayerInRight .42s cubic-bezier(.2, .85, .25, 1.15) both,
    bottleChoiceFloat 2.6s ease-in-out .42s infinite reverse;
}

.bottle-decision-player.is-me {
  border-color: rgba(125, 211, 252, .46);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .26), 0 0 0 3px rgba(125, 211, 252, .12);
}

.bottle-decision-player.has-choice {
  border-color: rgba(134, 239, 172, .5);
  background: linear-gradient(160deg, rgba(20, 83, 45, .88), rgba(59, 28, 72, .78));
}

.bottle-decision-player__photo {
  width: clamp(56px, 6vw, 82px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #3b1b73, #be185d 64%, #facc15);
  color: rgba(255, 255, 255, .82);
}

.bottle-decision-player__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottle-decision-player strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
}

.bottle-decision-player small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, .62);
  font-size: .68rem;
  font-weight: 850;
}

.bottle-player.is-choice {
  animation: bottleBoardChoiceFloat 3.2s ease-in-out infinite;
  will-change: translate;
}

.bottle-player.is-target.is-choice {
  animation-delay: -1.6s;
}

@keyframes bottleDecisionAppear {
  from {
    opacity: 0;
    transform: translate(-50%, -45%) scale(.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes bottleDecisionPlayerInLeft {
  from {
    opacity: 0;
    transform: translateX(-42px) scale(.94);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes bottleDecisionPlayerInRight {
  from {
    opacity: 0;
    transform: translateX(42px) scale(.94);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes bottleChoiceFloat {
  0%, 100% {
    translate: 0 -5px;
  }
  50% {
    translate: 0 7px;
  }
}

@keyframes bottleBoardChoiceFloat {
  0%, 100% {
    translate: 0 -4px;
  }
  50% {
    translate: 0 5px;
  }
}

.bottle-decision-result {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 18px;
  background: radial-gradient(circle at center, rgba(7, 9, 13, .26), rgba(7, 9, 13, .04) 46%, transparent 68%);
}

.bottle-decision-result.hidden {
  display: none;
}

.bottle-decision-result__card {
  width: min(420px, calc(100vw - 42px));
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: 24px 22px 26px;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  background: rgba(12, 16, 25, .88);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
  animation: bottleDecisionResultFloat 3.6s cubic-bezier(.2, .85, .22, 1) both;
}

.bottle-decision-result__card span {
  font-size: clamp(5.2rem, 15vw, 8.5rem);
  line-height: .92;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .36));
}

.bottle-decision-result__card strong {
  color: #fff7d6;
  font-size: clamp(1.35rem, 4.6vw, 2.15rem);
  line-height: 1.08;
}

.bottle-decision-result__card small {
  max-width: 30ch;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
  line-height: 1.35;
}

.bottle-decision-result.is-kiss .bottle-decision-result__card {
  border-color: rgba(251, 113, 133, .48);
  background: linear-gradient(145deg, rgba(88, 28, 50, .92), rgba(22, 28, 54, .9));
}

.bottle-decision-result.is-pass .bottle-decision-result__card {
  border-color: rgba(148, 163, 184, .44);
  background: linear-gradient(145deg, rgba(30, 41, 59, .94), rgba(76, 29, 54, .82));
}

@keyframes bottleDecisionResultFloat {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(.9);
  }
  12%, 78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(0) scale(.98);
  }
}

.bottle-side {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
}

.bottle-music-panel,
.bottle-gifts-panel,
.bottle-chat {
  border-radius: 8px;
  padding: 12px;
}

.bottle-music-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  overflow: hidden;
}

.bottle-music-panel > .bottle-panel-head,
.bottle-music-panel > .bottle-music-now,
.bottle-music-panel > .bottle-music-hint {
  grid-column: 1 / -1;
}

.bottle-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bottle-music-panel .bottle-panel-head {
  display: grid;
  grid-template-columns: auto minmax(98px, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-bottom: 0;
}

.bottle-music-panel .bottle-panel-head > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottle-panel-head span {
  color: var(--muted);
  font-size: .86rem;
}

#bottle-music-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  color: rgba(255, 255, 255, .62);
  font-size: .74rem;
  line-height: 1;
  white-space: nowrap;
}

.bottle-vip-link {
  border: 0;
  border-radius: 999px;
  padding: 4px 8px 3px;
  background: linear-gradient(135deg, #fff7ad, #facc15 55%, #f97316);
  color: #2b1600;
  font: inherit;
  font-size: .72rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(250, 204, 21, .24);
}

.bottle-vip-free {
  border-radius: 999px;
  padding: 5px 9px 4px;
  background: rgba(250, 204, 21, .16);
  color: #fef3c7;
  font-weight: 900;
}

.bottle-gifts {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: stretch;
  gap: 7px;
}

.bottle-gifts-track {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.bottle-gifts-nav {
  width: 34px;
  min-width: 34px;
  border: 1px solid rgba(250, 204, 21, .24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045)),
    rgba(15, 23, 42, .46);
  color: #fff7d6;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

.bottle-gifts-nav:not(:disabled):hover,
.bottle-gifts-nav:not(:disabled):focus-visible {
  border-color: rgba(250, 204, 21, .68);
  background:
    linear-gradient(180deg, rgba(250, 204, 21, .18), rgba(251, 113, 133, .12)),
    rgba(15, 23, 42, .58);
  transform: translateY(-1px);
}

.bottle-gifts-nav:disabled {
  opacity: .34;
  cursor: default;
}

.bottle-gift,
.bottle-package {
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  padding: 8px;
  display: grid;
  gap: 5px;
  text-align: center;
  cursor: pointer;
}

.bottle-gift {
  min-width: 0;
  min-height: 94px;
  grid-template-rows: 46px 16px 16px;
  justify-items: center;
  align-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .16), transparent 46%),
    linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 24px rgba(0, 0, 0, .14);
}

.bottle-gift::before {
  content: "";
  position: absolute;
  inset: 7px 8px auto;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 68%);
  pointer-events: none;
}

.bottle-gift.is-rare {
  border-color: rgba(244, 114, 182, .36);
  background:
    radial-gradient(circle at 50% 20%, rgba(244, 114, 182, .22), transparent 48%),
    linear-gradient(150deg, rgba(131, 24, 67, .24), rgba(255, 255, 255, .045));
}

.bottle-gift.is-epic {
  border-color: rgba(192, 132, 252, .42);
  background:
    radial-gradient(circle at 50% 20%, rgba(192, 132, 252, .24), transparent 48%),
    linear-gradient(150deg, rgba(88, 28, 135, .28), rgba(250, 204, 21, .08));
}

.bottle-gift.is-legendary,
.bottle-gift.is-premium {
  border-color: rgba(250, 204, 21, .58);
  background:
    radial-gradient(circle at 50% 18%, rgba(250, 204, 21, .32), transparent 50%),
    linear-gradient(150deg, rgba(250, 204, 21, .18), rgba(120, 73, 18, .22) 52%, rgba(255, 255, 255, .05));
}

.bottle-gift.is-selected {
  border-color: #2dd4bf;
  background:
    radial-gradient(circle at 50% 18%, rgba(45, 212, 191, .35), transparent 50%),
    linear-gradient(150deg, rgba(45, 212, 191, .22), rgba(250, 204, 21, .1));
  box-shadow: 0 0 0 1px rgba(45, 212, 191, .22), 0 14px 30px rgba(45, 212, 191, .14);
}

.bottle-gift__art {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .045)),
    rgba(255, 255, 255, .06);
  z-index: 1;
}

.bottle-gift__art img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .28));
}

.bottle-gift__art.is-emoji {
  font-size: 1.45rem;
}

.bottle-gift strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, .9);
  font-size: .68rem;
  line-height: 1;
  z-index: 1;
}

.bottle-gift small {
  color: #fef3c7;
  font-size: .66rem;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  z-index: 1;
}

.bottle-gift-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}

.bottle-gift-hint.is-active {
  color: #99f6e4;
}

.bottle-chat {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.bottle-private-list {
  grid-row: 3;
}

.bottle-chat__messages {
  grid-row: 4;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.bottle-chat__messages:empty::before {
  content: 'Чат пуст';
  margin: auto;
  color: var(--muted);
  font-size: .9rem;
}

.bottle-chat-message {
  flex: 0 0 auto;
  min-width: 0;
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, .09);
  display: grid;
  gap: 2px;
}

.bottle-chat-message.is-system {
  background: rgba(250, 204, 21, .12);
}

.bottle-chat-message.is-vip {
  border: 1px solid rgba(250, 204, 21, .26);
  background: linear-gradient(135deg, rgba(250, 204, 21, .18), rgba(251, 113, 133, .09));
}

.bottle-chat-message strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .72);
}

.bottle-chat-vip,
.bottle-profile-card__vip {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 3px 7px 2px;
  background: linear-gradient(135deg, #fff7ad, #facc15 55%, #f97316);
  color: #2b1600;
  font-size: .62rem;
  line-height: 1;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .04em;
  box-shadow: 0 6px 16px rgba(250, 204, 21, .26);
}

.bottle-chat-message span {
  line-height: 1.35;
}

.bottle-chat__form {
  grid-row: 5;
  min-width: 0;
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  padding-top: 12px;
}

.bottle-chat__form .action-btn {
  min-width: 46px;
  padding-inline: 0;
}

.bottle-profile-modal,
.bottle-balance-modal,
.bottle-invite-modal,
.bottle-owned-room-modal,
.bottle-premium-modal {
  max-width: 520px;
}

.bottle-profile-modal {
  width: min(620px, calc(100vw - 28px));
  max-width: 620px;
  max-height: min(820px, calc(100dvh - 28px));
  overflow: hidden;
  border-color: rgba(250, 204, 21, .22);
  background:
    radial-gradient(circle at 22% 12%, rgba(250, 204, 21, .13), transparent 30%),
    radial-gradient(circle at 76% 16%, rgba(236, 72, 153, .14), transparent 32%),
    linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(17, 24, 39, .96) 60%, rgba(12, 31, 42, .94));
}

.bottle-balance-modal {
  max-width: 560px;
  gap: 14px;
  border-color: rgba(250, 204, 21, .38);
  background:
    linear-gradient(160deg, rgba(255, 248, 232, .08), rgba(255, 255, 255, 0) 28%),
    linear-gradient(145deg, rgba(45, 30, 72, .98), rgba(108, 36, 82, .94) 54%, rgba(35, 77, 83, .88));
  box-shadow: 0 28px 70px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  overflow: hidden;
}

.bottle-balance-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(138px, 170px);
  gap: 14px;
  align-items: stretch;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(250, 204, 21, .3);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, .16), rgba(251, 113, 133, .14) 48%, rgba(45, 212, 191, .1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.bottle-balance-hero__copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.bottle-balance-hero h3 {
  color: #fff8d8;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.bottle-balance-hero__copy p:last-child {
  max-width: 36ch;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
  line-height: 1.42;
}

.bottle-balance-hero__bank {
  border: 1px solid rgba(250, 204, 21, .32);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)),
    rgba(250, 204, 21, .1);
}

.bottle-balance-hero__bank > span {
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff7ad, #facc15 58%, #f97316);
  font-size: 1.6rem;
  box-shadow: 0 12px 26px rgba(249, 115, 22, .3);
}

.bottle-balance-hero__bank strong {
  color: #fff;
  font-size: .95rem;
  line-height: 1.1;
}

.bottle-balance-hero__bank b {
  font-size: 1.28rem;
  color: #fde047;
}

.bottle-balance-hero__bank small {
  color: rgba(255, 255, 255, .58);
  font-size: .68rem;
  font-weight: 800;
}

.bottle-profile-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 12px;
  justify-items: center;
  min-height: 0;
  max-height: calc(100dvh - 74px);
  text-align: center;
}

.bottle-profile-card--loading {
  grid-template-rows: auto auto auto;
  place-content: center;
  min-height: 260px;
}

.bottle-profile-loading {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .16);
  border-top-color: rgba(250, 204, 21, .92);
  background:
    radial-gradient(circle at center, rgba(250, 204, 21, .2), transparent 52%),
    linear-gradient(145deg, rgba(88, 28, 135, .6), rgba(251, 113, 133, .28));
  box-shadow: 0 0 26px rgba(250, 204, 21, .2);
  animation: bottle-profile-loading-spin .8s linear infinite;
}

@keyframes bottle-profile-loading-spin {
  to { transform: rotate(360deg); }
}

.bottle-profile-card__photo {
  width: min(220px, 58vw);
  aspect-ratio: 1;
  border-radius: 8px;
}

.bottle-profile-card h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bottle-vip-badge--profile {
  top: 10px;
  right: 10px;
  padding: 6px 10px 5px;
  font-size: .78rem;
}

.bottle-profile-card__gifts {
  width: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  max-height: clamp(190px, 34vh, 340px);
  align-self: stretch;
  overflow: hidden;
}

.bottle-profile-gifts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, .66);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bottle-profile-gifts-head strong {
  border-radius: 999px;
  padding: 5px 9px;
  background: linear-gradient(135deg, rgba(250, 204, 21, .22), rgba(251, 113, 133, .16));
  color: #fff7d6;
  font-size: .72rem;
}

.bottle-profile-gifts-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 4px;
  max-height: 100%;
  scrollbar-gutter: stable;
}

.bottle-profile-gift {
  position: relative;
  min-height: 178px;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  background:
    radial-gradient(circle at 22% 18%, rgba(148, 163, 184, .18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .045));
  display: grid;
  grid-template-rows: 76px auto auto minmax(32px, auto);
  justify-items: center;
  align-content: start;
  gap: 6px;
  overflow: hidden;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 24px rgba(0, 0, 0, .16);
}

.bottle-profile-gift::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 118px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  filter: blur(2px);
  pointer-events: none;
}

.bottle-profile-gift.is-rare {
  border-color: rgba(244, 114, 182, .42);
  background:
    radial-gradient(circle at 24% 18%, rgba(244, 114, 182, .22), transparent 36%),
    linear-gradient(145deg, rgba(131, 24, 67, .28), rgba(255, 255, 255, .05));
}

.bottle-profile-gift.is-epic {
  border-color: rgba(192, 132, 252, .46);
  background:
    radial-gradient(circle at 24% 18%, rgba(192, 132, 252, .25), transparent 38%),
    linear-gradient(145deg, rgba(88, 28, 135, .34), rgba(250, 204, 21, .08));
}

.bottle-profile-gift.is-legendary,
.bottle-profile-gift.is-premium {
  border-color: rgba(250, 204, 21, .72);
  background:
    radial-gradient(circle at 24% 18%, rgba(250, 204, 21, .34), transparent 38%),
    linear-gradient(145deg, rgba(250, 204, 21, .2), rgba(120, 73, 18, .26) 48%, rgba(255, 255, 255, .055));
  box-shadow:
    0 16px 38px rgba(250, 204, 21, .18),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}

.bottle-profile-gift__art {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  font-size: 2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 24px rgba(0, 0, 0, .18);
  z-index: 1;
  justify-self: center;
}

.bottle-profile-gift__art img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .3));
}

.bottle-profile-gift__art.is-emoji {
  font-size: 2rem;
}

.bottle-profile-gift.is-rare .bottle-profile-gift__art {
  background: linear-gradient(135deg, rgba(244, 114, 182, .28), rgba(125, 211, 252, .12));
}

.bottle-profile-gift.is-epic .bottle-profile-gift__art {
  background: linear-gradient(135deg, rgba(192, 132, 252, .3), rgba(250, 204, 21, .12));
}

.bottle-profile-gift.is-premium .bottle-profile-gift__art,
.bottle-profile-gift.is-legendary .bottle-profile-gift__art {
  background: linear-gradient(135deg, rgba(254, 243, 199, .34), rgba(250, 204, 21, .2));
}

.bottle-profile-gift__count {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 38px;
  height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  background: linear-gradient(135deg, #67e8f9, #a78bfa 52%, #fb7185);
  color: #fff;
  font-size: .8rem;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(167, 139, 250, .28);
  z-index: 2;
}

.bottle-profile-gift.is-premium .bottle-profile-gift__count {
  border-color: rgba(250, 204, 21, .6);
  background: linear-gradient(135deg, #fff7ad, #facc15 55%, #f97316);
  color: #2b1600;
  box-shadow: 0 10px 24px rgba(250, 204, 21, .32);
}

.bottle-profile-gift__price {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .72);
  font-size: .64rem;
  line-height: 1.1;
  font-weight: 900;
  z-index: 1;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottle-profile-gift.is-premium .bottle-profile-gift__price {
  background: rgba(250, 204, 21, .18);
  color: #fef3c7;
}

.bottle-profile-gift strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff7d6;
  font-size: .92rem;
  line-height: 1.12;
  z-index: 1;
}

.bottle-profile-gift small {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: rgba(255, 255, 255, .66);
  font-size: .72rem;
  line-height: 1.2;
  z-index: 1;
}

.bottle-profile-gift.is-premium small,
.bottle-profile-gift.is-legendary small {
  color: rgba(254, 243, 199, .78);
}

.bottle-profile-gifts-empty {
  width: 100%;
  min-height: 110px;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 8px;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, .045);
}

.bottle-gift-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.bottle-gift-picker-modal.hidden {
  display: none;
}

.bottle-gift-picker-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, .58);
  backdrop-filter: blur(12px);
}

.bottle-gift-picker {
  position: relative;
  width: min(560px, calc(100vw - 28px));
  max-height: min(720px, calc(100dvh - 28px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(250, 204, 21, .34);
  background:
    radial-gradient(circle at 18% 10%, rgba(250, 204, 21, .14), transparent 34%),
    radial-gradient(circle at 82% 6%, rgba(244, 114, 182, .14), transparent 32%),
    linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(17, 24, 39, .96) 58%, rgba(12, 31, 42, .94));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
}

.bottle-gift-picker__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .9);
  font-size: 1.25rem;
  font-weight: 900;
}

.bottle-gift-picker__head {
  display: grid;
  gap: 4px;
  padding-right: 46px;
}

.bottle-gift-picker__head span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.bottle-gift-picker__head h3 {
  margin: 0;
  color: #fff7d6;
  font-size: 1.2rem;
}

.bottle-gift-picker__head small,
.bottle-gift-picker__status {
  color: rgba(255, 255, 255, .68);
  font-size: .82rem;
  font-weight: 800;
}

.bottle-gift-picker__status {
  min-height: 0;
  margin: 0;
}

.bottle-gift-picker__status:empty {
  display: none;
}

.bottle-gift-picker__status.is-danger {
  color: #fecdd3;
}

.bottle-gift-picker__grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 4px;
  scrollbar-gutter: stable;
}

.bottle-gift-picker-card {
  position: relative;
  min-height: 146px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  display: grid;
  grid-template-rows: 70px auto auto;
  justify-items: center;
  align-content: start;
  gap: 6px;
  padding: 12px 10px;
  background:
    radial-gradient(circle at 24% 18%, rgba(148, 163, 184, .17), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .045));
  color: rgba(255, 255, 255, .9);
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 24px rgba(0, 0, 0, .18);
}

.bottle-gift-picker-card.is-premium {
  border-color: rgba(250, 204, 21, .74);
  background:
    radial-gradient(circle at 24% 18%, rgba(250, 204, 21, .3), transparent 38%),
    linear-gradient(145deg, rgba(250, 204, 21, .19), rgba(120, 73, 18, .24) 50%, rgba(255, 255, 255, .055));
  box-shadow: 0 16px 36px rgba(250, 204, 21, .18), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.bottle-gift-picker-card__art {
  width: 70px;
  aspect-ratio: 1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 24px rgba(0, 0, 0, .18);
}

.bottle-gift-picker-card__art img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .3));
}

.bottle-gift-picker-card__art.is-emoji {
  font-size: 2rem;
}

.bottle-gift-picker-card span {
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, .08);
  color: #fef3c7;
  font-size: .66rem;
  line-height: 1.1;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottle-gift-picker-card strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff7d6;
  font-size: .86rem;
  line-height: 1.12;
}

.bottle-gift-picker-card:disabled {
  opacity: .62;
  cursor: wait;
}

.bottle-gift-picker__empty {
  grid-column: 1 / -1;
  min-height: 130px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .045);
}

.bottle-profile-card__kick {
  border-color: rgba(251, 113, 133, .45);
  background: rgba(251, 113, 133, .14);
  color: #fecdd3;
}

.bottle-owned-room-modal {
  width: min(520px, calc(100vw - 28px));
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(250, 204, 21, .18), transparent 34%),
    radial-gradient(circle at 100% 8%, rgba(251, 113, 133, .18), transparent 32%),
    linear-gradient(155deg, rgba(21, 27, 40, .98), rgba(23, 19, 35, .98));
  border-color: rgba(250, 204, 21, .28);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .48),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.bottle-owned-room-modal .modal__close {
  background: rgba(255, 255, 255, .1);
  color: #fff7d6;
}

.bottle-owned-room-hero {
  position: relative;
  min-height: 172px;
  padding: 6px 128px 18px 0;
  display: grid;
  align-content: center;
  gap: 8px;
}

.bottle-owned-room-hero::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 30px;
  width: 92px;
  height: 124px;
  border-radius: 999px 999px 28px 28px;
  background:
    linear-gradient(180deg, rgba(147, 197, 253, .92) 0 18%, rgba(236, 254, 255, .88) 18% 28%, rgba(251, 113, 133, .9) 28% 58%, rgba(125, 211, 252, .72) 58% 100%);
  clip-path: polygon(33% 0, 67% 0, 70% 22%, 84% 34%, 84% 92%, 72% 100%, 28% 100%, 16% 92%, 16% 34%, 30% 22%);
  opacity: .85;
  transform: rotate(14deg);
  box-shadow:
    0 20px 44px rgba(251, 113, 133, .2),
    inset 0 12px 18px rgba(255, 255, 255, .22);
}

.bottle-owned-room-hero__icon {
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid rgba(250, 204, 21, .36);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(250, 204, 21, .2), rgba(251, 113, 133, .14));
  font-size: 1.35rem;
  box-shadow: 0 12px 28px rgba(250, 204, 21, .12);
}

.bottle-owned-room-hero h3 {
  margin: 0;
  max-width: 12ch;
  color: #fff;
  font-size: clamp(1.65rem, 4.6vw, 2.25rem);
  line-height: .98;
}

.bottle-owned-room-hero p:last-child {
  max-width: 34ch;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: .92rem;
  line-height: 1.45;
}

.bottle-owned-room-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 16px;
}

.bottle-owned-room-benefits span {
  min-height: 92px;
  border: 1px solid rgba(250, 204, 21, .24);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  align-content: end;
  gap: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035)),
    rgba(250, 204, 21, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.bottle-owned-room-benefits span::before {
  color: #facc15;
  font-size: 1.35rem;
  line-height: 1;
}

.bottle-owned-room-benefits span:nth-child(1)::before { content: '#'; }
.bottle-owned-room-benefits span:nth-child(2)::before { content: '×'; }
.bottle-owned-room-benefits span:nth-child(3)::before { content: '♪'; }

.bottle-owned-room-benefits b {
  color: #fff7d6;
  font-size: .98rem;
  line-height: 1.1;
}

.bottle-owned-room-benefits small {
  color: rgba(255, 255, 255, .62);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.25;
}

.bottle-owned-room-actions {
  display: grid;
  margin-top: 4px;
}

.bottle-owned-room-actions .action-btn {
  min-height: 54px;
  border: 0;
  background: linear-gradient(135deg, #fff7ad, #facc15 46%, #f97316);
  color: #21120a;
  font-weight: 950;
  box-shadow:
    0 18px 38px rgba(249, 115, 22, .28),
    inset 0 1px 0 rgba(255, 255, 255, .42);
}

#bottle-owned-room-status {
  margin-top: 14px;
  min-height: 20px;
  color: #86efac;
  font-weight: 800;
}

.bottle-premium-plans {
  margin-block: 10px 2px;
}

.bottle-premium-plan {
  min-width: 0;
}

.bottle-premium-modal .premium-gate-modal__footer {
  margin-top: 2px;
}

@media (min-width: 721px) {
  .bottle-premium-modal {
    width: min(880px, calc(100vw - 48px));
    max-width: 880px;
    max-height: min(820px, calc(100dvh - 32px));
  }

  .bottle-premium-modal .premium-gate-modal__head {
    max-width: 720px;
  }

  .bottle-premium-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }

  .bottle-premium-plan {
    min-height: 216px;
  }
}

.bottle-packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bottle-package {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border-color: rgba(250, 204, 21, .22);
  padding: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "coin badge"
    "amount amount"
    "price note";
  align-items: center;
  gap: 8px 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(250, 204, 21, .08)),
    rgba(255, 255, 255, .04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.bottle-package:hover,
.bottle-package:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, .58);
  box-shadow: 0 16px 34px rgba(249, 115, 22, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.bottle-package__coin {
  grid-area: coin;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff7ad, #facc15 58%, #f97316);
  color: #3a2100;
  font-size: 1.38rem;
  box-shadow: 0 10px 20px rgba(249, 115, 22, .24);
}

.bottle-package__badge {
  grid-area: badge;
  justify-self: end;
  border: 1px solid rgba(250, 204, 21, .24);
  border-radius: 999px;
  padding: 4px 7px 3px;
  background: rgba(250, 204, 21, .12);
  color: #fef3c7;
  font-size: .62rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.bottle-package strong {
  grid-area: amount;
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  color: #fff;
  font-size: clamp(1.38rem, 4vw, 1.85rem);
  line-height: .95;
}

.bottle-package strong small {
  color: rgba(255, 255, 255, .72);
  font-size: .72rem;
  font-weight: 900;
}

.bottle-package b {
  grid-area: price;
  color: #fde047;
  font-size: 1rem;
  line-height: 1;
}

.bottle-package > small {
  grid-area: note;
  min-width: 0;
  color: rgba(255, 255, 255, .58);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.22;
  text-align: right;
}

.bottle-package.is-popular {
  border-color: rgba(250, 204, 21, .5);
  background:
    linear-gradient(145deg, rgba(250, 204, 21, .2), rgba(251, 113, 133, .14)),
    rgba(255, 255, 255, .04);
}

.bottle-package.is-popular .bottle-package__badge,
.bottle-package.is-max .bottle-package__badge {
  border-color: rgba(255, 247, 173, .46);
  background: linear-gradient(135deg, #fff7ad, #facc15 55%, #f97316);
  color: #2b1600;
}

.bottle-package.is-max {
  border-color: rgba(250, 204, 21, .68);
  background:
    linear-gradient(145deg, rgba(250, 204, 21, .26), rgba(251, 113, 133, .18) 54%, rgba(45, 212, 191, .12)),
    rgba(255, 255, 255, .05);
  box-shadow: 0 18px 40px rgba(250, 204, 21, .12), inset 0 1px 0 rgba(255, 255, 255, .14);
}

.bottle-balance-modal #bottle-balance-status {
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(250, 204, 21, .18);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .66);
  font-weight: 800;
}

.bottle-coin-legal {
  margin: -4px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  color: rgba(255, 255, 255, .64);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.45;
}

.bottle-coin-legal a {
  color: #fde68a;
  font-weight: 900;
  text-decoration: none;
}

.bottle-coin-legal a:hover {
  text-decoration: underline;
}

.bottle-invite-modal {
  width: min(600px, calc(100vw - 28px));
  max-width: 600px;
  gap: 14px;
  border-color: rgba(250, 204, 21, .28);
  background:
    radial-gradient(circle at 18% 10%, rgba(250, 204, 21, .14), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(45, 212, 191, .12), transparent 34%),
    linear-gradient(145deg, rgba(17, 24, 39, .98), rgba(28, 19, 51, .96) 58%, rgba(10, 35, 43, .94));
}

.bottle-invite-share {
  display: grid;
  gap: 10px;
}

.bottle-invite-share__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(250, 204, 21, .18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(250, 204, 21, .16), transparent 36%),
    rgba(255, 255, 255, .06);
}

.bottle-invite-share__label {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, .58);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bottle-invite-share__value {
  min-width: 0;
  overflow: hidden;
  color: #fff7d6;
  font-size: .94rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottle-invite-share__item code.bottle-invite-share__value {
  font-family: inherit;
  font-size: .82rem;
  color: rgba(255, 255, 255, .86);
}

.bottle-invite-copy {
  min-width: 118px;
  padding: 10px 14px;
  border: 0;
  background: linear-gradient(135deg, #fff59d, #f59e0b);
  color: #24130a;
  font-size: .78rem;
  font-weight: 950;
}

.bottle-invite-copy:disabled {
  opacity: .54;
  cursor: default;
}

.bottle-invite-divider {
  position: relative;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .54);
  font-size: .75rem;
  font-weight: 850;
}

.bottle-invite-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, .12);
}

.bottle-invite-divider span {
  position: relative;
  padding: 0 10px;
  background: rgba(18, 24, 38, .96);
}

.bottle-friends-list {
  display: grid;
  gap: 8px;
  max-height: min(430px, 62vh);
  overflow: auto;
}

.bottle-friend {
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.bottle-friend:disabled {
  opacity: .72;
  cursor: default;
}

.bottle-friend span {
  color: var(--muted);
  font-size: .84rem;
}

@media (max-width: 980px) {
  .bottle-entry,
  .bottle-layout {
    grid-template-columns: 1fr;
  }

  .bottle-toolbar {
    grid-template-columns: 1fr;
  }

  .bottle-layout,
  .bottle-board {
    min-height: auto;
  }

  .bottle-board {
    aspect-ratio: 1;
    min-height: 560px;
  }

  .bottle-side {
    grid-template-rows: auto auto;
  }
}

@media (max-width: 620px) {
  .bottle-entry__copy {
    min-height: 360px;
    padding: 24px;
  }

  .bottle-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .bottle-toolbar__actions,
  .bottle-decision,
  .bottle-chat__form {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .bottle-owned-room-benefits,
  .bottle-premium-plans {
    grid-template-columns: 1fr;
  }

  .bottle-owned-room-hero {
    min-height: 0;
    padding-right: 88px;
  }

  .bottle-owned-room-hero::after {
    width: 68px;
    height: 94px;
  }

  .bottle-board {
    min-height: 540px;
    aspect-ratio: auto;
  }

  .bottle-players {
    inset: 10px;
  }

  .bottle-player {
    width: 78px;
    min-height: 108px;
    padding: 5px;
    gap: 4px;
  }

  .bottle-player__photo {
    width: 46px;
  }

  .bottle-player strong {
    font-size: .78rem;
  }

  .bottle-player small {
    font-size: .66rem;
  }

  .bottle-spin {
    width: 132px;
  }

  .bottle-spin__shape {
    width: 108px;
    height: 40px;
  }

  .bottle-gifts,
  .bottle-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottle-balance-hero {
    grid-template-columns: 1fr;
  }

  .bottle-balance-hero__bank {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .bottle-balance-hero__bank > span {
    grid-row: span 2;
  }
}

@media (max-width: 520px) {
  .bottle-balance-modal {
    padding: 16px;
  }

  .bottle-balance-hero {
    padding: 14px;
  }

  .bottle-packages {
    grid-template-columns: 1fr;
  }
}
/* Bottle game polish */
.bottle-entry__copy,
.bottle-entry__form,
.bottle-music-panel,
.bottle-gifts-panel,
.bottle-chat,
.bottle-toolbar {
  border-color: rgba(255, 214, 102, .28);
  background:
    linear-gradient(145deg, rgba(40, 30, 66, .94), rgba(112, 44, 87, .76) 56%, rgba(59, 117, 112, .58));
  box-shadow: 0 22px 58px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .09);
}

.bottle-entry__form {
  background:
    linear-gradient(160deg, rgba(255, 248, 232, .08), rgba(255, 255, 255, 0) 28%),
    linear-gradient(145deg, rgba(48, 38, 72, .95), rgba(104, 48, 84, .82) 58%, rgba(78, 123, 113, .58));
}

.bottle-entry__copy {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(118deg, rgba(31, 24, 62, .98) 0%, rgba(86, 38, 79, .96) 42%, rgba(190, 78, 105, .9) 72%, rgba(250, 191, 104, .86) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 42%);
}

.bottle-entry__copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  right: clamp(18px, 5vw, 78px);
  top: clamp(54px, 10vw, 108px);
  width: clamp(230px, 34vw, 420px);
  height: clamp(86px, 12vw, 148px);
  transform: rotate(-18deg);
  transform-origin: 56% 50%;
  opacity: .88;
  background:
    linear-gradient(90deg, #facc15 0 7%, #f59e0b 7% 9%, rgba(191, 219, 254, .92) 9% 24%, transparent 24% 29%, rgba(147, 197, 253, .92) 29% 38%, rgba(235, 254, 255, .9) 38% 46%, rgba(251, 113, 133, .72) 46% 60%, rgba(125, 211, 252, .52) 60% 100%);
  clip-path: polygon(0 43%, 6% 35%, 24% 35%, 31% 24%, 39% 12%, 89% 12%, 100% 30%, 100% 70%, 89% 88%, 39% 88%, 31% 76%, 24% 65%, 6% 65%, 0 57%);
  box-shadow: 0 24px 60px rgba(48, 24, 58, .24), 0 0 44px rgba(255, 244, 191, .24);
}

.bottle-entry__copy::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: clamp(36px, 9vw, 140px);
  bottom: clamp(32px, 7vw, 92px);
  width: clamp(190px, 28vw, 350px);
  height: clamp(132px, 18vw, 220px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .16) 0 18%, transparent 18% 25%, rgba(255, 255, 255, .12) 25% 43%, transparent 43% 50%, rgba(255, 255, 255, .14) 50% 68%, transparent 68%),
    linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 20px 50px rgba(45, 18, 48, .22);
  transform: rotate(5deg);
}

.bottle-entry__copy > * {
  position: relative;
  z-index: 1;
}

.bottle-entry__chips span,
.bottle-room-summary span {
  border-color: rgba(250, 204, 21, .38);
  background: linear-gradient(135deg, rgba(250, 204, 21, .2), rgba(255, 255, 255, .1));
  color: #fff4bf;
}

.bottle-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  padding: 14px 16px 16px;
}

.bottle-toolbar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.bottle-toolbar__actions .action-btn,
.bottle-panel-head .action-btn,
.bottle-chat__form .action-btn {
  border: 0;
  color: #1d1330;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.bottle-btn--invite {
  background: linear-gradient(135deg, #86efac, #22c55e);
}

.bottle-btn--switch {
  background: linear-gradient(135deg, #fef08a, #f59e0b);
}

.bottle-btn--photo {
  background: linear-gradient(135deg, #f0abfc, #fb7185);
}

.bottle-btn--join,
.bottle-toolbar__actions .bottle-btn--join {
  border: 1px solid rgba(255, 255, 255, .16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .055)),
    rgba(20, 26, 38, .72);
  color: #f9fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 12px 24px rgba(0, 0, 0, .18);
}

#bottle-enter-btn.action-btn--primary {
  border: 0;
  background: linear-gradient(135deg, #fff7ad 0%, #facc15 46%, #f97316 100%);
  color: #1d1330;
  font-weight: 950;
  box-shadow:
    0 16px 32px rgba(249, 115, 22, .24),
    inset 0 1px 0 rgba(255, 255, 255, .42);
}

.bottle-btn--owned {
  background: linear-gradient(135deg, #fde68a, #fb7185);
}

.bottle-btn--leave {
  background: linear-gradient(135deg, #fecdd3, #fb7185);
}

.bottle-btn--coins,
.bottle-btn--music,
.bottle-btn--send {
  background: linear-gradient(135deg, #fde047, #f97316);
}

.bottle-music-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.bottle-music-now {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background:
    radial-gradient(circle at left, rgba(125, 211, 252, .16), transparent 42%),
    linear-gradient(135deg, rgba(250, 204, 21, .12), rgba(251, 113, 133, .1));
  border: 1px solid rgba(250, 204, 21, .2);
}

.bottle-music-now > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.bottle-music-disc {
  width: 42px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #261536 0 18%, #fef3c7 19% 25%, #fb7185 26% 52%, #7dd3fc 53% 100%);
  color: #fff7d6;
  font-size: 1.02rem;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
  cursor: pointer;
}

.bottle-music-disc.is-playing {
  animation: bottleMusicSpin 3.8s linear infinite;
}

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

.bottle-music-now span,
.bottle-music-now small,
.bottle-music-hint {
  color: rgba(255, 255, 255, .68);
  font-size: .78rem;
}

.bottle-music-now span,
.bottle-music-now small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottle-music-now strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff7d6;
}

.bottle-music-queue {
  grid-column: 1;
  align-self: center;
  display: grid;
  gap: 5px;
  min-height: 18px;
  max-height: 84px;
  overflow: auto;
  margin-top: 0;
  scrollbar-gutter: stable;
}

.bottle-music-queue > .inline-status {
  margin: 0;
  padding: 1px 0;
  color: rgba(255, 255, 255, .54);
  font-size: .75rem;
  text-align: left;
}

.bottle-music-queue__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 6px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .075);
}

.bottle-music-queue__item.is-mine {
  border: 1px solid rgba(250, 204, 21, .24);
  background: linear-gradient(135deg, rgba(250, 204, 21, .13), rgba(255, 255, 255, .07));
}

.bottle-music-queue__item span {
  width: 22px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(250, 204, 21, .18);
  color: #fef3c7;
  font-weight: 900;
  font-size: .74rem;
}

.bottle-music-queue__item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82rem;
}

.bottle-music-queue__item small {
  color: rgba(255, 255, 255, .58);
  font-size: .72rem;
  white-space: nowrap;
}

.bottle-music-boost {
  width: 28px;
  aspect-ratio: 1;
  border: 1px solid rgba(250, 204, 21, .36);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fde047, #f97316);
  color: #21120a;
  font-size: .92rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(249, 115, 22, .22);
}

.bottle-music-boost:disabled {
  cursor: wait;
  opacity: .62;
}

.bottle-music-controls {
  grid-column: 2;
  align-self: center;
  justify-self: end;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 0;
}

.bottle-music-controls label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, .68);
  font-size: .78rem;
  font-weight: 800;
}

.bottle-music-controls input[type="range"] {
  width: 100%;
  accent-color: #facc15;
}

.bottle-music-volume-mini {
  justify-self: end;
  display: flex;
  align-items: center;
  width: clamp(98px, 42%, 136px);
  min-width: 0;
  max-width: 136px;
  padding: 0 1px;
  color: rgba(255, 255, 255, .62);
  font-size: .68rem;
  font-weight: 850;
}

.bottle-music-volume-mini input[type="range"] {
  --bottle-volume-fill: 65%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  height: 18px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  accent-color: #facc15;
  cursor: pointer;
}

.bottle-music-volume-mini input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #fde047 0 var(--bottle-volume-fill, 65%), rgba(255, 255, 255, .22) var(--bottle-volume-fill, 65%) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}

.bottle-music-volume-mini input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5.5px;
  border: 2px solid #fff7ad;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 5px 12px rgba(249, 115, 22, .28);
}

.bottle-music-volume-mini input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}

.bottle-music-volume-mini input[type="range"]::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: #fde047;
}

.bottle-music-volume-mini input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #fff7ad;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 5px 12px rgba(249, 115, 22, .28);
}

.bottle-music-controls .bottle-btn--music {
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: .76rem;
  white-space: nowrap;
}

.bottle-music-hint {
  margin: 9px 0 0;
}

.bottle-music-hint.is-danger {
  color: #fecdd3;
}

.bottle-game-photo-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.bottle-coin-rate {
  margin: 0;
  border: 1px solid rgba(250, 204, 21, .32);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 3px 9px;
  color: #fef3c7;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, .14), rgba(255, 255, 255, .04));
}

.bottle-coin-rate strong {
  min-width: 0;
  font-size: .95rem;
}

.bottle-coin-rate span {
  grid-row: span 2;
  width: 30px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(250, 204, 21, .16);
  color: #fde047;
  font-size: 1.05rem;
  font-weight: 900;
}

.bottle-coin-rate small {
  color: rgba(255, 255, 255, .54);
  font-size: .7rem;
  font-weight: 800;
}

.bottle-room-closed-modal {
  max-width: 420px;
  border: 1px solid rgba(250, 204, 21, .34);
  background: linear-gradient(145deg, rgba(59, 28, 72, .98), rgba(22, 28, 54, .98));
}

.bottle-room-closed-modal .inline-status {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .78);
}

.bottle-room-closed-modal .action-btn {
  width: 100%;
}

.bottle-balance-card {
  margin: 0;
  width: auto;
  max-width: 100%;
  border: 1px solid rgba(250, 204, 21, .55);
  border-radius: 8px;
  padding: 7px 8px 7px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, auto) auto;
  align-items: center;
  gap: 7px;
  text-align: left;
  color: #fff8d8;
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 255, 255, .24), transparent 24%),
    linear-gradient(135deg, rgba(88, 28, 135, .95) 0%, rgba(190, 24, 93, .86) 48%, rgba(251, 146, 60, .92) 100%);
  box-shadow: 0 16px 34px rgba(250, 204, 21, .2), inset 0 1px 0 rgba(255, 255, 255, .32);
  cursor: pointer;
}

.bottle-balance-card span {
  text-transform: uppercase;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .04em;
  color: rgba(255, 248, 216, .74);
}

.bottle-balance-card strong {
  min-width: 0;
  font-size: clamp(.86rem, 1.25vw, 1.02rem);
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.bottle-balance-card small {
  justify-self: end;
  border-radius: 999px;
  padding: 5px 8px;
  background: linear-gradient(135deg, #fff7ad, #facc15 55%, #f97316);
  color: #2b1600;
  font-size: .68rem;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(249, 115, 22, .25);
}

.bottle-entry__code {
  display: grid;
  gap: 7px;
}

.bottle-entry__code span {
  color: var(--muted);
  font-size: .92rem;
}

.bottle-entry__code div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.bottle-entry__code input {
  width: 100%;
  border: 1px solid rgba(250, 204, 21, .26);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: var(--text);
  padding: 13px 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.bottle-entry__code input::placeholder {
  text-transform: none;
  color: rgba(255, 255, 255, .46);
}

.bottle-board {
  border-color: rgba(250, 204, 21, .26);
  background:
    linear-gradient(135deg, rgba(69, 22, 105, .95), rgba(114, 23, 82, .86) 42%, rgba(15, 94, 112, .9)),
    linear-gradient(90deg, rgba(250, 204, 21, .16), transparent 36%, rgba(251, 113, 133, .18));
}

.bottle-player {
  width: clamp(108px, 9vw, 142px);
  min-height: 136px;
  padding: 9px;
  gap: 7px;
  border-color: rgba(255, 255, 255, .28);
  background: linear-gradient(160deg, rgba(33, 22, 54, .94), rgba(112, 27, 83, .78));
}

.bottle-player:hover {
  border-color: rgba(250, 204, 21, .62);
  transform: translate(-50%, -50%) translateY(-2px);
}

.bottle-player.is-turn {
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, .24), 0 18px 36px rgba(0, 0, 0, .28);
}

.bottle-player.is-target {
  border-color: #fb7185;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, .32), 0 18px 36px rgba(0, 0, 0, .28);
}

.bottle-player.is-me {
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, .3), 0 18px 36px rgba(0, 0, 0, .28);
}

.bottle-player__photo {
  width: clamp(78px, 6.8vw, 96px);
  border: 2px solid rgba(255, 255, 255, .18);
  background: linear-gradient(145deg, #3b1b73, #be185d 64%, #facc15);
}

.bottle-player__timer {
  min-width: 36px;
  height: 36px;
  font-size: .86rem;
}

.bottle-player strong {
  font-size: .98rem;
}

.bottle-player small {
  color: #fef3c7;
  font-weight: 800;
}

.bottle-spin {
  background: linear-gradient(145deg, rgba(250, 204, 21, .22), rgba(168, 85, 247, .24));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 24px 60px rgba(0, 0, 0, .4), 0 0 44px rgba(250, 204, 21, .18);
}

.bottle-spin__shape {
  filter: drop-shadow(0 0 16px rgba(250, 204, 21, .24)) drop-shadow(0 12px 24px rgba(251, 113, 133, .16));
}

.bottle-spin.is-spin-ready .bottle-spin__shape {
  filter: drop-shadow(0 0 14px rgba(250, 204, 21, .48)) drop-shadow(0 14px 26px rgba(251, 113, 133, .22));
}

.bottle-decision {
  border-color: rgba(250, 204, 21, .34);
  background:
    linear-gradient(135deg, rgba(251, 113, 133, .18), rgba(250, 204, 21, .12)),
    rgba(42, 23, 54, .92);
}

.bottle-decision .action-btn:first-child {
  background: linear-gradient(135deg, #fb7185, #f43f5e);
}

.bottle-decision .action-btn:last-child {
  background: linear-gradient(135deg, #e5e7eb, #94a3b8);
  color: #111827;
}

.bottle-friend {
  border-color: rgba(250, 204, 21, .24);
  background: linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(250, 204, 21, .08));
}

.bottle-gift.is-selected {
  border-color: #facc15;
  background:
    radial-gradient(circle at 50% 18%, rgba(45, 212, 191, .35), transparent 50%),
    linear-gradient(150deg, rgba(45, 212, 191, .22), rgba(250, 204, 21, .1));
}

.bottle-chat-message {
  background: rgba(255, 255, 255, .11);
}

.bottle-chat-message.is-system {
  background: rgba(250, 204, 21, .18);
}

.bottle-chat {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.bottle-chat-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: -2px 0 10px;
}

.bottle-chat-tabs button {
  min-height: 36px;
  border: 1px solid rgba(250, 204, 21, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
  font-weight: 900;
  cursor: pointer;
}

.bottle-chat-tabs button.is-active {
  border-color: rgba(250, 204, 21, .58);
  background: linear-gradient(135deg, rgba(250, 204, 21, .28), rgba(251, 113, 133, .18));
  color: #fff7d6;
}

.bottle-chat-badge,
.bottle-player__dm-badge,
.bottle-private-peer em {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #fde047, #f97316);
  color: #23140a;
  font-size: .72rem;
  font-style: normal;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(249, 115, 22, .28);
}

.bottle-private-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px;
}

.bottle-private-peer {
  flex: 0 0 auto;
  min-width: 108px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  cursor: pointer;
}

.bottle-private-peer.is-active {
  border-color: #facc15;
  background: linear-gradient(135deg, rgba(250, 204, 21, .2), rgba(251, 113, 133, .14));
}

.bottle-private-peer__photo {
  width: 34px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #3b1b73, #be185d 64%, #facc15);
  color: rgba(255, 255, 255, .82);
}

.bottle-private-peer__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottle-private-peer strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82rem;
}

.bottle-player__dm-badge {
  position: absolute;
  top: 7px;
  left: 7px;
}

.bottle-chat-message.is-private {
  border: 1px solid rgba(250, 204, 21, .16);
  background: linear-gradient(135deg, rgba(250, 204, 21, .16), rgba(251, 113, 133, .11));
}

.bottle-chat-message.is-private.is-vip {
  border-color: rgba(250, 204, 21, .34);
  background: linear-gradient(135deg, rgba(250, 204, 21, .22), rgba(251, 113, 133, .13));
}

.bottle-entry {
  min-height: auto;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  grid-template-areas:
    "hero form"
    "market market";
  align-items: stretch;
}

.bottle-entry__copy {
  grid-area: hero;
  min-height: clamp(220px, 27vw, 320px);
  justify-content: center;
  padding: clamp(24px, 3.2vw, 42px);
}

.bottle-entry__copy h2 {
  max-width: 600px;
  font-size: clamp(2.15rem, 4.1vw, 4rem);
}

.bottle-entry__copy::before {
  right: clamp(18px, 7vw, 96px);
  top: clamp(24px, 5vw, 72px);
  width: clamp(190px, 27vw, 340px);
  height: clamp(72px, 10vw, 118px);
}

.bottle-entry__copy::after {
  right: clamp(32px, 9vw, 130px);
  bottom: clamp(18px, 4vw, 48px);
  width: clamp(150px, 24vw, 280px);
  height: clamp(96px, 14vw, 168px);
}

.bottle-entry__form {
  grid-area: form;
  grid-template-columns: 124px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 10px 12px;
  padding: 16px;
}

.bottle-entry__form .bottle-photo-picker {
  grid-row: 1 / 6;
}

.bottle-entry__form .bottle-photo-picker__preview {
  width: 112px;
}

.bottle-entry__form .bottle-entry__name,
.bottle-entry__form #bottle-enter-btn,
.bottle-entry__form #bottle-create-owned-btn,
.bottle-entry__form .bottle-entry__code,
.bottle-entry__form #bottle-entry-status {
  grid-column: 2;
}

.bottle-entry__form .action-btn {
  min-height: 45px;
}

.bottle-market {
  grid-area: market;
  border: 1px solid rgba(250, 204, 21, .26);
  border-radius: 8px;
  padding: clamp(16px, 2.4vw, 24px);
  display: grid;
  gap: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(250, 204, 21, .13), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(45, 212, 191, .12), transparent 30%),
    linear-gradient(145deg, rgba(24, 32, 47, .96), rgba(82, 35, 77, .8) 55%, rgba(16, 70, 82, .68));
  box-shadow: 0 22px 58px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .09);
  overflow: hidden;
}

.bottle-market__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
  gap: 16px;
  align-items: stretch;
}

.bottle-market__head > div:first-child {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
}

.bottle-market__head h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.7vw, 2.2rem);
  line-height: 1.08;
}

.bottle-market__head p:not(.hero-panel__eyebrow) {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, .66);
  font-size: .92rem;
  line-height: 1.45;
}

.bottle-market-wallet {
  border: 1px solid rgba(250, 204, 21, .34);
  border-radius: 8px;
  padding: 13px;
  display: grid;
  gap: 7px;
  align-content: center;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, .2), transparent 28%),
    linear-gradient(135deg, rgba(88, 28, 135, .9), rgba(190, 24, 93, .74) 54%, rgba(251, 146, 60, .84));
  box-shadow: 0 16px 34px rgba(250, 204, 21, .16), inset 0 1px 0 rgba(255, 255, 255, .26);
}

.bottle-market-wallet span {
  color: rgba(255, 248, 216, .72);
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.bottle-market-wallet strong {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1;
}

.bottle-market-wallet .action-btn {
  min-height: 38px;
}

.bottle-market-gifts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 12px;
}

.bottle-market-empty {
  min-height: 170px;
  grid-column: 1 / -1;
  border: 1px dashed rgba(250, 204, 21, .24);
  border-radius: 8px;
  padding: 22px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  background: rgba(255, 255, 255, .055);
}

.bottle-market-empty strong {
  color: #fff7d6;
  font-size: 1.05rem;
}

.bottle-market-empty span {
  max-width: 46ch;
  color: rgba(255, 255, 255, .58);
  font-size: .88rem;
  line-height: 1.4;
}

.bottle-market-gift {
  position: relative;
  min-width: 0;
  min-height: 232px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-rows: 96px minmax(68px, auto) auto;
  gap: 10px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .18), transparent 46%),
    linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 30px rgba(0, 0, 0, .16);
  overflow: hidden;
}

.bottle-market-gift.is-rare {
  border-color: rgba(244, 114, 182, .4);
  background:
    radial-gradient(circle at 50% 18%, rgba(244, 114, 182, .24), transparent 48%),
    linear-gradient(150deg, rgba(131, 24, 67, .26), rgba(255, 255, 255, .045));
}

.bottle-market-gift.is-epic {
  border-color: rgba(192, 132, 252, .46);
  background:
    radial-gradient(circle at 50% 18%, rgba(192, 132, 252, .26), transparent 48%),
    linear-gradient(150deg, rgba(88, 28, 135, .32), rgba(250, 204, 21, .08));
}

.bottle-market-gift.is-legendary,
.bottle-market-gift.is-premium {
  border-color: rgba(250, 204, 21, .72);
  background:
    radial-gradient(circle at 50% 18%, rgba(250, 204, 21, .32), transparent 50%),
    linear-gradient(150deg, rgba(250, 204, 21, .2), rgba(120, 73, 18, .22) 52%, rgba(255, 255, 255, .05));
  box-shadow: 0 18px 40px rgba(250, 204, 21, .14), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.bottle-market-gift__art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.bottle-market-gift__image {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .045)),
    rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 28px rgba(0, 0, 0, .18);
}

.bottle-market-gift__image img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .32));
}

.bottle-market-gift__image.is-emoji {
  font-size: 2.3rem;
}

.bottle-market-gift__count {
  position: absolute;
  top: 0;
  right: calc(50% - 56px);
  min-width: 32px;
  height: 26px;
  border-radius: 999px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #67e8f9, #a78bfa 52%, #fb7185);
  color: #fff;
  font-size: .75rem;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(167, 139, 250, .26);
}

.bottle-market-gift__body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  text-align: center;
}

.bottle-market-gift__body span {
  justify-self: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, .08);
  color: #fef3c7;
  font-size: .68rem;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.bottle-market-gift__body strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 1rem;
  line-height: 1.12;
}

.bottle-market-gift__body small {
  color: rgba(255, 255, 255, .58);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.28;
}

.bottle-market-gift__sell {
  min-height: 40px;
  padding-inline: 9px;
  background: linear-gradient(135deg, #fff7ad, #facc15 48%, #f97316);
  color: #21120a;
  font-weight: 950;
}

.bottle-market-status {
  margin: 0;
  border: 1px solid rgba(250, 204, 21, .18);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .66);
  font-size: .84rem;
  font-weight: 850;
}

.bottle-market-status.is-success {
  border-color: rgba(134, 239, 172, .28);
  color: #bbf7d0;
}

.bottle-market-status.is-danger {
  border-color: rgba(251, 113, 133, .32);
  color: #fecdd3;
}

.bottle-gift-sale-modal {
  max-width: 500px;
  gap: 14px;
  border-color: rgba(250, 204, 21, .36);
  background:
    radial-gradient(circle at 22% 12%, rgba(250, 204, 21, .12), transparent 30%),
    linear-gradient(145deg, rgba(32, 28, 54, .98), rgba(91, 35, 79, .94) 58%, rgba(24, 67, 78, .9));
}

.bottle-gift-sale-hero {
  margin: 0;
  display: grid;
  gap: 7px;
}

.bottle-gift-sale-hero h3 {
  color: #fff8d8;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.bottle-gift-sale-hero p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, .66);
  font-size: .9rem;
  line-height: 1.42;
}

.bottle-gift-sale-preview {
  min-height: 118px;
}

.bottle-gift-sale-card {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .16), transparent 34%),
    rgba(255, 255, 255, .08);
}

.bottle-gift-sale-card.is-legendary,
.bottle-gift-sale-card.is-premium {
  border-color: rgba(250, 204, 21, .66);
  background:
    radial-gradient(circle at 12% 20%, rgba(250, 204, 21, .26), transparent 34%),
    linear-gradient(135deg, rgba(250, 204, 21, .16), rgba(255, 255, 255, .07));
}

.bottle-gift-sale-card__art {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 22px rgba(0, 0, 0, .18);
}

.bottle-gift-sale-card__art img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .3));
}

.bottle-gift-sale-card__art.is-emoji {
  font-size: 2rem;
}

.bottle-gift-sale-card div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.bottle-gift-sale-card span,
.bottle-gift-sale-card small {
  color: rgba(255, 255, 255, .58);
  font-size: .74rem;
  font-weight: 800;
}

.bottle-gift-sale-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 1.08rem;
}

.bottle-gift-sale-card b {
  border-radius: 999px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #fff7ad, #facc15 52%, #f97316);
  color: #23140a;
  font-size: .88rem;
  font-weight: 950;
  white-space: nowrap;
}

.bottle-gift-sale-actions {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 10px;
}

.bottle-gift-sale-actions .action-btn {
  min-height: 46px;
}

.bottle-profile-gift {
  min-height: 194px;
  grid-template-rows: 78px 24px 24px minmax(36px, auto);
  gap: 5px;
}

.bottle-profile-gift__art {
  justify-self: center;
  align-self: center;
  margin-inline: auto;
}

.bottle-profile-gift__price {
  max-width: 100%;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  white-space: nowrap;
}

.bottle-profile-gift__title {
  width: 100%;
  height: 22px;
  display: block;
  justify-self: stretch;
  align-self: center;
  overflow: hidden;
  text-align: center;
  line-height: 1.18;
  mask-image: linear-gradient(90deg, transparent 0, #000 9px, #000 calc(100% - 9px), transparent 100%);
}

.bottle-profile-gift__title > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottle-profile-gift__title.is-marquee {
  text-align: left;
}

.bottle-profile-gift__title-track {
  display: inline-flex !important;
  min-width: max-content;
  gap: 28px;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap;
  will-change: transform;
  animation: bottleProfileGiftTitleMarquee var(--profile-gift-marquee-duration, 8s) linear infinite;
}

.bottle-profile-gift__title-track span {
  flex: 0 0 auto;
}

@keyframes bottleProfileGiftTitleMarquee {
  0%, 12% {
    transform: translateX(0);
  }
  88%, 100% {
    transform: translateX(calc(-50% - 14px));
  }
}

@media (max-width: 980px) {
  .bottle-entry {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "form"
      "market";
  }

  .bottle-entry__copy {
    min-height: 240px;
  }

  .bottle-entry__form {
    grid-template-columns: 136px minmax(0, 1fr);
  }

  .bottle-market__head {
    grid-template-columns: 1fr;
  }

  .bottle-market-wallet {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .bottle-market-wallet .action-btn {
    grid-row: 1 / 3;
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  .bottle-entry__form {
    grid-template-columns: 1fr;
  }

  .bottle-entry__form .bottle-photo-picker,
  .bottle-entry__form .bottle-entry__name,
  .bottle-entry__form #bottle-enter-btn,
  .bottle-entry__form #bottle-create-owned-btn,
  .bottle-entry__form .bottle-entry__code,
  .bottle-entry__form #bottle-entry-status {
    grid-column: 1;
    grid-row: auto;
  }

  .bottle-entry__form .bottle-photo-picker__preview {
    width: min(190px, 54vw);
  }

  .bottle-market-gifts {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .bottle-market-gift {
    min-height: 220px;
  }

  .bottle-gift-sale-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .bottle-gift-sale-card b {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .bottle-entry__copy {
    min-height: 210px;
    padding: 20px;
  }

  .bottle-entry__copy h2 {
    font-size: clamp(1.85rem, 12vw, 2.65rem);
  }

  .bottle-market-wallet {
    grid-template-columns: 1fr;
  }

  .bottle-market-wallet .action-btn {
    grid-row: auto;
    grid-column: auto;
  }

  .bottle-market-gifts {
    grid-template-columns: 1fr;
  }

  .bottle-gift-sale-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) {
  body.bottle-page.bottle-game-active .topbar,
  body.bottle-page.bottle-game-active .site-footer {
    display: none !important;
  }

  body.bottle-page.bottle-game-active .page-shell {
    --bottle-active-width: min(100%, 1280px);
    height: 100dvh;
    min-height: 100dvh;
    padding: 8px;
    overflow: hidden;
  }

  body.site-shell-nav-enabled.bottle-page.bottle-game-active .page-shell {
    padding: 8px 8px 8px 72px;
    display: grid;
    justify-items: center;
  }

  body.site-shell-nav-enabled.bottle-page.bottle-game-active .app-shell {
    width: var(--bottle-active-width);
    max-width: var(--bottle-active-width);
    margin-inline: auto;
  }

  body.site-shell-nav-enabled.bottle-page.bottle-game-active .site-shell-sidebar {
    top: 8px;
    left: 8px;
    bottom: 8px;
    width: 52px;
    max-height: calc(100dvh - 16px);
    overflow: visible;
    z-index: 120;
    transition: width .18s ease, filter .18s ease;
  }

  body.site-shell-nav-enabled.bottle-page.bottle-game-active .site-shell-sidebar:hover,
  body.site-shell-nav-enabled.bottle-page.bottle-game-active .site-shell-sidebar:focus-within {
    width: 250px;
    filter: drop-shadow(0 18px 44px rgba(0, 0, 0, .36));
  }

  body.site-shell-nav-enabled.bottle-page.bottle-game-active .site-shell-sidebar__nav,
  body.site-shell-nav-enabled.bottle-page.bottle-game-active .site-shell-sidebar__more {
    gap: 4px;
    padding: 8px;
    border-radius: 22px;
  }

  body.site-shell-nav-enabled.bottle-page.bottle-game-active .site-shell-nav__item {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 44px;
    padding: 10px 11px;
    overflow: hidden;
  }

  body.site-shell-nav-enabled.bottle-page.bottle-game-active .site-shell-nav__item span,
  body.site-shell-nav-enabled.bottle-page.bottle-game-active .site-shell-nav__item b {
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
  }

  body.site-shell-nav-enabled.bottle-page.bottle-game-active .site-shell-sidebar:hover .site-shell-nav__item span,
  body.site-shell-nav-enabled.bottle-page.bottle-game-active .site-shell-sidebar:hover .site-shell-nav__item b,
  body.site-shell-nav-enabled.bottle-page.bottle-game-active .site-shell-sidebar:focus-within .site-shell-nav__item span,
  body.site-shell-nav-enabled.bottle-page.bottle-game-active .site-shell-sidebar:focus-within .site-shell-nav__item b {
    opacity: 1;
    pointer-events: auto;
  }

  body.bottle-page.bottle-game-active .bottle-shell,
  body.bottle-page.bottle-game-active .bottle-game {
    height: calc(100dvh - 16px);
    min-height: 0;
  }

  body.bottle-page.bottle-game-active .bottle-shell {
    display: block;
  }

  body.bottle-page.bottle-game-active .bottle-game {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    overflow: hidden;
    width: var(--bottle-active-width);
    max-width: var(--bottle-active-width);
    margin-inline: auto;
  }

  body.bottle-page.bottle-game-active .bottle-toolbar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: stretch;
    gap: 6px;
    padding: 7px 9px;
    width: 100%;
    max-width: 100%;
  }

  body.bottle-page.bottle-game-active .bottle-toolbar__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(500px, max-content);
    align-items: center;
    min-width: 0;
    width: 100%;
    gap: 8px;
  }

  body.bottle-page.bottle-game-active .bottle-room-info {
    display: grid;
    grid-template-columns: minmax(136px, auto) minmax(210px, 270px);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 3px 10px;
    max-width: 520px;
    min-height: 0;
  }

  body.bottle-page.bottle-game-active .bottle-room-heading {
    display: contents;
  }

  body.bottle-page.bottle-game-active .bottle-room-heading h2 {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
  }

  body.bottle-page.bottle-game-active .bottle-room-info > .hero-panel__eyebrow {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  body.bottle-page.bottle-game-active .bottle-toolbar h2 {
    font-size: 1.16rem;
    line-height: 1;
  }

  body.bottle-page.bottle-game-active .bottle-toolbar .hero-panel__eyebrow {
    margin-bottom: 2px;
    font-size: .66rem;
  }

  body.bottle-page.bottle-game-active .bottle-room-summary {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    margin-top: 4px;
  }

  body.bottle-page.bottle-game-active .bottle-room-summary span {
    padding: 5px 9px;
    font-size: .74rem;
  }

  body.bottle-page.bottle-game-active .bottle-toolbar__actions {
    align-self: center;
    align-content: center;
    flex-wrap: wrap;
    gap: 5px;
    flex: 0 1 auto;
    justify-content: flex-start;
    min-width: 0;
    max-width: 560px;
  }

  body.bottle-page.bottle-game-active .bottle-toolbar__actions .action-btn {
    min-height: 34px;
    padding: 7px 9px;
    font-size: .74rem;
    white-space: nowrap;
  }

  body.bottle-page.bottle-game-active .bottle-balance-card {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: stretch;
    width: 100%;
    min-height: 50px;
    max-width: none;
    margin: 0;
    padding: 8px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 5px 8px;
  }

  body.bottle-page.bottle-game-active .bottle-balance-card span {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    font-size: .62rem;
  }

  body.bottle-page.bottle-game-active .bottle-balance-card strong {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    font-size: 1rem;
  }

  body.bottle-page.bottle-game-active .bottle-balance-card small {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-size: .68rem;
    padding: 6px 9px;
  }

  body.bottle-page.bottle-game-active .bottle-layout {
    min-height: 0;
    height: 100%;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 460px);
    gap: 8px;
    overflow: hidden;
  }

  body.bottle-page.bottle-game-active .bottle-board {
    min-height: 0;
    height: 100%;
  }

  body.bottle-page.bottle-game-active .bottle-players {
    inset: 12px;
  }

  body.bottle-page.bottle-game-active .bottle-player {
    width: clamp(108px, min(10vw, 16.4dvh), 150px);
    min-height: 0;
    padding: 8px;
    gap: 6px;
  }

  body.bottle-page.bottle-game-active .bottle-player__photo {
    width: clamp(76px, min(7.4vw, 12.4dvh), 106px);
  }

  body.bottle-page.bottle-game-active .bottle-player strong {
    font-size: clamp(.84rem, min(1vw, 1.9dvh), 1rem);
  }

  body.bottle-page.bottle-game-active .bottle-spin {
    width: clamp(132px, min(14vw, 24dvh), 180px);
  }

  body.bottle-page.bottle-game-active .bottle-spin__shape {
    width: clamp(120px, min(12.6vw, 21dvh), 164px);
    height: clamp(46px, min(5vw, 8dvh), 60px);
  }

  body.bottle-page.bottle-game-active .bottle-side {
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 8px;
    overflow: hidden;
  }

  body.bottle-page.bottle-game-active .bottle-music-panel,
  body.bottle-page.bottle-game-active .bottle-gifts-panel,
  body.bottle-page.bottle-game-active .bottle-chat {
    min-height: 0;
    padding: 9px;
  }

  body.bottle-page.bottle-game-active .bottle-music-panel {
    min-height: 170px;
    align-content: start;
    row-gap: 8px;
  }

  body.bottle-page.bottle-game-active .bottle-panel-head {
    margin-bottom: 6px;
  }

  body.bottle-page.bottle-game-active .bottle-music-panel .bottle-panel-head {
    display: grid;
    grid-template-columns: auto minmax(98px, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  body.bottle-page.bottle-game-active .bottle-music-now {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 7px;
    padding: 6px 7px;
  }

  body.bottle-page.bottle-game-active .bottle-music-disc {
    width: 38px;
    font-size: .95rem;
  }

  body.bottle-page.bottle-game-active .bottle-music-now span,
  body.bottle-page.bottle-game-active .bottle-music-now small {
    font-size: .68rem;
  }

  body.bottle-page.bottle-game-active .bottle-music-now strong {
    font-size: .8rem;
  }

  body.bottle-page.bottle-game-active .bottle-music-queue {
    align-self: start;
    min-height: 62px;
    max-height: 62px;
    overflow: auto;
    margin-top: 0;
    gap: 4px;
    padding-right: 3px;
  }

  body.bottle-page.bottle-game-active .bottle-music-queue__item {
    min-height: 28px;
    grid-template-columns: 20px minmax(0, 1fr) minmax(46px, auto) 24px;
    gap: 5px;
    padding: 3px 5px;
    border-radius: 7px;
  }

  body.bottle-page.bottle-game-active .bottle-music-queue__item span {
    width: 20px;
    font-size: .66rem;
  }

  body.bottle-page.bottle-game-active .bottle-music-queue__item strong {
    font-size: .72rem;
  }

  body.bottle-page.bottle-game-active .bottle-music-queue__item small {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .62rem;
  }

  body.bottle-page.bottle-game-active .bottle-music-boost {
    width: 24px;
    border-radius: 7px;
    font-size: .78rem;
  }

  body.bottle-page.bottle-game-active .bottle-music-controls {
    display: flex;
    align-self: start;
    justify-content: end;
    margin-top: 0;
    gap: 0;
  }

  body.bottle-page.bottle-game-active .bottle-music-controls .action-btn {
    min-height: 32px;
    padding: 7px 11px;
    font-size: .74rem;
    border-radius: 8px;
  }

  body.bottle-page.bottle-game-active .bottle-music-volume-mini {
    width: min(116px, 100%);
    min-width: 0;
    max-width: 116px;
  }

  body.bottle-page.bottle-game-active #bottle-music-price {
    justify-self: end;
    font-size: .72rem;
  }

  body.bottle-page.bottle-game-active .bottle-music-hint {
    display: none;
  }

  body.bottle-page.bottle-game-active .bottle-gifts {
    gap: 6px;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
  }

  body.bottle-page.bottle-game-active .bottle-gifts-track {
    gap: 5px;
  }

  body.bottle-page.bottle-game-active .bottle-gifts-nav {
    width: 28px;
    min-width: 28px;
    font-size: 1.2rem;
  }

  body.bottle-page.bottle-game-active .bottle-gift {
    min-height: 70px;
    grid-template-rows: 34px 12px 12px;
    padding: 5px 4px;
    justify-items: center;
    text-align: center;
  }

  body.bottle-page.bottle-game-active .bottle-gift__art {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }

  body.bottle-page.bottle-game-active .bottle-gift__art.is-emoji {
    font-size: 1.1rem;
  }

  body.bottle-page.bottle-game-active .bottle-gift strong {
    font-size: .58rem;
  }

  body.bottle-page.bottle-game-active .bottle-gift small {
    display: block;
    font-size: .64rem;
    line-height: 1;
    color: rgba(255, 244, 191, .78);
  }

  body.bottle-page.bottle-game-active .bottle-gift-hint {
    margin-top: 5px;
    font-size: .68rem;
  }

  body.bottle-page.bottle-game-active .bottle-chat {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  body.bottle-page.bottle-game-active .bottle-chat-tabs {
    gap: 6px;
    margin: -1px 0 6px;
  }

  body.bottle-page.bottle-game-active .bottle-chat-tabs button {
    min-height: 32px;
    font-size: .82rem;
  }

  body.bottle-page.bottle-game-active .bottle-private-list {
    padding-bottom: 6px;
  }

  body.bottle-page.bottle-game-active .bottle-chat__messages {
    min-height: 0;
    max-height: 100%;
    gap: 6px;
  }

  body.bottle-page.bottle-game-active .bottle-chat-message {
    padding: 7px 8px;
  }

  body.bottle-page.bottle-game-active .bottle-chat__form {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 6px;
    padding-top: 8px;
  }

  body.bottle-page.bottle-game-active .bottle-chat__form input {
    padding: 10px 11px;
  }

  body.bottle-page.bottle-game-active .bottle-chat__form .action-btn {
    min-width: 40px;
    min-height: 40px;
  }
}

@media (max-width: 620px) {
  .bottle-toolbar__top {
    align-items: stretch;
    flex-direction: column;
  }

  .bottle-room-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .bottle-balance-card {
    width: fit-content;
    grid-template-columns: auto auto;
    gap: 5px 7px;
  }

  .bottle-balance-card strong {
    grid-column: 2;
  }

  .bottle-balance-card small {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .bottle-entry__code div {
    grid-template-columns: 1fr;
  }

  .bottle-music-controls {
    grid-column: 1;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .bottle-music-queue {
    grid-column: 1;
  }

  .bottle-music-controls .bottle-btn--music {
    width: 100%;
  }

  .bottle-player {
    width: 86px;
    min-height: 118px;
  }

  .bottle-player__photo {
    width: 54px;
  }
}

/* Bottle mobile room UX */
.bottle-mobile-menu-btn {
  display: none;
}

.bottle-actions-modal {
  width: min(420px, calc(100vw - 24px));
  max-width: 420px;
  gap: 14px;
  border-color: rgba(250, 204, 21, .32);
  background:
    radial-gradient(circle at 18% 8%, rgba(250, 204, 21, .14), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(45, 212, 191, .1), transparent 32%),
    linear-gradient(145deg, rgba(18, 24, 38, .98), rgba(54, 28, 63, .96) 58%, rgba(12, 38, 46, .94));
}

.bottle-actions-modal__head {
  padding-right: 44px;
}

.bottle-actions-modal__head p:last-child {
  color: rgba(255, 255, 255, .66);
  font-size: .84rem;
  font-weight: 800;
}

.bottle-actions-menu {
  display: grid;
  gap: 9px;
}

.bottle-actions-menu .action-btn {
  min-height: 46px;
  border-radius: 8px;
  font-weight: 950;
}

@media (max-width: 980px) {
  body.bottle-page.bottle-game-active {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    background: #07090d;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body.bottle-page.bottle-game-active .topbar,
  body.bottle-page.bottle-game-active .site-footer,
  body.site-shell-nav-enabled.bottle-page.bottle-game-active .site-shell-sidebar,
  body.site-shell-nav-enabled.bottle-page.bottle-game-active .site-shell-mobile-nav,
  body.site-shell-nav-enabled.bottle-page.bottle-game-active .site-mobile-more-panel {
    display: none !important;
  }

  body.bottle-page.bottle-game-active .page-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    max-width: 100vw;
    padding: max(5px, env(safe-area-inset-top, 0px)) 5px max(5px, env(safe-area-inset-bottom, 0px));
    overflow: visible;
  }

  body.site-shell-nav-enabled.bottle-page.bottle-game-active .page-shell {
    padding-left: 5px;
  }

  body.bottle-page.bottle-game-active .app-shell,
  body.bottle-page.bottle-game-active .bottle-shell,
  body.bottle-page.bottle-game-active .bottle-game {
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }

  body.bottle-page.bottle-game-active .bottle-shell {
    display: block;
    height: auto;
    overflow: visible;
  }

  body.bottle-page.bottle-game-active .bottle-game {
    height: auto;
    grid-template-areas:
      "toolbar"
      "music"
      "board"
      "chat";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 6px;
    align-content: start;
    overflow: visible;
    margin: 0;
  }

  body.bottle-page.bottle-game-active .bottle-toolbar {
    grid-area: toolbar;
    padding: 7px;
    border-radius: 8px;
  }

  body.bottle-page.bottle-game-active .bottle-toolbar__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 7px;
  }

  body.bottle-page.bottle-game-active .bottle-toolbar__actions {
    display: none;
  }

  body.bottle-page.bottle-game-active .bottle-mobile-menu-btn {
    display: inline-grid;
    place-items: center;
    align-self: stretch;
    min-width: 76px;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .05)),
      rgba(18, 24, 38, .86);
    color: #fff7d6;
    font-size: .82rem;
    font-weight: 950;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 22px rgba(0, 0, 0, .2);
  }

  body.bottle-page.bottle-game-active .bottle-room-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(84px, 112px);
    grid-template-rows: auto auto;
    gap: 5px 7px;
    min-width: 0;
  }

  body.bottle-page.bottle-game-active .bottle-room-info > .hero-panel__eyebrow {
    display: none;
  }

  body.bottle-page.bottle-game-active .bottle-room-heading {
    display: contents;
  }

  body.bottle-page.bottle-game-active .bottle-room-heading h2 {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    align-self: end;
    overflow: hidden;
    color: #fff;
    font-size: clamp(.98rem, 4.4vw, 1.18rem);
    line-height: 1.06;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.bottle-page.bottle-game-active .bottle-room-summary {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    gap: 5px;
    margin: 0;
  }

  body.bottle-page.bottle-game-active .bottle-room-summary span {
    min-height: 25px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: .68rem;
    line-height: 1;
  }

  body.bottle-page.bottle-game-active .bottle-balance-card {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: stretch;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 6px 7px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 2px;
  }

  body.bottle-page.bottle-game-active .bottle-balance-card span {
    font-size: .54rem;
    line-height: 1;
  }

  body.bottle-page.bottle-game-active .bottle-balance-card strong {
    grid-column: 1;
    min-width: 0;
    overflow: hidden;
    font-size: .8rem;
    line-height: 1.05;
    text-overflow: ellipsis;
  }

  body.bottle-page.bottle-game-active .bottle-balance-card small {
    display: none;
  }

  body.bottle-page.bottle-game-active .bottle-layout {
    display: contents;
  }

  body.bottle-page.bottle-game-active .bottle-board {
    grid-area: board;
    width: 100%;
    height: clamp(260px, 37vh, 340px);
    height: clamp(260px, 37svh, 340px);
    min-height: 260px;
    aspect-ratio: auto;
    border-radius: 8px;
    overflow: hidden;
  }

  body.bottle-page.bottle-game-active .bottle-players {
    inset: 8px;
  }

  body.bottle-page.bottle-game-active .bottle-player {
    width: clamp(68px, 21vw, 84px);
    min-height: 86px;
    padding: 5px;
    gap: 4px;
  }

  body.bottle-page.bottle-game-active .bottle-player__photo {
    width: clamp(42px, 12vw, 52px);
  }

  body.bottle-page.bottle-game-active .bottle-player strong {
    font-size: .68rem;
    line-height: 1.05;
  }

  body.bottle-page.bottle-game-active .bottle-player small {
    font-size: .58rem;
    line-height: 1;
  }

  body.bottle-page.bottle-game-active .bottle-player__timer {
    min-width: 26px;
    height: 26px;
    font-size: .66rem;
  }

  body.bottle-page.bottle-game-active .bottle-player__dm-badge {
    top: 4px;
    left: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: .62rem;
  }

  body.bottle-page.bottle-game-active .bottle-vip-badge {
    top: 3px;
    right: 3px;
    padding: 2px 5px;
    font-size: .52rem;
  }

  body.bottle-page.bottle-game-active .bottle-player__gift-sticker,
  body.bottle-page.bottle-game-active .bottle-player__gift-more {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    font-size: .78rem;
  }

  body.bottle-page.bottle-game-active .bottle-spin {
    width: clamp(72px, 21vw, 86px);
    gap: 2px;
  }

  body.bottle-page.bottle-game-active .bottle-spin__shape {
    width: clamp(58px, 17vw, 68px);
    height: clamp(24px, 6.8vw, 30px);
  }

  body.bottle-page.bottle-game-active .bottle-spin b {
    max-width: 74px;
    font-size: .6rem;
    line-height: 1.12;
  }

  body.bottle-page.bottle-game-active .bottle-decision {
    width: calc(100% - 16px);
    grid-template-columns: minmax(58px, 74px) minmax(0, 1fr) minmax(58px, 74px);
    gap: 7px;
    padding: 8px;
  }

  body.bottle-page.bottle-game-active .bottle-decision .action-btn {
    min-height: 34px;
    padding: 7px 8px;
    font-size: .7rem;
  }

  body.bottle-page.bottle-game-active .bottle-side {
    display: contents;
  }

  body.bottle-page.bottle-game-active .bottle-gifts-panel {
    display: none;
  }

  body.bottle-page.bottle-game-active .bottle-music-panel,
  body.bottle-page.bottle-game-active .bottle-chat {
    min-height: 0;
    padding: 8px;
    border-radius: 8px;
    width: 100%;
    min-width: 0;
  }

  body.bottle-page.bottle-game-active .bottle-music-panel {
    grid-area: music;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
  }

  body.bottle-page.bottle-game-active .bottle-music-panel .bottle-panel-head {
    display: contents;
  }

  body.bottle-page.bottle-game-active .bottle-music-panel .bottle-panel-head > strong {
    grid-column: 1 / -1;
    font-size: .72rem;
    line-height: 1;
  }

  body.bottle-page.bottle-game-active .bottle-music-volume-mini {
    display: none;
  }

  body.bottle-page.bottle-game-active #bottle-music-price {
    display: none;
  }

  body.bottle-page.bottle-game-active .bottle-music-now {
    grid-column: 1 / 3;
    grid-row: 2;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px;
    min-height: 44px;
    padding: 5px 6px;
  }

  body.bottle-page.bottle-game-active .bottle-music-disc {
    width: 34px;
    font-size: .82rem;
  }

  body.bottle-page.bottle-game-active .bottle-music-now span,
  body.bottle-page.bottle-game-active .bottle-music-now small {
    font-size: .58rem;
  }

  body.bottle-page.bottle-game-active .bottle-music-now strong {
    font-size: .7rem;
  }

  body.bottle-page.bottle-game-active .bottle-music-queue,
  body.bottle-page.bottle-game-active .bottle-music-hint {
    display: none;
  }

  body.bottle-page.bottle-game-active .bottle-music-controls {
    grid-column: 3;
    grid-row: 2;
    align-self: end;
    justify-self: end;
    margin: 0;
  }

  body.bottle-page.bottle-game-active .bottle-music-controls .bottle-btn--music {
    width: auto;
    min-height: 26px;
    min-width: 44px;
    max-width: 44px;
    padding: 5px 7px;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.bottle-page.bottle-game-active .bottle-music-controls .bottle-btn--music::before {
    content: "MP3";
    font-size: .68rem;
    line-height: 1;
  }

  body.bottle-page.bottle-game-active .bottle-chat {
    grid-area: chat;
    min-height: 300px;
    max-height: min(420px, 52vh);
    max-height: min(420px, 52svh);
    grid-template-rows: auto auto auto minmax(132px, 1fr) auto;
    overflow: hidden;
  }

  body.bottle-page.bottle-game-active .bottle-panel-head {
    margin-bottom: 5px;
  }

  body.bottle-page.bottle-game-active .bottle-chat > .bottle-panel-head strong {
    font-size: .9rem;
  }

  body.bottle-page.bottle-game-active .bottle-chat > .bottle-panel-head span {
    font-size: .72rem;
  }

  body.bottle-page.bottle-game-active .bottle-chat-tabs {
    gap: 5px;
    margin: 0 0 5px;
  }

  body.bottle-page.bottle-game-active .bottle-chat-tabs button {
    min-height: 30px;
    border-radius: 8px;
    font-size: .78rem;
  }

  body.bottle-page.bottle-game-active .bottle-private-list {
    gap: 5px;
    padding-bottom: 5px;
  }

  body.bottle-page.bottle-game-active .bottle-private-peer {
    min-width: 96px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 5px 6px;
  }

  body.bottle-page.bottle-game-active .bottle-private-peer__photo {
    width: 28px;
  }

  body.bottle-page.bottle-game-active .bottle-chat__messages {
    min-height: 0;
    gap: 5px;
    padding-right: 2px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.bottle-page.bottle-game-active .bottle-chat__messages:empty::before {
    font-size: .76rem;
  }

  body.bottle-page.bottle-game-active .bottle-chat-message {
    padding: 6px 7px;
    gap: 1px;
  }

  body.bottle-page.bottle-game-active .bottle-chat-message strong {
    font-size: .66rem;
  }

  body.bottle-page.bottle-game-active .bottle-chat-message span {
    font-size: .78rem;
    line-height: 1.28;
  }

  body.bottle-page.bottle-game-active .bottle-chat__form {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 6px;
    padding-top: 7px;
  }

  body.bottle-page.bottle-game-active .bottle-chat__form input {
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.2;
  }

  body.bottle-page.bottle-game-active .bottle-chat__form .action-btn {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 8px;
  }
}

@media (max-width: 720px) {
  .modal:not(.hidden) {
    align-items: start;
    place-items: start center;
    min-height: 100dvh;
    padding: max(10px, env(safe-area-inset-top, 0px) + 10px) 10px max(10px, env(safe-area-inset-bottom, 0px) + 10px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .modal:not(.hidden) .modal__overlay {
    position: fixed;
  }

  .modal:not(.hidden) .modal__dialog,
  .modal:not(.hidden) .premium-gate-modal__dialog,
  .modal:not(.hidden) .task-modal__dialog {
    max-height: none;
    overflow: visible;
  }

  .bottle-profile-modal,
  .bottle-balance-modal,
  .bottle-gift-sale-modal,
  .bottle-invite-modal,
  .bottle-actions-modal,
  .bottle-owned-room-modal,
  .bottle-premium-modal,
  .bottle-room-closed-modal {
    width: min(100%, calc(100vw - 20px));
    max-width: 620px;
    max-height: none;
    overflow: visible;
  }

  .bottle-balance-modal {
    padding: 14px;
  }

  .bottle-packages {
    grid-template-columns: 1fr;
  }

  .bottle-package {
    min-height: 112px;
  }

  .bottle-profile-card {
    max-height: none;
  }

  .bottle-profile-card__gifts {
    max-height: none;
  }

  .bottle-profile-gifts-grid,
  .bottle-gift-picker__grid,
  .bottle-friends-list {
    max-height: none;
    overflow: visible;
  }

  .bottle-gift-picker-modal {
    place-items: start center;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .bottle-gift-picker-modal__backdrop {
    position: fixed;
  }

  .bottle-gift-picker {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 380px) {
  body.bottle-page.bottle-game-active .bottle-board {
    height: clamp(250px, 38vh, 310px);
    height: clamp(250px, 38svh, 310px);
    min-height: 250px;
  }

  body.bottle-page.bottle-game-active .bottle-player {
    width: 62px;
    min-height: 78px;
  }

  body.bottle-page.bottle-game-active .bottle-player__photo {
    width: 38px;
  }

  body.bottle-page.bottle-game-active .bottle-spin {
    width: clamp(68px, 21vw, 78px);
  }

  body.bottle-page.bottle-game-active .bottle-spin__shape {
    width: clamp(50px, 16vw, 56px);
    height: clamp(22px, 6.8vw, 28px);
  }

  body.bottle-page.bottle-game-active .bottle-chat {
    min-height: 280px;
    max-height: min(390px, 54vh);
    max-height: min(390px, 54svh);
  }

  body.bottle-page.bottle-game-active .bottle-mobile-menu-btn {
    min-width: 68px;
    padding-inline: 9px;
    font-size: .76rem;
  }
}

/* Final light-theme overrides for late my/catalog sections. */
:root[data-theme='light'] .premium-card--highlight {
  background:
    radial-gradient(circle at top left, rgba(95, 194, 255, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(237, 243, 255, 0.96)) !important;
  border-color: rgba(93, 123, 177, 0.16) !important;
  box-shadow: 0 18px 44px rgba(76, 110, 168, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.36) !important;
}

:root[data-theme='light'] .games-page--list .catalog-choice-card,
:root[data-theme='light'] .games-page--list .catalog-choice-hero__feature.catalog-choice-card,
:root[data-theme='light'] .games-page--list .catalog-choice-card--anonymous.catalog-choice-hero__feature {
  --catalog-card-edge: rgba(93, 123, 177, 0.16);
  background:
    radial-gradient(circle at 24% 0, color-mix(in srgb, var(--catalog-card-accent) 78%, white 22%), transparent 42%),
    linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(238, 244, 255, 0.96)) !important;
  border-color: var(--catalog-card-edge) !important;
  box-shadow: 0 18px 42px rgba(76, 110, 168, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.38) !important;
}

:root[data-theme='light'] .games-page--list .hero-panel__eyebrow {
  border-color: rgba(93, 123, 177, 0.16) !important;
  background: rgba(255, 255, 255, 0.76) !important;
  color: #62779b !important;
}

:root[data-theme='light'] .games-page--list .catalog-choice-card__body h3,
:root[data-theme='light'] .games-page--list .catalog-choice-card--anonymous .catalog-choice-card__intro-main h3 {
  color: #172033 !important;
}

:root[data-theme='light'] .games-page--list .catalog-choice-card__body > p:not(.hero-panel__eyebrow),
:root[data-theme='light'] .games-page--list .catalog-choice-card__intro-side p,
:root[data-theme='light'] .games-page--list .catalog-choice-card__mobile-desc {
  color: #5e7192 !important;
}

:root[data-theme='light'] .games-page--list .catalog-choice-card .action-btn {
  border-color: rgba(79, 124, 255, 0.22) !important;
  background: linear-gradient(180deg, rgba(126, 178, 255, 0.24), rgba(79, 124, 255, 0.16)) !important;
  color: #18386a !important;
}

:root[data-theme='light'] .games-page--list .catalog-game-visual,
:root[data-theme='light'] .games-page--list .catalog-game-visual-card {
  border-color: rgba(93, 123, 177, 0.16) !important;
  box-shadow: 0 12px 28px rgba(76, 110, 168, 0.08) !important;
}

:root[data-theme='light'] .games-page--list .catalog-game-visual {
  background:
    radial-gradient(circle at top, rgba(126, 178, 255, 0.18), transparent 56%),
    linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(238, 244, 255, 0.94)) !important;
  color: #17315f !important;
}

:root[data-theme='light'] .games-page--list .catalog-game-visual:hover,
:root[data-theme='light'] .games-page--list .catalog-game-visual:focus-visible {
  border-color: rgba(79, 124, 255, 0.28) !important;
  background:
    radial-gradient(circle at top, rgba(126, 178, 255, 0.22), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(241, 246, 255, 0.96)) !important;
}

:root[data-theme='light'] .games-page--list .catalog-game-visual-card {
  background:
    radial-gradient(circle at top, rgba(102, 212, 163, 0.16), transparent 54%),
    linear-gradient(180deg, rgba(252, 253, 255, 0.99), rgba(238, 244, 255, 0.96)) !important;
  color: #17315f !important;
}

:root[data-theme='light'] .catalog-news-panel {
  background:
    radial-gradient(circle at top left, rgba(95, 194, 255, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(237, 243, 255, 0.97)) !important;
  border-color: rgba(93, 123, 177, 0.16) !important;
  box-shadow: 0 18px 42px rgba(76, 110, 168, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.38) !important;
}

:root[data-theme='light'] .catalog-news-card {
  background:
    radial-gradient(circle at left, rgba(79, 124, 255, 0.1), transparent 38%),
    rgba(255, 255, 255, 0.76) !important;
  border-color: rgba(93, 123, 177, 0.14) !important;
}

:root[data-theme='light'] .catalog-news-panel__head h3,
:root[data-theme='light'] .catalog-news-card h4 {
  color: #172033 !important;
}

:root[data-theme='light'] .catalog-news-card__meta {
  color: #5d74a2 !important;
}

:root[data-theme='light'] .catalog-news-card__body {
  color: #5e7192 !important;
}

:root[data-theme='light'] .catalog-sidebar__item,
:root[data-theme='light'] .catalog-mobile-nav__item,
:root[data-theme='light'] .site-shell-nav__item,
:root[data-theme='light'] .site-shell-mobile-nav__item {
  background: rgba(255, 255, 255, 0.58);
  color: #5e7192;
}

:root[data-theme='light'] .catalog-sidebar__item:hover,
:root[data-theme='light'] .catalog-sidebar__item:focus-visible,
:root[data-theme='light'] .catalog-sidebar__item--active,
:root[data-theme='light'] .catalog-sidebar__item.topbar-tab.active,
:root[data-theme='light'] .catalog-mobile-nav__item--active,
:root[data-theme='light'] .catalog-mobile-nav__item:hover,
:root[data-theme='light'] .catalog-mobile-nav__item:focus-visible,
:root[data-theme='light'] .catalog-mobile-nav__item.topbar-tab.active,
:root[data-theme='light'] .site-shell-nav__item:hover,
:root[data-theme='light'] .site-shell-nav__item:focus-visible,
:root[data-theme='light'] .site-shell-nav__item.active,
:root[data-theme='light'] .site-shell-mobile-nav__item:hover,
:root[data-theme='light'] .site-shell-mobile-nav__item:focus-visible,
:root[data-theme='light'] .site-shell-mobile-nav__item.active {
  background: rgba(79, 124, 255, 0.12);
  color: #172033;
}

:root[data-theme='light'] .site-footer {
  margin-top: 34px;
  padding-top: 10px;
}

:root[data-theme='light'] .site-footer__links {
  gap: 12px;
}

:root[data-theme='light'] .site-footer__links a {
  border-color: rgba(93, 123, 177, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #5e7192;
}
