@import url("../styles-shared.css");

.game-intro h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--llm-navy);
}

.game-intro__block {
  margin-bottom: 0.75rem;
}

.game-intro__block h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--llm-navy);
}

.game-intro__block p,
.game-intro__block ul {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
}

.game-intro__block ul {
  padding-left: 1.25rem;
}

.game-intro__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  padding: 0;
}

.game-intro__skills li {
  background: #e8f2fc;
  border: 1px solid #b8cfe6;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.philosophy,
.future-ideas {
  font-size: 1.05rem;
  line-height: 1.55;
}

.future-ideas {
  margin-top: 1rem;
  font-size: 0.98rem;
  color: var(--llm-muted);
}

.mode-grid {
  display: grid;
  gap: 0.85rem;
}

.mode-card {
  background: var(--llm-card);
  border: 1px solid var(--llm-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.mode-card--active {
  border-color: var(--llm-accent);
  box-shadow: 0 4px 14px rgba(10, 92, 173, 0.14);
}

.mode-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.mode-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--llm-navy);
}

.mode-card p {
  margin: 0 0 0.5rem;
  color: var(--llm-text);
  font-size: 1.02rem;
}

#gamePanel {
  margin-top: 1.25rem;
}

.game-ai-note {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: #eef6ff;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--llm-navy);
}

.player-icon-picker {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: #f4f8fc;
  border: 2px solid var(--llm-border);
  border-radius: 12px;
}

.player-icon-picker__title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--llm-navy);
}

.player-icon-picker__hint {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--llm-muted);
}

.player-icon-picker__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  max-width: 22rem;
}

.player-icon-btn {
  min-height: 3.25rem;
  font-size: 1.65rem;
  line-height: 1;
  border: 2px solid #c5d4e4;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.player-icon-btn:hover {
  border-color: var(--llm-accent);
}

.player-icon-btn:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 2px;
}

.player-icon-btn--active {
  border-color: var(--llm-accent);
  box-shadow: 0 0 0 3px rgba(10, 92, 173, 0.25);
  background: #e8f2fc;
}

.player-icon-btn[aria-checked="true"] {
  border-color: var(--llm-accent);
}

.reflection-style-picker {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border: 2px solid var(--llm-border);
  border-radius: 12px;
}

.reflection-style-picker__title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--llm-navy);
}

.reflection-style-picker__hint {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--llm-muted);
}

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

.reflection-style-btn {
  min-height: 2.85rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.98rem;
  font-weight: 700;
  border: 2px solid #c5d4e4;
  border-radius: 10px;
  background: #fff;
  color: var(--llm-navy);
  cursor: pointer;
}

.reflection-style-btn--active {
  border-color: var(--llm-accent);
  background: #e8f2fc;
}

.reflection-style-btn:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 2px;
}

.game-outcome-panel {
  margin-top: 0.85rem;
}

.game-outcome-panel .game-result {
  margin-top: 0;
}

.game-reflection {
  margin-top: 0.65rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: #f4f8fc;
  border: 2px solid #b8cfe6;
  color: var(--llm-navy);
}

.game-reflection__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--llm-navy);
}

.game-reflection__disclaimer {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--llm-muted);
  line-height: 1.35;
}

.game-reflection__line {
  margin: 0 0 0.55rem;
  line-height: 1.5;
  font-size: 1.05rem;
}

.game-reflection__line:last-of-type {
  margin-bottom: 0.75rem;
}

.game-reflection__copy-status {
  font-size: 0.85rem;
  color: var(--llm-muted, #5a6a7a);
  margin: 0.5rem 0 0;
  min-height: 1.25em;
}

.game-reflection__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-reflection--child .game-reflection__title {
  font-size: 1.25rem;
}

.game-reflection--child .game-reflection__line {
  font-size: 1.12rem;
  line-height: 1.45;
}

.game-reflection--teen .game-reflection__line {
  font-size: 1.04rem;
}

.game-reflection--senior {
  background: #fff;
  border-color: #2a5f8f;
}

.game-reflection--senior .game-reflection__title {
  font-size: 1.35rem;
}

.game-reflection--senior .game-reflection__line {
  font-size: 1.2rem;
  line-height: 1.55;
  font-weight: 500;
}

.game-reflection--senior .game-reflection__disclaimer {
  font-size: 0.95rem;
}

.sound-toggle-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.75rem;
}

.sound-toggle {
  min-height: 3rem;
  padding: 0.5rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 700;
  border: 2px solid #c5d4e4;
  border-radius: 10px;
  background: #fff;
  color: var(--llm-navy);
  cursor: pointer;
}

.sound-toggle:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 2px;
}

.sound-toggle--on {
  border-color: var(--llm-accent);
  background: #e8f2fc;
  color: #0a3d6e;
}

.sound-toggle__hint {
  font-size: 0.92rem;
  color: var(--llm-muted);
}

.board-change-notice {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.75rem;
  background: #fff8e6;
  border: 2px solid #c4a84a;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #5c4a1a;
  text-align: center;
}

.dynamic-difficulty {
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #f4f8fc;
  border: 2px solid var(--llm-border);
  border-radius: 12px;
}

.dynamic-difficulty__title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  color: var(--llm-navy);
}

.dynamic-difficulty__hint {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--llm-muted);
}

.dynamic-difficulty__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.dynamic-difficulty-btn {
  min-height: 3rem;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid #c5d4e4;
  border-radius: 10px;
  background: #fff;
  color: var(--llm-navy);
  cursor: pointer;
}

.dynamic-difficulty-btn--active {
  border-color: var(--llm-accent);
  background: #e8f2fc;
  box-shadow: 0 0 0 2px rgba(10, 92, 173, 0.2);
}

.game-cell--board-changed {
  box-shadow: inset 0 0 0 2px #c4a84a, 0 1px 2px rgba(26, 45, 66, 0.08);
  background-color: rgba(255, 248, 230, 0.97);
}

.game-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.game-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.game-legend__swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.game-legend__swatch--you {
  background: #0a5cad;
}

.game-legend__swatch--phantom {
  background: linear-gradient(135deg, #e8e0f5 0%, #c9b8e8 100%);
  border-color: #7a5cad;
}

.game-legend__swatch--ladder {
  background: #c8e6d0;
}

.game-legend__swatch--snake {
  background: #f5d0d0;
}

.game-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.game-status__pill {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #eef2f6;
  font-weight: 600;
}

.game-status__pill--you {
  background: #dceeff;
  color: #0a3d6e;
}

.game-status__pill--phantom {
  background: #efe8f8;
  color: #4a3068;
}

.game-status__icon {
  font-size: 1.15rem;
  line-height: 1;
  margin-right: 0.15rem;
}

.game-status__icon--phantom {
  filter: drop-shadow(0 1px 1px rgba(74, 48, 104, 0.35));
}

.game-board-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: linear-gradient(145deg, #f8fafc 0%, #e8eef5 100%);
  border-radius: 14px;
  border: 2px solid var(--llm-border);
}

.game-board {
  position: relative;
  min-width: 300px;
  max-width: 560px;
  margin: 0 auto;
}

.game-board__cells {
  position: relative;
  z-index: 2;
}

.game-board__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Board-background snake & ladder graphics (behind cells) */
.board-graphic {
  pointer-events: none;
}

.snake-body--shadow-fill {
  fill: rgba(139, 26, 26, 0.18);
  stroke: none;
}

.snake-body--fill {
  fill: rgba(196, 74, 74, 0.42);
  stroke: #a83838;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.snake-head__skull {
  fill: rgba(179, 58, 58, 0.42);
  stroke: #8b1a1a;
  stroke-width: 1.8;
}

.snake-head__mouth {
  fill: rgba(139, 26, 26, 0.45);
  stroke: #8b1a1a;
  stroke-width: 1;
}

.snake-head__eye {
  fill: #5c1515;
}

.snake-tail__tip {
  fill: rgba(196, 74, 74, 0.35);
  stroke: #8b1a1a;
  stroke-width: 1;
}

.snake-tail__dot {
  fill: #8b1a1a;
  opacity: 0.5;
}

.ladder-rail {
  fill: none;
  stroke: #3d8f5c;
  stroke-width: 3.5;
  stroke-linecap: round;
  opacity: 0.5;
}

.ladder-rung {
  stroke: #2d7a4a;
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.45;
}

.ladder-cap {
  stroke: #2d7a4a;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.55;
}

.game-board__row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.game-board__row:last-child {
  margin-bottom: 0;
}

.game-cell {
  position: relative;
  aspect-ratio: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3px 2px 1.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid #c5d4e4;
  box-shadow: 0 1px 2px rgba(26, 45, 66, 0.08);
  overflow: visible;
  contain: layout style;
}

.game-cell__num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  font-size: clamp(0.7rem, 2.2vw, 0.95rem);
  font-weight: 700;
  color: #3d5166;
  line-height: 1;
  text-shadow: 0 0 3px #fff, 0 0 6px #fff;
}

.game-cell__tokens {
  position: absolute;
  left: 50%;
  bottom: 2px;
  z-index: 3;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  gap: 2px;
  max-width: calc(100% - 4px);
  transform: translateX(-50%);
  pointer-events: none;
}

.game-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  min-height: 1.35rem;
  font-size: clamp(0.9rem, 2.8vw, 1.2rem);
  font-weight: 800;
  padding: 0;
  border-radius: 6px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transform-origin: center center;
  will-change: filter, opacity;
}

.game-token--you {
  background: #0a5cad;
  border: 2px solid #fff;
}

.game-token--pulse {
  animation: token-pulse 2.4s ease-in-out infinite;
}

@keyframes token-pulse {
  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 2px rgba(10, 92, 173, 0.45));
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(10, 92, 173, 0.95)) drop-shadow(0 0 8px rgba(10, 92, 173, 0.55));
  }
}

.game-token--phantom {
  background: linear-gradient(145deg, #f0ebfa 0%, #d4c4ef 100%);
  border: 2px solid #7a5cad;
  padding: 0.05rem 0.2rem;
  z-index: 2;
  opacity: 0.95;
}

.game-token__ghost {
  font-size: clamp(1rem, 3vw, 1.3rem);
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(74, 48, 104, 0.4));
}

.game-cell__link-hint {
  display: block;
  font-size: clamp(0.5rem, 1.6vw, 0.68rem);
  font-weight: 800;
  line-height: 1.1;
  margin-top: 1px;
}

.game-cell__link-hint--snake {
  color: #8b1a1a;
}

.game-cell__link-hint--ladder {
  color: #1f5c34;
}

.game-cell--ladder-foot {
  background: #e8f5eb;
  border-color: #5a9e6f;
}

.game-cell--ladder-top {
  background: #dff0e4;
  border-color: #3d8f5c;
  box-shadow: inset 0 0 0 2px rgba(45, 122, 74, 0.25);
}

.game-cell--snake-head {
  background: #fceeee;
  border-color: #c76a6a;
}

.game-cell--snake-tail {
  background: #fff5f5;
  border-color: #d99a9a;
  box-shadow: inset 0 0 0 2px rgba(179, 58, 58, 0.2);
}

/* Position highlights: inset only — never grow the cell or row */
.game-cell--you {
  background-color: rgba(220, 238, 255, 0.97);
  box-shadow: inset 0 0 0 2px #0a5cad, 0 1px 2px rgba(26, 45, 66, 0.08);
}

.game-cell--ai {
  background-color: rgba(239, 232, 248, 0.97);
  box-shadow: inset 0 0 0 2px #7a5cad, 0 1px 2px rgba(26, 45, 66, 0.08);
}

.game-cell--both {
  background-color: rgba(228, 236, 252, 0.98);
  box-shadow: inset 0 0 0 2px #0a5cad, inset 0 0 10px rgba(122, 92, 173, 0.35), 0 1px 2px rgba(26, 45, 66, 0.08);
}

.game-cell--both .game-cell__tokens {
  gap: 2px;
}

.classic-controls {
  margin-bottom: 1rem;
}

.classic-dice-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: #f4f8fc;
  border: 2px solid var(--llm-border);
  border-radius: 12px;
  max-width: 18rem;
}

.classic-dice-area__label {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--llm-navy);
}

.classic-dice-result {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 4.5rem;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--llm-accent);
  background: #fff;
  border: 3px solid var(--llm-accent);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(10, 92, 173, 0.15);
}

.classic-dice-result--phantom {
  color: #5a3d8a;
  border-color: #7a5cad;
  font-size: 2.25rem;
}

.classic-dice-result--pop {
  animation: dice-pop 0.32s ease-out;
}

@keyframes dice-pop {
  0% {
    transform: scale(0.85);
  }

  60% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

.classic-roll-btn {
  width: 100%;
  min-height: 3.25rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.classic-dice-hint {
  margin: 0;
  font-size: 0.95rem;
  color: var(--llm-muted);
  text-align: center;
}

.game-pick-label {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--llm-navy);
}

.dice-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  max-width: 24rem;
  margin-bottom: 1rem;
}

.dice-btn {
  min-height: 3.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  border: 2px solid var(--llm-accent);
  border-radius: 12px;
  background: #fff;
  color: var(--llm-accent);
  cursor: pointer;
}

.dice-btn:hover:not(:disabled) {
  background: #e8f2fc;
}

.dice-btn:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 2px;
}

.dice-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.game-log {
  margin-top: 0.85rem;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--llm-border);
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.45;
  max-height: 9rem;
  overflow-y: auto;
}

.game-result {
  margin-top: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.game-result--win {
  background: #e6f6ea;
  color: var(--llm-success);
  border: 2px solid #5a9e6f;
}

.game-result--lose {
  background: #fde8e8;
  color: #8b1a1a;
  border: 2px solid #c76a6a;
}

.game-result--tie {
  background: #f3f0e8;
  color: #5c4a1a;
  border: 2px solid #c4a84a;
}

.dice-display {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 5rem;
  color: var(--llm-navy);
}

@media (min-width: 701px) {
  .game-cell {
    min-height: 2.75rem;
  }
}

/* Phone / narrow: single column, compact spacing, full-width board */
@media (max-width: 700px) {
  body.llm-applet {
    overflow-x: hidden;
  }

  .llm-applet-main {
    max-width: 100%;
    padding: 0.75rem 0.65rem 1.5rem;
  }

  .llm-applet-nav {
    padding: 0.55rem 0.65rem;
    font-size: 0.92rem;
  }

  .llm-card {
    padding: 0.75rem 0.8rem;
    margin-bottom: 0.65rem;
  }

  .llm-applet-hero {
    margin-bottom: 0.25rem;
  }

  .philosophy {
    font-size: 1rem;
    margin-bottom: 0.65rem;
  }

  .mode-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .mode-card {
    padding: 0.7rem 0.8rem;
  }

  .mode-card p {
    font-size: 0.98rem;
    margin-bottom: 0.4rem;
  }

  .future-ideas {
    margin-top: 0.65rem;
    font-size: 0.92rem;
  }

  .game-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  #gamePanel {
    margin-top: 0.5rem;
  }

  .game-panel h2 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
  }

  .game-ai-note {
    margin-bottom: 0.55rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.95rem;
  }

  .player-icon-picker {
    margin-bottom: 0.55rem;
    padding: 0.6rem 0.7rem;
  }

  .player-icon-picker__title {
    font-size: 1.02rem;
  }

  .player-icon-picker__hint {
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
  }

  .player-icon-picker__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    max-width: 100%;
    width: 100%;
  }

  .player-icon-btn {
    min-height: 2.9rem;
    font-size: 1.5rem;
  }

  .dynamic-difficulty {
    padding: 0.6rem 0.7rem;
    margin-bottom: 0.55rem;
  }

  .dynamic-difficulty__grid {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .dynamic-difficulty-btn {
    min-height: 2.85rem;
  }

  .board-change-notice {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }

  .reflection-style-picker__grid {
    grid-template-columns: 1fr;
  }

  .reflection-style-btn {
    min-height: 2.75rem;
  }

  .game-reflection__actions .llm-btn {
    flex: 1 1 100%;
  }

  .sound-toggle-wrap {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0.55rem;
  }

  .sound-toggle {
    width: 100%;
    min-height: 2.9rem;
  }

  .game-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  .game-status {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
    font-size: 1rem;
  }

  .game-status__pill {
    width: 100%;
    box-sizing: border-box;
  }

  .dice-display {
    min-width: 0;
    width: 100%;
    padding: 0.4rem 0.55rem;
    background: #f4f8fc;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.35;
  }

  .game-board-wrap {
    order: 0;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.55rem;
    padding: 0.3rem;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .game-board {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .game-board__row {
    gap: 2px;
    margin-bottom: 2px;
  }

  .game-cell {
    min-height: 0;
    padding: 2px 1px 1.15rem;
    border-width: 1px;
    border-radius: 5px;
  }

  .game-cell__num {
    font-size: clamp(0.52rem, 2.6vw, 0.72rem);
  }

  .game-cell__link-hint {
    font-size: clamp(0.42rem, 1.8vw, 0.58rem);
  }

  .game-token {
    width: 1.2rem;
    height: 1.2rem;
    min-width: 1.2rem;
    min-height: 1.2rem;
    font-size: clamp(0.85rem, 2.8vw, 1.05rem);
  }

  #choiceControls,
  .classic-controls {
    width: 100%;
    margin-bottom: 0.55rem;
  }

  .game-pick-label {
    font-size: 1.02rem;
    margin-bottom: 0.4rem;
  }

  .dice-picker {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    max-width: 100%;
    width: 100%;
    margin-bottom: 0.55rem;
  }

  .dice-btn {
    min-height: 3rem;
    font-size: 1.25rem;
  }

  .classic-controls {
    margin-bottom: 0.55rem;
  }

  .classic-dice-area {
    max-width: 100%;
    width: 100%;
    padding: 0.65rem 0.75rem;
    gap: 0.5rem;
  }

  .classic-dice-result {
    min-width: 4rem;
    min-height: 4rem;
    font-size: 2.35rem;
  }

  .classic-roll-btn {
    min-height: 3rem;
  }

  .game-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .game-actions .llm-btn {
    width: 100%;
    min-height: 3rem;
  }

  .game-log {
    margin-top: 0.5rem;
    padding: 0.6rem 0.65rem;
    font-size: 0.95rem;
    max-height: 7.5rem;
  }

  .game-result {
    margin-top: 0.5rem;
    padding: 0.75rem 0.85rem;
    font-size: 1.02rem;
  }
}
