/* Plushpot · toy-shop catalogue, soft surfaces. oat / cocoa / muted coral. Fraunces + Nunito. */
:root {
  --oat: #efe8dc;
  --oat-2: #e8dfd0;
  --card: #f8f3ea;
  --card-2: #fbf8f2;
  --cocoa: #3a2a21;
  --cocoa-2: #6a5444;
  --cocoa-3: #9a8574;
  --rule: #dccfbd;
  --rule-2: #cdbda7;
  --coral: #c27c6b;
  --coral-d: #a8614f;
  --coral-l: #e6c3b8;
  --coral-w: #f1dcd4;
  --ok: #6f8460;
  --bad: #9a4a43;
  --r: 22px;
  --r-s: 14px;
  --sh: 0 1px 0 rgba(255,255,255,.7) inset, 0 1px 2px rgba(58,42,33,.06), 0 10px 26px -14px rgba(58,42,33,.22);
  --sh-up: 0 1px 0 rgba(255,255,255,.75) inset, 0 2px 4px rgba(58,42,33,.06), 0 22px 40px -18px rgba(58,42,33,.3);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Nunito', system-ui, -apple-system, Segoe UI, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --spring: cubic-bezier(.34,1.4,.5,1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--oat); color: var(--cocoa); font: 500 16px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--cocoa); color: var(--oat); padding: 8px 14px; border-radius: 10px; z-index: 300; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--coral-d); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.mdl { display: inline-block; font: 700 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--coral-d); background: var(--coral-w); border-radius: 99px; padding: 3px 7px; vertical-align: 2px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(239,232,220,.82); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 8px 24px -20px rgba(58,42,33,.4); }
.nav__in { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { width: 34px; height: 34px; }
.bm-pot { fill: var(--cocoa); }
.bm-rim { stroke: var(--cocoa); stroke-width: 3; stroke-linecap: round; }
.bm-b1, .bm-b2 { fill: var(--coral); }
.bm-b3 { fill: var(--cocoa-3); }
.brand:hover .bm-b2 { transform: translateY(-2px); }
.bm-b1, .bm-b2, .bm-b3 { transition: transform .4s var(--spring); }
.brand__word { font: 600 23px/1 var(--serif); letter-spacing: -.01em; }
.nav__links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav__links a { text-decoration: none; font-weight: 700; font-size: 14.5px; color: var(--cocoa-2); padding: 8px 12px; border-radius: 99px; transition: background .2s, color .2s; }
.nav__links a:hover { background: var(--oat-2); color: var(--cocoa); }
.nav__x svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.nav__right { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--rule-2); background: var(--card); cursor: pointer; position: relative; }
.nav__burger i { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--cocoa); border-radius: 2px; transition: transform .3s var(--ease); }
.nav__burger i:first-of-type { top: 16px; } .nav__burger i:last-of-type { top: 24px; }
.nav__burger[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }

/* ---------- wallet ---------- */
.wallet-slot { position: relative; }
.wb { position: relative; }
.wb-btn { appearance: none; border: 0; cursor: pointer; background: var(--cocoa); color: var(--card-2); font: 800 14px/1 var(--sans); padding: 12px 18px; border-radius: 99px; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 18px -10px rgba(58,42,33,.7); transition: transform .2s var(--spring), background .2s; white-space: nowrap; }
.wb-btn:hover { background: #2c1f18; }
.wb-btn:active { transform: scale(.96); }
.wb-btn.is-on { background: var(--card); color: var(--cocoa); border: 1px solid var(--rule-2); box-shadow: var(--sh); padding-left: 32px; position: relative; }
.wb-btn.is-on::before { content: ''; position: absolute; left: 14px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(111,132,96,.2); }
.wb-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 400; min-width: 260px; max-width: min(320px, calc(100vw - 24px)); background: var(--card-2); border: 1px solid var(--rule); border-radius: 18px; padding: 10px; box-shadow: var(--sh-up); animation: pop .26s var(--spring); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.wb-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--cocoa); }
.wb-item:hover { background: var(--oat-2); }
.wb-item img { width: 20px; height: 20px; border-radius: 6px; }
.wb-addr { font: 600 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; background: var(--oat); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; color: var(--cocoa-2); }
.wb-bal { font: 600 18px/1.2 var(--serif); padding: 4px 12px 10px; }
.wb-note { font-size: 12.5px; color: var(--cocoa-3); padding: 8px 12px 4px; line-height: 1.45; }

/* ---------- buttons, pills ---------- */
.btn { --s: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; border-radius: 99px; font: 800 15px/1 var(--sans); padding: 15px 24px; border: 1px solid transparent; transition: transform .22s var(--spring), background .2s, box-shadow .2s, color .2s; }
.btn:active { transform: scale(.96); }
.btn--solid { background: var(--coral); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 10px 20px -12px rgba(168,97,79,.9); }
.btn--solid:hover { background: var(--coral-d); }
.btn--soft { background: var(--card); color: var(--cocoa); border-color: var(--rule-2); box-shadow: var(--sh); }
.btn--soft:hover { background: var(--card-2); }
.btn--sm { padding: 11px 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 800 12px/1 var(--sans); letter-spacing: .02em; padding: 7px 11px; border-radius: 99px; background: var(--oat); color: var(--cocoa-2); }
.pill--live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.6); opacity: .5; } }
.shimmer, .sk { position: relative; overflow: hidden; background: var(--oat-2); color: transparent !important; }
.shimmer::after, .sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shim 1.4s infinite; }
@keyframes shim { to { transform: translateX(100%); } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 64px 0 56px; }
.hero__copy { min-width: 0; }
.tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; color: var(--cocoa-2); background: var(--card); border: 1px solid var(--rule); padding: 8px 14px 8px 10px; border-radius: 99px; margin: 0 0 26px; box-shadow: var(--sh); }
.tag__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--coral); box-shadow: inset -3px -3px 0 rgba(58,42,33,.18); }
.display { font: 500 clamp(44px, 6.2vw, 82px)/0.98 var(--serif); letter-spacing: -.025em; margin: 0 0 26px; font-variation-settings: 'opsz' 144; }
.display em { font-style: italic; color: var(--coral-d); }
.lede { font-size: 18.5px; line-height: 1.6; color: var(--cocoa-2); max-width: 34em; margin: 0 0 30px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.ca-chip { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; background: var(--card); border: 1px solid var(--rule); border-radius: 99px; padding: 6px 6px 6px 14px; margin-bottom: 22px; }
.ca-chip__k { font-weight: 800; font-size: 12px; color: var(--coral-d); }
.ca-chip__v { font: 600 12.5px ui-monospace, Menlo, monospace; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-chip__b { border: 0; background: var(--cocoa); color: var(--card-2); font-weight: 800; font-size: 12px; border-radius: 99px; padding: 7px 12px; cursor: pointer; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--rule-2); max-width: 560px; }
.hero__facts div { padding: 14px 16px 0 0; min-width: 0; }
.hero__facts div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.hero__facts dt { font-size: 12px; font-weight: 800; color: var(--cocoa-3); text-transform: uppercase; letter-spacing: .06em; }
.hero__facts dd { margin: 4px 0 0; font: 500 26px/1.1 var(--serif); }
.hero__art { margin: 0; min-width: 0; }
.pot-tile { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--rule); border-radius: 32px; padding: 18px; box-shadow: var(--sh-up); position: relative; }
.pot-tile::before { content: ''; position: absolute; inset: 8px; border-radius: 26px; border: 1px dashed var(--rule-2); pointer-events: none; }
.pot-tile__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 6px 0; position: relative; }
.pot-tile__lot { font: 500 15px var(--serif); color: var(--cocoa-2); }
#potCanvas { display: block; width: 100%; aspect-ratio: 1 / .92; }
.pot-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--oat); border-radius: 18px; padding: 12px 14px; position: relative; }
.pot-tile__coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pot-tile__coin img { border-radius: 50%; background: var(--oat-2); flex: none; }
.pot-tile__coin div { min-width: 0; display: flex; flex-direction: column; }
.pot-tile__coin b { font: 600 17px/1.15 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pot-tile__coin span { font-size: 13px; color: var(--cocoa-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pot-tile__gauge { display: flex; align-items: center; gap: 10px; flex: none; }
.pot-tile__pct { font: 600 22px var(--serif); min-width: 3.2ch; text-align: right; }
.bar { display: block; width: 90px; height: 10px; border-radius: 99px; background: var(--oat-2); box-shadow: inset 0 1px 2px rgba(58,42,33,.12); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--coral); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease); }
.pot-tile__note { font-size: 12.5px; color: var(--cocoa-3); margin: 10px 8px 2px; position: relative; }

/* ---------- ticker ---------- */
.tick { border-block: 1px solid var(--rule); background: var(--card); overflow: hidden; padding: 12px 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tick__track { display: flex; gap: 12px; width: max-content; animation: tick 70s linear infinite; }
.tick:hover .tick__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tick__ph { display: inline-block; width: 150px; height: 30px; border-radius: 99px; }
.tick__i { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--rule); font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.tick__i img { width: 22px; height: 22px; border-radius: 50%; background: var(--oat-2); }
.tick__i .up { color: var(--ok); } .tick__i .dn { color: var(--bad); }
.tick__i .v { color: var(--cocoa-3); font-weight: 700; }

/* ---------- sections ---------- */
.sec { padding: 104px 0 24px; }
.sec__head { max-width: 760px; margin-bottom: 40px; }
.sec__no { font: 800 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--coral-d); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.sec__no::before { content: ''; width: 26px; height: 2px; background: var(--coral); border-radius: 2px; }
.h2 { font: 500 clamp(32px, 4.2vw, 52px)/1.05 var(--serif); letter-spacing: -.02em; margin: 0 0 16px; }
.sec__lede { font-size: 17.5px; color: var(--cocoa-2); margin: 0; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.ld { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-ready .ld { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .wi { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms + 80ms); }
.is-ready .split .wi { transform: none; }

/* ---------- shelf ---------- */
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; position: relative; z-index: 1; }
.shelf__item { min-height: 268px; border-radius: var(--r); min-width: 0; }
.prize { appearance: none; text-align: left; cursor: pointer; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 20px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: transform .35s var(--spring), box-shadow .3s; position: relative; opacity: 0; transform: translateY(20px); }
.prize.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .3s; }
.prize:hover { transform: translateY(-5px); box-shadow: var(--sh-up); }
.prize:active { transform: translateY(-1px) scale(.99); }
.prize__top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.prize__top img { width: 40px; height: 40px; border-radius: 50%; background: var(--oat-2); flex: none; box-shadow: 0 0 0 3px var(--card-2), 0 0 0 4px var(--rule); }
.prize__name { min-width: 0; }
.prize__name b { display: block; font: 600 19px/1.15 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prize__name span { font-size: 13px; color: var(--cocoa-3); font-weight: 700; }
.prize__lot { margin-left: auto; font: 500 13px var(--serif); color: var(--cocoa-3); flex: none; }
.prize__obj { display: flex; align-items: center; gap: 14px; background: var(--oat); border-radius: 16px; padding: 12px; }
.prize__obj svg { width: 46px; height: 46px; flex: none; }
.prize__obj b { display: block; font-weight: 800; font-size: 15px; }
.prize__obj span { font-size: 13px; color: var(--cocoa-2); }
.prize__fill { display: flex; align-items: center; gap: 10px; }
.prize__fill .bar { flex: 1; width: auto; }
.prize__fill b { font: 600 18px var(--serif); min-width: 4ch; text-align: right; }
.prize__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--cocoa-2); font-weight: 700; }
.shelf__boards { position: relative; height: 0; }
.shelf__boards span { position: absolute; left: -12px; right: -12px; height: 14px; border-radius: 8px; background: linear-gradient(180deg, #d8c9b2, #c9b89e); box-shadow: 0 10px 18px -12px rgba(58,42,33,.5); }
.shelf__boards span:first-child { top: -150px; display: none; }
.shelf__boards span:last-child { top: 4px; }
.err { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--coral-w); color: var(--coral-d); border-radius: 16px; padding: 14px 18px; font-weight: 700; margin-top: 16px; }

/* ---------- catalogue ---------- */
.cat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: lot; }
.cat li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 18px 16px; min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.cat li svg { grid-row: span 2; width: 54px; height: 54px; }
.cat li b { font: 600 18px/1.2 var(--serif); }
.cat li span { font-size: 13.5px; color: var(--cocoa-2); font-weight: 700; }
.cat li.is-match { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-w); }
.obj-a { fill: var(--coral-l); stroke: var(--cocoa); stroke-width: 1.6; stroke-linejoin: round; }
.obj-b { fill: var(--card-2); stroke: var(--cocoa); stroke-width: 1.6; stroke-linejoin: round; }
.obj-l { fill: none; stroke: var(--cocoa); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.obj-d { fill: var(--cocoa); }
.draw-in .obj-l, .draw-in .obj-a, .draw-in .obj-b { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.6s var(--ease); }
.is-in.draw-in .obj-l, .is-in .draw-in .obj-l, .is-in.draw-in .obj-a, .is-in .draw-in .obj-a, .is-in.draw-in .obj-b, .is-in .draw-in .obj-b { stroke-dashoffset: 0; }

/* ---------- tools ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 28px; box-shadow: var(--sh-up); overflow: hidden; }
.tool--wide, .tool--draw { grid-template-columns: minmax(0, 1fr); }
.tool__ctl { padding: 26px; display: flex; flex-direction: column; gap: 18px; background: var(--card-2); border-right: 1px solid var(--rule); min-width: 0; position: relative; }
.tool__bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 20px 24px; background: var(--card-2); border-bottom: 1px solid var(--rule); }
.tool__out { padding: 26px; min-width: 0; min-height: 320px; }
.tool__hint { font-size: 13.5px; color: var(--cocoa-3); margin: 0; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--inline { flex: 1 1 200px; }
.field--sm { flex: 0 1 110px; }
.field__k { font-size: 13px; font-weight: 800; color: var(--cocoa-2); display: flex; justify-content: space-between; gap: 8px; }
.field__k b { color: var(--coral-d); }
.field__row { display: flex; gap: 8px; }
.field__row input { flex: 1; min-width: 0; }
input[type="text"], input[type="number"] { width: 100%; background: var(--oat); border: 1px solid var(--rule-2); border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s; min-width: 0; }
input[type="text"]:focus, input[type="number"]:focus { outline: none; border-color: var(--coral); background: var(--card-2); box-shadow: 0 0 0 4px var(--coral-w); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: var(--oat-2); box-shadow: inset 0 1px 2px rgba(58,42,33,.15); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: var(--card-2); border: 2px solid var(--coral); box-shadow: 0 3px 8px -2px rgba(58,42,33,.35); transition: transform .2s var(--spring); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--oat-2); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--card-2); border: 2px solid var(--coral); }
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--oat-2); border-radius: 99px; padding: 4px; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 0; font-weight: 800; font-size: 13.5px; cursor: pointer; color: var(--cocoa-2); border-radius: 99px; transition: color .25s; }
.seg button.is-on { color: var(--cocoa); }
.seg__ind { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 99px; background: var(--card-2); box-shadow: 0 2px 6px -2px rgba(58,42,33,.3); transition: transform .4s var(--spring), width .4s var(--spring); }
.sugg { display: flex; flex-direction: column; gap: 4px; background: var(--card-2); border: 1px solid var(--rule); border-radius: 16px; padding: 6px; margin-top: -8px; max-height: 260px; overflow: auto; }
.sugg button { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 10px; border-radius: 12px; cursor: pointer; text-align: left; min-width: 0; }
.sugg button:hover, .sugg button:focus-visible { background: var(--oat); }
.sugg img { width: 26px; height: 26px; border-radius: 50%; background: var(--oat-2); flex: none; }
.sugg span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 14px; }
.sugg small { margin-left: auto; color: var(--cocoa-3); font-weight: 700; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule-2); background: var(--card); border-radius: 99px; padding: 6px 12px 6px 6px; font-weight: 800; font-size: 13px; cursor: pointer; max-width: 100%; transition: transform .2s var(--spring), background .2s; }
.chip:hover { background: var(--coral-w); }
.chip:active { transform: scale(.95); }
.chip img { width: 20px; height: 20px; border-radius: 50%; background: var(--oat-2); }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip small { color: var(--cocoa-3); font-weight: 700; }
.chip--you { background: var(--coral-w); border-color: var(--coral-l); cursor: default; }
.empty { height: 100%; min-height: 260px; display: grid; place-items: center; text-align: center; color: var(--cocoa-3); font-weight: 700; padding: 20px; border: 2px dashed var(--rule); border-radius: 20px; }
.loading { display: grid; gap: 14px; }
.loading i { display: block; height: 22px; border-radius: 10px; }
.loading i:nth-child(1) { width: 60%; height: 40px; }
.loading i:nth-child(3) { width: 80%; }
.loading i:nth-child(4) { height: 120px; }
.out-err { background: var(--coral-w); color: var(--coral-d); border-radius: 16px; padding: 16px 18px; font-weight: 700; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* meter output */
.mo { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.mo__ring { position: relative; width: 220px; height: 220px; }
.mo__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mo__ring .trk { fill: none; stroke: var(--oat-2); stroke-width: 18; }
.mo__ring .val { fill: none; stroke: var(--coral); stroke-width: 18; stroke-linecap: round; transition: stroke-dashoffset 1.3s var(--ease); }
.mo__ring .lap { fill: none; stroke: var(--cocoa); stroke-width: 4; stroke-dasharray: 2 6; opacity: .5; }
.mo__ringc { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.mo__ringc b { font: 500 46px/1 var(--serif); }
.mo__ringc span { font-size: 12.5px; color: var(--cocoa-3); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.mo__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; min-width: 0; }
.mo__head img { width: 44px; height: 44px; border-radius: 50%; background: var(--oat-2); flex: none; }
.mo__head div { min-width: 0; }
.mo__head b { display: block; font: 600 24px/1.1 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo__head code { font: 600 12px ui-monospace, Menlo, monospace; color: var(--cocoa-3); word-break: break-all; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.kv div { background: var(--oat); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.kv dt { font-size: 12px; font-weight: 800; color: var(--cocoa-3); text-transform: uppercase; letter-spacing: .05em; }
.kv dd { margin: 4px 0 0; font: 500 21px/1.15 var(--serif); overflow-wrap: anywhere; }
.kv dd small { font: 700 12px var(--sans); color: var(--cocoa-3); }
.split-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; margin: 18px 0 6px; background: var(--oat-2); }
.split-bar i { display: block; height: 100%; transform-origin: left; animation: grow .9s var(--ease) both; }
.split-bar i:first-child { background: var(--coral); } .split-bar i:last-child { background: var(--cocoa-2); }
@keyframes grow { from { transform: scaleX(0); } }
.legend { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: var(--cocoa-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.formula { margin-top: 18px; font: 600 12.5px/1.6 ui-monospace, Menlo, monospace; color: var(--cocoa-2); background: var(--oat); border-radius: 14px; padding: 12px 14px; overflow-wrap: anywhere; }
.updated { font-size: 12.5px; color: var(--cocoa-3); font-weight: 700; margin-top: 10px; }
.flash { animation: flash 1s var(--ease); }
@keyframes flash { 0% { background: var(--coral-w); } 100% { background: var(--oat); } }

/* chance output */
.co__odds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.odds { background: var(--oat); border-radius: 20px; padding: 18px; min-width: 0; }
.odds h4 { margin: 0 0 4px; font: 800 13px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--cocoa-3); }
.odds b { display: block; font: 500 38px/1.05 var(--serif); }
.odds p { margin: 6px 0 0; font-size: 13.5px; color: var(--cocoa-2); }
.balls { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.balls i { width: 11px; height: 11px; border-radius: 50%; background: var(--rule-2); opacity: 0; transform: scale(.4); animation: ballin .5s var(--spring) forwards; }
.balls i.y { background: var(--coral); }
@keyframes ballin { to { opacity: 1; transform: none; } }
.note { font-size: 13.5px; color: var(--cocoa-2); background: var(--card-2); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; margin-top: 12px; }

/* history */
.tool__out--wide { padding: 26px 26px 30px; }
.hist__svg { width: 100%; height: auto; display: block; }
.hist__svg .ax { stroke: var(--rule); stroke-width: 1; }
.hist__svg .axt { fill: var(--cocoa-3); font: 700 11px var(--sans); }
.hist__svg .vol { fill: var(--oat-2); }
.hist__svg .pot { fill: none; stroke: var(--coral); stroke-width: 2.4; stroke-linejoin: round; }
.hist__svg .potf { fill: var(--coral-w); opacity: .7; }
.hist__svg .drop circle { fill: var(--card-2); stroke: var(--cocoa); stroke-width: 2; }
.hist__svg .drop line { stroke: var(--cocoa); stroke-width: 1; stroke-dasharray: 2 3; opacity: .45; }
.hist__sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.tl { list-style: none; margin: 22px 0 0; padding: 0 0 0 22px; border-left: 2px solid var(--rule); display: grid; gap: 12px; max-height: 340px; overflow: auto; }
.tl li { position: relative; background: var(--oat); border-radius: 14px; padding: 10px 14px; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; opacity: 0; transform: translateX(-8px); animation: tlin .5s var(--ease) forwards; }
.tl li::before { content: ''; position: absolute; left: -30px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px var(--card); }
.tl b { font: 600 15px var(--serif); }
@keyframes tlin { to { opacity: 1; transform: none; } }

/* draw */
.draw { padding: 26px; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; min-height: 320px; }
.draw > .empty { grid-column: 1 / -1; }
.wheel { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; }
.wheel svg { width: 100%; height: 100%; }
.wheel__rot { transform-origin: 150px 150px; transition: transform 3.2s cubic-bezier(.15,.75,.15,1); }
.wheel__ptr { fill: var(--cocoa); }
.wheel__hub { fill: var(--card-2); stroke: var(--rule-2); stroke-width: 2; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: st; min-width: 0; }
.steps li { counter-increment: st; background: var(--oat); border-radius: 14px; padding: 12px 14px 12px 46px; position: relative; min-width: 0; opacity: 0; transform: translateY(8px); animation: tlin .5s var(--ease) forwards; }
.steps li::before { content: counter(st); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--rule-2); display: grid; place-items: center; font: 800 12px var(--sans); }
.steps b { display: block; font-size: 13px; font-weight: 800; color: var(--cocoa-3); text-transform: uppercase; letter-spacing: .05em; }
.steps code { font: 600 12.5px/1.5 ui-monospace, Menlo, monospace; word-break: break-all; }
.steps li.win { background: var(--coral-w); }
.steps li.win code { font-size: 14px; color: var(--coral-d); }
.ok { color: var(--ok); font-weight: 800; } .bad { color: var(--bad); font-weight: 800; }
.entrants { font-size: 13px; color: var(--cocoa-2); margin-top: 12px; }

/* ticket */
.ticket { display: grid; grid-template-columns: 200px minmax(0, 1fr); background: var(--card); border: 1px solid var(--rule); border-radius: 28px; box-shadow: var(--sh-up); overflow: hidden; position: relative; }
.ticket__stub { background: var(--coral); color: #fff; padding: 26px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; position: relative; }
.ticket__stub::after { content: ''; position: absolute; right: -9px; top: 14px; bottom: 14px; width: 18px; background: radial-gradient(circle at 9px 9px, var(--card) 6px, transparent 6.5px) 0 0 / 18px 22px repeat-y; }
.ticket__k { margin: 0; font-weight: 800; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .9; overflow-wrap: anywhere; }
.ticket__big { margin: 0; font: 500 44px/1 var(--serif); writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; letter-spacing: .04em; }
.ticket__body { padding: 26px 30px; display: grid; gap: 16px; min-width: 0; }
.ticket__msg { margin: 0; background: var(--oat); border-radius: 16px; padding: 16px; font: 600 13px/1.6 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-all; color: var(--cocoa-2); min-height: 120px; }
.ticket__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ticket__status { font-weight: 800; font-size: 14px; }
.ticket__sig { margin: 0; display: grid; gap: 8px; }
.ticket__sig div { background: var(--oat); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.ticket__sig dt { font-size: 12px; font-weight: 800; color: var(--cocoa-3); text-transform: uppercase; letter-spacing: .05em; }
.ticket__sig dd { margin: 2px 0 0; font: 600 12.5px/1.5 ui-monospace, Menlo, monospace; word-break: break-all; }

/* story (pinned) */
.story { height: 340vh; position: relative; margin-top: 90px; background: var(--cocoa); color: var(--card-2); }
.story__pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.story__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.story .sec__no { color: var(--coral-l); } .story .sec__no::before { background: var(--coral-l); }
.story .h2 { color: var(--card-2); }
.story__steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 6px; counter-reset: s; }
.story__steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 58px; border-radius: 18px; color: rgba(248,243,234,.5); transition: color .4s, background .4s; font-size: 16px; }
.story__steps li::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(248,243,234,.3); display: grid; place-items: center; font: 800 13px var(--sans); transition: background .4s, border-color .4s, color .4s; }
.story__steps li b { color: inherit; }
.story__steps li.is-on { color: var(--card-2); background: rgba(248,243,234,.06); }
.story__steps li.is-on::before { background: var(--coral); border-color: var(--coral); color: #fff; }
.story__stage { background: #463328; border-radius: 32px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); min-width: 0; }
#storyCanvas { display: block; width: 100%; aspect-ratio: 1.15 / 1; }
.story__meter { display: flex; align-items: center; gap: 12px; padding: 6px 8px 2px; font-weight: 800; font-size: 14px; }
.story__meter .bar { flex: 1; width: auto; background: rgba(255,255,255,.1); box-shadow: none; }
.story__meter .bar i { transition: none; }

/* trust + faq */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trust__card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 24px; box-shadow: var(--sh); min-width: 0; }
.trust__card h3 { margin: 0 0 10px; font: 600 22px var(--serif); }
.trust__card p { margin: 0; color: var(--cocoa-2); }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.faq details { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: 0 22px; min-width: 0; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--sh); }
.faq summary { cursor: pointer; list-style: none; font: 600 18px/1.3 var(--serif); padding: 20px 30px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--coral-d), var(--coral-d)) center / 14px 2px no-repeat, linear-gradient(var(--coral-d), var(--coral-d)) center / 2px 14px no-repeat; transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq p { margin: 0 0 20px; color: var(--cocoa-2); }

/* footer */
.foot { margin-top: 110px; background: var(--card); border-top: 1px solid var(--rule); padding: 50px 0 40px; }
.foot__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 40px; }
.foot__brand { display: flex; gap: 12px; align-items: flex-start; }
.foot__brand p { margin: 0; color: var(--cocoa-2); font-size: 14px; }
.foot__brand b { font: 600 20px var(--serif); color: var(--cocoa); }
.foot__note { margin: 0; color: var(--cocoa-2); font-size: 14px; }
.foot__coin { display: flex; gap: 18px; align-items: center; grid-column: 2; font-weight: 800; }
.foot__fine { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--cocoa-3); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links a { padding: 8px 9px; font-size: 14px; }
  .cat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav__burger { display: block; }
  .nav__links { position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 24px 20px; background: var(--card-2); border-bottom: 1px solid var(--rule); box-shadow: 0 20px 30px -20px rgba(58,42,33,.4); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .3s, visibility .3s; }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 12px 14px; font-size: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool { grid-template-columns: minmax(0, 1fr); }
  .tool__ctl { border-right: 0; border-bottom: 1px solid var(--rule); }
  .mo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .mo > div:last-child { width: 100%; }
  .story { height: auto; }
  .story__pin { position: relative; height: auto; padding: 80px 0; }
  .story__in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .trust, .faq { grid-template-columns: minmax(0, 1fr); }
  .draw { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .draw .steps { width: 100%; }
  .hist__sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .foot__coin { grid-column: auto; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .nav__in { gap: 10px; height: 64px; }
  .nav__links { top: 64px; padding-inline: 16px; }
  .brand__word { font-size: 20px; }
  .brand__mark { width: 30px; height: 30px; }
  .wb-btn { padding: 11px 13px; font-size: 13px; }
  .wb-btn.is-on { padding-left: 28px; }
  .wb-btn.is-on::before { left: 11px; }
  .display { font-size: 42px; }
  .lede { font-size: 17px; }
  .hero__facts dd { font-size: 20px; }
  .hero__facts div + div { padding-left: 10px; }
  .hero__facts dt { font-size: 10.5px; }
  .shelf, .cat { grid-template-columns: minmax(0, 1fr); }
  .sec { padding-top: 80px; }
  .tool__ctl, .tool__out { padding: 20px; }
  .kv, .co__odds { grid-template-columns: minmax(0, 1fr); }
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .ticket__stub { flex-direction: row; align-items: center; }
  .ticket__stub::after { display: none; }
  .ticket__big { writing-mode: horizontal-tb; transform: none; font-size: 32px; }
  .ticket__body { padding: 20px; }
  .pot-tile__foot { flex-direction: column; align-items: stretch; }
  .pot-tile__gauge .bar { flex: 1; width: auto; }
  .mo__ring { width: 190px; height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .ld, .prize { opacity: 1 !important; transform: none !important; }
  .split .wi { transform: none !important; }
  .tick__track { animation: none; }
}
