/* Nərd — "Abanoz və dəri": tünd abanoz, bordo dəri, krem/şərab inkrustasiya, sədəf və oniks daşlar. Bir tünd mövzu. */
:root {
  --bg: #0b0708; --bg2: #140d0e; --card: rgba(255, 240, 220, .045); --line: rgba(232, 200, 150, .12); --line2: rgba(232, 200, 150, .22);
  --ink: #f4ead8; --mut: #a89a86; --dim: #75695a;
  --gold: #e2bd78; --gold2: #b8874a; --gold3: #f6dca4; --wine: #6d1a22; --ok: #7fd1a1; --bad: #f08a7e;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif; --sans: Inter, -apple-system, system-ui, sans-serif;
  --r: 18px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body.nd {
  background: radial-gradient(130% 70% at 50% 35%, #22151a 0%, #120b0d 55%, #070405 100%) fixed, var(--bg);
  color: var(--ink); font: 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; overscroll-behavior: none;
}
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---- üst zolaq ---- */
.nd-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 8px) 14px 8px; background: linear-gradient(180deg, rgba(11, 7, 8, .92), rgba(11, 7, 8, .6) 70%, transparent); }
.top-r { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .x { display: none; }
.icon-btn[aria-pressed="true"] .wave { display: none; }
.icon-btn[aria-pressed="true"] .x { display: inline; }
.lang-sw { display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lang-sw button { border: 0; background: none; padding: 8px 10px; font: 600 12px var(--sans); color: var(--mut); cursor: pointer; letter-spacing: .04em; }
.lang-sw button[aria-pressed="true"], .lang-sw button.on { background: rgba(226, 189, 120, .16); color: var(--gold3); }

/* ---- düymələr ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--line2); background: linear-gradient(180deg, rgba(255, 240, 220, .07), rgba(255, 240, 220, .03)); color: var(--ink);
  font: 600 15px var(--sans); letter-spacing: .01em; cursor: pointer; transition: transform .12s, filter .15s, opacity .2s; touch-action: manipulation; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .38; cursor: default; transform: none; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { border: 0; color: #2a1608; background: linear-gradient(180deg, #f4d79c 0%, #d4a55e 55%, #b8874a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(90, 50, 10, .25), 0 8px 22px rgba(184, 135, 74, .28); }
.btn.primary svg { stroke: #2a1608; fill: rgba(42, 22, 8, .12); }
.btn.ghost { background: rgba(255, 240, 220, .035); border-color: var(--line); }
.btn.big { min-height: 56px; font-size: 16px; width: 100%; }

/* ---- giriş ekranı ---- */
.home { max-width: 520px; margin: 0 auto; padding: 4px 14px calc(env(safe-area-inset-bottom) + 28px); display: flex; flex-direction: column; gap: 14px; }
.hero { position: relative; text-align: center; padding: 18px 8px 6px; }
.hero-art { position: relative; height: 112px; margin: 0 auto 6px; width: 220px; }
.hero-art::before { content: ""; position: absolute; inset: 22px 10px 8px; border-radius: 16px;
  background: radial-gradient(70% 90% at 50% 40%, #6a1d25, #2b0c10 75%); box-shadow: inset 0 0 0 5px #1b1112, inset 0 0 0 6px rgba(226, 189, 120, .45), 0 18px 40px rgba(0, 0, 0, .6); }
.hero-die { position: absolute; width: 46px; height: 46px; border-radius: 11px; top: 40px;
  background: radial-gradient(120% 120% at 30% 25%, #fffdf6, #e9dfcc 60%, #cdbfa6);
  box-shadow: inset 0 -3px 6px rgba(120, 90, 50, .25), inset 0 2px 2px #fff, 0 10px 18px rgba(0, 0, 0, .55); }
.hero-die::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, #6d1a22 4.2px, transparent 5px), radial-gradient(circle at 70% 70%, #6d1a22 4.2px, transparent 5px), radial-gradient(circle at 70% 30%, #6d1a22 4.2px, transparent 5px), radial-gradient(circle at 30% 70%, #6d1a22 4.2px, transparent 5px), radial-gradient(circle at 50% 50%, #6d1a22 4.2px, transparent 5px); }
.hero-die.d1 { left: 52px; transform: rotate(-14deg); animation: hd 5.5s ease-in-out infinite; }
.hero-die.d2 { left: 118px; top: 46px; transform: rotate(11deg); animation: hd 5.5s ease-in-out -2.7s infinite; }
.hero-die.d2::after { background: radial-gradient(circle at 30% 30%, #6d1a22 4.2px, transparent 5px), radial-gradient(circle at 70% 70%, #6d1a22 4.2px, transparent 5px), radial-gradient(circle at 50% 50%, #6d1a22 4.2px, transparent 5px); }
@keyframes hd { 0%, 70%, 100% { translate: 0 0; } 78% { translate: 0 -16px; rotate: 90deg; } 86% { translate: 0 0; rotate: 180deg; } 91% { translate: 0 -4px; } }
.kicker { margin: 0; font: 600 11px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.hero h1 { margin: 2px 0 4px; font: 700 58px/1 var(--serif); letter-spacing: .01em;
  background: linear-gradient(180deg, #fff3da, #e2bd78 70%, #a8783e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 0 auto; max-width: 340px; color: var(--mut); font-size: 14.5px; }
.panel { background: linear-gradient(180deg, rgba(255, 240, 220, .05), rgba(255, 240, 220, .025)); border: 1px solid var(--line); border-radius: 22px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld > span { font: 600 11.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
input { font: 500 16px var(--sans); color: var(--ink); background: rgba(0, 0, 0, .35); border: 1px solid var(--line2); border-radius: 13px; padding: 13px 14px; outline: none; min-width: 0; }
input:focus { border-color: var(--gold2); box-shadow: 0 0 0 3px rgba(226, 189, 120, .15); }
.who { margin: 0; color: var(--mut); }
.who b { color: var(--ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { flex: 1; min-height: 40px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--mut); font: 600 13.5px var(--sans); cursor: pointer; }
.chips button[aria-checked="true"] { color: #2a1608; border-color: transparent; background: linear-gradient(180deg, #f1d398, #c99a55); }
.solo-row { display: flex; flex-direction: column; gap: 8px; }
.row2 { display: flex; gap: 8px; }
.row2 > * { flex: 1; }
.code { display: flex; gap: 6px; }
.lobby-row > .btn { flex: 1 1 0; padding: 0 10px; }
.lobby-row > .code { flex: 1.3 1 0; min-width: 0; }
.code input { flex: 1; width: 0; text-transform: uppercase; letter-spacing: .2em; text-align: center; font-weight: 700; }
.code .btn { padding: 0 14px; }
.err { margin: 0; min-height: 1em; color: var(--bad); font-size: 13.5px; text-align: center; }
.err:empty { display: none; }
.list-h { display: flex; align-items: baseline; justify-content: space-between; }
.list-h h2 { margin: 4px 0 0; font: 700 21px var(--serif); color: var(--gold3); letter-spacing: .01em; }
.list-h .mine { color: var(--mut); font-size: 13px; }
.rooms, .top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rooms li, .top li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 13px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.rooms li.empty, .top li.empty { color: var(--dim); justify-content: center; font-size: 13.5px; border-style: dashed; }
.rooms li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rooms li span { color: var(--mut); font-size: 12.5px; }
.rooms li button { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.top { counter-reset: r; }
.top li::before { counter-increment: r; content: counter(r); width: 20px; color: var(--gold); font: 700 15px var(--serif); }
.top li b { flex: 1; font-weight: 600; }
.top li span { color: var(--gold3); font-variant-numeric: tabular-nums; font-weight: 600; }
.rules summary { cursor: pointer; font: 700 20px var(--serif); color: var(--gold3); list-style: none; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: " +"; color: var(--dim); }
.rules details[open] summary::after { content: " –"; }
.rules ul { margin: 10px 0 0; padding-left: 18px; color: var(--mut); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }

/* ---- oyun ekranı ---- */
.game { height: calc(100dvh - env(safe-area-inset-top) - 52px); padding: 0 0 calc(env(safe-area-inset-bottom) + 6px);
  display: flex; flex-direction: column; align-items: center; max-width: 560px; margin-left: auto; margin-right: auto; overflow: hidden; }
.hud { width: 100%; display: flex; align-items: center; gap: 10px; padding: 4px 14px; min-height: 54px; transition: opacity .3s; }
.ava { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.ava .ini { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--sans); color: var(--gold3);
  background: radial-gradient(100% 100% at 30% 25%, #3a2a2b, #1a1112); border: 1px solid rgba(226, 189, 120, .35); background-size: cover; background-position: center; overflow: hidden; }
.ava .ring { position: absolute; inset: 0; width: 44px; height: 44px; transform: rotate(-90deg); }
.ava .ring circle { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .25s linear, stroke .3s; }
.ava.reserve .ring circle { stroke: #e0705f; }
.ava .dot { position: absolute; right: 2px; bottom: 2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #120b0d; }
.ava .dot.w { background: radial-gradient(circle at 35% 30%, #fff, #d9d3df); }
.ava .dot.b { background: radial-gradient(circle at 35% 30%, #5a5456, #0b0909); }
.ava.off .ini { opacity: .45; filter: grayscale(1); }
.nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nm b { font: 600 15px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm span { font: 500 12px var(--sans); color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pip { font: 600 11px var(--sans); color: #c7b28a; border: 1px solid rgba(214, 180, 120, .25); padding: 4px 8px; border-radius: 999px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.tm { font: 700 16px ui-monospace, 'SF Mono', Menlo, monospace; color: var(--mut); min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.hud.active .tm { color: var(--gold3); }
.hud.active .nm b { color: var(--gold3); }
.tm small { display: block; font: 600 10px var(--sans); color: var(--dim); letter-spacing: .04em; }

.match-bar { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 26px; font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8f826b; }
.mb-s { color: var(--gold); font-size: 12px; letter-spacing: .08em; }
.chip { border: 1px solid var(--line); background: rgba(0, 0, 0, .25); border-radius: 999px; padding: 3px 10px; display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--sans); color: var(--mut); cursor: pointer; letter-spacing: .08em; }
.chip b { color: var(--gold3); letter-spacing: .14em; }
.spec-badge { color: var(--mut); letter-spacing: .04em; }

.game.land { max-width: 1040px; }
.game.land .hud { max-width: 840px; }
.game.land .actions { max-width: 600px; }
.game.land .quick-reacts { max-width: 600px; justify-content: center; }
.board.land { aspect-ratio: 540 / 360; max-width: 1000px; }
.board.land .board-img { border-radius: 2.4%; }
.stage { position: relative; flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; padding: 2px 8px; }
.board { position: relative; aspect-ratio: 360 / 540; width: 100%; max-width: 540px;
  touch-action: none; user-select: none; -webkit-user-select: none; contain: layout; perspective: 900px; }
.board-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; border-radius: 3.2%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7), 0 2px 0 rgba(255, 230, 190, .06); }
.marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.marks .tgt { fill: url(#gl); opacity: 0; animation: tgt 1.4s ease-in-out infinite; }
.marks .tgt.on { opacity: 1; }
.marks .ring { fill: none; stroke: #ffd98f; stroke-width: 1.6; stroke-dasharray: 3.2 3; opacity: .95; }
.marks .pt { fill: #ffd98f; }
.marks .last { fill: none; stroke: rgba(255, 217, 143, .35); stroke-width: 1.2; }
.marks .trayglow { fill: rgba(255, 217, 143, .2); stroke: #ffd98f; stroke-width: 1.4; stroke-dasharray: 4 3; }
@keyframes tgt { 50% { opacity: .55; } }

.pieces, .dice, .tray-slabs { position: absolute; inset: 0; pointer-events: none; }
.dice { z-index: 20; }
.ck { position: absolute; left: 0; top: 0; width: var(--cs); height: var(--cs); margin: calc(var(--cs) * -.5) 0 0 calc(var(--cs) * -.5);
  will-change: transform; background-size: 100% 100%; z-index: 2; }
.ck::before { content: ""; position: absolute; inset: -14%; background: var(--img) center / 100% 100% no-repeat; }
.ck.w { --img: var(--ck-w); }
.ck.b { --img: var(--ck-b); }
.ck::after { content: ""; position: absolute; inset: -9%; border-radius: 50%; border: 2px solid #ffd98f; opacity: 0; transform: scale(.92); transition: opacity .18s, transform .18s; box-shadow: 0 0 14px rgba(255, 210, 120, .55); }
.ck.sel::after { opacity: 1; transform: scale(1); }
.ck.can::after { opacity: .55; transform: scale(1); border-width: 1.5px; box-shadow: none; animation: can 1.8s ease-in-out infinite; }
@keyframes can { 50% { opacity: .15; } }
.ck.lift { z-index: 9; }
.ck .n { position: absolute; inset: 0; display: grid; place-items: center; font: 700 calc(var(--cs) * .36) var(--sans); z-index: 1; }
.ck.w .n { color: #6e6474; }
.ck.b .n { color: #d8cdbb; }
.slab { position: absolute; width: calc(var(--u) * 6.2); height: calc(var(--u) * 28); border-radius: calc(var(--u) * 2); will-change: transform; }
.slab.w { background: linear-gradient(90deg, #b9b2c2, #fff 35%, #ebe6f0 65%, #a8a0b3); box-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.slab.b { background: linear-gradient(90deg, #000, #4a4446 35%, #262122 65%, #000); box-shadow: 0 1px 2px rgba(0, 0, 0, .8), inset 0 0 0 .5px rgba(255, 255, 255, .12); }

/* zər: 3D kub */
.die { position: absolute; left: 0; top: 0; width: var(--ds); height: var(--ds); margin: calc(var(--ds) * -.5) 0 0 calc(var(--ds) * -.5); transform-style: preserve-3d; will-change: transform; z-index: 6; }
/* oynanmış zər: üzlər tündləşir (kubun özünə opacity/filter vermək olmaz — 3D yastılaşır) */
.die .face, .die .core { transition: filter .3s; }
.die.used .face, .die.used .core { filter: brightness(.5) saturate(.35); }
.die-sh { position: absolute; left: 0; top: 0; width: var(--ds); height: var(--ds); margin: calc(var(--ds) * -.5) 0 0 calc(var(--ds) * -.5); border-radius: 26%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); will-change: transform, opacity; z-index: 5; }
.cube { position: absolute; inset: 0; transform-style: preserve-3d; }
.face { position: absolute; inset: 0; border-radius: 19%; backface-visibility: hidden;
  background: radial-gradient(130% 130% at 28% 22%, #fffdf7 0%, #f3ecdf 45%, #d9ccb4 100%);
  box-shadow: inset 0 0 0 .5px rgba(120, 90, 50, .35), inset 0 calc(var(--ds) * -.07) calc(var(--ds) * .12) rgba(110, 80, 40, .22), inset 0 calc(var(--ds) * .05) calc(var(--ds) * .05) rgba(255, 255, 255, .9); }
.face i { position: absolute; width: 21%; height: 21%; margin: -10.5% 0 0 -10.5%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #8e2430 0%, #5a0f17 60%, #3a070c 100%); box-shadow: inset 0 1px 1.5px rgba(0, 0, 0, .55), 0 .5px 0 rgba(255, 255, 255, .7); }
.core { position: absolute; inset: 8%; background: #e9dfcc; }

.banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 12; padding: 12px 20px; border-radius: 14px; text-align: center;
  background: rgba(14, 8, 9, .86); border: 1px solid var(--line2); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 600 14px var(--sans); color: var(--ink); white-space: nowrap; animation: bn .35s cubic-bezier(.2, 1.4, .4, 1); pointer-events: none; }
.banner b { display: block; font: 700 22px var(--serif); color: var(--gold3); }
@keyframes bn { from { opacity: 0; transform: translate(-50%, -40%) scale(.94); } }

.reacts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 15; }
.bub { position: absolute; left: 50%; max-width: 70%; padding: 8px 12px; border-radius: 16px; font: 500 14px var(--sans); background: rgba(20, 12, 13, .92); border: 1px solid var(--line2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .5); animation: bub 3.2s ease forwards; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bub.emo { font-size: 34px; padding: 2px 6px; background: none; border: 0; box-shadow: none; }
.bub.top { top: 4px; } .bub.bot { bottom: 4px; }
@keyframes bub { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.8); } 10% { opacity: 1; transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -12px); } }

.actions { width: 100%; display: flex; gap: 8px; padding: 6px 14px 4px; }
.actions .main { flex: 1; min-height: 52px; font-size: 16px; }
.actions .sq { width: 52px; min-height: 52px; padding: 0; flex: none; position: relative; }
.badge { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #e65c5c; box-shadow: 0 0 0 2px #120b0d; }
.quick-reacts { display: flex; gap: 6px; padding: 2px 14px 0; width: 100%; overflow-x: auto; scrollbar-width: none; }
.quick-reacts::-webkit-scrollbar { display: none; }
.quick-reacts button { flex: none; min-width: 42px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 240, 220, .035); font-size: 19px; cursor: pointer; }
.quick-reacts button:active { transform: scale(.9); }

/* ---- pəncərələr ---- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(4, 2, 3, .62); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 41; left: 50%; bottom: 0; width: min(100%, 520px); transform: translateX(-50%); max-height: 86dvh; overflow: auto;
  padding: 10px 18px calc(env(safe-area-inset-bottom) + 18px); border-radius: 24px 24px 0 0; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, #221618, #150d0f); border: 1px solid var(--line2); border-bottom: 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); animation: up .32s cubic-bezier(.2, .9, .3, 1); }
@keyframes up { from { transform: translate(-50%, 40px); opacity: 0; } }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line2); margin: 0 auto 2px; }
.sheet h3 { margin: 0; text-align: center; font: 700 26px var(--serif); color: var(--gold3); }
.mut { margin: 0; color: var(--mut); text-align: center; font-size: 14px; }
.big-code { text-align: center; font: 700 44px var(--serif); letter-spacing: .26em; color: var(--ink); padding-left: .26em; }
.chat-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 40dvh; overflow-y: auto; min-height: 80px; }
.chat-log li { font-size: 14px; color: var(--ink); }
.chat-log li b { color: var(--gold); font-weight: 600; margin-right: 6px; }
.chat-log li.empty { color: var(--dim); text-align: center; }
.react-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.react-row button { width: 44px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); font-size: 20px; cursor: pointer; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; }
.result { text-align: center; }
.res-crest { width: 84px; height: 84px; margin: 6px auto 0; border-radius: 50%; display: grid; place-items: center; font-size: 40px;
  background: radial-gradient(circle at 35% 30%, #f6dca4, #b8874a 70%, #6e4a1f); box-shadow: 0 0 0 6px rgba(226, 189, 120, .12), 0 14px 34px rgba(184, 135, 74, .35); }
.res-crest.lose { background: radial-gradient(circle at 35% 30%, #6a5a5c, #2a1e20 70%, #120b0d); box-shadow: 0 0 0 6px rgba(255, 255, 255, .05), 0 14px 34px rgba(0, 0, 0, .5); }
.res-sub { margin: 0; color: var(--mut); }
.res-score { font: 700 40px var(--serif); color: var(--ink); letter-spacing: .06em; font-variant-numeric: lining-nums tabular-nums; }
.res-chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.res-chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); font: 600 13px var(--sans); color: var(--ink); background: rgba(0, 0, 0, .25); }
.res-chips span.good { color: var(--ok); border-color: rgba(127, 209, 161, .35); }
.res-chips span.bad { color: var(--bad); border-color: rgba(240, 138, 126, .3); }
.res-chips span.gold { color: var(--gold3); border-color: rgba(226, 189, 120, .45); }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 92px); transform: translateX(-50%); max-width: calc(100% - 28px);
  padding: 11px 16px; border-radius: 14px; background: rgba(22, 14, 15, .95); border: 1px solid var(--line2); box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  font: 500 14px var(--sans); text-align: center; animation: up2 .25s; }
@keyframes up2 { from { opacity: 0; transform: translate(-50%, 10px); } }

@media (min-height: 860px) { .hud { min-height: 60px; } }
@media (prefers-reduced-motion: reduce) { .hero-die { animation: none !important; } }
