:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-soft: rgba(14, 21, 42, 0.84);
  --panel: rgba(17, 27, 53, 0.86);
  --panel-strong: rgba(24, 38, 74, 0.95);
  --border: rgba(255, 255, 255, 0.1);
  --text: #eff4ff;
  --muted: #aab6d8;
  --accent: #76e4f7;
  --accent-strong: #6c8cff;
  --good: #5df2b0;
  --warn: #ffd166;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  --cell-size: min(4.7vw, 3.5rem);
  font-family: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(118, 228, 247, 0.18), transparent 22%),
    radial-gradient(circle at top right, rgba(108, 140, 255, 0.2), transparent 25%),
    linear-gradient(180deg, #111831 0%, #0b1020 100%);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1320px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  border-color: rgba(118, 228, 247, 0.16);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.34);
}

.hero {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 1.5rem;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent);
}

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

h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.04;
  margin-bottom: 0.8rem;
}

.hero-text,
.muted,
.status-message,
.stat-label {
  color: var(--muted);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-copy .muted {
  margin-bottom: 1rem;
  max-width: 62ch;
}

.hero-stats,
.progress-grid,
.challenge-strip {
  display: grid;
  gap: 0.9rem;
}

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

.hero-stats > div,
.challenge-card,
.progress-grid > div {
  border-radius: 1.1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats strong,
.challenge-card strong,
.progress-grid strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.35rem;
}

.progress-grid > div:first-child {
  background: linear-gradient(135deg, rgba(118, 228, 247, 0.14), rgba(108, 140, 255, 0.08));
  border-color: rgba(118, 228, 247, 0.2);
}

.layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 1rem;
}

.panel-stack,
.game-column {
  display: grid;
  gap: 1rem;
}

.spotlight-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, rgba(118, 228, 247, 0.12), rgba(108, 140, 255, 0.08));
  overflow: hidden;
}

.spotlight-panel::after {
  content: "";
  position: absolute;
  inset: auto -15% -55% auto;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(118, 228, 247, 0.16), transparent 65%);
  pointer-events: none;
}

.spotlight-panel h2 {
  margin-bottom: 0.45rem;
}

.spotlight-text {
  margin-bottom: 0;
  max-width: 62ch;
  color: var(--muted);
}

.spotlight-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.55rem;
}

.panel,
.board-panel,
.words-panel {
  padding: 1.25rem;
}

.panel-header,
.board-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.pill,
.value-tag {
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: rgba(118, 228, 247, 0.12);
  border: 1px solid rgba(118, 228, 247, 0.24);
  color: var(--text);
  font-weight: 600;
}

.pill.accent {
  background: rgba(93, 242, 176, 0.12);
  border-color: rgba(93, 242, 176, 0.24);
}

.settings-grid {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0 1.25rem;
}

.settings-grid label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

select,
input[type="range"] {
  width: 100%;
}

select {
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 14, 31, 0.8);
  color: var(--text);
  padding: 0.85rem 1rem;
}

input[type="range"] {
  accent-color: var(--accent);
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-row input {
  width: 1.15rem;
  height: 1.15rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(118, 228, 247, 0.24), 0 0 0 6px rgba(118, 228, 247, 0.08);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #08101d;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.compact .btn {
  padding-inline: 1rem;
}

.setup-snapshot {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}

.compact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.compact-header h3 {
  margin: 0;
  font-size: 0.98rem;
}

.snapshot-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.5rem;
}

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

.pending-pill {
  background: rgba(255, 209, 102, 0.14);
  border-color: rgba(255, 209, 102, 0.24);
  color: var(--warn);
}

.btn.is-pending {
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.18);
}

.challenge-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0.8rem;
}

.fun-card {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(118, 228, 247, 0.14));
}

.board {
  --board-cell-size: var(--cell-size);
  display: grid;
  gap: 0.34rem;
  justify-content: center;
  margin-top: 1rem;
  touch-action: none;
  transition: transform 180ms ease;
}

.board[data-size="12"] {
  gap: 0.28rem;
}

.board[data-size="15"] {
  gap: 0.22rem;
}

.board.is-solved {
  animation: boardCelebrate 520ms ease;
}

.board-status {
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(118, 228, 247, 0.16);
  background: rgba(118, 228, 247, 0.08);
}

.selection-tray {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.selection-tray[hidden] {
  display: none;
}

.selection-tray-button {
  flex: 0 0 auto;
}

.current-target-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.current-target-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.current-target-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.current-target-copy strong {
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.current-target-count {
  flex: 0 0 auto;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(118, 228, 247, 0.2);
  background: rgba(118, 228, 247, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
}

.coach-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 209, 102, 0.18);
  background: rgba(255, 209, 102, 0.08);
}

.coach-strip[hidden] {
  display: none;
}

.coach-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.coach-steps span {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
}

.coach-dismiss {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  background: rgba(9, 14, 31, 0.52);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.coach-dismiss:hover,
.coach-dismiss:focus-visible {
  border-color: rgba(255, 209, 102, 0.4);
  outline: none;
}

.board-cell {
  width: var(--board-cell-size);
  height: var(--board-cell-size);
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  text-transform: uppercase;
  position: relative;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 180ms ease;
}

.board-cell:hover,
.board-cell:focus-visible {
  outline: none;
  border-color: rgba(118, 228, 247, 0.8);
  box-shadow: 0 0 0 3px rgba(118, 228, 247, 0.22);
}

.board-cell:hover {
  transform: translateY(-1px);
}

.board-cell.preview {
  background: rgba(118, 228, 247, 0.24);
  animation: previewPulse 180ms ease;
}

.board-cell.hint {
  background: rgba(255, 209, 102, 0.26);
  animation: hintPulse 1.1s ease-in-out 2;
}

.board-cell.found {
  background: rgba(93, 242, 176, 0.24);
  border-color: rgba(93, 242, 176, 0.6);
  box-shadow: inset 0 0 0 2px rgba(93, 242, 176, 0.18);
  animation: foundSettle 240ms ease;
}

.board-cell.anchor {
  background: rgba(108, 140, 255, 0.26);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.legend-chip {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  margin-right: 0.35rem;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.2);
}

.legend-chip.focus { background: rgba(108, 140, 255, 0.8); }
.legend-chip.preview { background: rgba(118, 228, 247, 0.8); }
.legend-chip.found { background: rgba(93, 242, 176, 0.8); }

.word-list,
.achievement-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.word-list li,
.achievement-list li {
  border-radius: 1rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.achievement-list {
  grid-template-columns: 1fr;
}

.achievement-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
}

.achievement-badge {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
}

.achievement-copy {
  display: grid;
  gap: 0.1rem;
}

.achievement-title {
  color: var(--text);
}

.achievement-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.word-list li.found {
  text-decoration: line-through;
  color: rgba(239, 244, 255, 0.6);
  background: rgba(93, 242, 176, 0.12);
}

.word-list li.mystery {
  color: var(--muted);
  border-style: dashed;
}

.word-list li.targeted {
  border-color: rgba(118, 228, 247, 0.5);
  background: linear-gradient(135deg, rgba(118, 228, 247, 0.18), rgba(108, 140, 255, 0.1));
  box-shadow: 0 0 0 1px rgba(118, 228, 247, 0.12);
}

.word-list li.mystery::before {
  content: "? ";
  color: var(--warn);
}

.word-list li.found::before {
  content: "✓ ";
  color: var(--good);
}

.status-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.preset-help {
  margin-top: -0.15rem;
}

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

.quick-preset-card {
  display: grid;
  gap: 0.15rem;
  justify-items: start;
  padding: 0.8rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-align: left;
}

.quick-preset-card:hover,
.quick-preset-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(118, 228, 247, 0.24);
  outline: none;
}

.quick-preset-card.active {
  border-color: rgba(118, 228, 247, 0.32);
  background: linear-gradient(135deg, rgba(118, 228, 247, 0.16), rgba(108, 140, 255, 0.12));
}

.quick-preset-card.locked {
  opacity: 0.82;
}

.quick-preset-name,
.quick-preset-meta {
  display: block;
}

.quick-preset-name {
  font-size: 0.92rem;
  font-weight: 700;
}

.quick-preset-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.quick-preset-badge {
  margin-top: 0.15rem;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(255, 209, 102, 0.24);
  color: var(--warn);
  font-size: 0.76rem;
  font-weight: 700;
}

.mode-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: -0.1rem;
  margin-bottom: 0.25rem;
}

.mode-gallery-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.mode-gallery-card:hover,
.mode-gallery-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(118, 228, 247, 0.24);
}

.mode-gallery-card.active {
  border-color: rgba(118, 228, 247, 0.32);
  background: linear-gradient(135deg, rgba(118, 228, 247, 0.16), rgba(108, 140, 255, 0.12));
}

.mode-gallery-card.locked {
  opacity: 0.8;
}

.mode-gallery-card:disabled {
  cursor: default;
}

.mode-gallery-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1rem;
}

.mode-gallery-name,
.mode-gallery-meta {
  display: block;
}

.mode-gallery-name {
  font-size: 0.92rem;
  font-weight: 700;
}

.mode-gallery-meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.mode-gallery-badge {
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(255, 209, 102, 0.24);
  color: var(--warn);
  font-size: 0.76rem;
  font-weight: 700;
}

.theme-help {
  margin-top: -0.1rem;
}

.theme-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: -0.15rem;
}

.theme-preview-chips span {
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 600;
}

.progression-panel {
  background: linear-gradient(135deg, rgba(108, 140, 255, 0.12), rgba(118, 228, 247, 0.08));
}

.play-next-panel {
  background: linear-gradient(135deg, rgba(93, 242, 176, 0.1), rgba(108, 140, 255, 0.09));
}

.unlock-track-panel {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(108, 140, 255, 0.08));
}

.unlock-track-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.unlock-track-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.unlock-track-item.unlocked {
  border-color: rgba(93, 242, 176, 0.35);
  background: rgba(93, 242, 176, 0.12);
}

.unlock-track-icon {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.unlock-track-copy {
  display: grid;
  gap: 0.08rem;
}

.unlock-track-title {
  color: var(--text);
  font-weight: 700;
}

.unlock-track-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.unlock-track-progress {
  color: var(--text);
  font-weight: 700;
}

.next-unlock-card {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.85rem;
}

.next-unlock-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.2rem;
}

.achievement-list li.unlocked {
  border-color: rgba(255, 209, 102, 0.4);
  background: rgba(255, 209, 102, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.16);
}

.achievement-list li.unlocked .achievement-badge {
  background: rgba(255, 209, 102, 0.18);
  border-color: rgba(255, 209, 102, 0.36);
}

.win-dialog {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: rgba(11, 16, 32, 0.96);
  color: var(--text);
  width: min(520px, calc(100vw - 2rem));
}

.win-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.win-content {
  padding: 1.5rem;
}

.win-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.win-chip {
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.win-chip strong,
.win-chip span {
  display: block;
}

.win-chip span {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0.2rem;
}

.win-dialog[open] .win-content {
  animation: dialogRise 260ms ease;
}

@keyframes previewPulse {
  from { transform: scale(0.98); }
  to { transform: scale(1); }
}

@keyframes foundSettle {
  0% { transform: scale(0.94); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes hintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.1); }
  50% { box-shadow: 0 0 0 6px rgba(255, 209, 102, 0.14); }
}

@keyframes dialogRise {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes boardCelebrate {
  0% { transform: scale(0.995); }
  40% { transform: scale(1.005); }
  100% { transform: scale(1); }
}

@media (max-width: 1100px) {
  .layout,
  .hero {
    grid-template-columns: 1fr;
  }

  .spotlight-panel {
    grid-template-columns: 1fr;
  }

  .spotlight-chips {
    justify-content: start;
  }

  .challenge-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .mode-gallery {
    grid-template-columns: 1fr;
  }

  .quick-preset-rail {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100vw - 1rem, 100%);
    padding-top: 0.5rem;
  }

  .card {
    border-radius: 1.2rem;
  }

  .hero,
  .panel,
  .board-panel,
  .words-panel {
    padding: 1rem;
  }

  .challenge-strip {
    grid-template-columns: 1fr 1fr;
  }

  .panel-header,
  .board-header {
    flex-direction: column;
    align-items: stretch;
  }

  .coach-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .current-target-bar {
    position: sticky;
    top: 0.75rem;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
  }

  .selection-tray {
    flex-direction: column;
    align-items: stretch;
  }

  .coach-steps {
    flex-direction: column;
  }

  .next-unlock-card {
    grid-template-columns: 1fr;
  }

  .unlock-track-item {
    grid-template-columns: auto 1fr;
  }

  .unlock-track-progress {
    grid-column: 2;
  }

  :root {
    --cell-size: clamp(2.75rem, 9vw, 3rem);
  }

  .board[data-size="12"] {
    --board-cell-size: clamp(2rem, 7.15vw, 2.35rem);
    gap: 0.22rem;
  }

  .board[data-size="15"] {
    --board-cell-size: clamp(1.55rem, 5.85vw, 1.88rem);
    gap: 0.18rem;
  }

  .board[data-size="12"] .board-cell {
    border-radius: 0.82rem;
    font-size: clamp(0.8rem, 3.4vw, 0.96rem);
  }

  .board[data-size="15"] .board-cell {
    border-radius: 0.75rem;
    font-size: clamp(0.68rem, 3vw, 0.86rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
