/* Chroops Arcade. Brand card palette only (no yellow): tan, slate, cream, light blue, dark brown, navy, black, white.
   Titles: Marimpa (brand card). Body: Nunito. */
@font-face { font-family: 'Marimpa'; src: url('/assets/fonts/Marimpa.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/assets/fonts/Nunito.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }
:root {
  --tan: #E0A878; --slate: #3A444E; --cream: #EEDBC9; --blue: #BCD0DC; --brown: #45362A; --navy: #1F262E; --ink: #101317; --white: #fff;
  --navy-2: #262F39; --line: rgba(188, 208, 220, .16); --r: 18px; --r-sm: 12px; --gap: 24px; --max: 1180px;
  --shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 14px 40px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--navy); color: var(--cream); font: 500 16px/1.55 Nunito, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, header, footer, .netbar { position: relative; z-index: 1; }
.title { font-family: Marimpa, Nunito, sans-serif; font-weight: 400; letter-spacing: .01em; line-height: 1.02; margin: 0; color: var(--white); }
h1.title { font-size: clamp(44px, 6.4vw, 84px); }
h2.title { font-size: clamp(36px, 4.6vw, 58px); }
.oo { display: inline-block; animation: blink 5.5s infinite; transform-origin: 50% 60%; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.12); } }
.eyebrow { margin: 0 0 8px; font-weight: 900; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--tan); }
.sub, .lede { color: var(--blue); font-size: 18px; max-width: 60ch; margin: 14px 0 0; }
.muted { color: var(--blue); opacity: .85; margin: 6px 0 14px; }
.fine { font-size: 13px; color: var(--blue); opacity: .75; margin: 10px 0 0; }

/* top bar */
.netbar { background: var(--tan); color: var(--ink); text-align: center; font-weight: 800; font-size: 13px; padding: 7px 12px; letter-spacing: .02em; }
.top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; height: 68px; padding: 0 max(20px, calc((100vw - var(--max)) / 2)); background: rgba(31, 38, 46, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 122px; height: auto; }
.brand-tag { font-family: Marimpa, sans-serif; color: var(--tan); font-size: 22px; transform: translateY(2px); }
.nav { display: flex; justify-content: center; gap: 6px; }
.nav a { color: var(--cream); text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover, .nav a.on { background: var(--slate); color: var(--white); }
.btn { appearance: none; border: 0; cursor: pointer; font: 900 16px/1 Nunito, sans-serif; border-radius: 999px; padding: 15px 22px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s ease, box-shadow .2s ease, background .2s; color: var(--ink); min-height: 48px; }
.btn:active { transform: translateY(2px) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-tan { background: var(--tan); box-shadow: 0 5px 0 #b07c50, 0 10px 26px rgba(224, 168, 120, .25); }
.btn-tan:active { box-shadow: 0 2px 0 #b07c50; }
.btn-cream { background: var(--cream); box-shadow: 0 5px 0 #bfa58c; }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--cream); }
.btn-wallet { background: var(--slate); color: var(--white); box-shadow: inset 0 0 0 1px var(--line); padding: 12px 18px; min-height: 44px; font-size: 15px; white-space: nowrap; }
.btn-wallet.on { background: var(--brown); }
.top-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.btn-sound { width: 44px; height: 44px; min-height: 44px; min-width: 44px; padding: 0; border-radius: 50%; background: var(--slate); color: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.btn-sound:hover { background: #47525d; }
.btn-sound[aria-pressed="false"] { color: var(--blue); }
.btn-sound svg { width: 22px; height: 22px; display: block; margin: auto; }
.btn-sound .icon-sound-off { display: none; }
.btn-sound[aria-pressed="false"] .icon-sound-on { display: none; }
.btn-sound[aria-pressed="false"] .icon-sound-off { display: block; }
.wide { width: 100%; }

/* hero */
.hero { max-width: var(--max); margin: 0 auto; padding: 56px 20px 40px; display: grid; grid-template-columns: 1.02fr 1fr; gap: 28px 40px; align-items: center; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 0 1.5px rgba(238, 219, 201, .55)) drop-shadow(0 22px 30px rgba(0,0,0,.45)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.countdown { margin-top: 26px; display: inline-flex; align-items: baseline; gap: 12px; padding: 12px 18px; border-radius: var(--r-sm); background: var(--navy-2); box-shadow: inset 0 0 0 1px var(--line); flex-wrap: wrap; }
.cd-label { font-weight: 900; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--tan); }
.cd-time { font-family: Marimpa, sans-serif; font-size: 28px; color: var(--white); font-variant-numeric: tabular-nums; }
.cd-when { font-size: 13px; color: var(--blue); }

/* sections */
.sec { max-width: var(--max); margin: 0 auto; padding: 72px 20px 24px; }
.sec-head { margin-bottom: 30px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.machine-wrap { background: radial-gradient(120% 90% at 50% 10%, #2c3742 0%, var(--navy-2) 60%); border-radius: 28px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 26px 22px 22px; position: relative; overflow: hidden; }
.machine { width: 100%; max-width: 380px; margin: 0 auto; height: auto; overflow: visible; }
.panel { display: grid; gap: 18px; }
.card { background: var(--navy-2); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.card h3 { margin: 0; font: 900 20px/1.2 Nunito, sans-serif; color: var(--white); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--slate); border-radius: var(--r-sm); padding: 14px 10px; text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.stat-n { display: block; font-family: Marimpa, sans-serif; font-size: 34px; color: var(--white); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-l { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.qty { display: flex; align-items: center; gap: 12px; margin: 14px 0 16px; }
.qty output { min-width: 44px; text-align: center; font-family: Marimpa, sans-serif; font-size: 32px; color: var(--white); }
.qty-x { color: var(--blue); margin-left: auto; font-weight: 700; }
.qbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--slate); color: var(--white); font: 900 22px/1 Nunito, sans-serif; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, transform .15s; }
.qbtn:hover { background: #47525d; } .qbtn:active { transform: scale(.94); }
.qbtn.big { width: 52px; height: 52px; font-size: 18px; }
.claw-ctl { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; }
.odds { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.odds th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--tan); padding: 6px 4px; }
.odds td { padding: 11px 4px; border-top: 1px solid var(--line); color: var(--cream); }
.odds td:last-child, .odds th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tier { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.tier-common { background: var(--slate); color: var(--blue); } .tier-rare { background: var(--blue); color: var(--navy); } .tier-ultra { background: var(--tan); color: var(--ink); }
.hist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.hist li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255,255,255,.03); font-size: 14px; }
.hist a { font-size: 13px; }
.mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; align-items: start; }
.week-card { grid-column: 1 / -1; }
.week-card .stats { margin-top: 14px; max-width: 520px; }
.prize { background: var(--navy-2); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.prize-img { aspect-ratio: 1; background: var(--slate); display: grid; place-items: center; overflow: hidden; }
.prize-img img { width: 100%; height: 100%; object-fit: cover; }
.prize-b { padding: 16px; display: grid; gap: 8px; }
.prize-b h4 { margin: 0; font: 900 18px/1.2 Nunito, sans-serif; color: var(--white); }
.attrs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; padding: 0; list-style: none; }
.attrs li { font-size: 12px; padding: 4px 9px; border-radius: 8px; background: var(--slate); color: var(--cream); }
.attrs b { color: var(--blue); font-weight: 800; margin-right: 4px; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rules .card p, .rules .card li { color: var(--blue); }
.rules .card ul, .rules .card ol { padding-left: 20px; margin: 10px 0 0; }
.rules code { font-size: 12px; word-break: break-all; color: var(--cream); }
.foot { text-align: center; padding: 60px 20px 50px; color: var(--blue); display: grid; justify-items: center; gap: 4px; }
.foot p { margin: 6px 0 0; }

/* reveal */
.reveal-card h3 { margin-bottom: 10px; }
.reveal { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.reveal img { width: 120px; height: 120px; border-radius: 14px; object-fit: cover; background: var(--slate); }
.pop { animation: pop .55s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* modal + toast */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(10, 13, 16, .88); display: grid; place-items: center; padding: 18px; animation: fade .2s ease both; }
.modal[hidden] { display: none; }
.modal.no-fade { animation: none; }
.modal.no-fade .modal-card { animation: none; }
@keyframes fade { from { opacity: 0; } }
.congrats-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
.modal-card { position: relative; z-index: 3; width: min(460px, 100%); max-height: 92vh; overflow: auto; background: var(--navy-2); border-radius: 22px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 0 0 1px var(--line); animation: pop .35s cubic-bezier(.2, 1.3, .4, 1) both; }
.modal-card h3 { margin: 0 44px 8px 0; font-family: Marimpa, sans-serif; font-weight: 400; font-size: 32px; color: var(--white); }
.modal-card .close { position: absolute; z-index: 3; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--slate); color: var(--white); font-size: 22px; cursor: pointer; }
.wopts { display: grid; gap: 10px; margin-top: 16px; }
.wopt { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 14px; border: 0; background: var(--slate); color: var(--white); cursor: pointer; font: 800 16px/1.25 Nunito, sans-serif; box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, transform .15s; }
.wopt:hover { background: #47525d; transform: translateY(-1px); }
.wopt small { display: block; font-weight: 600; color: var(--blue); font-size: 13px; }
.wopt .wi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); font-size: 20px; }
.wopt .wi-logo { overflow: hidden; background: none; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.wopt .wi-logo img { display: block; width: 44px; height: 44px; }
.wopt:disabled .wi-logo img { filter: grayscale(.6); opacity: .7; }
.qr { width: 240px; height: 240px; margin: 14px auto; border-radius: 14px; background: #fff; padding: 8px; }
.status { margin-top: 12px; color: var(--blue); min-height: 1.5em; }
.toast:empty { display: none; }
.toast { opacity: 0; visibility: hidden; position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 95; background: var(--cream); color: var(--ink); font-weight: 800; padding: 13px 20px; border-radius: 999px; box-shadow: 0 14px 40px rgba(0,0,0,.4); transition: transform .35s cubic-bezier(.2, 1.3, .4, 1); max-width: calc(100vw - 32px); text-align: center; }
.toast.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* intro */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--navy); display: grid; place-items: center; transition: opacity .45s ease, visibility .45s; }
.intro.done { opacity: 0; visibility: hidden; }
.intro-stage { position: relative; display: grid; justify-items: center; }
.intro-coin { width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f3c79c, var(--tan) 55%, #b07c50); box-shadow: 0 0 0 5px var(--ink), 0 0 0 9px var(--cream); display: grid; place-items: center; animation: coinIn .7s cubic-bezier(.3, 1.4, .5, 1) both; }
.intro-coin img { width: 60px; filter: brightness(0) invert(1); }
.intro-word { width: min(420px, 74vw); margin-top: 26px; animation: wordIn .55s .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.intro-sub { font-family: Marimpa, sans-serif; color: var(--tan); font-size: 34px; margin-top: 4px; animation: wordIn .5s .7s ease both; }
@keyframes coinIn { from { transform: translateY(-60vh) rotate(-260deg); } 70% { transform: translateY(8px) rotate(10deg); } to { transform: none; } }
@keyframes wordIn { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }

/* machines */
.cap-shine { opacity: .55; }
.ticket { filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
@media (max-width: 860px) {
  .top { grid-template-columns: auto auto; height: auto; padding: 10px 16px; gap: 10px; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 2px; }
  .nav a { padding: 7px 10px; font-size: 14px; }
  .top-actions { justify-self: end; }
  html { scroll-padding-top: 112px; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-art { order: -1; }
  .lede, .sub { margin-left: auto; margin-right: auto; }
  .sec-head { text-align: center; }
  .split, .rules { grid-template-columns: 1fr; }
  .countdown { justify-content: center; text-align: center; }
  .cd-when { flex-basis: 100%; }
  .netbar .long { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.qr-fallback { display: block; width: 140px; height: 140px; margin: 14px auto 0; opacity: .9; }
#openXaman { margin-top: 8px; }

/* ---------- capsule reveal (post-payment, pre-modal) ---------- */
.reveal-fx { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(16, 19, 23, .9); animation: fade .25s ease both; }
.reveal-fx[hidden] { display: none; }
.reveal-stage { position: relative; width: min(520px, 92vw); height: min(620px, 78vh); display: grid; place-items: center; }
.reveal-rays { position: absolute; inset: -20%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, var(--ray, var(--tan)) 0 8deg, transparent 8deg 24deg); opacity: 0; transform: scale(.6); pointer-events: none; filter: blur(0.2px); }
.reveal-fx[data-phase="glow"] .reveal-rays,
.reveal-fx[data-phase="wobble"] .reveal-rays,
.reveal-fx[data-phase="crack"] .reveal-rays,
.reveal-fx[data-phase="burst"] .reveal-rays,
.reveal-fx[data-phase="card"] .reveal-rays { opacity: .28; transform: scale(1); animation: raySpin 8s linear infinite; }
.reveal-fx.tier-rare .reveal-rays { --ray: var(--blue); opacity: .34; }
.reveal-fx.tier-ultra .reveal-rays { --ray: var(--tan); opacity: .42; }
@keyframes raySpin { to { transform: scale(1) rotate(360deg); } }
.reveal-glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, var(--glow, var(--tan)) 0%, transparent 68%); opacity: 0; transform: scale(.5); pointer-events: none; filter: blur(6px); }
.reveal-fx[data-phase="glow"] .reveal-glow,
.reveal-fx[data-phase="wobble"] .reveal-glow,
.reveal-fx[data-phase="crack"] .reveal-glow,
.reveal-fx[data-phase="burst"] .reveal-glow,
.reveal-fx[data-phase="card"] .reveal-glow { opacity: .85; transform: scale(1); animation: glowPulse 0.7s ease-in-out infinite alternate; }
.reveal-fx.tier-rare .reveal-glow { --glow: var(--blue); width: 340px; height: 340px; }
.reveal-fx.tier-ultra .reveal-glow { --glow: var(--tan); width: 420px; height: 420px; }
@keyframes glowPulse { from { transform: scale(.92); opacity: .65; } to { transform: scale(1.08); opacity: 1; } }
.reveal-cap { position: relative; z-index: 2; width: min(260px, 62vw); height: auto; overflow: visible; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); transform-origin: 50% 55%; }
.reveal-fx[data-phase="crack"] .reveal-cap { animation: none; }
@keyframes capIn { from { transform: scale(.2) translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes capWobble { 0% { transform: rotate(0deg) translateX(0); } 20% { transform: rotate(-8deg) translateX(-6px); } 50% { transform: rotate(9deg) translateX(7px); } 80% { transform: rotate(-6deg) translateX(-4px); } 100% { transform: rotate(0) translateX(0); } }
.reveal-burst { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: visible; }
.confetti { position: absolute; left: 50%; top: 50%; width: 10px; height: 14px; background: var(--c, var(--tan)); border-radius: 2px; box-shadow: 0 0 0 1px var(--ink); animation: confetti var(--d, .9s) cubic-bezier(.1, .7, .3, 1) both; }
.confetti.dot { width: 9px; height: 9px; border-radius: 50%; }
.confetti.sq { width: 12px; height: 12px; border-radius: 2px; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.7); opacity: 0; } }
.reveal-prize { position: relative; z-index: 4; display: grid; place-items: center; }
.reveal-prize[hidden] { display: none; }
.flip-card { width: min(220px, 62vw); aspect-ratio: 1; perspective: 900px; }
.flip-card .flip-inner { width: 100%; height: 100%; transform-style: preserve-3d; animation: cardFlip .7s cubic-bezier(.2, 1.15, .35, 1) both; }
.flip-face { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 0 0 5px var(--ink), 0 0 0 8px var(--tan), 0 18px 40px rgba(0,0,0,.4); }
.flip-face img { width: 100%; height: 100%; object-fit: cover; background: var(--slate); }
.flip-back { background: var(--cream); transform: rotateY(180deg); }
.flip-front { background: var(--slate); }
@keyframes cardFlip { from { transform: rotateY(-180deg) scale(.6); } to { transform: rotateY(0) scale(1); } }
.reveal-tickets { display: flex; gap: 12px; align-items: center; justify-content: center; animation: cardFlip .6s cubic-bezier(.2, 1.15, .35, 1) both; }
.revealtix { width: 86px; height: 54px; background: var(--cream); color: var(--slate); border-radius: 10px; box-shadow: 0 0 0 3px var(--ink), 0 8px 16px rgba(0,0,0,.3); display: grid; place-items: center; font-family: Marimpa, sans-serif; font-size: 20px; transform: rotate(var(--tilt, -6deg)); }
.reveal-skip { position: fixed; z-index: 85; left: max(16px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom)); min-width: 96px; background: var(--cream); color: var(--ink); box-shadow: 0 5px 0 #bfa58c, 0 10px 26px rgba(0,0,0,.35); }
.reveal-skip[hidden] { display: none; }
.reveal-skip:active { box-shadow: 0 2px 0 #bfa58c; }

/* ---------- Congratulations modal ---------- */
.modal-card:has(.congrats) { width: min(560px, 100%); padding: 28px 24px 24px; background: #2A3440; box-shadow: 0 30px 80px rgba(0,0,0,.65), 0 0 0 3px var(--ink), 0 0 0 6px var(--tan); }
.congrats { display: grid; justify-items: center; text-align: center; gap: 0; }
.congrats-head { display: grid; justify-items: center; gap: 8px; width: 100%; padding: 0 48px; margin: 0 0 8px; }
.congrats-mark { width: 56px; height: 44px; animation: markPop .55s cubic-bezier(.2, 1.5, .4, 1) both; }
.congrats-title { margin: 0 !important; font-family: Marimpa, sans-serif; font-weight: 400; font-size: clamp(30px, 8vw, 48px); line-height: 1.05; color: var(--cream); text-align: center; animation: wordIn .6s .1s cubic-bezier(.2, 1.4, .4, 1) both; }
.congrats-won { margin: 8px 0 0; font: 800 18px/1.35 Nunito, sans-serif; color: var(--blue); animation: wordIn .5s .2s ease both; }
.congrats-what { display: block; margin-top: 4px; font-family: Marimpa, sans-serif; font-weight: 400; font-size: clamp(22px, 5.4vw, 30px); line-height: 1.15; color: var(--white); }
.congrats-prize { display: flex; flex-direction: column; align-items: center; gap: 40px; width: 100%; margin: 22px 0 8px; }
.congrats-art { width: min(220px, 70vw); aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--slate); box-shadow: 0 0 0 4px var(--ink), 0 0 0 8px var(--tan), 0 16px 32px rgba(0,0,0,.35); flex: none; }
.congrats-art img { width: 100%; height: 100%; object-fit: cover; }
.congrats-side { display: grid; gap: 10px; justify-items: center; min-width: 0; width: 100%; }
.congrats-tickets { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* Always stack art above details with a 40px gap so the character never overlaps the card, on iPhone or desktop. */
.congrats-prize.is-nft { flex-direction: column; }
@keyframes markPop { from { transform: scale(.2) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .reveal-fx[data-phase] .reveal-rays, .reveal-fx[data-phase] .reveal-glow, .reveal-cap, .flip-inner, .congrats-title, .congrats-mark, .congrats-won { animation: none !important; }
}

/* claw marquee lights: theater chase in the collection yellow / green / purple */
.claw-lights .bulb { animation: chase 1.2s steps(1, end) infinite; animation-delay: var(--d); opacity: .42; }
.claw-lights .bulb .halo { opacity: 0; animation: chaseHalo 1.2s steps(1, end) infinite; animation-delay: var(--d); }
.machine.playing .claw-lights .bulb, .machine.playing .claw-lights .bulb .halo { animation-duration: .75s; }
@keyframes chase { 0% { opacity: 1; } 33.3% { opacity: .42; } }
@keyframes chaseHalo { 0% { opacity: 1; } 33.3% { opacity: 0; } }
.globe-glint { animation: glint 5.5s ease-in-out infinite; }
@keyframes glint { 0%, 70% { transform: translateX(0) rotate(22deg); } 100% { transform: translateX(380px) rotate(22deg); } }
@media (prefers-reduced-motion: reduce) {
  .claw-lights .bulb, .claw-lights .bulb .halo, .globe-glint { animation: none; }
  .claw-lights .bulb { opacity: .85; }
}
.revealtix-dim { background: var(--slate); color: var(--blue); }
.congrats-lose .congrats-title { color: var(--cream); }
.congrats-lose .congrats-what { color: var(--blue); }
#clawBtn { display: inline-block; white-space: nowrap; line-height: 18px; }
@media (max-width: 420px) { #clawBtn { font-size: 15px; padding: 15px 16px; } .claw-ctl { gap: 8px; } }

/* ---------- claw/gumball prize reveal: glowing ring, ripples, flash ---------- */
.reveal-fx { --ringc: var(--cream); --ringc2: var(--tan); }
.reveal-fx.tier-rare { --ringc: #DDEBF3; --ringc2: var(--blue); }
.reveal-fx.tier-ultra { --ringc: #FFE500; --ringc2: var(--tan); }
.reveal-cap { will-change: transform; }
.reveal-ring { position: absolute; z-index: 1; width: min(330px, 76vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: var(--g, 0); transform: scale(var(--rs, .6));
  filter: drop-shadow(0 0 calc(6px + 22px * var(--g, 0)) var(--ringc2)) drop-shadow(0 0 calc(14px * var(--g, 0)) var(--ringc)); }
.reveal-fx.tier-ultra .reveal-ring { width: min(380px, 84vw); }
.ring-band { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--ringc), var(--ringc2), var(--ringc), var(--ringc2), var(--ringc));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); animation: raySpin 2.4s linear infinite; }
.reveal-fx.tier-ultra .ring-band { background: conic-gradient(from 0deg, #FFE500, #00FF66, #9B30FF, #E0A878, #BCD0DC, #FFE500); animation-duration: 1.4s;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px)); mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px)); }
.ring-ripple { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--ringc); box-shadow: 0 0 18px var(--ringc2); animation: ringRipple var(--rd, 1s) ease-out forwards; }
@keyframes ringRipple { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }
.reveal-ring.shock { animation: ringShock .65s ease-out both; }
@keyframes ringShock { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.1); opacity: 0; } }
.reveal-flash { position: absolute; z-index: 3; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0%, var(--ringc) 30%, transparent 70%); opacity: 0; pointer-events: none; }
.reveal-flash.go { animation: flashGo .55s ease-out both; }
@keyframes flashGo { 0% { opacity: 0; transform: scale(.4); } 18% { opacity: .95; } 100% { opacity: 0; transform: scale(2.2); } }
.reveal-fx.tier-common .reveal-rays { opacity: .14 !important; }
.reveal-fx.tier-common .reveal-glow { width: 240px; height: 240px; }
.reveal-prize { gap: 14px; text-align: center; }
.reveal-label { margin: 6px 0 0; font-family: Marimpa, sans-serif; font-size: clamp(26px, 7vw, 38px); line-height: 1.1; color: var(--white); text-shadow: 0 3px 0 var(--ink), 0 0 24px var(--ringc2); animation: wordIn .5s .25s cubic-bezier(.2, 1.4, .4, 1) both; }
.revealtix.pop { animation: tixPop .55s calc(var(--i, 0) * .14s) cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes tixPop { from { transform: translateY(50px) scale(.2) rotate(0); opacity: 0; } to { transform: rotate(var(--tilt, -6deg)); opacity: 1; } }
.reveal-fx.tier-ultra .flip-face { box-shadow: 0 0 0 5px var(--ink), 0 0 0 9px #FFE500, 0 0 50px #FFE500, 0 18px 40px rgba(0,0,0,.4); }
.congrats-title-sm { font-size: clamp(26px, 7vw, 38px) !important; }
@media (prefers-reduced-motion: reduce) { .ring-band, .ring-ripple, .reveal-ring.shock, .reveal-flash.go, .revealtix.pop, .reveal-label { animation: none !important; } }
/* Check my tickets */
.check-card #checkOut { display: grid; gap: 12px; margin-top: 12px; }
.proof-period { background: var(--navy-2, #1F262E); border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line, rgba(188,208,220,.18)); }
.proof-period p { margin: 0 0 6px; }
.proofs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.proofs li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: baseline; font-size: 14px; }
.proofs .chk { font-weight: 900; }
.proofs li.ok .chk, .proof-period .ok { color: #9be5b4; }
.proofs li.bad .chk, .proof-period .bad { color: var(--tan); }
.check-card code { overflow-wrap: anywhere; }
@media (max-width: 420px) { .proofs li { grid-template-columns: 22px 1fr; } .proofs li .fine { grid-column: 2; } }
/* narrow phones: keep logo, sound and wallet on one row without overlap */
@media (max-width: 480px) {
  .top { padding: 10px 12px; gap: 8px; }
  .brand { gap: 6px; } .brand img { width: 96px; } .brand-tag { font-size: 17px; }
  .top-actions { gap: 6px; }
  .btn-wallet { padding: 10px 12px; font-size: 14px; }
}
@media (max-width: 350px) { .brand-tag { display: none; } }
/* ---------- gumball: machine lights up after the coin, glowing capsule, ticket card ---------- */
#gumballSvg .gb-aura { opacity: 0; transform-origin: 160px 150px; transition: opacity .35s ease; }
#gumballSvg .gb-lights .bulb { opacity: .35; }
#gumballSvg .gb-lights .bulb .halo { opacity: 0; }
#gumballSvg.glowing { filter: drop-shadow(0 0 18px rgba(255, 229, 0, .45)); animation: gbPulse 1.1s ease-in-out infinite; }
#gumballSvg.glowing .gb-aura { opacity: 1; animation: gbAura 1.1s ease-in-out infinite; }
#gumballSvg.glowing .gb-lights .bulb { animation: chase 1.2s steps(1, end) infinite; animation-delay: var(--d); }
#gumballSvg.glowing .gb-lights .bulb .halo { animation: chaseHalo 1.2s steps(1, end) infinite; animation-delay: var(--d); }
@keyframes gbPulse { 50% { filter: drop-shadow(0 0 30px rgba(255, 229, 0, .7)) drop-shadow(0 0 8px rgba(224, 168, 120, .8)); } }
@keyframes gbAura { 50% { transform: scale(1.06); opacity: .7; } }
#gumballSvg .gb-out-halo { opacity: .95; }
.congrats-art.gb-ticket { aspect-ratio: auto; width: min(300px, 78vw); overflow: visible; display: grid; justify-items: center; gap: 6px; padding: 18px 18px 16px; border-radius: 16px; position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, #F7EADF 100%); color: var(--slate); box-shadow: 0 0 0 4px var(--ink), 0 0 0 8px var(--tan), 0 0 36px rgba(255, 229, 0, .45), 0 16px 32px rgba(0,0,0,.35);
  animation: gbStamp .6s .15s cubic-bezier(.2, 1.6, .4, 1) both; }
.gb-ticket::before, .gb-ticket::after { content: ''; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: #2A3440; box-shadow: inset 0 0 0 4px var(--ink); }
.gb-ticket::before { left: -11px; } .gb-ticket::after { right: -11px; }
.gb-ticket-top { font: 800 11px/1 Nunito, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--tan); }
.gb-ticket-num { font-family: Marimpa, sans-serif; font-size: clamp(34px, 10vw, 46px); line-height: 1.05; color: var(--slate); }
.gb-ticket-draw { font: 800 16px/1.2 Nunito, sans-serif; color: var(--brown, #45362A); padding: 6px 0 2px; border-top: 3px dashed var(--tan); width: 100%; text-align: center; }
.gb-ticket-kind { font: 700 13px/1 Nunito, sans-serif; color: var(--slate); background: var(--blue); border-radius: 99px; padding: 5px 12px; }
@keyframes gbStamp { 0% { transform: scale(1.8) rotate(-8deg); opacity: 0; } 60% { transform: scale(.94) rotate(1deg); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { #gumballSvg.glowing, #gumballSvg.glowing .gb-aura, #gumballSvg.glowing .gb-lights .bulb, #gumballSvg.glowing .gb-lights .bulb .halo, .congrats-art.gb-ticket { animation: none !important; } #gumballSvg.glowing .gb-lights .bulb { opacity: 1; } #gumballSvg.glowing .gb-lights .bulb .halo { opacity: .8; } }
/* ---------- Treasury box beside the rules ---------- */
.rules-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.treasury { position: sticky; top: 96px; display: grid; gap: 16px; }
.treasury-head { display: flex; align-items: center; gap: 12px; }
.treasury-head img { width: 36px; height: 28px; flex: none; }
.treasury-note { margin: -6px 0 0; font-size: 14px; color: var(--blue); }
#treasuryBody { display: grid; gap: 16px; }
.tw { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-sm); background: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.tw-label { margin: 0; font: 900 12px/1 Nunito, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--tan); }
.tw-addr { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tw-addr code { flex: 1 1 auto; min-width: 0; font: 700 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-btn { flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 800 13px/1 Nunito, sans-serif; color: var(--cream); background: transparent; box-shadow: inset 0 0 0 2px var(--slate); }
.tw-btn:hover, .tw-btn:focus-visible { box-shadow: inset 0 0 0 2px var(--tan); color: var(--white); outline: none; }
.tw-stats { margin: 0; display: grid; gap: 8px; }
.tw-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.tw-stats dt { font-size: 14px; color: var(--blue); }
.tw-stats dd { margin: 0; font: 900 18px/1.1 Nunito, sans-serif; color: var(--white); text-align: right; font-variant-numeric: tabular-nums; }
.tw-updated { margin: 0; font-size: 12px; color: var(--blue); opacity: .8; }
@media (max-width: 1100px) { .rules-wrap { grid-template-columns: 1fr; } .treasury { position: static; } }

/* Tips */
.tip-box { display: grid; gap: 12px; padding-top: 2px; }
.tip-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--cream); }
.tip-btn { min-height: 48px; }
.tipm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tipm .congrats-head { margin-bottom: 2px; }
.tipm-lead { margin: 0; text-align: center; }
.tipm-lead code { font-size: 13px; color: var(--cream); }
.tipm-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tipm-amt { display: grid; place-items: center; gap: 2px; min-height: 64px; border: 0; border-radius: var(--r-sm); cursor: pointer; background: var(--navy); color: var(--white);
  font: 400 28px/1 Marimpa, sans-serif; box-shadow: inset 0 0 0 2px var(--slate); transition: box-shadow .15s, transform .15s, background .15s; }
.tipm-amt small { font: 800 11px/1 Nunito, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.tipm-amt:hover, .tipm-amt:focus-visible { box-shadow: inset 0 0 0 2px var(--tan); outline: none; }
.tipm-amt.on { background: var(--tan); color: var(--ink); box-shadow: 0 4px 0 #b07c50; transform: translateY(-2px); }
.tipm-amt.on small { color: var(--brown); }
.tipm-amt:disabled { opacity: .6; cursor: default; }
.tipm-custom { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 50px; border-radius: var(--r-sm); background: var(--navy); box-shadow: inset 0 0 0 2px var(--slate); }
.tipm-custom:focus-within { box-shadow: inset 0 0 0 2px var(--tan); }
.tipm-custom span { font-size: 14px; color: var(--blue); white-space: nowrap; }
.tipm-custom input { flex: 1 1 0; width: 0; min-width: 0; border: 0; background: transparent; color: var(--white); font: 800 18px/1 Nunito, sans-serif; text-align: right; outline: none; }
.tipm-custom em { font-style: normal; white-space: nowrap; font-weight: 800; font-size: 13px; color: var(--blue); }
.tipm .fine { margin: 0; text-align: center; }
.tipm #mStatus:empty, .tipm #mQr:empty { display: none; }
.congrats-art.tip-art { position: relative; overflow: visible; background: var(--cream); }
.congrats-art.tip-art img { border-radius: 18px; object-fit: contain; padding: 14px; box-sizing: border-box; animation: tipBob 1.6s ease-in-out infinite; }
.tip-stamp { position: absolute; right: -14px; bottom: -12px; padding: 8px 12px; border-radius: 12px; background: var(--tan); color: var(--ink); font: 400 22px/1 Marimpa, sans-serif;
  box-shadow: 0 0 0 3px var(--ink), 0 8px 16px rgba(0,0,0,.35); transform: rotate(-7deg); animation: stampIn .5s .25s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes tipBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes stampIn { from { opacity: 0; transform: rotate(-7deg) scale(1.8); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .congrats-art.tip-art img, .tip-stamp { animation: none !important; } }
.tip-thanks { margin: 0; font: 900 19px/1.35 Nunito, sans-serif; color: var(--white); text-align: center; }
.congrats-tip .congrats-side .muted { margin: 0; text-align: center; }

/* ---------- UI facelift (t356u): glowing borders, levelled sections, one ticket size, interactive trio ---------- */
:root { --gc: 224, 168, 120; }
/* Every arcade box shares one border: 18px radius, 22px padding, the same 1px glowing ring. */
.card, .machine-wrap { border-radius: var(--r); box-shadow: 0 0 0 1.5px rgba(var(--gc), .9) inset, 0 0 0 1px rgba(var(--gc), .38), 0 0 14px rgba(var(--gc), .48), 0 0 38px rgba(var(--gc), .28), 0 0 76px rgba(var(--gc), .13), 0 14px 40px rgba(0,0,0,.35); transition: box-shadow .35s ease; }
.machine-wrap { padding: 22px; isolation: isolate; }
.card:hover, .machine-wrap:hover { box-shadow: 0 0 0 1.5px rgba(var(--gc), 1) inset, 0 0 0 1px rgba(var(--gc), .55), 0 0 18px rgba(var(--gc), .62), 0 0 46px rgba(var(--gc), .36), 0 0 96px rgba(var(--gc), .17), 0 14px 40px rgba(0,0,0,.35); }
.stat { box-shadow: inset 0 0 0 1.5px rgba(var(--gc), .7), 0 0 12px rgba(var(--gc), .32), 0 0 28px rgba(var(--gc), .14); }
.countdown { box-shadow: inset 0 0 0 1.5px rgba(224, 168, 120, .85), 0 0 14px rgba(224, 168, 120, .42), 0 0 34px rgba(224, 168, 120, .2); }
/* slow breathing glow on the two machines (opacity only, cheap to animate) */
.machine-wrap::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; box-shadow: inset 0 0 0 2px rgba(var(--gc), .85), inset 0 0 30px rgba(var(--gc), .28); opacity: .5; animation: rimBreathe 4.8s ease-in-out infinite; }
#claw .machine-wrap::after { animation-delay: -2.4s; } /* same tan as the gumball section (t361u) */
@keyframes rimBreathe { 50% { opacity: .85; } }
/* desktop: machine box and the card column end on the same line; the last card takes up the slack */
@media (min-width: 861px) {
  .split { align-items: stretch; }
  .machine-wrap { display: flex; flex-direction: column; justify-content: center; }
  .panel { display: flex; flex-direction: column; gap: 18px; }
  .panel > .stats { flex: none; }
  .panel > .card:last-child:not([hidden]) { flex: 1 1 auto; }
  .panel > .card:nth-last-child(1 of :not([hidden])) { flex: 1 1 auto; }
}

/* one raffle ticket for every popup: same box for gumball (free / paid) and claw ticket prizes */
.congrats-art.gb-ticket.tix-card { width: 280px; height: 164px; max-width: calc(100% - 24px); box-sizing: border-box; padding: 16px 18px 14px; gap: 0; grid-template-rows: 13px 52px 30px 22px; align-content: space-between; justify-items: center;
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 8px var(--tan), 0 0 36px rgba(224, 168, 120, .45), 0 16px 32px rgba(0,0,0,.35); }
.tix-card .gb-ticket-top { line-height: 13px; white-space: nowrap; }
.tix-card .gb-ticket-num { font-size: 44px; line-height: 52px; height: 52px; white-space: nowrap; }
.tix-card .gb-ticket-num.sm { font-size: 32px; }
.tix-card .gb-ticket-draw { line-height: 20px; padding: 5px 0 0; height: 30px; box-sizing: border-box; white-space: nowrap; }
.tix-card .gb-ticket-kind { line-height: 12px; padding: 5px 12px; height: 22px; box-sizing: border-box; white-space: nowrap; }

/* hero trio: tap for a ticket, a gumball or a paper hat coin */
.hero-art { position: relative; }
.trio-btn { appearance: none; display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; border-radius: 24px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.trio-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px var(--tan), 0 0 26px rgba(224, 168, 120, .45); }
.trio-btn img { transition: filter .25s ease; }
.trio-btn:hover img { filter: drop-shadow(0 0 1.5px rgba(238, 219, 201, .7)) drop-shadow(0 0 18px rgba(224, 168, 120, .35)) drop-shadow(0 22px 30px rgba(0,0,0,.45)); }
.trio-btn.bump { animation: trioBump .32s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes trioBump { 40% { transform: scale(1.025, .975); } 100% { transform: none; } }
.trio-fx { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 2; }
.trio-fly { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); will-change: transform, opacity; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)) drop-shadow(0 0 10px rgba(224, 168, 120, .45)); }
.trio-fly svg { display: block; overflow: visible; }
.trio-fly.rm { animation: trioFade 1.1s ease both; }
@keyframes trioFade { 0% { opacity: 0; } 15%, 70% { opacity: 1; } 100% { opacity: 0; } }
.trio-spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--tan)); box-shadow: 0 0 0 1.5px var(--ink); transform: translate(-50%, -50%); }
.trio-spark.shard { width: 6px; height: 11px; border-radius: 2px; }
.trio-spark.star { width: 11px; height: 11px; border-radius: 0; box-shadow: none; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 4px rgba(238, 219, 201, .8)); }
.trio-ring { position: absolute; width: 90px; height: 90px; border-radius: 50%; box-shadow: 0 0 0 3px var(--tan), 0 0 24px rgba(224, 168, 120, .7), inset 0 0 18px rgba(238, 219, 201, .5); pointer-events: none; }
.trio-rare { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle, rgba(238, 219, 201, .95) 0%, rgba(224, 168, 120, .9) 55%, rgba(224, 168, 120, 0) 72%); }
.trio-rare img { width: 70px; height: 70px; filter: drop-shadow(0 0 2px var(--ink)); }
.trio-fly.rare { filter: drop-shadow(0 0 14px rgba(224, 168, 120, .85)) drop-shadow(0 8px 10px rgba(0,0,0,.4)); }
.trio-hint { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font: 800 12px/1 Nunito, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--tan); background: rgba(31, 38, 46, .85); padding: 7px 12px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(224, 168, 120, .45), 0 0 14px rgba(224, 168, 120, .18); pointer-events: none; white-space: nowrap; transition: opacity .4s ease; }
.trio-hint.gone { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .machine-wrap::after { animation: none !important; opacity: .7; }
  .trio-btn.bump { animation: none !important; }
  .trio-fly.rm { animation: trioFade 1.1s ease both !important; animation-duration: 1.1s !important; }
}

/* MD-55 teasers: practice claw + gumball dial (cosmetic only) */
.teaser-hint { margin: 12px 0 0; text-align: center; font-size: 13px; font-weight: 800; color: var(--blue); min-height: 18px; }
#clawBtn { min-width: 220px; }
.gb-dial-hit { cursor: pointer; }
#gumballSvg.jammed .gb-stuck { opacity: 1; }
#gbWrap.jam-shake, #gumballSvg.jam-shake { animation: jamShake .42s ease; }
@keyframes jamShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px) rotate(-0.4deg); }
  40% { transform: translateX(5px) rotate(0.4deg); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
@media (max-width: 420px) {
  #clawBtn { min-width: 0; }
  .teaser-hint { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #gbWrap.jam-shake, #gumballSvg.jam-shake { animation: none !important; }
}

/* ---------- public ticket log ---------- */
.tixlog-page .top { grid-template-columns: auto 1fr; }
.tixlog { max-width: var(--max); margin: 0 auto; padding: 36px 20px 80px; }
.tixlog .title { font: 400 clamp(36px, 7vw, 56px)/1.05 Marimpa, sans-serif; color: var(--cream); margin: 0; }
.tixlog-stats { margin: 22px 0 18px; }
.tixlog-draw .stat-n { font-size: clamp(18px, 3vw, 26px); letter-spacing: 0; font-family: Nunito, sans-serif; font-weight: 800; }
.tixlog-toolbar { display: grid; gap: 8px; margin-bottom: 18px; }
.tixlog-period { display: flex; align-items: center; gap: 12px; color: var(--blue); font-weight: 800; font-size: 14px; }
.tixlog-period select { appearance: none; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23EEDBC9' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--cream); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 10px 36px 10px 16px; font: 800 14px Nunito, sans-serif; min-width: min(280px, 100%); }
.tixlog-commit code { color: var(--cream); }
.tixlog-list { display: grid; gap: 8px; }
.tixlog-empty { text-align: center; padding: 32px 22px; }
.tix-row { display: grid; grid-template-columns: 7.5rem 8.5rem minmax(10.5rem, 1fr) 14rem 12.25rem; justify-items: start; align-items: center; column-gap: 16px; row-gap: 6px; background: var(--navy-2); border-radius: 14px; padding: 12px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.tix-num, .tix-wallet, .tix-time, .tix-tx { min-width: 0; width: 100%; text-align: left; justify-self: stretch; }
.tix-num { font-family: Marimpa, sans-serif; font-size: 22px; color: var(--cream); line-height: 1; }
.tix-type { display: inline-block; box-sizing: border-box; width: 8.5rem; max-width: 100%; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-align: left; background: var(--slate); color: var(--blue); }
.tix-type.paid { background: var(--tan); color: var(--ink); }
.tix-type.free { background: var(--cream); color: var(--ink); }
.tix-type.points { background: var(--blue); color: var(--navy); }
.tix-type.claw { background: var(--brown); color: var(--cream); }
.tix-wallet code { font: 800 14px ui-monospace, Menlo, monospace; color: var(--cream); }
.tix-time { color: var(--blue); font-size: 13px; font-weight: 700; white-space: nowrap; }
.tix-tx { color: var(--tan); font-weight: 800; font-size: 13px; text-decoration: none; white-space: nowrap; }
.tix-tx:hover { color: var(--cream); }
.tix-hash { color: var(--blue); font-weight: 700; }
.tix-tx-none { visibility: hidden; pointer-events: none; min-height: 1em; }
@media (max-width: 860px) {
  .tixlog { padding: 22px 16px 70px; }
  .tix-row { grid-template-columns: minmax(0, 1fr) 12.25rem; grid-template-areas: "num type" "wallet wallet" "time tx"; gap: 6px 12px; padding: 14px 16px; }
  .tix-num { grid-area: num; font-size: 24px; }
  .tix-type { grid-area: type; justify-self: start; }
  .tix-wallet { grid-area: wallet; }
  .tix-time { grid-area: time; }
  .tix-tx { grid-area: tx; justify-self: stretch; }
}
