@font-face{font-family:'Recta';src:url('fonts/Recta-Light.otf') format('opentype');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'Recta';src:url('fonts/Recta-Regular.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Recta';src:url('fonts/Recta-Medium.otf') format('opentype');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Recta';src:url('fonts/Recta-Bold.otf') format('opentype');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Recta';src:url('fonts/Recta-ExtraBold.otf') format('opentype');font-weight:800;font-style:normal;font-display:swap}
* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #eef1f5;
  font-family: 'Recta',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  color: #e8e8ea;
}

.hidden { display: none !important; }

/* ===================== App shell (sidebar + dashboard screens) ===================== */

.app-shell {
  display: flex;
  align-items: flex-start;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 96px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e6e8ec;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
}

.sidebar-logo {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: #3a3d44;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.nav-icon-btn svg { width: 24px; height: 24px; }
.nav-icon-btn:hover { background: #f3f4f6; }
.nav-icon-btn.active { background: #eef0f3; color: #1a1a1a; }

.app-main {
  flex: 1;
  align-self: stretch;
  min-width: 0;
  overflow-y: auto;
}

.dashboard-screen {
  padding: 40px 64px 80px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.page-title {
  font-size: 26px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
}

.pill-btn {
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: filter .12s ease, background .12s ease;
}

.dark-btn {
  background: #24262b;
  color: #f2f2f4;
}
.dark-btn:hover { background: #34363c; }

.outline-dark-btn {
  background: transparent;
  color: #24262b;
  border: 1.5px solid #d7dae0;
}
.outline-dark-btn:hover { background: #f3f4f6; }

.gradient-btn {
  background: linear-gradient(90deg, #f3b6d6, #f7f3f9);
  color: #2a2a2a;
  font-weight: 600;
}
.gradient-btn:hover { filter: brightness(0.96); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.lib-card {
  background: #fff;
  border-radius: 24px;
  padding: 16px;
}

.lib-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lib-thumb {
  position: relative;
  background: #000;
  border-radius: 12px;
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% calc(100% - 24px), calc(100% - 24px) 100%, 24px 100%, 0 calc(100% - 24px), 0 24px);
  overflow: hidden;
  cursor: pointer;
}

.lib-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  aspect-ratio: 4 / 3;
}

.lib-thumb-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}

.lib-thumb .icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  color: #2a2a2a;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.lib-thumb .icon-btn.delete-btn { color: #ff4d4f; }
.lib-thumb .icon-btn:hover { filter: brightness(0.95); }

.lib-label-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: #1a1a1a;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
}

.lib-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lib-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #eef0f3;
  color: #3a3d44;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
}

.lib-chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lib-empty-hint {
  grid-column: 1 / -1;
  text-align: center;
  color: #8b8f98;
  font-size: 15px;
  padding: 60px 0;
}

/* ===================== Games screen ===================== */

/* ===================== Dashboard ===================== */

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-stat-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7a7f8c;
}

.dash-stat-value {
  font-size: 32px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.1;
}

.dash-stat-sub {
  font-size: 12px;
  color: #9ea4b0;
}

.dash-chart-card,
.dash-table-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.dash-chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dash-card-title {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.dash-card-sub {
  font-size: 13px;
  color: #9ea4b0;
  margin: 0;
}

.dash-line-chart {
  width: 100%;
}

.dash-chart-filter {
  display: flex;
  gap: 4px;
  background: #f4f5f7;
  border-radius: 8px;
  padding: 3px;
  flex-shrink: 0;
}

.dash-filter-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #7a7f8c;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.dash-filter-btn.active {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.dash-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.dash-charts-grid .dash-chart-card {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .dash-charts-grid { grid-template-columns: 1fr; }
}

.dash-table {
  display: flex;
  flex-direction: column;
}

.dash-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 80px 90px 90px;
  gap: 16px;
  padding: 10px 16px;
  background: #f4f5f7;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #7a7f8c;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dash-table-5col .dash-table-header,
.dash-table-5col .dash-table-row {
  grid-template-columns: 2fr 1fr 1fr 80px 90px;
}

.dash-th.sortable {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.dash-th.sortable::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M4 0L7 4H1L4 0Z' fill='%237a7f8c'/%3E%3Cpath d='M4 12L1 8H7L4 12Z' fill='%237a7f8c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}
.dash-th.sortable:hover::after { opacity: 0.6; }
.dash-th.sort-asc::after {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6'%3E%3Cpath d='M4 0L8 6H0L4 0Z' fill='%231a1a1a'/%3E%3C/svg%3E");
}
.dash-th.sort-desc::after {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6'%3E%3Cpath d='M4 6L0 0H8L4 6Z' fill='%231a1a1a'/%3E%3C/svg%3E");
}

.dash-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 80px 90px 90px;
  gap: 16px;
  padding: 14px 16px;
  font-size: 14px;
  color: #3a3d44;
  border-bottom: 1px solid #f0f1f3;
}

.dash-table-row:last-child { border-bottom: none; }

.dash-table-name {
  font-weight: 500;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-table-creator,
.dash-table-category,
.dash-table-date {
  color: #7a7f8c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-table-leads {
  font-weight: 600;
  color: #1a1a1a;
}
.dash-conv-green {
  color: #16a34a;
  font-weight: 500;
}

.dash-empty {
  color: #9ea4b0;
  font-size: 14px;
  text-align: center;
  padding: 32px 0;
}

.games-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.games-row {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1.1fr 110px 80px 70px;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}

.games-header-row {
  color: #1a1a1a;
  font-size: 14px;
}

.col-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.col-sort:hover { color: #ec4899; }

.col-label { color: #1a1a1a; font-size: 14px; }

.game-row {
  background: #fff;
  border-radius: 20px;
  padding: 18px 20px;
  min-height: 28px;
}

.games-section-divider {
  height: 1px;
  background: #e8e8ea;
  margin: 12px 0;
}

.game-main-star {
  color: #f5a623;
  font-size: 18px;
  margin-right: 8px;
  vertical-align: middle;
  line-height: 1;
}

.game-cell-text {
  color: #1a1a1a;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-cell-link {
  color: #3a3d44;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  max-width: 100%;
}
.game-cell-link:hover { color: #ec4899; }

.gift-toggle {
  width: 40px;
  height: 24px;
  accent-color: #2f6fed;
  cursor: pointer;
}

.game-row-actions {
  display: flex;
  gap: 12px;
  justify-self: end;
}

.game-row-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: #2a2a2a;
}
.game-row-actions .game-delete-btn { color: #ff4d4f; }

.games-empty-hint {
  text-align: center;
  color: #8b8f98;
  font-size: 15px;
  padding: 60px 0;
}

/* ===================== Create Event screen ===================== */

.create-event-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #1a1a1a;
  margin-bottom: -12px;
}

.gift-field input[type="checkbox"] {
  width: 40px;
  height: 24px;
  accent-color: #2f6fed;
  cursor: pointer;
}

/* Timer field row in create-event */
.timer-field-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: -12px; /* matches .field-label */
}
.timer-field-row .field-hint {
  flex-basis: 100%;
  margin-top: -4px;
  margin-left: 2px;
}
.timer-field-label {
  font-size: 15px;
  color: #1a1a1a;
  min-width: 110px;
}
.xray-count-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e0e2e7;
  background: #f6f7f9;
  font: inherit;
  font-size: 14px;
  color: #1a1a1a;
  cursor: pointer;
}
.xray-count-select:disabled { opacity: 0.4; cursor: default; }
.timer-toggle-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.timer-toggle-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-track {
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: #d1d5db;
  transition: background .15s ease;
  position: relative;
}
.timer-toggle-label input:checked + .toggle-track { background: #2f6fed; }
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.timer-toggle-label input:checked + .toggle-track .toggle-thumb { transform: translateX(18px); }
.timer-duration-input {
  width: 72px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e0e2e7;
  background: #f0f1f4;
  font-size: 15px;
  color: #1a1a1a;
  font-family: inherit;
  text-align: center;
}
.timer-duration-input:focus { outline: 2px solid #2f6fed; outline-offset: 1px; }
.timer-field-unit {
  font-size: 15px;
  color: #6b7280;
  margin-left: -6px;
}
/* Disable duration input when timer is off */
.timer-duration-input:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.create-event-duration-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.create-event-duration-col > .field-label {
  margin-bottom: 0;
  font-size: 15px;
}
.duration-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  height: 38px;
}
.stepper-btn {
  width: 36px;
  height: 100%;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  color: #6b7280;
  line-height: 1;
  padding: 0;
  transition: background .1s;
}
.stepper-btn:hover { background: #f3f4f6; }
.stepper-value {
  min-width: 72px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  padding: 0 6px;
  user-select: none;
}

.duration-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.daily-lb-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.daily-lb-toggle-text {
  font-size: 14px;
  color: #374151;
  white-space: nowrap;
}

/* ── Leaderboard day tabs ─────────────────────────────── */
.lb-day-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.lb-day-tabs.hidden { display: none; }
.lb-day-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.03em;
}
.lb-day-label::before,
.lb-day-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d1d5db;
}
.lb-day-tabs-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lb-day-nav {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 20px;
  color: #6b7280;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background .1s;
}
.lb-day-nav:hover { background: #f3f4f6; }
.lb-day-nav:disabled { visibility: hidden; cursor: default; }
.lb-day-nav:disabled:hover { background: none; }
.lb-day-tabs-list {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.lb-day-tab {
  min-width: 32px;
  height: 32px;
  border: none;
  background: #eef0f4;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  padding: 0 6px;
  transition: background .1s, color .1s;
  font-family: inherit;
  flex-shrink: 0;
}
.lb-day-tab:hover { background: #e2e5eb; }
.lb-day-tab.active {
  background: #32363a;
  color: #fff;
}

/* ── Game countdown badge ─────────────────────────────── */
.game-countdown {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 7px 14px;
  pointer-events: none;
  user-select: none;
}
.game-countdown.hidden { display: none; }
.game-countdown-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}
.game-countdown-value {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.01em;
}
.game-countdown.expired .game-countdown-value { color: #dc2626; }
/* Inline variant for the leaderboard header (flow, not absolute) */
.game-countdown-inline {
  position: static;
  flex-direction: row;
  gap: 6px;
  padding: 6px 12px;
  align-items: center;
}
.game-countdown-inline .game-countdown-label::after { content: ':'; margin-right: 2px; }
/* Winter-holiday skin: dark background → invert badge */
[data-skin="winter-holiday"] .game-countdown {
  background: rgba(0,0,0,0.30);
  border-color: rgba(255,255,255,0.15);
}
[data-skin="winter-holiday"] .game-countdown .game-countdown-label { color: rgba(255,255,255,0.65); }
[data-skin="winter-holiday"] .game-countdown .game-countdown-value { color: #fff; }

.field-hint {
  font-size: 13px;
  font-weight: 400;
  color: #8b8f98;
}

.text-input {
  width: min(420px, 100%);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e0e2e7;
  background: #f6f7f9;
  font-size: 15px;
  color: #1a1a1a;
}
.text-input:focus { outline: 2px solid #ec4899; outline-offset: 1px; }

/* Create event: event name + skin side by side */
.create-event-top-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 0;
}
.create-event-name-col { flex: 2; min-width: 0; }
.create-event-skin-col { flex: 1; min-width: 180px; }
.create-event-top-row .field-label { margin-bottom: 4px; }

.skin-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M5 6L0 0h10z' fill='%231a1a1a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 6px;
  padding-right: 36px;
  cursor: pointer;
  font-family: inherit;
}

/* ===================== Winter Holiday Skin ===================== */

/* Base background for all play screens — use !important to beat kiosk.css ID overrides */
[data-skin="winter-holiday"] #playStartScreen,
[data-skin="winter-holiday"] .play-start-screen,
[data-skin="winter-holiday"] #playChallengeScreen,
[data-skin="winter-holiday"] .play-challenge-screen,
[data-skin="winter-holiday"] #playContactScreen,
[data-skin="winter-holiday"] .results-screen,
[data-skin="winter-holiday"] .scores-only-screen,
[data-skin="winter-holiday"] #playNotFoundScreen {
  background: linear-gradient(
    180deg,
    #0E1A87 0%,
    #0C62AD 49%,
    #FFD4A7 100%
  ) !important;
  color: #fff;
}

/* Start screen decoration layer */
[data-skin="winter-holiday"] #playStartScreen,
[data-skin="winter-holiday"] .play-start-screen {
  position: relative;
  overflow: hidden;
}

/* Layer order inside each play screen:
   z-index 0 — snow canvas        (prepended by snow.js)
   z-index 1 — shooting-stars canvas (prepended by shooting-stars.js, sits above snow)
   z-index 2 — all other content  */
[data-skin="winter-holiday"] #playStartScreen > *:not(canvas),
[data-skin="winter-holiday"] .play-start-screen > *:not(canvas),
[data-skin="winter-holiday"] #playChallengeScreen > *:not(canvas),
[data-skin="winter-holiday"] .play-challenge-screen > *:not(canvas),
[data-skin="winter-holiday"] #playContactScreen > *:not(canvas),
[data-skin="winter-holiday"] .results-screen > *:not(canvas),
[data-skin="winter-holiday"] .scores-only-screen > *:not(canvas),
[data-skin="winter-holiday"] #playNotFoundScreen > *:not(canvas) {
  position: relative;
  z-index: 2;
}
/* Footer and sparkle pseudo-elements also above both canvases */
[data-skin="winter-holiday"] #playStartScreen::after,
[data-skin="winter-holiday"] .play-start-screen::after,
[data-skin="winter-holiday"] #playStartScreen::before,
[data-skin="winter-holiday"] .play-start-screen::before {
  z-index: 2;
}

/* Snow hills + teeth footer image */
[data-skin="winter-holiday"] #playStartScreen::after,
[data-skin="winter-holiday"] .play-start-screen::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(200px, 30vw, 380px);
  background: url('assets/skins/winter-holiday/footer.png') no-repeat bottom center / 100% auto;
  pointer-events: none;
  z-index: 0;
}

/* Sparkle / star decorations (scattered across start screen) */
[data-skin="winter-holiday"] #playStartScreen::before,
[data-skin="winter-holiday"] .play-start-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0L13.5 10.5L24 12L13.5 13.5L12 24L10.5 13.5L0 12L10.5 10.5Z' fill='white' opacity='0.35'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='5' fill='white' opacity='0.3'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0L13.5 10.5L24 12L13.5 13.5L12 24L10.5 13.5L0 12L10.5 10.5Z' fill='white' opacity='0.3'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='white' opacity='0.25'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0L13.5 10.5L24 12L13.5 13.5L12 24L10.5 13.5L0 12L10.5 10.5Z' fill='white' opacity='0.2'/%3E%3C/svg%3E");
  background-size: 28px, 18px, 20px, 14px, 36px;
  background-position: 8% 18%, 85% 10%, 5% 55%, 90% 65%, 92% 30%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* Keep content above the decorations */
[data-skin="winter-holiday"] #playStartScreen > *,
[data-skin="winter-holiday"] .play-start-screen > * {
  position: relative;
  z-index: 1;
}

/* Winter Holiday SVG title image above the h1 */
[data-skin="winter-holiday"] .play-skin-title--winter-holiday {
  display: block;
  /* The December X-ray Dash wordmark is 783x139 (5.63:1) where the old Winter
     Holiday one was 610x157 (3.89:1), so it needs ~45% more width to read at
     the same height. */
  width: clamp(200px, 56vw, 556px);
  height: auto;
  margin: 0 auto 4px;
}
/* Landscape kiosk overrides for Winter Holiday skin */
@media (orientation: landscape) and (min-width: 900px) {
  /* Title: move to top (logo is hidden below), make it bigger */
  [data-skin="winter-holiday"] #playStartScreen .play-skin-title--winter-holiday {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--u) * 50);
    width: clamp(280px, 55.6vw, 672px);
    margin: 0 auto;
  }
  /* Hide Pearl logo — Winter Holiday title replaces it */
  [data-skin="winter-holiday"] #playStartScreen .play-logo {
    display: none !important;
  }
  /* Corner logo: show top-left in landscape winter-holiday */
  [data-skin="winter-holiday"] #playStartScreen .play-corner-logo {
    display: block !important;
    position: absolute;
    top: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    z-index: 10;
  }
  /* Hide the tilted x-ray background art */
  [data-skin="winter-holiday"] #playStartScreen .play-start-art {
    display: none !important;
  }
  /* kiosk.css positions every start-screen child absolutely (top:N*--u).
     The portrait "position:relative" rule overrides that and breaks the layout —
     restore absolute positioning so kiosk coordinates apply correctly. */
  [data-skin="winter-holiday"] #playStartScreen > * {
    position: absolute !important;
  }
  /* Leaderboard: kiosk sets top:694*--u; margin-top from portrait would shift it further */
  [data-skin="winter-holiday"] #playStartScreen .play-leaderboard-card {
    margin-top: 0 !important;
  }
  /* Footer: at 100% vw the 1944×648 image is vw/3 tall; 50vh shows the full teeth row */
  [data-skin="winter-holiday"] #playStartScreen::after,
  [data-skin="winter-holiday"] .play-start-screen::after {
    height: clamp(260px, 50vh, 600px);
  }
}
/* Winter Holiday: scores-only standalone page — landscape breakpoint overrides.
   The default block at line ~2639 sets #scoresOnlyScreen{background:#f1f5f9!important}
   with ID specificity (1,0,0). These rules use [data-skin] + ID = (1,1,0) to beat it. */
@media (orientation: landscape) and (min-width: 900px) {
  /* Blue-to-peach gradient overrides the default grey */
  [data-skin="winter-holiday"] #scoresOnlyScreen {
    background: linear-gradient(
      180deg,
      #0E1A87 0%,
      #0C62AD 49%,
      #FFD4A7 100%
    ) !important;
  }
  /* Hide the default metallic-tooth artwork; winter-holiday ::after footer replaces it */
  [data-skin="winter-holiday"] #scoresOnlyScreen .play-score-bg {
    display: none !important;
  }
  /* List panel: white (overrides default #ecf0f7 light-blue-grey) */
  [data-skin="winter-holiday"] #scoresOnlyScreen .play-leaderboard-list {
    background: #fff !important;
  }
  /* Row text: dark on white panel — overrides the global white !important from winter-holiday rules */
  [data-skin="winter-holiday"] #scoresOnlyScreen .play-leaderboard-name { color: #737c8c !important; }
  [data-skin="winter-holiday"] #scoresOnlyScreen .play-leaderboard-score { color: #525a6b !important; }
  /* Title row: white on pink background */
  [data-skin="winter-holiday"] #scoresOnlyScreen .scores-only-game { color: #fff !important; }
  [data-skin="winter-holiday"] #scoresOnlyScreen .scores-only-card-head .play-leaderboard-title { color: #fff !important; border-left-color: rgba(255,255,255,0.5) !important; }
  /* Play again + Export CSV CTAs: white text + white outline */
  [data-skin="winter-holiday"] #scoresOnlyScreen .scores-only-actions .scores-play-btn { color: #fff !important; border-color: #fff !important; }
  [data-skin="winter-holiday"] #scoresOnlyScreen .scores-only-actions .scores-only-export { color: #fff !important; border-color: #fff !important; }
}

.play-skin-title { display: none; }

/* Restore original logos throughout the holiday game */
[data-skin="winter-holiday"] .play-logo,
[data-skin="winter-holiday"] .play-topbar-logo {
  filter: none;
}

/* Challenge screen: pink topbar, light body */
[data-skin="winter-holiday"] #playChallengeScreen {
  background: #f1f5f9 !important;
}
[data-skin="winter-holiday"] #playChallengeScreen .play-challenge-topbar {
  background: linear-gradient(175deg, #121B80 0%, #106BAA 100%) !important;
  position: relative;
  overflow: hidden;
}
[data-skin="winter-holiday"] #playChallengeScreen .play-challenge-body,
[data-skin="winter-holiday"] #playChallengeScreen .play-side-panel {
  background: #f1f5f9 !important;
}

/* Readable text on the light side panel */
[data-skin="winter-holiday"] #playChallengeScreen .play-side-panel,
[data-skin="winter-holiday"] #playChallengeScreen .play-side-panel h2,
[data-skin="winter-holiday"] #playChallengeScreen .play-category-card,
[data-skin="winter-holiday"] #playChallengeScreen .cat-label {
  color: #32363a !important;
}
[data-skin="winter-holiday"] #playChallengeScreen .play-side-panel > p {
  color: #525a6b !important;
}
/* Light grey pathology card borders */
[data-skin="winter-holiday"] #playChallengeScreen .play-category-card {
  border-color: #d7dce3;
}
/* Readable category counts */
[data-skin="winter-holiday"] #playChallengeScreen .cat-count {
  background: #e4e9f1 !important;
  color: #32363a !important;
}
[data-skin="winter-holiday"] #playChallengeScreen .cat-count.zero {
  background: transparent !important;
  color: transparent !important;
}

/* h1 and subtitle — !important beats kiosk.css ID selectors */
[data-skin="winter-holiday"] #playStartScreen h1,
[data-skin="winter-holiday"] .play-start-screen h1 {
  color: #fff !important;
  font-weight: 700;
}
[data-skin="winter-holiday"] #playStartScreen > p,
[data-skin="winter-holiday"] .play-start-screen > p {
  color: rgba(255,255,255,0.88) !important;
  /* Longer Dec. 1-25 raffle copy: smaller than the 16px/18px default so the
     three lines still fit above the launch button. */
  font-size: 14px !important;
  line-height: 1.45;
  max-width: 560px;
}

/* Landscape kiosk: the start screen is absolutely positioned at fixed offsets
   (h1 top 281, p top 418, button top 555). The longer Dec. 1-25 headline and
   subtitle need smaller type and tighter tops to stay inside those slots.
   Placed after the portrait rules above so it wins at equal specificity. */
@media (orientation: landscape) and (min-width: 900px) {
  [data-skin="winter-holiday"] #playStartScreen h1 {
    top: calc(var(--u) * 262) !important;
    font-size: calc(var(--u) * 52) !important;
    line-height: 1.25 !important;
  }
  [data-skin="winter-holiday"] #playStartScreen > p {
    left: 26% !important;
    width: 48% !important;
    top: calc(var(--u) * 400) !important;
    font-size: calc(var(--u) * 24) !important;
    line-height: 1.45 !important;
    max-width: none;
  }
}

/* Launch button: pink-to-coral gradient pill */
[data-skin="winter-holiday"] #playStartScreen #launchChallengeBtn,
[data-skin="winter-holiday"] .play-launch-btn {
  background: linear-gradient(25deg, #B757BA 0%, #FD7272 100%) !important;
  border: 2px solid #fff !important;
  color: #fff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none !important;
}
[data-skin="winter-holiday"] #playStartScreen #launchChallengeBtn:hover,
[data-skin="winter-holiday"] .play-launch-btn:hover {
  background: linear-gradient(25deg, #c968cc 0%, #fe8585 100%) !important;
  filter: none;
}

/* Leaderboard card: frosted glass effect + snowy top */
[data-skin="winter-holiday"] #playStartScreen .play-leaderboard-card,
[data-skin="winter-holiday"] .play-leaderboard-card {
  background: rgba(255,255,255,0.14) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: visible;
  margin-top: 72px;
}

/* Snow cap image sitting on top of the leaderboard card */
[data-skin="winter-holiday"] .play-leaderboard-card::before {
  content: '';
  position: absolute;
  left: -6%;
  width: 112%;
  height: auto;
  aspect-ratio: 900 / 173;
  top: auto;
  bottom: calc(100% - 20px);
  background: url('assets/skins/winter-holiday/snow-cap.png') no-repeat center / 100% 100%;
  pointer-events: none;
  z-index: 1;
}

@media (orientation: landscape) and (min-width: 900px) {
  [data-skin="winter-holiday"] #playStartScreen .play-leaderboard-card {
    top: calc(var(--u) * 730 + 24px);
    margin-top: 0 !important;
  }

  [data-skin="winter-holiday"] #playStartScreen .play-leaderboard-card::before,
  [data-skin="winter-holiday"] #scoresOnlyScreen .play-leaderboard-card::before {
    top: 0;
    bottom: auto;
    transform: translateY(-45%);
  }
}

[data-skin="winter-holiday"] .play-leaderboard-title {
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
}
/* Scores-only screen: white header text + white play-again button */
[data-skin="winter-holiday"] #scoresOnlyScreen .scores-only-game { color: #fff; }
[data-skin="winter-holiday"] #scoresOnlyScreen .scores-only-card-head .play-leaderboard-title { color: #fff; border-left-color: rgba(255,255,255,0.5); }
[data-skin="winter-holiday"] #scoresOnlyScreen .scores-play-btn { color: #fff; border-color: #fff; }
[data-skin="winter-holiday"] #scoresOnlyScreen .scores-only-export { color: #fff !important; border-color: #fff !important; }
/* Scores-only card: rose background + pale list panel */
[data-skin="winter-holiday"] #scoresOnlyScreen .scores-only-card {
  background: #a73761 !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 12px 28px rgba(55, 10, 32, 0.22) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-skin="winter-holiday"] #scoresOnlyScreen .play-leaderboard-list {
  background: #f1f4f8 !important;
  border: 1px solid #e0e4eb;
  box-shadow: none !important;
}
/* Play start screen leaderboard: muted rose card + pale rows */
[data-skin="winter-holiday"] #playStartScreen .play-leaderboard-card {
  background: #a73761 !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 12px 28px rgba(55, 10, 32, 0.22) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-skin="winter-holiday"] #playStartScreen .play-leaderboard-title {
  color: #fff !important;
  letter-spacing: normal;
}
[data-skin="winter-holiday"] #playStartScreen .play-leaderboard-list {
  background: #f1f4f8 !important;
  border: 1px solid #e0e4eb;
  border-radius: 26px;
  box-shadow: none !important;
  overflow: hidden;
}
[data-skin="winter-holiday"] #playStartScreen .play-leaderboard-row {
  border-bottom-color: #fff !important;
}
[data-skin="winter-holiday"] #playStartScreen .play-leaderboard-rank {
  color: #32363a !important;
}
[data-skin="winter-holiday"] #playStartScreen .play-leaderboard-name {
  color: #737c8c !important;
}
[data-skin="winter-holiday"] #playStartScreen .play-leaderboard-score {
  color: #525a6b !important;
}

[data-skin="winter-holiday"] .play-leaderboard-list {
  background: transparent !important;
}
[data-skin="winter-holiday"] .play-leaderboard-name { color: #fff !important; }
[data-skin="winter-holiday"] .play-leaderboard-score { color: #fff !important; }
[data-skin="winter-holiday"] .play-leaderboard-row {
  border-bottom-color: rgba(255,255,255,0.15) !important;
}
[data-skin="winter-holiday"] .play-leaderboard-rank { color: rgba(255,255,255,0.6); }

/* score-help button */
[data-skin="winter-holiday"] .score-help-button { color: #3a3d44 !important; }

/* Modals: frosted glass over the winter background */
[data-skin="winter-holiday"] .book-demo-modal,
[data-skin="winter-holiday"] .score-help-dialog {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}
[data-skin="winter-holiday"] .book-demo-modal-inner {
  background: transparent;
}
[data-skin="winter-holiday"] .book-demo-title { color: #3a3d44; }

/* Challenge screen */
[data-skin="winter-holiday"] .play-challenge-topbar {
  background: linear-gradient(175deg, #121B80 0%, #106BAA 100%) !important;
  position: relative;
  overflow: hidden;
}
[data-skin="winter-holiday"] .play-topbar-title { color: #fff !important; }
[data-skin="winter-holiday"] .play-topbar-xray-label { color: rgba(255,255,255,0.75) !important; }
/* Topbar children above snow canvas */
[data-skin="winter-holiday"] .play-challenge-topbar > *:not(canvas) {
  position: relative;
  z-index: 1;
}
[data-skin="winter-holiday"] #nextXrayBtn {
  background: linear-gradient(25deg, #B757BA 0%, #FD7272 100%);
  border: 2px solid #fff;
  color: #fff;
}
[data-skin="winter-holiday"] #nextXrayBtn:not(:disabled):hover {
  background: linear-gradient(25deg, #c968cc 0%, #fe8585 100%);
  filter: none;
}

/* Book a Demo secondary CTA — winter-holiday skin */
[data-skin="winter-holiday"] .play-challenge-topbar #challengeBookDemoBtn {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.65);
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
[data-skin="winter-holiday"] .play-challenge-topbar #challengeBookDemoBtn:hover:not(:disabled) {
  background: rgba(255,255,255,0.12);
  filter: none;
}

/* Progress bar track */
[data-skin="winter-holiday"] .play-progress-track { background: rgba(255,255,255,0.2); }
[data-skin="winter-holiday"] .play-progress-fill { background: #fff; }

/* Category cards */
[data-skin="winter-holiday"] .play-side-panel h2 { color: #fff; }
[data-skin="winter-holiday"] .play-side-panel > p { color: rgba(255,255,255,0.8); }
[data-skin="winter-holiday"] .play-category-card {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
[data-skin="winter-holiday"] .play-category-card:hover {
  background: rgba(255,255,255,0.25);
}
[data-skin="winter-holiday"] .play-category-card.is-selected {
  background: rgba(255,255,255,0.3);
}
[data-skin="winter-holiday"] .cat-label { color: #fff !important; }
[data-skin="winter-holiday"] .cat-count {
  background: rgba(255,255,255,0.25) !important;
  color: #fff !important;
}

/* ── Score / Contact screen ──────────────────────────────── */
[data-skin="winter-holiday"] #playContactScreen {
  position: relative;
  overflow: hidden;
}
[data-skin="winter-holiday"] #playContactScreen::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: clamp(200px, 30vw, 380px);
  background: url('assets/skins/winter-holiday/footer.png') no-repeat bottom center / 100% auto;
  pointer-events: none;
  z-index: 0;
}
[data-skin="winter-holiday"] #playContactScreen .field-label,
[data-skin="winter-holiday"] #playContactScreen .text-input { color: #1a1a1a; }
[data-skin="winter-holiday"] #playContactScreen .text-input {
  background: rgba(255,255,255,0.9);
  border-color: rgba(180,120,150,0.25);
}
[data-skin="winter-holiday"] .play-score-card {
  background: rgba(255, 255, 255, 0.80) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}
[data-skin="winter-holiday"] .play-score-card h1 { color: #1a1a1a !important; }
[data-skin="winter-holiday"] .play-score-value { color: #1a1a1a !important; }
[data-skin="winter-holiday"] .play-score-prompt { color: #3a3d44 !important; }
/* Score-screen CTA: same pill as Launch Challenge on the start screen, centered.
   Covers both the native button and HubSpot's own submit input (web build). */
[data-skin="winter-holiday"] #playContactScreen #playSubmitBtn,
[data-skin="winter-holiday"] .play-hubspot-card .hs-form input[type="submit"] {
  background: linear-gradient(25deg, #B757BA 0%, #FD7272 100%) !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  padding: 13px 26px !important;
  box-shadow: none !important;
}
[data-skin="winter-holiday"] #playContactScreen #playSubmitBtn:hover,
[data-skin="winter-holiday"] .play-hubspot-card .hs-form input[type="submit"]:hover {
  background: linear-gradient(25deg, #c968cc 0%, #fe8585 100%) !important;
  filter: none;
}
/* Centering: flex card by default, grid card under 900px, HubSpot submit wrapper */
[data-skin="winter-holiday"] #playContactScreen .play-contact-card #playSubmitBtn {
  align-self: center;
  justify-self: center;
  grid-column: 1 / -1;
}
[data-skin="winter-holiday"] .play-hubspot-card .hs-form .hs-submit {
  text-align: center;
}

/* ── Results screen (leaderboard + x-ray) ──────────────────── */
[data-skin="winter-holiday"] .results-screen {
  position: relative;
  overflow-x: hidden;
}
[data-skin="winter-holiday"] .results-screen::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: clamp(200px, 30vw, 380px);
  background: url('assets/skins/winter-holiday/footer.png') no-repeat bottom center / 100% auto;
  pointer-events: none;
  z-index: 0;
}
[data-skin="winter-holiday"] .results-screen .page-title { color: #fff !important; }
[data-skin="winter-holiday"] .results-screen .results-header .score-help-button { color: rgba(255,255,255,0.8); }
/* Leaderboard panel: frosted glass card with snow cap */
[data-skin="winter-holiday"] .leaderboard-panel {
  /* Frosted glass. The fill and the blur live on ::after, not on the panel: a
     backdrop-filter here would make the panel a stacking context and lift the
     z-index:-1 character out from behind the card onto the front of it.
     z-index:0 gives us the stacking context instead - it contains the negative
     layers without starting a new backdrop root, so ::after can still blur the
     page gradient (and the character) showing through. */
  background: transparent !important;
  border: 1px solid rgba(255, 190, 215, 0.3) !important;
  box-shadow: 0 4px 32px rgba(170, 0, 80, 0.12) !important;
  overflow: visible !important;
  position: relative;
  z-index: 0;
  margin-top: 72px !important;
}
[data-skin="winter-holiday"] .leaderboard-panel::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: rgba(255, 240, 250, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
  pointer-events: none;
}
[data-skin="winter-holiday"] .leaderboard-panel::before {
  content: '';
  position: absolute;
  left: -16px; right: -16px;
  bottom: 100%;
  height: 80px;
  background: url('assets/skins/winter-holiday/snow-cap.png') no-repeat bottom center / 100% auto;
  pointer-events: none;
  z-index: 1;
}
[data-skin="winter-holiday"] .panel-header .play-leaderboard-title { color: #bf1052 !important; }
[data-skin="winter-holiday"] .expand-btn {
  background: rgba(191, 16, 82, 0.1) !important;
  color: #bf1052 !important;
}
[data-skin="winter-holiday"] #resultsLeaderboardList {
  background: rgba(255, 255, 255, 0.85) !important;
}
[data-skin="winter-holiday"] #resultsLeaderboardList .play-leaderboard-row { border-bottom-color: rgba(200, 150, 175, 0.3); }
[data-skin="winter-holiday"] #resultsLeaderboardList .play-leaderboard-rank { color: #1a1a1a !important; }
[data-skin="winter-holiday"] #resultsLeaderboardList .play-leaderboard-name { color: #5a5f68 !important; }
[data-skin="winter-holiday"] #resultsLeaderboardList .play-leaderboard-score { color: #1a1a1a !important; }
[data-skin="winter-holiday"] #resultsLeaderboardList .play-leaderboard-row.is-you {
  background: linear-gradient(90deg, rgba(220,180,230,0.7), rgba(255,170,210,0.6)) !important;
  box-shadow: 0 4px 14px rgba(217, 70, 160, 0.18);
}
/* Solution panel x-ray viewer */
[data-skin="winter-holiday"] .play-solution-stage { border-radius: 24px; }

/* Scores-only screen */
[data-skin="winter-holiday"] .scores-only-header .play-topbar-title { color: #fff !important; }
[data-skin="winter-holiday"] .scores-only-card-head { color: rgba(255,255,255,0.75); }

/* ===================== Vice City Skin ===================== */
/* Vice City skin. Set data-skin="vice-city" on body; remove it to restore the original theme.
   Background art can be supplied with --vc-art: url(...); use art without UI/text. */
body[data-skin="vice-city"] {
  --vc-ink: #350750;
  --vc-pink: #ff079f;
  --vc-cream: #fff1f7;
  --vc-line: #edcce1;
  --vc-art: url('assets/skins/vice-city/bg.webp');
  --vc-heading: Impact, "Arial Narrow", "Helvetica Neue", sans-serif;
}

[data-skin="vice-city"] :is(.play-start-screen, .play-score-screen, .results-screen, .play-challenge-screen) {
  color: var(--vc-cream);
  background-color: #54238d;
  background-image: var(--vc-art), radial-gradient(ellipse at 14% 68%, #ffbd79 0, #ff6ca0 22%, transparent 53%), linear-gradient(145deg, #37216b, #843ac0 44%, #ed35a6 80%, #482174);
  background-size: cover;
  background-position: center;
}

[data-skin="vice-city"] .play-start-screen {
  position: relative;
  height: auto;
  min-height: 100vh !important;
  overflow-y: auto;
  padding: clamp(24px, 5vw, 64px) 20px 48px !important;
}

/* Vice City logo image above the h1 */
[data-skin="vice-city"] .play-skin-title--vice-city {
  display: block;
  width: clamp(220px, 55vw, 560px);
  height: auto;
  margin: 0 auto 8px;
}

[data-skin="vice-city"] .play-start-screen h1 {
  margin: 4px auto 20px;
  max-width: 1000px;
  font-family: var(--vc-heading);
  font-size: clamp(30px, 4.5vw, 64px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.12;
  color: #fff8ff;
  text-shadow: 2px 2px 0 var(--vc-ink), -2px -2px 0 var(--vc-ink), 0 6px 0 var(--vc-ink);
}
[data-skin="vice-city"] .play-start-screen > p {
  max-width: 740px;
  color: #fff;
  font-size: clamp(17px, 1.8vw, 23px);
  text-shadow: 0 2px 8px #35075080;
}
[data-skin="vice-city"] #playStartArt { display: none; }

/* Raised arcade CTAs: hover, pressed, keyboard focus, and disabled. */
[data-skin="vice-city"] :is(.play-start-screen, .play-score-screen, .results-screen, .play-challenge-screen, .score-help-dialog) .pill-btn {
  min-height: 48px;
  border: 2px solid var(--vc-ink);
  border-radius: 999px;
  padding: 13px 28px;
  background: linear-gradient(180deg, #ff22b0, #e60086);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 2px 0 #fff3f5, 0 6px 0 var(--vc-ink);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
[data-skin="vice-city"] :is(.play-start-screen, .play-score-screen, .results-screen, .play-challenge-screen, .score-help-dialog) .pill-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
[data-skin="vice-city"] :is(.play-start-screen, .play-score-screen, .results-screen, .play-challenge-screen, .score-help-dialog) .pill-btn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: inset 0 2px 0 #fff3f5, 0 2px 0 var(--vc-ink);
}
[data-skin="vice-city"] :is(.play-start-screen, .play-score-screen, .results-screen) :is(.dark-btn, .outline-btn, .outline-dark-btn) {
  background: #58227f;
  border-color: #efb5fa;
}

/* Secondary CTA in the challenge topbar: purple fill so it reads below the
   hot-pink "Next x-ray" primary while keeping the raised arcade shape. */
[data-skin="vice-city"] .play-challenge-topbar #challengeBookDemoBtn {
  background: linear-gradient(180deg, #7b2da8, #58227f);
  color: var(--vc-cream);
  border: 2px solid #efb5fa;
  box-shadow: inset 0 2px 0 #ffffff33, 0 6px 0 var(--vc-ink);
  white-space: nowrap;
  flex-shrink: 0;
}
[data-skin="vice-city"] .play-challenge-topbar #challengeBookDemoBtn:active:not(:disabled) {
  box-shadow: inset 0 2px 0 #ffffff33, 0 2px 0 var(--vc-ink);
}
@media (max-width: 899px) {
  [data-skin="vice-city"] .play-challenge-topbar #challengeBookDemoBtn {
    padding: 10px 16px;
    font-size: 13px;
  }
}
[data-skin="vice-city"] .play-launch-btn { min-width: min(290px, 100%); font-size: 22px; margin: 4px 0 40px; }
[data-skin="vice-city"] :is(.play-start-screen, .play-score-screen, .results-screen, .play-challenge-screen, .score-help-dialog) :is(button, a, input):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px #6b1a85;
}

/* Neon frame with readable cream rows. */
[data-skin="vice-city"] :is(.play-leaderboard-card, .leaderboard-panel) {
  border: 3px solid #fff4ff;
  border-radius: 36px;
  padding: clamp(16px, 2vw, 28px);
  background: radial-gradient(ellipse at top right, #ff009f, transparent 65%), linear-gradient(120deg, #710477, #bb0089);
  box-shadow: inset 0 0 10px #ff98f0, 0 0 8px #fff, 0 0 26px #ff16b9, 0 12px 0 #35075066;
}
[data-skin="vice-city"] .play-leaderboard-card { width: min(760px, 100%); margin: 10px auto 28px; }
[data-skin="vice-city"] .play-leaderboard-card.admin-leaderboard { width: min(1100px, 100%); }
[data-skin="vice-city"] .play-leaderboard-title {
  font: italic 900 clamp(24px, 3vw, 38px)/1.15 var(--vc-heading);
  color: #fff7ff;
  letter-spacing: .01em;
  margin: 4px 0 8px;
}
[data-skin="vice-city"] :is(.play-leaderboard-list, #resultsLeaderboardList) {
  background: var(--vc-cream);
  border-radius: 24px;
  padding: 8px clamp(12px, 2vw, 28px);
  overflow: auto;
  color: var(--vc-ink);
}
[data-skin="vice-city"] .play-leaderboard-row {
  min-height: 70px;
  gap: 16px;
  border-color: var(--vc-line);
  color: var(--vc-ink);
}
[data-skin="vice-city"] :is(.play-leaderboard-name, .play-leaderboard-score, .play-leaderboard-rank, .play-leaderboard-email, .play-leaderboard-accuracy, .play-empty-leaderboard) { color: var(--vc-ink); }
[data-skin="vice-city"] .play-leaderboard-name { font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
[data-skin="vice-city"] :is(.play-leaderboard-rank, .play-leaderboard-score) {
  font-family: var(--vc-heading);
  font-style: italic;
  font-weight: 900;
  font-size: 27px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
[data-skin="vice-city"] .play-leaderboard-score small { font: 400 10px/1.5 Arial, sans-serif; }
[data-skin="vice-city"] .play-leaderboard-avatar {
  width: 40px;
  height: 40px;
  background-image: radial-gradient(circle at 28% 20%, #ffffffb3, transparent 65%) !important;
  border: 1px solid #ffffffa6;
  box-shadow: inset 0 -3px 4px #35075026, 0 2px 2px #35075026;
}
[data-skin="vice-city"] .play-leaderboard-row.is-you {
  background: #f8cce9;
  box-shadow: inset 4px 0 var(--vc-pink);
  margin: 0;
  padding-inline: 10px;
}
[data-skin="vice-city"] .play-leaderboard-card > .score-help-button,
[data-skin="vice-city"] .panel-header .score-help-button { color: #fff; }
[data-skin="vice-city"] .panel-header { flex-wrap: wrap; gap: 10px; }
[data-skin="vice-city"] .panel-header .expand-btn { background: #fff1f7; color: var(--vc-ink); }

/* Supporting screens. Radiographs and clinical category colors stay intact. */
[data-skin="vice-city"] :is(.play-score-card, .play-side-panel, .score-help-dialog) {
  background: var(--vc-cream);
  color: var(--vc-ink);
  border: 2px solid #fff;
  border-radius: 24px;
}
/* The compact layout zeroes the side panel's padding, which is fine while the
   panel is transparent — but Vice City gives it a card, so the heading would
   sit flush against the rounded edge. Matches the inverse of the kiosk desktop
   breakpoint, which supplies its own padding. */
@media (max-width: 899px), (orientation: portrait) {
  [data-skin="vice-city"] .play-challenge-body .play-side-panel {
    padding: 18px 16px;
  }
}
[data-skin="vice-city"] :is(.play-score-card h1, .play-score-prompt, .play-score-value, .play-side-panel h2, .play-side-panel > p, .play-category-hint, .play-contact-card .field-label) { color: var(--vc-ink); }
[data-skin="vice-city"] .play-contact-card { background: transparent; }
[data-skin="vice-city"] .play-contact-card .text-input { background: #fffafd; color: var(--vc-ink); border: 1px solid #b16dba; border-radius: 12px; }
[data-skin="vice-city"] .play-progress-fill { background: linear-gradient(90deg, #fe0aa2, #ffa56e); }
[data-skin="vice-city"] .play-timer-badge { background: #60358d; color: #fff; border-color: #eeb9ff; }
[data-skin="vice-city"] .results-header .page-title { color: #fff; }
[data-skin="vice-city"] .results-promo-banner { background: linear-gradient(120deg, #350750, #980877); border: 1px solid #ff9de2; }
[data-skin="vice-city"] .touch-key { background: #fffafd; border-color: #dcb8df; color: var(--vc-ink); }
[data-skin="vice-city"] .touch-key.key-action { background: #f8cce9; }
[data-skin="vice-city"] .touch-key:active { background: #f6a5da; }
[data-skin="vice-city"] .score-help-dialog::backdrop { background: #260b46bf; }
[data-skin="vice-city"] .book-demo-title { color: var(--vc-ink); }

@media (max-width: 600px) {
  [data-skin="vice-city"] .play-leaderboard-row { gap: 10px; font-size: 14px; }
  [data-skin="vice-city"] .play-leaderboard-avatar { width: 28px; height: 28px; }
  [data-skin="vice-city"] .play-leaderboard-title { font-size: 25px; }
  [data-skin="vice-city"] .results-header { flex-wrap: wrap; }
  [data-skin="vice-city"] .results-header-actions { flex-wrap: wrap; }
  [data-skin="vice-city"] .play-leaderboard-email { white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  [data-skin="vice-city"] .pill-btn { transition: none !important; }
}

/* Match ID-based rules in the base game and keep compact kiosk screens reachable. */
[data-skin="vice-city"] #nextXrayBtn {
  background: linear-gradient(180deg, #ff22b0, #e60086);
  color: #fff;
  border: 2px solid var(--vc-ink);
}
[data-skin="vice-city"] #playContactScreen .play-score-card { background: var(--vc-cream); }
[data-skin="vice-city"] #resultsLeaderboardList :is(.play-leaderboard-rank, .play-leaderboard-name, .play-leaderboard-score) { color: var(--vc-ink); }
[data-skin="vice-city"] #resultsLeaderboardList .play-leaderboard-row.is-you { background: #f8cce9; box-shadow: inset 4px 0 var(--vc-pink); }
[data-skin="vice-city"] :is(.play-score-screen, .results-screen, .play-challenge-screen) { overflow-y: auto; }
[data-skin="vice-city"] #playStartScreen { height: 100vh; }

.xray-select-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-height: 460px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #eef1f5;
  border-radius: 16px;
  padding: 24px;
}

.xr-pick-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.xr-pick-thumb {
  position: relative;
  background: #000;
  border-radius: 10px;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
  overflow: hidden;
}

.xr-pick-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
}

.xr-pick-checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  accent-color: #2f6fed;
  cursor: pointer;
}

.xr-pick-label-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  color: #1a1a1a;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
}

.xr-pick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.xr-pick-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef0f3;
  color: #3a3d44;
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
}

.xr-pick-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.xray-select-empty {
  color: #8b8f98;
  font-size: 14px;
  padding: 20px;
}

/* ===================== X-ray select header ===================== */

.xray-select-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.xray-select-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.xray-select-count {
  font-size: 13px;
  color: #6b7280;
  margin-left: auto;
}

.xray-select-all-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #d7e1eb;
  background: #fff;
  color: #3a3d44;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.xray-select-all-btn:hover { background: #f3f4f6; }

.xray-select-divider {
  width: 1px;
  height: 20px;
  background: #d7e1eb;
  flex-shrink: 0;
}

.xray-randomize-label {
  font-size: 13px;
  color: #3a3d44;
  white-space: nowrap;
}

/* ===================== X-ray filters (create event) ===================== */

.xray-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.xray-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.xray-filter-label {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}

.xray-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.xray-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #d7e1eb;
  background: #fff;
  color: #3a3d44;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.xray-filter-tab:hover { background: #f3f4f6; }
.xray-filter-tab.active {
  background: #323538;
  color: #fff;
  border-color: #323538;
}
.xray-filter-tab .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===================== Upload screen ===================== */

.upload-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.upload-back-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #24262b;
  color: #f2f2f4;
}

.scores-only-close {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #24262b;
  color: #f2f2f4;
}

.scores-only-export {
  position: fixed;
  top: 24px;
  right: 74px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Admin-only leaderboard (Player pill): wider card, unmasked columns */
.play-leaderboard-card.admin-leaderboard {
  width: min(880px, 100%);
}

.admin-leaderboard-row {
  gap: 20px;
}
.admin-leaderboard-row .play-leaderboard-name { flex: 1; }
.admin-leaderboard-row .play-leaderboard-email { flex: 1.4; }
.admin-leaderboard-row .play-leaderboard-accuracy { width: 70px; text-align: right; }
.admin-leaderboard-row .play-leaderboard-score { width: 50px; text-align: right; }

.player-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef1f5;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  font-family: inherit;
  cursor: pointer;
  justify-self: start;
  transition: background .12s ease;
}
.player-pill:hover { background: #e2e6ec; }

.drop-zone {
  width: min(560px, 90vw);
  padding: 56px 32px;
  border: 2px dashed #b9c0cc;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  color: #4a4f57;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: #ec4899;
  background: #fff5fa;
}

.drop-zone.drag-over { transform: scale(1.01); }

.drop-icon { margin-bottom: 12px; }
.drop-icon img { display: block; width: 100px; height: auto; margin: 0 auto; }

.drop-zone h1 { font-size: 22px; margin: 0 0 8px; color: #23252b; }

.drop-zone p { margin: 0; font-size: 14px; color: #767c87; }

/* ===================== Editor screen ===================== */

.editor-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: min(1740px, 96vw);
  background: #000;
  border-radius: 24px;
  padding: 20px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

/* Toolbar */

.toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.steps {
  display: flex;
  gap: 18px;
  font-size: 15px;
  color: #6b6f78;
  white-space: nowrap;
}

.step.active { color: #f2f2f4; font-weight: 600; }

.pathology-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  background: #2a2c31;
  color: #d6d7db;
  font-size: 14px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, transform .08s ease;
}

.pill:hover { background: #38393f; }

.pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill.selected {
  background: #ffffff;
  color: #1a1a1a;
  font-weight: 600;
}

.pediatric-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d6d7db;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.pediatric-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: #ec4899;
  cursor: pointer;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.save-btn {
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #f3b6d6, #f7f3f9);
  color: #2a2a2a;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .12s ease;
}
.save-btn:hover { filter: brightness(0.96); }

.close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #2a2c31;
  color: #d6d7db;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s ease;
}
.close-btn:hover { background: #3a3c42; }

/* Canvas area */

.canvas-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.canvas-stack {
  position: relative;
  max-width: 100%;
  max-height: 74vh;
  line-height: 0;
}

.canvas-stack canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-stack .base-canvas { position: static; width: auto; height: auto; max-width: 100%; max-height: 74vh; }

.canvas-stack .interaction-canvas { cursor: crosshair; }

.delete-selected-btn {
  position: absolute;
  transform: translate(-50%, -140%);
  background: #ff4d4f;
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
}

/* Status bar */

.status-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #86898f;
  font-size: 12.5px;
}

.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hint {
  flex: 1;
  text-align: center;
  opacity: .8;
}

.trash-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #ff4d4f;
  font-size: 20px;
  cursor: pointer;
  opacity: .85;
  transition: opacity .12s ease, transform .08s ease;
}
.trash-btn:hover { opacity: 1; transform: scale(1.08); }

/* ===================== Player-facing game screens ===================== */

.pill-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  filter: none !important;
}

.play-logo {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 20px;
}
.play-corner-logo { display: none; }

.play-start-screen {
  position: relative;
  min-height: 100vh;
  padding: 56px 24px 80px;
  text-align: center;
  color: #1a1a1a;
}

.play-start-screen h1 {
  font-size: 34px;
  margin: 0 0 14px;
}

.play-start-screen > p {
  max-width: 520px;
  margin: 0 auto 28px;
  color: #5a5f68;
  font-size: 16px;
  line-height: 1.5;
}

.play-launch-btn {
  font-size: 16px;
  padding: 15px 32px;
}

.play-start-art {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin: 48px 0;
  flex-wrap: wrap;
}

.play-tilt-card {
  position: relative;
  width: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 16px 30px rgba(0,0,0,.15);
  background: #000;
}
.play-tilt-card:nth-child(odd) { transform: rotate(-7deg); }
.play-tilt-card:nth-child(even) { transform: rotate(7deg); }

.play-tilt-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.play-tilt-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  opacity: .85;
}

.play-timer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #38bdf8;
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Circular countdown timer in challenge topbar */
.play-timer {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-timer-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.play-timer-track {
  fill: none;
  stroke: #e8eaf0;
  stroke-width: 3;
}
.play-timer-progress {
  fill: none;
  stroke: #2f6fed;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .9s linear, stroke .3s ease;
}
.play-timer-progress.urgent { stroke: #ef4444; }
.play-timer-label {
  position: relative;
  font-size: 11px;
  font-weight: 600;
  color: #2f6fed;
  text-align: center;
  letter-spacing: -.3px;
}
.play-timer-label.urgent { color: #ef4444; }

.play-leaderboard-card {
  width: min(640px, 100%);
  margin: 0 auto;
  background: #f6f7f9;
  border-radius: 20px;
  padding: 28px 32px;
  text-align: left;
}

.play-leaderboard-title {
  font-size: 13px;
  letter-spacing: .06em;
  color: #8b8f98;
  margin: 0 0 16px;
}

.play-leaderboard-list {
  display: flex;
  flex-direction: column;
}

.play-leaderboard-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e6e8ec;
  font-size: 16px;
  color: #1a1a1a;
}
.play-leaderboard-row:last-child { border-bottom: none; }

.play-leaderboard-rank {
  width: 20px;
  font-weight: 600;
  color: #5a5f68;
}

.play-leaderboard-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
}

.play-leaderboard-name { flex: 1; color: #3a3d44; }

.play-leaderboard-score { font-weight: 600; }

.play-leaderboard-row.is-you {
  background: #fff5fa;
  margin: 0 -16px;
  padding: 14px 16px;
  border-radius: 12px;
  border-bottom: none;
}

/* Column header above the results leaderboard. Off unless a skin opts in. */
.play-leaderboard-head { display: none; }

.play-empty-leaderboard {
  color: #8b8f98;
  font-size: 15px;
  padding: 8px 0;
}

/* Results-screen leaderboard: inset gray row container, bigger rank, no avatar dot */

#resultsLeaderboardList {
  background: #eef0f3;
  border-radius: 16px;
  padding: 4px 20px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

#resultsLeaderboardList .play-leaderboard-row {
  padding: 22px 4px;
  gap: 20px;
}

#resultsLeaderboardList .play-leaderboard-rank {
  width: 32px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

#resultsLeaderboardList .play-leaderboard-name { color: #6b7280; font-size: 16px; }
#resultsLeaderboardList .play-leaderboard-score { font-size: 17px; color: #1a1a1a; }

#resultsLeaderboardList .play-leaderboard-row.is-you {
  background: linear-gradient(90deg, #cfe0ff, #f7c9e6);
  box-shadow: 0 4px 14px rgba(217, 70, 160, .18);
  margin: 0;
  border-radius: 14px;
}

/* Challenge screen */

.play-challenge-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #eef1f5;
}

.play-challenge-topbar {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 32px;
}

.play-topbar-logo { width: 44px; height: 44px; }

.play-topbar-title { font-size: 16px; color: #1a1a1a; }

.play-topbar-xray-label {
  flex: 1;
  text-align: center;
  font-size: 16px;
  color: #1a1a1a;
}

.play-progress-track {
  height: 4px;
  background: #dfe2e8;
}

.play-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ec4899, #f3b6d6);
  transition: width .25s ease;
}

.play-challenge-body {
  flex: 1;
  display: flex;
  gap: 24px;
  padding: 24px 32px;
}

.play-xray-stage {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.play-xray-image-wrap {
  position: relative;
  width: 100%;
  max-width: 1000px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.play-xray-image-wrap img {
  width: 100%;
  display: block;
}

.play-dots-layer {
  position: absolute;
  inset: 0;
  cursor: crosshair;
}

.game-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-dot .game-dot-center {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.game-dot.marked .game-dot-center { background: currentColor; }
.game-dot.marked { border: 2px solid currentColor; background: rgba(255,255,255,.12); }

.play-side-panel {
  width: 360px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
}

/* Vertical / portrait screens: stack the pathology picker underneath the x-ray */
@media (orientation: portrait) {
  .play-challenge-body {
    flex-direction: column;
  }

  .play-xray-stage {
    width: 100%;
  }

  .play-xray-image-wrap {
    max-width: 100%;
  }

  .play-side-panel {
    width: 100%;
  }
}

.play-side-panel h2 {
  font-size: 19px;
  margin: 0 0 10px;
  color: #1a1a1a;
}

.play-side-panel > p {
  font-size: 14px;
  color: #767c87;
  line-height: 1.5;
  margin: 0 0 20px;
}

/* Book a Demo card at the foot of the pathology panel. On landscape desktop it
   replaces the secondary CTA that used to sit beside "Next x-ray" in the
   challenge topbar - see the media query below, which is also where it is
   switched on. Narrower and portrait layouts stack the panel above the x-ray,
   so they keep the topbar button (or, for winter-holiday, the card under the
   radiograph). Every skin gets it; app.js toggles .hidden on [data-demo-cta]
   from the event's Book a Demo setting. */
.panel-demo-cta {
  display: none;
  grid-template-columns: minmax(0, 1fr) 34%;
  align-items: end;
  column-gap: 4px;
  margin-top: 20px;
  border: 1px solid #e8ecf2;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 92% 8%, #dde8f8 0%, rgba(221,232,248,0) 55%),
    radial-gradient(130% 130% at 18% 85%, #fbdde2 0%, rgba(251,221,226,0) 62%),
    #fff;
  text-align: left;
}
.panel-demo-cta.hidden { display: none !important; }

.panel-demo-cta-text {
  padding: 18px 0 18px 18px;
  min-width: 0;
}

.panel-demo-cta h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  color: #24262b;
}

.panel-demo-cta p {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #5a5f68;
}

.panel-demo-cta .pill-btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(90deg, #e8609a, #9b59c8);
  border: none;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

/* The monitor bleeds past the right edge of the card, as in the design. */
.panel-demo-cta-image {
  align-self: end;
  min-width: 0;
  margin-right: -18%;
  padding-bottom: 12px;
}

.panel-demo-cta-image img {
  width: 100%;
  display: block;
}

/* Landscape desktop - the kiosk layout, where the pathology panel is the
   right-hand column and has room for the card. */
@media (orientation: landscape) and (min-width: 900px) {
  .panel-demo-cta { display: grid; }
  .play-challenge-topbar #challengeBookDemoBtn { display: none !important; }
}

.play-category-hint {
  font-size: 12px;
  letter-spacing: .06em;
  color: #8b8f98;
  margin-bottom: 12px;
  transition: color .15s ease;
}
.play-category-hint.flash { color: #ff4d4f; font-weight: 600; }

.play-category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.play-category-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid #e6e8ec;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  color: #1a1a1a;
  transition: border-color .12s ease, background .12s ease;
}
.play-category-card:hover { border-color: #c9cdd4; }
.play-category-card.selected { border-color: #2f6fed; background: #f3f7ff; }

.play-category-card .plus-icon {
  font-size: 15px;
  color: #8b8f98;
  width: 18px;
}

.play-category-card .cat-label { flex: 1; }

.play-category-card .cat-count {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.play-category-card .cat-count.zero {
  background: none;
  border: 1.5px solid #d7dae0;
  color: transparent;
}

/* Score + contact form screen */

.play-score-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #f7f3f9, #eef1f5);
  padding-bottom: 60px;
}

.play-plain-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 40px;
}

.play-score-card {
  width: min(680px, 100%);
  margin: 24px auto 0;
  text-align: center;
  background: #f9f7f9;
  border-radius: 24px;
  padding: 44px 48px;
}

.play-score-card h1 {
  font-size: 30px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.play-score-value {
  font-size: 60px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
}

.play-score-stats {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 14px;
  color: #ec4899;
  font-size: 15px;
}

.play-score-prompt {
  font-size: 20px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 40px 0 24px;
}

.play-contact-card {
  width: min(480px, 100%);
  margin: 0 auto;
  text-align: left;
}

.play-contact-card .pill-btn { margin-top: 8px; align-self: flex-start; }

.play-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #3a3d42;
  cursor: pointer;
}
/* Web build: HubSpot's form stands in for the fields above, in the same card shell. */
.play-hubspot-card {
  width: min(552px, 100%);
  margin: 0 auto;
  padding: 24px 32px 28px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 30px;
  text-align: left;
}
.play-hubspot-card .hs-form .hs-richtext { margin-bottom: 4px; }
.play-hubspot-card.hidden { display: none; }

.play-consent-label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #ec4899;
}

/* Results screen (leaderboard + solution, side by side) */

.results-screen {
  min-height: 100vh;
  background: #eef1f5;
  padding: 32px 40px 48px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.results-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.results-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.outline-btn {
  background: transparent;
  color: #f2f2f4;
  border: 1.5px solid rgba(255,255,255,.4);
}
.outline-btn:hover { background: rgba(255,255,255,.08); }

.results-body {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.results-panel { min-width: 0; }

.leaderboard-panel {
  flex: 0.85;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 32px;
  padding: 40px 44px;
  box-shadow: 0 4px 24px rgba(20, 20, 30, .05);
}

.solution-panel { flex: 1.4; }

/* Pin results screen to viewport so the leaderboard list scrolls in-panel, not the page */
#playResultsScreen {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
#playResultsScreen .results-header { flex-shrink: 0; }
#playResultsScreen .results-body { flex: 1; min-height: 0; }
#playResultsScreen .panel-header,
#playResultsScreen .lb-day-tabs { flex-shrink: 0; }
#playResultsScreen .results-promo-banner { flex-shrink: 0; }
#playResultsScreen .solution-panel { overflow-y: auto; }

.results-body.expand-leaderboard .solution-panel { display: none; }
.results-body.expand-leaderboard .leaderboard-panel { flex: 1 1 100%; }
.results-body.expand-xray .leaderboard-panel { display: none; }
.results-body.expand-xray .solution-panel { flex: 1 1 100%; }

.panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.panel-header .play-leaderboard-title {
  margin: 0;
  margin-right: auto;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .01em;
  color: #1a1a1a;
}

.expand-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.06);
  color: #3a3d44;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.expand-btn:hover { background: rgba(0,0,0,.1); }

.play-leaderboard-email,
.play-leaderboard-accuracy {
  color: #8b8f98;
  font-size: 15px;
  white-space: nowrap;
}

.play-solution-stage {
  position: relative;
  min-height: 600px;
  background: #000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.solution-stage-inner {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  line-height: 0;
}

.solution-stage-inner img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 600px;
}

.play-solution-shapes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.solution-label {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 2;
  color: #f2f2f4;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.solution-top-right {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.solution-top-right .expand-btn {
  background: rgba(255,255,255,.12);
  color: #f2f2f4;
}
.solution-top-right .expand-btn:hover { background: rgba(255,255,255,.22); }

.solution-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #1a1a1a;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.solution-nav-arrow.left { left: 20px; }
.solution-nav-arrow.right { right: 20px; }
.solution-nav-arrow:hover:not(:disabled) { background: #f2f2f4; }
.solution-nav-arrow:disabled { opacity: .35; cursor: not-allowed; }

.solution-legend-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: rgba(50,50,55,.8);
  border-radius: 999px;
  padding: 14px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  max-width: calc(100% - 40px);
}

.solution-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f2f2f4;
  font-size: 13px;
  white-space: nowrap;
}

.solution-legend-chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ai-findings-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #f2f2f4;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
}
.ai-findings-toggle:not(.active) { opacity: .55; }

.game-dot.solution {
  border: 2px dashed currentColor;
  background: transparent;
}

.results-promo-banner {
  margin-top: 32px;
  background: #24262b;
  border-radius: 24px;
  color: #f2f2f4;
  display: grid;
  grid-template-columns: 1fr 450px;
  align-items: center;
  min-height: 400px;
  overflow: hidden;
}

.promo-content {
  padding: 45px 32px 45px 48px;
  min-width: 0;
}

.results-promo-banner h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

.results-promo-banner p {
  color: #b6b9c0;
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 32px;
}

.promo-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.promo-actions .pill-btn {
  font-size: 20px;
  padding: 18px 32px;
  font-weight: 600;
}

.promo-actions .gradient-btn {
  background: linear-gradient(90deg, #e8609a, #9b59c8);
  color: #fff;
}

.promo-actions .outline-btn {
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
}

.promo-image-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding: 24px 24px 24px 0;
}

.promo-monitor-img {
  width: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 900px) {
  .results-promo-banner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .promo-content { padding: 36px 32px 24px; }
  .promo-image-wrap { justify-content: center; padding: 0 24px 32px; }
  .results-promo-banner h2 { font-size: 28px; }
  .results-promo-banner p { font-size: 16px; }
  .promo-actions .pill-btn { font-size: 15px; padding: 14px 24px; }
}
.game-dot.solution .game-dot-center { background: currentColor; }

.play-leaderboard-score small,.play-leaderboard-accuracy small{display:block;font-size:10px;font-weight:400;white-space:nowrap}
.score-help-button{border:0;background:transparent;color:#545B61;text-decoration:underline;min-height:40px;cursor:pointer}
.score-help-dialog{max-width:540px;width:calc(100% - 32px);max-height:90vh;overflow:auto;border:0;border-radius:20px;padding:24px;color:#32363A;background:#F1F5F9}
.score-help-dialog::backdrop{background:#20283066}
.score-help-dialog p{line-height:1.45;font-size:15px}
.score-help-dialog>button{float:right}

/* Condition colors mirror the markers on the radiograph. */
.condition-swatch{width:13px;height:13px;flex:none;border-radius:50%;background:var(--condition-color)}
.play-category-card{border-left:4px solid var(--condition-color);background:var(--condition-tint)}
.play-category-card.selected{border-color:var(--condition-color);background:var(--condition-tint);box-shadow:0 0 0 1px var(--condition-color)}
.play-category-card .cat-count{color:#32363A}
#nextXrayBtn{background:linear-gradient(110deg,#B2CAFF,#FFC2B5);color:#32363A;border:1px solid white}
/* Book a Demo secondary CTA — default skin */
.play-challenge-topbar #challengeBookDemoBtn{background:transparent;color:#24262b;border:1.5px solid #d7dae0;white-space:nowrap;flex-shrink:0}
.play-challenge-topbar #challengeBookDemoBtn:hover:not(:disabled){background:#f3f4f6;filter:none}

.play-challenge-topbar[hidden]{display:none}
.play-xray-stage{flex-direction:column;justify-content:flex-start;gap:12px}
.play-xray-actions{display:flex;justify-content:flex-end;width:100%}

/* Touch entry stays with the contact form, within the kiosk's reachable area. */
#playContactScreen .play-score-card{max-width:660px;width:100%;padding:16px;margin:12px auto;background:transparent}
#playContactScreen .play-score-card h1{font-size:24px;margin:0 0 4px}
#playContactScreen .play-score-value{font-size:44px!important;margin:4px!important}
#playContactScreen .play-score-stats{margin-top:6px;gap:16px}
#playContactScreen .play-score-prompt{font-size:18px!important;margin:12px 0!important}
#playContactScreen .play-contact-card{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:8px!important;width:100%;max-width:none;padding:12px!important;margin:0!important}
#playContactScreen .field-label{margin:0!important}
#playContactScreen .text-input{height:44px;min-height:44px;font-size:18px;padding:8px 12px}
#playContactScreen .text-input:focus{outline:2px solid #8faee4;outline-offset:2px}
#playContactScreen #playSubmitBtn{grid-column:2;justify-self:end;min-height:42px;margin:0;padding:8px 20px}
.touch-keyboard{display:flex;flex-direction:column;gap:6px;margin:14px auto 0;width:100%;max-width:640px;touch-action:manipulation}
.touch-key-row{display:flex;justify-content:center;gap:5px}
.touch-key{flex:1;min-width:0;max-width:60px;height:43px;border:1px solid #dbe3ed;border-radius:9px;background:white;color:#32363a;font:500 17px Recta,Arial,sans-serif;box-shadow:0 2px 6px #2636500d;touch-action:manipulation;user-select:none;padding:2px}
.touch-key:active,.touch-key.is-active{background:#d8e5ff}
.touch-key:focus-visible{outline:2px solid #7499d8;outline-offset:1px}
.touch-key.key-wide{flex:1.5;max-width:100px;font-size:13px}
.touch-key.key-space{flex:3;max-width:none;font-size:14px}
.touch-key.key-action{background:linear-gradient(110deg,#B2CAFF,#FFC2B5);font-weight:600}

#playContactError{grid-column:1 / -1;margin:0;color:#9b2637;font-size:14px}
#playContactScreen #playConsentLabel{grid-column:1 / -1;margin:8px 0 0}
#playContactScreen #playSubmitBtn{background:linear-gradient(110deg,#B2CAFF,#FFC2B5);color:#32363a}

/* ===================== User management (web mode) =====================
   Sizes follow the Figma "User listing" / "Add user" frames (designed at ~1800px wide):
   --users-* scale down smoothly on smaller screens. */

.users-scope, #usersScreen, #userFormScreen, #releaseRequestScreen {
  --users-border: #d7e1eb;
  --users-tile: #32363a;
  --users-body: #545b61;
  --users-text: clamp(15px, 1.39vw, 25px);
  --users-label: clamp(13px, 1vw, 18px);
  --users-row-text: clamp(13px, 0.85vw, 15px);
  --users-head-text: clamp(12px, 0.8vw, 14px);
}
#usersScreen, #userFormScreen { font-family: 'Recta',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif; }
#usersScreen .page-title, #userFormScreen .page-title { font-size: var(--users-text); font-weight: 400; color: #000; padding-left: 12px; }
#addUserBtn { background: var(--users-tile); padding: clamp(12px, 1.1vw, 20px) clamp(20px, 1.7vw, 30px); border-radius: 48px; font-size: var(--users-text); font-weight: 400; }

#navUsersBtn img { width: 24px; height: 27px; }

.users-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--users-border);
  border-radius: 16px;
  padding: 0 16px;
  height: clamp(44px, 3.1vw, 56px);
  margin-bottom: clamp(24px, 2.8vw, 51px);
}
.users-search img { width: 20px; height: 20px; flex-shrink: 0; }
.users-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: var(--users-label);
  color: #000;
}
.users-search input::placeholder { color: var(--users-body); }
.users-search:focus-within { outline: 2px solid #ec4899; outline-offset: 1px; }

.users-table { display: flex; flex-direction: column; gap: 10px; }

.users-row {
  display: grid;
  grid-template-columns: 1.4fr 1.5fr 1fr 0.9fr 0.6fr 70px;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(14px, 1.6vw, 28px);
}
.users-header-row { font-size: var(--users-head-text); color: #000; padding-left: 6px; }
.users-header-row .col-sort { gap: 5px; }
.users-sort img { width: 14px; height: 8px; }

#usersRows { display: flex; flex-direction: column; gap: 6px; }
.user-row {
  background: #fff;
  border-radius: 6px;
  min-height: clamp(38px, 2.4vw, 46px);
  font-size: var(--users-row-text);
  color: #000;
}
.user-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-row > span:nth-child(4) { color: var(--users-body); }
.user-row > .user-events { font-variant-numeric: tabular-nums; }

.user-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.user-icon-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.user-icon-btn img { width: 14px; height: 14px; }
.users-sort img { width: 11px; height: 6px; }
.user-icon-btn:hover { background: #f1f5f9; }

.users-empty { padding: 28px 20px; color: var(--users-body); font-size: var(--users-label); background: #fff; border-radius: 6px; }
.users-count { margin: 0; padding: 8px 0 0 25px; font-size: var(--users-head-text); line-height: 1.3; color: var(--users-body); }

.user-form-card {
  background: #fff;
  border-radius: 16px;
  padding: clamp(24px, 2.2vw, 40px);
  width: min(1040px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #000;
}
.user-form-heading { margin: 0; font-size: var(--users-text); font-weight: 400; line-height: 1.2; }
.user-form-sub { margin: 0 0 clamp(12px, 1.1vw, 20px); font-size: var(--users-label); line-height: 1.45; color: var(--users-body); }
.user-field { font-size: var(--users-label); margin-top: clamp(6px, 0.8vw, 16px); }
.user-input {
  width: 100%;
  height: clamp(46px, 3.55vw, 64px);
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid var(--users-border);
  background: #fff;
  font: inherit;
  font-size: var(--users-label);
  color: #000;
}
.user-input::placeholder { color: #7a828a; }
.user-input:focus { outline: 2px solid #ec4899; outline-offset: 1px; }
.user-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("assets/users/chevron-down.svg") no-repeat right 20px center / 20px 20px;
  padding-right: 52px;
}
.user-form-error { margin: 8px 0 0; font-size: var(--users-label); color: #d9363e; }
.user-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: clamp(14px, 1.4vw, 24px);
  padding-top: clamp(16px, 1.8vw, 32px);
  border-top: 1px solid var(--users-border);
}
.user-form-actions .pill-btn {
  height: clamp(48px, 3.8vw, 68px);
  padding: 0 clamp(20px, 1.7vw, 30px);
  border-radius: 48px;
  font-size: var(--users-text);
  font-weight: 400;
}
.user-form-actions .outline-dark-btn { background: #fff; color: var(--users-tile); border: 1px solid var(--users-border); }
.user-form-actions .dark-btn { background: var(--users-tile); border: 1px solid var(--users-tile); }

/* ===================== Login + sign out (web build) ===================== */
.sidebar-signout { }
#navReleaseNotesBtn { margin-top: auto; }

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #d6dfe7;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 630px);
  gap: 24px;
  padding: 57px 40px 57px 0;
  font-family: 'Recta',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
}
.login-art { position: relative; min-width: 0; }
.login-tooth { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.login-card {
  background: #fff;
  border-radius: 21px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 58px;
  color: #000;
  overflow-y: auto;
}
.login-form { display: flex; flex-direction: column; gap: 22px; width: min(483px, 100%); margin: 0 auto; }
.login-title { margin: 0; font-size: 40px; font-weight: 400; line-height: 1.12; text-align: center; }
.login-field { display: flex; flex-direction: column; gap: 10px; }
.login-field label { font-size: 18px; line-height: 1.12; }
.login-input {
  height: 47px;
  padding: 0 14px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #f6f7f9;
  font: inherit;
  font-size: 16px;
  color: #000;
}
.login-input:focus { outline: 2px solid #e0bfde; outline-offset: 1px; }
.login-submit {
  margin-top: 21px;
  padding: 20px 30px;
  border: 0;
  border-radius: 48px;
  background: linear-gradient(9.33deg, #e0bfde 6.4%, #f3ebdd 96.7%);
  color: #32363a;
  font: inherit;
  font-size: 25px;
  line-height: 1.12;
  cursor: pointer;
}
.login-submit:hover { filter: brightness(0.97); }
.login-link { align-self: center; margin-top: 15px; background: none; border: none; color: #000; font: inherit; font-size: 18px; line-height: 1.12; cursor: pointer; padding: 4px; }
.login-link:hover { text-decoration: underline; }
.login-message { margin: 0 0 8px; font-size: 14px; color: #d9363e; text-align: center; }
.login-message.ok { color: #545b61; }
.login-progress-bar {
  width: 220px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: #f0e8ea;
  overflow: hidden;
  position: relative;
}
.login-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f9b8c8 0%, #e8537a 50%, #f9b8c8 100%);
  background-size: 200% 100%;
  animation: login-bar-slide 1.4s ease-in-out infinite;
}
@keyframes login-bar-slide {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (max-width: 800px) {
  .login-screen { grid-template-columns: 1fr; grid-template-rows: 220px 1fr; padding: 16px; gap: 16px; }
}

.lib-publish-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  background: #e8ebf0;
  color: #32363a;
}
.lib-publish-pill.is-published { background: #d6f2e0; color: #11623a; }
.lib-publish-pill:disabled { opacity: .6; cursor: default; }

/* Games table without the Gift Sent column (External User) */
.games-table.no-gift .games-row { grid-template-columns: 1.3fr 1.1fr 1.1fr 80px 70px; }
.games-table.no-gift .games-row > :nth-child(4) { display: none; }


button,input,select,textarea{font-family:inherit}

/* Publish/Draft pill hidden for now (not in use). Remove this rule to bring it back. */
.lib-publish-pill{display:none!important}

/* X-ray library card: framed on black like Figma "X-ray card" (465x279, image inset). */
.lib-thumb{aspect-ratio:465/279;border-radius:23px;clip-path:none;background:#000}
.lib-thumb img{position:absolute;top:6.2%;bottom:6.2%;left:14%;right:14%;width:72%;height:87.6%;aspect-ratio:auto;object-fit:contain}
.lib-thumb .lib-label-pill{top:12px;left:16px;font-size:15px;padding:4px 21px;z-index:1}
.lib-thumb-actions{top:12px;right:12px;gap:7px;z-index:1}
.lib-thumb .icon-btn{width:27px;height:27px}

/* Scoreboard (standalone link / Player pill): Figma "MKT Leaderboard form" (1728px frame). Desktop landscape. */
#scoresOnlyScreen .play-score-bg{display:none}
#scoresOnlyScreen .scores-only-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px}
#scoresOnlyScreen .scores-only-header-left,#scoresOnlyScreen .scores-only-actions{display:flex;align-items:center;gap:16px}
#scoresOnlyScreen .scores-only-header .play-topbar-logo{width:56px;height:56px}
#scoresOnlyScreen .scores-only-header .play-topbar-title{font-size:20px;color:#000}
#scoresOnlyScreen .scores-only-export,#scoresOnlyScreen .scores-only-close{position:static}
#scoresOnlyScreen .scores-only-card{display:flex;flex-direction:column;max-height:calc(100dvh - 88px)}
#scoresOnlyScreen .scores-only-card-head{display:flex;align-items:center;gap:16px;margin-bottom:16px;flex-shrink:0}
#scoresOnlyScreen .lb-day-tabs{flex-shrink:0}
#scoresOnlyScreen .play-leaderboard-list{flex:1 1 auto;min-height:0;overflow-y:auto;scrollbar-gutter:stable;padding-bottom:16px}
#scoresOnlyScreen .play-leaderboard-list>*{flex-shrink:0}
#scoresOnlyScreen .scores-only-card-head .score-help-button{margin-left:auto}
#scoresOnlyScreen .scores-only-game{font-size:22px;color:#32363a}
#scoresOnlyScreen .scores-only-card-head .play-leaderboard-title{margin:0}
@media (orientation:landscape) and (min-width:900px){
  #scoresOnlyScreen{--u:clamp(.5px,.05787vw,1px);position:relative;display:block;height:100dvh;overflow:hidden;padding:0!important;text-align:left;background:#f1f5f9!important;font-family:inherit;min-height:0}
  #scoresOnlyScreen.hidden{display:none}
  #scoresOnlyScreen>*:not(.play-score-bg){position:relative;z-index:1}
  #scoresOnlyScreen .play-score-bg{display:block;position:absolute;inset:0;overflow:hidden;pointer-events:none}
  #scoresOnlyScreen .scores-only-header{height:calc(var(--u)*138);padding:0 calc(var(--u)*100) 0 calc(var(--u)*66);align-items:center}
  #scoresOnlyScreen .scores-only-header-left{gap:calc(var(--u)*28)}
  #scoresOnlyScreen .scores-only-header .play-topbar-logo{width:calc(var(--u)*92);height:calc(var(--u)*92);display:block}
  #scoresOnlyScreen .scores-only-header .play-topbar-title{font-size:calc(var(--u)*25);font-weight:400}
  #scoresOnlyScreen .scores-only-actions{gap:calc(var(--u)*19)}
  #scoresOnlyScreen .scores-only-actions .pill-btn{min-height:0;padding:calc(var(--u)*20) calc(var(--u)*30);font-size:max(14px,calc(var(--u)*18));line-height:1.12;font-weight:400;border-radius:48px;color:#32363a;text-decoration:none}
  #scoresOnlyScreen .scores-only-actions .outline-dark-btn{background:transparent;border:1px solid #000}
  #scoresOnlyScreen .scores-only-actions .gradient-btn{background:linear-gradient(66deg,#e0bfde 6%,#f3ebdd 97%);border:0}
  #scoresOnlyScreen .scores-only-card{position:absolute;left:24.31%;top:calc(var(--u)*195);width:calc(var(--u)*853);height:calc(var(--u)*821);margin:0;padding:calc(var(--u)*134) calc(var(--u)*28) calc(var(--u)*30);box-sizing:border-box;background:rgba(255,255,255,.5);border:2px solid #fff;border-radius:30px;box-shadow:0 4px 10px 12px #edeff5;display:flex;flex-direction:column;max-height:none}
  #scoresOnlyScreen .scores-only-card-head{position:absolute;left:calc(var(--u)*36);right:calc(var(--u)*36);top:calc(var(--u)*30);height:calc(var(--u)*63);margin:0;gap:calc(var(--u)*22)}
  #scoresOnlyScreen .scores-only-game{font-size:calc(var(--u)*30);font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45%}
  #scoresOnlyScreen .scores-only-card-head .play-leaderboard-title{position:static;font-size:calc(var(--u)*30);font-weight:700;color:#32363a;border-left:1px solid #32363a;padding-left:calc(var(--u)*22);line-height:1;white-space:nowrap}
  #scoresOnlyScreen .scores-only-card-head .score-help-button{font-size:calc(var(--u)*18)}
  #scoresOnlyScreen .play-leaderboard-list{flex:1 1 auto;min-height:0;box-sizing:border-box;padding:0;overflow-y:auto;background:#ecf0f7;border:1px solid #edeff5;border-radius:20px;box-shadow:0 4px 4px #edeff5;scrollbar-gutter:stable}
  #scoresOnlyScreen .play-leaderboard-row{height:calc(var(--u)*97);padding:0 calc(var(--u)*44) 0 calc(var(--u)*50);gap:calc(var(--u)*40);align-items:center;border-bottom:0;font-family:inherit}
  #scoresOnlyScreen .play-leaderboard-row.is-you{height:calc(var(--u)*100);border:1px solid #fff;border-radius:20px;background:linear-gradient(90deg,#dfefff,#ffc5f0);box-shadow:0 4px 4px #edeff5}
  #scoresOnlyScreen .play-leaderboard-avatar{display:none}
  #scoresOnlyScreen .play-empty-leaderboard{padding:calc(var(--u)*40) calc(var(--u)*50);font-size:calc(var(--u)*23);font-weight:700;color:#737c8c}
  #scoresOnlyScreen .play-leaderboard-rank{width:calc(var(--u)*80);font-size:calc(var(--u)*40);font-weight:500;color:#32363a}
  #scoresOnlyScreen .play-leaderboard-name{flex:1;min-width:0;font-size:calc(var(--u)*23);font-weight:700;color:#737c8c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-spacing:.25em}
  #scoresOnlyScreen .play-leaderboard-score{font-size:calc(var(--u)*23);font-weight:700;color:#525a6b;text-align:right}
  #scoresOnlyScreen .play-leaderboard-score small{display:none}
  #scoresOnlyScreen .scores-only-card.admin-leaderboard{width:calc(var(--u)*1100);left:calc(50% - var(--u)*550)}
  #scoresOnlyScreen .admin-leaderboard-row{gap:calc(var(--u)*24)}
  #scoresOnlyScreen .admin-leaderboard-row .play-leaderboard-email{font-size:calc(var(--u)*23);font-weight:700;color:#737c8c}
  #scoresOnlyScreen .admin-leaderboard-row .play-leaderboard-accuracy{font-size:calc(var(--u)*23);font-weight:700;color:#737c8c;width:calc(var(--u)*110)}
  #scoresOnlyScreen .admin-leaderboard-row .play-leaderboard-accuracy small{display:none}
  #scoresOnlyScreen .admin-leaderboard-row .play-leaderboard-score{width:calc(var(--u)*70)}
  #scoresOnlyScreen .play-score-bg .psb-item{position:absolute}
  #scoresOnlyScreen .play-score-bg .psb-item img{position:absolute;max-width:none;display:block}
  #scoresOnlyScreen .play-score-bg .psb-ellipse{position:absolute;max-width:none;left:calc(var(--u)*-166.7);top:calc(var(--u)*881.3);width:calc(var(--u)*2061);height:calc(var(--u)*439.4)}
}

/* ===================== Release Notes ===================== */

.rn-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.rn-tab {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid #d7e1eb;
  background: #fff;
  color: #3a3d44;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.rn-tab:hover { background: #f3f4f6; }
.rn-tab.active {
  background: #323538;
  color: #fff;
  border-color: #323538;
}

.rn-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rn-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #d7e1eb;
  padding: 24px 28px;
}

.rn-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rn-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rn-version {
  font-size: 17px;
  font-weight: 500;
  color: #1a1a1a;
}

.rn-date {
  font-size: 14px;
  color: #7a828a;
}

.rn-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.rn-badge--released {
  background: #e0f7e8;
  color: #15883f;
}

.rn-badge--upcoming {
  background: #fff1c7;
  color: #b8800a;
}

.rn-features {
  margin: 0;
  padding: 0 0 0 20px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #3a3d44;
  font-size: 14px;
  line-height: 1.5;
}

.rn-feature--requested {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin-left: -20px;
}

.rn-requested-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: #eef1f5;
  color: #525a6b;
  white-space: nowrap;
}

/* Request feature form */
.rn-textarea {
  height: 128px;
  padding: 14px 20px;
  resize: vertical;
  min-height: 80px;
}

/* User-submitted requests section */
.rn-user-requests {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.rn-badge--request {
  background: #eef1f5;
  color: #525a6b;
}

.rn-request-meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.rn-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #eef1f5;
  color: #525a6b;
}

/* Row holding date + action buttons inside a request card */
.rn-card-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.rn-card-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.rn-action-btn {
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #d7e1eb;
  background: #fff;
  color: #525a6b;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.rn-action-btn:hover { background: #f0f3f7; }
.rn-action-btn--delete { color: #c0392b; border-color: #f5c6c2; }
.rn-action-btn--delete:hover { background: #fdf0ef; }

/* ===================== Book a Demo modal ===================== */
.book-demo-modal {
  border: 0;
  border-radius: 24px;
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.book-demo-modal::backdrop {
  background: rgba(32,40,48,.55);
}
.book-demo-modal-inner {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.book-demo-title {
  margin: 0;
  padding-right: 24px; /* keep clear of the close button */
  font-size: 20px;
  font-weight: 500;
  color: #1a1a1a;
  text-align: center;
}
.book-demo-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f3f6;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .12s;
}
.book-demo-close:hover { background: #e2e5ea; }

/* HubSpot form overrides to match app style */
:is(.book-demo-modal, .play-hubspot-card) .hs-form fieldset { max-width: none !important; }
:is(.book-demo-modal, .play-hubspot-card) .hs-form .hs-form-field { margin-bottom: 16px; }
:is(.book-demo-modal, .play-hubspot-card) .hs-form label { display: block; font-size: 15px; color: #1a1a1a; margin-bottom: 6px; }
:is(.book-demo-modal, .play-hubspot-card) .hs-form input[type="text"],
:is(.book-demo-modal, .play-hubspot-card) .hs-form input[type="email"],
:is(.book-demo-modal, .play-hubspot-card) .hs-form input[type="tel"],
:is(.book-demo-modal, .play-hubspot-card) .hs-form select,
:is(.book-demo-modal, .play-hubspot-card) .hs-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e0e2e7;
  background: #f6f7f9;
  font-size: 15px;
  color: #1a1a1a;
  font-family: inherit;
  box-sizing: border-box;
}
:is(.book-demo-modal, .play-hubspot-card) .hs-form input:focus,
:is(.book-demo-modal, .play-hubspot-card) .hs-form select:focus,
:is(.book-demo-modal, .play-hubspot-card) .hs-form textarea:focus {
  outline: 2px solid #ec4899;
  outline-offset: 1px;
}
:is(.book-demo-modal, .play-hubspot-card) .hs-form .hs-error-msgs { list-style: none; padding: 0; margin: 4px 0 0; }
:is(.book-demo-modal, .play-hubspot-card) .hs-form .hs-error-msgs li { font-size: 13px; color: #d9363e; }
:is(.book-demo-modal, .play-hubspot-card) .hs-form .hs-submit { margin-top: 8px; }
:is(.book-demo-modal, .play-hubspot-card) .hs-form input[type="submit"] {
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, #f3b6d6, #f7f3f9);
  color: #2a2a2a;
  font-family: inherit;
  transition: filter .12s ease;
}
:is(.book-demo-modal, .play-hubspot-card) .hs-form input[type="submit"]:hover { filter: brightness(0.96); }
:is(.book-demo-modal, .play-hubspot-card) .submitted-message { font-size: 15px; color: #1a1a1a; text-align: center; padding: 24px 0; }

/* HubSpot checkbox groups: kill the default bullet list and make the boxes touch-sized. */
:is(.book-demo-modal, .play-hubspot-card) .hs-form ul.inputs-list { list-style: none; padding: 0; margin: 0; }
:is(.book-demo-modal, .play-hubspot-card) .hs-form ul.inputs-list > li { display: block; margin: 0 0 10px; }
:is(.book-demo-modal, .play-hubspot-card) .hs-form .hs-form-booleancheckbox-display,
:is(.book-demo-modal, .play-hubspot-card) .hs-form .hs-form-checkbox-display {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #3a3d42;
}
:is(.book-demo-modal, .play-hubspot-card) .hs-form .hs-form-booleancheckbox-display > input[type="checkbox"],
:is(.book-demo-modal, .play-hubspot-card) .hs-form .hs-form-checkbox-display > input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #ec4899;
}
/* Error text sits inside a <label>, which the label rule above would paint dark. */
:is(.book-demo-modal, .play-hubspot-card) .hs-form .hs-error-msgs li label,
:is(.book-demo-modal, .play-hubspot-card) .hs-form label.hs-error-msg {
  display: inline;
  font-size: 13px;
  color: #d9363e;
  margin: 0;
}
/* Consent and legal copy under the checkboxes. */
:is(.book-demo-modal, .play-hubspot-card) .hs-form .legal-consent-container,
:is(.book-demo-modal, .play-hubspot-card) .hs-form .hs-richtext { font-size: 13px; line-height: 1.5; color: #5b5f66; }
:is(.book-demo-modal, .play-hubspot-card) .hs-form .hs-richtext p { margin: 0 0 8px; }
:is(.book-demo-modal, .play-hubspot-card) .hs-form .hs-richtext a { color: #c2368a; }

/* ===== PLAY: NOT FOUND ===== */
.play-not-found {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  overflow: hidden;
  z-index: 10;
}
.play-nf-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}
.play-nf-logo {
  width: clamp(80px, 12vw, 136px);
  height: clamp(80px, 12vw, 136px);
  display: block;
  margin: 0 auto 24px;
}
.play-nf-content h1 {
  font-size: clamp(28px, 5vw, 60px);
  font-weight: 700;
  color: #32363a;
  margin: 0 0 16px;
  line-height: 1.2;
}
.play-nf-content p {
  font-size: clamp(14px, 2vw, 20px);
  color: #798794;
  max-width: 480px;
  line-height: 1.5;
  margin: 0 0 36px;
}
.play-nf-btn {
  background: linear-gradient(9.93deg, rgb(183, 87, 186) 15.9%, rgb(253, 114, 114) 103.6%);
  color: white;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 66px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 4px rgba(202,209,209,0.6);
  transition: filter .15s, transform .1s;
  white-space: nowrap;
}
.play-nf-btn:hover { filter: brightness(1.08); }
.play-nf-btn:active { filter: brightness(0.94); transform: translateY(1px); }
.play-nf-xrays {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.play-nf-xray-left,
.play-nf-xray-right {
  position: absolute;
  bottom: -8%;
  width: clamp(220px, 36vw, 520px);
  object-fit: cover;
}
.play-nf-xray-left {
  left: -4%;
  transform: rotate(2.64deg);
  transform-origin: bottom left;
}
.play-nf-xray-right {
  right: -3%;
  transform: rotate(-7.7deg);
  transform-origin: bottom right;
}
@media (max-width: 480px) {
  .play-nf-xray-left,
  .play-nf-xray-right { width: clamp(130px, 48vw, 240px); }
}

/* Footer image: aspect-ratio 3/1, covers start/contact/results screens */
[data-skin="winter-holiday"] #playStartScreen::after,
[data-skin="winter-holiday"] #playContactScreen::after,
[data-skin="winter-holiday"] #playResultsScreen::after {
  width: 100%;
  height: auto !important;
  aspect-ratio: 3 / 1;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: contain !important;
  background-position: bottom center;
  background-repeat: no-repeat;
}

/* Snow-cap: apply correct overlap at all viewport sizes (not just landscape) */
[data-skin="winter-holiday"] #playStartScreen .play-leaderboard-card {
  overflow: visible;
}
[data-skin="winter-holiday"] #playStartScreen .play-leaderboard-card::before {
  left: -6%;
  width: 112%;
  height: auto !important;
  aspect-ratio: 900 / 173;
  top: 0;
  bottom: auto;
  transform: translateY(-45%);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

/* Launch Challenge CTA: pink-to-coral gradient pill with white border */
[data-skin="winter-holiday"] #playStartScreen #launchChallengeBtn {
  background: linear-gradient(25deg, #B757BA 0%, #FD7272 100%) !important;
  border: 2px solid #fff !important;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 400;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-skin="winter-holiday"] #playStartScreen #launchChallengeBtn:hover {
  background: linear-gradient(25deg, #c968cc 0%, #fe8585 100%) !important;
  filter: none;
}

/* Results screen: Play again button — hidden for the winter holiday and vice city skins */
[data-skin="winter-holiday"] #playResultsScreen #playAgainBtn,
[data-skin="vice-city"] #playResultsScreen #playAgainBtn {
  display: none !important;
}

/* Results screen: Book a Demo — matches Launch Challenge gradient + size */
[data-skin="winter-holiday"] #resultsBookDemoBtn {
  background: linear-gradient(25deg, #B757BA 0%, #FD7272 100%) !important;
  border: 2px solid #fff !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 13px 26px !important;
  border-radius: 999px !important;
}
[data-skin="winter-holiday"] #resultsBookDemoBtn:hover {
  background: linear-gradient(25deg, #c968cc 0%, #fe8585 100%) !important;
  filter: none;
}

/* Results screen: fix snow-cap crop on leaderboard panel */
[data-skin="winter-holiday"] #playResultsScreen .leaderboard-panel {
  position: relative;
  overflow: visible !important;
}
[data-skin="winter-holiday"] #playResultsScreen .leaderboard-panel::before {
  left: -6%;
  right: auto;
  width: 112%;
  height: auto !important;
  aspect-ratio: 900 / 173;
  top: 0;
  bottom: auto;
  transform: translateY(-45%);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

[data-skin="winter-holiday"] .lb-day-label {
  color: #fff;
}
[data-skin="winter-holiday"] .lb-day-label::before,
[data-skin="winter-holiday"] .lb-day-label::after {
  background: rgba(255, 255, 255, 0.4);
}

[data-skin="winter-holiday"] .lb-day-nav {
  color: #fff;
}
[data-skin="winter-holiday"] .lb-day-nav:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* The results screen puts the day tabs on the pale frosted leaderboard panel
   rather than straight on the blue gradient, so the white treatment above
   turns into a smudge there. Darken the label, its rules, the arrows and the
   Scoring link for that panel only — the start and scoreboard screens keep
   white on their deep maroon cards. */
[data-skin="winter-holiday"] #playResultsScreen .lb-day-label {
  color: #525a6b;
}
[data-skin="winter-holiday"] #playResultsScreen .lb-day-label::before,
[data-skin="winter-holiday"] #playResultsScreen .lb-day-label::after {
  background: rgba(82, 90, 107, 0.38);
}
[data-skin="winter-holiday"] #playResultsScreen .lb-day-nav {
  color: #525a6b;
}
[data-skin="winter-holiday"] #playResultsScreen .lb-day-nav:hover {
  background: rgba(82, 90, 107, 0.12);
}
[data-skin="winter-holiday"] #playResultsScreen .leaderboard-panel .score-help-button {
  color: #525a6b !important;
}

[data-skin="winter-holiday"] .score-help-button {
  color: #fff !important;
}

/* ── Winter Holiday music mute button ───────────────────── */
.winter-mute-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .1s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
/* display:flex above is an author style, so it would beat the UA [hidden] rule and
   keep the button on screen everywhere; the script hides it off the start screen. */
.winter-mute-btn[hidden] { display: none; }
.winter-mute-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}
.winter-mute-btn svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.winter-mute-btn.is-muted {
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.6);
}

/* Full-bleed grey mat: 100vw cancels the varying .results-screen side padding
   (kiosk landscape uses calc(var(--u)*n)), and the oversized bottom padding with
   matching negative margin lets the grey run past the parent's bottom padding,
   where the screen's own overflow clips it. */
[data-skin="winter-holiday"] .results-promo-wrap {
  position: relative;
  z-index: 1;
  width: 100vw;
  margin-top: 40px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: -320px;
  padding: 56px clamp(24px, 4vw, 64px) 320px;
  background: #D9DDED;
}
[data-skin="winter-holiday"] .results-promo-banner {
  background: #32363A !important;
  color: #fff;
  margin-top: 0;
}
[data-skin="winter-holiday"] .results-promo-banner h2 {
  color: #fff;
}
[data-skin="winter-holiday"] .results-promo-banner p {
  color: rgba(255, 255, 255, 0.75);
}
[data-skin="winter-holiday"] .results-promo-banner .outline-btn {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* Landscape desktop: kiosk.css re-shows the promo banner (display:grid!important),
   which re-collapses results-body to ~200px in flex layout. Force block+scroll
   the same way Vice City does it (body[data-skin] #id has specificity 1,1,1). */
@media (orientation:landscape) and (min-width:900px) {
  /* :not(.hidden) is required — without it the forced display beats the
     .hidden{display:none} that showPlayScreen() uses, so the results screen
     stays on top of the leaderboard-only screen. */
  body[data-skin="winter-holiday"] #playResultsScreen:not(.hidden) {
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  body[data-skin="winter-holiday"] #playResultsScreen .results-body {
    height: var(--rh) !important;
    min-height: 520px !important;
  }
}

/* Winter Holiday: raffle CTA in results header (sugar bug + text next to Book a demo) */
.wh-raffle-cta {
  display: none;
}
[data-skin="winter-holiday"] .wh-raffle-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Character peeks out from behind the top of the leaderboard panel: z-index:-2 puts
   it under the panel's frosted ::after fill (z-index:-1), so only the part that
   clears the top edge of the card is visible. */
.wh-raffle-bug {
  display: none;
}
[data-skin="winter-holiday"] #playResultsScreen .wh-raffle-bug {
  display: block;
  position: absolute;
  right: 36px;
  bottom: calc(100% - 34px);
  width: 150px;
  height: auto;
  object-fit: contain;
  z-index: -2;
  pointer-events: none;
}
.wh-raffle-text {
  color: #fff;
  text-align: left;
  line-height: 1.3;
}
.wh-raffle-text strong {
  font-weight: 700;
}
.wh-raffle-text span {
  font-size: 20px;
  /* The sentence is long enough that it needs a second line below roughly
     1100px. Wrapping it - and keeping the pill beside it from shrinking - is
     what stops the flex row squeezing "Book a demo" into a two-line button.
     Above that width there is room, so it still sits on one line. */
  white-space: normal;
}
[data-skin="winter-holiday"] #playResultsScreen #resultsBookDemoBtn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Winter Holiday-offers: official-rules chip in the leaderboard header ───
   A shortcut to the rules on the campaign page. Off for every other skin,
   the offer-free Winter Holiday included - that one has no prizes to explain. */
.wh-faq-chip {
  display: none;
}
body[data-skin="winter-holiday"]:not([data-skin-offers="off"]) #leaderboardPanel .wh-faq-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
  /* Sits on its own line under the title - see the break element below. */
  order: 1;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(191, 16, 82, 0.18);
  box-shadow: 0 1px 3px rgba(170, 0, 80, 0.12);
  color: #15171a;
  text-decoration: none;
  line-height: 0;
}
body[data-skin="winter-holiday"]:not([data-skin-offers="off"]) #leaderboardPanel .wh-faq-chip:hover,
body[data-skin="winter-holiday"]:not([data-skin-offers="off"]) #leaderboardPanel .wh-faq-chip:focus-visible {
  border-color: rgba(191, 16, 82, 0.5);
}
/* "See Official Rules" is a ~130px label, and the card header is 270px wide at
   1024 and narrower still on a phone - beside the title it needs 310px, and
   shrinking the title to fit would land it near 13px, smaller than the chip's
   own text. So the chip takes a line of its own: this zero-height item is a
   full row, which pushes the chip (same order, next in the markup) below the
   title while the title, "Scoring" and the expand button keep the first row.
   The title then keeps the size the design gives it at every width. */
.wh-faq-chip-break {
  display: none;
}
body[data-skin="winter-holiday"]:not([data-skin-offers="off"]) #leaderboardPanel .panel-header {
  flex-wrap: wrap;
  row-gap: 9px;
}
body[data-skin="winter-holiday"]:not([data-skin-offers="off"]) #leaderboardPanel .wh-faq-chip-break {
  display: block;
  order: 1;
  flex: 0 0 100%;
  height: 0;
}
.wh-faq-chip-gift {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}
/* The chip reads as a label, not an icon, so the pill carries line-height: 0
   for the gift and the text sets its own. nowrap keeps "See Official Rules" on
   one line - the pill is sized by the header rules below, not by wrapping. */
.wh-faq-chip-text {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
@media (orientation: landscape) and (min-width: 900px) {
  /* The sugar bug peeks up out of the leaderboard card and crosses the header
     band. The header's right-hand block is pinned to the right edge, so as the
     window narrows the sentence grew leftwards and slid in behind the
     character. Cap it to the space left over beside the card and let it take
     two lines; the type shrinks a little with the viewport so two lines are
     always enough.

     The card's own geometry is in kiosk.css, in the same --u units this media
     query defines on .results-screen: the screen pads 62u on the left, the
     results body another 46u, and the card itself is max(300px, 527u) wide.
     The character hangs 36px inside the card's right edge, and the header's
     right edge is 49u in from the viewport. Allowing 24u for the header's own
     gap, ~137px for "Book a demo" and 14px of air beside the character leaves
     the width below. */
  body[data-skin="winter-holiday"]:not([data-skin-offers="off"]) #playResultsScreen .wh-raffle-cta {
    max-width: calc(100vw - var(--u) * 181 - max(300px, var(--u) * 527) - 115px);
  }
  body[data-skin="winter-holiday"]:not([data-skin-offers="off"]) #playResultsScreen .wh-raffle-text span {
    font-size: clamp(15px, 1.4vw, 20px);
  }

  [data-skin="winter-holiday"] #playResultsScreen .wh-raffle-bug {
    /* Anchor to the left of the card instead of 36px inside its right edge. In
       the default view this lands on the same pixels, but expanding the
       leaderboard stretches the card across the screen - and with the old
       right-edge anchor the character travelled with it, ending up under the
       header sentence and the Book a demo button. Pinned on the left it stays
       where the design puts it in both states.

       The width shrinks where the header is too crowded for the full 150px.
       "Your results" ends about 215px in whatever the window size, the sentence
       starts at 108u + card width - 22px, and 8px of air either side leaves the
       width below - which is the full 150px again from roughly 1100px up. */
    --wh-bug-w: min(150px, calc(var(--u) * 108 + max(300px, var(--u) * 527) - 259px));
    right: auto;
    left: calc(max(300px, var(--u) * 527) - 36px - var(--wh-bug-w));
    width: var(--wh-bug-w);
  }

  /* The card's snow cap is a ::before at z-index 1, so it paints over the
     header, which is static. Narrow, the snow sits clear of the title; stretched
     across an expanded leaderboard it dips far enough to swallow the first
     letters. Lift the header over the cap - the title, the rules chip and the
     expand button all ride along. */
  [data-skin="winter-holiday"] #playResultsScreen #leaderboardPanel .panel-header {
    position: relative;
    z-index: 2;
  }

  /* A kiosk screen is read from a step back, so the label scales up with the
     viewport - its own row leaves far more width than the pill needs. */
  body[data-skin="winter-holiday"]:not([data-skin-offers="off"]) #leaderboardPanel .wh-faq-chip {
    gap: 6px;
    padding: 5px 11px;
  }
  body[data-skin="winter-holiday"]:not([data-skin-offers="off"]) #leaderboardPanel .wh-faq-chip-text {
    font-size: clamp(13px, 1.15vw, 16px);
  }
  body[data-skin="winter-holiday"]:not([data-skin-offers="off"]) #leaderboardPanel .wh-faq-chip-gift {
    width: clamp(20px, 1.7vw, 24px);
    height: clamp(20px, 1.7vw, 24px);
  }
}

/* Winter Holiday: sugar-bug iframe on the score/contact screen */
.wh-sugar-bug {
  display: none;
  position: fixed;
  left: 0;
  bottom: 0;
  width: clamp(168px, 29vw, 364px);
  height: clamp(210px, 38vw, 462px);
  border: none;
  pointer-events: none;
  z-index: 999;
}
/* Show only on screens wide enough to show both bug and card, when active.
   900px matches the kiosk landscape breakpoint in kiosk.css. */
@media (min-width: 900px) {
  [data-skin="winter-holiday"] .wh-sugar-bug.is-visible {
    display: block;
  }
  [data-skin="winter-holiday"] #playContactScreen .play-score-card {
    margin-left: auto;
    margin-right: 8%;
  }
}

/* ── "Winter Holiday" without the offers ─────────────────────────────
   applyGameSkin gives the winter-holiday-plain skin the same data-skin as
   Winter Holiday, so every rule above still applies, and adds
   data-skin-offers="off" for the few places that name a prize: the raffle
   line in the results header and the raffle nudge under the score form on
   phones. The sugar bug in the score screen corner is dropped by the
   sync in index.html, which is what leaves the card room to re-centre. */
body[data-skin-offers="off"] .wh-raffle-cta,
body[data-skin-offers="off"] .wh-score-raffle {
  display: none !important;
}
@media (min-width: 900px) {
  body[data-skin-offers="off"] #playContactScreen .play-score-card {
    margin-right: auto !important;
  }
}

/* ===================================================================
   Winter Holiday — mobile / narrow screens (phones)
   Everything here sits below the kiosk landscape breakpoint
   ((orientation: landscape) and (min-width: 900px)), so the trade-show
   kiosk layout is untouched.
   =================================================================== */

/* Shared "Book a demo" card. Wide layouts keep .results-promo-banner, so this
   stays hidden until the mobile block below opts it in. */
.mobile-demo-cta { display: none; }
.mobile-demo-cta.hidden { display: none !important; }
/* Winter Holiday wordmark in the results header — mobile only. */
.results-skin-title { display: none; }
/* Raffle nudge under the score form — mobile only. */
.wh-score-raffle { display: none; }

@media (max-width: 899px) {

  /* ---------- Let the page scroll ----------
     kiosk.css pins html/body and every play screen to the viewport with
     overflow:hidden for the trade-show computer. The mobile layouts are taller
     than a phone, so the document has to scroll instead. */
  html:has(body[data-skin="winter-holiday"]),
  body[data-skin="winter-holiday"] {
    height: auto !important;
    min-height: 100%;
    overflow: visible !important;
  }

  /* ---------- Shared: Book a demo card ---------- */
  [data-skin="winter-holiday"] .mobile-demo-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30%;
    align-items: end;
    column-gap: 4px;
    margin: 20px 0 0;
    border-radius: 24px;
    overflow: hidden;
    background:
      radial-gradient(120% 120% at 100% 0%, #fbe4ef 0%, rgba(251,228,239,0) 60%),
      #fff;
    box-shadow: 0 10px 30px rgba(20, 20, 30, .12);
    text-align: left;
  }
  [data-skin="winter-holiday"] .mobile-demo-cta-text {
    padding: 24px 0 24px 24px;
    min-width: 0;
  }
  [data-skin="winter-holiday"] .mobile-demo-cta h2 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
    color: #24262b !important;
  }
  [data-skin="winter-holiday"] .mobile-demo-cta p {
    margin: 0 0 20px;
    font-size: 14px !important;
    line-height: 1.45;
    color: #5a5f68 !important;
    max-width: none;
  }
  [data-skin="winter-holiday"] .mobile-demo-cta .pill-btn {
    display: inline-block;
    background: linear-gradient(90deg, #e8609a, #9b59c8) !important;
    border: none !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 26px;
    text-decoration: none;
    white-space: nowrap;
  }
  [data-skin="winter-holiday"] .mobile-demo-cta-image {
    align-self: end;
    min-width: 0;
    /* The monitor bleeds past the right edge, as in the design. */
    margin-right: -16%;
    padding-bottom: 18px;
  }
  [data-skin="winter-holiday"] .mobile-demo-cta-image img {
    width: 100%;
    display: block;
  }

  /* ---------- Start screen ---------- */
  /* kiosk.css pins every play screen to 100vh with overflow:hidden; the taller
     mobile layouts need the page to scroll instead. */
  [data-skin="winter-holiday"] #playStartScreen {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    /* Room for the logo / countdown header row pinned above. */
    padding: 104px 20px 48px !important;
  }
  /* Circled Pearl logo, top left */
  [data-skin="winter-holiday"] #playStartScreen .play-corner-logo {
    display: block !important;
    position: absolute !important;
    top: 20px;
    left: 20px;
    width: 64px;
    height: 64px;
    margin: 0;
    z-index: 20;
  }
  /* Countdown pill, top right — absolute again (the skin's "> *" rule makes it
     a full-width block that collides with the wordmark). */
  [data-skin="winter-holiday"] #playStartScreen #playStartCountdown {
    position: absolute !important;
    top: 26px;
    right: 20px;
    left: auto;
    width: auto;
    max-width: 45vw;
    z-index: 20;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 10px 18px;
  }
  [data-skin="winter-holiday"] #playStartScreen .play-skin-title--winter-holiday {
    width: min(88vw, 430px);
    margin: 0 auto 20px;
  }
  [data-skin="winter-holiday"] #playStartScreen h1 {
    font-size: 30px;
    line-height: 1.2;
    margin: 0 0 16px;
  }
  [data-skin="winter-holiday"] #playStartScreen .play-launch-btn {
    margin-bottom: 8px;
  }

  /* ---------- Challenge (x-ray) screen ---------- */
  [data-skin="winter-holiday"] #playChallengeScreen {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }
  /* Full-bleed banner: negative margins cancel the 16px screen padding
     kiosk.css sets, so it runs edge to edge and sits flush against the top.
     The progress track below it follows, or a 4px bar would be left inset. */
  [data-skin="winter-holiday"] #playChallengeScreen .play-challenge-topbar,
  [data-skin="winter-holiday"] #playChallengeScreen .play-progress-track {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
  }
  [data-skin="winter-holiday"] #playChallengeScreen .play-challenge-topbar {
    margin-top: -16px;
    gap: 12px;
    /* env() keeps the row clear of a notch when the page sits under the
       status bar; it resolves to 0 everywhere else. */
    padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  }
  [data-skin="winter-holiday"] #playChallengeScreen .play-topbar-xray-label {
    flex: 1 1 auto;
    text-align: left;
    white-space: nowrap;
    font-size: 17px;
    font-weight: 600;
    color: #fff !important;
  }
  [data-skin="winter-holiday"] #playChallengeScreen #nextXrayBtn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 13px 20px;
    font-size: 15px;
  }
  /* The stage is no longer height-capped by a 100vh screen, so give the
     radiograph room instead of kiosk.css's 330px cap. */
  [data-skin="winter-holiday"] #playChallengeScreen .play-xray-image-wrap img {
    max-height: none;
    width: 100%;
  }
  [data-skin="winter-holiday"] #playChallengeScreen .mobile-demo-cta {
    margin-bottom: 24px;
  }
  /* The topbar CTA moves into the .mobile-demo-cta card below the x-ray. */
  [data-skin="winter-holiday"] #playChallengeScreen #challengeBookDemoBtn {
    display: none !important;
  }

  /* ---------- Score / contact screen ---------- */
  /* No display here on purpose — .hidden{display:none!important} has to keep
     winning, or the screen would show under the others. */
  [data-skin="winter-holiday"] #playContactScreen {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }
  [data-skin="winter-holiday"] #playContactScreen .wh-score-raffle {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 560px;
    margin: 18px auto 28px;
    padding: 12px 20px 12px 12px;
    border: 3px solid #fff;
    border-radius: 26px;
    background: linear-gradient(100deg, #f1d6e2 0%, #efe0e7 42%, #f7efe3 100%);
    box-shadow: 0 10px 30px rgba(20, 20, 30, .14);
  }
  [data-skin="winter-holiday"] #playContactScreen .wh-score-raffle-bug {
    display: block;
    width: 96px;
    height: auto;
    flex-shrink: 0;
  }
  [data-skin="winter-holiday"] #playContactScreen .wh-score-raffle-text {
    margin: 0;
    text-align: left;
    font-size: 17px;
    line-height: 1.3;
    color: #24262b;
  }
  [data-skin="winter-holiday"] #playContactScreen .wh-score-raffle-text strong {
    font-weight: 700;
  }

  /* ---------- Results / solution screen ---------- */
  /* :not(.hidden) is required — an ID selector with !important otherwise beats
     the .hidden{display:none!important} that showPlayScreen() uses, so the
     results screen would sit under every other screen. */
  [data-skin="winter-holiday"] #playResultsScreen:not(.hidden) {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    display: block !important;
  }
  /* Header: logo + wordmark on one row, then the raffle line and CTA centred. */
  [data-skin="winter-holiday"] #playResultsScreen .results-header {
    display: block;
    margin-bottom: 16px;
  }
  [data-skin="winter-holiday"] #playResultsScreen .results-header-left {
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
  }
  [data-skin="winter-holiday"] #playResultsScreen .results-header-left .play-topbar-logo {
    display: block !important;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }
  [data-skin="winter-holiday"] #playResultsScreen .results-header .page-title {
    display: none;
  }
  [data-skin="winter-holiday"] #playResultsScreen .results-skin-title--winter-holiday {
    display: block;
    width: min(62vw, 300px);
    height: auto;
  }
  [data-skin="winter-holiday"] #playResultsScreen .results-header-actions {
    flex-direction: column;
    gap: 14px;
  }
  [data-skin="winter-holiday"] #playResultsScreen .wh-raffle-cta {
    justify-content: center;
    width: 100%;
  }
  [data-skin="winter-holiday"] #playResultsScreen .wh-raffle-text {
    text-align: center;
  }
  [data-skin="winter-holiday"] #playResultsScreen .wh-raffle-text span {
    white-space: normal;
    font-size: 17px;
  }
  /* Left-aligned rather than centred: the sugar bug peeks up out of the
     leaderboard card into the right of this band, and a centred pill ran its
     last 30px underneath the character. Moving it to the left of the column
     leaves both at full size with clear space between them. */
  [data-skin="winter-holiday"] #playResultsScreen #resultsBookDemoBtn {
    align-self: flex-start;
    text-decoration: none;
    white-space: nowrap;
  }
  /* Stack the two panels and let the page, not each panel, do the scrolling. */
  [data-skin="winter-holiday"] #playResultsScreen .results-body {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
  }
  [data-skin="winter-holiday"] #playResultsScreen .leaderboard-panel {
    margin-bottom: 20px;
  }
  [data-skin="winter-holiday"] #playResultsScreen .solution-panel {
    overflow: visible !important;
  }
  [data-skin="winter-holiday"] #playResultsScreen .wh-raffle-bug {
    right: 12px;
    width: 120px;
  }
  /* Leaderboard rows: a two-line person cell (name over email) and two
     right-aligned number columns, with "Marker accuracy" and "Overall score"
     lifted out of every row into one header above the list. Mobile only - the
     landscape kiosk layout hides the email and accuracy cells and has its own
     Figma-matched row geometry. */
  [data-skin="winter-holiday"] #playResultsScreen .leaderboard-panel {
    --lb-cols: 22px minmax(0, 1fr) 62px 52px;
  }
  [data-skin="winter-holiday"] #resultsLeaderboardHead {
    display: grid;
    grid-template-columns: var(--lb-cols);
    gap: 8px;
    align-items: end;
    padding: 0 16px 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
  }
  [data-skin="winter-holiday"] #resultsLeaderboardHead .lb-head-accuracy,
  [data-skin="winter-holiday"] #resultsLeaderboardHead .lb-head-score {
    text-align: right;
  }
  [data-skin="winter-holiday"] #resultsLeaderboardList {
    padding: 4px 12px;
  }
  [data-skin="winter-holiday"] #resultsLeaderboardList .play-leaderboard-row {
    display: grid;
    grid-template-columns: var(--lb-cols);
    grid-template-rows: auto auto;
    gap: 2px 8px;
    align-items: center;
    padding: 12px 4px;
    font-size: 14px;
  }
  [data-skin="winter-holiday"] #resultsLeaderboardList .play-leaderboard-rank {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  [data-skin="winter-holiday"] #resultsLeaderboardList .play-leaderboard-name {
    grid-column: 2;
    grid-row: 1;
    font-size: 14px;
    font-weight: 600;
    color: #3a3d44 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  [data-skin="winter-holiday"] #resultsLeaderboardList .play-leaderboard-email {
    grid-column: 2;
    grid-row: 2;
    font-size: 11px;
    color: #7a8192;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  [data-skin="winter-holiday"] #resultsLeaderboardList .play-leaderboard-accuracy {
    grid-column: 3;
    grid-row: 1 / 3;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #3a3d44;
  }
  [data-skin="winter-holiday"] #resultsLeaderboardList .play-leaderboard-score {
    grid-column: 4;
    grid-row: 1 / 3;
    text-align: right;
    font-size: 15px;
    font-weight: 700;
  }
  [data-skin="winter-holiday"] #resultsLeaderboardList .play-leaderboard-accuracy small,
  [data-skin="winter-holiday"] #resultsLeaderboardList .play-leaderboard-score small {
    display: none;
  }
  /* The player's own row bleeds over the list's side padding so the gradient
     reaches both inner edges of the card instead of floating in white. */
  [data-skin="winter-holiday"] #resultsLeaderboardList .play-leaderboard-row.is-you {
    margin: 0 -12px;
    padding-left: 16px;
    padding-right: 16px;
  }
  /* Solution card: label + arrows on their own row, legend under the x-ray. */
  [data-skin="winter-holiday"] #playResultsScreen .play-solution-stage {
    height: auto !important;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    position: relative;
  }
  [data-skin="winter-holiday"] #playResultsScreen .solution-head-row {
    order: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  [data-skin="winter-holiday"] #playResultsScreen .solution-label {
    position: static;
    font-size: 15px;
  }
  [data-skin="winter-holiday"] #playResultsScreen .solution-nav-arrow {
    position: static;
    transform: none;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    flex-shrink: 0;
  }
  [data-skin="winter-holiday"] #playResultsScreen .solution-stage-inner {
    order: 2;
    max-width: 100%;
    max-height: none;
  }
  [data-skin="winter-holiday"] #playResultsScreen .solution-stage-inner img {
    max-height: none;
    width: 100%;
  }
  [data-skin="winter-holiday"] #playResultsScreen .solution-legend-bar {
    position: static;
    order: 3;
    transform: none;
    background: transparent;
    padding: 0 !important;
    max-width: 100%;
    gap: 8px;
  }
  [data-skin="winter-holiday"] #playResultsScreen .solution-legend-chip {
    background: rgba(50, 50, 55, .85);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
  }
  /* The expand toggles do nothing useful on a single-column phone layout. */
  [data-skin="winter-holiday"] #playResultsScreen .expand-btn {
    display: none;
  }
  [data-skin="winter-holiday"] #playResultsScreen .solution-top-right {
    position: static;
    margin-left: auto;
  }
  [data-skin="winter-holiday"] #playResultsScreen .ai-findings-toggle {
    font-size: 12px;
    padding: 7px 12px;
    white-space: nowrap;
  }
  /* Grey full-bleed mat belongs to the wide layout only. */
  [data-skin="winter-holiday"] #playResultsScreen .results-promo-wrap {
    width: auto;
    margin: 0;
    padding: 0 0 32px;
    background: transparent;
  }
}
