/* «Свинка» — тёплая таверна. Рукописные заголовки, дерево, ламповый свет.
   Талисман — рисованный поросёнок (tpl-pig), эмоции через data-emo. */

:root {
  color-scheme: dark;
  --bg: #241710;
  --bg2: #38261a;
  --ink: #f3e3c9;
  --muted: rgba(243, 227, 201, .64);
  --accent: #c96f2e;
  --accent-dark: #96521e;
  --good: #7fb069;
  --gold: #e9b45c;
  --paper: #f0e3c8;
  --paper-ink: #3c2a1c;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 196, 110, .10), transparent 46%),
    radial-gradient(circle at 50% 30%, var(--bg2) 0%, var(--bg) 74%);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  user-select: none; -webkit-user-select: none;
  overflow: hidden;
}

body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: .045;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }

h1, h2, h3, .logo, .mode-title, .btn, .chip, .seg button {
  font-family: 'Neucha', Georgia, serif;
  letter-spacing: .3px;
}

.screen { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.screen.scroll { overflow-y: auto; overflow-x: hidden; }
.page { padding: calc(14px + env(safe-area-inset-top)) 16px 40px; max-width: 480px; margin: 0 auto; width: 100%; }
.h-scr { margin: 20px 0 10px; font-size: 22px; transform: rotate(-.6deg); }

.center-card { margin: auto; padding: 32px 24px; text-align: center; max-width: 340px; width: 100%; }
.center-card h1 { font-size: 30px; margin: 8px 0 6px; }
.center-card p { margin: 6px 0 14px; line-height: 1.45; }

/* ---------- талисман ---------- */

.mascot { display: inline-block; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .38)); }
.m-lg { width: 128px; } .m-md { width: 96px; } .m-sm { width: 46px; }
.mascot svg { width: 100%; height: auto; display: block; transform: rotate(-2deg); }
.mascot.bob svg { animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: rotate(-2deg) translateY(0) } 50% { transform: rotate(-1deg) translateY(-6px) } }

.mascot [class^="eyes-"], .mascot [class^="mouth-"] { display: none; }
.mascot[data-emo="idle"] .eyes-idle, .mascot[data-emo="idle"] .mouth-idle,
.mascot[data-emo="happy"] .eyes-happy, .mascot[data-emo="happy"] .mouth-happy,
.mascot[data-emo="shock"] .eyes-shock, .mascot[data-emo="shock"] .mouth-o,
.mascot[data-emo="sad"] .eyes-sad, .mascot[data-emo="sad"] .mouth-sad,
.mascot[data-emo="think"] .eyes-think, .mascot[data-emo="think"] .mouth-idle { display: block; }
.mascot.wiggle svg { animation: wiggle .5s ease-in-out; }
@keyframes wiggle { 0%,100%{transform:rotate(-2deg)} 30%{transform:rotate(3deg)} 60%{transform:rotate(-5deg)} }

/* ---------- главный экран ---------- */

/* ---- шапка игрока ---- */
.player-hdr {
  display: flex; align-items: center; gap: 13px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  margin: 0 12px 4px; border-radius: 0 0 20px 20px;
  background: linear-gradient(180deg, rgba(233,180,92,.10), rgba(247,236,217,.02));
  border-bottom: 1px solid rgba(233,180,92,.16);
}
.ava-frame {
  position: relative; flex: none; padding: 3px; border-radius: 50%;
  background: conic-gradient(from 210deg, #f6d189, #c88a34, #f6d189, #a86d22, #f6d189);
  box-shadow: 0 4px 14px rgba(0,0,0,.4), 0 0 0 1px rgba(60,42,28,.3) inset;
}
.ava-frame .ava { width: 54px; height: 54px; border: 2px solid #2b1d16; font-size: 24px; }
.ava-frame.ava-lg-frame .ava { width: 74px; height: 74px; }
.ava-badge {
  position: absolute; right: -2px; bottom: -2px; z-index: 2;
  min-width: 22px; height: 22px; padding: 0 3px; border-radius: 999px;
  background: #241710; border: 1.5px solid var(--gold);
  font-size: 13px; line-height: 20px; text-align: center;
}
.hdr-mid { flex: 1; min-width: 0; }
.hdr-top { display: flex; align-items: center; gap: 8px; }
.me-name { flex: 1; min-width: 0; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-rank { display: block; font-size: 13px; color: var(--gold); margin: 2px 0 6px; }
.lvl-bar { height: 8px; border-radius: 5px; background: rgba(247,236,217,.12); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.lvl-fill { height: 100%; width: 0%; border-radius: 5px; background: linear-gradient(90deg, #b9791f, #f6d189); transition: width .7s ease; }
.lvl-note { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.coins-pill {
  display: flex; align-items: center; gap: 7px; padding: 8px 13px;
  border-radius: 999px; border: 1px solid rgba(233, 180, 92, .4);
  background: rgba(233, 180, 92, .1); color: var(--ink);
  font-family: Georgia, serif; font-size: 16px; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.coin {
  width: 17px; height: 17px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f6d189, #d99a3e 62%, #a86d22);
  box-shadow: inset 0 -2px 3px rgba(0,0,0,.3), inset 0 1px 2px rgba(255,255,255,.5);
  position: relative;
}
.coin::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed rgba(90, 55, 15, .55); }

.home-body { flex: 1; overflow-y: auto; padding: 0 16px 26px; max-width: 480px; margin: 0 auto; width: 100%; }
.hero { text-align: center; padding: 6px 0 2px; }
.logo { font-size: 46px; margin: 4px 0 0; transform: rotate(-1.6deg); text-shadow: 0 4px 14px rgba(0,0,0,.45); }
.logo::after {
  content: ''; display: block; width: 130px; height: 10px; margin: 2px auto 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='130' height='10'><path d='M3 6 Q 20 1 40 5 T 75 5 T 127 4' fill='none' stroke='%23c96f2e' stroke-width='3' stroke-linecap='round'/></svg>") no-repeat center;
}
.tagline { margin: 6px 0 14px; color: var(--muted); font-size: 14px; transform: rotate(-.4deg); }

.mode-card {
  display: block; width: 100%; margin: 9px 0; padding: 14px 16px;
  background: linear-gradient(180deg, rgba(247,236,217,.085), rgba(247,236,217,.04));
  border: 1px solid rgba(247, 236, 217, .16);
  border-radius: 15px; color: var(--ink); text-align: left;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.mode-card:nth-child(odd) { transform: rotate(.25deg); }
.mode-card:nth-child(even) { transform: rotate(-.3deg); }
.mode-card:active { transform: translateY(1px); background: rgba(247,236,217,.13); }
.mode-card.primary { border-color: rgba(201, 111, 46, .65); background: linear-gradient(180deg, rgba(201,111,46,.24), rgba(201,111,46,.1)); }
.mode-title { display: block; font-size: 20px; margin-bottom: 2px; }
.mode-sub { display: block; font-size: 13px; color: var(--muted); font-family: Georgia, serif; }
.row-2 { display: flex; gap: 10px; }
.mode-card.half { flex: 1; text-align: center; }
.mode-card.half .mode-title { font-size: 18px; margin: 0; }

.banner {
  margin: 10px 0; padding: 12px 14px; border-radius: 13px;
  border: 1px dashed rgba(233, 180, 92, .5); background: rgba(233, 180, 92, .08);
  font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}
.banner-rescue { border-color: rgba(127, 176, 105, .5); background: rgba(127, 176, 105, .08); }
.banner-btns { display: flex; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff8ec; font-size: 15px;
  box-shadow: inset 0 -2px 0 var(--accent-dark);
}
.chip-ghost { background: transparent; border: 1px solid rgba(247,236,217,.3); color: var(--muted); box-shadow: none; }

/* ---------- аватары ---------- */

.ava {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none;
  background: #6b4a2d; display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #fff3dd; border: 2px solid rgba(243, 227, 201, .25);
  font-family: 'Neucha', serif;
}
.ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ava-lg { width: 64px; height: 64px; font-size: 28px; }

/* ---------- игра ---------- */

.seat { display: flex; align-items: center; gap: 11px; padding: 10px 16px; transition: opacity .3s; opacity: .6; }
#seat-opp { padding-top: calc(10px + env(safe-area-inset-top)); }
.seat-me { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.seat.active { opacity: 1; }
.seat.active .seat-name::after { content: ' • ходит'; color: var(--accent); font-size: 12px; font-family: Georgia, serif; }
.seat-ava { position: relative; }
.dot {
  position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px;
  border-radius: 50%; background: #778; border: 2px solid var(--bg);
}
.dot.on { background: #86c56b; }
.seat-info { flex: 1; min-width: 0; }
.seat-name { display: inline-block; font-size: 15px; max-width: 60vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.seat-sub { display: block; font-size: 11.5px; color: var(--muted); margin: 1px 0 4px; }
.seat-score { font-size: 30px; min-width: 54px; text-align: right; font-variant-numeric: tabular-nums; transition: transform .15s; }
.seat-score.bump { transform: scale(1.3); }
.bar { height: 5px; background: rgba(247, 236, 217, .13); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 3px; transition: width .5s ease; }
#seat-me .bar-fill { background: var(--good); }
.ttimer { height: 3px; margin-top: 3px; border-radius: 2px; overflow: hidden; background: transparent; }
.ttimer-fill { height: 100%; width: 0%; background: var(--gold); border-radius: 2px; }

.pot-line { font-size: 12.5px; color: var(--muted); min-height: 16px; text-align: center; }

.table {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2px 16px; gap: 7px; position: relative; min-height: 0;
}
.table::before {
  content: ''; position: absolute; left: -18%; right: -18%; top: 5%; height: 68%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255,205,130,.13), transparent 58%),
    repeating-linear-gradient(93deg, rgba(0,0,0,.10) 0 2px, transparent 2px 36px),
    radial-gradient(ellipse at 50% 35%, #6b4a2d 0%, #57391f 46%, #402917 78%, rgba(64, 41, 23, 0) 100%);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .45), inset 0 -14px 40px rgba(0,0,0,.35);
}
.table > * { position: relative; }

.stage { perspective: 720px; padding: 16px 0 2px; }
.dice-plane { transform: rotateX(17deg); transform-style: preserve-3d; display: flex; gap: 30px; transition: filter .3s; }
.dice-plane.single #die-2 { display: none; }
.dice-plane.opp-turn { filter: brightness(.8) saturate(.85); }

.die-wrap { position: relative; width: 88px; height: 88px; transform-style: preserve-3d; }
.die-shadow {
  position: absolute; left: 50%; bottom: -19px; width: 88px; height: 17px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 0, 0, .42), transparent 68%);
  filter: blur(2px);
}
.die-shadow.squash { animation: squash .95s ease-in-out; }
@keyframes squash {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  35% { transform: translateX(-50%) scale(.55); opacity: .45; }
  70% { transform: translateX(-50%) scale(.8); opacity: .7; }
}
.die-hop { position: absolute; inset: 0; transform-style: preserve-3d; }
.die-hop.hopping { animation: hop .95s cubic-bezier(.3, .65, .4, 1); }
@keyframes hop {
  0% { transform: translateY(0); } 32% { transform: translateY(-28px); }
  58% { transform: translateY(-4px); } 74% { transform: translateY(-14px); }
  100% { transform: translateY(0); }
}
.die3d { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .95s cubic-bezier(.24, .62, .3, 1); }
.die3d .face {
  position: absolute; inset: 0; border-radius: 15px;
  background: linear-gradient(155deg, #fcf4e2 0%, #f4e7cd 52%, #e6d5b4 100%);
  box-shadow: inset 0 0 0 1px rgba(122, 92, 60, .22), inset 0 -5px 10px rgba(122, 92, 60, .14), inset 0 4px 8px rgba(255, 255, 255, .5);
}
.f1 { transform: rotateY(0deg) translateZ(44px); }
.f2 { transform: rotateY(90deg) translateZ(44px); }
.f3 { transform: rotateX(90deg) translateZ(44px); }
.f4 { transform: rotateX(-90deg) translateZ(44px); }
.f5 { transform: rotateY(-90deg) translateZ(44px); }
.f6 { transform: rotateY(180deg) translateZ(44px); }
.face .p {
  position: absolute; width: 16.5%; height: 16.5%; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 36% 30%, #5a4130, #34200f 65%);
  box-shadow: inset 0 2px 3px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.35);
}
.die-wrap.bad .face { box-shadow: inset 0 0 26px rgba(186, 44, 22, .5), inset 0 0 0 1px rgba(122, 92, 60, .22); }
.dice-plane.bust { animation: shake .42s ease-in-out; }
@keyframes shake {
  0%, 100% { transform: rotateX(17deg) translateX(0); }
  20% { transform: rotateX(17deg) translateX(-9px); } 40% { transform: rotateX(17deg) translateX(8px); }
  60% { transform: rotateX(17deg) translateX(-5px); } 80% { transform: rotateX(17deg) translateX(3px); }
}

.turn-points { font-size: 44px; line-height: 1.02; font-variant-numeric: tabular-nums; text-shadow: 0 3px 10px rgba(0,0,0,.5); }
.turn-points.opp { color: #e5a8a0; }
.streak { font-size: 13px; color: var(--muted); min-height: 17px; }
.ticker { font-size: 15px; min-height: 40px; text-align: center; opacity: .92; padding: 0 8px; }

.fly {
  position: fixed; z-index: 70; font-size: 26px; font-weight: 700;
  color: #ffd88f; text-shadow: 0 2px 8px rgba(0,0,0,.6);
  pointer-events: none; transition: transform .6s cubic-bezier(.5, .1, .8, .5), opacity .6s;
  font-family: 'Neucha', serif;
}
.emote-float {
  position: fixed; z-index: 70; font-size: 40px; pointer-events: none;
  animation: emoteUp 1.6s ease-out forwards;
}
@keyframes emoteUp {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  15% { opacity: 1; transform: translateY(-10px) scale(1.15); }
  100% { transform: translateY(-90px) scale(1); opacity: 0; }
}

.emotes { display: flex; justify-content: center; gap: 8px; padding: 0 16px 4px; }
.emotes button {
  width: 42px; height: 38px; font-size: 20px; border-radius: 11px; cursor: pointer;
  border: 1px solid rgba(247,236,217,.18); background: rgba(247,236,217,.06);
}
.emotes button:active { background: rgba(247,236,217,.16); }

.controls { display: flex; gap: 12px; padding: 5px 16px 8px; }
.btn {
  flex: 1; padding: 14px 10px; font-size: 19px;
  border-radius: 14px; border: 0; cursor: pointer; color: var(--ink);
}
.btn:disabled { opacity: .38; }
.btn-roll {
  background: linear-gradient(180deg, #d67c37, #bf6526);
  box-shadow: inset 0 -3px 0 var(--accent-dark), 0 6px 14px rgba(0,0,0,.3);
  color: #fff8ec;
}
.btn-roll:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--accent-dark); }
.btn-hold { background: rgba(247,236,217,.05); border: 1px solid rgba(247, 236, 217, .32); }
.btn-hold:active:not(:disabled) { background: rgba(247, 236, 217, .12); }
.btn-ghost { background: transparent; color: var(--muted); }

#btn-sound {
  position: absolute; top: calc(74px + env(safe-area-inset-top)); right: 10px; z-index: 20;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(247,236,217,.22); background: rgba(36,23,16,.5);
  font-size: 15px; cursor: pointer; color: var(--ink); opacity: .85;
}

/* ---------- оверлеи и шторки ---------- */

.overlay { position: fixed; inset: 0; background: rgba(20, 11, 7, .84); display: flex; align-items: center; justify-content: center; z-index: 60; }
.overlay-card {
  background: linear-gradient(180deg, #43301f, #38261a);
  border: 1px solid rgba(247, 236, 217, .18);
  border-radius: 18px; padding: 22px; text-align: center; width: 86%; max-width: 330px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.overlay-card h2 { margin: 6px 0 4px; font-size: 28px; }
.overlay-card .btn { width: 100%; margin-top: 10px; }
#over-extra { margin: 8px 0 2px; font-size: 15px; line-height: 1.55; }
#over-extra .gold { color: var(--gold); }

.sheet-wrap { position: fixed; inset: 0; background: rgba(20, 11, 7, .7); display: flex; align-items: flex-end; z-index: 65; }
.sheet {
  width: 100%; max-width: 480px; margin: 0 auto;
  background: linear-gradient(180deg, #43301f, #38261a);
  border-radius: 22px 22px 0 0; padding: 20px 18px 26px;
  border-top: 1px solid rgba(247,236,217,.2);
  animation: sheetUp .25s ease-out;
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet.center { text-align: center; }
.sheet h3 { margin: 0 0 12px; font-size: 24px; }
.sheet .btn { width: 100%; margin-top: 10px; }

.seg { display: flex; gap: 8px; margin-bottom: 12px; }
.seg button {
  flex: 1; padding: 11px; font-size: 17px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(247,236,217,.22); background: transparent; color: var(--muted);
}
.seg button.on { background: rgba(201,111,46,.25); border-color: rgba(201,111,46,.7); color: var(--ink); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button {
  flex: 1; min-width: 70px; padding: 12px 6px; font-size: 17px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(233,180,92,.35); background: rgba(233,180,92,.07); color: var(--ink);
  font-variant-numeric: tabular-nums; font-family: Georgia, serif;
}
.chips button.on { background: rgba(233,180,92,.28); border-color: var(--gold); }
.chips button:disabled { opacity: .35; }
.ss-note { min-height: 20px; margin: 10px 2px 2px; font-size: 13.5px; }

.challenger { display: flex; gap: 12px; align-items: center; padding: 10px 4px; font-size: 17px; }
.sa-info { background: rgba(233,180,92,.08); border: 1px dashed rgba(233,180,92,.4); border-radius: 12px; padding: 10px 12px; font-size: 14.5px; line-height: 1.5; }

/* ---------- профиль, рейтинг ---------- */

.pr-head { display: flex; gap: 14px; align-items: center; margin: 6px 0 14px; }
.pr-head h2 { margin: 0 0 3px; font-size: 26px; }
.rank-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(233,180,92,.14); border: 1px solid rgba(233,180,92,.4); color: var(--gold); font-size: 13.5px; }
.pr-next { font-size: 12.5px; margin-top: 4px; }

.pr-row { display: flex; gap: 10px; }
.paper {
  background: var(--paper); color: var(--paper-ink); border-radius: 13px;
  box-shadow: 0 3px 10px rgba(0,0,0,.3), inset 0 0 0 1px rgba(60,42,28,.12);
}
.paper.stat { flex: 1; text-align: center; padding: 10px 6px; transform: rotate(-.35deg); }
.paper.stat:nth-child(2) { transform: rotate(.3deg); }
.paper.stat b { display: block; font-size: 21px; font-family: 'Neucha', serif; }
.paper.stat span { font-size: 12px; opacity: .75; }

.pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.pr-grid .cell { background: rgba(247,236,217,.06); border: 1px solid rgba(247,236,217,.13); border-radius: 12px; padding: 9px 12px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 8px; }
.pr-grid .cell b { font-variant-numeric: tabular-nums; }

.achv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.achv {
  aspect-ratio: 1; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: rgba(233,180,92,.13); border: 1px solid rgba(233,180,92,.45);
  cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.achv.locked { background: rgba(247,236,217,.045); border-color: rgba(247,236,217,.12); filter: grayscale(1); opacity: .5; }

.list { display: flex; flex-direction: column; gap: 8px; }
.list .rowi {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px;
  background: rgba(247,236,217,.055); border: 1px solid rgba(247,236,217,.12); border-radius: 13px;
  font-size: 14.5px;
}
.rowi.meRow { border-color: rgba(201,111,46,.7); background: rgba(201,111,46,.14); }
.rowi .grow { flex: 1; min-width: 0; }
.rowi .nm { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowi .sb { display: block; font-size: 12px; color: var(--muted); }
.rowi .num { font-variant-numeric: tabular-nums; font-size: 16px; }
.rowi .place { width: 26px; text-align: center; font-family: 'Neucha', serif; font-size: 17px; color: var(--muted); }
.rowi .chip { padding: 7px 11px; font-size: 13px; }

/* ---------- тосты ---------- */

#toasts { position: fixed; top: 10px; left: 0; right: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  max-width: 88%; padding: 11px 16px; border-radius: 13px; font-size: 14.5px;
  background: rgba(36, 23, 16, .93); border: 1px solid rgba(247,236,217,.22);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  animation: toastIn .25s ease-out;
}
.toast.golden { border-color: var(--gold); background: linear-gradient(180deg, rgba(90,62,22,.97), rgba(56,38,26,.97)); }
@keyframes toastIn { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }

.confetti { position: fixed; top: -40px; z-index: 85; font-size: 22px; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(340deg); opacity: .85; } }
