/* ROYALS AUCTION. Tangerine field, ink buttons, cream paper, ochre trim: the colours of the art. */
@font-face { font-family: Bricolage; src: url(fonts/bricolage.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
:root {
  --field: #ea6225; --deep: #b9430e; --shade: #cf5216; --ink: #141210; --cream: #f6ecd2; --ochre: #c8962e;
  --s0: #343164; --s1: #d31c47; --s2: #2b6a3c; --s3: #27539f;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--field); color: var(--ink); font-family: Bricolage, system-ui, sans-serif; font-weight: 600; overflow: hidden; }
#app { height: 100svh; position: relative; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.s0 { --c: var(--s0); } .s1 { --c: var(--s1); } .s2 { --c: var(--s2); } .s3 { --c: var(--s3); }
kbd { font: 800 11px/1 Bricolage, sans-serif; background: var(--ink); color: var(--cream); border-radius: 4px; padding: 3px 5px; }

/* ---- buttons: ink slabs on an ochre edge, press flat ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--cream); font-weight: 800; font-size: 18px; letter-spacing: .01em;
  padding: 12px 22px; border-radius: 10px; box-shadow: 0 5px 0 var(--ochre); transition: transform .06s, box-shadow .06s; white-space: nowrap; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ochre); }
.btn.big { font-size: 26px; padding: 14px 44px; }
.btn.small { font-size: 15px; padding: 9px 14px; box-shadow: 0 4px 0 var(--ochre); }

/* ---- home ---- */
.home { height: 100%; display: grid; grid-template-rows: 52% 48%; position: relative; overflow: hidden; }
.hall { background: var(--field) url(art/hall.webp) center 30% / cover; animation: pan 26s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes pan { from { transform: scale(1.04) translateX(-2%); } to { transform: scale(1.16) translateX(2%); } }
.flyers { position: absolute; left: 0; right: 0; top: 52%; height: 0; z-index: 2; pointer-events: none; }
.fly { position: absolute; left: 0; top: 0; width: clamp(64px, 17vw, 120px); animation: fly 17s linear infinite; animation-delay: calc(var(--i) * -2.125s); }
.fly .royal { width: 100%; animation: wob 1.7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.37s); box-shadow: 0 6px 0 rgba(20, 18, 16, .35); }
@keyframes fly { from { transform: translate(-130%, -62%); } to { transform: translate(calc(100vw + 30%), -62%); } }
@keyframes wob { from { transform: rotate(-9deg) translateY(-6%); } to { transform: rotate(8deg) translateY(7%); } }
.door { background: var(--field); z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: clamp(8px, 2svh, 20px);
  padding: clamp(40px, 9svh, 80px) 16px calc(12px + var(--sab)); border-top: 6px solid var(--ink); }
.wordmark { width: min(88vw, 62svh, 560px); aspect-ratio: 900 / 429; background: var(--cream); -webkit-mask: url(art/wordmark.webp) center / contain no-repeat; mask: url(art/wordmark.webp) center / contain no-repeat;
  animation: bob 2.6s ease-in-out infinite alternate; flex: 0 1 auto; min-height: 0; }
@keyframes bob { from { transform: rotate(-1.5deg) scale(1); } to { transform: rotate(1.5deg) scale(1.03); } }
.doorbtns { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.doorbtns .big { animation: nudge 1.3s ease-in-out infinite alternate; }
@keyframes nudge { from { box-shadow: 0 5px 0 var(--ochre), 0 0 0 0 rgba(246, 236, 210, .9); } to { box-shadow: 0 5px 0 var(--ochre), 0 0 0 9px rgba(246, 236, 210, 0); } }
.links { display: flex; gap: 18px; font-size: 14px; font-weight: 700; }
.links button { text-decoration: underline; text-underline-offset: 3px; padding: 8px 2px; }

/* ---- table (seats, bots, invite) ---- */
.tablescreen { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; gap: 6px; padding: calc(10px + var(--sat)) 14px calc(14px + var(--sab)); text-align: center; position: relative; }
.tablescreen h2 { font-size: clamp(30px, 6svh, 54px); font-weight: 800; color: var(--cream); line-height: 1.2; }
.back { position: absolute; left: 12px; top: calc(10px + var(--sat)); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.chairs { display: grid; grid-template-columns: repeat(var(--n), minmax(0, min(170px, 19svh))); gap: clamp(8px, 3vw, 28px); justify-content: center; width: 100%; }
.chairs.n2 { --n: 2; } .chairs.n3 { --n: 3; } .chairs.n4 { --n: 4; }
.chair { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; animation: sit .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.chair .royal { height: auto; width: 100%; container-type: inline-size; }
.chair b { font-size: 16px; font-weight: 800; color: var(--cream); line-height: 1.1; }
.chair span { font-size: 12px; font-weight: 700; line-height: 1.1; }
@keyframes sit { from { transform: translateY(-40px) rotate(-8deg); opacity: 0; } }
.choices { display: grid; grid-template-columns: auto auto; gap: 10px 14px; align-items: center; justify-content: center; }
.choices label { font-weight: 800; text-align: right; font-size: 15px; }
.seg { display: flex; background: var(--deep); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { padding: 9px 16px; border-radius: 8px; font-weight: 800; color: var(--cream); min-width: 48px; }
.seg button.on { background: var(--cream); color: var(--ink); }
.seg button:disabled { cursor: default; }
.choices input, .sheet input { background: var(--cream); border: 3px solid var(--ink); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 800; width: 170px; color: var(--ink); }
.invite { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-weight: 700; }
.code { font-size: 28px; font-weight: 800; letter-spacing: .12em; color: var(--cream); }
.msg { min-height: 1.3em; font-weight: 800; color: var(--cream); }
.msg.bad, .status.bad { color: var(--ink); background: var(--cream); border-radius: 6px; padding: 0 8px; }
.wait { font-weight: 800; color: var(--cream); font-size: 17px; }

/* ---- play ---- */
.play { height: 100%; display: flex; flex-direction: column; padding: calc(4px + var(--sat)) 5px calc(5px + var(--sab)); gap: 3px; position: relative; --tray: clamp(170px, 29svh, 250px); }
.board { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.prow, .lots { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 19px minmax(0, 1fr); gap: 2px 5px; }
.lots { flex: 2.4 1 0; }
.prow.mine { flex: 1.3 1 0; }
.strip { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; background: var(--c, var(--ink)); color: var(--cream); border-radius: 5px; padding: 0 7px; font-size: 12px; line-height: 19px; white-space: nowrap; min-width: 0; }
.strip .who { font-weight: 800; }
.pip { font-style: normal; margin-right: 4px; }
.strip .pts b { font-weight: 800; font-size: 14px; }
.strip.turn { box-shadow: 0 0 0 2px var(--cream); animation: turn 1s ease-in-out infinite alternate; }
@keyframes turn { to { box-shadow: 0 0 0 2px var(--ochre); } }
.first { font-style: normal; font-size: 10px; font-weight: 800; background: var(--cream); color: var(--ink); border-radius: 3px; padding: 0 4px; line-height: 14px; }
.wons { display: none; }
.unseen { margin-left: auto; display: flex; gap: 1px; font-size: 11px; }
.unseen i { font-style: normal; font-weight: 800; width: 13px; text-align: center; }
.unseen i:last-child { width: 16px; }
.unseen i.gone { opacity: .28; text-decoration: line-through; }
.dots { display: flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--cream); animation: dot .9s infinite alternate; }
.dots i:nth-child(2) { animation-delay: .3s; } .dots i:nth-child(3) { animation-delay: .6s; }
@keyframes dot { to { opacity: .2; transform: translateY(-2px); } }
.strip.game { --c: var(--ink); }
.strip.game span { opacity: .8; }
.menu { margin-left: auto; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; padding: 0 4px; font-size: 12px; }

.cell { position: relative; min-height: 0; min-width: 0; background: var(--shade); border-radius: 6px; container-type: size; }
.cell.mine { background: var(--deep); }
.stack { position: absolute; inset: 0; display: flex; align-items: center; padding: 3px; --bh: min(100cqh - 6px, 70px, (100cqw - 6px) * 1.2); --bw: calc(var(--bh) * 5 / 7); }
.slot { flex: 1 1 0; min-width: 0; max-width: calc(var(--bw) + 2px); height: var(--bh); }
.slot:last-child { flex: 0 0 var(--bw); }
.bc { width: var(--bw); height: var(--bh); background: var(--cream); border-radius: calc(var(--bh) * .1); box-shadow: -1px 0 0 1.5px var(--ink); position: relative; overflow: hidden; }
.bc b { position: absolute; left: 0; top: 0; width: min(100%, calc(var(--bh) * .52)); text-align: center; font-weight: 800; font-size: calc(var(--bh) * .4); line-height: 1.15; color: var(--c); letter-spacing: -.06em; }
.bc.down { background: var(--ink) url(art/back.webp) center / cover; }
.bc.down b { background: var(--cream); border-radius: 0 0 5px 0; font-size: calc(var(--bh) * .34); }
.bc.was { box-shadow: -1px 0 0 1.5px var(--ink), inset 0 0 0 2.5px var(--ochre); }
.bc.enter { animation: drop .45s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes drop { from { transform: translateY(-70%) scale(1.9) rotate(-14deg); opacity: 0; } }
.sum { position: absolute; right: 2px; bottom: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 800; line-height: 20px; text-align: center; z-index: 2; }
.cell.target { box-shadow: inset 0 0 0 3px var(--cream); animation: tgt .7s ease-in-out infinite alternate; cursor: pointer; }
@keyframes tgt { to { box-shadow: inset 0 0 0 3px var(--ochre); } }
.cell.cursor { outline: 3px solid var(--ink); outline-offset: 1px; }

.lot { position: relative; min-height: 0; min-width: 0; container-type: size; cursor: pointer; }
.pile { position: absolute; inset: 0; display: grid; place-items: center; --rh: min(100cqh - 10px, (100cqw - 6px) * 4 / 3); }
.lot.n2 .pile { --rh: min(92cqh - 10px, (86cqw - 6px) * 4 / 3); } .lot.n3 .pile, .lot.n4 .pile { --rh: min(88cqh - 10px, (76cqw - 6px) * 4 / 3); }
.pile .royal { grid-area: 1 / 1; height: var(--rh); width: calc(var(--rh) * 3 / 4);
  transform: translate(calc((var(--k) - (var(--n) - 1) / 2) * 16%), calc((var(--k) - (var(--n) - 1) / 2) * -5%)) rotate(calc((var(--k) - (var(--n) - 1) / 2) * 5deg)); }
.royal { position: relative; aspect-ratio: 3 / 4; border-radius: 6%/4.5%; overflow: hidden; border: 3px solid var(--cream); background: var(--c); box-shadow: 0 3px 0 rgba(20, 18, 16, .4); height: 100%; }
.royal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.corner { position: absolute; left: 0; top: 0; background: var(--cream); color: var(--c); font-weight: 800; font-size: clamp(11px, 16cqw, 24px); line-height: 1; padding: 2px 5px 3px 3px; border-radius: 0 0 8px 0; display: flex; flex-direction: column; align-items: center; }
.corner i { font-style: normal; font-size: .8em; }
.coin { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); min-width: 30px; height: 30px; border-radius: 15px; background: var(--ochre); border: 3px solid var(--ink); color: var(--ink); font-weight: 800; font-size: 17px; line-height: 24px; text-align: center; z-index: 3; }
.lot kbd { position: absolute; right: 4px; top: 4px; z-index: 3; }
.stamp { position: absolute; left: 50%; top: 70%; transform: translate(-50%, -50%) rotate(-7deg); background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 8px; padding: 3px 5px; font-weight: 800; font-size: clamp(10.5px, 3.3vw, 13px); line-height: 1.15; text-align: center; z-index: 4; }
.stamp.sold { background: var(--c); color: var(--cream); }

/* the reveal: one royal at a time, left to right */
.revealing .bc.flip { animation: flip .5s calc(.3s + var(--d) * .9s) both; }
@keyframes flip { 0% { transform: rotateY(180deg); filter: brightness(.25); } 60% { filter: brightness(.25); } 100% { transform: none; filter: none; } }
.revealing .sum.fin, .revealing .stamp { animation: pop .3s calc(.8s + var(--d) * .9s) cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
.revealing .stamp { animation-name: stamp; }
@keyframes stamp { from { transform: translate(-50%, -50%) rotate(-7deg) scale(2.4); opacity: 0; } }
.revealing .takeup .pile { animation: takeup .6s calc(1.1s + var(--d) * .9s) ease-in both; }
.revealing .takeme .pile { animation: takeme .6s calc(1.1s + var(--d) * .9s) ease-in both; }
.revealed .takeup .pile { transform: translateY(-7%) scale(.84); }
.revealed .takeme .pile { transform: translateY(7%) scale(.84); }
@keyframes takeup { 50% { transform: translateY(-16%) scale(1.06); } to { transform: translateY(-7%) scale(.84); } }
@keyframes takeme { 50% { transform: translateY(16%) scale(1.06); } to { transform: translateY(7%) scale(.84); } }
.revealing .tied .pile { animation: shake .5s calc(.9s + var(--d) * .9s) both; }
@keyframes shake { 20% { transform: translateX(-6%) rotate(-3deg); } 40% { transform: translateX(6%) rotate(3deg); } 60% { transform: translateX(-4%); } 80% { transform: translateX(4%); } }
.cell.win { box-shadow: inset 0 0 0 3px var(--cream); }
.revealing .cell.win { animation: winbox .01s calc(.9s + var(--d) * .9s) both; }
@keyframes winbox { from { box-shadow: none; } }
.revealing .tray.result > * { animation: pop .3s 4.2s both; }

.status { flex: 0 0 24px; line-height: 24px; text-align: center; font-weight: 800; font-size: 15px; color: var(--cream); white-space: nowrap; align-self: center; }

.tray { flex: 0 0 var(--tray); border-radius: 12px; padding: 4px 6px 6px; display: flex; flex-direction: column; gap: 4px; min-height: 0; background: var(--cream); border: 3px solid var(--ink); transition: background .2s; }
.tray.down { background: var(--ink); }
.mode { flex: 0 0 auto; text-align: center; font-size: 13px; font-weight: 800; line-height: 16px; text-transform: uppercase; letter-spacing: .06em; }
.tray.down .mode { color: var(--cream); }
.hand { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 5px; }
.hc { position: relative; border-radius: 9px; background: #fffaf0; border: 3px solid var(--c); color: var(--c); display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 0; transition: transform .1s; box-shadow: 0 3px 0 var(--c); }
.hc b { font-size: clamp(24px, 5.2svh, 44px); font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.hc i { font-style: normal; font-size: clamp(13px, 2.4svh, 20px); }
.hc kbd { position: absolute; right: 3px; top: 3px; }
.tray.down .hc { background: var(--ink) url(art/back.webp) center / 160%; border-color: var(--ochre); box-shadow: 0 3px 0 var(--ochre); }
.tray.down .hc b, .tray.down .hc i { color: var(--cream); text-shadow: 0 0 6px var(--ink), 0 0 6px var(--ink), 0 0 2px var(--ink); }
.hc.sel { transform: translateY(-7px) scale(1.06); z-index: 2; outline: 4px solid var(--ochre); outline-offset: 1px; }
.hc.gone { background: none; border: 2px dashed rgba(20, 18, 16, .25); box-shadow: none; }
.tray.down .hc.gone { border-color: rgba(246, 236, 210, .25); background: none; }
.tray:not(.live) .hc:not(.gone) { opacity: .6; }

.tray.result { align-items: center; justify-content: space-evenly; text-align: center; padding: 6px 10px; }
.tray.result h3 { font-size: 20px; font-weight: 800; line-height: 1.2; }
.tray.result ul { list-style: none; font-size: 15px; line-height: 1.25; font-weight: 700; }
.tray.result li b { color: var(--c); font-weight: 800; }
.tray.result .wait { color: var(--ink); }

/* ---- final scores ---- */
.final { position: absolute; inset: 0; z-index: 20; background: var(--field) url(art/hall.webp) center / cover; display: grid; place-items: end center; animation: fade .4s both; }
@keyframes fade { from { opacity: 0; } }
.finalbox { width: 100%; background: var(--field); border-top: 6px solid var(--ink); padding: 14px 12px calc(14px + var(--sab)); display: flex; flex-direction: column; align-items: center; gap: 10px; animation: rise .45s .1s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes rise { from { transform: translateY(100%); } }
.finalbox h2 { font-size: clamp(34px, 9vw, 72px); font-weight: 800; color: var(--cream); line-height: 1.2; text-align: center; }
.finalbox ol { list-style: none; width: min(100%, 720px); display: flex; flex-direction: column; gap: 5px; }
.finalbox li { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr) auto; align-items: center; gap: 8px; background: var(--c); color: var(--cream); border-radius: 8px; padding: 4px 10px; min-height: 52px; }
.finalbox li.top { box-shadow: 0 0 0 3px var(--cream); }
.haul { display: flex; height: 44px; min-width: 0; }
.haul .hs { flex: 1 1 0; min-width: 0; max-width: 36px; height: 100%; }
.haul .hs:last-child { flex: 0 0 33px; }
.haul .royal { border-width: 2px; width: 33px; height: 44px; container-type: inline-size; }
.score { font-size: 30px; font-weight: 800; }
.lost { font-weight: 700; font-size: 14px; text-align: center; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.col { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* ---- overlays ---- */
.veil { position: absolute; inset: 0; z-index: 40; background: rgba(185, 67, 14, .88); display: grid; place-items: center; padding: 14px; }
.sheet { background: var(--cream); border: 4px solid var(--ink); border-radius: 14px; padding: 18px 18px 14px; width: min(100%, 520px); max-height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; box-shadow: 0 8px 0 var(--ink); }
.sheet h2 { font-size: 30px; font-weight: 800; line-height: 1.2; }
.sheet h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; }
.sheet .x { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.sheet .msg { color: var(--ink); }
.sheet input { text-align: center; letter-spacing: .2em; font-size: 26px; text-transform: uppercase; }
.rules { list-style: none; counter-reset: r; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; }
.rules li::before { content: counter(r); grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 50%; background: var(--field); color: var(--cream); font-weight: 800; text-align: center; line-height: 28px; }
.rules b { font-weight: 800; font-size: 17px; line-height: 1.2; }
.rules span { font-size: 14px; font-weight: 600; grid-column: 2; }
.credits ul { list-style: none; }
.credits li { display: flex; flex-direction: column; margin: 4px 0; font-size: 14px; }
.credits li b { font-weight: 800; }
.tog { display: flex; justify-content: space-between; gap: 18px; align-items: center; background: var(--ink); color: var(--cream); border-radius: 10px; padding: 12px 14px; font-weight: 700; text-align: left; }
.tog button { background: var(--deep); border-radius: 6px; padding: 6px 14px; font-weight: 800; min-width: 56px; }
.tog.on button { background: var(--ochre); color: var(--ink); }

/* ---- wide windows: its own layout, not the phone stretched ---- */
@media (min-width: 820px) and (min-aspect-ratio: 11/10) {
  .home { grid-template-rows: none; grid-template-columns: minmax(380px, 38%) 1fr; }
  .hall { order: 2; background-position: center; }
  .door { order: 1; border-top: 0; border-right: 8px solid var(--ink); justify-content: center; gap: 4svh; padding: 24px; z-index: 3; }
  .wordmark { width: min(30vw, 520px); }
  .flyers { top: 84%; left: 38%; z-index: 2; }
  .fly { width: clamp(90px, 9vw, 150px); }
  @keyframes fly { from { transform: translate(-130%, -50%); } to { transform: translate(calc(62vw + 30%), -50%); } }
  .links { font-size: 17px; }
  .doorbtns { gap: 18px; }
  .doorbtns .btn { font-size: 24px; padding: 14px 30px; }
  .doorbtns .btn.big { font-size: 40px; padding: 18px 70px; }

  .play { padding: 12px 16px 12px; gap: 6px; --tray: clamp(110px, 17svh, 170px); }
  .board { gap: 8px; }
  .prow, .lots { grid-template-columns: clamp(170px, 17vw, 260px) repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 0 10px; }
  .lots { flex: 3.1 1 0; }
  .strip { grid-column: 1; flex-wrap: wrap; align-content: center; gap: 1px 10px; padding: 4px 12px; font-size: 14px; line-height: 1.15; border-radius: 10px; position: relative; }
  .strip .who { flex: 0 0 100%; }
  .strip .who { font-size: clamp(15px, 2.2svh, 21px); }
  .strip .pts b { font-size: clamp(16px, 2.4svh, 22px); }
  .wons { display: flex; gap: 2px; flex-wrap: wrap; }
  .won { height: clamp(16px, 2.4svh, 24px); border-radius: 3px; border: 1.5px solid var(--cream); }
  .unseen { margin-left: 0; font-size: 12px; flex: 0 0 100%; }
  .first { position: absolute; right: 8px; top: 8px; }
  .dots { position: absolute; right: 10px; bottom: 10px; }
  .strip.game b { font-size: clamp(18px, 2.8svh, 26px); font-weight: 800; }
  .menu { margin-left: 0; font-size: 14px; padding: 4px 0; }
  .stack { --bh: min(100cqh - 8px, 110px); padding: 4px 8px; }
  .slot { max-width: calc(var(--bw) + 6px); }
  .sum { min-width: 28px; height: 28px; line-height: 28px; font-size: 17px; border-radius: 14px; right: 5px; bottom: 5px; }
  .coin { min-width: 40px; height: 40px; border-radius: 20px; font-size: 22px; line-height: 34px; }
  .stamp { font-size: 20px; padding: 6px 14px; }
  .status { flex-basis: 30px; line-height: 30px; font-size: 19px; }
  .tray { flex-direction: row; align-items: stretch; gap: 14px; padding: 8px 12px; width: min(100%, 1100px); align-self: center; }
  .mode { writing-mode: horizontal-tb; align-self: center; width: 110px; font-size: 15px; line-height: 1.15; }
  .hand { grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 8px; }
  .hc { flex-direction: column; }
  .tray.result { flex-direction: row; justify-content: center; gap: 30px; }
  .tray.result ul { font-size: 18px; text-align: left; }
  .tray.result h3 { font-size: 28px; }
  .finalbox { width: min(92%, 860px); border: 6px solid var(--ink); border-radius: 18px; margin-bottom: 5svh; padding: 22px; }
  .final { place-items: center; }
  .tablescreen h2 { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) { .hall, .fly, .fly .royal, .wordmark { animation-duration: 120s; } }
