:root {
  --navy: #07152f;
  --navy-soft: #10264d;
  --blue: #176bff;
  --cyan: #16c7d9;
  --mint: #45e0a8;
  --orange: #ff9d45;
  --red: #ff5c73;
  --ink: #10213e;
  --muted: #67758c;
  --line: #dfe6ef;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --shadow: 0 20px 60px rgba(10, 33, 72, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

/* Lean installed-player experience */
.player-home,
.practice-selection {
  min-height: inherit;
  color: var(--ink);
  background: #f2f6fb;
}

.player-home-hero {
  padding: 3rem 1.35rem 2rem;
  color: white;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.25), transparent 12rem),
    linear-gradient(155deg, #07162f, #0b3874);
}

.player-home-hero > div {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: .75rem;
}

.connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38e6ae;
  box-shadow: 0 0 0 5px rgba(56,230,174,.12);
}

.player-home-hero p {
  margin: 1.5rem 0 .2rem;
  color: #9ec4ff;
  font-weight: 800;
}

.player-home-hero h1 {
  margin: 0 0 .5rem;
  font-size: 2.5rem;
}

.player-home-content {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 1.1rem 6rem;
}

.player-name-editor {
  overflow: hidden;
  border: 1px solid rgba(23, 105, 255, 0.16);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(6, 34, 79, 0.07);
}

.player-name-editor summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.player-name-editor summary::-webkit-details-marker {
  display: none;
}

.player-name-editor summary span {
  font-size: 1.05rem;
}

.player-name-editor form {
  display: grid;
  gap: 0.4rem;
  padding: 0 1rem 1rem;
}

.player-name-editor form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.player-name-editor input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 0.8rem;
  color: var(--ink);
  border: 1px solid #d8e2ef;
  border-radius: 13px;
  background: #ffffff;
  font: inherit;
  -webkit-text-fill-color: var(--ink);
}

.player-name-editor .button {
  min-height: 46px;
  padding-inline: 1rem;
}

.home-round-card {
  display: grid;
  gap: .65rem;
  padding: 1.25rem;
  border: 1px solid rgba(23,105,255,.16);
  border-radius: 22px;
  background: white;
  box-shadow: 0 18px 48px rgba(6,34,79,.1);
}

.install-app-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem;
  border: 1px solid rgba(23,105,255,.2);
  border-radius: 17px;
  background: #eaf2ff;
}

.install-app-card > div {
  display: grid;
}

.install-app-card small {
  color: var(--muted);
}

.home-round-card.is-open {
  color: white;
  border-color: #1769ff;
  background: linear-gradient(145deg, #0a2c60, #1769ff);
  box-shadow: 0 22px 55px rgba(23,105,255,.3);
}

.home-round-card > span {
  color: #1769ff;
  font-size: .8rem;
  font-weight: 900;
}

.home-round-card.is-open > span,
.home-round-card.is-open > small {
  color: #d9e9ff;
}

.home-round-card > strong {
  font-size: 2rem;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.home-round-card > small {
  color: var(--muted);
  font-weight: 700;
}

.home-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}

.home-stats > div {
  display: grid;
  gap: .2rem;
  padding: 1rem;
  text-align: center;
  border-radius: 18px;
  background: white;
}

.home-stats strong {
  color: #1769ff;
  font-size: 1.35rem;
}

.home-stats span {
  color: var(--muted);
  font-size: .75rem;
}

.home-practice-card {
  display: grid;
  gap: .25rem;
  width: 100%;
  padding: 1.15rem;
  text-align: right;
  color: white;
  border: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 20%, rgba(0,229,255,.3), transparent 9rem),
    #07162f;
  cursor: pointer;
}

.home-practice-card span {
  color: #64dcf0;
  font-size: .75rem;
  font-weight: 900;
}

.home-practice-card strong {
  font-size: 1.2rem;
}

.home-practice-card small {
  color: #afbed4;
}

.practice-selection {
  padding: 3rem 1.1rem 6rem;
}

.practice-selection header p {
  margin: 0;
  color: #1769ff;
  font-weight: 900;
}

.practice-selection header h2 {
  margin-top: .25rem;
}

.practice-game-list {
  display: grid;
  gap: .85rem;
  margin-top: 1.3rem;
}

.practice-game-choice {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: .15rem .9rem;
  align-items: center;
  min-height: 92px;
  padding: .75rem;
  text-align: right;
  color: var(--ink);
  border: 1px solid rgba(100,130,180,.17);
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 30px rgba(7,30,68,.08);
  cursor: pointer;
}

.practice-game-choice > span {
  grid-row: 1 / 3;
}

.choice-numbers,
.choice-preview {
  display: grid;
  min-height: 68px;
  place-items: center;
  color: white;
  border-radius: 14px;
  background: #1769ff;
  font-weight: 900;
}

.choice-preview {
  background-position: center;
  background-size: cover;
}

.practice-game-choice small {
  color: var(--muted);
}

.visual-instruction {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .65rem;
  align-items: center;
  margin-top: 1.4rem;
}

.visual-instruction > div > strong {
  display: block;
  margin-bottom: .45rem;
  color: #8edff0;
  text-align: center;
}

.visual-instruction .arena-board-preview {
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}

.image-puzzle-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  aspect-ratio: 1;
}

.image-puzzle-grid .number-tile {
  min-height: 0 !important;
  aspect-ratio: 1;
}

.image-tile {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.5) !important;
  background-image: var(--puzzle-image, url("/assets/cold-beer-puzzle.png")) !important;
  background-position: calc(var(--piece-x) * -100%) calc(var(--piece-y) * -100%) !important;
  background-size: 300% 300% !important;
  box-shadow: none !important;
}

.image-puzzle-grid .empty {
  border: 2px dashed rgba(23,105,255,.35);
  background: #e8eef7;
}

.image-puzzle-mode .game-card {
  background: white;
}

.image-puzzle-stage {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(0.8rem, 2vw, 1.25rem);
}

.puzzle-reference-card {
  display: grid;
  width: 100%;
  overflow: hidden;
  padding: 0.55rem;
  color: var(--navy);
  border: 1px solid rgba(47, 124, 255, 0.2);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #eef5ff);
  box-shadow: 0 14px 30px rgba(7, 18, 38, 0.13);
  cursor: zoom-in;
  text-align: right;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.puzzle-reference-card:hover,
.puzzle-reference-card:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(7, 18, 38, 0.18), 0 0 0 3px rgba(25, 216, 244, 0.2);
}

.puzzle-reference-card img {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  aspect-ratio: 1;
  border-radius: 14px;
  object-fit: cover;
}

.puzzle-reference-copy {
  display: grid;
  gap: 0.12rem;
}

.puzzle-reference-copy strong {
  font-size: 0.92rem;
}

.puzzle-reference-copy small {
  color: var(--muted);
  font-size: 0.72rem;
}

.puzzle-reference-dialog {
  width: min(90vw, 680px);
  max-width: none;
  padding: 0.75rem;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(3, 14, 31, 0.48);
}

.puzzle-reference-dialog::backdrop {
  background: rgba(3, 12, 28, 0.78);
  backdrop-filter: blur(5px);
}

.puzzle-reference-dialog img {
  display: block;
  width: 100%;
  max-height: 82vh;
  border-radius: 20px;
  object-fit: contain;
}

.puzzle-reference-close {
  position: absolute;
  z-index: 1;
  inset: -0.8rem -0.8rem auto auto;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 8px 22px rgba(3, 14, 31, 0.35);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

@media (max-width: 720px) {
  .image-puzzle-stage {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .puzzle-reference-card {
    grid-template-columns: minmax(0, 1fr) 76px;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.55rem;
    border-radius: 16px;
  }

  .puzzle-reference-card img {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    border-radius: 11px;
  }

  .puzzle-reference-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .puzzle-reference-dialog {
    width: min(92vw, 620px);
    padding: 0.55rem;
    border-radius: 22px;
  }
}

.image-game-visual {
  grid-template-columns: repeat(3, 1fr);
  background-image:
    linear-gradient(rgba(7,22,47,.18), rgba(7,22,47,.18)),
    var(--puzzle-image, url("/assets/cold-beer-puzzle.png"));
  background-position: center;
  background-size: cover;
}

.image-game-visual .game-visual-label {
  border-color: rgba(255,255,255,.65);
  background: rgba(7,22,47,.12);
}

@media (max-width: 370px), (max-height: 700px) {
  .player-home-hero {
    padding-top: 1.5rem;
    padding-bottom: 1.25rem;
  }

  .player-home-content {
    gap: .65rem;
    padding-top: .75rem;
  }

  .home-round-card {
    gap: .4rem;
    padding: .9rem;
  }
}

/* Mobile-first player experience — 2026-07 */
.player-phone-shell {
  position: relative;
  width: 100%;
  min-width: 0;
}

.player-mobile-navigation {
  position: sticky;
  z-index: 40;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  width: 100%;
  padding: 0.45rem max(0.55rem, env(safe-area-inset-right)) calc(0.45rem + env(safe-area-inset-bottom)) max(0.55rem, env(safe-area-inset-left));
  border-top: 1px solid rgba(116, 151, 202, 0.2);
  background: rgba(4, 20, 48, 0.96);
  box-shadow: 0 -12px 30px rgba(2, 15, 38, 0.22);
  backdrop-filter: blur(18px);
}

.player-mobile-navigation button {
  display: grid;
  min-height: 54px;
  place-items: center;
  gap: 0.1rem;
  padding: 0.25rem;
  color: #9fb2d2;
  border: 0;
  border-radius: 13px;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.player-mobile-navigation button span {
  font-size: 1.28rem;
  line-height: 1;
}

.player-mobile-navigation button strong {
  font-size: 0.7rem;
}

.player-mobile-navigation button.active {
  color: #fff;
  background: linear-gradient(145deg, rgba(23, 105, 255, 0.92), rgba(0, 205, 242, 0.28));
}

@media (min-width: 701px) {
  body:has(.player-stage) {
    background:
      radial-gradient(circle at 50% 18%, rgba(23, 105, 255, 0.15), transparent 32rem),
      #edf3fb;
  }

  body:has(.player-stage) .app-shell {
    width: 100%;
    padding: 2rem 1rem 4rem;
  }

  .player-stage {
    min-height: calc(100vh - 150px);
  }

  .player-phone-shell {
    width: min(100%, 430px);
    min-height: 760px;
    overflow: hidden;
    border: 8px solid #07162f;
    border-radius: 38px;
    background: #f2f6fb;
    box-shadow: 0 34px 90px rgba(5, 26, 64, 0.25);
  }

  .player-phone-shell::before {
    position: absolute;
    z-index: 80;
    top: 8px;
    left: 50%;
    width: 108px;
    height: 24px;
    border-radius: 999px;
    background: #07162f;
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
  }

  .player-phone-shell > :not(.player-mobile-navigation) {
    min-height: 744px;
  }

  .player-phone-shell.has-mobile-navigation > :not(.player-mobile-navigation) {
    min-height: 676px;
  }
}

@media (max-width: 700px) {
  body:has(.player-stage) .topbar {
    display: none;
  }

  body:has(.player-stage) .app-shell {
    width: 100%;
    min-height: 100dvh;
    padding: 0;
  }

  .player-stage {
    min-height: 100dvh;
    place-items: stretch;
  }

  .player-phone-shell {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    overflow: clip;
    background: #f2f6fb;
  }

  .player-phone-shell > :not(.player-mobile-navigation) {
    width: 100%;
    min-height: 100dvh;
    flex: 1;
  }

  .player-phone-shell.has-mobile-navigation > :not(.player-mobile-navigation) {
    min-height: calc(100dvh - 67px - env(safe-area-inset-bottom));
  }

  .player-mobile-navigation {
    position: fixed;
  }
}

/* High-contrast round management screen */
.arena-management-hero,
.arena-management-hero h2,
.arena-management-hero p,
.arena-management-hero strong,
.arena-management-hero span:not(.badge) {
  color: #f8fafc;
}

.arena-management-hero .eyebrow {
  color: #67e8f9;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.arena-management-hero h2 {
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.arena-management-hero p:not(.eyebrow) {
  color: #dbeafe;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

.compact-arena-settings {
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

.compact-arena-settings h3,
.compact-arena-settings .field span,
.compact-arena-settings .field strong {
  color: #0f172a;
}

.compact-arena-settings h3 {
  font-size: 1.25rem;
  font-weight: 900;
}

.compact-arena-settings .field span {
  font-size: .94rem;
  font-weight: 800;
}

.compact-arena-settings .field strong {
  font-size: 1rem;
  line-height: 1.45;
}

.round-management-section-head h2 {
  color: #0f172a;
  font-size: 1.75rem;
  font-weight: 900;
}

.round-management-section-head .eyebrow {
  color: #be185d;
  font-weight: 900;
}

.mobile-player-filters .field > span {
  color: #0f172a;
  font-size: .94rem;
  font-weight: 900;
}

.mobile-player-filters input,
.mobile-player-filters select {
  color: #0f172a;
  border: 2px solid #94a3b8;
  background: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.mobile-player-card {
  color: #f8fafc;
  border-color: #475569;
  background: #101b30;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .16);
}

.mobile-player-card strong,
.mobile-player-identity strong,
.mobile-player-metrics strong {
  color: #ffffff;
}

.mobile-player-identity strong {
  font-size: 1.18rem;
  font-weight: 900;
}

.mobile-player-identity small {
  color: #cbd5e1;
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.45;
}

.mobile-player-card .activity-status {
  color: #ffffff;
  font-weight: 900;
}

.mobile-player-metrics {
  border-color: #475569;
}

.mobile-player-metrics > div + div {
  border-color: #475569;
}

.mobile-player-metrics span {
  color: #bfdbfe;
  font-size: .92rem;
  font-weight: 800;
}

.mobile-player-metrics strong {
  font-size: 1.55rem;
  font-weight: 900;
}

.mobile-player-metrics small {
  color: #e2e8f0;
  font-size: .88rem;
  font-weight: 750;
}

.mobile-player-card .button.secondary {
  color: #e0f2fe;
  border: 2px solid #38bdf8;
  background: #082f49;
  font-size: 1rem;
  font-weight: 900;
}

@media (max-width: 700px) {
  .mobile-player-card {
    padding: 1.1rem;
  }

  .mobile-player-metrics {
    font-size: 1rem;
  }
}

@media (max-width: 700px), (min-width: 701px) {
  .player-phone-shell .arena-landing,
  .player-phone-shell .arena-instructions,
  .player-phone-shell .waiting-stage {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .player-phone-shell .arena-main,
  .player-phone-shell .arena-instructions-hero,
  .player-phone-shell .waiting-identity {
    min-height: auto;
    padding: 2.7rem 1.25rem 1.3rem;
  }

  .player-phone-shell .arena-main {
    gap: 1.1rem;
    background:
      radial-gradient(circle at 50% 18%, rgba(0, 229, 255, 0.25), transparent 13rem),
      linear-gradient(165deg, #07162f, #0a2b5f);
  }

  .player-phone-shell .arena-copy h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(2.45rem, 13vw, 3.55rem);
  }

  .player-phone-shell .arena-copy p,
  .player-phone-shell .arena-round-card small {
    font-size: 0.86rem;
  }

  .player-phone-shell .arena-round-card {
    padding: 1rem;
    border-radius: 20px;
  }

  .player-phone-shell .arena-entry,
  .player-phone-shell .arena-instructions-panel,
  .player-phone-shell .waiting-command {
    padding: 1.25rem;
  }

  .player-phone-shell .arena-entry-head h2,
  .player-phone-shell .arena-instructions-copy h1,
  .player-phone-shell .waiting-command h2 {
    font-size: 1.7rem;
  }

  .player-phone-shell .form-grid {
    gap: 0.85rem;
  }

  .player-phone-shell input,
  .player-phone-shell select,
  .player-phone-shell .button {
    min-height: 48px;
  }

  .player-phone-shell .arena-board-preview {
    margin-top: 1rem;
  }

  .player-phone-shell .arena-rule-list article {
    padding: 0.8rem 0;
  }

  .player-phone-shell .waiting-identity {
    color: white;
    background:
      radial-gradient(circle at 50% 20%, rgba(0, 229, 255, 0.22), transparent 10rem),
      #07162f;
  }

  .player-phone-shell .waiting-avatar {
    width: 72px;
    height: 72px;
  }

  .player-phone-shell .waiting-cashier-code,
  .player-phone-shell .waiting-plan-code {
    padding: 0.8rem;
  }

  .player-phone-shell .waiting-metrics {
    gap: 0.45rem;
  }

  .player-phone-shell .waiting-metrics > div {
    padding: 0.8rem 0.35rem;
  }

  .player-phone-shell .practice-entry-card {
    align-items: stretch;
    flex-direction: column;
  }

  .player-phone-shell .round-call-card,
  .player-phone-shell .practice-intro-card,
  .player-phone-shell .practice-result-card,
  .player-phone-shell .victory-stage,
  .player-phone-shell .player-prize-wallet {
    width: 100%;
    max-width: none;
    min-height: inherit;
    padding: 3.5rem 1.25rem 1.4rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .player-phone-shell .round-call-facts,
  .player-phone-shell .practice-facts,
  .player-phone-shell .victory-stats,
  .player-phone-shell .victory-prize,
  .player-phone-shell .player-prize-summary {
    gap: 0.45rem;
  }

  .player-phone-shell .countdown-stage {
    width: 100%;
    min-height: inherit;
    padding: 1.5rem;
    border-radius: 0;
    background:
      repeating-radial-gradient(circle at center, transparent 0 54px, rgba(23, 105, 255, 0.2) 55px 57px),
      radial-gradient(circle at center, #0c3c86, #07162f 65%);
  }

  .player-phone-shell .countdown {
    font-size: clamp(8rem, 42vw, 12rem);
  }

  .player-phone-shell .game-shell {
    width: 100%;
    min-height: inherit;
    padding: max(2.5rem, env(safe-area-inset-top)) 0.75rem 1rem;
    border-radius: 0;
    background: #07162f;
  }

  .player-phone-shell .game-head {
    margin-bottom: 0.65rem;
  }

  .player-phone-shell .game-card {
    padding: 0.85rem;
    border-radius: 20px;
  }

  .player-phone-shell .game-card .panel-head h2 {
    font-size: 1.45rem;
  }

  .player-phone-shell .puzzle-grid {
    gap: 0.42rem;
  }

  .player-phone-shell .number-tile {
    min-height: clamp(58px, 8.7vh, 78px);
    border-radius: 12px;
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .player-phone-shell .player-prize-wallet-hero,
  .player-phone-shell .player-prize-summary,
  .player-phone-shell .player-prize-row {
    grid-template-columns: 1fr;
  }

  .player-phone-shell .player-prize-wallet-code {
    width: 100%;
  }

  .player-phone-shell .player-prize-row {
    gap: 0.5rem;
  }
}

@media (max-width: 370px), (max-height: 700px) {
  .player-phone-shell .arena-main,
  .player-phone-shell .arena-instructions-hero,
  .player-phone-shell .waiting-identity {
    padding-top: 1.4rem;
  }

  .player-phone-shell .arena-copy p,
  .player-phone-shell .arena-live-line strong,
  .player-phone-shell .arena-entry-foot,
  .player-phone-shell .arena-instructions-note {
    display: none;
  }

  .player-phone-shell .number-tile {
    min-height: 55px;
  }
}

/* Keep every management screen in the command-center visual language. */
.command-center .admin-head {
  position: relative;
  min-height: 150px;
  padding: 1.7rem 1.9rem;
  overflow: hidden;
  align-items: center;
  color: white;
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 15%, rgba(255, 79, 128, 0.28), transparent 17rem),
    radial-gradient(circle at 92% 90%, rgba(125, 85, 255, 0.35), transparent 19rem),
    linear-gradient(135deg, #181023, #34194b);
  box-shadow: 0 18px 44px rgba(42, 24, 66, 0.18);
}

.command-center .admin-head::after {
  position: absolute;
  bottom: -80px;
  left: -45px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(255, 255, 255, 0.025),
    0 0 0 60px rgba(255, 255, 255, 0.018);
  content: "";
}

.command-center .admin-head > * {
  position: relative;
  z-index: 1;
}

.command-center .admin-head h2 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
}

.command-center .admin-head .muted {
  color: rgba(255, 255, 255, 0.6);
}

.command-center .button {
  background: linear-gradient(135deg, #ff4f80, #d93470);
  box-shadow: 0 12px 28px rgba(217, 52, 112, 0.24);
}

.command-center .button:hover {
  box-shadow: 0 16px 34px rgba(217, 52, 112, 0.3);
}

.command-center .button.secondary {
  color: #7d315c;
  border-color: rgba(217, 52, 112, 0.16);
  background: rgba(255, 79, 128, 0.08);
  box-shadow: none;
}

.command-center .button.ghost {
  color: #68427c;
  border: 1px solid rgba(92, 66, 106, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(42, 24, 66, 0.07);
}

.command-center .admin-head .button.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.09);
}

.command-center .panel,
.command-center .setting-card,
.command-center .playable-game,
.command-center .active-game-card,
.command-center .game-card-option {
  border-color: rgba(92, 66, 106, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(42, 24, 66, 0.08);
}

.command-center .setting-card:hover,
.command-center .playable-game:hover,
.command-center .game-card-option:hover {
  border-color: rgba(217, 52, 112, 0.24);
  box-shadow: 0 18px 42px rgba(74, 38, 94, 0.12);
}

.command-center .playable-game.selected {
  border-color: rgba(217, 52, 112, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 79, 128, 0.08), 0 18px 42px rgba(74, 38, 94, 0.12);
}

.command-center .game-number,
.command-center .eyebrow {
  color: #d93470;
}

.command-center .mini-puzzle,
.command-center .game-visual {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 79, 128, 0.22), transparent 15rem),
    radial-gradient(circle at 90% 85%, rgba(125, 85, 255, 0.25), transparent 15rem),
    linear-gradient(145deg, #181023, #321947);
}

.command-center .game-facts div,
.command-center .game-metrics div {
  background: #f7f1f8;
}

.command-center .game-note {
  color: #6f3458;
  background: rgba(255, 79, 128, 0.08);
}

.command-center .field input:focus,
.command-center .field select:focus {
  border-color: #d93470;
  box-shadow: 0 0 0 5px rgba(217, 52, 112, 0.09);
}

.command-center .segment.active,
.command-center .toggle.on {
  background: linear-gradient(135deg, #ff4f80, #7d55ff);
  box-shadow: 0 8px 20px rgba(125, 85, 255, 0.2);
}

.command-center .schedule-card {
  color: white;
  border: 0;
  background:
    radial-gradient(circle at 0 100%, rgba(255, 79, 128, 0.24), transparent 18rem),
    radial-gradient(circle at 100% 0, rgba(125, 85, 255, 0.28), transparent 18rem),
    linear-gradient(135deg, #21142d, #3b1d50);
}

.command-center .schedule-card .muted {
  color: rgba(255, 255, 255, 0.62);
}

.command-center .schedule-card .button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.09);
}

.command-center .table-wrap {
  border-color: rgba(92, 66, 106, 0.1);
}

.command-center thead {
  color: #715f76;
  background: #f4edf6;
}

.command-center tbody tr:hover {
  background: rgba(255, 79, 128, 0.035);
}

.command-center .avatar {
  background: linear-gradient(145deg, #ff5b89, #8059e8);
  box-shadow: 0 6px 14px rgba(125, 85, 255, 0.2);
}

.command-center .timeline-item::before {
  background: #d93470;
  box-shadow: 0 0 0 5px rgba(217, 52, 112, 0.09);
}

@media (max-width: 640px) {
  .command-center .admin-head {
    min-height: 0;
    padding: 1.35rem 1.15rem;
    align-items: flex-start;
    border-radius: 20px;
  }

  .command-center .admin-head h2 {
    font-size: 2rem;
  }

  .command-center .admin-head-actions {
    width: 100%;
  }

  .command-center .admin-head-actions .button {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #eef3f9;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Heebo", Arial, sans-serif;
  background:
    radial-gradient(circle at 100% 0%, rgba(23, 107, 255, 0.12), transparent 34rem),
    radial-gradient(circle at 0% 100%, rgba(22, 199, 217, 0.12), transparent 34rem),
    #f2f6fb;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
}

.ambient-one {
  top: -14rem;
  right: -7rem;
  background: var(--blue);
}

.ambient-two {
  bottom: -14rem;
  left: -8rem;
  background: var(--cyan);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: 0.85rem max(1.25rem, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(223, 230, 239, 0.85);
  background: rgba(246, 249, 252, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue), #0b3dba);
  box-shadow: 0 10px 24px rgba(23, 107, 255, 0.3);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.mode-switch {
  display: flex;
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.mode-button {
  padding: 0.58rem 1rem;
  color: var(--muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 700;
}

.mode-button.active {
  color: white;
  background: var(--navy);
}

.app-shell {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.player-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 160px);
  place-items: center;
}

.login-stage {
  display: grid;
  min-height: calc(100vh - 160px);
  place-items: center;
}

.login-card {
  width: min(100%, 480px);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border: 1px solid rgba(223, 230, 239, 0.9);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin-bottom: 0.5rem;
}

.login-error {
  padding: 0.8rem 1rem;
  color: #9f1f2f;
  border: 1px solid #f2bec5;
  border-radius: 12px;
  background: #fff1f3;
  font-weight: 700;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 34px;
  background: white;
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  display: flex;
  min-height: 650px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: white;
  background:
    linear-gradient(145deg, rgba(7, 21, 47, 0.95), rgba(11, 52, 113, 0.9)),
    radial-gradient(circle at 25% 15%, var(--cyan), transparent 35%);
}

.hero-panel::after {
  position: absolute;
  inset: auto -8rem -8rem auto;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 3rem rgba(255, 255, 255, 0.04),
    0 0 0 6rem rgba(255, 255, 255, 0.025);
  content: "";
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-panel .eyebrow {
  color: #84eaf4;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(132, 234, 244, 0.12);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 670px;
  margin-bottom: 1.1rem;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.4rem;
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.1rem;
  line-height: 1.75;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.hero-stat {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.hero-stat strong,
.hero-stat span {
  display: block;
}

.hero-stat strong {
  font-size: 1.25rem;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
}

.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.2rem);
}

.muted {
  color: var(--muted);
  line-height: 1.65;
}

.form-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  color: #35445d;
  font-size: 0.83rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  height: 52px;
  padding: 0 1rem;
  color: var(--ink);
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 13px;
  background: #fafcff;
  transition: 160ms ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 107, 255, 0.1);
}

.password-field {
  position: relative;
}

.login-credential {
  direction: ltr;
  font-family: Arial, sans-serif;
  text-align: left;
}

.password-field input {
  padding-left: 3.25rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  left: 0.65rem;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  border: 0;
  border-radius: 10px;
  background: transparent;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
  color: var(--blue);
  background: rgba(23, 107, 255, 0.08);
}

.password-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.credential-help {
  color: var(--muted);
  font-size: 0.75rem;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--blue);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.25rem;
  color: white;
  border: 0;
  border-radius: 13px;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(23, 107, 255, 0.22);
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(23, 107, 255, 0.28);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: white;
  box-shadow: none;
}

.button.danger {
  background: var(--red);
  box-shadow: 0 10px 24px rgba(255, 92, 115, 0.2);
}

.button.ghost {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  color: var(--blue);
  background: rgba(23, 107, 255, 0.08);
  box-shadow: none;
}

.full {
  width: 100%;
}

.screen-card {
  width: 100%;
  max-width: 680px;
  min-width: 0;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid rgba(223, 230, 239, 0.8);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
}

.screen-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 1.4rem;
  place-items: center;
  color: white;
  border-radius: 23px;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  box-shadow: 0 15px 35px rgba(23, 107, 255, 0.25);
  font-size: 2rem;
  font-weight: 900;
}

.instruction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 2rem 0;
  text-align: right;
}

.invitation-card {
  border-top: 5px solid var(--blue);
}

.invitation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.instruction {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.instruction b {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 0.65rem;
  place-items: center;
  color: white;
  border-radius: 10px;
  background: var(--navy);
}

.instruction span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.waiting-orbit {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 1rem auto 2rem;
}

.waiting-orbit::before,
.waiting-orbit::after {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(23, 107, 255, 0.16);
  border-radius: 50%;
  content: "";
  animation: pulse 2.3s ease-out infinite;
}

.waiting-orbit::after {
  animation-delay: 1.15s;
}

.waiting-core {
  position: absolute;
  inset: 25px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 12px 30px rgba(7, 21, 47, 0.28);
}

.waiting-core strong,
.waiting-core small {
  display: block;
}

.waiting-core strong {
  font-size: 1.6rem;
}

.waiting-core small {
  color: rgba(255, 255, 255, 0.62);
}

@keyframes pulse {
  from {
    opacity: 0.7;
    transform: scale(0.7);
  }
  to {
    opacity: 0;
    transform: scale(1.25);
  }
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(69, 224, 168, 0.13);
}

.status-dot.warning {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 157, 69, 0.13);
}

.countdown {
  color: var(--blue);
  font-size: clamp(7rem, 22vw, 12rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 18px 50px rgba(23, 107, 255, 0.18);
}

.game-shell {
  width: min(760px, 100%);
}

.game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.game-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  color: #34435c;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 0.78rem;
  font-weight: 700;
}

.pill.live {
  color: #087958;
  border-color: rgba(69, 224, 168, 0.32);
  background: rgba(69, 224, 168, 0.1);
}

.timer {
  min-width: 86px;
  padding: 0.65rem 0.85rem;
  color: white;
  border-radius: 13px;
  background: var(--navy);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-align: center;
}

.game-card {
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow);
}

.game-progress {
  height: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f6;
}

.game-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 180ms ease;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(var(--puzzle-columns, 5), 1fr);
  gap: 0.8rem;
}

.number-tile {
  display: grid;
  min-height: 104px;
  place-items: center;
  color: var(--navy);
  border: 2px solid transparent;
  border-radius: 19px;
  background: #f1f5fa;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 900;
  transition: 130ms ease;
  touch-action: none;
  user-select: none;
}

.puzzle-help {
  margin: -0.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.number-tile:hover {
  border-color: rgba(23, 107, 255, 0.28);
  background: #eaf1ff;
  transform: translateY(-2px);
}

.number-tile.draggable {
  cursor: grab;
}

.number-tile.dragging {
  z-index: 10;
  cursor: grabbing;
  opacity: 0.9;
  box-shadow: 0 18px 38px rgba(7, 21, 47, 0.25);
  transition: none;
}

.number-tile.empty.drag-target {
  border-color: var(--blue);
  background: rgba(23, 107, 255, 0.08);
}

.number-tile.in-place {
  color: #087958;
  background: rgba(69, 224, 168, 0.12);
}

.number-tile.empty {
  cursor: default;
  border: 2px dashed #cbd6e3;
  background: #fafcff;
  box-shadow: inset 0 0 0 4px white;
}

.number-tile.wrong {
  color: #b4233a;
  border-color: var(--red);
  background: rgba(255, 92, 115, 0.1);
  animation: shake 220ms linear;
}

@keyframes shake {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.winner-badge {
  display: grid;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.5rem;
  place-items: center;
  color: #6b3c00;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd867, #ff9d45);
  box-shadow: 0 20px 45px rgba(255, 157, 69, 0.3);
  font-size: 3.2rem;
}

.winner-name {
  margin-bottom: 0.25rem;
  color: var(--blue);
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.result-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 2rem 0;
}

.result-cell {
  min-width: 0;
  padding: 0.9rem;
  border-radius: 14px;
  background: var(--surface-soft);
}

.result-cell strong,
.result-cell span {
  display: block;
}

.result-cell strong {
  font-size: 1.1rem;
}

.prize-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.prize-result > div,
.next-round-result {
  padding: 1rem;
  border: 1px solid rgba(23, 107, 255, 0.16);
  border-radius: 16px;
  background: #f2f7ff;
}

.prize-result span,
.prize-result strong,
.next-round-result span,
.next-round-result strong {
  display: block;
}

.prize-result span,
.next-round-result span {
  color: var(--muted);
  font-size: 0.78rem;
}

.prize-result strong {
  margin-top: 0.25rem;
  color: var(--navy);
  font-size: 1.15rem;
}

.next-round-result {
  margin-bottom: 1rem;
  text-align: center;
}

.next-round-result strong {
  margin-top: 0.2rem;
  color: var(--blue);
  font-size: 1.8rem;
}

.result-cell span {
  color: var(--muted);
  font-size: 0.74rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(223, 230, 239, 0.8);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow);
}

.sidebar {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  color: white;
  background: var(--navy);
}

.sidebar-title {
  margin: 0 0 1.8rem;
  padding: 0.4rem;
}

.sidebar-title small {
  display: block;
  color: rgba(255, 255, 255, 0.5);
}

.sidebar-nav {
  display: grid;
  gap: 0.35rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  color: rgba(255, 255, 255, 0.63);
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-weight: 700;
  text-align: right;
}

.nav-item.active,
.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.09);
}

.nav-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
}

.sidebar-foot {
  margin-top: auto;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-foot small,
.sidebar-foot strong {
  display: block;
}

.sidebar-foot small {
  color: rgba(255, 255, 255, 0.48);
}

.sidebar-logout {
  margin-top: 0.8rem;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  border: 0;
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
}

.admin-content {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  background: #f6f8fb;
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.admin-head h2 {
  margin-bottom: 0.25rem;
}

.admin-head-actions {
  display: flex;
  gap: 0.55rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
}

.stat-card span,
.stat-card small {
  display: block;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin: 0.25rem 0;
  font-size: 1.65rem;
}

.stat-card small {
  color: #08855f;
  font-size: 0.72rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
}

.panel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.panel-head h3 {
  margin: 0;
}

.schedule-card {
  color: white;
  border: 0;
  background:
    radial-gradient(circle at 0 100%, rgba(22, 199, 217, 0.22), transparent 45%),
    var(--navy);
}

.schedule-card .muted {
  color: rgba(255, 255, 255, 0.58);
}

.next-round {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.2rem 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
}

.next-round strong,
.next-round span {
  display: block;
}

.next-round strong {
  font-size: 1.55rem;
}

.next-round span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.78rem;
}

.schedule-actions {
  display: flex;
  gap: 0.55rem;
}

.schedule-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  color: #ffd6a8;
  border: 1px solid rgba(255, 157, 69, 0.25);
  border-radius: 13px;
  background: rgba(255, 157, 69, 0.1);
}

.schedule-warning span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.schedule-card .button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th,
td {
  padding: 0.8rem 0.7rem;
  border-bottom: 1px solid #ebeff4;
  font-size: 0.82rem;
  text-align: right;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--blue);
  border-radius: 10px;
  background: #eaf1ff;
  font-weight: 900;
}

.badge {
  display: inline-flex;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.badge.ready,
.badge.completed {
  color: #087958;
  background: rgba(69, 224, 168, 0.13);
}

.badge.waiting {
  color: #8d5900;
  background: rgba(255, 157, 69, 0.15);
}

.badge.offline,
.badge.cancelled {
  color: #9d2940;
  background: rgba(255, 92, 115, 0.12);
}

.badge.active {
  color: #1558c7;
  background: rgba(23, 107, 255, 0.11);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  padding-right: 1.35rem;
}

.timeline-item::before {
  position: absolute;
  top: 0.3rem;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(23, 107, 255, 0.08);
  content: "";
}

.timeline-item strong,
.timeline-item span {
  display: block;
}

.timeline-item span {
  color: var(--muted);
  font-size: 0.76rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.prize-settings-panel {
  margin-bottom: 1rem;
}

.prize-settings-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(260px, 1fr);
  gap: 1rem;
}

.setting-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.active-game-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 1.5rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 34px rgba(10, 33, 72, 0.06);
}

.playable-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.playable-game {
  display: block;
  padding: 1.15rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  text-align: right;
}

.playable-game.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 107, 255, 0.09);
}

.playable-game-head,
.playable-game-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.playable-game-head h3 {
  margin: 0.15rem 0 0;
}

.game-number {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
}

.mini-puzzle {
  grid-template-columns: repeat(var(--mini-puzzle-columns, 5), 1fr);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  margin: 1rem 0;
  padding: 0.7rem;
  border-radius: 13px;
  background: var(--navy);
}

.mini-puzzle span {
  display: grid;
  min-height: 38px;
  place-items: center;
  color: white;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.8rem;
  font-weight: 900;
}

.mini-puzzle span.empty {
  border: 1px dashed rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.03);
}

.playable-game-actions {
  justify-content: flex-start;
}

.playable-game-actions .button {
  min-height: 42px;
}

.game-visual {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  min-height: 290px;
  padding: 1.35rem;
  place-content: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 15%, rgba(22, 199, 217, 0.32), transparent 38%),
    linear-gradient(145deg, #07152f, #123d76);
}

.game-visual-label {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.4rem;
  font-weight: 900;
}

.game-visual-label.empty {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.035);
}

.game-title-row,
.game-actions,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.active-game-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.game-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.game-facts div,
.game-metrics div {
  padding: 0.85rem;
  border-radius: 13px;
  background: var(--surface-soft);
}

.game-facts strong,
.game-facts span,
.game-metrics strong,
.game-metrics span {
  display: block;
}

.game-facts span,
.game-metrics span {
  color: var(--muted);
  font-size: 0.72rem;
}

.games-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 1rem;
  margin-top: 1rem;
}

.game-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.game-note {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.85rem;
  color: #33516f;
  border-radius: 12px;
  background: rgba(22, 199, 217, 0.09);
  font-size: 0.78rem;
}

.game-note span {
  color: var(--muted);
}

.game-metrics {
  display: grid;
  gap: 0.6rem;
}

.game-metrics div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.game-card-option {
  position: relative;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
}

.game-card-option > .badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.game-option-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  place-items: center;
  color: white;
  border-radius: 15px;
  font-size: 1.35rem;
  font-weight: 900;
}

.game-option-icon.cyan {
  background: linear-gradient(145deg, #16c7d9, #087c9e);
}

.game-option-icon.orange {
  background: linear-gradient(145deg, #ffb35d, #e46d2b);
}

.game-option-icon.violet {
  background: linear-gradient(145deg, #8d74ff, #5841c7);
}

.game-card-option .muted {
  min-height: 3.2em;
  font-size: 0.82rem;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
  margin-top: 0.8rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: var(--surface-soft);
}

.segment {
  padding: 0.6rem;
  color: var(--muted);
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 800;
}

.segment.active {
  color: white;
  background: var(--navy);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.toggle {
  position: relative;
  width: 50px;
  height: 28px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #c8d1dd;
}

.toggle::after {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  content: "";
  transition: 160ms ease;
}

.toggle.on {
  background: var(--blue);
}

.toggle.on::after {
  transform: translateX(-22px);
}

.empty-state {
  padding: 3rem 1rem;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 50;
  bottom: 1.5rem;
  left: 50%;
  padding: 0.75rem 1rem;
  color: white;
  border-radius: 12px;
  background: var(--navy);
  box-shadow: 0 15px 40px rgba(7, 21, 47, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: 200ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

  .hero-panel {
    min-height: 420px;
  }

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

  .sidebar {
    display: block;
    padding: 0.9rem;
  }

  .sidebar-title,
  .sidebar-foot {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
  }

  .nav-item {
    width: auto;
    flex: 0 0 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .active-game-card,
  .games-layout {
    grid-template-columns: 1fr;
  }
}

/* Round management uses the mockup's dark visual language at every width. */
.admin-screen-schedule {
  color: #f8fafc;
  background:
    radial-gradient(circle at 40% 0, rgba(14, 116, 144, .13), transparent 34rem),
    #050e1a;
}

.admin-screen-schedule .admin-content {
  background: transparent;
}

.admin-screen-schedule .admin-head {
  color: #f8fafc;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-screen-schedule .admin-head h2 {
  color: #ffffff;
  font-weight: 900;
}

.admin-screen-schedule .admin-head p {
  color: #cbd5e1;
  font-weight: 700;
}

.admin-screen-schedule .arena-management-hero,
.admin-screen-schedule .compact-arena-settings,
.admin-screen-schedule .mobile-player-card {
  color: #f8fafc;
  border-color: #334155;
  background: #0b1728;
  box-shadow: none;
}

.admin-screen-schedule .compact-arena-settings h3,
.admin-screen-schedule .compact-arena-settings .field span,
.admin-screen-schedule .compact-arena-settings .field strong,
.admin-screen-schedule .round-management-section-head h2,
.admin-screen-schedule .mobile-player-filters .field > span {
  color: #f8fafc;
}

.admin-screen-schedule .compact-arena-settings .eyebrow,
.admin-screen-schedule .round-management-section-head .eyebrow {
  color: #67e8f9;
}

.admin-screen-schedule .compact-arena-settings .panel-head {
  border-bottom: 1px solid #334155;
}

.admin-screen-schedule .round-settings-icon {
  color: #67e8f9;
  font-size: 1.6rem;
}

.admin-screen-schedule .mobile-player-filters input,
.admin-screen-schedule .mobile-player-filters select {
  color: #f8fafc;
  border-color: #475569;
  background: #0b1728;
}

.admin-screen-schedule .mobile-player-filters input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.rounds-only-command {
  width: 100%;
  min-height: 100dvh;
  border: 0;
  border-radius: 0;
}

.rounds-only-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  color: #f8fafc;
  border-bottom: 1px solid #243247;
  background: #07111f;
}

.rounds-only-bar > div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.rounds-only-bar strong,
.rounds-only-bar small {
  display: block;
}

.rounds-only-bar strong {
  font-size: 1.05rem;
}

.rounds-only-bar small,
.rounds-only-bar span {
  color: #94a3b8;
  font-size: 0.78rem;
}

.rounds-only-bar button {
  min-height: 2.5rem;
  padding: 0 1rem;
  color: #f8fafc;
  border: 1px solid #475569;
  border-radius: 12px;
  background: #172337;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.rounds-only-access .rounds-only-command > .admin-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 1rem;
}

@media (max-width: 520px) {
  .rounds-only-bar {
    align-items: flex-start;
  }

  .rounds-only-bar > div:last-child > span {
    display: none;
  }
}

.admin-screen-schedule .mobile-player-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-screen-schedule .mobile-player-actions .button {
  min-height: 2.85rem;
  font-weight: 850;
}

.admin-screen-schedule .round-player-history {
  margin-top: 0.85rem;
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 16px;
  background: #07111f;
}

.admin-screen-schedule .round-player-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem;
  border-bottom: 1px solid #334155;
}

.admin-screen-schedule .round-player-history-head strong,
.admin-screen-schedule .round-player-history-head small {
  display: block;
}

.admin-screen-schedule .round-player-history-head strong {
  color: #fff;
}

.admin-screen-schedule .round-player-history-head small {
  margin-top: 0.2rem;
  color: #94a3b8;
}

.admin-screen-schedule .round-player-history-list {
  display: grid;
  max-height: 22rem;
  overflow-y: auto;
}

.admin-screen-schedule .round-player-history-entry {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border-top: 1px solid rgba(71, 85, 105, 0.55);
}

.admin-screen-schedule .round-player-history-entry:first-child {
  border-top: 0;
}

.admin-screen-schedule .round-player-history-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #67e8f9;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.12);
}

.admin-screen-schedule .round-player-history-entry.practice .round-player-history-icon {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.14);
}

.admin-screen-schedule .round-player-history-entry strong,
.admin-screen-schedule .round-player-history-entry small,
.admin-screen-schedule .round-player-history-entry time {
  display: block;
}

.admin-screen-schedule .round-player-history-entry > div > strong {
  color: #f8fafc;
  font-size: 0.82rem;
}

.admin-screen-schedule .round-player-history-entry small,
.admin-screen-schedule .round-player-history-entry time {
  margin-top: 0.15rem;
  color: #94a3b8;
  font-size: 0.7rem;
}

.admin-screen-schedule .round-player-history-meta {
  min-width: 5.5rem;
  text-align: left;
}

.admin-screen-schedule .round-player-history-meta > strong {
  color: #67e8f9;
}

.admin-screen-schedule .round-player-history-empty {
  padding: 1.3rem;
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 520px) {
  .admin-screen-schedule .mobile-player-actions {
    grid-template-columns: 1fr;
  }

  .admin-screen-schedule .round-player-history-entry {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .admin-screen-schedule .round-player-history-meta {
    grid-column: 2;
    min-width: 0;
    text-align: right;
  }
}

.admin-screen-schedule .round-management-section-head .pill {
  color: #e2e8f0;
  border-color: #475569;
  background: #172337;
}

.admin-screen-schedule .arena-management-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-screen-schedule .arena-management-actions .button {
  min-height: 3.4rem;
  font-size: 1rem;
  font-weight: 900;
}

.admin-screen-schedule .arena-management-actions .button:disabled {
  opacity: .42;
  filter: saturate(.45);
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    padding: 0.7rem 1rem;
  }

  .brand small {
    display: none;
  }

  .mode-button {
    padding: 0.52rem 0.58rem;
    font-size: 0.7rem;
  }

  .app-shell {
    width: min(100% - 1rem, 1240px);
    padding-top: 1rem;
  }

  .player-stage {
    min-height: auto;
  }

  .login-stage {
    min-height: auto;
  }

  .player-layout {
    border-radius: 22px;
  }

  .hero-panel {
    min-height: 350px;
    padding: 2rem 1.4rem;
  }

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

  .hero-stat {
    padding: 0.7rem;
  }

  .hero-stat strong {
    font-size: 1rem;
  }

  .form-panel {
    padding: 1.6rem 1.25rem 2rem;
  }

  .screen-card {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    padding: 1.45rem;
    border-radius: 22px;
  }

  .instruction-grid {
    grid-template-columns: 1fr;
  }

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

  .number-grid {
    gap: 0.4rem;
  }

  .number-tile {
    min-height: 62px;
    border-radius: 14px;
  }

  .admin-content {
    padding: 1rem;
  }

  .admin-head {
    display: block;
  }

  .admin-head-actions {
    margin-top: 0.8rem;
  }

  .stats-grid,
  .settings-grid,
  .prize-settings-grid,
  .game-settings,
  .game-library,
  .playable-games {
    grid-template-columns: 1fr;
  }

  .game-visual {
    min-height: 240px;
  }

  .game-title-row,
  .game-actions,
  .section-title,
  .game-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-strip {
    gap: 0.35rem;
  }

  .prize-result {
    grid-template-columns: 1fr;
  }

  .result-cell {
    padding: 0.75rem 0.35rem;
  }

  .result-cell strong {
    font-size: 0.95rem;
  }
}

@media (max-width: 520px) {
  .brand > span:last-child {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .topbar {
    align-items: center;
  }

  .mode-switch {
    margin-right: auto;
  }
}

/* 2026 arena visual system */
:root {
  --navy: #071226;
  --navy-soft: #0d2141;
  --blue: #2f7cff;
  --cyan: #19d8f4;
  --mint: #38e6ae;
  --orange: #ffb14a;
  --red: #ff6680;
  --ink: #10203a;
  --muted: #6e7d96;
  --line: rgba(120, 145, 180, 0.2);
  --surface: #ffffff;
  --surface-soft: #f2f6fc;
  --shadow: 0 24px 80px rgba(5, 24, 57, 0.14);
  --glow: 0 18px 50px rgba(47, 124, 255, 0.25);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 15px;
}

html {
  background: #eaf1fa;
}

body {
  position: relative;
  font-family: "Heebo", Arial, sans-serif;
  background:
    radial-gradient(circle at 86% 4%, rgba(47, 124, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 7% 72%, rgba(25, 216, 244, 0.14), transparent 30rem),
    linear-gradient(155deg, #f8fbff 0%, #edf3fb 52%, #e8f0fa 100%);
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(67, 102, 152, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 102, 152, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

h1,
h2,
h3,
.brand strong,
.button,
.mode-button,
.winner-name,
.timer,
.countdown {
  font-family: "Rubik", "Heebo", Arial, sans-serif;
}

.ambient {
  opacity: 0.25;
  filter: blur(105px);
  animation: ambient-float 12s ease-in-out infinite alternate;
}

.ambient-one {
  background: #2878ff;
}

.ambient-two {
  background: #16d7f1;
  animation-delay: -5s;
}

@keyframes ambient-float {
  from { transform: translate3d(-2%, -2%, 0) scale(0.95); }
  to { transform: translate3d(5%, 4%, 0) scale(1.08); }
}

.topbar {
  min-height: 84px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(244, 248, 253, 0.78);
  box-shadow: 0 8px 35px rgba(9, 30, 66, 0.07);
  backdrop-filter: blur(24px) saturate(150%);
}

.brand {
  gap: 0.85rem;
}

.brand-mark {
  position: relative;
  overflow: hidden;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 16px;
  background: linear-gradient(145deg, #3b8bff, #174bd4 72%);
  box-shadow: 0 12px 30px rgba(29, 91, 227, 0.34);
}

.brand-mark::after {
  position: absolute;
  top: -55%;
  left: -20%;
  width: 35%;
  height: 210%;
  background: rgba(255, 255, 255, 0.38);
  content: "";
  transform: rotate(28deg);
}

.brand strong {
  color: var(--navy);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 0.05rem;
  color: #7787a0;
  letter-spacing: 0.02em;
}

.mode-switch {
  gap: 0.24rem;
  padding: 0.34rem;
  border-color: rgba(103, 132, 173, 0.2);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(13, 39, 78, 0.08);
  backdrop-filter: blur(14px);
}

.mode-button {
  min-height: 40px;
  padding: 0.58rem 1.05rem;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.mode-button:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.mode-button.active {
  background: linear-gradient(135deg, #0d2141, #071226);
  box-shadow: 0 8px 20px rgba(7, 18, 38, 0.24);
}

.app-shell {
  width: min(1320px, calc(100% - 2rem));
  padding: 2.25rem 0 4.5rem;
}

.player-layout,
.screen-card,
.login-card,
.admin-layout {
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 30px 90px rgba(7, 28, 65, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.player-layout {
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px);
}

.hero-panel {
  min-height: 680px;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 14%, rgba(25, 216, 244, 0.28), transparent 25rem),
    radial-gradient(circle at 92% 88%, rgba(69, 102, 255, 0.28), transparent 28rem),
    linear-gradient(145deg, #071226 0%, #0a2348 55%, #103f7b 100%);
}

.hero-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.hero-panel::after {
  width: 420px;
  height: 420px;
  border: 1px solid rgba(25, 216, 244, 0.18);
  background:
    radial-gradient(circle, rgba(25, 216, 244, 0.17), transparent 58%),
    repeating-radial-gradient(circle, transparent 0 38px, rgba(255, 255, 255, 0.055) 39px 40px);
}

.hero-panel h1 {
  max-width: 650px;
  margin: 0.35rem 0 1.2rem;
  font-size: clamp(3.2rem, 6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  text-shadow: 0 14px 45px rgba(0, 0, 0, 0.28);
}

.hero-copy {
  max-width: 590px;
  color: rgba(232, 242, 255, 0.74);
  font-size: 1.05rem;
}

.eyebrow {
  color: var(--blue);
  letter-spacing: 0.04em;
}

.hero-panel .eyebrow {
  color: #77edff;
}

.eyebrow::before {
  box-shadow: 0 0 18px currentColor;
}

.hero-stats {
  gap: 0.8rem;
}

.hero-stat {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-stat strong {
  color: #ffffff;
  font-family: "Rubik", sans-serif;
  font-size: 1.35rem;
}

.form-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(47, 124, 255, 0.08), transparent 18rem),
    rgba(255, 255, 255, 0.95);
}

.form-panel h2,
.screen-card h2,
.admin-head h2 {
  color: var(--navy);
  letter-spacing: -0.035em;
}

.field input,
.field select {
  border: 1px solid rgba(114, 142, 178, 0.23);
  background: rgba(246, 249, 253, 0.92);
  box-shadow: inset 0 1px 2px rgba(14, 39, 75, 0.035);
}

.field input:hover,
.field select:hover {
  border-color: rgba(47, 124, 255, 0.35);
}

.field input:focus,
.field select:focus {
  border-color: #3d89ff;
  background: white;
  box-shadow: 0 0 0 5px rgba(47, 124, 255, 0.1), 0 10px 24px rgba(47, 124, 255, 0.08);
}

.button {
  min-height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3487ff, #1760e8);
  box-shadow: 0 12px 28px rgba(31, 104, 236, 0.25);
  transition: transform 170ms ease, box-shadow 170ms ease, filter 170ms ease;
}

.button:hover {
  filter: saturate(112%) brightness(1.04);
  box-shadow: 0 16px 36px rgba(31, 104, 236, 0.32);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button.secondary {
  color: #1756bd;
  border-color: rgba(47, 124, 255, 0.18);
  background: rgba(47, 124, 255, 0.08);
  box-shadow: none;
}

.button.ghost {
  color: #2765c7;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(14, 43, 84, 0.07);
}

.button.danger {
  background: linear-gradient(135deg, #ff6d83, #e94162);
  box-shadow: 0 12px 28px rgba(229, 64, 95, 0.22);
}

.login-card,
.screen-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(47, 124, 255, 0.1), transparent 19rem),
    rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
}

.login-card::before,
.screen-card::before {
  position: absolute;
  top: 0;
  right: 14%;
  left: 14%;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), transparent);
  content: "";
}

.screen-icon {
  color: white;
  background: linear-gradient(145deg, #2f87ff, #1852ce);
  box-shadow: var(--glow);
}

.waiting-orbit::before,
.waiting-orbit::after {
  border-color: rgba(47, 124, 255, 0.18);
}

.waiting-orbit::before {
  box-shadow: 0 0 50px rgba(25, 216, 244, 0.12);
}

.waiting-core {
  background:
    radial-gradient(circle at 35% 25%, rgba(62, 135, 255, 0.35), transparent 35%),
    linear-gradient(145deg, #0c2449, #061326);
  box-shadow: 0 20px 50px rgba(5, 25, 58, 0.3), 0 0 0 10px rgba(47, 124, 255, 0.06);
}

.countdown {
  color: transparent;
  background: linear-gradient(145deg, #25dff7, #2f7cff 55%, #885fff);
  background-clip: text;
  filter: drop-shadow(0 15px 24px rgba(47, 124, 255, 0.25));
}

.game-shell {
  width: min(100%, 920px);
}

.game-head {
  margin-bottom: 1rem;
  padding: 0 0.3rem;
}

.timer {
  min-width: 118px;
  padding: 0.65rem 1rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(135deg, #0d2448, #071226);
  box-shadow: 0 14px 32px rgba(7, 18, 38, 0.22);
  text-align: center;
}

.game-card {
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0, rgba(47, 124, 255, 0.08), transparent 22rem),
    rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.game-progress {
  height: 8px;
  background: #e8eef7;
}

.game-progress span {
  background: linear-gradient(90deg, var(--cyan), var(--blue), #7d5cff);
  box-shadow: 0 0 18px rgba(47, 124, 255, 0.35);
}

.number-grid {
  gap: 0.7rem;
  padding: clamp(0.75rem, 2vw, 1.15rem);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(7, 18, 38, 0.97), rgba(13, 41, 80, 0.97)),
    var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 45px rgba(7, 18, 38, 0.18);
}

.number-tile {
  color: #0c2449;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(145deg, #ffffff, #eaf2fd);
  box-shadow: 0 10px 20px rgba(3, 14, 31, 0.22), inset 0 1px 0 white;
}

.number-tile:hover {
  border-color: #67e7fa;
  box-shadow: 0 14px 28px rgba(3, 14, 31, 0.26), 0 0 0 3px rgba(25, 216, 244, 0.18);
}

.number-tile.in-place {
  color: #04684b;
  border-color: rgba(56, 230, 174, 0.65);
  background: linear-gradient(145deg, #eafff7, #bdf6df);
}

.number-tile.empty {
  border: 1px dashed rgba(128, 191, 225, 0.28);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 20px rgba(25, 216, 244, 0.04);
}

.winner-badge {
  color: #5b3500;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(145deg, #fff28a, #ffb13e 58%, #ff7b45);
  box-shadow: 0 24px 55px rgba(255, 158, 55, 0.35), 0 0 0 12px rgba(255, 177, 74, 0.08);
  animation: winner-pop 900ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes winner-pop {
  0% { opacity: 0; transform: scale(0.45) rotate(-14deg); }
  70% { transform: scale(1.08) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.winner-name {
  color: transparent;
  background: linear-gradient(135deg, #1760e8, #24bad8);
  background-clip: text;
}

.prize-result > div {
  border-color: rgba(255, 177, 74, 0.28);
  background: linear-gradient(145deg, #fffaf0, #fff3da);
}

.next-round-result {
  border-color: rgba(47, 124, 255, 0.16);
  background: linear-gradient(145deg, #f4f8ff, #edf5ff);
}

.admin-layout {
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 760px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.9);
}

.sidebar {
  position: relative;
  overflow: hidden;
  padding: 1.55rem 1.25rem;
  background:
    radial-gradient(circle at 20% 0, rgba(47, 124, 255, 0.32), transparent 17rem),
    radial-gradient(circle at 100% 100%, rgba(25, 216, 244, 0.13), transparent 18rem),
    linear-gradient(180deg, #0a1c38, #061225);
}

.sidebar::after {
  position: absolute;
  bottom: -90px;
  left: -90px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(25, 216, 244, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(25, 216, 244, 0.025), 0 0 0 68px rgba(25, 216, 244, 0.018);
  content: "";
}

.sidebar-title,
.sidebar-nav,
.sidebar-foot {
  position: relative;
  z-index: 1;
}

.sidebar-title strong {
  font-family: "Rubik", sans-serif;
  font-size: 1.15rem;
}

.nav-item {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: 170ms ease;
}

.nav-item:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.075);
  transform: translateX(-2px);
}

.nav-item.active {
  color: white;
  border-color: rgba(87, 180, 255, 0.2);
  background: linear-gradient(135deg, rgba(47, 124, 255, 0.32), rgba(25, 216, 244, 0.1));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.nav-icon {
  background: rgba(255, 255, 255, 0.1);
}

.nav-item.active .nav-icon {
  color: #82eeff;
  background: rgba(25, 216, 244, 0.13);
  box-shadow: 0 0 16px rgba(25, 216, 244, 0.11);
}

.sidebar-foot {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px);
}

.admin-content {
  padding: clamp(1.35rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 100% 0, rgba(47, 124, 255, 0.08), transparent 24rem),
    #f3f7fc;
}

.admin-head {
  margin-bottom: 1.45rem;
}

.admin-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.stats-grid {
  gap: 0.9rem;
}

.stat-card,
.panel,
.setting-card,
.playable-game,
.active-game-card,
.game-card-option {
  border-color: rgba(126, 151, 185, 0.18);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 35px rgba(15, 42, 82, 0.07);
  backdrop-filter: blur(12px);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.stat-card:hover,
.setting-card:hover,
.playable-game:hover,
.game-card-option:hover {
  border-color: rgba(47, 124, 255, 0.25);
  box-shadow: 0 18px 44px rgba(15, 42, 82, 0.11);
  transform: translateY(-3px);
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  border-radius: 20px;
}

.stat-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 74px;
  height: 4px;
  border-radius: 0 0 0 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  content: "";
}

.stat-card strong {
  color: var(--navy);
  font-family: "Rubik", sans-serif;
  font-size: 2rem;
}

.panel {
  border-radius: 21px;
}

.prize-settings-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 177, 74, 0.12), transparent 18rem),
    rgba(255, 255, 255, 0.92);
}

.prize-settings-panel .panel-head h3::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 0.45rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 15px rgba(255, 177, 74, 0.65);
  content: "";
}

.badge {
  border: 1px solid transparent;
  font-weight: 800;
}

.badge.ready,
.badge.completed {
  color: #087456;
  border-color: rgba(56, 230, 174, 0.2);
  background: rgba(56, 230, 174, 0.12);
}

.badge.active {
  color: #195bc2;
  border-color: rgba(47, 124, 255, 0.18);
  background: rgba(47, 124, 255, 0.1);
}

.table-wrap {
  border: 1px solid rgba(126, 151, 185, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.62);
}

thead {
  color: #637590;
  background: rgba(233, 240, 249, 0.76);
}

tbody tr {
  transition: background 150ms ease;
}

tbody tr:hover {
  background: rgba(47, 124, 255, 0.035);
}

.avatar {
  color: white;
  background: linear-gradient(145deg, #438eff, #1a59d6);
  box-shadow: 0 6px 14px rgba(47, 124, 255, 0.2);
}

.schedule-card {
  background:
    radial-gradient(circle at 100% 0, rgba(25, 216, 244, 0.1), transparent 17rem),
    rgba(255, 255, 255, 0.9);
}

.next-round {
  border: 1px solid rgba(47, 124, 255, 0.12);
  background: linear-gradient(145deg, #f2f7ff, #edf5fd);
}

.toggle.on {
  background: linear-gradient(90deg, #2f7cff, #19cfe9);
  box-shadow: 0 0 0 4px rgba(47, 124, 255, 0.08);
}

.segment.active {
  background: linear-gradient(135deg, #183866, #0b1b35);
  box-shadow: 0 8px 18px rgba(7, 18, 38, 0.18);
}

.playable-game.selected {
  border-color: rgba(47, 124, 255, 0.38);
  box-shadow: 0 16px 42px rgba(47, 124, 255, 0.13);
}

.mini-puzzle {
  background: linear-gradient(145deg, #0d2141, #071226);
}

.mini-puzzle span {
  color: var(--navy);
  background: linear-gradient(145deg, white, #eaf2fd);
}

.game-visual {
  background:
    radial-gradient(circle at 50% 35%, rgba(25, 216, 244, 0.18), transparent 15rem),
    linear-gradient(145deg, #0c2448, #071226);
}

.game-visual.image-game-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .65rem;
  overflow: hidden;
  background: linear-gradient(145deg, #0c2448, #071226);
}

.active-game-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 14px;
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(7, 18, 38, 0.94);
  box-shadow: 0 18px 50px rgba(7, 18, 38, 0.3);
  backdrop-filter: blur(16px);
}

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

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

  .sidebar {
    border-radius: 0;
    background:
      radial-gradient(circle at 100% 0, rgba(47, 124, 255, 0.3), transparent 20rem),
      linear-gradient(100deg, #08172d, #0c2951);
  }

  .sidebar-nav {
    gap: 0.3rem;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 640px) {
  body::before {
    background-size: 34px 34px;
  }

  .topbar {
    min-height: 68px;
    padding: 0.6rem 0.7rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .mode-switch {
    gap: 0.12rem;
    padding: 0.22rem;
  }

  .mode-button {
    min-height: 36px;
    padding: 0.45rem 0.5rem;
    font-size: 0.66rem;
  }

  .app-shell {
    width: min(100% - 0.75rem, 1320px);
    padding-top: 0.75rem;
  }

  .player-layout,
  .admin-layout {
    border-radius: 24px;
  }

  .hero-panel {
    min-height: 370px;
    padding: 2.3rem 1.35rem;
  }

  .hero-panel h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .hero-copy {
    font-size: 0.93rem;
  }

  .hero-stats {
    gap: 0.45rem;
  }

  .hero-stat {
    padding: 0.75rem 0.35rem;
    border-radius: 14px;
  }

  .hero-stat strong {
    font-size: 1rem;
  }

  .screen-card,
  .login-card {
    border-radius: 24px;
  }

  .game-card {
    padding: 1rem;
    border-radius: 24px;
  }

  .number-grid {
    gap: 0.38rem;
    padding: 0.55rem;
    border-radius: 18px;
  }

  .number-tile {
    min-height: 60px;
    border-radius: 13px;
  }

  .admin-content {
    padding: 1rem 0.8rem;
  }

  .admin-head h2 {
    font-size: 1.65rem;
  }

  .stat-card {
    min-height: 118px;
  }

  .stat-card strong {
    font-size: 1.65rem;
  }
}

/* Structural redesign: arena and command center */
.management-login,
.arena-instructions {
  display: grid;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 36px;
  box-shadow: 0 35px 100px rgba(30, 18, 58, 0.25);
}

.management-login {
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
  min-height: 650px;
  background: #fffaf2;
}

.management-login-visual,
.arena-instructions-hero {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: white;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 79, 128, 0.28), transparent 22rem),
    radial-gradient(circle at 92% 82%, rgba(125, 85, 255, 0.36), transparent 26rem),
    linear-gradient(145deg, #171022, #2d1744 60%, #3b1b58);
}

.management-login-visual::before,
.arena-instructions-hero::before {
  position: absolute;
  top: -30%;
  left: -18%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 65px rgba(255, 255, 255, 0.018),
    0 0 0 130px rgba(255, 255, 255, 0.012);
  content: "";
}

.management-login-visual::after,
.arena-instructions-hero::after {
  position: absolute;
  right: 8%;
  bottom: -22%;
  width: 390px;
  height: 390px;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  transform: perspective(450px) rotateX(58deg) rotateZ(-8deg);
}

.management-login-status,
.management-login-copy,
.management-login-metrics,
.arena-instructions-top,
.arena-instructions-copy,
.arena-board-preview {
  position: relative;
  z-index: 1;
}

.management-login-status,
.arena-instructions-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.management-login-status i,
.arena-instructions-live i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 0.45rem;
  border-radius: 50%;
  background: #ffb047;
  box-shadow: 0 0 14px currentColor;
}

.management-login-status i.online,
.arena-instructions-live i {
  color: #49e39e;
  background: #49e39e;
}

.management-login-copy p,
.arena-instructions-copy > p:first-child {
  margin-bottom: 0.8rem;
  color: #ffc75d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.management-login-copy h1,
.arena-instructions-copy h1 {
  margin: 0;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.management-login-copy h1 {
  max-width: 720px;
}

.management-login-copy > span,
.arena-instructions-copy > p:last-child {
  display: block;
  max-width: 540px;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.8;
}

.management-login-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.management-login-metrics div {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
}

.management-login-metrics strong,
.management-login-metrics span {
  display: block;
}

.management-login-metrics strong {
  color: white;
  font-family: "Rubik", sans-serif;
  font-size: 1.3rem;
}

.management-login-metrics span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.67rem;
}

.management-login-access {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 199, 93, 0.15), transparent 18rem),
    #fffaf2;
}

.management-login-access::before {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  color: rgba(71, 39, 95, 0.055);
  font-family: "Rubik", sans-serif;
  font-size: 8rem;
  font-weight: 900;
  content: "ADMIN";
  transform: rotate(-90deg) translateX(-38%);
  transform-origin: left top;
}

.management-login-access > * {
  position: relative;
  z-index: 1;
}

.management-access-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 1.4rem;
  place-items: center;
  color: white;
  border-radius: 18px;
  background: linear-gradient(145deg, #ff4f80, #7d55ff);
  box-shadow: 0 16px 34px rgba(125, 85, 255, 0.25);
  font-size: 1.55rem;
  font-weight: 900;
}

.management-access-kicker {
  margin-bottom: 0.45rem;
  color: #d93470;
  font-size: 0.75rem;
  font-weight: 900;
}

.management-login-access h2 {
  margin-bottom: 0.7rem;
  color: #24142e;
  font-size: clamp(2rem, 4vw, 3rem);
}

.management-access-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.management-enter-button {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 1.25rem;
  background: linear-gradient(135deg, #ff4f80, #d93470);
  box-shadow: 0 16px 34px rgba(217, 52, 112, 0.26);
}

.management-enter-button b {
  font-size: 1.25rem;
}

.management-back-button {
  width: fit-content;
  margin-top: 1rem;
  padding: 0.3rem 0;
  color: #715d75;
  border: 0;
  background: transparent;
  font-weight: 800;
}

.management-access-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  color: #9a879c;
  border-top: 1px solid rgba(83, 47, 95, 0.1);
  font-size: 0.68rem;
}

.arena-instructions {
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.92fr);
  min-height: 660px;
  background: #fffaf2;
}

.arena-instructions-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-family: "Rubik", sans-serif;
  font-weight: 900;
}

.arena-instructions-copy h1 span {
  color: transparent;
  background: linear-gradient(90deg, #ff4f80, #ff8b62 48%, #ffc75d);
  background-clip: text;
}

.arena-board-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(10, 6, 18, 0.42);
}

.arena-board-preview span {
  display: grid;
  min-height: 56px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.11);
  font-family: "Rubik", sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
}

.arena-board-preview span.empty {
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.025);
}

.arena-instructions-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 199, 93, 0.13), transparent 18rem),
    #fffaf2;
}

.arena-rule-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.arena-rule-summary span {
  padding: 0.45rem 0.7rem;
  color: #7a607a;
  border: 1px solid rgba(83, 47, 95, 0.1);
  border-radius: 999px;
  background: white;
  font-size: 0.7rem;
  font-weight: 800;
}

.arena-rule-list {
  display: grid;
  gap: 0.7rem;
}

.arena-rule-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(83, 47, 95, 0.1);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.72);
}

.arena-rule-list article b {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #d93470;
  border-radius: 14px;
  background: #fff0f4;
  font-family: "Rubik", sans-serif;
}

.arena-rule-list h3,
.arena-rule-list p {
  margin: 0;
}

.arena-rule-list h3 {
  color: #24142e;
}

.arena-rule-list p {
  margin-top: 0.25rem;
  color: #927e93;
  font-size: 0.76rem;
  line-height: 1.55;
}

.arena-ready-button {
  min-height: 58px;
  margin-top: 1.25rem;
  background: linear-gradient(135deg, #ff4f80, #d93470);
  box-shadow: 0 16px 34px rgba(217, 52, 112, 0.26);
}

.player-cashier-pass {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(83, 47, 95, 0.12);
  border-radius: 17px;
  background: #fffaf4;
}

.player-pass-qr {
  display: block;
  width: 88px;
  height: auto;
  overflow: hidden;
  border: 5px solid white;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(42, 24, 66, 0.08);
}

.player-cashier-pass span,
.player-cashier-pass strong,
.player-cashier-pass small {
  display: block;
}

.player-cashier-pass span,
.player-cashier-pass small {
  color: #927e93;
  font-size: 0.68rem;
}

.player-cashier-pass strong {
  direction: ltr;
  margin: 0.2rem 0;
  color: #24142e;
  font-family: "Rubik", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-align: left;
}

.arena-instructions-note {
  margin-top: 0.8rem;
  color: #9a879c;
  text-align: center;
}

.arena-landing {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  width: 100%;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 36px;
  background: #100d1d;
  box-shadow: 0 35px 100px rgba(30, 18, 58, 0.28);
}

.arena-main {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: white;
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 79, 128, 0.24), transparent 22rem),
    radial-gradient(circle at 90% 80%, rgba(126, 87, 255, 0.32), transparent 28rem),
    linear-gradient(145deg, #171124, #221238 55%, #31174a);
}

.arena-main::before {
  position: absolute;
  top: -25%;
  left: -10%;
  width: 75%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.018),
    0 0 0 140px rgba(255, 255, 255, 0.012);
  content: "";
}

.arena-main::after {
  position: absolute;
  right: 8%;
  bottom: -24%;
  width: 420px;
  height: 420px;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  transform: perspective(450px) rotateX(58deg) rotateZ(-8deg);
}

.arena-live-line,
.arena-copy,
.arena-round-card {
  position: relative;
  z-index: 1;
}

.arena-live-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.arena-live-line strong {
  margin-right: auto;
  color: #ffc75d;
}

.arena-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4f80;
  box-shadow: 0 0 0 6px rgba(255, 79, 128, 0.12), 0 0 20px rgba(255, 79, 128, 0.75);
  animation: pulse 1.6s ease-in-out infinite;
}

.arena-copy {
  margin: 3rem 0;
}

.arena-kicker {
  margin: 0 0 1rem;
  color: #ffbc5c;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.arena-copy h1 {
  margin: 0;
  font-size: clamp(4.5rem, 9vw, 8.2rem);
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.arena-copy h1 span {
  color: transparent;
  background: linear-gradient(90deg, #ff4f80, #ff8b62 48%, #ffc75d);
  background-clip: text;
}

.arena-copy > p:last-child {
  max-width: 540px;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.02rem;
  line-height: 1.8;
}

.arena-round-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) minmax(200px, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(12, 8, 24, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}

.arena-round-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.76rem;
}

.arena-status {
  color: #7ff0bd;
}

.arena-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 0.4rem;
  border-radius: 50%;
  background: #48e39d;
  box-shadow: 0 0 12px #48e39d;
}

.arena-clock,
.arena-prize {
  padding: 0.8rem 1rem;
  border-right: 2px solid rgba(255, 255, 255, 0.08);
}

.arena-clock strong,
.arena-clock span,
.arena-prize strong,
.arena-prize span,
.arena-prize small {
  display: block;
}

.arena-clock strong {
  font-family: "Rubik", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.arena-clock span,
.arena-prize span,
.arena-prize small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
}

.arena-prize strong {
  margin: 0.2rem 0;
  color: #ffc75d;
  font-family: "Rubik", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.arena-round-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.arena-round-facts div {
  padding: 0.65rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
}

.arena-round-facts strong,
.arena-round-facts span {
  display: block;
}

.arena-round-facts span {
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.68rem;
}

.arena-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(1.25rem, 2.4vw, 2.1rem);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 199, 93, 0.13), transparent 18rem),
    #fffaf2;
}

.arena-entry::before {
  position: absolute;
  top: 2rem;
  left: 2rem;
  color: rgba(71, 39, 95, 0.08);
  font-family: "Rubik", sans-serif;
  font-size: 9rem;
  font-weight: 900;
  content: "PLAY";
  transform: rotate(-90deg) translateX(-35%);
  transform-origin: left top;
}

.arena-entry > * {
  position: relative;
  z-index: 1;
}

.arena-entry-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.arena-entry-head p,
.arena-entry-head h2 {
  margin: 0;
}

.arena-entry-head p {
  color: #9d6380;
  font-size: 0.75rem;
  font-weight: 800;
}

.arena-entry-head h2 {
  color: #24142e;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.arena-step {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff4f80, #d93470);
  box-shadow: 0 12px 28px rgba(217, 52, 112, 0.25);
  font-family: "Rubik", sans-serif;
  font-weight: 900;
}

.arena-entry .form-grid {
  gap: 0.72rem;
  margin-top: 0.95rem;
}

.arena-entry .field {
  gap: 0.32rem;
}

.arena-entry .field input,
.arena-entry .field select {
  height: 58px;
  border: 1px solid rgba(83, 47, 95, 0.15);
  border-radius: 15px;
  background: white;
}

.cashier-code-field input {
  direction: ltr;
  font-family: "Rubik", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.arena-access-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  margin: 0.65rem 0 0.35rem;
  padding: 0.65rem;
  border: 1px solid rgba(83, 47, 95, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.arena-access-card.active {
  border-color: rgba(217, 52, 112, 0.22);
  background: white;
  box-shadow: 0 12px 28px rgba(217, 52, 112, 0.08);
}

.arena-access-mark {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px;
  border-radius: 14px;
  background: #24142e;
}

.arena-access-mark span {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
}

.arena-access-mark span.on {
  background: #ffc75d;
}

.arena-access-card strong,
.arena-access-card span {
  display: block;
}

.arena-access-card strong {
  direction: ltr;
  color: #24142e;
  font-family: "Rubik", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-align: left;
}

.arena-access-card span {
  color: #8d748f;
  font-size: 0.72rem;
  font-weight: 800;
}

.arena-entry .checkbox {
  color: #78667c;
}

.arena-join-button {
  min-height: 58px;
  background: linear-gradient(135deg, #ff4f80, #df376f);
  box-shadow: 0 16px 34px rgba(217, 52, 112, 0.26);
}

.arena-entry-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  color: #9a879c;
  border-top: 1px solid rgba(83, 47, 95, 0.1);
  font-size: 0.7rem;
}

.waiting-stage {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  width: min(100%, 980px);
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(42, 24, 66, 0.18);
}

.waiting-identity {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: white;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 79, 128, 0.28), transparent 15rem),
    linear-gradient(160deg, #1b1228, #32174c);
}

.waiting-label {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.75rem;
}

.waiting-avatar {
  display: grid;
  width: 128px;
  height: 128px;
  margin: 2rem 0 1rem;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: linear-gradient(145deg, #ff4f80, #7d55ff);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.045), 0 24px 50px rgba(0, 0, 0, 0.28);
  font-family: "Rubik", sans-serif;
  font-size: 4rem;
  font-weight: 900;
}

.waiting-identity h2 {
  margin: 0 0 0.7rem;
  font-size: 2.5rem;
}

.waiting-ready {
  color: #8cf1c2;
  font-size: 0.78rem;
  font-weight: 800;
}

.waiting-ready span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 0.4rem;
  border-radius: 50%;
  background: #49e39e;
  box-shadow: 0 0 14px #49e39e;
}

.waiting-cashier-code {
  margin-top: 1.45rem;
  padding: 0.9rem 1.05rem;
  min-width: 190px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.075);
  text-align: center;
}

.cashier-code-qr {
  display: block;
  width: 132px;
  max-width: 100%;
  height: auto;
  margin: 0.65rem auto 0.45rem;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.waiting-cashier-code span,
.waiting-cashier-code strong,
.waiting-cashier-code small {
  display: block;
}

.waiting-cashier-code span,
.waiting-cashier-code small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
}

.waiting-cashier-code strong {
  direction: ltr;
  margin: 0.2rem 0;
  color: #ffc75d;
  font-family: "Rubik", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
}

.waiting-plan-code {
  margin-top: 0.85rem;
  padding: 0.9rem 1.05rem;
  min-width: 190px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.waiting-plan-code span,
.waiting-plan-code strong,
.waiting-plan-code small {
  display: block;
}

.waiting-plan-code span,
.waiting-plan-code small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
}

.waiting-plan-code strong {
  margin: 0.2rem 0;
  color: #ffc75d;
  font-size: 1rem;
}

.waiting-command {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background: #fffaf4;
}

.waiting-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.waiting-command-head h2 {
  margin: 0.2rem 0 0;
  color: #24142e;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.waiting-connection {
  flex: 0 0 auto;
  padding: 0.45rem 0.7rem;
  color: #147050;
  border-radius: 999px;
  background: #e5faef;
  font-size: 0.72rem;
  font-weight: 800;
}

.waiting-connection i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 0.35rem;
  border-radius: 50%;
  background: #35ce8c;
}

.waiting-time {
  margin: 2rem 0 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid #eadfea;
  border-bottom: 1px solid #eadfea;
}

.waiting-time span,
.waiting-time strong {
  display: block;
}

.waiting-time span {
  color: #927e93;
  font-size: 0.75rem;
}

.waiting-time strong {
  color: #d93470;
  font-family: "Rubik", sans-serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 1;
}

.waiting-metrics,
.round-call-facts,
.victory-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.waiting-metrics div {
  padding: 0.85rem;
  border-radius: 14px;
  background: #f5edf4;
}

.waiting-metrics strong,
.waiting-metrics span {
  display: block;
}

.waiting-metrics span {
  color: #927e93;
  font-size: 0.68rem;
}

.waiting-message {
  padding: 0.85rem 1rem;
  color: #665068;
  border-radius: 13px;
  background: #f8f2f7;
  font-size: 0.78rem;
}

.waiting-message span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 0.5rem;
  border-radius: 50%;
  background: #7d55ff;
}

.waiting-message.warning span {
  background: #ff9b48;
}

.practice-entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, #eefaff, #f4f0ff);
}

.practice-entry-card div,
.practice-entry-card strong,
.practice-entry-card small {
  display: block;
}

.practice-entry-card strong {
  margin: 0.2rem 0;
  color: #24142e;
}

.practice-entry-card small {
  color: #746678;
  line-height: 1.5;
}

.practice-entry-label {
  color: #0284c7;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.practice-intro-card,
.practice-result-card {
  width: min(100%, 680px);
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 0, rgba(14, 165, 233, 0.18), transparent 24rem),
    #fff;
  text-align: center;
  box-shadow: 0 35px 100px rgba(42, 24, 66, 0.2);
}

.practice-mark,
.practice-complete-mark {
  display: grid;
  width: 92px;
  height: 92px;
  margin: 0 auto 1.5rem;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: linear-gradient(145deg, #0ea5e9, #7d55ff);
  box-shadow: 0 18px 45px rgba(14, 165, 233, 0.3);
  font-weight: 900;
}

.practice-complete-mark {
  font-size: 2.2rem;
}

.practice-intro-card h2,
.practice-result-card h2 {
  margin: 0.35rem 0 0.8rem;
  color: #24142e;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.practice-intro-card > .muted,
.practice-result-card > .muted {
  max-width: 540px;
  margin-right: auto;
  margin-left: auto;
  line-height: 1.75;
}

.practice-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.8rem 0;
}

.practice-facts div {
  padding: 1rem 0.7rem;
  border: 1px solid rgba(14, 165, 233, 0.13);
  border-radius: 16px;
  background: #f5fbff;
}

.practice-facts strong,
.practice-facts span {
  display: block;
}

.practice-facts strong {
  color: #24142e;
}

.practice-facts span {
  margin-top: 0.25rem;
  color: #806f84;
  font-size: 0.68rem;
}

.practice-intro-card .button + .button,
.practice-result-card .button + .button {
  margin-top: 0.7rem;
}

.game-shell.practice-mode .game-card {
  border-color: rgba(14, 165, 233, 0.22);
  box-shadow: 0 28px 70px rgba(14, 165, 233, 0.13);
}

.pill.practice {
  color: #0369a1;
  background: #e0f4ff;
}

.pill.practice .status-dot {
  background: #0ea5e9;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.7);
}

.practice-exit-button {
  width: 100%;
  margin-top: 1rem;
}

@media (min-width: 901px) {
  .player-screen-game .player-phone-shell {
    width: min(100%, 760px);
    min-height: 820px;
  }

  .player-screen-game .player-phone-shell > .game-shell {
    min-height: 804px;
    padding-inline: 1rem;
  }

  .player-screen-game .game-card {
    min-height: 680px;
    padding: 1.25rem;
  }

  .player-screen-game .image-puzzle-stage {
    grid-template-columns: minmax(130px, 155px) minmax(0, 1fr);
    gap: 1.1rem;
  }

  .player-screen-game .image-puzzle-grid {
    width: 100%;
    max-width: 500px;
    justify-self: center;
  }

  .player-screen-game .puzzle-reference-card {
    align-self: start;
    padding: 0.45rem;
    border-radius: 17px;
  }

  .player-screen-game .puzzle-reference-card img {
    border-radius: 11px;
  }
}

.inline-winner-symbol {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  padding: 1.15rem;
  color: #fff4c7;
  border: 1px solid rgba(255, 216, 103, 0.38);
  border-radius: 22px;
  background: radial-gradient(circle at 50% 0, rgba(255, 216, 103, 0.18), transparent 75%), #07162f;
  text-align: center;
}

.inline-winner-symbol .winner-badge {
  width: 82px;
  height: 82px;
  margin: 0;
  font-size: 2.35rem;
}

.inline-winner-symbol strong {
  font-size: 1.2rem;
}

.round-call-card,
.countdown-stage,
.victory-stage {
  width: min(100%, 720px);
  padding: clamp(2rem, 6vw, 4.5rem);
  overflow: hidden;
  border-radius: 34px;
  text-align: center;
  box-shadow: 0 35px 100px rgba(42, 24, 66, 0.22);
}

.round-call-card {
  color: white;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 79, 128, 0.32), transparent 21rem),
    linear-gradient(145deg, #171022, #32164b);
}

.round-call-card .muted {
  color: rgba(255, 255, 255, 0.62);
}

.round-call-signal {
  display: grid;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.035), 0 0 0 36px rgba(255, 255, 255, 0.02);
}

.round-call-signal span {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff4f80, #ff8b62);
  font-size: 1.8rem;
}

.round-call-facts .result-cell {
  color: #24142e;
}

.countdown-stage {
  color: white;
  background:
    radial-gradient(circle, rgba(255, 79, 128, 0.26), transparent 22rem),
    #100b19;
}

.countdown-rings {
  display: grid;
  width: 300px;
  height: 300px;
  margin: 0 auto 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 35px rgba(255, 255, 255, 0.025), 0 0 0 70px rgba(255, 255, 255, 0.014);
}

.countdown-stage .countdown {
  color: white;
  background: none;
  font-size: 10rem;
  filter: drop-shadow(0 0 35px rgba(255, 79, 128, 0.65));
}

.countdown-stage h2 {
  margin-bottom: 0.3rem;
  font-size: 2.4rem;
}

.countdown-stage > p:last-child {
  color: rgba(255, 255, 255, 0.55);
}

.victory-stage {
  position: relative;
  background: #fffaf2;
}

.victory-stage.is-winner {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 199, 93, 0.3), transparent 24rem),
    #fffaf2;
}

.victory-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 18%, #ff4f80 0 4px, transparent 5px),
    radial-gradient(circle at 88% 14%, #7d55ff 0 5px, transparent 6px),
    radial-gradient(circle at 18% 75%, #ffc75d 0 4px, transparent 5px),
    radial-gradient(circle at 82% 68%, #49e39e 0 4px, transparent 5px);
}

.victory-stage > * {
  position: relative;
}

.victory-prize {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.victory-prize div {
  padding: 1.1rem;
  border: 1px solid rgba(157, 99, 128, 0.13);
  border-radius: 17px;
  background: white;
}

.victory-prize span,
.victory-prize strong {
  display: block;
}

.victory-prize span {
  color: #927e93;
  font-size: 0.72rem;
}

.victory-prize strong {
  color: #d93470;
  font-size: 1.3rem;
}

.player-prize-wallet {
  width: min(100%, 940px);
  padding: clamp(1rem, 3vw, 1.4rem);
  border-radius: 30px;
  background: #fffaf4;
  box-shadow: 0 30px 90px rgba(42, 24, 66, 0.18);
}

.player-prize-wallet.empty {
  width: min(100%, 560px);
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
}

.player-prize-wallet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
  border-radius: 22px;
  color: white;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 199, 93, 0.2), transparent 18rem),
    linear-gradient(145deg, #21142d, #3b1d50);
}

.player-prize-wallet-hero h2 {
  margin: 0 0 0.7rem;
  color: white;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.player-prize-wallet-hero .muted {
  color: rgba(255, 255, 255, 0.68);
}

.player-prize-wallet-code {
  padding: 0.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.player-wallet-qr {
  display: block;
  width: 132px;
  height: auto;
  margin: 0 auto 0.6rem;
  overflow: hidden;
  border: 6px solid white;
  border-radius: 13px;
}

.player-prize-wallet-code span,
.player-prize-wallet-code strong {
  display: block;
}

.player-prize-wallet-code span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
}

.player-prize-wallet-code strong {
  direction: ltr;
  color: #ffc75d;
  font-family: "Rubik", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
}

.player-prize-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.player-prize-summary div,
.player-prize-row {
  border: 1px solid rgba(92, 66, 106, 0.1);
  border-radius: 17px;
  background: white;
  box-shadow: 0 12px 28px rgba(42, 24, 66, 0.06);
}

.player-prize-summary div {
  padding: 1rem;
}

.player-prize-summary span,
.player-prize-summary strong {
  display: block;
}

.player-prize-summary span {
  color: #927e93;
  font-size: 0.7rem;
}

.player-prize-summary strong {
  margin-top: 0.25rem;
  color: #24142e;
  font-family: "Rubik", sans-serif;
  font-size: 1.7rem;
}

.player-prize-list {
  display: grid;
  gap: 0.7rem;
}

.player-prize-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.player-prize-list-head h3 {
  margin: 0;
  color: #24142e;
}

.player-prize-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(95px, 0.5fr));
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem;
}

.player-prize-row strong,
.player-prize-row span {
  display: block;
}

.player-prize-row span {
  color: #927e93;
  font-size: 0.68rem;
}

.player-prize-row strong {
  color: #24142e;
}

.player-prize-empty {
  padding: 2rem;
  color: #927e93;
  border-radius: 17px;
  background: white;
  text-align: center;
}

.player-prize-empty strong,
.player-prize-empty span {
  display: block;
}

.player-prize-actions {
  margin-top: 1rem;
}

.command-center {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  background: #f4f1f7;
  box-shadow: 0 30px 90px rgba(35, 22, 50, 0.16);
}

.command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0.8rem 1.4rem;
  color: white;
  background: #171022;
}

.command-role,
.command-health {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.command-role-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #ff4f80, #7d55ff);
  font-weight: 900;
}

.command-role strong,
.command-role small {
  display: block;
}

.command-role small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
}

.command-health {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
}

.command-health i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 0.35rem;
  border-radius: 50%;
  background: #777;
}

.command-health i.online {
  background: #49e39e;
  box-shadow: 0 0 12px #49e39e;
}

.command-health button,
.command-text-danger {
  padding: 0;
  color: #ff8ba9;
  border: 0;
  background: transparent;
  font-weight: 800;
}

.command-center .admin-layout {
  min-height: 690px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.command-center .sidebar {
  background: #21142d;
}

.command-center .nav-item.active {
  background: linear-gradient(135deg, rgba(255, 79, 128, 0.3), rgba(125, 85, 255, 0.22));
}

.command-center .admin-content {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 79, 128, 0.08), transparent 22rem),
    #f4f1f7;
}

.command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2rem;
  align-items: center;
  min-height: 270px;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  color: white;
  border-radius: 25px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 79, 128, 0.25), transparent 20rem),
    radial-gradient(circle at 95% 80%, rgba(125, 85, 255, 0.32), transparent 20rem),
    linear-gradient(135deg, #181023, #311747);
  box-shadow: 0 20px 50px rgba(42, 24, 66, 0.2);
}

.command-hero .eyebrow {
  color: #ffc75d;
}

.command-hero h2 {
  margin: 0.3rem 0 0.7rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.055em;
}

.command-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.6);
}

.command-primary-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.command-launch {
  background: linear-gradient(135deg, #ff4f80, #d93470);
  box-shadow: 0 14px 30px rgba(217, 52, 112, 0.3);
}

.command-hero .button.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.command-round-dial {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.025), inset 0 0 45px rgba(255, 255, 255, 0.04);
  text-align: center;
}

.command-round-dial span,
.command-round-dial strong,
.command-round-dial small {
  display: block;
}

.command-round-dial span,
.command-round-dial small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.7rem;
}

.command-round-dial strong {
  margin: 0.25rem 0;
  color: #ffc75d;
  font-family: "Rubik", sans-serif;
  font-size: 3.2rem;
}

.command-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.command-metrics > div {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(92, 66, 106, 0.1);
  border-radius: 17px;
  background: white;
}

.command-metrics span,
.command-metrics strong,
.command-metrics small {
  display: block;
}

.command-metrics span,
.command-metrics small {
  color: #927e93;
  font-size: 0.68rem;
}

.command-metrics strong {
  margin: 0.2rem 0;
  color: #24142e;
  font-family: "Rubik", sans-serif;
  font-size: 1.7rem;
}

.command-prize {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1.2rem;
  border-radius: 20px;
  background: linear-gradient(120deg, #fff1cf, #fffaf1);
  box-shadow: 0 12px 30px rgba(120, 73, 24, 0.07);
}

.command-prize-title span,
.command-prize-title strong,
.command-prize-title small {
  display: block;
}

.command-prize-title span,
.command-prize-title small {
  color: #987a50;
  font-size: 0.7rem;
}

.command-prize-title strong {
  color: #6f4214;
  font-family: "Rubik", sans-serif;
  font-size: 2rem;
}

.command-prize-form {
  display: grid;
  grid-template-columns: 0.6fr 1fr auto;
  gap: 0.7rem;
  align-items: end;
}

.command-prize-form .field input {
  background: rgba(255, 255, 255, 0.8);
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 1rem;
}

.command-grid + .panel {
  margin-top: 1rem;
}

.dashboard-updated {
  color: #927e93;
  font-size: 0.7rem;
}

.dashboard-live-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  color: white;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 79, 128, 0.28), transparent 16rem),
    linear-gradient(135deg, #21142d, #3b1d50);
  box-shadow: 0 16px 38px rgba(42, 24, 66, 0.16);
}

.dashboard-live-copy,
.dashboard-live-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.dashboard-live-copy h2,
.dashboard-live-copy p {
  margin: 0;
}

.dashboard-live-copy .eyebrow {
  color: #ffc75d;
}

.dashboard-live-copy > div > p:last-child {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.dashboard-live-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #49e39e;
  box-shadow: 0 0 0 7px rgba(73, 227, 158, 0.12), 0 0 18px rgba(73, 227, 158, 0.6);
}

.dashboard-live-strip .button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.dashboard-kpi {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 108px;
  padding: 1rem;
  border: 1px solid rgba(92, 66, 106, 0.09);
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 28px rgba(42, 24, 66, 0.06);
}

.dashboard-kpi-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  border-radius: 14px;
  background: linear-gradient(145deg, #ff4f80, #d93470);
  font-size: 1.15rem;
  font-weight: 900;
}

.dashboard-kpi-icon.rounds { background: linear-gradient(145deg, #7d55ff, #5136b9); }
.dashboard-kpi-icon.activity { background: linear-gradient(145deg, #1cb8b2, #147d87); }
.dashboard-kpi-icon.money { background: linear-gradient(145deg, #f2b84b, #d47a18); }

.dashboard-kpi div > span,
.dashboard-kpi strong,
.dashboard-kpi small {
  display: block;
}

.dashboard-kpi div > span,
.dashboard-kpi small {
  color: #927e93;
  font-size: 0.68rem;
}

.dashboard-kpi strong {
  margin: 0.12rem 0;
  color: #24142e;
  font-family: "Rubik", sans-serif;
  font-size: 1.65rem;
}

.dashboard-chart-grid,
.dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-insights-grid {
  display: grid;
  grid-template-columns: minmax(330px, 1.05fr) minmax(250px, 0.75fr) minmax(430px, 1.2fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-chart-card {
  min-height: 340px;
}

.dashboard-chart-card .panel-head > strong {
  color: #d93470;
  font-family: "Rubik", sans-serif;
  font-size: 1.5rem;
}

.dashboard-chart-legend {
  display: flex;
  gap: 0.75rem;
  color: #715f76;
  font-size: 0.68rem;
}

.dashboard-chart-legend span,
.dashboard-outcome-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.dashboard-chart-legend i,
.dashboard-outcome-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dashboard-chart-legend i.participation { background: #ff4f80; }
.dashboard-chart-legend i.played { background: #7d55ff; }
.dashboard-chart-legend i.rounds { background: #7d55ff; }
.dashboard-chart-legend i.completed { background: #10b981; }

.dashboard-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(38px, 1fr));
  gap: clamp(0.45rem, 2vw, 1rem);
  height: 245px;
  padding: 0.5rem 0.6rem 0;
}

.dashboard-bar-day {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 0.25rem;
  min-width: 0;
  color: #715f76;
  text-align: center;
}

.dashboard-bar-track {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  min-height: 170px;
  padding: 0 0.2rem;
  border-bottom: 1px solid rgba(92, 66, 106, 0.1);
  background: repeating-linear-gradient(to top, transparent 0 41px, rgba(92, 66, 106, 0.055) 42px);
}

.dashboard-bar {
  width: min(18px, 42%);
  min-height: 3px;
  border-radius: 6px 6px 2px 2px;
  transition: height 200ms ease;
}

.dashboard-bar.participation { background: linear-gradient(to top, #d93470, #ff7ca2); }
.dashboard-bar.played { background: linear-gradient(to top, #6140c8, #9a7cff); }

.dashboard-bar-day strong {
  font-size: 0.72rem;
}

.dashboard-bar-day small {
  color: #927e93;
  font-size: 0.65rem;
}

.dashboard-status-chart .panel-head > strong {
  color: #d93470;
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
}

.dashboard-status-bars {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: repeat(9, minmax(52px, 1fr));
  gap: 0.65rem;
  min-height: 245px;
  padding-top: 0.5rem;
  overflow-x: auto;
}

.dashboard-status-column {
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) minmax(34px, auto);
  gap: 0.35rem;
  min-width: 52px;
  color: #715f76;
  text-align: center;
}

.dashboard-status-column > strong {
  color: #44244f;
  font-family: "Rubik", sans-serif;
  font-size: 0.8rem;
}

.dashboard-status-track {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 150px;
  padding: 0 0.4rem;
  border-bottom: 1px solid rgba(92, 66, 106, 0.12);
  background: repeating-linear-gradient(to top, transparent 0 37px, rgba(92, 66, 106, 0.05) 38px);
}

.dashboard-status-track span {
  width: min(34px, 80%);
  border-radius: 8px 8px 2px 2px;
  box-shadow: 0 8px 18px rgba(42, 24, 66, 0.12);
}

.dashboard-status-column small {
  line-height: 1.2;
  color: #715f76;
  font-size: 0.72rem;
}

.dashboard-status-chart-compact .panel-head {
  align-items: center;
  flex-direction: row;
}

.dashboard-status-chart-compact .dashboard-status-bars {
  grid-template-columns: repeat(9, minmax(32px, 1fr));
  gap: 0.3rem;
  min-height: 220px;
  overflow-x: hidden;
}

.dashboard-status-chart-compact .dashboard-status-column {
  grid-template-rows: auto minmax(125px, 1fr) minmax(34px, auto);
  min-width: 0;
}

.dashboard-status-chart-compact .dashboard-status-track {
  min-height: 125px;
  padding-inline: 0.2rem;
}

.dashboard-status-chart-compact .dashboard-status-column small {
  font-size: 0.62rem;
}

.dashboard-status-chart-featured .dashboard-status-bars {
  grid-template-columns: repeat(9, minmax(30px, 1fr));
  gap: 0.4rem;
  overflow-x: hidden;
}

.dashboard-status-chart-featured .dashboard-status-column {
  min-width: 0;
}

.dashboard-activity-chart-compact .panel-head {
  align-items: flex-start;
  flex-direction: column;
}

.dashboard-activity-chart-compact .dashboard-bars {
  height: 220px;
  gap: 0.3rem;
  padding-inline: 0;
}

.dashboard-activity-chart-compact .dashboard-bar-track {
  min-height: 145px;
}

.dashboard-activity-chart-compact .dashboard-chart-legend {
  flex-wrap: wrap;
}

.dashboard-round-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(38px, 1fr));
  gap: clamp(0.4rem, 1.5vw, 0.8rem);
  height: 240px;
  padding-top: 0.5rem;
}

.dashboard-round-day {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 0.25rem;
  min-width: 0;
  color: #715f76;
  text-align: center;
}

.dashboard-round-track {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  min-height: 165px;
  padding: 0 0.15rem;
  border-bottom: 1px solid rgba(92, 66, 106, 0.1);
  background: repeating-linear-gradient(to top, transparent 0 40px, rgba(92, 66, 106, 0.05) 41px);
}

.dashboard-round-track span {
  width: min(18px, 42%);
  border-radius: 6px 6px 2px 2px;
}

.dashboard-round-track .all-rounds {
  background: linear-gradient(to top, #6140c8, #9a7cff);
}

.dashboard-round-track .completed-rounds {
  background: linear-gradient(to top, #16815e, #49e39e);
}

.dashboard-round-day strong {
  font-size: 0.72rem;
}

.dashboard-round-day small {
  color: #927e93;
  font-size: 0.65rem;
}

.dashboard-performance-grid,
.dashboard-finance-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.dashboard-performance-grid > div,
.dashboard-finance-values > div {
  padding: 0.8rem;
  border-radius: 13px;
  background: #f7f2f8;
}

.dashboard-performance-grid span,
.dashboard-performance-grid strong,
.dashboard-finance-values span,
.dashboard-finance-values strong {
  display: block;
}

.dashboard-performance-grid span,
.dashboard-finance-values span {
  color: #927e93;
  font-size: 0.65rem;
}

.dashboard-performance-grid strong,
.dashboard-finance-values strong {
  margin-top: 0.15rem;
  color: #44244f;
  font-family: "Rubik", sans-serif;
  font-size: 1.15rem;
}

.dashboard-outcome {
  margin-top: 1.2rem;
}

.dashboard-outcome-bar {
  display: flex;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8f0;
}

.dashboard-outcome-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.6rem;
  color: #715f76;
  font-size: 0.68rem;
}

.dashboard-prize-now {
  margin-top: 1rem;
  padding: 1rem;
  color: #6f4214;
  border-radius: 15px;
  background: linear-gradient(120deg, #fff1cf, #fffaf1);
}

.dashboard-prize-now span,
.dashboard-prize-now strong,
.dashboard-prize-now small {
  display: block;
}

.dashboard-prize-now span,
.dashboard-prize-now small {
  color: #987a50;
  font-size: 0.67rem;
}

.dashboard-prize-now strong {
  font-family: "Rubik", sans-serif;
  font-size: 1.7rem;
}

.dashboard-finance-strip {
  margin-bottom: 1rem;
}

.dashboard-finance-featured {
  margin-top: 1rem;
}

.dashboard-kpis-secondary {
  margin-top: 0;
}

.dashboard-finance-strip .dashboard-finance-values {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, 0.8fr);
  align-items: stretch;
}

.dashboard-finance-strip .dashboard-prize-now {
  margin-top: 0;
}

.dashboard-leaders {
  padding-bottom: 0.4rem;
}

.dashboard-leader-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(80px, 0.35fr) minmax(100px, 0.45fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(92, 66, 106, 0.08);
}

.dashboard-leader-list article > div strong,
.dashboard-leader-list article > div small {
  display: block;
}

.dashboard-leader-list article > div small {
  color: #927e93;
  font-size: 0.65rem;
}

.dashboard-rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #d93470;
  border-radius: 11px;
  background: rgba(255, 79, 128, 0.1);
  font-weight: 900;
}

@media (max-width: 1050px) {
  .management-login,
  .arena-instructions {
    grid-template-columns: 1fr;
  }

  .management-login-visual,
  .arena-instructions-hero {
    min-height: 580px;
  }

  .arena-landing {
    grid-template-columns: 1fr;
  }

  .arena-main {
    min-height: 700px;
  }

  .arena-entry {
    min-height: 540px;
  }

  .command-hero {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .command-prize {
    grid-template-columns: 1fr;
  }

  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-chart-grid,
  .dashboard-lower-grid,
  .dashboard-insights-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-status-chart-compact .panel-head {
    align-items: center;
    flex-direction: row;
  }

  .dashboard-finance-strip .dashboard-finance-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .command-bar {
    border-radius: 0;
  }

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

  .command-center .sidebar {
    background: #21142d;
  }

  .command-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-live-strip,
  .dashboard-live-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .management-login,
  .arena-instructions {
    border-radius: 24px;
  }

  .management-login-visual,
  .arena-instructions-hero {
    min-height: 500px;
    padding: 1.5rem 1.25rem;
  }

  .management-login-copy h1,
  .arena-instructions-copy h1 {
    font-size: clamp(3.3rem, 18vw, 5rem);
  }

  .management-login-metrics {
    gap: 0.35rem;
  }

  .management-login-metrics div {
    padding: 0.7rem 0.55rem;
  }

  .management-login-access,
  .arena-instructions-panel {
    padding: 2rem 1.25rem;
  }

  .arena-board-preview span {
    min-height: 44px;
  }

  .player-cashier-pass {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .arena-landing {
    border-radius: 24px;
  }

  .arena-main {
    min-height: 610px;
    padding: 1.5rem 1.25rem;
  }

  .arena-live-line strong {
    display: none;
  }

  .arena-copy {
    margin: 2rem 0;
  }

  .arena-copy h1 {
    font-size: clamp(4rem, 22vw, 5.5rem);
  }

  .arena-round-card {
    grid-template-columns: 1fr 1fr;
    padding: 0.9rem;
  }

  .arena-clock,
  .arena-prize {
    padding: 0.6rem;
  }

  .arena-prize strong {
    font-size: 1.6rem;
  }

  .arena-entry {
    min-height: auto;
    padding: 2rem 1.25rem;
  }

  .arena-entry::before {
    display: none;
  }

  .waiting-stage {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .waiting-identity {
    min-height: 300px;
  }

  .waiting-avatar {
    width: 92px;
    height: 92px;
    margin: 1.2rem 0 0.7rem;
    font-size: 2.8rem;
  }

  .waiting-identity h2 {
    font-size: 2rem;
  }

  .waiting-command {
    padding: 1.5rem 1.2rem;
  }

  .practice-entry-card {
    align-items: stretch;
    flex-direction: column;
  }

  .practice-entry-card .button {
    width: 100%;
  }

  .waiting-time strong {
    font-size: 3.5rem;
  }

  .round-call-card,
  .countdown-stage,
  .victory-stage,
  .practice-intro-card,
  .practice-result-card {
    padding: 2rem 1.2rem;
    border-radius: 24px;
  }

  .practice-facts {
    gap: 0.4rem;
  }

  .countdown-rings {
    width: 210px;
    height: 210px;
    box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.025), 0 0 0 44px rgba(255, 255, 255, 0.014);
  }

  .countdown-stage .countdown {
    font-size: 7rem;
  }

  .victory-prize {
    grid-template-columns: 1fr;
  }

  .player-prize-wallet-hero,
  .player-prize-summary,
  .player-prize-row {
    grid-template-columns: 1fr;
  }

  .player-prize-wallet-code {
    justify-self: center;
    width: min(100%, 180px);
  }

  .player-prize-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .command-center {
    border-radius: 22px;
  }

  .command-bar {
    padding: 0.7rem 0.85rem;
  }

  .command-health span:nth-child(2) {
    display: none;
  }

  .command-hero {
    grid-template-columns: 1fr;
    padding: 1.4rem;
  }

  .command-round-dial {
    width: 180px;
    margin: 0 auto;
  }

  .command-primary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .command-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-kpis,
  .dashboard-performance-grid,
  .dashboard-finance-values {
    grid-template-columns: 1fr;
  }

  .dashboard-finance-strip .dashboard-finance-values {
    grid-template-columns: 1fr;
  }

  .dashboard-status-bars {
    grid-template-columns: repeat(9, 62px);
  }

  .dashboard-bars {
    gap: 0.25rem;
    padding-inline: 0;
  }

  .dashboard-leader-list article {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .dashboard-leader-list article > div:last-child {
    display: none;
  }

  .command-prize-form {
    grid-template-columns: 1fr;
  }
}

.cashier-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  color: white;
  border-radius: 20px;
  background: linear-gradient(135deg, #21142d, #3b1d50);
}

.pricing-create-panel {
  margin-bottom: 1rem;
}

.pricing-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  align-items: end;
  padding: 0 1.2rem 1.2rem;
}

.pricing-description {
  grid-column: span 2;
  min-width: 0;
}

.pricing-active {
  align-items: center;
  min-height: 48px;
  margin: 0;
}

.pricing-table {
  min-width: 1040px;
  table-layout: fixed;
}

.pricing-card-list {
  display: grid;
  gap: 1rem;
  padding: 0 1.2rem 1.2rem;
}

.audit-filter-panel {
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
}

.audit-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 0.8rem;
  align-items: end;
}

.audit-filter-clear {
  min-height: 48px;
}

.audit-log-table code {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .audit-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .audit-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pricing-edit-card {
  padding: 1rem;
  border: 1px solid rgba(92, 66, 106, 0.13);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(42, 24, 66, 0.05);
}

.pricing-edit-card-head,
.pricing-card-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.pricing-edit-card-head {
  margin-bottom: 0.85rem;
}

.pricing-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.pricing-card-name,
.pricing-card-description {
  grid-column: span 2;
}

.pricing-card-active {
  min-height: 48px;
  margin: 0;
}

.pricing-card-actions {
  justify-content: flex-start;
  margin-top: 1rem;
}

.pricing-delete-button {
  color: #a12b3b;
  border-color: rgba(161, 43, 59, 0.25);
}

@media (max-width: 980px) {
  .pricing-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pricing-edit-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-card-name,
  .pricing-card-description {
    grid-column: auto;
  }

  .pricing-card-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.pricing-table input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin-bottom: 0.35rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(92, 66, 106, 0.14);
  border-radius: 10px;
  background: #fbf9fc;
}

.cycle-minutes-cell {
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}

.cycle-minutes-cell span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.mini-puzzle-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0.9rem 0;
  border-radius: 14px;
  background: #171022;
}

.mini-puzzle-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.mini-puzzle-grid-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent 32.8%, rgba(255, 255, 255, 0.75) 33%, rgba(255, 255, 255, 0.75) 33.5%, transparent 33.7%, transparent 66.1%, rgba(255, 255, 255, 0.75) 66.3%, rgba(255, 255, 255, 0.75) 66.8%, transparent 67%),
    linear-gradient(to bottom, transparent 32.8%, rgba(255, 255, 255, 0.75) 33%, rgba(255, 255, 255, 0.75) 33.5%, transparent 33.7%, transparent 66.1%, rgba(255, 255, 255, 0.75) 66.3%, rgba(255, 255, 255, 0.75) 66.8%, transparent 67%);
  pointer-events: none;
}

.pricing-save-cell .cashier-action {
  width: 100%;
  min-width: 110px;
}

@media (max-width: 1180px) {
  .pricing-table {
    min-width: 0;
  }

  .pricing-table thead {
    display: none;
  }

  .pricing-table,
  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table td {
    display: block;
    width: 100%;
  }

  .pricing-table tbody {
    display: grid;
    gap: 1rem;
  }

  .pricing-table tr {
    box-sizing: border-box;
    padding: 1rem;
    border: 1px solid rgba(92, 66, 106, 0.12);
    border-radius: 16px;
    background: #fff;
  }

  .pricing-table td {
    box-sizing: border-box;
    padding: 0.4rem 0;
    border: 0;
  }

  .pricing-table td[data-label]::before {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 800;
  }

  .pricing-table input {
    margin-bottom: 0;
  }

  .pricing-table td[data-label="שם ותיאור"] input + input {
    margin-top: 0.45rem;
  }

  .pricing-save-cell {
    margin-top: 0.35rem;
  }
}

@media (max-width: 520px) {
  .pricing-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-description {
    grid-column: auto;
  }
}

.switch-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #715f76;
  font-size: 0.72rem;
  font-weight: 800;
}

.cashier-access-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(92, 66, 106, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 79, 128, 0.08), transparent 18rem),
    white;
  box-shadow: 0 14px 32px rgba(42, 24, 66, 0.06);
}

.cashier-access-strip h3,
.cashier-access-strip p {
  margin: 0;
}

.cashier-access-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.cashier-access-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(92, 66, 106, 0.1);
  border-radius: 15px;
  background: #fffaf4;
}

.cashier-access-code {
  display: grid;
  gap: 0.45rem;
}

.cashier-access-qr {
  display: block;
  width: 72px;
  height: auto;
  overflow: hidden;
  border: 4px solid white;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(42, 24, 66, 0.09);
}

.cashier-access-code span,
.cashier-player-code {
  direction: ltr;
  color: #24142e;
  font-family: "Rubik", sans-serif;
  letter-spacing: 0.08em;
  text-align: left;
}

.cashier-access-card strong,
.cashier-access-card small,
.cashier-access-card a {
  display: block;
  min-width: 0;
}

.cashier-access-card small {
  color: #927e93;
  font-size: 0.68rem;
}

.cashier-access-card a {
  margin-top: 0.35rem;
  color: #d93470;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.cashier-access-card .cashier-action {
  width: 100%;
  margin-top: 0.55rem;
}

.player-detail-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.player-row-actions {
  display: grid;
  gap: 0.4rem;
  min-width: 138px;
}

.system-round-create-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(23, 105, 255, 0.16);
  border-radius: 18px;
  background: #f6f9ff;
}

.system-round-create-form .field {
  margin: 0;
}

.system-rounds-editor input,
.system-rounds-editor select {
  min-width: 125px;
}

.system-rounds-editor td:nth-child(4) input {
  min-width: 185px;
}

.interval-input {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.interval-input input {
  min-width: 0;
  flex: 1;
}

.interval-input span {
  color: var(--muted);
  font-weight: 700;
}

.recurring-schedule-panel,
.planned-rounds-panel {
  margin-top: 1rem;
}

.recurring-times-table time {
  font-weight: 700;
  white-space: nowrap;
}

.planned-rounds-panel .system-round-create-form {
  margin-top: 1rem;
}

.round-scheduling-note {
  display: inline-block;
  min-width: 150px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .system-round-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cashier-action.inactive {
  background: #64748b;
}

.cashier-flow > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0 0.7rem;
  align-items: center;
}

.cashier-flow > div > span {
  grid-row: 1 / 3;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #ff4f80, #7d55ff);
  font-weight: 900;
}

.cashier-flow strong,
.cashier-flow small {
  display: block;
}

.cashier-flow small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
}

.cashier-flow > i {
  color: rgba(255, 255, 255, 0.34);
  font-style: normal;
}

.cashier-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr)) auto;
  gap: 0.8rem;
  align-items: end;
  margin-bottom: 1rem;
}

.cashier-search,
.cashier-sort {
  grid-column: span 2;
}

.cashier-clear {
  min-height: 52px;
}

.cashier-table-panel {
  padding: 0;
  overflow: hidden;
}

.cashier-table-panel .panel-head {
  padding: 1.2rem 1.3rem 0.9rem;
}

.cashier-table th,
.cashier-table td {
  vertical-align: middle;
  white-space: nowrap;
}

.cashier-table td > strong,
.cashier-table td > small,
.player-cell small {
  display: block;
}

.cashier-table td > small,
.player-cell small {
  margin-top: 0.15rem;
  color: #927e93;
  font-size: 0.68rem;
}

.cashier-row-closed {
  opacity: 0.62;
}

.cashier-ok {
  color: #14845e !important;
}

.cashier-pending {
  color: #bd6630 !important;
}

.cashier-action {
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  color: white;
  border: 0;
  border-radius: 10px;
  background: #7d55ff;
  font-size: 0.74rem;
  font-weight: 800;
}

.cashier-action.prize {
  background: #d93470;
}

.cashier-action.close {
  background: #16815e;
}

.cashier-action.done {
  color: #75677b;
  background: #eee8ef;
}

.cashier-empty {
  padding: 2.5rem;
  color: var(--muted);
  text-align: center;
}

.cashier-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.cashier-summary > div {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(92, 66, 106, 0.1);
  border-radius: 17px;
  background: white;
  box-shadow: 0 12px 28px rgba(42, 24, 66, 0.06);
}

.cashier-summary span,
.cashier-summary strong,
.cashier-summary small {
  display: block;
}

.cashier-summary span,
.cashier-summary small {
  color: #927e93;
  font-size: 0.68rem;
}

.cashier-summary strong {
  margin: 0.2rem 0;
  color: #24142e;
  font-family: "Rubik", sans-serif;
  font-size: 1.55rem;
}

.cashier-summary .cashier-balance {
  color: white;
  border: 0;
  background: linear-gradient(135deg, #d93470, #7d55ff);
}

.cashier-summary .cashier-balance span,
.cashier-summary .cashier-balance small {
  color: rgba(255, 255, 255, 0.65);
}

.cashier-summary .cashier-balance strong {
  color: white;
}

@media (max-width: 1050px) {
  .cashier-access-strip {
    grid-template-columns: 1fr;
  }

  .cashier-access-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cashier-search,
  .cashier-sort {
    grid-column: span 1;
  }

  .cashier-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .cashier-access-list {
    grid-template-columns: 1fr;
  }

  .cashier-flow {
    grid-template-columns: 1fr;
  }

  .cashier-flow > i {
    display: none;
  }

  .cashier-filters,
  .cashier-summary {
    grid-template-columns: 1fr;
  }
}

.player-query-panel {
  margin: 1rem 0;
  padding: 1.1rem 1.2rem;
}

.player-query-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.player-query-heading h3,
.player-query-heading p {
  margin: 0;
}

.player-query-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: end;
}

.player-query-fields .field,
.player-query-fields input,
.player-query-fields select {
  min-width: 0;
  width: 100%;
}

.player-report-heading-actions,
.player-report-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.player-data-mode-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.player-data-mode-toggle button {
  padding: 0.55rem 0.75rem;
  color: #715f76;
  border: 1px solid rgba(92, 66, 106, 0.1);
  border-radius: 9px;
  background: white;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.player-data-mode-toggle button.active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, #d93470, #7d55ff);
}

.player-online-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
}

.player-online-banner > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-online-banner h3,
.player-online-banner p {
  margin: 0;
}

.player-online-indicator {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12), 0 0 16px rgba(16, 185, 129, 0.45);
}

.player-report-toggle {
  padding: 0.25rem;
  border-radius: 12px;
  background: #eee8f0;
}

.player-report-toggle button {
  padding: 0.5rem 0.75rem;
  color: #715f76;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.player-report-toggle button.active {
  color: white;
  background: linear-gradient(135deg, #d93470, #7d55ff);
  box-shadow: 0 6px 14px rgba(125, 85, 255, 0.2);
}

.detailed-player-report td small {
  display: block;
  color: #927e93;
  font-size: 0.65rem;
}

.player-activity-query-fields {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) repeat(6, minmax(125px, 0.75fr)) auto;
  gap: 0.7rem;
  align-items: end;
}

.player-activity-query-fields .field > span {
  display: block;
  margin-bottom: 0.35rem;
  color: #715f76;
  font-size: 0.7rem;
  font-weight: 800;
}

.player-query-fields .field > span {
  display: block;
  margin-bottom: 0.35rem;
  color: #715f76;
  font-size: 0.7rem;
  font-weight: 800;
}

.player-query-clear {
  min-height: 52px;
}

.player-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.player-summary > div {
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(92, 66, 106, 0.1);
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 25px rgba(42, 24, 66, 0.05);
}

.player-summary span,
.player-summary strong,
.player-summary small {
  display: block;
}

.player-summary span,
.player-summary small {
  color: #927e93;
  font-size: 0.68rem;
}

.player-summary strong {
  margin: 0.1rem 0;
  color: #24142e;
  font-family: "Rubik", sans-serif;
  font-size: 1.55rem;
}

.players-master-detail {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.45fr);
  gap: 1rem;
  align-items: start;
}

.players-directory,
.player-detail-panel {
  padding: 0;
  overflow: hidden;
}

.players-directory .panel-head {
  padding: 1.1rem 1.2rem 0.8rem;
}

.players-directory-list {
  max-height: 680px;
  overflow-y: auto;
  border-top: 1px solid rgba(92, 66, 106, 0.08);
}

.player-directory-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 48px;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  padding: 0.75rem 0.9rem;
  color: #24142e;
  border: 0;
  border-bottom: 1px solid rgba(92, 66, 106, 0.07);
  background: transparent;
  text-align: right;
}

.player-directory-row:hover,
.player-directory-row.selected {
  background: linear-gradient(90deg, rgba(255, 79, 128, 0.08), rgba(125, 85, 255, 0.05));
}

.player-directory-row.selected {
  box-shadow: inset -3px 0 #d93470;
}

.player-directory-identity strong,
.player-directory-identity small,
.player-directory-meta strong,
.player-directory-meta small {
  display: block;
}

.player-directory-identity small,
.player-directory-meta small {
  color: #927e93;
  font-size: 0.65rem;
}

.player-directory-meta {
  text-align: center;
}

.player-directory-meta strong {
  font-family: "Rubik", sans-serif;
}

.player-business-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.5rem;
  color: var(--player-status-color);
  border-radius: 8px;
  background: color-mix(in srgb, var(--player-status-color) 10%, white);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.player-business-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--player-status-color);
  content: "";
}

.player-business-status.large {
  padding: 0.45rem 0.7rem;
  font-size: 0.75rem;
}

.player-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  color: white;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 79, 128, 0.32), transparent 15rem),
    linear-gradient(135deg, #21142d, #3b1d50);
}

.player-detail-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.player-detail-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #ff4f80, #7d55ff);
  font-family: "Rubik", sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
}

.player-detail-profile h3,
.player-detail-profile p {
  margin: 0;
}

.player-detail-profile .eyebrow {
  color: #ffc75d;
}

.player-detail-profile > div > span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.player-detail-header .player-business-status {
  color: white;
  background: color-mix(in srgb, var(--player-status-color) 42%, transparent);
}

.player-detail-header .player-business-status::before {
  background: white;
}

.player-detail-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(92, 66, 106, 0.08);
}

.player-detail-facts > div {
  padding: 0.7rem;
  border-radius: 11px;
  background: #f7f2f8;
}

.player-detail-facts span,
.player-detail-facts strong {
  display: block;
}

.player-detail-facts span {
  color: #927e93;
  font-size: 0.64rem;
}

.player-detail-facts strong {
  margin-top: 0.1rem;
  color: #44244f;
  font-size: 0.78rem;
}

.player-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem 0.75rem;
}

.player-history-head h4,
.player-history-head p {
  margin: 0;
}

.player-status-timeline {
  padding: 0 1.2rem 1.2rem;
}

.player-status-event {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(92, 66, 106, 0.08);
}

.player-status-event > i {
  width: 10px;
  height: 10px;
  margin-top: 0.3rem;
  border-radius: 50%;
  background: var(--history-color);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--history-color) 12%, transparent);
}

.player-status-event-main strong,
.player-status-event-main span,
.player-status-event-meta strong,
.player-status-event-meta span {
  display: block;
}

.player-status-event-main span,
.player-status-event-meta,
.player-status-event-main p {
  color: #927e93;
  font-size: 0.68rem;
}

.player-status-event-main p {
  margin: 0.2rem 0 0;
}

.player-status-event-meta {
  min-width: 120px;
  text-align: left;
}

.player-status-event-meta strong {
  color: #715f76;
}

.player-detail-empty {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  color: #927e93;
  text-align: center;
}

.player-activity-table-panel {
  padding: 0;
  overflow: hidden;
}

.player-activity-table-panel .panel-head {
  padding: 1.1rem 1.2rem 0.85rem;
}

.players-financial-totals {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.players-financial-totals span {
  padding: 0.45rem 0.65rem;
  color: #715f76;
  border-radius: 10px;
  background: #f4edf6;
  font-size: 0.68rem;
  white-space: nowrap;
}

.players-financial-totals strong {
  margin-right: 0.2rem;
  color: #44244f;
}

.player-money-win {
  color: #167956;
}

.player-money-bonus {
  color: #a34878;
}

.player-activity-table-wrap {
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
}

.player-activity-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.player-activity-table th,
.player-activity-table td {
  vertical-align: middle;
  white-space: normal;
}

.player-activity-table th:nth-child(1),
.player-activity-table td:nth-child(1) {
  width: 25%;
}

.player-activity-table th:nth-child(2),
.player-activity-table td:nth-child(2) {
  width: 13%;
}

.player-activity-table th:nth-child(3),
.player-activity-table td:nth-child(3) {
  width: 16%;
}

.player-activity-table th:nth-child(4),
.player-activity-table td:nth-child(4) {
  width: 22%;
}

.player-activity-table th:nth-child(5),
.player-activity-table td:nth-child(5) {
  width: 14%;
}

.player-activity-table th:nth-child(6),
.player-activity-table td:nth-child(6) {
  width: 10%;
}

.player-activity-table .player-cell small {
  display: block;
  margin-top: 0.1rem;
}

.player-activity-table td > small {
  display: block;
  margin-top: 0.15rem;
  color: #927e93;
  font-size: 0.65rem;
}

.player-compact-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.player-compact-metrics span,
.player-money-stack span {
  display: block;
  min-width: 0;
  color: #927e93;
  font-size: 0.64rem;
  line-height: 1.45;
}

.player-compact-metrics strong,
.player-money-stack strong {
  margin-right: 0.15rem;
  color: #44244f;
  font-family: "Rubik", sans-serif;
  font-size: 0.78rem;
}

.player-money-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
}

.player-money-stack.compact {
  grid-template-columns: 1fr;
}

.player-activity-row {
  cursor: pointer;
}

.player-activity-row.selected {
  background: linear-gradient(90deg, rgba(255, 79, 128, 0.08), rgba(125, 85, 255, 0.04));
  box-shadow: inset -3px 0 #d93470;
}

.player-detail-panel {
  margin-top: 1rem;
}

.player-detail-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0 1.2rem 1rem;
}

.player-detail-summary > div {
  padding: 0.7rem;
  border-radius: 11px;
  background: #f7f2f8;
}

.player-detail-summary span,
.player-detail-summary strong {
  display: block;
}

.player-detail-summary span {
  color: #927e93;
  font-size: 0.64rem;
}

.player-detail-summary strong {
  margin-top: 0.12rem;
  color: #44244f;
  font-size: 0.78rem;
}

.player-detail-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.player-detail-table th,
.player-detail-table td {
  vertical-align: middle;
  white-space: normal;
}

.activity-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 800;
}

.activity-status.previous {
  color: #715f76;
  background: #eee8f0;
}

.activity-status.current {
  color: var(--activity-status-color);
  background: color-mix(in srgb, var(--activity-status-color) 11%, white);
}

.activity-status.current::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--activity-status-color);
  content: "";
}

.activity-reason {
  display: block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-timestamp {
  direction: ltr;
  display: inline-block;
  color: #6f5873;
  font-size: 0.68rem;
}

.player-activity-detail-row td {
  padding: 0 !important;
  background: #f7f2f8;
}

.player-activity-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 0.7fr)) minmax(240px, 1.4fr);
  gap: 0.65rem;
  padding: 0.85rem 1.2rem 1rem;
  border-top: 1px dashed rgba(92, 66, 106, 0.16);
}

.player-activity-detail > div {
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: white;
}

.player-activity-detail span,
.player-activity-detail strong {
  display: block;
}

.player-activity-detail span {
  color: #927e93;
  font-size: 0.62rem;
}

.player-activity-detail strong {
  margin-top: 0.1rem;
  color: #44244f;
  font-size: 0.75rem;
}

@media (max-width: 1150px) {
  .player-query-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-activity-query-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .players-master-detail {
    grid-template-columns: minmax(270px, 0.7fr) minmax(0, 1.3fr);
  }

  .player-detail-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .player-detail-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .players-master-detail {
    grid-template-columns: 1fr;
  }

  .players-directory-list {
    max-height: 380px;
  }

  .player-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-activity-query-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-activity-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-activity-detail .wide {
    grid-column: 1 / -1;
  }

  .player-activity-table {
    table-layout: auto;
  }

  .player-activity-table th:nth-child(n),
  .player-activity-table td:nth-child(n) {
    width: auto;
  }

  .player-compact-metrics,
  .player-money-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .player-query-heading,
  .player-detail-header,
  .player-history-head {
    align-items: stretch;
    flex-direction: column;
  }

  .player-query-fields,
  .player-activity-query-fields,
  .player-summary,
  .player-detail-facts,
  .player-detail-summary {
    grid-template-columns: 1fr;
  }

  .player-report-heading-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .player-report-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-data-mode-toggle {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-online-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .player-directory-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .player-directory-meta {
    display: none;
  }

  .player-status-event {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .player-status-event-meta {
    grid-column: 2;
    text-align: right;
  }

  .player-activity-detail {
    grid-template-columns: 1fr;
  }

  .player-activity-detail .wide {
    grid-column: auto;
  }

  .player-activity-table-panel .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .players-financial-totals {
    justify-content: flex-start;
  }

  .player-activity-table th,
  .player-activity-table td,
  .player-detail-table th,
  .player-detail-table td {
    padding-right: 0.55rem;
    padding-left: 0.55rem;
    font-size: 0.72rem;
  }
}

.database-overview {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(4, minmax(120px, 0.7fr));
  gap: 0.8rem;
  margin: 1rem 0 1.2rem;
}

.database-overview > div {
  min-height: 98px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(92, 66, 106, 0.1);
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 28px rgba(42, 24, 66, 0.06);
}

.database-overview > div:not(.database-identity) span,
.database-overview > div:not(.database-identity) strong,
.database-overview > div:not(.database-identity) small {
  display: block;
}

.database-overview > div:not(.database-identity) span,
.database-overview > div:not(.database-identity) small {
  color: #927e93;
  font-size: 0.68rem;
}

.database-overview > div:not(.database-identity) strong {
  margin: 0.12rem 0;
  color: #24142e;
  font-family: "Rubik", sans-serif;
  font-size: 1.45rem;
}

.database-identity {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: white;
  border: 0 !important;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 79, 128, 0.32), transparent 12rem),
    linear-gradient(135deg, #21142d, #3b1d50) !important;
}

.database-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 17px;
  background: linear-gradient(145deg, #ff4f80, #7d55ff);
  font-family: "Rubik", sans-serif;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(125, 85, 255, 0.28);
}

.database-identity small,
.database-identity strong,
.database-identity div > span {
  display: block;
}

.database-identity small,
.database-identity div > span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
}

.database-identity strong {
  margin: 0.12rem 0;
  font-size: 1.05rem;
}

.database-live {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #49e39e;
  box-shadow: 0 0 14px #49e39e;
}

.system-table-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.system-table-toolbar h3,
.system-table-toolbar p {
  margin: 0;
}

.system-table-search {
  width: min(100%, 320px);
}

.system-table-search span {
  display: block;
  margin-bottom: 0.35rem;
  color: #715f76;
  font-size: 0.72rem;
  font-weight: 800;
}

.system-table-search input {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(92, 66, 106, 0.14);
  border-radius: 12px;
  background: white;
  font: inherit;
}

.system-table-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.system-table-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 112px;
  padding: 0.9rem;
  color: #24142e;
  border: 1px solid rgba(92, 66, 106, 0.1);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(42, 24, 66, 0.05);
  text-align: right;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.system-table-card:hover,
.system-table-card.selected {
  transform: translateY(-2px);
  border-color: rgba(217, 52, 112, 0.36);
  box-shadow: 0 15px 30px rgba(74, 38, 94, 0.1);
}

.system-table-card.selected {
  background: linear-gradient(135deg, rgba(255, 79, 128, 0.08), rgba(125, 85, 255, 0.07)), white;
}

.system-table-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  border-radius: 13px;
  background: linear-gradient(145deg, #ff4f80, #7d55ff);
  font-size: 1.15rem;
}

.system-table-card-copy strong,
.system-table-card-copy code,
.system-table-card-copy small,
.system-table-count strong,
.system-table-count small {
  display: block;
}

.system-table-card-copy code {
  margin: 0.1rem 0;
  color: #9a4d79;
  font-size: 0.7rem;
}

.system-table-card-copy small,
.system-table-count small {
  color: #927e93;
  font-size: 0.66rem;
}

.system-table-count {
  min-width: 56px;
  text-align: center;
}

.system-table-count strong {
  font-family: "Rubik", sans-serif;
  font-size: 1.35rem;
}

.system-table-detail {
  padding: 0;
  overflow: hidden;
}

.system-table-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem;
  border-bottom: 1px solid rgba(92, 66, 106, 0.09);
}

.system-table-detail-head h3,
.system-table-detail-head p {
  margin: 0;
}

.system-table-detail-head h3 code {
  margin-right: 0.4rem;
  color: #a34878;
  font-size: 0.78rem;
}

.system-table-detail-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.system-table-detail-meta span {
  padding: 0.45rem 0.65rem;
  color: #715f76;
  border-radius: 10px;
  background: #f4edf6;
  font-size: 0.7rem;
}

.system-table-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem 0.7rem;
}

.system-table-section-title h4 {
  margin: 0;
}

.system-table-section-title span {
  color: #927e93;
  font-size: 0.7rem;
}

.schema-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0 1.3rem 1.3rem;
}

.schema-column {
  padding: 0.75rem;
  border: 1px solid rgba(92, 66, 106, 0.09);
  border-radius: 12px;
  background: #fbf9fc;
}

.schema-column > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.schema-column code {
  color: #44244f;
  font-weight: 800;
}

.schema-column > div:first-child span {
  color: #9b839e;
  font-size: 0.65rem;
}

.schema-flags {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.schema-flags span {
  padding: 0.2rem 0.4rem;
  color: #7e6a82;
  border-radius: 6px;
  background: #eee8f0;
  font-size: 0.6rem;
}

.schema-flags .schema-key {
  color: #a33568;
  background: rgba(255, 79, 128, 0.1);
}

.preview-title {
  border-top: 1px solid rgba(92, 66, 106, 0.09);
}

.system-data-preview {
  margin: 0 1.3rem 1.3rem;
}

.system-data-preview th,
.system-data-preview td {
  max-width: 240px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.system-data-preview th {
  font-family: monospace;
  font-size: 0.68rem;
}

.table-null {
  color: #aa9bad;
  font-family: monospace;
  font-size: 0.68rem;
  font-style: italic;
}

.status-definition-list {
  display: grid;
  gap: 0.55rem;
  padding: 0 1.3rem 1.3rem;
}

.status-definition-row {
  display: grid;
  grid-template-columns: 12px minmax(140px, 0.55fr) minmax(240px, 1.4fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(92, 66, 106, 0.09);
  border-radius: 13px;
  background: #fbf9fc;
}

.status-color {
  width: 10px;
  height: 42px;
  border-radius: 999px;
  background: var(--status-color);
  box-shadow: 0 5px 12px color-mix(in srgb, var(--status-color) 35%, transparent);
}

.status-definition-name strong,
.status-definition-name code {
  display: block;
}

.status-definition-name code {
  margin-top: 0.1rem;
  color: #9a4d79;
  font-size: 0.7rem;
}

.status-definition-row p {
  margin: 0;
  color: #715f76;
  font-size: 0.78rem;
}

.status-definition-flags {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.status-definition-flags span {
  padding: 0.28rem 0.5rem;
  color: #567263;
  border-radius: 7px;
  background: #e8f5ee;
  font-size: 0.62rem;
  white-space: nowrap;
}

.status-definition-flags .terminal {
  color: #a13c57;
  background: #fbe8ee;
}

.system-tables-loading,
.system-tables-error,
.system-table-empty {
  padding: 3rem 1.5rem;
  text-align: center;
}

.system-tables-loading strong,
.system-tables-loading small {
  display: block;
}

.system-tables-loading small {
  color: #927e93;
}

.database-loader {
  display: block;
  width: 38px;
  height: 38px;
  margin: 0 auto 0.8rem;
  border: 4px solid rgba(217, 52, 112, 0.13);
  border-top-color: #d93470;
  border-radius: 50%;
  animation: database-spin 700ms linear infinite;
}

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

@media (max-width: 1100px) {
  .database-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .database-identity {
    grid-column: 1 / -1;
  }

  .system-table-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .database-overview,
  .system-table-cards,
  .schema-grid {
    grid-template-columns: 1fr;
  }

  .database-identity {
    grid-column: auto;
  }

  .system-table-toolbar,
  .system-table-detail-head {
    align-items: stretch;
    flex-direction: column;
  }

  .system-table-search {
    width: 100%;
  }

  .system-table-detail-meta {
    justify-content: flex-start;
  }

  .status-definition-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .status-definition-row p,
  .status-definition-flags {
    grid-column: 2;
  }

  .status-definition-flags {
    justify-content: flex-start;
  }
}
/* Player entry mode settings */
.entry-mode-panel { max-width: 920px; }
.entry-mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.entry-mode-option { padding: 22px; border: 2px solid #dbe4f0; border-radius: 18px; background: #fff; color: #10233f; text-align: right; cursor: pointer; }
.entry-mode-option strong { display: block; margin-bottom: 8px; font-size: 1.12rem; }
.entry-mode-option span { display: block; color: #64748b; line-height: 1.55; }
.entry-mode-option.active { border-color: #1769ff; box-shadow: 0 0 0 4px rgba(23,105,255,.12); background: #f7faff; }
@media (max-width: 720px) { .entry-mode-options { grid-template-columns: 1fr; } }
.dashboard-live-strip {
  display: none;
}

.arena-management-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(8, 15, 28, .98));
}

.arena-management-hero h2 {
  margin: .3rem 0;
}

.arena-management-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: .75rem;
}

.arena-management-actions .button {
  min-height: 3.25rem;
  flex: 1;
}

.arena-close-button {
  color: #fecaca;
  border-color: rgba(248, 113, 113, .65);
  background: rgba(127, 29, 29, .34);
}

.compact-arena-settings {
  margin-top: 1rem;
}

.compact-arena-setting-grid,
.mobile-player-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.round-management-players {
  margin-top: 1.25rem;
}

.round-management-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1rem;
}

.mobile-player-cards {
  display: grid;
  gap: .85rem;
  margin-top: 1rem;
}

.mobile-player-card {
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 1rem;
  background: rgba(15, 23, 42, .92);
}

.mobile-player-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .75rem;
  align-items: center;
}

.mobile-player-identity {
  display: grid;
  gap: .25rem;
}

.mobile-player-identity small {
  color: var(--muted);
}

.mobile-player-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1rem 0;
  border-block: 1px solid rgba(148, 163, 184, .16);
}

.mobile-player-metrics > div {
  display: grid;
  gap: .2rem;
  padding: .8rem .4rem;
  text-align: center;
}

.mobile-player-metrics > div + div {
  border-inline-start: 1px solid rgba(148, 163, 184, .16);
}

.mobile-player-metrics strong {
  font-size: 1.35rem;
}

.mobile-player-metrics small,
.mobile-player-metrics span {
  color: var(--muted);
}

.arena-closed-stage {
  min-height: 100dvh;
}

.arena-closed-screen {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: .75rem;
  padding: 2rem;
  text-align: center;
  background: radial-gradient(circle at top, rgba(14, 116, 144, .2), transparent 42%), #07101d;
}

.arena-closed-icon {
  font-size: 3rem;
  color: #67e8f9;
}

@media (max-width: 700px) {
  .admin-content {
    padding: 1rem;
  }

  .compact-arena-setting-grid,
  .mobile-player-filters {
    grid-template-columns: 1fr;
  }

  .mobile-player-card-head {
    grid-template-columns: auto 1fr;
  }

  .mobile-player-card-head .activity-status {
    grid-column: 2;
    justify-self: start;
  }

  .mobile-player-metrics {
    font-size: .85rem;
  }
}

/* Final accessibility overrides: keep these last in the cascade. */
.arena-management-hero h2 {
  color: #ffffff !important;
  font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
  font-weight: 900 !important;
}

.arena-management-hero p {
  color: #e2e8f0 !important;
  font-size: 1rem !important;
  font-weight: 750 !important;
}

.mobile-player-card,
.mobile-player-card strong {
  color: #ffffff !important;
}

.mobile-player-identity small,
.mobile-player-metrics small {
  color: #e2e8f0 !important;
}

.mobile-player-metrics span {
  color: #bfdbfe !important;
}

.mobile-player-identity strong {
  font-size: 1.2rem !important;
  font-weight: 900 !important;
}

.mobile-player-identity small,
.mobile-player-metrics span,
.mobile-player-metrics small {
  font-size: .92rem !important;
  font-weight: 800 !important;
}

.mobile-player-metrics strong {
  color: #ffffff !important;
  font-size: 1.6rem !important;
  font-weight: 900 !important;
}

.mobile-player-card .button.secondary {
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  background: #075985 !important;
  font-weight: 900 !important;
}

.round-management-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .admin-screen-schedule {
    min-height: 100dvh;
    padding-bottom: 5.75rem;
    color: #f8fafc;
    background:
      radial-gradient(circle at 50% -5%, rgba(14, 116, 144, .17), transparent 26rem),
      #050e1a;
  }

  .admin-screen-schedule .command-bar,
  .admin-screen-schedule .sidebar {
    display: none;
  }

  .admin-screen-schedule .admin-layout {
    display: block;
  }

  .admin-screen-schedule .admin-content {
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
    background: transparent;
  }

  .admin-screen-schedule .admin-head {
    display: block;
    margin: 0;
    padding: .35rem .25rem .75rem;
    text-align: center;
  }

  .admin-screen-schedule .admin-head h2 {
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 900;
  }

  .admin-screen-schedule .admin-head p {
    display: none;
  }

  .admin-screen-schedule .arena-management-hero {
    grid-template-columns: 1fr auto;
    padding: .9rem;
    border: 1px solid #334155;
    border-radius: 1.15rem;
    background:
      radial-gradient(circle at 10% 30%, rgba(6, 182, 212, .13), transparent 8rem),
      #0b1728;
    box-shadow: none;
  }

  .admin-screen-schedule .arena-management-hero .badge {
    align-self: start;
    min-width: auto;
  }

  .admin-screen-schedule .arena-management-hero h2 {
    margin: .2rem 0;
    font-size: 1.65rem !important;
  }

  .admin-screen-schedule .arena-management-hero .arena-next-cycle {
    color: #67e8f9 !important;
    font-size: .92rem !important;
  }

  .admin-screen-schedule .arena-management-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-top: .35rem;
  }

  .admin-screen-schedule .arena-management-actions .button {
    min-height: 2.9rem;
    border-radius: .75rem;
    font-size: 1rem;
    font-weight: 900;
  }

  .admin-screen-schedule .arena-management-actions .button:disabled {
    opacity: .42;
    filter: saturate(.45);
  }

  .admin-screen-schedule .arena-close-button:not(:disabled) {
    color: #fecaca;
    border: 2px solid #f87171;
    background: rgba(127, 29, 29, .28);
  }

  .admin-screen-schedule .arena-closing-note {
    grid-column: 1 / -1;
    margin: 0;
    color: #fde68a !important;
  }

  .admin-screen-schedule .compact-arena-settings {
    color: #f8fafc;
    border: 1px solid #334155;
    border-radius: 1.15rem;
    background: #0b1728;
    box-shadow: none;
    padding: .85rem;
  }

  .admin-screen-schedule .compact-arena-settings .panel-head {
    margin-bottom: .25rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid #334155;
  }

  .admin-screen-schedule .compact-arena-settings h3,
  .admin-screen-schedule .compact-arena-settings .field span,
  .admin-screen-schedule .compact-arena-settings .field strong {
    color: #f8fafc;
  }

  .admin-screen-schedule .compact-arena-settings .eyebrow {
    color: #67e8f9;
  }

  .admin-screen-schedule .round-settings-icon {
    color: #67e8f9;
    font-size: 1.6rem;
  }

  .admin-screen-schedule .compact-arena-setting-grid {
    gap: 0;
  }

  .admin-screen-schedule .compact-arena-setting-grid .field {
    min-height: 3.35rem;
    padding: .55rem 0;
    border-bottom: 1px solid #334155;
  }

  .admin-screen-schedule .round-management-section-head h2,
  .admin-screen-schedule .mobile-player-filters .field > span {
    color: #ffffff;
  }

  .admin-screen-schedule .round-management-players {
    margin-top: .85rem;
  }

  .admin-screen-schedule .round-management-section-head .eyebrow {
    color: #67e8f9;
  }

  .admin-screen-schedule .round-management-section-head .pill {
    color: #e2e8f0;
    border-color: #475569;
    background: #172337;
  }

  .admin-screen-schedule .mobile-player-filters input,
  .admin-screen-schedule .mobile-player-filters select {
    color: #f8fafc;
    border: 1px solid #475569;
    background: #0b1728;
  }

  .admin-screen-schedule .mobile-player-filters input::placeholder {
    color: #94a3b8;
    opacity: 1;
  }

  .admin-screen-schedule .mobile-player-card {
    border-color: #334155;
    border-radius: 1.05rem;
    background: #0b1728;
    box-shadow: none;
  }

  .admin-screen-schedule .mobile-player-card .avatar {
    border: 1px solid #22d3ee;
    background: #164e63;
  }

  .admin-screen-schedule .round-management-bottom-nav {
    position: fixed;
    z-index: 30;
    inset-inline: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 4.75rem;
    padding: .45rem max(.75rem, env(safe-area-inset-right)) calc(.45rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
    border-top: 1px solid #334155;
    background: rgba(5, 14, 26, .97);
    backdrop-filter: blur(16px);
  }

  .admin-screen-schedule .round-management-bottom-nav button {
    display: grid;
    place-items: center;
    gap: .15rem;
    color: #cbd5e1;
    border: 0;
    background: transparent;
  }

  .admin-screen-schedule .round-management-bottom-nav span {
    font-size: 1.35rem;
  }

  .admin-screen-schedule .round-management-bottom-nav strong {
    font-size: .78rem;
    font-weight: 800;
  }
}

/* Final mockup parity overrides — intentionally last. */
.command-center.admin-screen-schedule,
.admin-screen-schedule .admin-layout,
.admin-screen-schedule .admin-content {
  color: #f8fafc !important;
  background: #050e1a !important;
}

.admin-screen-schedule .admin-head {
  color: #f8fafc !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.admin-screen-schedule .admin-head h2 {
  color: #ffffff !important;
}

.admin-screen-schedule .admin-head p {
  color: #cbd5e1 !important;
}

.admin-screen-schedule .arena-management-hero,
.admin-screen-schedule .compact-arena-settings,
.admin-screen-schedule .mobile-player-card {
  color: #f8fafc !important;
  border-color: #334155 !important;
  background: #0b1728 !important;
  box-shadow: none !important;
}

.admin-screen-schedule .compact-arena-settings h3,
.admin-screen-schedule .compact-arena-settings .field span,
.admin-screen-schedule .compact-arena-settings .field strong,
.admin-screen-schedule .round-management-section-head h2,
.admin-screen-schedule .mobile-player-filters .field > span {
  color: #f8fafc !important;
}

.admin-screen-schedule .compact-arena-settings .eyebrow,
.admin-screen-schedule .round-management-section-head .eyebrow {
  color: #67e8f9 !important;
}

.admin-screen-schedule .mobile-player-filters input,
.admin-screen-schedule .mobile-player-filters select {
  color: #f8fafc !important;
  border-color: #475569 !important;
  background: #0b1728 !important;
}

/* Application shells: player is a focused mobile product; management is responsive. */
body.player-app .topbar,
body.management-authenticated .topbar {
  display: none;
}

body.player-app .app-shell {
  width: 100%;
  min-height: 100dvh;
  padding: 0;
}

body.player-app .player-stage {
  min-height: 100dvh;
}

body.management-authenticated .app-shell {
  width: min(1440px, 100%);
  padding: 0;
}

body.management-authenticated .command-center {
  min-height: 100dvh;
  border: 0;
  border-radius: 0;
}

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

.admin-mobile-menu {
  display: none;
}

@media (min-width: 901px) {
  .admin-screen-schedule .admin-content {
    display: block;
  }

  .admin-screen-schedule .admin-head {
    margin-bottom: 1rem;
  }

  .admin-screen-schedule .round-management-summary {
    display: grid;
    grid-template-columns: minmax(190px, .55fr) minmax(320px, 1.15fr) minmax(300px, 1fr);
    gap: 1rem;
    align-items: stretch;
  }

  .admin-screen-schedule .round-management-players {
    margin-top: 1rem;
  }

  .admin-screen-schedule .round-management-summary .compact-arena-settings {
    margin-top: 0;
  }

  .admin-screen-schedule .mobile-player-cards {
    display: none;
  }
}

.site-lifecycle-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1rem;
}

.site-lifecycle-guide > div,
.round-summary-site {
  display: grid;
  gap: .25rem;
  padding: 1rem;
}

.site-lifecycle-guide > div {
  border: 1px solid rgba(92, 66, 106, .12);
  border-radius: 14px;
  background: #fff;
}

.site-lifecycle-guide span,
.round-summary-site span { color: var(--muted); }

.round-management-summary .arena-management-hero,
.round-management-summary .compact-arena-settings,
.round-summary-site { margin: 0; }

.round-summary-site h3 { margin: .2rem 0; font-size: 1.35rem; }

.round-live-clocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin-bottom: 1rem;
}

.round-live-clocks > div {
  display: grid;
  gap: .25rem;
  padding: .85rem;
  color: #e0f2fe;
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 14px;
  background: linear-gradient(145deg, #082f49, #0c4a6e);
  text-align: center;
}

.round-live-clocks .game-clock {
  border-color: rgba(167, 139, 250, .28);
  background: linear-gradient(145deg, #2e1065, #4c1d95);
}

.round-live-clocks span {
  font-size: .72rem;
  font-weight: 800;
}

.round-live-clocks strong {
  direction: ltr;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-variant-numeric: tabular-nums;
}

.round-player-table-wrap { margin-top: 1rem; }
.round-player-history-row > td { padding: 0; }
.round-player-history-row .mobile-player-history { border-radius: 0; }

.status-table-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .85rem 1.3rem;
  color: #715f76;
  background: #f7f2f7;
}

.detailed-status-table { padding: 0 1.3rem 1.3rem; }
.detailed-status-table td { min-width: 115px; vertical-align: top; }
.detailed-status-table td:nth-child(3) { min-width: 230px; }
.status-name-cell { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.status-name-cell i { width: 8px; height: 30px; border-radius: 9px; background: var(--status-color); }
.clickable-row { cursor: pointer; }
.clickable-row:hover { background: rgba(154, 77, 121, .06); }
.all-sites-kpis { margin-bottom: 1rem; }
.all-sites-comparison td small { display: block; color: var(--muted); }

@media (max-width: 900px) {
  .site-lifecycle-guide { grid-template-columns: 1fr; }
  .round-management-summary { display: grid; gap: .85rem; }
  .round-player-table-wrap { display: none; }
}

@media (min-width: 701px) {
  body.player-app .player-stage {
    min-height: 100dvh;
    padding: 2rem 1rem;
  }
}

@media (max-width: 900px) {
  body.management-authenticated {
    background: #f4f1f7;
  }

  body.management-authenticated .command-center {
    padding-bottom: calc(4.7rem + env(safe-area-inset-bottom));
  }

  body.management-authenticated .command-bar,
  body.management-authenticated .sidebar {
    display: none;
  }

  body.management-authenticated .admin-layout {
    display: block;
    min-height: 100dvh;
  }

  body.management-authenticated .admin-content {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 1rem;
  }

  body.management-authenticated .admin-head {
    gap: .75rem;
    margin-bottom: 1rem;
    padding: .5rem 0;
  }

  body.management-authenticated .admin-head h2 {
    font-size: clamp(1.6rem, 6vw, 2.1rem);
  }

  body.management-authenticated .admin-head-actions {
    width: 100%;
  }

  body.management-authenticated .admin-head-actions .button {
    width: 100%;
    min-height: 46px;
  }

  .management-mobile-nav {
    position: fixed;
    z-index: 100;
    inset-inline: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 4.7rem;
    padding: .4rem max(.55rem, env(safe-area-inset-right))
      calc(.4rem + env(safe-area-inset-bottom))
      max(.55rem, env(safe-area-inset-left));
    border-top: 1px solid rgba(71, 85, 105, .8);
    background: rgba(11, 23, 40, .98);
    box-shadow: 0 -12px 30px rgba(2, 8, 23, .22);
    backdrop-filter: blur(18px);
  }

  .management-mobile-nav.site-manager-mobile-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .management-mobile-nav button {
    display: grid;
    min-height: 3.65rem;
    place-items: center;
    gap: .12rem;
    padding: .3rem;
    color: #cbd5e1;
    border: 0;
    border-radius: .8rem;
    background: transparent;
    font: inherit;
  }

  .management-mobile-nav button span {
    font-size: 1.25rem;
    line-height: 1;
  }

  .management-mobile-nav button strong {
    font-size: .74rem;
    font-weight: 800;
  }

  .management-mobile-nav button.active {
    color: #fff;
    background: linear-gradient(145deg, rgba(14, 116, 144, .8), rgba(30, 64, 175, .55));
  }

  .admin-mobile-menu {
    position: fixed;
    z-index: 140;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .admin-mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(2, 8, 23, .7);
    backdrop-filter: blur(5px);
  }

  .admin-mobile-menu-sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    border: 1px solid #334155;
    border-radius: 1.5rem 1.5rem 0 0;
    color: #f8fafc;
    background: linear-gradient(165deg, #10233c, #07111f);
    box-shadow: 0 -24px 60px rgba(2, 8, 23, .45);
  }

  .admin-mobile-menu-sheet header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
  }

  .admin-mobile-menu-sheet header div,
  .admin-mobile-menu-sheet header strong,
  .admin-mobile-menu-sheet header small {
    display: block;
  }

  .admin-mobile-menu-sheet header strong {
    font-size: 1.2rem;
  }

  .admin-mobile-menu-sheet header small {
    margin-top: .15rem;
    color: #94a3b8;
  }

  .admin-mobile-menu-sheet header > button {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    color: #fff;
    border: 1px solid #475569;
    border-radius: 50%;
    background: #172b46;
    font-size: 1.6rem;
  }

  .admin-mobile-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
  }

  .admin-mobile-menu-grid button {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 3.7rem;
    padding: .75rem;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: .9rem;
    background: rgba(30, 41, 59, .72);
    font: inherit;
    text-align: right;
  }

  .admin-mobile-menu-grid button span {
    display: grid;
    flex: 0 0 2.1rem;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border-radius: .65rem;
    background: rgba(14, 116, 144, .35);
    font-size: 1.15rem;
  }

  .admin-mobile-menu-grid button strong {
    font-size: .9rem;
  }

  .admin-mobile-menu-grid button.active {
    color: #fff;
    border-color: #38bdf8;
    background: linear-gradient(145deg, rgba(14, 116, 144, .8), rgba(30, 64, 175, .62));
  }

  .round-management-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 640px) {
  body.management-authenticated .admin-content {
    padding: .85rem;
  }

  body.management-authenticated .panel,
  body.management-authenticated .setting-card {
    border-radius: 1rem;
  }

  body.management-authenticated .table-wrap {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }
}
.player-site-badge {
  position: absolute;
  inset-inline-start: 1rem;
  top: 0.75rem;
  z-index: 12;
  max-width: calc(100% - 2rem);
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 15, 32, 0.78);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

/* Compact, light registration screen aligned with the installed player app. */
.player-phone-shell > .player-site-badge {
  display: inline-flex;
  max-height: 2rem;
  align-items: center;
  width: auto;
  min-height: 0;
  height: auto;
  flex: 0 0 auto;
  line-height: 1.25;
}

.player-phone-shell.has-mobile-navigation > .player-site-badge {
  width: auto;
  min-height: 0;
  height: auto;
  max-height: 2rem;
  flex: 0 0 auto;
}

.player-screen-landing .player-site-badge {
  top: 0.9rem;
  padding: 0.3rem 0.65rem;
  color: var(--blue);
  border-color: rgba(23, 107, 255, 0.18);
  background: #eaf2ff;
  box-shadow: 0 5px 16px rgba(7, 33, 78, 0.08);
  backdrop-filter: none;
}

.player-screen-landing .arena-landing {
  display: block;
  min-height: inherit;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  background: #f2f6fb;
  box-shadow: none;
}

.player-screen-landing .registration-entry {
  min-height: inherit;
  padding: 4rem 1.15rem 1.5rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0, rgba(22, 199, 217, 0.12), transparent 14rem),
    #f2f6fb;
}

.player-screen-landing .registration-entry::before {
  content: none;
}

.player-screen-landing .arena-entry-head {
  margin-bottom: 0.35rem;
}

.player-screen-landing .arena-entry-head p {
  color: var(--blue);
}

.player-screen-landing .arena-entry-head h2 {
  color: var(--ink);
  font-size: 1.85rem;
}

.player-screen-landing .arena-step {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, var(--blue), #0a4fc8);
  box-shadow: 0 10px 24px rgba(23, 107, 255, 0.22);
}

.player-screen-landing .arena-access-card {
  margin-top: 0.8rem;
  border-color: rgba(23, 107, 255, 0.15);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(7, 33, 78, 0.08);
}

.player-screen-landing .arena-access-card.active {
  border-color: rgba(23, 107, 255, 0.24);
  box-shadow: 0 12px 30px rgba(7, 33, 78, 0.1);
}

.player-screen-landing .arena-access-mark {
  background: var(--navy);
}

.player-screen-landing .arena-access-mark span.on {
  background: var(--cyan);
}

.player-screen-landing .arena-access-card strong {
  color: var(--ink);
}

.player-screen-landing .arena-access-card span,
.player-screen-landing .arena-entry .checkbox,
.player-screen-landing .arena-entry-foot {
  color: var(--muted);
}

.player-screen-landing .arena-entry .field input {
  color: var(--ink);
  border-color: #d8e2ef;
  background: #ffffff;
  -webkit-text-fill-color: var(--ink);
}

.player-screen-landing .arena-entry .field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 107, 255, 0.1);
}

.player-screen-landing .arena-join-button {
  background: linear-gradient(135deg, var(--blue), #0a55d3);
  box-shadow: 0 16px 34px rgba(23, 107, 255, 0.25);
}

.player-screen-landing .arena-entry-foot {
  border-top-color: #dfe6ef;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.phone-contact-picker {
  padding: 0;
  color: var(--blue);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.phone-contact-picker[hidden] {
  display: none;
}

.admin-site-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 12rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-site-selector select {
  min-width: 8rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 0.7rem;
  background: #21142d;
  color: #ffffff;
  font: inherit;
}

.admin-site-selector select option {
  background: #21142d;
  color: #ffffff;
}

.admin-screen-sites .panel,
.admin-screen-sites .panel h3,
.admin-screen-sites .field > span,
.admin-screen-sites table {
  color: #172033;
}

.admin-screen-sites .field input {
  color: #172033;
  border-color: #9aa9bd;
  background: #ffffff;
  -webkit-text-fill-color: #172033;
}

.admin-screen-sites .field input::placeholder {
  color: #66758b;
  opacity: 1;
}

.admin-screen-sites .field input:focus {
  color: #172033;
  border-color: #7d55ff;
  background: #ffffff;
  -webkit-text-fill-color: #172033;
}

.site-entry-qr {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  min-width: 112px;
  color: #172033;
}

.site-entry-qr-image {
  display: block;
  width: 112px;
  height: 112px;
  border: 5px solid #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 16px rgba(23, 32, 51, 0.14);
}

.site-entry-url {
  display: block;
  max-width: 240px;
  margin-top: 0.45rem;
  direction: ltr;
  color: #526078;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.site-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  min-width: 12rem;
}

.site-edit-dialog {
  width: min(34rem, calc(100vw - 2rem));
  border: 0;
  border-radius: 1.35rem;
  padding: 1.25rem;
  background: var(--surface, #fff);
  color: var(--text, #24142e);
  box-shadow: 0 1.5rem 4rem rgba(36, 20, 46, .28);
}

.site-edit-dialog::backdrop {
  background: rgba(26, 13, 32, .62);
  backdrop-filter: blur(4px);
}

.site-edit-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.site-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
}

@media (max-width: 640px) {
  .site-edit-fields { grid-template-columns: 1fr; }
}
