/* Fleet: The Dice Game — page furniture and player chips from the Lost Cities styles (sea blue); the sheet tabs and dice at the end. */
:root {
  --felt-glow: #2f7aa8; /* the glow at the top of the home page */
  --sheet: #10283a; /* pop-up window background */
  --felt: #17435f;
  --felt-dark: #081a28;
  --gold: #f5b700;
  --gold-deep: #c98a00;
  --ink: #1d1d1f;
  --paper: #fffdf6;
  --panel: rgba(6, 20, 32, 0.86);
  --text: #f4f1e8;
  --muted: #b5c9d6;
  --cw: 70px;
  --ch: 100px;
  --pw: 64px;
  --ph: 92px;
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

input { -webkit-user-select: text; user-select: text; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- shared bits ---------- */
#home, #lobby {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: radial-gradient(ellipse at 50% 20%, var(--felt-glow) 0%, var(--felt) 40%, var(--felt-dark) 100%);
}
.home-wrap { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }
.brand { text-align: center; margin: 8px 0 20px; }
.brand h1 { font-family: Georgia, "Times New Roman", serif; font-size: 44px; margin: 8px 0 0; letter-spacing: 1px; text-shadow: 0 3px 0 rgba(0,0,0,.3); }

.panel { background: var(--panel); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 16px; margin: 14px 0; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.panel h2 { margin: 0 0 8px; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.field { display: block; margin: 8px 0 4px; }
.field span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.field input { width: 100%; font-size: 20px; padding: 12px 14px; border-radius: 12px; border: 2px solid rgba(255,255,255,.15); background: rgba(0,0,0,.3); color: var(--text); outline: none; }
.row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.btn { border: 0; border-radius: 12px; padding: 12px 18px; font-size: 17px; font-weight: 700; background: rgba(255,255,255,.12); }
.btn.gold:disabled { filter: grayscale(.8); opacity: .6; }
.btn.ghost { background: transparent; border: 2px solid rgba(255,255,255,.25); }
.btn.danger { background: #a3242f; }
.btn.small { padding: 8px 12px; font-size: 15px; }
.linkish { display: block; margin: 16px auto 0; background: none; border: 0; color: var(--gold); text-decoration: underline; font-size: 15px; }

.count-picker { display: flex; gap: 8px; margin: 8px 0 14px; }
.count-picker button { flex: 1; font-size: 22px; font-weight: 700; padding: 10px 0; border-radius: 12px; border: 2px solid rgba(255,255,255,.2); background: rgba(0,0,0,.25); }
.count-picker button.on { border-color: var(--gold); background: rgba(245,183,0,.2); color: var(--gold); }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4be08c; box-shadow: 0 0 8px #4be08c; animation: pulse 1.6s infinite; }
.game-list { display: flex; flex-direction: column; gap: 8px; }
.game-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.06); }
.game-item .code { font-family: ui-monospace, Menlo, Consolas, monospace; background: rgba(0,0,0,.35); padding: 2px 6px; border-radius: 6px; font-size: 13px; margin-left: 6px; }

.code-row { display: flex; align-items: baseline; justify-content: space-between; }
.code-row strong { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 30px; color: var(--gold); letter-spacing: 4px; }
.seat-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.seat-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); }
.seat-list li.empty { opacity: .5; border: 2px dashed rgba(255,255,255,.2); background: transparent; }
.seat-list .tag { font-size: 12px; color: var(--muted); }

.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 18px; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 2px 6px rgba(0,0,0,.4); flex: none; text-shadow: 0 1px 2px rgba(0,0,0,.4); }

/* ---------- table ---------- */
#table { overflow: hidden; touch-action: none; }
.felt {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.10), transparent 60%),
    repeating-radial-gradient(circle at 30% 30%, rgba(0,0,0,.025) 0 2px, transparent 2px 4px),
    radial-gradient(ellipse at 50% 40%, #2a6a92 0%, var(--felt) 45%, var(--felt-dark) 100%);
}
.topbar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 6px calc(10px + var(--safe-r)) 0 calc(10px + var(--safe-l)); z-index: 5; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.round-info { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.top-buttons { display: flex; gap: 6px; }
.icon-btn { height: 34px; min-width: 34px; padding: 0 8px; border-radius: 10px; border: 0; background: rgba(0,0,0,.35); font-size: 16px; display: flex; align-items: center; gap: 4px; }
.icon-btn span { font-size: 13px; font-weight: 700; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 12px; animation: fade .2s ease-out; }
.sheet.narrow { width: 420px; }
.sheet.wide { width: 900px; }
.sheet h2 { margin: 0 0 10px; font-family: Georgia, serif; }
.sheet .btn { margin-top: 8px; }
.sheet .btn.ghost, .sheet .btn.danger { width: 100%; }
.toggle { display: flex; gap: 10px; align-items: center; font-size: 15px; margin: 8px 0; }
.toggle input { width: 22px; height: 22px; }
.rules h3 { color: var(--text); margin: 0 0 4px; font-size: 15px; }
.rules p { margin: 4px 0; }
.claim-list { display: flex; flex-direction: column; gap: 8px; }
.claim-list button { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 0; background: rgba(255,255,255,.08); font-size: 17px; font-weight: 700; text-align: left; }

.score-table-wrap { overflow-x: auto; }
table.scores { border-collapse: collapse; width: 100%; font-size: 14px; }
table.scores th, table.scores td { padding: 5px 8px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
table.scores th { font-size: 13px; }
table.scores td.rd { color: var(--muted); text-align: left; }
table.scores tr.current td { background: rgba(245,183,0,.12); }
table.scores tr.total td { font-weight: 900; font-size: 16px; border-top: 2px solid rgba(255,255,255,.3); }
table.scores td.zero { color: #4be08c; font-weight: 800; }
table.scores td.leader { color: var(--gold); }
table.scores .th-name { display: inline-flex; align-items: center; gap: 4px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.result-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.05); margin-bottom: 6px; }
.result-row.out { background: rgba(245,183,0,.15); border: 1px solid rgba(245,183,0,.5); }
.result-row .who { width: 110px; flex: none; display: flex; align-items: center; gap: 6px; font-weight: 700; }
.result-row .who .avatar { width: 28px; height: 28px; font-size: 13px; }
.result-row .cards { flex: 1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.result-row .left { display: flex; gap: 3px; padding: 3px; border-radius: 6px; background: rgba(214,40,58,.25); outline: 1px dashed rgba(255,120,120,.6); }
.result-row .pts { width: 70px; text-align: right; font-weight: 900; font-size: 18px; }
.result-row .pts small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.winner-banner { text-align: center; font-size: 22px; margin: 4px 0 12px; }
.winner-banner .big { font-size: 48px; display: block; animation: float 1.4s ease-in-out infinite; }

/* go-out show */
.goout { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: radial-gradient(circle, rgba(245,183,0,.35), rgba(0,0,0,.85) 70%); animation: fade .25s ease-out; }
.goout canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.goout-inner { position: relative; text-align: center; }
.goout-crown { font-size: 22vh; line-height: 1; animation: crownDrop .9s cubic-bezier(.2,1.6,.4,1) both, float 1.6s ease-in-out .9s infinite; filter: drop-shadow(0 0 30px rgba(245,183,0,.9)); }
.goout-name { font-family: Georgia, serif; font-size: 11vh; font-weight: 900; color: #fff; text-shadow: 0 0 20px var(--gold), 0 4px 0 #8a5d00; animation: zoomIn .6s .3s cubic-bezier(.2,1.6,.4,1) both; }
.goout-sub { font-size: 7vh; font-weight: 900; letter-spacing: 6px; color: var(--gold); text-shadow: 0 3px 0 #5a3d00; animation: zoomIn .6s .55s cubic-bezier(.2,1.6,.4,1) both; }
.goout-note { margin-top: 10px; font-size: 3.2vh; color: #fff; opacity: .9; animation: fade .6s 1s both; }
.goout.shake { animation: shake .5s ease-in-out; }

.rotate { display: none; }
@media (orientation: portrait) {
  body.in-game .rotate { display: flex; position: fixed; inset: 0; z-index: 100; flex-direction: column; align-items: center; justify-content: center; background: var(--felt-dark); font-size: 20px; text-align: center; padding: 24px; }
  .rotate-phone { font-size: 80px; animation: turn 2s ease-in-out infinite; }
}

.toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 90; background: #222; color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.5); animation: rise .2s ease-out; max-width: 90vw; }

.your-turn-flash { position: absolute; inset: 0; z-index: 25; pointer-events: none; box-shadow: inset 0 0 60px 10px rgba(245,183,0,.7); animation: fadeOut 1.2s ease-out forwards; }

@keyframes glow { 0%,100% { box-shadow: 0 0 0 3px var(--gold), 0 0 10px 3px rgba(245,183,0,.6); } 50% { box-shadow: 0 0 0 3px var(--gold), 0 0 22px 8px rgba(245,183,0,.95); } }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -4px); } }

/* ---------- the table: players | sheet | dice ---------- */
#table { --cell: 30px; --die: 50px; --left: calc(104px + var(--safe-l)); --right: calc(min(220px, 27vw) + var(--safe-r)); }
.lc-players { position: absolute; left: 0; top: 42px; bottom: calc(4px + var(--safe-b)); width: var(--left); padding: 0 4px 0 calc(4px + var(--safe-l)); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; z-index: 3; overflow-y: auto; touch-action: pan-y; }
.pchip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 4px 6px; border-radius: 10px; border: 2px solid transparent; background: rgba(0,0,0,.32); text-align: left; width: 100%; flex: none; }
.pchip .pc-top { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; }
.pchip .avatar { width: 22px; height: 22px; font-size: 11px; border-width: 1.5px; }
.pchip b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pchip .pc-score { font-size: 17px; font-weight: 900; line-height: 1; }
.pchip .pc-score small { font-size: 10px; color: var(--muted); font-weight: 600; }
.pchip .pc-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pchip.me { background: rgba(0,0,0,.45); border-color: rgba(255,255,255,.18); }
.pchip.roller { border-color: var(--gold); }
.pchip.roller .pc-sub { color: var(--gold); font-weight: 700; }
.pchip.done .pc-sub { color: #8fe3a8; }
.pchip.flash { animation: chipFlash .7s ease-out; }
@keyframes chipFlash { 0% { background: rgba(245,183,0,.6); } 100% { background: rgba(0,0,0,.32); } }

.sheet-wrap { position: absolute; left: var(--left); right: var(--right); top: 40px; bottom: calc(2px + var(--safe-b)); display: grid; place-items: center; z-index: 2; }
.sheet-wrap > .hint { text-align: center; }

/* ---------- right: dice, prompt, buttons ---------- */
.lc-right { position: absolute; right: 0; top: 42px; bottom: calc(4px + var(--safe-b)); width: var(--right); padding: 0 calc(6px + var(--safe-r)) 0 4px; display: flex; flex-direction: column; gap: 6px; z-index: 3; overflow-y: auto; touch-action: pan-y; }
.lc-prompt { font-size: 14px; line-height: 1.3; padding: 2px 4px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.lc-prompt .sw, table.scores .sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 3px; vertical-align: -1px; border: 1px solid rgba(255,255,255,.6); }
.lc-actions { display: flex; flex-direction: column; gap: 5px; }
.lc-actions .btn { padding: 8px 10px; font-size: 15px; width: 100%; }
.lc-actions .btn small { font-weight: 600; font-size: 12px; opacity: .85; }

/* ---------- everyone's sheets + the end ---------- */
.sheets-body { display: flex; flex-direction: column; gap: 12px; align-items: center; max-height: 76vh; overflow-y: auto; touch-action: pan-y; }
.sheet-card { display: flex; flex-direction: column; gap: 4px; }
.sc-name { display: flex; align-items: center; gap: 6px; }
.sc-name .avatar { width: 26px; height: 26px; font-size: 12px; }
#sheetsWin .sheet, #final .sheet { max-height: 94vh; overflow: auto; touch-action: pan-y; }
table.final-table td .avatar { width: 22px; height: 22px; font-size: 11px; display: inline-grid; vertical-align: middle; }

.back-link { display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px; padding: 4px 0; }
.back-link:active { color: var(--gold); }
.linkbtn { display: block; text-align: center; text-decoration: none; box-sizing: border-box; margin-top: 8px; }

/* Shell pieces copied from ud.css: the history list, its delete button (🗑), the lobby's bot rows, confetti */
.celebrate { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 70; pointer-events: none; }
/* game history */
#historyBtn { margin-top: 4px; }
.win-tally { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.win-chip b { color: var(--gold); margin-left: 4px; }
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item { background: rgba(255,255,255,.06); border-radius: 12px; overflow: hidden; }
.history-item.open { background: rgba(255,255,255,.1); }
.history-item.incomplete .hi-title { color: var(--muted); }
.hi-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.hi-main { flex: 1; min-width: 0; }
.hi-date { font-size: 12px; color: var(--muted); }
.hi-title { font-size: 16px; margin: 2px 0; }
.hi-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-del { border: 0; background: rgba(0,0,0,.25); border-radius: 10px; width: 36px; height: 36px; font-size: 16px; flex: none; }
.hi-detail { padding: 0 12px 12px; overflow-x: auto; }
.seat-list li.can-bot { flex-wrap: wrap; }
.bot-tag { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 4px; }


/* ================= Fleet: The Dice Game ================= */
.lc-title { font-family: Georgia, "Times New Roman", serif; }
.lc-title em { display: block; font-style: normal; font-size: .45em; color: var(--gold); letter-spacing: 2px; }
.brand-dice { display: flex; justify-content: center; gap: 8px; }
.trump-pill { background: rgba(0,0,0,.35); padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 900; margin-left: 8px; }
#table { --cell: 22px; --die: 46px; --left: calc(112px + var(--safe-l)); --right: calc(min(230px, 27vw) + var(--safe-r)); }
.pchip .fp { color: var(--gold); font-size: 13px; }
.pchip .pc-score small { font-size: 10px; }

/* tabs in the top bar */
.tabs { display: flex; gap: 4px; pointer-events: auto; }
.tabs button { border: 0; border-radius: 10px; padding: 5px 10px; font-size: 14px; font-weight: 800; background: rgba(0,0,0,.35); color: var(--muted); }
.tabs button.on { background: #f2ead3; color: #1d2b36; }
.tabs button.glow { box-shadow: 0 0 0 2px var(--gold), 0 0 10px rgba(245,183,0,.8); color: #fff; }
.tabs button.on.glow { color: #1d2b36; }
.topbar { gap: 8px; }

/* icons */
.ic { display: inline-grid; place-items: center; line-height: 1; }
.ic svg { width: 1.6em; height: 1em; }

/* the sheet */
.fsheet { --c: var(--cell); display: flex; flex-direction: column; gap: calc(var(--c) * .25); padding: calc(var(--c) * .35); border-radius: 12px; background: #f2ead3; color: #1d2b36; box-shadow: 0 10px 26px rgba(0,0,0,.45); font-size: calc(var(--c) * .5); max-width: 100%; }
.fsheet.small { --c: 15px; margin-bottom: 8px; }
.frow { display: flex; align-items: center; gap: calc(var(--c) * .35); padding: calc(var(--c) * .15) calc(var(--c) * .25); border-radius: 8px; background: rgba(255,255,255,.55); min-height: calc(var(--c) * 1.7); }
.frow.tgt, .bld.tgt { cursor: pointer; box-shadow: 0 0 0 3px var(--gold), 0 0 14px rgba(245,183,0,.75); animation: tgtPulse 1.1s ease-in-out infinite; }
@keyframes tgtPulse { 50% { box-shadow: 0 0 0 3px var(--gold), 0 0 4px rgba(245,183,0,.4); } }
.flab { width: calc(var(--c) * 3.6); flex: none; display: flex; align-items: center; gap: 4px; font-size: calc(var(--c) * .48); }
.flab .ic { font-size: calc(var(--c) * .95); }
.flab b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bxs { display: flex; gap: 2px; flex: none; }
.bx { position: relative; width: var(--c); height: var(--c); border-radius: 4px; border: 1.5px solid #7a8a96; background: #fff; display: grid; place-items: center; }
.bx.act { border-radius: 50%; background: #e3eef5; }
.bx i { font-style: normal; font-weight: 900; font-size: calc(var(--c) * .5); color: #2f5f7f; }
.bx.on { background: #c9dbe7; }
.bx.on i { opacity: .25; }
.bx b { position: absolute; inset: 0; display: grid; place-items: center; color: #1f3fae; font-size: calc(var(--c) * .8); font-weight: 900; }
.bx.nx { border-color: #e08a1e; border-width: 2.5px; }
.bx.fresh b { animation: inkPop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes inkPop { from { transform: scale(2.2) rotate(-12deg); opacity: 0; } }
.lics { display: flex; gap: 3px; flex: none; align-items: center; }
.lic { position: relative; min-width: calc(var(--c) * 1.25); height: calc(var(--c) * 1.05); padding: 0 3px; border-radius: 5px; border: 1.5px dashed #a08a5a; background: #fbf3dc; display: grid; place-items: center; font-weight: 900; font-size: calc(var(--c) * .45); color: #8a6a3a; cursor: pointer; }
.lic.on { border-style: solid; background: #f5c55a; color: #3a2800; }
.lic small { position: absolute; right: -4px; top: -6px; font-size: calc(var(--c) * .36); background: #2f5f7f; color: #fff; border-radius: 999px; padding: 0 3px; }
.kcb { font-size: calc(var(--c) * .42); font-weight: 800; color: #6a3a00; max-width: calc(var(--c) * 5); line-height: 1.1; }
.boats { display: flex; gap: 4px; flex: none; align-items: center; }
.boat { position: relative; display: flex; align-items: center; gap: 2px; padding: 2px 4px 2px 3px; border-radius: 4px 4px 10px 10px; background: #b9c4cc; opacity: .45; }
.boat.on { opacity: 1; background: #3a6a8c; }
.boat .dots { display: grid; grid-template-columns: repeat(var(--cols), calc(var(--c) * .42)); gap: 2px; }
.boat .dots i { width: calc(var(--c) * .42); height: calc(var(--c) * .42); border-radius: 50%; background: #fff; }
.boat .dots i.f { background: #ffb238; box-shadow: inset 0 0 0 1.5px #8a5a00; }
.boat small { font-size: calc(var(--c) * .36); font-weight: 900; color: #fff; }
.boat.rv { min-width: calc(var(--c) * 1.4); height: calc(var(--c) * .95); justify-content: center; }
.boat.barge { background: #8a4a2a; }
.note { font-size: calc(var(--c) * .42); color: #4a6a80; font-style: italic; }
/* the wharf and town */
.wharf { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--c) * .3); }
.bld { display: flex; flex-direction: column; gap: 3px; padding: calc(var(--c) * .2); border-radius: 8px; background: rgba(255,255,255,.6); border: 2px solid transparent; }
.bld.built { border-color: #3d9a4a; background: #e3f3df; }
.bld .bt { display: flex; align-items: center; gap: 4px; font-size: calc(var(--c) * .46); }
.bld .bt .ic { font-size: calc(var(--c) * .8); }
.bld small { font-size: calc(var(--c) * .38); color: #4a5a66; line-height: 1.15; }
.hexes, .uses { display: flex; gap: 2px; }
.hex { width: calc(var(--c) * .95); height: calc(var(--c) * .95); display: grid; place-items: center; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: #d9cfb9; font-size: calc(var(--c) * .55); opacity: .5; }
.hex.on { background: #f5c55a; opacity: 1; }
.uses span { color: #a0a0a0; font-weight: 900; } .uses span.on { color: #e08a1e; }
.townfoot { display: flex; gap: calc(var(--c) * .4); align-items: stretch; }
.market { display: flex; flex-direction: column; gap: 1px; padding: calc(var(--c) * .25); border-radius: 8px; background: rgba(255,255,255,.6); font-size: calc(var(--c) * .42); flex: none; }
.market span { color: #8a9aa6; } .market span.on { color: #1d2b36; font-weight: 800; }
.market em { font-style: normal; color: #3d9a4a; font-weight: 800; }
.coins { flex: 1; padding: calc(var(--c) * .25); border-radius: 8px; background: rgba(255,255,255,.6); font-size: calc(var(--c) * .45); }
.coins small { margin-left: 8px; color: #6a3a00; font-weight: 800; }
.ctrack { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; margin-top: 3px; }
.ctrack i { height: calc(var(--c) * .5); border-radius: 2px; background: #fff; border: 1px solid #b5c2cc; font-style: normal; font-size: calc(var(--c) * .4); line-height: 1; display: grid; place-items: center; color: #c58a00; }
.ctrack i.on { background: #ffd36e; border-color: #c58a00; }
.ctrack i.st { color: #c58a00; font-weight: 900; }

/* the dice */
.pool { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 14px; background: rgba(0,0,0,.28); flex: none; }
.pool-title { font-size: 13px; font-weight: 800; color: var(--muted); }
.dice { display: flex; flex-wrap: wrap; gap: 6px; }
.die { position: relative; width: var(--die); height: var(--die); border: 0; padding: 0; border-radius: calc(var(--die) * .2); background: #fbfbf7; display: grid; place-items: center; font-size: calc(var(--die) * .5); box-shadow: 0 3px 0 #b9b5a8, 0 5px 10px rgba(0,0,0,.35); }
.die.town { background: #f1f1f1; }
.die .coins3 { font-size: .5em; letter-spacing: -2px; }
.die.can { cursor: pointer; box-shadow: 0 0 0 3px var(--gold), 0 0 14px rgba(245,183,0,.8); }
.die.taken { opacity: .45; }
.die.shared { box-shadow: 0 0 0 3px #6fd3ff, 0 0 14px rgba(111,211,255,.8); }
.die .by, .die .all { position: absolute; right: -4px; bottom: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--pc, #2f7fd0); color: #fff; font-size: 11px; font-weight: 900; display: grid; place-items: center; border: 1.5px solid #fff; padding: 0 3px; }
.die .all { background: #2f7fd0; }
.die.big { --die: 46px; }
.die.rolling { animation: tumble .16s linear infinite; }
@keyframes tumble { 0% { transform: rotate(0) translateY(0); } 50% { transform: rotate(14deg) translateY(-5px); } 100% { transform: rotate(0) translateY(0); } }
.lc-actions .btn.gold { background: linear-gradient(#ffd75e, #e9a800); color: #3a2800; }
#info .hl { background: rgba(245,183,0,.15); border-radius: 6px; padding: 2px 4px; }

@media (max-height: 360px) {
  .lc-players, .lc-right { top: 36px; }
  .sheet-wrap { top: 34px; }
  .tabs button { padding: 3px 8px; font-size: 13px; }
  .pool-title { display: none; }
  .lc-prompt { font-size: 13px; }
  .lc-actions .btn { padding: 6px 8px; font-size: 13px; }
}

/* The dice tray: the pool's dice fly in here (hidden until they land). */
.die.incoming { visibility: hidden; }
.pool-wait { margin: 4px; font-size: 14px; color: var(--muted); }
.tray-face { font-size: calc(var(--dsz) * .55); line-height: 1; }
.tray-face .coins3 { font-size: .5em; }
