@font-face {
  font-family: "DM Sans Local";
  src: url("../public/assets/fonts/DMSans_18pt-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans Local";
  src: url("../public/assets/fonts/DMSans_18pt-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-heading: "DM Sans Local", "Segoe UI", sans-serif;
  --font-body: "DM Sans Local", "Segoe UI", sans-serif;
  --background: #ecf8ff;
  --surface: #ecf8ff;
  --surface-panel: #ffffff;
  --surface-recessed: #c9eeff;
  --surface-soft: #dff4ff;
  --surface-high: #bbeaff;
  --text: #003342;
  --text-muted: #306275;
  --primary: #006576;
  --primary-dim: #005867;
  --primary-container: #62e2ff;
  --secondary: #a0382d;
  --secondary-container: #ffc3bb;
  --tertiary: #006b1b;
  --tertiary-container: #91f78e;
  --outline: rgba(132, 180, 201, 0.55);
  --outline-soft: rgba(132, 180, 201, 0.22);
  --shadow: 0 28px 70px rgba(0, 51, 66, 0.12);
  --shadow-soft: 0 18px 40px rgba(0, 51, 66, 0.09);
  --radius-xl: 48px;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-pill: 999px;
  --content-width: 1120px;
  --dock-height: 110px;
  --motion-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-duration: 700ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(98, 226, 255, 0.52), transparent 34%),
    radial-gradient(circle at bottom right, rgba(145, 247, 142, 0.16), transparent 24%),
    linear-gradient(180deg, #ecf8ff 0%, #dff4ff 60%, #ecf8ff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 28%),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.34), transparent 15%);
}

button,
input,
summary,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  position: relative;
  z-index: 1;
}

.play-shell {
  min-height: 100vh;
}

.play-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(132, 180, 201, 0.28);
}

.play-header__inner {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
  padding: 18px 0 10px;
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.play-search {
  width: 100%;
  max-width: none;
  margin: 0;
}

.play-header__brand {
  display: grid;
  gap: 16px;
  align-content: start;
}

.play-header__logo {
  width: 100%;
  max-width: 200px;
}

.play-header__logo-image {
  display: block;
  width: 100%;
  height: auto;
}

.play-header__fullscreen {
  justify-self: start;
}

.play-search__shell {
  position: relative;
}

.play-search__field {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 84px 0 28px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--surface-panel);
  box-shadow: inset 0 0 0 2px rgba(171, 229, 255, 0.8);
  color: var(--text);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.play-search__field:focus {
  outline: none;
}

.play-search__field--editable {
  background: #fff0a8;
  box-shadow: inset 0 0 0 2px rgba(191, 160, 24, 0.38);
}

.play-search__button {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 48px;
  height: 48px;
  border: none;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #64ffda;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(0, 101, 118, 0.16);
}

.play-search__button-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.play-search__button-icon::before,
.play-search__button-icon::after {
  content: "";
  position: absolute;
}

.play-search__button-icon::before {
  inset: 0;
  border: 3px solid var(--text);
  border-radius: 50%;
}

.play-search__button-icon::after {
  width: 11px;
  height: 3px;
  right: -6px;
  bottom: 0;
  border-radius: 999px;
  background: var(--text);
  transform: rotate(45deg);
  transform-origin: center;
}

.play-search__meta {
  margin-top: 18px;
}

.play-search__title-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.play-search__title-group {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.play-search__results-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.play-search__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.play-search__results,
.play-search__sort {
  color: var(--text-muted);
}

.play-search__results {
  font-size: 0.98rem;
  font-weight: 600;
}

.play-search__results--editable {
  width: 9ch;
  min-height: 42px;
  padding: 0 12px;
  border: none;
  border-radius: var(--radius-pill);
  background: #fff0a8;
  box-shadow: inset 0 0 0 2px rgba(191, 160, 24, 0.38);
  text-align: right;
  color: var(--text);
}

.play-search__results--editable:focus {
  outline: none;
}

.play-search__results-suffix {
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 600;
}

.play-search__sort {
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.play-search__progress {
  position: relative;
  margin-top: 6px;
  padding-top: 0;
  padding-bottom: 8px;
}

.play-search__progress-graphic {
  width: 100%;
  height: 110px;
  display: block;
}

.play-search__progress-fill {
  fill: #6495ed;
  stroke: rgba(100, 149, 237, 0.2);
  stroke-width: 1;
}

.play-search__progress-track {
  fill: rgba(100, 149, 237, 0.16);
  stroke: rgba(100, 149, 237, 0.18);
  stroke-width: 1;
}

.play-search__progress-marker {
  cursor: help;
  pointer-events: auto;
}

.play-search__progress-pin-shape {
  fill: #ff1d25;
  filter: drop-shadow(0 6px 12px rgba(185, 18, 32, 0.22));
}

.play-search__progress-pin-hole {
  fill: #ffffff;
}

.play-search__page-marker-line {
  stroke: rgba(0, 0, 0, 0.88);
  stroke-width: 2;
  stroke-linecap: round;
}

.play-search__page-marker-label {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  fill: rgba(0, 0, 0, 0.84);
}

.play-main {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
  padding: 28px 0 calc(var(--dock-height) + 42px);
}

.play-footer {
  width: min(100% - 32px, var(--content-width));
  margin: -8px auto calc(var(--dock-height) + 18px);
  padding: 0 0 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.notice-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.notice,
.disclaimer {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-muted);
  box-shadow: inset 0 0 0 1px rgba(132, 180, 201, 0.2);
}

.play-card__helper-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-muted);
  box-shadow: inset 0 0 0 1px rgba(132, 180, 201, 0.2);
}

.play-card__helper-line {
  margin: 0;
  line-height: 1.55;
}

.play-card__helper-line + .play-card__helper-line {
  margin-top: 8px;
}

.board {
  position: relative;
  min-height: 740px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(223, 244, 255, 0.92));
  box-shadow: var(--shadow);
  padding: 30px 24px 30px;
}

.board--start {
  min-height: 600px;
}

.board--question {
  min-height: 0;
}

.board--result {
  min-height: 0;
}

.board--fail {
  min-height: 0;
}

.board__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(132, 180, 201, 0.85) 1.2px, transparent 1.3px);
  background-size: 42px 42px;
  background-position: center top;
}

.board__rank {
  position: relative;
  z-index: 3;
  width: fit-content;
  margin: 0 auto;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(132, 180, 201, 0.28);
  display: flex;
  align-items: center;
  gap: 12px;
}

.board__rank-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.board__rank-value {
  font-size: 0.98rem;
  color: var(--text);
}

.board__token {
  filter: drop-shadow(0 26px 42px rgba(0, 101, 118, 0.22));
  transform-origin: center;
}

.board__token--dropping {
  opacity: 1;
}

.board__token--landed {
  opacity: 1;
}

.board__token--pathing {
  will-change: transform;
}

.board__token-shell {
  fill: rgba(255, 255, 255, 0.72);
}

.board__token-fill {
  fill: #62e2ff;
}

.board__token-core {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  fill: #004f5d;
  text-anchor: middle;
  dominant-baseline: middle;
}

.board__paths {
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  z-index: 1;
  width: 100%;
  height: calc(100% - 206px);
  display: block;
  pointer-events: none;
}

.board--question .board__paths {
  top: 58px;
  height: calc(100% - 170px);
}

.board--result .board__paths {
  top: 58px;
  height: calc(100% - 170px);
}

.board--fail .board__paths {
  top: 58px;
  height: calc(100% - 170px);
}

.board__path {
  fill: none;
  stroke: rgba(132, 180, 201, 0.55);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 11 12;
}

.board__path--success {
  stroke: rgba(145, 247, 142, 0.72);
}

.board__path--info {
  stroke: rgba(0, 101, 118, 0.58);
}

.board__path--danger {
  stroke: rgba(160, 56, 45, 0.62);
}

.board__path--neutral {
  stroke: rgba(111, 123, 132, 0.66);
}

.board__path--glow {
  fill: none;
  stroke: rgba(145, 247, 142, 0.28);
  stroke-width: 72;
  stroke-linecap: round;
}

.board__path--glow.board__path--success {
  stroke: rgba(145, 247, 142, 0.3);
}

.board__path--glow.board__path--info {
  stroke: rgba(187, 234, 255, 0.46);
}

.board__path--glow.board__path--danger {
  stroke: rgba(255, 195, 187, 0.42);
}

.board__path--glow.board__path--neutral {
  stroke: rgba(211, 217, 221, 0.56);
}

.board__path--active {
  stroke: rgba(145, 247, 142, 0.92);
  stroke-width: 5;
}

.board__path--active.board__path--success {
  stroke: rgba(0, 94, 23, 0.95);
}

.board__path--active.board__path--info {
  stroke: rgba(0, 101, 118, 0.92);
}

.board__path--active.board__path--danger {
  stroke: rgba(160, 56, 45, 0.84);
}

.board__path--active.board__path--neutral {
  stroke: rgba(111, 123, 132, 0.88);
}

.board__card-slot {
  position: relative;
  z-index: 3;
  width: min(100%, 760px);
  margin: 120px auto 0;
  padding: 0 8px clamp(172px, 24vw, 236px);
}

.board__split-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(340px, 450px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  min-height: 632px;
}

.board__split-panel {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
}

.board__stage--split {
  position: relative;
  min-height: 632px;
}

.board__buckets {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 30px;
  z-index: 2;
  display: grid;
  align-items: end;
  gap: clamp(8px, 1vw, 18px);
}

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

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

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

.board__buckets--count-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.board__buckets--count-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.board__buckets--count-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.board--question .board__buckets {
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 112px;
  align-items: stretch;
}

.board--result .board__buckets {
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 112px;
  align-items: stretch;
}

.board--fail .board__buckets {
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 112px;
  align-items: stretch;
}

.board__bucket {
  position: relative;
  border-style: solid;
  border-width: 0 3px 3px;
  border-radius: 0 0 22px 22px;
  padding: 10px 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  box-shadow:
    0 18px 30px rgba(0, 51, 66, 0.12);
  transition:
    transform 220ms var(--motion-easing),
    box-shadow 220ms var(--motion-easing),
    opacity 220ms ease;
}

.board--question .board__bucket {
  height: 100%;
}

.board--result .board__bucket {
  height: 100%;
}

.board--fail .board__bucket {
  height: 100%;
}

.board__bucket--success {
  background: rgba(145, 247, 142, 0.42);
  color: #005e17;
  border-color: rgba(0, 94, 23, 0.45);
}

.board__bucket--info {
  background: rgba(187, 234, 255, 0.88);
  color: var(--primary);
  border-color: rgba(0, 101, 118, 0.4);
}

.board__bucket--danger {
  background: rgba(255, 195, 187, 0.68);
  color: var(--secondary);
  border-color: rgba(160, 56, 45, 0.42);
}

.board__bucket--neutral {
  background: rgba(229, 234, 237, 0.94);
  color: #58646d;
  border-color: rgba(111, 123, 132, 0.42);
}

.board__bucket--active,
.board__bucket--landed {
  transform: translateY(-6px);
  box-shadow:
    0 18px 30px rgba(0, 51, 66, 0.12);
}

.board__bucket--muted {
  opacity: 0.45;
}

.board__bucket-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.board__bucket-label {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1vw + 0.32rem, 1.3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.board__bucket-caption {
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.play-card {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-soft);
}

.play-card__eyebrow,
.stat-pill__label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.play-card__eyebrow--warm {
  color: var(--secondary);
}

.play-card__eyebrow--danger {
  color: var(--secondary);
}

.play-card__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.play-card__learn-more {
  flex-shrink: 0;
}

.play-card__restart {
  flex-shrink: 0;
}

.play-card__title,
.sheet__title {
  margin: 16px 0 0;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.play-card__title {
  font-size: clamp(1.95rem, 3vw, 3.2rem);
}

.play-card__title--intro {
  max-width: none;
}

.play-card__body,
.field__help,
.customize__hint,
.customize__preview,
.sheet-card__body,
.sheet-card__note {
  color: var(--text-muted);
  line-height: 1.62;
}

.play-card__body {
  margin-top: 16px;
}

.play-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.play-card__inline-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 18px;
}

.play-card__inline-actions--wrap {
  flex-wrap: wrap;
  align-items: center;
}

.metric-card {
  margin-top: 22px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(223, 244, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(132, 180, 201, 0.2);
}

.metric-card__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.metric-card__hint {
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.metric-card__slider {
  width: 100%;
  margin-top: 16px;
  accent-color: #6495ed;
  cursor: pointer;
}

.metric-card__scale {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.metric-card__scale-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button--primary {
  background: linear-gradient(15deg, var(--primary), var(--primary-dim));
  color: #ddf7ff;
  box-shadow: 0 16px 26px rgba(0, 101, 118, 0.18);
}

.button--secondary {
  background: rgba(223, 244, 255, 0.96);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(132, 180, 201, 0.35);
}

.button--cta {
  background: linear-gradient(15deg, #b63428, #d94b3d);
  color: #fff6f4;
  box-shadow: 0 16px 26px rgba(182, 52, 40, 0.22);
}

.button--large {
  min-height: 60px;
  padding: 0 30px;
}

.button--compact {
  min-height: 44px;
  padding: 0 18px;
}

.customize {
  margin-top: 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(223, 244, 255, 0.54);
  box-shadow: inset 0 0 0 1px rgba(132, 180, 201, 0.18);
}

.customize__summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 700;
}

.customize__summary::-webkit-details-marker {
  display: none;
}

.customize__body {
  padding: 0 22px 22px;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.field__label {
  font-weight: 700;
}

.field__input {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: none;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(132, 180, 201, 0.36);
}

.field__input:focus {
  outline: 3px solid rgba(98, 226, 255, 0.35);
}

.field-error {
  color: var(--secondary);
  font-size: 0.92rem;
  font-weight: 600;
}

.choice-stack {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

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

.choice-pill {
  min-height: 74px;
  padding: 18px 22px;
  border: none;
  border-radius: var(--radius-pill);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 51, 66, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.choice-pill--success {
  background: rgba(145, 247, 142, 0.24);
  color: #005e17;
}

.choice-pill--info {
  background: rgba(187, 234, 255, 0.72);
  color: var(--primary);
}

.choice-pill--danger {
  background: rgba(255, 195, 187, 0.66);
  color: var(--secondary);
}

.choice-pill--neutral {
  background: rgba(229, 234, 237, 0.96);
  color: #58646d;
}

.choice-pill--active {
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.86),
    0 14px 24px rgba(0, 51, 66, 0.12);
}

@media (hover: hover) {
  .button:hover,
  .dock__action:hover,
  .choice-pill:not(:disabled):hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
      inset 0 0 0 3px rgba(255, 255, 255, 0.9),
      0 20px 34px rgba(0, 51, 66, 0.16);
  }

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

.choice-pill:disabled {
  opacity: 1;
  cursor: default;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.stat-pill {
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(223, 244, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(132, 180, 201, 0.18);
  display: grid;
  gap: 8px;
}

.stat-pill__value {
  font-family: var(--font-heading);
  font-size: 1.42rem;
  letter-spacing: -0.04em;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.dock__inner {
  pointer-events: auto;
  max-width: calc(100% - 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  box-shadow: 0 22px 48px rgba(0, 51, 66, 0.12);
}

.dock__action {
  min-height: 54px;
  padding: 0 22px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.dock__action--primary {
  background: linear-gradient(15deg, var(--primary), var(--primary-dim));
  color: #ddf7ff;
  box-shadow: 0 14px 24px rgba(0, 101, 118, 0.18);
}

.dock__action--soft {
  background: rgba(236, 248, 255, 0.98);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(132, 180, 201, 0.3);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 51, 66, 0.24);
}

.sheet__panel {
  width: min(100%, 820px);
  max-height: min(82vh, 760px);
  overflow: auto;
  border-radius: 36px;
  background: rgba(236, 248, 255, 0.98);
  box-shadow: 0 34px 60px rgba(0, 51, 66, 0.18);
  padding: 24px;
}

.sheet__header {
  display: grid;
  gap: 12px;
  position: relative;
  padding-right: 56px;
}

.sheet__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(132, 180, 201, 0.35);
  cursor: pointer;
}

.sheet__close-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.sheet__close-line--one {
  transform: translate(-50%, -50%) rotate(45deg);
}

.sheet__close-line--two {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.sheet__cards {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.sheet-card {
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(132, 180, 201, 0.18);
  display: grid;
  gap: 12px;
}

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

  .play-header__brand {
    justify-items: start;
  }

  .board {
    min-height: 700px;
  }

  .board__split-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
  }

  .board__stage--split {
    min-height: 540px;
  }

  .board__card-slot {
    width: min(100%, 700px);
  }

  .stat-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 20px;
    --dock-height: 132px;
  }

  .play-header__inner,
  .play-main {
    width: min(100% - 20px, var(--content-width));
  }

  .play-header__inner {
    gap: 18px;
  }

  .play-header__logo {
    max-width: 126px;
  }

  .play-header__fullscreen {
    width: auto;
  }

  .play-search__field {
    min-height: 58px;
    padding-left: 22px;
    padding-right: 74px;
  }

  .play-search__meta {
    margin-top: 14px;
  }

  .play-search__title-row {
    align-items: flex-start;
  }

  .play-search__sort {
    margin-left: 0;
  }

  .board {
    min-height: 660px;
    padding: 22px 16px 22px;
  }

  .board__stage--split {
    min-height: 500px;
  }

  .board__paths {
    top: 58px;
    left: 0;
    right: 0;
    height: calc(100% - 190px);
  }

  .board--question .board__paths {
    top: 56px;
    height: calc(100% - 158px);
  }

  .board--result .board__paths {
    top: 56px;
    height: calc(100% - 158px);
  }

  .board--fail .board__paths {
    top: 56px;
    height: calc(100% - 158px);
  }

  .board__token {
    width: 84px;
    height: 84px;
  }

  .board__card-slot {
    margin-top: 104px;
    padding: 0 0 176px;
  }

  .board__buckets {
    left: 16px;
    right: 16px;
    bottom: 22px;
    gap: 8px;
  }

  .board--question .board__buckets {
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 102px;
  }

  .board--result .board__buckets {
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 102px;
  }

  .board--fail .board__buckets {
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 102px;
  }

  .board__bucket {
    padding: 9px 10px 9px;
    border-radius: 0 0 18px 18px;
  }

  .board__bucket-label {
    font-size: 0.88rem;
  }

  .board__bucket-caption {
    font-size: 0.62rem;
  }

  .choice-stack--inline {
    grid-template-columns: 1fr;
  }

  .dock {
    bottom: 12px;
  }

  .dock__inner {
    width: calc(100% - 20px);
    padding: 12px;
  }

  .dock__action,
  .button {
    width: 100%;
  }

  .play-card__learn-more,
  .play-header__fullscreen,
  .play-card__restart,
  .play-card__inline-actions .button,
  .play-card__inline-actions .dock__action {
    width: auto;
  }
}

@media (max-width: 440px) {
  .play-header__inner {
    padding: 14px 0 8px;
  }

  .play-header__logo {
    max-width: 116px;
  }

  .play-search__title {
    font-size: 2rem;
  }

  .play-search__title-row {
    gap: 10px;
  }

  .play-card {
    padding: 22px;
  }

  .play-card__title {
    font-size: 1.85rem;
  }

  .board {
    min-height: 620px;
  }

  .board__stage--split {
    min-height: 470px;
  }

  .board__card-slot {
    padding-bottom: 164px;
  }

  .board__bucket-badge {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .board__bucket-label {
    font-size: 0.8rem;
  }
}
