:root {
  --bg: #f4f8fc;
  --bg-soft: #ebf1f7;
  --ink: #12213d;
  --muted: #62708b;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --panel: #132038;
  --panel-soft: #1b2945;
  --line: rgba(18, 33, 61, 0.1);
  --line-strong: rgba(18, 33, 61, 0.18);
  --brand: #14b8a6;
  --brand-deep: #0f9488;
  --gold: #e8bf5a;
  --shadow: 0 24px 60px rgba(18, 33, 61, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff, var(--bg));
  -webkit-font-smoothing: antialiased;
}

.digital-board,
.digital-board * {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, select { font: inherit; }

.play-shell {
  min-height: 100svh;
  padding: 16px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
}

.play-header,
.control-bar,
.board-frame {
  width: min(1260px, 100%);
  margin: 0 auto;
}

.play-header,
.control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.title-wrap h1,
.eyebrow {
  margin: 0;
}

.title-wrap {
  display: grid;
  gap: 4px;
  text-align: center;
}

.title-wrap h1 {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
}

.back-link,
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.back-link:hover,
.action-btn:hover {
  transform: translateY(-1px);
}

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

.action-btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), #63e8da 60%, #f3f0bf);
  color: #11203b;
}

.control-bar {
  flex-wrap: wrap;
}

.control-field {
  display: grid;
  gap: 8px;
  min-width: 240px;
  flex: 1 1 280px;
}

.control-field--mode {
  flex: 0 1 320px;
}

.control-field--layout {
  flex: 0 1 360px;
}

.control-field span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.control-bar select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
}

.mode-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.control-field--layout .mode-toggle {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.control-field--mode .mode-toggle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mode-toggle__btn {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.mode-toggle__btn:hover {
  transform: translateY(-1px);
}

.mode-toggle__btn.active {
  border-color: rgba(20, 184, 166, 0.32);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(99, 232, 218, 0.18));
  color: var(--ink);
}

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

.control-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.action-btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), #63e8da 60%, #f3f0bf);
  color: #11203b;
}

.play-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 12, 21, 0.55);
  backdrop-filter: blur(16px);
}

.play-modal[hidden] {
  display: none;
}

.play-modal__panel {
  width: min(640px, 100%);
  max-height: min(92svh, 820px);
  overflow: auto;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 80px rgba(17, 31, 56, 0.26);
}

.play-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.play-modal__header h2,
.play-modal__eyebrow,
.play-modal__hint,
.play-modal__label {
  margin: 0;
}

.play-modal__eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
}

.play-modal__header h2 {
  margin-top: 4px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.play-modal__close {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.play-modal__hint {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.play-modal__section {
  margin-top: 20px;
}

.play-modal__label {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.play-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.multiplier-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 12px;
}

.jackpot-pot-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.jackpot-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.jackpot-style-tile {
  min-height: 112px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 241, 247, 0.98));
  cursor: pointer;
}

.jackpot-style-tile.is-selected {
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.18);
}

.jackpot-style-tile__img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.jackpot-style-tile__label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.jackpot-pot-picker__btn {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.jackpot-pot-picker__btn.is-selected {
  border-color: rgba(20, 184, 166, 0.42);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(99, 232, 218, 0.22));
}

.multiplier-icon-tile {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 241, 247, 0.98));
  display: grid;
  place-items: center;
  padding: 14px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.multiplier-icon-tile:hover {
  transform: translateY(-1px);
}

.multiplier-icon-tile.is-selected {
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.18);
}

.grid-multiplier-level-tile {
  aspect-ratio: auto;
  min-height: 120px;
  grid-template-rows: 64px auto;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
}

.grid-multiplier-level-tile.is-selected {
  border-color: color-mix(in srgb, var(--grid-multiplier-color, #14b8a6) 62%, white);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--grid-multiplier-color, #14b8a6) 22%, transparent);
}

.grid-multiplier-level-tile img {
  width: 64px;
  height: 64px;
}

.grid-multiplier-level-tile__meta {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.grid-multiplier-level-tile__meta strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.grid-multiplier-level-tile__meta span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.multiplier-icon-tile img,
.multiplier-amount-row__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.multiplier-amounts {
  display: grid;
  gap: 12px;
}

.multiplier-amount-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.multiplier-amount-row__icon {
  width: 64px;
  height: 64px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.multiplier-amount-row__icon--base {
  display: grid;
  place-items: center;
  padding: 8px;
  color: #16243d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.grid-multiplier-amount-icon {
  position: relative;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--grid-multiplier-color, #14b8a6) 18%, white), rgba(255, 255, 255, 0.92));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--grid-multiplier-color, #14b8a6) 24%, transparent);
}

.jackpot-amount-row__icon {
  display: grid;
  place-items: center;
}

.jackpot-preview__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.multiplier-amount-input {
  min-height: 64px;
}

.multiplier-modal-empty {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  background: rgba(235, 241, 247, 0.7);
}

.board-stage {
  min-height: 0;
  display: grid;
}

.board-frame {
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 14px;
  border-radius: 30px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.08), transparent 24%),
    linear-gradient(180deg, #16243d, #10192c);
  box-shadow: 0 30px 80px rgba(16, 25, 44, 0.2);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill-alt {
  background: rgba(255, 255, 255, 0.08);
  color: #d5fdf8;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.board-host {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
}

.play-lock {
  width: min(520px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(18, 33, 61, 0.1);
  box-shadow: var(--shadow);
  text-align: center;
}

.play-lock h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.play-lock p {
  margin: 12px 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.digital-board {
  position: relative;
  width: min(100%, calc((100svh - 160px) * 0.7727), 860px);
  height: min(calc(100svh - 160px), calc(100vw / 0.7727), 1113px);
  max-height: calc(100svh - 160px);
  aspect-ratio: 850 / 1100;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(6, 12, 23, 0.28);
}

.demo-banner {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.demo-banner__btn {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: #fff;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.digital-board[data-style="light"] .demo-banner {
  background: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.theme-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-image--grid {
  inset: 50% auto auto 50%;
  width: 132%;
  height: 88%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.theme-wash {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.digital-board[data-style="light"] .theme-wash {
  background: rgba(255, 255, 255, 0.12);
}

.legacy-grid {
  position: absolute;
}

.legacy-grid-shell {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 131.5%;
  height: 78.5%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  z-index: 2;
}

.legacy-grid__top {
  top: 0;
  left: 34.95%;
  width: 50.18%;
  height: 19.48%;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0;
}

.legacy-grid__top-slot {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border-left: 1px solid rgba(18, 33, 61, 0.22);
}

.legacy-grid__top-input-wrap {
  position: relative;
  flex: 0 0 73.33%;
  overflow: hidden;
  border-top: 1px solid rgba(18, 33, 61, 0.22);
  border-bottom: 1px solid rgba(18, 33, 61, 0.22);
  background: rgba(10, 16, 28, 0.9);
}

.legacy-grid__top-slot:last-child {
  border-right: 1px solid rgba(18, 33, 61, 0.22);
}

.legacy-grid__left-row {
  display: flex;
  box-sizing: border-box;
  border-top: 1px solid rgba(18, 33, 61, 0.22);
}

.legacy-grid__left-row:last-child {
  border-bottom: 1px solid rgba(18, 33, 61, 0.22);
}

.legacy-grid__name-input {
  width: 100%;
  min-width: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font: inherit;
  font-size: clamp(13px, 1.08vw, 16px);
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.legacy-grid__name-input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.legacy-grid__name-input:focus {
  outline: 2px solid rgba(20, 184, 166, 0.5);
  outline-offset: -2px;
}

.legacy-grid__name-input--top {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  opacity: 0;
  color: transparent;
  caret-color: #12213d;
  z-index: 2;
}

.legacy-grid__top-input-wrap:focus-within {
  outline: 2px solid rgba(20, 184, 166, 0.5);
  outline-offset: -2px;
}

.legacy-grid__name-input--top:focus {
  outline: none;
}

.legacy-grid__top-text {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  padding: 0 8px;
  color: #ffffff;
  font: inherit;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
}

.legacy-grid__top-bar,
.legacy-grid__left-bar {
  display: grid;
  place-items: center;
  background: rgba(10, 16, 28, 0.9);
  color: #ffffff;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.44);
}

.legacy-grid__top-bar {
  flex: 0 0 26.67%;
  font-size: clamp(12px, 0.95vw, 14px);
  border-radius: 0;
}

.legacy-grid__top-bar.is-triple {
  font-size: clamp(10px, 0.82vw, 13px);
}

.legacy-grid__left {
  top: 19.48%;
  left: 14.88%;
  width: 20.07%;
  height: 64.94%;
  display: grid;
  grid-template-rows: repeat(10, minmax(0, 1fr));
  gap: 0;
}

.legacy-grid__name-input--left {
  flex: 1 1 auto;
  padding: 0 10px;
  text-align: center;
  font-size: clamp(13px, 1.08vw, 16px);
  border-radius: 0;
  border: 0;
  border-left: 1px solid rgba(18, 33, 61, 0.22);
  border-right: 1px solid rgba(18, 33, 61, 0.22);
  background: rgba(10, 16, 28, 0.9);
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.legacy-grid__left-bar {
  flex: 0 0 20%;
  font-size: clamp(12px, 1vw, 15px);
  border-radius: 0;
}

.legacy-grid__main {
  top: 19.48%;
  left: 34.95%;
  width: 50.18%;
  height: 64.94%;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-rows: repeat(10, minmax(0, 1fr));
  gap: 0;
  border: 2.5px solid rgba(255, 255, 255, 0.48);
}

.legacy-grid__cell {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: clamp(18px, 1.9vw, 28px);
  font-weight: 900;
  cursor: pointer;
  box-shadow: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85);
}

.legacy-grid__cell.is-triple {
  font-size: clamp(16px, 1.62vw, 24px);
}

.legacy-grid__cell span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1;
  z-index: 4;
  pointer-events: none;
}

.legacy-grid__cell.has-grid-multiplier span {
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.72);
}

.legacy-grid__cell.has-grid-multiplier {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--grid-multiplier-fill, rgba(255,255,255,0.25)) 82%, rgba(15, 23, 42, 0.26)), rgba(0, 0, 0, 0.18)),
    rgba(0, 0, 0, 0.46);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--grid-multiplier-accent, #ffffff) 42%, transparent);
}

.legacy-grid__cell.has-grid-multiplier::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 32%, color-mix(in srgb, var(--grid-multiplier-accent, #ffffff) 28%, transparent) 50%, transparent 68% 100%);
  opacity: 0.92;
  pointer-events: none;
}

.legacy-grid__multiplier-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.legacy-grid__multiplier-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.42;
  pointer-events: none;
  filter:
    drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.45));
}

.legacy-grid__cell.is-marked {
  background: linear-gradient(135deg, #facc15, #f59e0b 58%, #b45309);
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

.legacy-grid__cell.is-marked.has-grid-multiplier span {
  color: #ffffff;
}

.legacy-grid__cell.is-marked .legacy-grid__multiplier-badge {
  opacity: 1;
}

.digital-board[data-style="light"] .legacy-grid__name-input {
  border-color: rgba(255, 255, 255, 0.72);
}

.digital-board[data-style="light"] .legacy-grid__top-bar,
.digital-board[data-style="light"] .legacy-grid__left-bar {
  background: rgba(10, 16, 28, 0.9);
}

.digital-board[data-style="light"] .legacy-grid__main,
.digital-board[data-style="light"] .legacy-grid__cell {
  border-color: rgba(18, 33, 61, 0.22);
}

.digital-board[data-style="dark"] .legacy-grid__name-input,
.digital-board[data-style="dark"] .legacy-grid__cell {
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.72);
}

.names-label {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85);
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
}

.digital-board[data-style="light"] .names-label {
  color: #12213d;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(18, 33, 61, 0.18);
}

.names-grid {
  position: absolute;
  top: 12.6%;
  left: 6%;
  width: 20.5%;
  height: 77.2%;
  display: grid;
  grid-template-rows: repeat(16, 1fr);
  gap: 0;
  z-index: 2;
}

.names-grid--blocks {
  grid-template-rows: 1fr repeat(5, 3fr);
  width: 23.5%;
}

.caller-line-badges {
  position: absolute;
  top: 12.6%;
  right: 1.4%;
  width: 5.4%;
  height: 77.2%;
  display: grid;
  grid-template-rows: repeat(16, 1fr);
  justify-items: center;
  align-items: center;
  pointer-events: none;
  z-index: 3;
}

.caller-line-badges__spacer,
.caller-line-badges__slot {
  width: 100%;
  display: grid;
  place-items: center;
}

.multiplier-legend {
  position: absolute;
  left: 29.5%;
  right: 8%;
  bottom: 0.8%;
  height: 7.4%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.2vw, 20px);
  padding: 0;
  z-index: 3;
}

.multiplier-legend__item {
  position: relative;
  width: clamp(58px, 6.6vw, 84px);
  height: clamp(58px, 6.6vw, 84px);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 7px 7px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(11, 18, 31, 0.78));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.digital-board[data-style="light"] .multiplier-legend__item {
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(11, 18, 31, 0.76));
}

.multiplier-legend__icon {
  width: 66%;
  height: 66%;
  margin-top: 1px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.multiplier-legend__amount-wrap {
  width: 100%;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px 4px 0;
}

.multiplier-legend__amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 22px;
  padding: 0 4px;
  color: #ffffff;
  font-size: clamp(11px, 0.9vw, 15px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums lining-nums;
}

.multiplier-legend__amount.is-placeholder {
  color: rgba(255, 255, 255, 0.9);
}

.multiplier-legend__item--base {
  justify-content: center;
  gap: 10px;
}

.multiplier-legend--grid {
  top: 21.2%;
  right: 1.9%;
  left: auto;
  bottom: auto;
  width: 10.8%;
  height: 63.2%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 0.9vw, 14px);
}

.multiplier-legend__item--grid {
  border-color: color-mix(in srgb, var(--grid-multiplier-color, #14b8a6) 46%, rgba(255, 255, 255, 0.42));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--grid-multiplier-color, #14b8a6) 28%, rgba(255, 255, 255, 0.12)), rgba(11, 18, 31, 0.86)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(11, 18, 31, 0.78));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--grid-multiplier-color, #14b8a6) 18%, rgba(255, 255, 255, 0.08)),
    0 8px 20px rgba(0, 0, 0, 0.18);
  transform: rotate(-90deg);
  transform-origin: center;
}

.digital-board[data-style="light"] .multiplier-legend__item--grid,
.digital-board[data-style="dark"] .multiplier-legend__item--grid {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--grid-multiplier-color, #14b8a6) 28%, rgba(255, 255, 255, 0.12)), rgba(11, 18, 31, 0.86)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(11, 18, 31, 0.78));
}

.multiplier-legend__item--grid .multiplier-legend__amount {
  color: #ffffff;
}

.multiplier-legend__base-badge {
  width: 68%;
  min-height: 68%;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(9px, 0.76vw, 12px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.05;
  text-transform: uppercase;
}

.caller-line-badge {
  width: clamp(28px, 3vw, 42px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: #ffffff;
  color: #111111;
  font-size: clamp(14px, 1.2vw, 19px);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  text-shadow: none;
}

.caller-line-badge.is-bingo {
  background: linear-gradient(135deg, #ffffff, #f3f4f6);
  font-size: clamp(13px, 1.05vw, 17px);
  letter-spacing: 0.02em;
}

.jackpot-capture-banner {
  position: absolute;
  top: 1.4%;
  left: 7%;
  right: 7%;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: clamp(0.9rem, 1.2vw, 1.08rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  z-index: 4;
}

.jackpot-row {
  position: absolute;
  top: 3.5%;
  left: 8%;
  right: 8%;
  display: flex;
  align-items: flex-start;
  justify-content: space-evenly;
  gap: clamp(10px, 1.2vw, 18px);
  z-index: 3;
  pointer-events: none;
}

.jackpot-slot {
  width: clamp(74px, 7.8vw, 102px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.35vw, 6px);
}

.jackpot-slot__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 0.4vw, 6px);
}

.jackpot-slot__bag {
  width: clamp(56px, 5.9vw, 76px);
  aspect-ratio: 1;
  opacity: 1;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.36));
}

.jackpot-slot__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jackpot-slot__ball {
  width: clamp(28px, 2.9vw, 38px);
  height: clamp(28px, 2.9vw, 38px);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid rgba(17, 24, 39, 0.45);
  color: #111111;
  font-size: clamp(12px, 0.95vw, 15px);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  flex: 0 0 auto;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.jackpot-slot__amount {
  min-height: 18px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.02em;
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}

.caller-winner-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 31, 56, 0.46);
  backdrop-filter: blur(8px);
  z-index: 6;
}

.caller-winner-overlay__panel {
  width: min(460px, 100%);
}

.caller-winner-overlay__dismiss {
  min-width: 180px;
}

.caller-winner-overlay .winner-overlay__panel {
  padding: 24px 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(248, 217, 75, 0.2), transparent 38%),
    linear-gradient(180deg, #16243d, #10192c);
  border: 1px solid rgba(248, 217, 75, 0.26);
  box-shadow: 0 30px 80px rgba(16, 25, 44, 0.36);
  text-align: center;
  color: #ffffff;
}

.caller-winner-overlay .winner-overlay__panel h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4.6vw, 2.7rem);
  letter-spacing: -0.04em;
}

.caller-winner-overlay .winner-overlay__panel p {
  margin: 8px 0 0;
  color: rgba(247, 250, 252, 0.8);
  font-size: 1rem;
}

.caller-winner-overlay__panel--jackpot {
  width: min(500px, 100%);
}

.caller-winner-overlay__lead {
  color: #ffffff !important;
  font-size: 1.18rem !important;
  font-weight: 900;
}

.caller-winner-overlay__call {
  margin-bottom: 14px !important;
  color: rgba(247, 250, 252, 0.82) !important;
  font-size: 0.98rem !important;
  font-weight: 700;
}

.caller-winner-multipliers {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.caller-winner-multipliers__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex: 0 0 auto;
}

.caller-winner-multipliers__icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  flex: 0 0 auto;
}

.caller-winner-multipliers__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.caller-winner-multipliers__amount {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.caller-winner-jackpots {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.caller-winner-jackpots__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.caller-winner-jackpots__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.caller-winner-jackpots__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.caller-winner-jackpots__text {
  margin: 0 !important;
  color: #f8d94b !important;
  font-size: 1.05rem !important;
  font-weight: 900;
  line-height: 1.25;
}

.caller-winner-base-prize {
  margin: 0 0 14px !important;
  color: #f8d94b !important;
  font-size: 1.02rem !important;
  font-weight: 900;
}

.blocks-scaffold {
  position: absolute;
  inset: 12.6% 8% 10.2% 6%;
  display: grid;
  grid-template-rows: repeat(16, 1fr);
  z-index: 1;
  pointer-events: none;
}

.blocks-scaffold__header,
.blocks-scaffold__band {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.blocks-scaffold__header {
  grid-row: span 1;
}

.blocks-scaffold__band {
  grid-row: span 3;
}

.digital-board[data-style="light"] .blocks-scaffold__header,
.digital-board[data-style="light"] .blocks-scaffold__band {
  border-color: rgba(18, 33, 61, 0.3);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(18, 33, 61, 0.06);
}

.name-cell {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font: inherit;
  font-size: clamp(15px, 1.45vw, 22px);
  font-weight: 800;
  font-variant-numeric: tabular-nums lining-nums;
  text-transform: uppercase;
  box-shadow: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85);
}

.name-cell--block {
  padding: 10px 12px;
  align-content: start;
}

.digital-board[data-style="light"] .name-cell {
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.name-cell::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.digital-board[data-style="light"] .name-cell::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.name-cell:focus {
  outline: 2px solid rgba(20, 184, 166, 0.5);
  outline-offset: 1px;
  background: rgba(0, 0, 0, 0.92);
}

.digital-board[data-style="light"] .name-cell:focus {
  background: rgba(0, 0, 0, 0.92);
}

.board-grid {
  position: absolute;
  inset: 12.6% 8% 10.2% 29.5%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(16, 1fr);
  gap: 0;
}

.board-grid.mode-double15 {
  inset: 10% 5.5% 8% 5.5%;
  grid-template-columns: repeat(5, minmax(0, 1fr)) 1.45fr repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(16, 1fr);
}

.board-grid.mode-double15 .board-header,
.board-grid.mode-double15 .board-cell,
.board-grid.mode-double15 .names-label,
.board-grid.mode-double15 .name-cell {
  border-radius: 6px;
}

.names-label--double15 {
  min-height: 0;
  padding: 0 4px;
  font-size: clamp(13px, 1.15vw, 17px);
  letter-spacing: 0.03em;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.82);
}

.name-cell--double15 {
  min-height: 0;
  padding: 0 4px;
  text-align: center;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(0, 0, 0, 0.55);
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 800;
  line-height: 1;
}

.digital-board[data-style="light"] .names-label--double15 {
  border-color: rgba(18, 33, 61, 0.22);
  background: rgba(255, 255, 255, 0.82);
}

.digital-board[data-style="light"] .name-cell--double15 {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(0, 0, 0, 0.55);
}

.board-header {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: clamp(20px, 2.05vw, 30px);
  font-weight: 900;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85);
}

.digital-board[data-style="light"] .board-header {
  color: #12213d;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.32);
  border-color: rgba(18, 33, 61, 0.18);
}

.board-cell {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  box-shadow: none;
  font-weight: 900;
  font-variant-numeric: tabular-nums lining-nums;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85);
}

.digital-board[data-style="light"] .board-cell {
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.board-cell:hover {
  background: rgba(0, 0, 0, 0.88);
}

.digital-board[data-style="light"] .board-cell:hover {
  background: rgba(0, 0, 0, 0.88);
}

.board-cell.is-marked {
  color: #ffffff;
  background: linear-gradient(135deg, #facc15, #f59e0b 58%, #92400e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 0 20px rgba(99, 232, 218, 0.2);
}

.digital-board[data-style="light"] .board-cell.is-marked {
  color: #ffffff;
  background: linear-gradient(135deg, #facc15, #f59e0b 58%, #92400e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 0 18px rgba(250, 204, 21, 0.28);
}

.board-cell span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2ch;
  pointer-events: none;
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85);
}

.digital-board[data-style="light"] .board-cell span {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85);
}

.board-cell.has-multiplier-icon {
  place-items: stretch;
}

.board-cell__number--shifted {
  position: absolute;
  top: 50%;
  left: 35%;
  transform: translate(-50%, -50%);
}

.board-cell__multiplier-icon {
  position: absolute;
  top: 50%;
  right: 6%;
  width: min(48px, 76%);
  height: min(48px, 76%);
  transform: translateY(-50%);
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  z-index: 2;
}

.board-cell.is-marked .board-cell__multiplier-icon {
  opacity: 0.88;
}

.board-cell.has-jackpot-pot {
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.4);
}

.board-cell__jackpot-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 2;
}

.board-cell__jackpot-indicator-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.col-0 { background-color: rgba(255, 104, 104, 0.3); }
.col-1 { background-color: rgba(255, 180, 76, 0.3); }
.col-2 { background-color: rgba(253, 224, 71, 0.28); }
.col-3 { background-color: rgba(90, 200, 122, 0.28); }
.col-4 { background-color: rgba(86, 156, 255, 0.3); }

.board-grid .board-cell {
  font-size: clamp(18px, 2vw, 30px);
}

.board-grid.mode-blocks .board-cell.is-block-start,
.board-grid.mode-blocks .board-header {
  border-top-width: 2px;
}

.board-grid.mode-blocks .board-cell.is-block-end {
  border-bottom-width: 2px;
}

.board-grid.mode-blocks .board-cell,
.board-grid.mode-blocks .board-header {
  border-color: rgba(255, 255, 255, 0.48);
}

.digital-board[data-style="light"] .board-grid.mode-blocks .board-cell,
.digital-board[data-style="light"] .board-grid.mode-blocks .board-header {
  border-color: rgba(18, 33, 61, 0.2);
}

.names-grid--blocks .names-label,
.names-grid--blocks .name-cell,
.board-grid.mode-blocks .board-header,
.board-grid.mode-blocks .board-cell {
  border-radius: 0;
}

.names-grid--blocks .names-label {
  border-top-left-radius: 10px;
}

.board-grid.mode-blocks .board-header.col-4 {
  border-top-right-radius: 10px;
}

.names-grid--blocks .name-cell.is-last-block,
.board-grid.mode-blocks .board-cell.is-last-block-end.col-4 {
  border-bottom-right-radius: 10px;
}

.names-grid--blocks .name-cell.is-last-block {
  border-bottom-left-radius: 10px;
}

.embed-mode .play-header,
.embed-mode .control-bar {
  display: none;
}

.embed-mode .play-shell {
  padding: 0;
}

.embed-mode .board-frame {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.embed-mode .status-strip {
  display: none;
}

body.is-fullscreen {
  background: #000000;
}

body.is-fullscreen .play-shell {
  padding: 0;
  gap: 0;
}

body.is-fullscreen .play-header,
body.is-fullscreen .control-bar,
body.is-fullscreen .status-strip {
  display: none;
}

body.is-fullscreen .board-frame {
  width: 100vw;
  height: 100svh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000000;
  box-shadow: none;
}

body.is-fullscreen .board-host {
  width: 100vw;
  height: 100svh;
  display: grid;
  place-items: center;
}

body.is-fullscreen .digital-board {
  width: min(100vw, calc(100svh * 0.7727));
  height: min(100svh, calc(100vw / 0.7727));
  max-height: none;
  aspect-ratio: 850 / 1100;
  border-radius: 0;
  box-shadow: none;
}

body.is-fullscreen .digital-board[data-format="caller"] .board-grid {
  inset: 12.6% 8% 10.2% 29.5%;
}

body.is-fullscreen .digital-board[data-format="caller"] .multiplier-legend {
  left: 29.5%;
  right: 8%;
  bottom: 0.8%;
}

body.is-fullscreen .digital-board[data-format="grid"] .multiplier-legend--grid {
  top: 21.2%;
  right: 1.9%;
  left: auto;
  bottom: auto;
  width: 10.8%;
  height: 63.2%;
}

body.is-fullscreen .jackpot-row {
  left: 8%;
  right: 8%;
  top: 3.5%;
}

body.is-fullscreen .jackpot-slot {
  width: clamp(88px, 9.6vw, 122px);
}

body.is-fullscreen .jackpot-slot__visual {
  gap: clamp(4px, 0.5vw, 8px);
}

body.is-fullscreen .jackpot-slot__bag {
  width: clamp(68px, 7.2vw, 92px);
}

body.is-fullscreen .jackpot-slot__ball {
  width: clamp(36px, 3.7vw, 46px);
  height: clamp(36px, 3.7vw, 46px);
  font-size: clamp(14px, 1.18vw, 17px);
}

body.is-fullscreen .jackpot-slot__amount {
  font-size: clamp(18px, 1.8vw, 26px);
}

body.is-fullscreen .multiplier-legend__item {
  width: clamp(78px, 8.6vw, 112px);
  height: clamp(78px, 8.6vw, 112px);
}

body.is-fullscreen .multiplier-legend__icon {
  width: 68%;
  height: 68%;
}

body.is-fullscreen .multiplier-legend__amount-wrap {
  min-height: 32px;
  padding: 2px 6px 1px;
}

body.is-fullscreen .multiplier-legend__amount {
  font-size: clamp(14px, 1.18vw, 18px);
}

body.is-fullscreen .multiplier-legend__base-badge {
  font-size: clamp(11px, 0.96vw, 14px);
}

body.is-fullscreen .digital-board[data-format="blocks"] .board-grid {
  inset: 12.6% 8% 10.2% 29.5%;
}

body.is-fullscreen .digital-board[data-format="double15"] .board-grid {
  inset: 10% 5.5% 8% 5.5%;
}

@media (max-width: 1180px) {
  .play-shell {
    padding: 12px;
    gap: 10px;
  }

  .play-header,
  .control-bar {
    padding: 12px 14px;
    border-radius: 18px;
  }

  .digital-board {
    width: min(100%, calc((100svh - 150px) * 0.7727), 760px);
    height: min(calc(100svh - 150px), calc(100vw / 0.7727), 983px);
    max-height: calc(100svh - 150px);
  }

  .names-grid,
  .board-grid {
    gap: 0;
  }

  .caller-line-badges {
    right: 1.1%;
    width: 5.8%;
  }

  .multiplier-legend {
    right: 8%;
    gap: 10px;
  }

  .jackpot-row {
    top: 3.7%;
    gap: 10px;
  }
}

@media (orientation: landscape) and (max-height: 940px) {
  .play-shell {
    padding: 10px;
    gap: 10px;
  }

  .play-header,
  .control-bar {
    padding: 10px 12px;
  }

  .title-wrap h1 {
    font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .digital-board {
    width: min(100%, calc((100svh - 126px) * 0.7727), 720px);
    height: min(calc(100svh - 126px), calc(100vw / 0.7727), 931px);
    max-height: calc(100svh - 126px);
  }

  .name-cell {
    padding: 0 10px;
  }
}

@media (max-width: 900px) {
  .play-header,
  .control-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .title-wrap {
    text-align: left;
  }

  .control-actions {
    justify-content: stretch;
  }

  .control-actions .action-btn {
    flex: 1 1 0;
  }

  .digital-board {
    width: min(100%, calc((100svh - 250px) * 0.7727), 620px);
    height: min(calc(100svh - 250px), calc(100vw / 0.7727), 802px);
    max-height: calc(100svh - 250px);
  }

  .names-grid {
    width: 22%;
  }

  .names-grid--blocks {
    width: 25%;
  }

  .board-grid {
    left: 31%;
  }

  .caller-line-badges {
    right: 0.9%;
    width: 6%;
  }

  .multiplier-legend {
    left: 31%;
    right: 8%;
    gap: 10px;
  }

  .jackpot-row {
    left: 8%;
    right: 8%;
    top: 4.1%;
    gap: 8px;
  }

  .jackpot-slot {
    width: clamp(70px, 8.8vw, 92px);
  }

  .jackpot-slot__bag {
    width: clamp(50px, 5.8vw, 64px);
  }

  .jackpot-slot__ball {
    width: clamp(26px, 3vw, 34px);
    height: clamp(26px, 3vw, 34px);
    font-size: clamp(11px, 0.92vw, 14px);
  }

  .jackpot-slot__amount {
    font-size: clamp(13px, 1.12vw, 16px);
  }
}

@media (max-width: 640px) {
  .play-shell {
    padding: 10px;
  }

  .back-link,
  .action-btn {
    width: 100%;
  }

  .control-actions {
    flex-direction: column;
  }

  .board-frame {
    padding: 10px;
    border-radius: 20px;
  }

  .digital-board {
    width: min(100%, calc((100svh - 280px) * 0.7727));
    height: min(calc(100svh - 280px), calc(100vw / 0.7727));
    max-height: calc(100svh - 280px);
  }

  .board-grid .board-cell {
    font-size: clamp(13px, 3.2vw, 21px);
  }

  .names-grid {
    left: 5.5%;
    width: 23%;
    gap: 0;
  }

  .names-grid--blocks {
    width: 26%;
  }

  .board-grid {
    left: 31.5%;
    right: 6%;
    gap: 0;
  }

  .caller-line-badges {
    right: 0.6%;
    width: 6.6%;
  }

  .multiplier-legend {
    left: 31.5%;
    right: 6%;
    bottom: 0.6%;
    gap: 8px;
  }

  .jackpot-row {
    left: 6%;
    right: 6%;
    top: 5.2%;
    gap: 6px;
  }

  .jackpot-slot {
    width: clamp(68px, 10.4vw, 90px);
  }

  .jackpot-slot__bag {
    width: clamp(44px, 6vw, 56px);
  }

  .jackpot-slot__ball {
    width: clamp(24px, 3.7vw, 31px);
    height: clamp(24px, 3.7vw, 31px);
    font-size: clamp(10px, 1.55vw, 13px);
  }

  .jackpot-slot__amount {
    font-size: clamp(11px, 1.45vw, 14px);
  }

  .name-cell {
    border-radius: 4px;
    padding: 0 8px;
    font-size: clamp(12px, 2.7vw, 16px);
  }

}
