/* Ludo: the cross board, glossy tokens, a tumbling die and the players down the side. Everything is prefixed ld-. */
.ld {
  --ld-bg: #04060f; --ld-panel: #0b1328; --ld-line: #1c2b4a; --ld-text: #dfe9ff; --ld-muted: #8aa3c4;
  --ld-accent: #55d6ff; --ld-warm: #ffd166; --ld-pink: #ff6b81;
  --ld-btn: #111d3b; --ld-btn-text: #dfe9ff;
  --ld-bs: 480px;
  max-width: 1020px; margin: 0 auto; padding: 10px 8px 16px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  color: var(--ld-text); border-radius: 12px; position: relative; font-variant-numeric: tabular-nums;
}
.ld *, .ld *::before, .ld *::after { box-sizing: border-box; }
.ld [hidden] { display: none !important; }

/* ---- top bar ---- */
.ld-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ld-opts { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; font-size: 13px; color: var(--ld-muted); flex: 1 1 340px; min-width: 0; }
.ld-sel { display: inline-flex; align-items: center; gap: 6px; }
.ld-sel > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ld-sel select { background: var(--ld-btn); color: var(--ld-btn-text); border: 1px solid var(--ld-line); border-radius: 8px; padding: 0 8px; min-height: 36px; font: inherit; font-weight: 600; cursor: pointer; }
.ld-sel select:focus-visible { outline: 2px solid var(--ld-accent); outline-offset: 2px; }
.ld-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ld-btn { background: var(--ld-btn); color: var(--ld-btn-text); border: 1px solid var(--ld-line); border-radius: 9px; padding: 0 13px; min-height: 40px; font-weight: 700; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; -webkit-tap-highlight-color: transparent; font-family: inherit; }
.ld-btn:hover:not(:disabled) { border-color: var(--ld-accent); }
.ld-btn:disabled { opacity: .42; cursor: default; }
.ld-btn:focus-visible { outline: 2px solid var(--ld-accent); outline-offset: 2px; }
.ld-btn-primary { background: #ffd166; border-color: #ffd166; color: #1a1200; }
.ld-btn-primary:hover:not(:disabled) { background: #ffe08a; border-color: #ffe08a; }
.ld-icon { width: 40px; padding: 0; }
.ld-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#ld-sound[aria-pressed="false"] .on, #ld-sound[aria-pressed="true"] .off { display: none; }
#ld-sound[aria-pressed="false"] { color: var(--ld-muted); }

/* ---- the table ---- */
.ld-main { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ld-wide .ld-main { flex-direction: row; align-items: flex-start; justify-content: center; gap: 16px; }
.ld-play { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ld-status { font-weight: 700; font-size: 15px; height: 1.5em; line-height: 1.5; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; color: var(--ld-text); display: flex; align-items: center; gap: 7px; }
.ld-status.hot { color: var(--ld-warm); }
.ld-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: 0 0 8px currentColor; }
.ld-dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.ld-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .3; animation: ld-blink 1.1s infinite; }
.ld-dots i:nth-child(2) { animation-delay: .18s; } .ld-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes ld-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.ld-boardwrap { position: relative; width: var(--ld-bs); height: var(--ld-bs); flex: none; }
.ld-board { display: block; width: 100%; height: 100%; touch-action: manipulation; outline: none; border-radius: 4.2%; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .5)); cursor: default; }
.ld-board:focus-visible { box-shadow: 0 0 0 2px var(--ld-accent); }
.ld-board.can { cursor: pointer; }
.ld-clock { position: absolute; top: 2%; right: 2%; background: rgba(8, 14, 32, .9); border: 1px solid var(--ld-line); border-radius: 999px; padding: 3px 11px; font-weight: 800; font-size: 14px; color: var(--ld-warm); pointer-events: none; }
.ld-clock.low { color: var(--ld-pink); border-color: var(--ld-pink); box-shadow: 0 0 12px rgba(255, 107, 129, .5); }

/* the board's drawing */
.ld-base { fill: #0a1226; }
.ld-frame { fill: none; stroke: #2a3f6b; stroke-width: .08; }
.ld-tile { fill: #121f40; stroke: #263a66; stroke-width: .035; }
.ld-tile.alt { fill: #0f1a37; }
.ld-pad { fill: #070d1d; stroke: rgba(255, 255, 255, .08); stroke-width: .04; }
.ld-socket { fill: rgba(255, 255, 255, .04); stroke-width: .06; stroke-dasharray: .16 .12; }
.ld-off { opacity: .2; }
.ld-star { fill: none; stroke: #7f95bd; stroke-width: .07; stroke-linejoin: round; }
.ld-star.own { stroke: rgba(4, 6, 15, .55); fill: rgba(255, 255, 255, .3); }
.ld-arrow { fill: none; stroke-width: .11; stroke-linecap: round; stroke-linejoin: round; }
.ld-homeglow { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: .05; }

/* tokens */
.ld-tok { transition: opacity .2s; }
.ld-tok .ring { fill: none; stroke: #fff; stroke-width: .07; opacity: 0; }
.ld-tok.can .ring { opacity: 1; animation: ld-ring 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ld-tok.can { cursor: pointer; }
.ld-tok.sel .ring { stroke: #ffd166; stroke-width: .1; animation: none; opacity: 1; }
.ld-tok.dim { opacity: .82; }
.ld-tok text { font: 800 .42px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: #06101f; text-anchor: middle; pointer-events: none; }
@keyframes ld-ring { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.22); opacity: .45; } }
.ld-markbg { fill: none; stroke: rgba(4, 8, 20, .62); stroke-width: .17; pointer-events: none; }
.ld-mark { fill: none; stroke: #fff; stroke-width: .08; stroke-dasharray: .2 .13; opacity: .95; animation: ld-spin 6s linear infinite; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.ld-mark.cap { stroke: #ff3b5c; stroke-dasharray: none; stroke-width: .13; fill: rgba(255, 59, 92, .2); animation: ld-hit .7s ease-in-out infinite alternate; }
@keyframes ld-hit { from { transform: scale(.94); } to { transform: scale(1.14); } }
.ld-markdot { pointer-events: none; opacity: .9; }
.ld-path { fill: none; stroke-width: .11; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .02 .26; opacity: .95; pointer-events: none; }
@keyframes ld-spin { to { transform: rotate(360deg); } }
.ld-ydie { transition: opacity .25s; pointer-events: none; }
.ld-ydie rect { fill: #f4f7ff; stroke: #aab6d3; stroke-width: .04; }
.ld-ydie circle { fill: #0b1328; }
.ld-ydie.old { opacity: .3; }
.ld-ydie.pop { animation: ld-pop .32s cubic-bezier(.3, 1.6, .5, 1); transform-box: fill-box; transform-origin: center; }
.ld-ydie.ask rect { fill: #ffd166; stroke: #fff2c4; }
.ld-ydie.ask { animation: ld-ask 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ld-pop { from { transform: scale(.3); } to { transform: scale(1); } }
@keyframes ld-ask { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.13); } }
.ld-fx circle, .ld-fx rect, .ld-fx path { pointer-events: none; }
.ld-badge { font: 800 .5px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-anchor: middle; pointer-events: none; }
.ld-place rect { fill: rgba(4, 8, 20, .82); stroke: #ffd166; stroke-width: .05; }
.ld-place text { font: 800 .62px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: #ffd166; text-anchor: middle; }
.ld-yname { font: 700 .44px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-anchor: middle; fill: rgba(4, 8, 20, .78); pointer-events: none; }

/* ---- side panel: the die, the players, the record ---- */
.ld-side { background: var(--ld-panel); border: 1px solid var(--ld-line); border-radius: 12px; padding: 10px 12px; width: min(100%, var(--ld-bs)); }
.ld-wide .ld-side { width: 262px; flex: none; margin-top: calc(1.5em + 6px); }
.ld-tray { display: flex; align-items: center; gap: 12px; padding: 2px 0 10px; border-bottom: 1px solid var(--ld-line); margin-bottom: 10px; }
.ld-diebox { --pc: #55d6ff; width: 70px; height: 70px; flex: none; perspective: 340px; border: 0; padding: 0; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--pc) 26%, transparent), transparent 68%); border-radius: 18px; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.ld-diebox:disabled { cursor: default; }
.ld-diebox:focus-visible { outline: 2px solid var(--ld-accent); outline-offset: 2px; }
.ld-die { --s: 46px; position: relative; display: block; width: var(--s); height: var(--s); transform-style: preserve-3d; transform: translateZ(-23px) rotateX(0deg) rotateY(0deg); transition: transform var(--ld-rollms, .62s) cubic-bezier(.17, .7, .28, 1); }
.ld-die i { position: absolute; inset: 0; border-radius: 9px; background: linear-gradient(145deg, #ffffff, #d9e1f2); box-shadow: inset 0 0 0 1px #b4c0da, inset 0 -4px 7px rgba(20, 30, 60, .2); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 6px; backface-visibility: hidden; }
.ld-die b { width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4d5b7c, #0b1328 70%); place-self: center; }
.ld-die .f1 { transform: translateZ(23px); }
.ld-die .f6 { transform: rotateY(180deg) translateZ(23px); }
.ld-die .f3 { transform: rotateY(90deg) translateZ(23px); }
.ld-die .f4 { transform: rotateY(-90deg) translateZ(23px); }
.ld-die .f5 { transform: rotateX(90deg) translateZ(23px); }
.ld-die .f2 { transform: rotateX(-90deg) translateZ(23px); }
.ld-die .f1 b { grid-area: 2 / 2; width: 11px; height: 11px; background: radial-gradient(circle at 35% 30%, #ff9aa8, #d42a48 70%); }
.ld-die .f2 b:nth-child(1), .ld-die .f3 b:nth-child(1), .ld-die .f4 b:nth-child(1), .ld-die .f5 b:nth-child(1), .ld-die .f6 b:nth-child(1) { grid-area: 1 / 1; }
.ld-die .f2 b:nth-child(2) { grid-area: 3 / 3; }
.ld-die .f3 b:nth-child(2) { grid-area: 2 / 2; } .ld-die .f3 b:nth-child(3) { grid-area: 3 / 3; }
.ld-die .f4 b:nth-child(2), .ld-die .f5 b:nth-child(2) { grid-area: 1 / 3; }
.ld-die .f4 b:nth-child(3), .ld-die .f5 b:nth-child(3) { grid-area: 3 / 1; }
.ld-die .f4 b:nth-child(4), .ld-die .f5 b:nth-child(4) { grid-area: 3 / 3; }
.ld-die .f5 b:nth-child(5) { grid-area: 2 / 2; }
.ld-die .f6 b:nth-child(2) { grid-area: 2 / 1; } .ld-die .f6 b:nth-child(3) { grid-area: 3 / 1; }
.ld-die .f6 b:nth-child(4) { grid-area: 1 / 3; } .ld-die .f6 b:nth-child(5) { grid-area: 2 / 3; } .ld-die .f6 b:nth-child(6) { grid-area: 3 / 3; }
.ld-diebox.tumble { animation: ld-bounce var(--ld-rollms, .62s) cubic-bezier(.3, .6, .4, 1); }
.ld-diebox.wait .ld-die { animation: ld-wobble .5s linear infinite; }
.ld-diebox.ask { animation: ld-ask 1s ease-in-out infinite; }
@keyframes ld-bounce { 0% { transform: translateY(0); } 28% { transform: translateY(-14px); } 55% { transform: translateY(0); } 74% { transform: translateY(-5px); } 100% { transform: translateY(0); } }
@keyframes ld-wobble { 0% { transform: translateZ(-23px) rotateX(0) rotateY(0); } 100% { transform: translateZ(-23px) rotateX(360deg) rotateY(720deg); } }
.ld-traytext { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.ld-roll { min-height: 42px; font-size: 15px; width: 100%; }
.ld-roll.ask { box-shadow: 0 0 0 0 rgba(255, 209, 102, .6); animation: ld-glow 1.2s ease-out infinite; }
@keyframes ld-glow { 0% { box-shadow: 0 0 0 0 rgba(255, 209, 102, .55); } 100% { box-shadow: 0 0 0 12px rgba(255, 209, 102, 0); } }
.ld-note { font-size: 12.5px; color: var(--ld-muted); min-height: 1.35em; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-note b { color: var(--ld-text); }

.ld-order { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ld-order li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: #0a1226; border: 1px solid var(--ld-line); min-width: 0; min-height: 40px; }
.ld-order li.cur { border-color: var(--pc); box-shadow: 0 0 0 1px var(--pc), 0 0 14px color-mix(in srgb, var(--pc) 35%, transparent); }
.ld-order li.won { border-color: #ffd166; }
.ld-order li.out { opacity: .75; }
.ld-chip { width: 16px; height: 16px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff, var(--pc) 45%, color-mix(in srgb, var(--pc) 55%, #000) 100%); box-shadow: 0 0 8px color-mix(in srgb, var(--pc) 60%, transparent); }
.ld-pn { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.ld-pn em { font-style: normal; font-weight: 600; color: var(--ld-muted); font-size: 12px; margin-left: 3px; }
.ld-homepips { display: inline-flex; gap: 3px; flex: none; }
.ld-homepips i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--pc); opacity: .55; }
.ld-homepips i.in { background: var(--pc); opacity: 1; box-shadow: 0 0 6px var(--pc); }
.ld-medal { font-weight: 800; font-size: 12px; color: #1a1200; background: #ffd166; border-radius: 999px; padding: 1px 7px; flex: none; }
.ld-mini { width: 20px; height: 20px; flex: none; display: block; }
.ld-mini rect { fill: #eef2fb; } .ld-mini circle { fill: #0b1328; }
.ld-mini.none { visibility: hidden; }
.ld-record { margin-top: 10px; font-size: 12.5px; color: var(--ld-muted); line-height: 1.45; }
.ld-record b { color: var(--ld-text); }
.ld .bt-strip { margin-bottom: 8px; }
/* in the narrow side panel the table line gets a row of its own above its two buttons */
.ld .bt-strip .bt-msg { flex: 1 1 9.5em; }

/* ---- dialogs ---- */
.ld-overlay { position: fixed; inset: 0; background: rgba(2, 5, 14, .72); display: flex; align-items: center; justify-content: center; padding: 14px; z-index: 2000; backdrop-filter: blur(3px); }
.ld-dialog { background: #0b1328; border: 1px solid #244b6b; border-radius: 16px; padding: 20px 22px; width: min(100%, 440px); max-height: min(92vh, 720px); overflow: auto; color: #dfe9ff; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); animation: ld-dlg .22s cubic-bezier(.2, .9, .3, 1.2); overscroll-behavior: contain; }
.ld-dialog.wide { width: min(100%, 520px); }
@keyframes ld-dlg { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.ld-dialog h3 { margin: 0 0 6px; font-size: 21px; line-height: 1.2; }
.ld-dialog h4 { margin: 16px 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ld-muted); }
.ld-dialog p { margin: 0 0 10px; color: #b9c9e4; font-size: 14px; line-height: 1.5; }
.ld-dialog p b { color: #dfe9ff; }
.ld-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.ld-actions .ld-btn { min-height: 42px; flex: 1 1 auto; }
.ld-wait { font-size: 13px; color: var(--ld-muted); align-self: center; flex: 1 1 100%; }
.ld-stand { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.ld-stand li { display: grid; grid-template-columns: 34px 16px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 10px; background: #0a1226; border: 1px solid var(--ld-line); border-radius: 10px; font-size: 13.5px; }
.ld-stand li.me { border-color: var(--ld-accent); }
.ld-stand .pl { font-weight: 800; color: #ffd166; }
.ld-stand .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-stand .st { color: var(--ld-muted); font-size: 12px; white-space: nowrap; }
.ld-tally { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; }
.ld-tally th, .ld-tally td { padding: 4px 4px; text-align: center; color: #b9c9e4; border-bottom: 1px solid var(--ld-line); }
.ld-tally th { color: var(--ld-muted); font-weight: 600; }
.ld-tally td:first-child, .ld-tally th:first-child { text-align: left; font-weight: 700; color: #dfe9ff; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-tally .six { color: #ffd166; font-weight: 700; }
.ld-field { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.ld-field > span { font-size: 13px; color: #b9c9e4; font-weight: 600; }
.ld-field small { grid-column: 2; color: var(--ld-muted); font-size: 12px; margin-top: -3px; line-height: 1.35; }
.ld-seg { display: flex; flex-wrap: wrap; gap: 5px; }
.ld-seg button { background: #0a1226; color: #b9c9e4; border: 1px solid var(--ld-line); border-radius: 8px; min-height: 36px; padding: 0 10px; font: 600 13px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ld-seg button:hover { border-color: var(--ld-accent); }
.ld-seg button[aria-pressed="true"] { background: #16305a; border-color: var(--ld-accent); color: #fff; }
.ld-seg button:focus-visible { outline: 2px solid var(--ld-accent); outline-offset: 2px; }
.ld-rules-text { font-size: 14px; }
.ld-rules-text ul { margin: 0 0 10px; padding-left: 18px; color: #b9c9e4; font-size: 14px; line-height: 1.5; }
.ld-rules-text li { margin-bottom: 4px; }
.ld-rules-text li b { color: #dfe9ff; }
.ld-keys { font-size: 12.5px; color: var(--ld-muted); }
.ld-keys kbd { background: #111d3b; border: 1px solid var(--ld-line); border-radius: 5px; padding: 0 5px; font: 600 12px ui-monospace, Menlo, monospace; color: #dfe9ff; }
.ld-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: #13224a; border: 1px solid #2c4a80; color: #dfe9ff; border-radius: 20px; padding: 9px 18px; font-weight: 700; font-size: 13.5px; z-index: 2100; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); width: max-content; max-width: calc(100vw - 24px); text-align: center; pointer-events: none; }

/* ---- small screens: one compact top row, the players in a grid ---- */
.ld-narrow .ld-sel > span { display: none; }
.ld-narrow .ld-opts { flex: 1 1 100%; gap: 6px; }
.ld-narrow .ld-tools { flex: 1 1 100%; flex-wrap: nowrap; }
.ld-narrow .ld-tools .ld-btn:not(.ld-icon) { flex: 1 1 auto; padding: 0 8px; }
.ld-narrow .ld-order { grid-template-columns: 1fr 1fr; }
.ld-narrow .ld-order li { padding: 5px 7px; gap: 6px; }
.ld-narrow .ld-pn em { display: none; }
.ld-narrow .ld-tray { padding-bottom: 8px; margin-bottom: 8px; }
.ld-narrow .ld-side { padding: 8px 10px; }

/* ---- full screen: everything fits the stage, nothing scrolls ---- */
.ld-fit { height: 100%; width: 100%; margin: 0; display: flex; flex-direction: column; overflow: hidden; max-width: none; padding: 8px 8px 10px; }
.ld-fit .ld-main { flex: 1 1 auto; min-height: 0; justify-content: center; }
.ld-fit.ld-wide .ld-main { align-items: center; }
.ld-fit.ld-wide .ld-side { margin-top: 0; }
.ld-fit .ld-record { display: none; }
.ld-fit.ld-wide .ld-record { display: block; }
/* a short phone in full screen: the die and the players share one row so the board keeps its size */
.ld-tight .ld-side { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.ld-tight .ld-tray { border: 0; margin: 0; padding: 0; flex: none; gap: 8px; }
.ld-tight .ld-diebox { width: 56px; height: 56px; }
.ld-tight .ld-traytext { flex: none; width: 86px; }
.ld-tight .ld-note, .ld-tight .ld-pn, .ld-tight .ld-order .ld-mini { display: none; }
.ld-tight .ld-order { flex: 1 1 auto; min-width: 0; gap: 4px; }
.ld-tight .ld-order li { padding: 3px 6px; min-height: 30px; gap: 5px; justify-content: center; }
.ld-land { display: grid; grid-template-columns: var(--ld-bs) minmax(0, 330px); grid-template-rows: auto minmax(0, 1fr); gap: 6px 14px; justify-content: center; align-content: center; }
.ld-land .ld-main { display: contents; }
.ld-land .ld-play { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.ld-land .ld-top { grid-column: 2; grid-row: 1; margin: 0; }
.ld-land .ld-side { grid-column: 2; grid-row: 2; width: 100%; align-self: start; overflow: auto; max-height: 100%; padding: 8px 10px; }
.ld-land .ld-sel > span { display: none; }
.ld-land .ld-opts { flex: 1 1 100%; gap: 6px; }
.ld-land .ld-tools { flex: 1 1 100%; flex-wrap: nowrap; }
.ld-land .ld-tools .ld-btn:not(.ld-icon) { flex: 1 1 auto; padding: 0 8px; }
.ld-land .ld-order { grid-template-columns: 1fr 1fr; }
.ld-land .ld-order li { padding: 4px 7px; gap: 6px; min-height: 36px; }
.ld-land .ld-pn em { display: none; }
.ld-land .ld-tray { padding-bottom: 6px; margin-bottom: 6px; }
.ld-land .ld-diebox { width: 58px; height: 58px; }
.ld-land .ld-record { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ld-tok.can .ring, .ld-mark, .ld-ydie.ask, .ld-ydie.pop, .ld-diebox.ask, .ld-diebox.tumble, .ld-diebox.wait .ld-die, .ld-roll.ask, .ld-dialog, .ld-dots i { animation: none; }
  .ld-die { transition: none; }
}
