/* Snakes & Ladders — whole-class team game, projected */
.sl { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; padding-block: 16px 56px; align-items: start; }
.sl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sl-head h1 { margin: 0; font: 800 clamp(28px, 4vw, 42px)/1.05 var(--font-display); letter-spacing: -0.03em; }
.sl-head .kicker { display: block; font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }

.board-wrap { position: relative; }
.board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; position: relative; }
.sq { position: relative; aspect-ratio: 1; border-radius: 10px; padding: 6px; display: flex; flex-direction: column; justify-content: space-between; font-weight: 700; min-width: 0; }
.sq .n { font-size: clamp(12px, 1.5vw, 16px); }
.sq .t { font-size: clamp(9px, 1vw, 11px); letter-spacing: 0.04em; text-transform: uppercase; align-self: center; }
.sq.easy { background: #DDF3E4; color: #155D2E; }
.sq.hard { background: #FCEBC7; color: #7A4B00; }
.sq.ladder { background: #D3EEF0; color: #0F5E64; }
.sq.snake { background: #F9DADA; color: #8E1F1F; }
.sq.end { background: #F5C518; color: #1C1C1E; }
.sq.land { box-shadow: 0 0 0 3px var(--strand); }
.overlay { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.tokens { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.token { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.35); transition: left .35s ease, top .35s ease; display: grid; place-items: center; font: 800 11px var(--font-body); color: #fff; }

.panel { background: var(--surface); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.teams { display: flex; flex-direction: column; gap: 6px; }
.team { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--bg); font-weight: 600; }
.team i { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.team .pos { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.team.turn { box-shadow: inset 0 0 0 2px var(--strand); }
.die-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.die { width: 64px; height: 64px; border-radius: 14px; background: #fff; color: #1C1C1E; display: grid; place-items: center; font: 800 32px var(--font-display); box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 rgba(0,0,0,0.15); }
.die.rolling { animation: wobble .5s ease; }
@keyframes wobble { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.sq-label { font-size: 14px; font-weight: 700; color: var(--muted); }
.q-text { margin: 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; line-height: 1.3; }
.answer-box { padding: 14px 18px; border-radius: 12px; background: var(--good-bg); }
.answer-box .working { margin-top: 6px; color: var(--muted); font-size: 15px; }
.result-line { font-weight: 700; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.key { font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.key b { color: var(--fg); }

.setup { max-width: 640px; margin: 24px auto 64px; display: flex; flex-direction: column; gap: 18px; }
.setup h1 { margin: 0; font: 800 clamp(32px, 5vw, 48px)/1.05 var(--font-display); letter-spacing: -0.03em; }
.setup ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.team-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.team-inputs .gm-input { width: 100%; }
.notes { background: var(--sunken); border-radius: 16px; padding: 16px 18px; font-size: 15px; }
.notes h2 { margin: 0 0 6px; font-size: 16px; }
.notes ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

.qr { background: #fff; padding: 12px; border-radius: 12px; width: fit-content; }
.exit { max-width: 560px; margin: 24px auto 64px; display: flex; flex-direction: column; gap: 14px; }
.exit h1 { margin: 0; font: 800 34px/1.1 var(--font-display); letter-spacing: -0.02em; }
.conf { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 6px; align-items: center; font-size: 14px; }
.conf label { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px; border-radius: 10px; background: var(--sunken); cursor: pointer; }

@media (max-width: 900px) { .sl { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .team-inputs { grid-template-columns: minmax(0, 1fr); } .token { width: 16px; height: 16px; border-width: 2px; font-size: 8px; } }
.sq .n, .sq .t { position: relative; z-index: 3; background: inherit; border-radius: 4px; padding: 0 3px; width: fit-content; }
