/* Tower of Hanoi extras: stone board look, coach line, progress bar, phone-fit compaction. */
#card-grid { background: linear-gradient(180deg, #1e293b, #0f172a); padding: 8px; border-radius: 16px; box-shadow: inset 0 2px 0 rgb(255 255 255 / .06), 0 6px 18px rgb(15 23 42 / .25); }
.toh-peg { background: #243247; }
.toh-peg::before { background: #94a3b8; }
.toh-peg::after { background: #475569; }
.toh-peg .toh-lbl { color: #94a3b8; }
.toh-peg.goal { background: #0c4a6e; }
.toh-peg.goal::after { background: #38bdf8; box-shadow: 0 0 10px rgb(56 189 248 / .6); }
.toh-peg.sel { background: #1e3a8a; }
.toh-peg.over { background: #14532d; }
.toh-peg.hint-to { background: #422006; }
.toh-disc { overflow: hidden; }
.toh-disc::after { content: ""; position: absolute; left: 6%; right: 6%; top: 2px; height: 4px; border-radius: 3px; background: rgb(255 255 255 / .35); pointer-events: none; }
.toh-peg.coach { animation: toh-coach 1.1s ease-in-out infinite; }
@keyframes toh-coach { 0%, 100% { box-shadow: 0 0 0 0 rgb(56 189 248 / 0); } 50% { box-shadow: 0 0 0 4px rgb(56 189 248 / .7); } }
.toh-prog { height: 6px; border-radius: 3px; background: #e2e8f0; overflow: hidden; margin: 2px 0 4px; }
.toh-prog i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #0ea5e9, #22c55e); transform-origin: left; transform: scaleX(0); transition: transform .25s ease-out; }
#toh-coach { text-align: center; font-weight: 700; font-size: .9rem; color: #0369a1; background: #e0f2fe; border-radius: 10px; padding: .45rem .6rem; margin: .4rem 0; }
#toh-coach[hidden] { display: none; }
#toh-strip { text-align: center; font: 600 .75rem 'JetBrains Mono', monospace; color: #475569; margin: .25rem 0; }
#toh-win-goal { font-weight: 600; }
.toh-win { margin-bottom: max(.75rem, env(safe-area-inset-bottom)); }
@media (max-width: 520px) {
  .facts, .game-title p { display: none; }
  .game-title { margin-bottom: .4rem; }
  .game-title h1 { font-size: 1.25rem; }
  .toh-howto { margin: 0 0 .25rem; }
  .toh-chips { margin: .25rem 0; }
  .btn-row { margin: .5rem 0; }
  #card-grid { margin: .4rem 0; }
}
@media (prefers-reduced-motion: reduce) { .toh-peg.coach { animation: none; } .toh-prog i { transition: none; } }
/* finish: rod caps, floor shadow under each disc stack, lit board edge */
.toh-peg::before { box-shadow: 1px 0 2px rgb(0 0 0 / .3); background-image: linear-gradient(90deg, rgb(255 255 255 / .35), rgb(0 0 0 / .12)); }
.toh-peg:not(.goal)::after { background-image: linear-gradient(180deg, rgb(255 255 255 / .22), rgb(0 0 0 / .18)); }
.toh-disc { background-image: linear-gradient(180deg, rgb(255 255 255 / .18), rgb(0 0 0 / .1)); }
.toh-peg.over { box-shadow: inset 0 0 18px rgb(34 197 94 / .35); }
.toh-win { box-shadow: 0 8px 24px rgb(14 165 233 / .22), 0 0 0 4px rgb(14 165 233 / .12); }
