/* La Tombolata. Warm paper, Christmas red, pine green, wooden number tokens. Light and dark. */
:root {
  --bg: #FBF6EC; --surface: #FFFDF8; --surface-2: #F5EDDD; --ink: #231D18; --muted: #6A6056; --line: #E5D9C4;
  --red: #B3261E; --red-strong: #8F1D17; --red-soft: #F7E4E0; --on-red: #FFFFFF;
  --green: #1E5B3A; --green-soft: #E2EFE6; --gold: #C8962E;
  --token-num: #9B1F18;
  --shadow: 0 1px 2px rgba(35, 29, 24, .06), 0 10px 28px rgba(35, 29, 24, .08);
  --r: 16px; --gutter: 16px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110E; --surface: #211915; --surface-2: #2A211B; --ink: #F3EADC; --muted: #B9AC9B; --line: #3B3029;
    --red: #E0574C; --red-strong: #F07A6F; --red-soft: #3B201C; --on-red: #1A0E0C;
    --green: #6DBF8F; --green-soft: #1C2D23; --gold: #E2B455;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17110E; --surface: #211915; --surface-2: #2A211B; --ink: #F3EADC; --muted: #B9AC9B; --line: #3B3029;
  --red: #E0574C; --red-strong: #F07A6F; --red-soft: #3B201C; --on-red: #1A0E0C;
  --green: #6DBF8F; --green-soft: #1C2D23; --gold: #E2B455; color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--red-strong); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--red-strong); } }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 52px); }
h2 { font-size: clamp(23px, 3.6vw, 32px); margin-top: 1.4em; }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.wrap.narrow { margin: 0 auto; }
.section { padding: 28px var(--gutter) 40px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.head { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 22px/1 var(--serif); }
.logo b { color: var(--red); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; white-space: nowrap; font-weight: 550; font-size: 16px; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--red-soft); color: var(--red-strong); }
@media (max-width: 760px) {
  .head { gap: 4px 12px; padding-top: 8px; }
  .nav { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; width: calc(100% + var(--gutter) * 2); }
  .site-header { position: static; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--on-red); }
.btn.primary:hover { background: var(--red-strong); border-color: var(--red-strong); }
.btn.xl { min-height: 56px; padding: 14px 28px; font-size: 18px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.warn { background: var(--gold); border-color: var(--gold); color: #231D18; }
.btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--surface); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }

/* wooden token */
.token { --s: 52px; width: var(--s); height: var(--s); flex: none; display: inline-grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFF9EC 0%, #F4E3C4 52%, #DDBF8E 100%);
  box-shadow: inset 0 -3px 0 rgba(120, 80, 30, .18), inset 0 2px 0 rgba(255, 255, 255, .6), 0 2px 6px rgba(35, 29, 24, .22);
  color: var(--token-num); font: 800 calc(var(--s) * .42)/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.token.sm { --s: 34px; }
.token.big { --s: 96px; }
.token.huge { --s: clamp(130px, 15vw, 190px); }

/* hero */
.hero { background: radial-gradient(1200px 380px at 85% 0%, var(--red-soft), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.kicker { color: var(--green); font-weight: 650; font-size: 15px; letter-spacing: .02em; margin-bottom: 10px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }
.lead.small { font-size: 18px; }
.sub-actions { color: var(--muted); font-size: 16px; }
.hero-tokens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 12px; justify-items: center; }
.hero-tokens li:nth-child(4) { grid-column: 1 / 2; margin-left: 50%; }
.hero-tokens li:nth-child(5) { grid-column: 2 / 3; margin-left: 50%; }
.hero-tokens a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-size: 15px; text-align: center; }
.hero-tokens .token { --s: clamp(64px, 11vw, 96px); transition: transform .2s; }
.hero-tokens a:hover .token { transform: translateY(-3px) rotate(-4deg); }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 28px; gap: 20px; }
  .hero-tokens { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .hero-tokens li:nth-child(4), .hero-tokens li:nth-child(5) { grid-column: auto; margin-left: 0; }
  .hero-tokens .token { --s: 54px; }
  .hero-tokens a { font-size: 12px; line-height: 1.25; }
}

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--surface); font-weight: 700; margin-bottom: 10px; }
.steps b { display: block; margin-bottom: 4px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s; }
.feature:hover { transform: translateY(-2px); }
.feature h3 { color: var(--red-strong); }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .steps, .features { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

/* ---------------- tabellone ---------------- */
.tab-app { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 24px; max-width: 1160px; margin: 0 auto; padding: 22px var(--gutter); }
.tab-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tab-main { min-width: 0; }
.current { display: flex; flex-direction: column; text-align: center; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.cur-text { min-width: 0; }
.cur-words { font: 600 clamp(22px, 3.2vw, 30px)/1.15 var(--serif); margin: 0 0 6px; }
.cur-smorfia { margin: 0; color: var(--muted); font-size: 17px; }
.cur-smorfia a { color: var(--green); font-weight: 650; text-decoration: none; font-style: italic; }
.token.roll { animation: shake .5s linear infinite; }
.token.pop { animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg) scale(.96); } 75% { transform: rotate(7deg) scale(.96); } }
@keyframes pop { 0% { transform: scale(.6) rotate(-20deg); } 100% { transform: scale(1) rotate(0); } }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.controls #draw { grid-column: 1 / -1; min-height: 64px; font-size: 22px; }
.status p { margin: 0 0 8px; color: var(--muted); }
.status b { color: var(--ink); }
.last { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; min-height: 34px; }
.last li:first-child .token { box-shadow: 0 0 0 3px var(--gold), 0 2px 6px rgba(35, 29, 24, .22); }
.prizes { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.prize-label { margin: 0 0 10px; }
.prize-label b { color: var(--red-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 600 15px/1.2 var(--sans); cursor: pointer; min-height: 38px; }
.chip.next { border-color: var(--red); color: var(--red-strong); box-shadow: 0 0 0 3px var(--red-soft); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--surface); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.block { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font: 700 clamp(14px, 2.1vw, 22px)/1 var(--sans); font-variant-numeric: tabular-nums;
  color: var(--muted); background: var(--surface-2); transition: background .25s, color .25s, transform .25s; }
.cell.on { background: var(--red); color: var(--on-red); }
.cell.last { box-shadow: 0 0 0 3px var(--gold); transform: scale(1.08); }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.panel summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 14px; }
.set-grid label, .pf-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); }
.set-grid label.sw, .pf-grid label.sw { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--red); }
select, input:not([type="checkbox"]):not([type="radio"]) { font: 16px var(--sans); padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); min-height: 46px; }
.verify-form label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 15px; }
.verify-form .row { display: flex; gap: 8px; }
.verify-form input { flex: 1; min-width: 0; }
.v-out { margin-top: 14px; }
.v-out .good { color: var(--green); font-weight: 700; }
.v-out .bad { color: var(--red-strong); }
@media (max-width: 860px) {
  .tab-app { grid-template-columns: minmax(0, 1fr); padding-top: 14px; gap: 14px; }
  .tab-side { display: contents; }
  .current { order: 1; } .controls { order: 2; } .status { order: 3; } .tab-main { order: 4; } .prizes { order: 5; }
  .tools, .set-grid { grid-template-columns: 1fr; }
  .current { padding: 14px; flex-direction: row; text-align: left; }
  .token.huge { --s: clamp(104px, 30vw, 150px); }
  .board { gap: 6px; } .block { gap: 3px; padding: 5px; }
}
/* fullscreen: big number left, board right, filling the TV */
.tab-app:fullscreen, .tab-app.pseudo-fs { max-width: none; width: 100vw; height: 100vh; margin: 0; padding: 2.5vh 2.5vw; background: var(--bg);
  grid-template-columns: 32vw 1fr; gap: 2.5vw; align-items: center; overflow: auto; }
.tab-app.pseudo-fs { position: fixed; inset: 0; z-index: 50; }
.tab-app:fullscreen .token.huge, .tab-app.pseudo-fs .token.huge { --s: 22vw; }
.tab-app:fullscreen .current, .tab-app.pseudo-fs .current { flex-direction: column; text-align: center; }
.tab-app:fullscreen .cur-words, .tab-app.pseudo-fs .cur-words { font-size: 4vw; }
.tab-app:fullscreen .cur-smorfia, .tab-app.pseudo-fs .cur-smorfia { font-size: 2vw; }
.tab-app:fullscreen .cell, .tab-app.pseudo-fs .cell { font-size: 2.6vh; }
.tab-app:fullscreen .board, .tab-app.pseudo-fs .board { width: min(100%, calc((95vh - 70px) * 1.08)); margin: 0 auto; }
.tab-app:fullscreen .status, .tab-app.pseudo-fs .status, .tab-app:fullscreen .chips, .tab-app.pseudo-fs .chips, .tab-app:fullscreen .prizes .hint, .tab-app.pseudo-fs .prizes .hint { display: none; }
.tab-app:fullscreen .prize-label, .tab-app.pseudo-fs .prize-label { margin: 0; font-size: 2.2vw; text-align: center; }
.tab-app:fullscreen .controls { grid-template-columns: 1fr 1fr 1fr; }
.tab-app:fullscreen .controls #new, .tab-app:fullscreen .controls #undo { display: none; }
@media (orientation: portrait) {
  .tab-app:fullscreen, .tab-app.pseudo-fs { grid-template-columns: 1fr; align-content: start; }
  .tab-app:fullscreen .token.huge, .tab-app.pseudo-fs .token.huge { --s: 34vw; }
  .tab-app:fullscreen .current, .tab-app.pseudo-fs .current { flex-direction: row; text-align: left; }
  .tab-app:fullscreen .cur-words, .tab-app.pseudo-fs .cur-words { font-size: 7vw; }
  .tab-app:fullscreen .cur-smorfia, .tab-app.pseudo-fs .cur-smorfia { font-size: 4vw; }
}

/* ---------------- cartelle (phone) ---------------- */
.cards-app { padding-top: 22px; padding-bottom: 12px; }
.cards-head h1 { font-size: clamp(28px, 5vw, 40px); }
.cards-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin: 8px 0; }
.seg { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.seg-l { color: var(--muted); font-size: 15px; margin-right: 4px; }
.seg button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 17px var(--sans); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--on-red); }
.quick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quick label { color: var(--muted); font-size: 15px; }
.quick input { width: 96px; text-align: center; font-weight: 700; font-size: 20px; }
.quick-out { min-height: 1.6em; color: var(--green); font-weight: 600; margin: 4px 0 10px; }
.cards-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 18px 22px; }
.cartella-wrap { margin: 0; }
.cartella { display: grid; grid-template-columns: repeat(9, 1fr); border: 2.5px solid var(--red); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.cartella .c { position: relative; min-height: 54px; display: grid; place-items: center; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 750 clamp(18px, 4.6vw, 26px)/1 var(--sans); font-variant-numeric: tabular-nums; padding: 0; }
.cartella .c:nth-child(9n) { border-right: 0; }
.cartella .c:nth-last-child(-n + 9) { border-bottom: 0; }
.cartella .c.e { background: repeating-linear-gradient(135deg, var(--red-soft) 0 7px, transparent 7px 14px); }
.cartella button.c { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cartella button.c:hover { background: var(--surface-2); }
.cartella .c.hit { background: var(--red); color: var(--on-red); }
/* markers */
.cartella button.c[aria-pressed="true"] { color: #FFF8EC; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
[data-marker="fagiolo"] .cartella button.c[aria-pressed="true"] { background: radial-gradient(ellipse 40% 31% at 50% 52%, #8A5634 0 60%, #6B3E22 88%, transparent 92%), var(--surface); }
[data-marker="bottone"] .cartella button.c[aria-pressed="true"] { background: radial-gradient(circle at 50% 50%, #C3342A 0 52%, #8F1D17 55%, transparent 58%), var(--surface); }
[data-marker="croce"] .cartella button.c[aria-pressed="true"] { color: var(--ink); text-shadow: none;
  background: linear-gradient(45deg, transparent 45%, var(--red) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--red) 45% 55%, transparent 55%), var(--surface); }
.cartella .c.flash { animation: flash 1s ease-out; }
@keyframes flash { 0% { box-shadow: inset 0 0 0 4px var(--gold); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
.card-code { margin: 6px 4px 0; color: var(--muted); font-size: 14px; }
.card-code span { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); letter-spacing: .03em; }
.cards-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 22px 0 6px; }
.cards-foot label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 15px; }
@media (max-width: 520px) { .cartella .c { min-height: 46px; } .quick { width: 100%; } .quick input { flex: 1; } .seg { gap: 5px; flex-wrap: nowrap; } .seg button { width: 40px; height: 40px; } .seg-l { font-size: 14px; } }

/* toast + confetti */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 14px;
  font-weight: 650; box-shadow: var(--shadow); transition: transform .3s, opacity .3s, visibility .3s; z-index: 60; max-width: calc(100vw - 32px); text-align: center; opacity: 0; visibility: hidden; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast.big { background: var(--red); color: var(--on-red); font: 700 22px/1.3 var(--serif); padding: 16px 26px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 55; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall 2.4s cubic-bezier(.3, .6, .5, 1) forwards; }
@keyframes fall { to { top: 105vh; transform: rotate(720deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------------- smorfia ---------------- */
.smorfia-list { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.smorfia-list a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.smorfia-list a:hover { border-color: var(--red); }
.smorfia-list .token { grid-row: 1 / 3; --s: 46px; }
.s-d { font: italic 600 16px/1.25 var(--serif); color: var(--green); }
.s-i { color: var(--muted); font-size: 15px; line-height: 1.3; }
.snum-head { display: flex; gap: 22px; align-items: center; margin: 4px 0 18px; }
.snum-head h1 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 6px; }
.snum-d { font: italic 600 22px/1.3 var(--serif); color: var(--green); margin: 0; }
.variant { color: var(--muted); }
.facts { list-style: none; padding: 0 !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px !important; }
.facts li { margin: 4px 0; }
.snum-cta { margin: 22px 0; }
.prevnext { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.all-h { font-size: 22px; margin-top: 40px; }
.num-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.num-grid a { display: grid; place-items: center; height: 44px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 650; font-variant-numeric: tabular-nums; }
.num-grid a:hover { border-color: var(--red); color: var(--red-strong); }
.num-grid a[aria-current="page"] { background: var(--red); color: var(--on-red); border-color: var(--red); }
@media (max-width: 520px) { .snum-head { gap: 14px; } .snum-head .token.big { --s: 72px; } }
.prize-table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; background: var(--surface); border-radius: 12px; overflow: hidden; }
.prize-table th, .prize-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prize-table th { background: var(--surface-2); font-size: 15px; }

/* ---------------- stampa ---------------- */
.print-app { padding-top: 22px; padding-bottom: 20px; }
.print-h1 { font-size: clamp(28px, 5vw, 42px); }
.print-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 16px 0 22px; }
.what { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.what legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.what label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 18px; align-items: end; }
.sheets { --z: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sheets.ink-rosso { --pi: #B3261E; --pt: #FBE9E6; }
.sheets.ink-verde { --pi: #1E5B3A; --pt: #E4F0E8; }
.sheets.ink-blu { --pi: #1D4E89; --pt: #E5EDF7; }
.sheets.ink-nero { --pi: #1A1A1A; --pt: #FFFFFF; }
.sheet { zoom: var(--z); width: 190mm; height: 277mm; background: #fff; color: #1A1A1A; box-shadow: 0 2px 18px rgba(0, 0, 0, .18); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.sh-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4mm; height: 9mm; border-bottom: .5mm solid var(--pi); margin-bottom: 3mm; padding: 0 1mm; }
.sh-title { font: 700 15pt/1.2 var(--serif); color: var(--pi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-sub { font: 8pt var(--sans); color: #555; white-space: nowrap; }
.cards6 { justify-content: flex-start; }
.pcard { height: 43.5mm; display: flex; flex-direction: column; }
.pgrid { display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(3, 12mm); border: .6mm solid var(--pi); border-radius: 2mm; overflow: hidden; }
.pc { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: .25mm solid var(--pi); border-bottom: .25mm solid var(--pi); color: var(--pi); line-height: 1; overflow: hidden; }
.pgrid .pc:nth-child(9n) { border-right: 0; }
.pgrid .pc:nth-last-child(-n + 9) { border-bottom: 0; }
.pc b { font: 800 19pt/1 var(--sans); font-variant-numeric: tabular-nums; }
.pc small { font: 5.2pt/1.05 var(--sans); color: #444; margin-top: .6mm; text-align: center; padding: 0 .6mm; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc.e { background: repeating-linear-gradient(135deg, var(--pt) 0 1.6mm, #fff 1.6mm 3.2mm); }
.ink-nero .pc.e { background: repeating-linear-gradient(135deg, #E6E6E6 0 .35mm, #fff .35mm 2.4mm); }
.pcode { margin: 1.2mm 0 0 1mm; font: 7.5pt var(--sans); color: #555; letter-spacing: .02em; }
.ptab-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 5mm; padding-bottom: 2mm; }
.pblock { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(3, 1fr); border: .6mm solid var(--pi); border-radius: 2mm; overflow: hidden; }
.pblock .pc:nth-child(5n + 1) { border-right: 0; }
.pblock .pc:nth-last-child(-n + 5) { border-bottom: 0; }
.pblock .pc b { font-size: 26pt; }
.pblock .pc small { font-size: 6.5pt; }
.pblock-n { position: absolute; right: 1.5mm; bottom: .8mm; font: 6pt var(--sans); color: #888; }
.pnums-grid { flex: 1; display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(10, 1fr); border-top: .3mm dashed #999; border-left: .3mm dashed #999; }
.pc.cut { border-right: .3mm dashed #999; border-bottom: .3mm dashed #999; }
.pc.cut b { width: 15mm; height: 15mm; border-radius: 50%; display: grid; place-items: center; border: .6mm solid var(--pi); font-size: 17pt; }
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  html, body { background: #fff !important; }
  .site-header, .site-footer, .no-print, .print-form, .toast, .skip, .print-h1, .prose { display: none !important; }
  main, .print-app, .wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .sheets { gap: 0; display: block; }
  .sheet { zoom: 1 !important; box-shadow: none; break-after: page; page-break-after: always; margin: 0; }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* footer */
.site-footer { margin-top: 40px; background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0 26px; font-size: 16px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.foot-brand p { color: var(--muted); margin-top: 10px; max-width: 380px; }
.foot-h { font: 700 15px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.foot a:not(.logo) { display: block; color: var(--ink); text-decoration: none; padding: 3px 0; }
.foot a:not(.logo):hover { color: var(--red-strong); }
.fine { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------------- online rooms ---------------- */
.join-code { align-self: center; }
.join-code h2 { margin-top: 0; font-size: 22px; }
.join-code label { display: block; color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.join-code .row, .verify-form .row { display: flex; gap: 8px; }
.join-code input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: 20px; }
.room { padding-top: 16px; padding-bottom: 20px; position: relative; }
.room-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.room-label { color: var(--muted); font-size: 15px; }
.room-code { font: 800 26px/1 var(--sans); letter-spacing: .14em; color: var(--red-strong); }
.conn { font-size: 14px; color: var(--muted); margin-left: 6px; }
.conn::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-right: 6px; vertical-align: 1px; }
.conn.ok::before { background: var(--green); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.wa { background: #1E8E4E; border-color: #1E8E4E; color: #fff; }
.room-msg p { font-size: 19px; margin-bottom: 4px; }
.room-join { max-width: 520px; margin: 10px auto; }
.room-h { font-size: clamp(26px, 5vw, 36px); }
.room-join label[for] { display: block; color: var(--muted); font-size: 15px; margin: 6px 0; }
.room-join input { width: 100%; font-size: 20px; }
.seg-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 6px; }
.room-main { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 22px; align-items: start; }
.room-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.room-cards { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.room .controls { grid-template-columns: 1fr 1fr; }
.room .controls #r-draw { grid-column: 1 / -1; min-height: 64px; font-size: 22px; }
.room .controls .int { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; }
.room .controls .int select { flex: 1; min-height: 46px; }
.ph { font: 700 18px/1.3 var(--sans); margin: 0 0 10px; }
.prize-log { margin: 8px 0 0; padding-left: 1.1em; font-size: 15px; color: var(--muted); }
.prize-log b { color: var(--ink); }
.players ul { list-style: none; margin: 0; padding: 0; }
.players li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.players li:last-child { border-bottom: 0; }
.players li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.players li.on::before { background: var(--green); }
.players li.empty::before { display: none; }
.players li.empty { color: var(--muted); }
.players .pn { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.players .pi { color: var(--muted); font-size: 14px; margin-left: auto; white-space: nowrap; }
.players .kick { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; min-width: 32px; height: 30px; padding: 0 8px; cursor: pointer; font-size: 13px; }
.reactions { display: flex; flex-wrap: wrap; gap: 6px; }
.reactions button { font-size: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.reactions button:active { transform: scale(.92); }
.floaters { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.floater { position: absolute; bottom: 8%; display: flex; flex-direction: column; align-items: center; animation: floatup 3s ease-out forwards; }
.floater .fe { font-size: 40px; }
.floater .fn { font-size: 13px; font-weight: 700; background: var(--surface); color: var(--ink); border-radius: 999px; padding: 2px 8px; box-shadow: var(--shadow); }
@keyframes floatup { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-40px) scale(1); } 100% { transform: translateY(-60vh) scale(1); opacity: 0; } }
.room-cardlist { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.room-cardlist .cartella .c.hit { background: radial-gradient(ellipse 40% 31% at 50% 52%, #8A5634 0 60%, #6B3E22 88%, transparent 92%), var(--surface); color: #FFF8EC; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.card-prog { color: var(--green); font-weight: 650; }
.room-board summary { cursor: pointer; font-weight: 700; font-size: 18px; margin-bottom: 8px; }
@media (max-width: 860px) {
  .room-main { grid-template-columns: minmax(0, 1fr); }
  .room-side { display: contents; }
  .room .current { order: 1; } .room .controls { order: 2; } .room .status { order: 3; } .room-cards { order: 4; } .room .prizes { order: 5; }
  .room .reactions { order: 6; } .room .players { order: 7; } #r-opts { order: 8; }
  .room .current { flex-direction: row; text-align: left; }
}

/* ---------------- scopa ---------------- */
.scopa-head { padding-top: 20px; }
.scopa-head h1 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 4px; }
.scopa { max-width: 960px; margin: 10px auto 0; padding: 0 var(--gutter); position: relative; }
.sc-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sc-score { display: flex; gap: 14px; align-items: baseline; font-size: 17px; }
.sc-score b { font: 800 24px/1 var(--sans); color: var(--red-strong); margin-left: 4px; }
.sc-score .sc-to { color: var(--muted); font-size: 14px; }
.sc-score .sc-to b { font-size: 15px; color: var(--muted); }
.sc-ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sc-ctl label, .sc-tools label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; }
.sc-ctl select, .sc-tools select { min-height: 42px; padding: 6px 10px; }
.sc-felt { position: relative; border-radius: 20px; padding: 14px 12px 16px; color: #F2EAD8; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #2F7A4F 0%, #1F5B39 55%, #16432A 100%); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .12), var(--shadow); }
.sc-pile { margin: 4px 2px; font-size: 14px; color: rgba(242, 234, 216, .85); }
.sc-pile b { color: #fff; }
.sc-hand { display: flex; justify-content: center; gap: 10px; min-height: 40px; }
.sc-hand.opp { --cw: clamp(38px, 9vw, 58px); gap: 6px; }
.sc-hand.mine { --cw: clamp(92px, 26vw, 124px); gap: clamp(8px, 2.5vw, 18px); padding-top: 4px; }
.sc-opp { display: flex; flex-direction: column; align-items: center; }
.sc-me { display: flex; flex-direction: column; align-items: center; }
.sc-mid { display: flex; align-items: center; gap: 12px; margin: 12px 0 6px; min-height: calc(var(--tw) * 1.5 + 12px); --tw: clamp(58px, 17vw, 86px); }
.sc-table { --cw: var(--tw); flex: 1; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 8px; min-height: calc(var(--tw) * 1.5); }
.sc-empty { color: rgba(242, 234, 216, .6); font-style: italic; align-self: center; }
.sc-deck { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: rgba(242, 234, 216, .85); flex: none; }
.sc-deck .deckback { width: 40px; height: 60px; border-radius: 6px; border: 2px solid #FFFCF4; background: repeating-linear-gradient(45deg, #9B1F18 0 5px, #B3261E 5px 10px); box-shadow: 2px 2px 0 #7D1A14, 4px 4px 0 rgba(0, 0, 0, .25); }
.pc { width: var(--cw, 72px); aspect-ratio: 2 / 3; display: inline-block; border: 0; padding: 0; background: none; border-radius: 9%/6%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); transition: transform .18s, filter .18s, opacity .3s; }
.pc svg { width: 100%; height: 100%; display: block; }
button.pc { cursor: pointer; }
button.pc:disabled { cursor: default; }
.scopa.my-turn .sc-hand.mine button.pc:hover, .scopa.my-turn .sc-hand.mine button.pc:focus-visible { transform: translateY(-8px); }
.sc-hand.mine button.pc:disabled { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)) saturate(.85) brightness(.92); }
.pc.sel { transform: translateY(-12px); filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 6px #F2C14E); }
.pc.cand { outline: 2px dashed rgba(242, 193, 78, .8); outline-offset: 2px; }
.pc.hl, .pc.taking { transform: translateY(-6px) scale(1.04); filter: drop-shadow(0 0 7px #F2C14E) drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.pc.incoming { animation: deal .35s ease-out; }
.pc.incoming.cpu { animation-name: dealtop; }
@keyframes deal { from { transform: translateY(60px) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dealtop { from { transform: translateY(-60px) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.sc-msg { min-height: 2.8em; margin: 6px 4px; text-align: center; font-size: 16px; color: #FFF8EC; }
.sc-msg.big { font: 700 20px/1.3 var(--serif); color: #F2C14E; }
.sc-choices { background: rgba(0, 0, 0, .22); border-radius: 14px; padding: 10px; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sc-choices p { width: 100%; text-align: center; margin: 0 0 4px; }
.sc-choices .btn { background: #FFFCF4; color: #231D18; border-color: #FFFCF4; }
.sc-choices .btn.ghost { background: transparent; color: #FFF8EC; border-color: rgba(255, 248, 236, .5); }
.sc-flash { position: absolute; inset: 0; display: grid; place-items: center; font: 800 clamp(48px, 14vw, 110px)/1 var(--serif); color: #F2C14E; text-shadow: 0 4px 18px rgba(0, 0, 0, .5); pointer-events: none; opacity: 0; }
.sc-flash.on { animation: scflash 1.6s ease-out; }
@keyframes scflash { 0% { opacity: 0; transform: scale(.6) rotate(-6deg); } 20% { opacity: 1; transform: scale(1.05) rotate(-6deg); } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15) rotate(-6deg); } }
.sc-tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 12px 0 0; }
.sc-modal { position: fixed; inset: 0; z-index: 70; background: rgba(23, 17, 14, .55); display: grid; place-items: center; padding: 16px; }
.sc-modal-box { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 20px; width: min(440px, 100%); box-shadow: var(--shadow); max-height: 92vh; overflow: auto; }
.sc-modal-box h2 { margin-top: 0; font-size: 26px; }
.sc-tab { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 16px; }
.sc-tab th, .sc-tab td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.sc-tab th[scope="row"] { text-align: left; font-weight: 600; }
.sc-tab td.win { background: var(--green-soft); color: var(--green); font-weight: 800; }
.sc-tab tr.tot th, .sc-tab tr.tot td { font-weight: 800; border-bottom: 0; }
.sc-modal-box .btn { width: 100%; }
@media (max-width: 520px) {
  .sc-felt { padding: 10px 6px 12px; border-radius: 16px; }
  .sc-mid { gap: 6px; }
  .sc-deck .deckback { width: 30px; height: 45px; }
  .sc-score { gap: 10px; font-size: 15px; }
}

/* ---------------- briscola ---------------- */
.bc-mid { justify-content: center; }
.bc-trick { --cw: clamp(72px, 21vw, 104px); flex: 1; display: flex; justify-content: center; align-items: center; gap: 14px; min-height: calc(var(--cw) * 1.5); }
.bc-trick .played.cpu { transform: translateY(-8px) rotate(-4deg); animation: dealtop .3s ease-out; }
.bc-trick .played.me { transform: translateY(8px) rotate(4deg); animation: deal .3s ease-out; }
.bc-trick .played.win { filter: drop-shadow(0 0 8px #F2C14E) drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.bc-deck { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: rgba(242, 234, 216, .85); flex: none; text-align: center; }
.bc-stack { display: flex; gap: 6px; align-items: flex-end; }
.bc-brisc { --cw: 54px; display: block; }
.bc-brisc .pc { box-shadow: 0 0 0 2px #F2C14E; border-radius: 6px; }
.bc-stack .deckback { width: 46px; height: 69px; border-radius: 6px; border: 2px solid #FFFCF4;
  background: repeating-linear-gradient(45deg, #9B1F18 0 5px, #B3261E 5px 10px); box-shadow: 2px 2px 0 #7D1A14, 4px 4px 0 rgba(0, 0, 0, .25); }
.bc-trump b { color: #F2C14E; }
.cardgame .ptsv { display: none; }
.cardgame.show-pts .ptsv { display: inline; }
.sc-hand.mine .pc.trump { filter: drop-shadow(0 0 0 transparent) drop-shadow(0 -3px 0 #F2C14E) drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
@media (max-width: 520px) {
  .bc-brisc { --cw: 40px; }
  .bc-stack .deckback { width: 32px; height: 48px; }
  .bc-trick { gap: 8px; }
}

/* ---------------- burraco ---------------- */
.bu-felt { padding-bottom: 12px; }
.bu-side { margin: 4px 0; }
.bu-melds { display: flex; flex-wrap: wrap; gap: 8px 10px; min-height: 52px; align-items: flex-start; padding: 4px 2px; }
.bu-meld { --cw: clamp(30px, 8vw, 40px); display: inline-flex; position: relative; border: 0; background: rgba(0, 0, 0, .12); padding: 4px 6px 4px 4px; border-radius: 10px; }
.bu-meld .pc { margin-right: calc(var(--cw) * -0.52); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.bu-meld .pc:last-of-type { margin-right: 0; }
button.bu-meld { cursor: pointer; }
.bu.attach-mode button.bu-meld { outline: 2px dashed rgba(242, 193, 78, .85); outline-offset: 2px; }
.bu-meld.burraco { background: rgba(242, 193, 78, .22); box-shadow: inset 0 0 0 2px #F2C14E; }
.bu-tag { position: absolute; left: 6px; bottom: -9px; background: #F2C14E; color: #231D18; font: 700 10px/1 var(--sans); padding: 3px 6px; border-radius: 999px; white-space: nowrap; }
.bu-meld.burraco.dirty .bu-tag { background: #E8D2A0; }
.bu-center { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 5vw, 36px); margin: 10px 0 4px; }
.bu-pile { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; color: rgba(242, 234, 216, .9); font: 13px var(--sans); padding: 4px; border-radius: 10px; cursor: pointer; }
.bu-pile:disabled { cursor: default; }
.bu-pile.static { cursor: default; }
.bu.can-draw #bu-stock:not(:disabled), .bu.can-draw #bu-discard-btn:not(:disabled) { box-shadow: 0 0 0 2px #F2C14E; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(242, 193, 78, .35); } }
.deckback.blue { width: 46px; height: 69px; border-radius: 6px; border: 2px solid #FFFCF4; background: repeating-linear-gradient(45deg, #173A6B 0 5px, #2B5C9E 5px 10px); box-shadow: 2px 2px 0 #10294D, 4px 4px 0 rgba(0, 0, 0, .25); display: block; }
.deckback.blue.small { width: 34px; height: 51px; }
.bu-dtop { --cw: 46px; display: block; min-height: 69px; }
.bu-dtop .pc.fresh { animation: dealtop .35s ease-out; }
.bu-emptypile { display: grid; place-items: center; width: 46px; height: 69px; border: 2px dashed rgba(242, 234, 216, .4); border-radius: 6px; font-size: 11px; }
.bu-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.bu-hand-h { margin: 6px 0; color: var(--muted); font-size: 15px; }
.bu-hand { --cw: clamp(50px, 14vw, 66px); display: flex; flex-wrap: wrap; row-gap: 10px; padding: 14px 4px 8px calc(var(--cw) * 0.5); background: var(--surface-2); border-radius: 16px; }
.bu-hand .pc { margin-left: calc(var(--cw) * -0.5); }
.bu-hand .pc.sel { transform: translateY(-14px); filter: drop-shadow(0 0 6px #F2C14E) drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.bu-hand .pc:disabled { cursor: default; }
@media (min-width: 900px) { .bu-hand { --cw: 70px; } .bu-meld { --cw: 42px; } }
