/* μTable Ludo. Shared paper, ink, Inter/Fraunces and the v7 invitation card;
   the four-colour board is a scoped exception like Connect Four's blue rack.
   Board palette: flat, softened traditional colours that sit beside rust and deep green. */
@import url('/design-tokens.css');
:root{
  /* Ludo board: token / yard / panel tint / home lane / text on yard */
  --ludo-red:#c4513b;--ludo-red-yard:#d2664f;--ludo-red-tint:#f7ddd4;--ludo-red-lane:#eba493;--ludo-red-deep:#9a3b28;
  --ludo-green:#3a7f5b;--ludo-green-yard:#549572;--ludo-green-tint:#dcede2;--ludo-green-lane:#a4cbb3;--ludo-green-deep:#2b5f43;
  --ludo-yellow:#d29d22;--ludo-yellow-yard:#e2b446;--ludo-yellow-tint:#f9ecc6;--ludo-yellow-lane:#efd38a;--ludo-yellow-deep:#4a3708;
  --ludo-blue:#3a6ea2;--ludo-blue-yard:#5585b5;--ludo-blue-tint:#dbe7f3;--ludo-blue-lane:#a6c1de;--ludo-blue-deep:#284f78;
  --ludo-track:#fffdf8;--ludo-line:#e4d9c6;--ludo-edge:#e8dcc5;
}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.45 var(--sans)}
button,input{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.page{width:min(100%,592px);margin:0 auto;padding:0 16px calc(28px + env(safe-area-inset-bottom))}

/* Header — same shape as the shared μTable header */
.topbar{position:relative;display:flex;align-items:center;gap:12px;height:60px}
.brand{display:inline-flex;align-items:center;height:44px;padding-bottom:4px;color:var(--ink);text-decoration:none;font:540 25px/1 var(--serif);letter-spacing:-.015em}
.brand:hover{color:var(--ink-soft)}
.game-picker{position:relative;display:flex;align-items:center;min-width:0;padding-left:13px}
.game-picker::before{content:'';position:absolute;left:0;top:50%;width:1px;height:20px;margin-top:-10px;background:var(--line-strong)}
.game-picker-button{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 10px 0 8px;border:0;border-radius:10px;background:none;font:600 16px/1 var(--sans)}
.game-picker-button:hover,.game-picker-button[aria-expanded="true"]{background:rgba(35,41,37,.07)}
.game-picker-chevron{color:var(--muted);transition:transform .15s var(--ease-overlay)}
.game-picker-button[aria-expanded="true"] .game-picker-chevron{transform:rotate(180deg)}
.game-picker-label{padding-left:8px;font:600 16px/44px var(--sans)}
.game-switch{position:absolute;z-index:20;top:calc(100% + 6px);left:5px;width:236px;max-height:calc(100dvh - 80px);overflow-y:auto;padding:6px;border:1px solid var(--invite-line);border-radius:14px;background:var(--invite-surface);box-shadow:var(--invite-shadow)}
.game-switch a{display:flex;align-items:center;gap:12px;height:48px;padding:0 12px;border-radius:10px;color:var(--invite-text);font-size:15px;font-weight:500;text-decoration:none}
.game-switch a:hover,.game-switch a:focus-visible{background:var(--paper);outline:none}
.game-switch a[aria-current="page"]{color:var(--ink);font-weight:650}
.game-switch a[aria-current="page"]::after{content:'';width:12px;height:7px;margin:-3px 2px 0 auto;border:solid var(--invite-action);border-width:0 0 2px 2px;transform:rotate(-45deg)}
.game-icon{display:grid;flex:none;place-items:center;width:22px;height:22px}.game-icon svg{width:20px;height:20px}
.menu-wrap{position:relative;margin-left:auto}
.menu-button{display:grid;place-items:center;width:44px;height:44px;margin-right:-10px;border:0;border-radius:12px;background:none}
.menu-button:hover,.menu-button[aria-expanded="true"]{background:rgba(35,41,37,.07)}
.menu{position:absolute;z-index:20;top:calc(100% + 6px);right:-6px;min-width:188px;padding:6px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 12px 32px rgba(40,30,10,.16)}
.menu button{display:block;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:9px;background:none;font-size:15px;text-align:left}
.menu button:hover,.menu button:focus-visible{background:var(--paper);outline:none}
.menu hr{margin:4px 6px;border:0;border-top:1px solid var(--line)}
.menu .menu-danger{color:var(--danger)}
.diagnostics-note{margin:0;color:var(--muted);font-size:13px;text-align:right}

/* Turn headline */
.status-row{display:flex;align-items:center;justify-content:center;min-height:52px;padding:2px 0 6px}
.headline{display:inline-flex;align-items:center;gap:8px;margin:0;font:520 19px/1.25 var(--serif);text-align:center;outline:none}
.headline:empty{visibility:hidden}
.headline::before{content:'';flex:none;width:8px;height:8px;border-radius:50%;background:#b9b8ad}
.headline[data-go="true"]::before{background:var(--accent);animation:pulse 1.6s ease-in-out infinite}
@keyframes pulse{50%{opacity:.35}}

/* Board */
.board-wrap{position:relative;display:grid}
.board-wrap>*{grid-area:1/1}
.board-wrap:has(>.invite-card:not([hidden])){margin-bottom:88px}
.board{container-type:inline-size;width:100%;aspect-ratio:1;padding:1.8%;display:grid;grid-template:repeat(15,minmax(0,1fr))/repeat(15,minmax(0,1fr));
  border-radius:18px;background:var(--ludo-edge);box-shadow:var(--shadow),inset 0 0 0 1px #d8c9ac;transition:filter var(--motion-overlay) var(--ease-overlay)}
.board.invite-mode{filter:blur(.6px)}
.board-cell{position:relative;min-width:0;min-height:0;padding:0;border:0;background:var(--ludo-track);box-shadow:inset 0 0 0 .5px var(--ludo-line);display:grid;place-items:center;cursor:default}
.board-cell>svg{position:absolute;inset:20%;width:60%;height:60%;pointer-events:none}
.board-cell.safe>svg path{fill:none;stroke:#ae9f83;stroke-width:1.6;stroke-linejoin:round}
.board-cell.start>svg{transform:rotate(var(--turn))}
.board-cell.start>svg path{fill:none;stroke:#fffdf7;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.start-red{background:var(--ludo-red-yard)}.start-green{background:var(--ludo-green-yard)}.start-yellow{background:var(--ludo-yellow-yard)}.start-blue{background:var(--ludo-blue-yard)}
.lane-red{background:var(--ludo-red-lane)}.lane-green{background:var(--ludo-green-lane)}.lane-yellow{background:var(--ludo-yellow-lane)}.lane-blue{background:var(--ludo-blue-lane)}
.board-center{position:relative;pointer-events:none}
.board-center svg{position:absolute;inset:0;width:100%;height:100%}
.home-red{fill:var(--ludo-red-yard)}.home-green{fill:var(--ludo-green-yard)}.home-yellow{fill:var(--ludo-yellow-yard)}.home-blue{fill:var(--ludo-blue-yard)}
.board-cell.center{background:transparent;box-shadow:none;z-index:1}

/* Yards are seats: name band on the outer edge, four numbered sockets */
.yard{position:relative;display:flex;flex-direction:column;padding:0 6% 6%;background:var(--yard);--yard:var(--ludo-red-yard);--tint:var(--ludo-red-tint);--deep:var(--ludo-red-deep);--on-yard:#fffdf7}
.yard-bottom{flex-direction:column-reverse;padding:6% 6% 0}
.yard-red{border-top-left-radius:10px}.yard-green{border-top-right-radius:10px;--yard:var(--ludo-green-yard);--tint:var(--ludo-green-tint);--deep:var(--ludo-green-deep)}
.yard-yellow{border-bottom-right-radius:10px;--yard:var(--ludo-yellow-yard);--tint:var(--ludo-yellow-tint);--deep:var(--ludo-yellow-deep);--on-yard:#3d2e08}
.yard-blue{border-bottom-left-radius:10px;--yard:var(--ludo-blue-yard);--tint:var(--ludo-blue-tint);--deep:var(--ludo-blue-deep)}
.yard-band{flex:0 0 17%;display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;color:var(--on-yard);font:600 clamp(11.5px,3.1cqi,15px)/1.1 var(--sans);white-space:nowrap}
.yard-name{flex:none;margin-left:-.6em;padding:.26em .6em;border-radius:99px;transition:background .2s,color .2s}
.yard-meta{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:.88em;font-weight:500;opacity:.9}
.yard.is-active .yard-name{background:#fffdf7;color:var(--deep);box-shadow:0 1px 3px #2a1d0c2e}
.yard-yellow.is-active .yard-name{color:#6a4f0c}
.yard-panel{flex:1;display:grid;grid-template:1fr 1fr/1fr 1fr;place-items:center;padding:6%;border-radius:12%;background:var(--tint);transition:box-shadow .2s}
.yard.is-active .yard-panel{box-shadow:0 0 0 3px #fffdf7cc}
.yard-socket{width:76%;aspect-ratio:1;border-radius:50%;background:color-mix(in srgb,var(--yard) 22%,var(--tint));box-shadow:inset 0 1px 2px #4a35161f}
.yard-socket::before{content:attr(data-slot);color:color-mix(in srgb,var(--yard) 62%,var(--tint));font:600 clamp(9px,2.5cqi,14px)/1 var(--sans)}
.yard-socket.has-token::before{content:none}
.yard.is-unused{--yard:color-mix(in srgb,var(--ludo-line) 70%,var(--ludo-track))}
.yard.is-unused .yard-panel{background:#faf6ee}
.yard.is-unused .yard-socket{background:#efe9dd}
.yard.is-unused .yard-socket::before{color:#d4cab7}
.yard.is-unused.yard-green,.yard.is-unused.yard-blue,.yard.is-unused.yard-red,.yard.is-unused.yard-yellow{--on-yard:#8b8577}
.yard.is-open .yard-meta{display:none}
.yard.is-away .yard-panel,.yard.is-away .yard-name{opacity:.55}

/* Tokens: flat discs with a paper outline */
.token-mark{position:absolute;left:50%;top:50%;z-index:1;width:76%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;
  background:var(--c);color:#fff;box-shadow:0 0 0 1.5px #fffdf7,0 1px 2.5px 1px #2a1d0c45;font:700 clamp(8.5px,2.4cqi,13px)/1 var(--sans);
  transform:translate(-50%,-50%) translate(calc((var(--stack,0) - (var(--stacked,1) - 1) / 2) * 22%),calc((var(--stack,0) - (var(--stacked,1) - 1) / 2) * 22%))}
.token-mark.red{--c:var(--ludo-red)}.token-mark.green{--c:var(--ludo-green)}.token-mark.blue{--c:var(--ludo-blue)}
.token-mark.yellow{--c:var(--ludo-yellow);color:#3d2e08}
.yard-socket .token-mark{width:84%;font-size:clamp(10px,3.2cqi,17px);box-shadow:0 0 0 2px #fffdf7,0 2px 4px #2a1d0c40}
.board-cell.center .token-mark{width:56%}
.board-cell.is-legal{cursor:pointer}
.board-cell.is-legal .token-mark{box-shadow:0 0 0 1.5px #fffdf7,0 0 0 4px color-mix(in srgb,var(--c) 42%,#fff),0 2px 4px 1px #2a1d0c45}
.board-cell.is-legal:hover .token-mark{filter:brightness(1.06)}
.board-cell.preview .token-mark{box-shadow:0 0 0 1.5px #fffdf7,0 0 0 4.5px var(--accent),0 2px 4px 1px #2a1d0c45}
.board-cell.dest::before{content:'';position:absolute;inset:6%;border:2px dashed var(--accent);border-radius:50%;z-index:5;pointer-events:none}
.board-cell.ghost::after{content:'';width:28%;aspect-ratio:1;border-radius:50%;background:var(--ghost);opacity:.42}
.board-cell.dest.ghost::after,.board-cell.preview.ghost::after{display:none}
.board-cell.dest.ludo-motion-source,.board-cell.dest.ludo-motion-destination,
.board-cell.preview.ludo-motion-source,.board-cell.preview.ludo-motion-destination{outline:none}
.board-cell.ghost.has-token::after{content:none}
.board-cell.ludo-motion-source{outline:1.5px solid color-mix(in srgb,var(--accent) 62%,transparent);outline-offset:-3px}
.board-cell.ludo-motion-destination{outline:1.5px dashed color-mix(in srgb,var(--accent) 66%,transparent);outline-offset:-2px}
.ludo-motion-layer{position:absolute;inset:0;z-index:5;overflow:visible;pointer-events:none;container-type:inline-size}
.ludo-motion-token{position:absolute;left:0;top:0;z-index:2;transform-origin:top left;pointer-events:none;will-change:transform}
.token-mark.ludo-motion-hidden,.stack-count.ludo-motion-hidden{visibility:hidden!important}
.ludo-motion-ring{position:absolute;z-index:1;border:1.5px solid var(--accent);border-radius:50%;pointer-events:none;transform-origin:center}
.ludo-motion-ring.contact{border-color:var(--ink-soft);border-style:dotted}
.ludo-motion-ring.landing{border-color:color-mix(in srgb,var(--accent) 70%,transparent)}
.stack-count{position:absolute;z-index:3;right:-4%;top:-4%;min-width:46%;height:46%;padding:0 3px;border-radius:99px;display:grid;place-items:center;background:var(--ink);color:#fff;box-shadow:0 0 0 1.5px #fffdf7;font:700 clamp(8px,2cqi,11px)/1 var(--sans)}
.safe-status{position:absolute;z-index:4;left:1%;bottom:1%;display:grid;place-items:center;width:40%;aspect-ratio:1;border-radius:50%;background:#fffdf7;box-shadow:0 0 0 1px #d8cfbe,0 1px 2px #2a1d0c2e;pointer-events:none}
.safe-status svg{width:72%;height:72%}
.safe-status path{fill:var(--accent);stroke:#fffdf7;stroke-width:.7;stroke-linejoin:round}
.board[aria-disabled="true"] .board-cell{cursor:default}

/* v7 invitation card */
.share-row{display:flex;gap:8px}
.primary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 16px;border:0;border-radius:10px;background:var(--invite-action);color:#fff;font-size:16px;font-weight:600}
.primary:hover:not(:disabled){background:var(--invite-action-hover)}
.primary:disabled{background:var(--invite-soft);color:var(--invite-muted);cursor:default}
.primary.soft,.primary.soft:hover:not(:disabled){background:var(--invite-soft);color:var(--invite-action)}
.primary.soft:hover:not(:disabled){background:#dfe9e2}
.share-row .primary{flex:1}
.icon-button{display:grid;flex:0 0 46px;height:46px;place-items:center;border:1px solid var(--invite-line);border-radius:10px;background:var(--invite-surface);color:var(--invite-action)}
.icon-button:hover:not(:disabled){border-color:var(--invite-action);background:var(--invite-soft)}
.icon-button:disabled{opacity:.55;cursor:default}
.invite-status{min-height:20px;margin:12px 0;color:var(--invite-muted);font-size:14px;line-height:1.45}
.invite-status:empty{display:none}
.secondary-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;border-top:1px solid var(--invite-line)}
.invite-status:not(:empty)+.secondary-actions,.local-options+.secondary-actions{margin-top:0}
.text-button{display:flex;align-items:center;min-height:48px;padding:0;border:0;background:none;color:var(--invite-text);font:500 14px/1.35 var(--sans)}
.text-button:hover{color:var(--invite-action-hover);text-decoration:underline;text-underline-offset:4px}
.secondary-actions .text-button:last-of-type:not(:first-child){margin-left:auto}
.seats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:0 0 14px}
.seat{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:9px 2px 8px;border-radius:12px;background:#f6f3ec;font-size:12.5px;font-weight:600;line-height:1.2;text-align:center}
.seat small{min-height:1.2em;color:var(--invite-muted);font-size:11px;font-weight:500}
.seat.open{background:none;border:1px dashed var(--line-strong);color:var(--invite-muted);font-weight:500}
.pip{flex:none;width:20px;height:20px;border-radius:50%;background:var(--player-color,transparent)}
.seat.open .pip{box-shadow:inset 0 0 0 1.5px var(--line-strong)}
.local-options{padding-bottom:16px}
.field-label{margin:-4px 0 8px;color:var(--invite-muted);font-size:14px}
.count-switch{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;margin-bottom:12px;padding:3px;border-radius:12px;background:#f0ede6}
.count-switch button{min-height:44px;border:0;border-radius:9px;background:none;color:var(--invite-muted);font-size:15px;font-weight:600}
.count-switch button[aria-checked="true"]{background:var(--invite-surface);color:var(--invite-code);box-shadow:0 1px 2px #312d211f,0 0 0 1px #312d210d}
.local-options .primary{width:100%}
#join-panel{padding-bottom:0}
#join-panel h1{margin-bottom:10px}
#join-panel label{display:block;margin:0 0 6px;color:var(--invite-muted);font-size:14px}
#join-panel .primary{width:100%}
.invite-card input{width:100%;height:46px;border:1px solid #cfcabd;border-radius:10px;padding:0 12px;background:var(--invite-surface)}
.invite-card>#landing-panel>#invite-url-label{display:block;margin:12px 0 4px;color:var(--invite-muted);font-size:13px}
.invite-card #invite-url{font-size:13px}
.error{min-height:8px;margin:6px 0;color:#963c2b;font-size:14px}
.retry{display:block;margin:10px auto 0;min-height:44px;padding:0 16px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);font-weight:600}

/* Turn tray: the die beside the one thing to do with it */
.play-panel{margin-top:10px}
.tray{display:flex;align-items:center;justify-content:center;gap:10px;min-height:60px}
.die{flex:none;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);place-items:center;width:52px;height:52px;padding:8px;border-radius:12px;background:#fffefb;
  box-shadow:0 0 0 1px #d8cfbe,0 0 0 3.5px var(--die-ring,transparent),0 2px 5px #2a1d0c1f,inset 0 -3px 0 #ece4d4}
.die:not(.is-fresh){opacity:.62}
.die[data-value=""]::after{content:'';grid-area:2/2;width:8px;height:8px;border-radius:50%;background:#d6cdbb}
.die i{width:8px;height:8px;border-radius:50%;background:var(--ink)}
.turn-actions{flex:0 1 280px;display:flex}
.roll{flex:1;min-height:52px;border-radius:12px}
.roll.wait:disabled{background:var(--invite-soft);color:var(--invite-muted)}
.token-choices{flex:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:460px}
.token-choice{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:52px;padding:0 8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:13px;font-weight:600;white-space:nowrap}
.token-choice .token-mark{position:static;flex:none;width:24px;transform:none;font-size:11px}
.token-choice:not(:disabled){border-color:#c6bca9;background:var(--invite-surface);box-shadow:0 1px 2px #2a1d0c14}
.token-choice:not(:disabled):hover{border-color:var(--ink-soft)}
.token-choice:disabled{opacity:.45;cursor:default}
.token-choice[aria-pressed="true"]{border-color:transparent;background:var(--player-color);color:#fff;box-shadow:0 2px 6px #2a1d0c2e}
.token-choice.yellow[aria-pressed="true"]{color:#3d2e08}
.token-choice[aria-pressed="true"] .token-mark{box-shadow:0 0 0 1.5px #fffdf7}
.choice-short{display:none}
.turn-note{min-height:20px;margin:6px 0 0;color:var(--muted);font-size:13px;text-align:center}
.result{display:flex;align-items:center;gap:14px;margin-top:4px;padding:16px 16px 16px 18px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--card-shadow)}
.result-pip{width:40px;height:40px;box-shadow:0 0 0 2px #fffdf7,0 1px 3px #2a1d0c33}
.result-text{flex:1;min-width:0}
.result-text strong,.result-text small{display:block}
.result-text strong{font:540 23px/1.15 var(--serif);letter-spacing:-.01em}
.result-text small{margin-top:4px;color:var(--muted);font-size:13px;line-height:1.45}
.result-text small:empty{display:none}
.result .primary{flex:none;height:46px;padding:0 22px;font-size:15px}
.game-actions{display:flex;align-items:center;justify-content:flex-end;margin-top:6px}
.tool-button{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 12px;margin-right:-12px;border:0;border-radius:10px;background:none;font-size:15px;font-weight:600}
.tool-button:hover:not(:disabled){background:rgba(35,41,37,.07)}
.tool-button:disabled{color:var(--muted);opacity:.55;cursor:default}
.action-card{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin-top:8px;padding:14px 16px;border:1px solid var(--invite-line);border-radius:16px;background:var(--invite-surface);box-shadow:0 1px 2px rgba(40,35,20,.05)}
.action-copy strong,.action-copy span{display:block}
.action-copy strong{font-size:15px}.action-copy span{margin-top:2px;color:var(--muted);font-size:13px;line-height:1.4}
.action-buttons{display:flex;gap:8px}
.secondary,.danger{min-width:120px;height:44px;padding:0 16px;border-radius:10px;font-size:15px;font-weight:600}
.secondary{border:1px solid var(--line-strong);background:var(--invite-surface)}
.danger{border:0;background:var(--danger);color:#fff}
.danger:hover{filter:brightness(.94)}
.how-to-play{margin-top:16px;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.how-to-play h2{margin:0 0 6px;font:540 19px/1.25 var(--serif)}
.how-to-play p,.how-to-play li{color:#50564f;font-size:15px;line-height:1.6}
.how-to-play p{margin:0}
.how-to-play ul{margin:12px 0 0;padding-left:22px}
.how-to-play li+li{margin-top:8px}
.page-footer{margin-top:18px;color:var(--muted);font-size:12px;text-align:center}
.public-info{margin:44px 0 0;padding:28px 8px 0;border-top:1px solid var(--line);color:var(--muted);font-size:15px;line-height:1.7}
.public-info h2{margin:0 0 10px;color:var(--ink);font:540 22px/1.25 var(--serif);letter-spacing:-.01em}
.public-info h3{margin:22px 0 8px;color:var(--ink);font-size:15px;line-height:1.5}
.public-info p{margin:0 0 16px}

@media (max-width:480px){
  .page{padding:0 12px calc(20px + env(safe-area-inset-bottom))}
  .topbar{height:54px}.brand{font-size:23px}
  .game-picker{position:static;padding-left:0}
  .game-picker::before{position:static;flex:none;margin:0 12px 0 0}
  .game-switch{top:calc(100% + 1px);left:auto;right:0}
  .status-row{min-height:44px;padding:0 0 4px}
  .board{border-radius:14px;padding:1.6%}
  .yard-red{border-top-left-radius:8px}.yard-green{border-top-right-radius:8px}.yard-yellow{border-bottom-right-radius:8px}.yard-blue{border-bottom-left-radius:8px}
  .tray{gap:8px;min-height:62px}
  .die{width:50px;height:50px}
  .turn-actions{flex:1}
  .token-choices{gap:6px}
  .token-choice{flex-direction:column;gap:3px;min-height:56px;padding:4px 2px;font-size:11.5px}
  .token-choice .token-mark{width:22px;font-size:10.5px}
  .choice-long{display:none}.choice-short{display:inline}
  .result{flex-wrap:wrap;padding:14px;gap:12px}.result-pip{width:34px;height:34px}.result .primary{flex:1 1 100%}
  .action-card{padding:12px 14px}.action-buttons{flex:1 1 100%;display:grid;grid-template-columns:1fr 1fr}.secondary,.danger{min-width:0}
}
@media (max-width:340px){
  .headline{font-size:17px}
  .die{width:46px;height:46px;padding:7px}.die i{width:7px;height:7px}
  .token-choice{font-size:11px}
}
/* Short landscape screens: the expanded card may sit below the board edge and scroll with the page. */
@media (max-height:620px) and (min-width:481px){.board-wrap{max-width:min(100%,calc(100dvh - 140px));margin-inline:auto}}
@media (prefers-reduced-motion:reduce){
  :root{--motion-overlay:0ms}
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* Quiet public navigation below the play area. */
.trust-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 12px auto 0; color: var(--muted); font-size: 14px; }
.trust-links[hidden] { display: none; }
.trust-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: inherit; text-decoration: none; }
.trust-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
