/* Gen Z Roulette simulator */
.gzr { position: relative; margin: 1.5rem 0 2rem; padding: clamp(1rem, 3vw, 1.6rem); border-radius: 28px; border: 1px solid rgba(43,234,127,.35);
	background: radial-gradient(600px 300px at 0% 0%, rgba(43,234,127,.14), transparent 60%), radial-gradient(500px 300px at 100% 100%, rgba(255,61,90,.12), transparent 60%), #0a100d;
	box-shadow: 0 0 0 1px rgba(43,234,127,.15), 0 30px 80px -30px rgba(43,234,127,.45); color: #f4f7f3; overflow: hidden; }
.gzr * { box-sizing: border-box; }
.gzr-kicker { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #2bea7f; }
.gzr h3 { margin: .3rem 0 .6rem; font-size: 1.3rem; }
.gzr-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.gzr-btn { appearance: none; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #f4f7f3; font: 700 .9rem/1 Inter, system-ui, sans-serif; padding: .7rem 1rem; border-radius: 999px; cursor: pointer; text-decoration: none !important; transition: transform .12s, background .12s; }
.gzr-btn:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.gzr-btn--go { background: linear-gradient(135deg, #6bffad, #2bea7f); border-color: transparent; color: #04140b !important; box-shadow: 0 8px 24px -8px rgba(43,234,127,.7); }
.gzr-btn--go:hover { background: linear-gradient(135deg, #9dffca, #2bea7f); }

/* Age gate + modal */
.gzr-gate, .gzr-modal { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 1rem; background: rgba(6,10,8,.86); backdrop-filter: blur(10px); }
.gzr.is-open .gzr-gate { display: none; }
.gzr-modal[hidden] { display: none; }
.gzr-gate__box { max-width: 440px; background: #0f1813; border: 1px solid rgba(43,234,127,.35); border-radius: 22px; padding: 1.5rem; }
.gzr-gate__box p { font-size: .95rem; }
.gzr:not(.is-open) .gzr-top, .gzr:not(.is-open) .gzr-board, .gzr:not(.is-open) .gzr-outside { filter: blur(6px); pointer-events: none; }

/* Top: wheel + panel */
.gzr-top { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 1.4rem; align-items: center; }
.gzr-wheelwrap { position: relative; width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: 1; }
.gzr-wheel svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)) drop-shadow(0 0 30px rgba(43,234,127,.25)); }
.gzr-rotor { transform-origin: 200px 200px; transform-box: view-box; transition: transform 4.4s cubic-bezier(.12,.62,.08,1); }
.gzr-wheel text { fill: #fff; font: 700 11px Inter, Arial, sans-serif; text-anchor: middle; dominant-baseline: central; }
.gzr-pointer { position: absolute; top: -6px; left: 50%; z-index: 2; width: 0; height: 0; transform: translateX(-50%); border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.gzr-result { position: absolute; inset: 34%; border-radius: 50%; display: grid; place-content: center; text-align: center; background: rgba(6,10,8,.82); border: 2px solid rgba(255,255,255,.15); transition: background .3s, border-color .3s, transform .3s; }
.gzr-result__n { font: 800 clamp(1.8rem, 6vw, 2.6rem)/1 "Bricolage Grotesque", Inter, sans-serif; }
.gzr-result__t { font-size: .64rem; line-height: 1.2; color: #c9d3cd; padding: 0 .4rem; margin-top: .2rem; }
.gzr-result--red { background: #ff3d5a; border-color: #ffb3bf; transform: scale(1.06); }
.gzr-result--black { background: #151515; border-color: #fff; transform: scale(1.06); }
.gzr-result--green { background: #14b85f; border-color: #b6ffd5; transform: scale(1.06); }
.is-spinning .gzr-result { transform: none; }
.gzr-panel { display: grid; gap: .8rem; min-width: 0; }
.gzr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 0; }
.gzr-stats div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: .55rem .7rem; }
.gzr-stats dt { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9aa9a1; }
.gzr-stats dd { margin: .15rem 0 0; font: 800 1.15rem/1.1 "Bricolage Grotesque", Inter, sans-serif; }
.is-up { color: #2bea7f; } .is-down { color: #ff6b80; }
.gzr-edge { background: rgba(255,200,61,.07); border: 1px solid rgba(255,200,61,.3); border-radius: 14px; padding: .6rem .8rem; }
.gzr-edge__row { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; }
.gzr-edge__row strong { color: #ffc83d; }
.gzr-edge__bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); margin: .4rem 0; overflow: hidden; }
.gzr-edge__fill { display: block; height: 100%; width: 50%; background: linear-gradient(90deg, #ff3d5a, #ffc83d, #2bea7f); transition: width .5s; }
.gzr-edge small { font-size: .72rem; color: #c9d3cd; }
.gzr-spark { width: 100%; height: 70px; display: block; background: rgba(255,255,255,.03); border-radius: 12px; }
.gzr-spark--big { height: 140px; }
.gzr-history { display: flex; gap: .3rem; flex-wrap: wrap; min-height: 28px; }
.gzr-h { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 8px; font: 800 .78rem Inter, sans-serif; }
.gzr-h.is-new { outline: 2px solid #fff; animation: gzr-pop .4s; }
@keyframes gzr-pop { from { transform: scale(.4); } to { transform: scale(1); } }

/* Controls */
.gzr-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin: 1.2rem 0 .8rem; }
.gzr-chips { display: flex; gap: .45rem; }
.gzr-chip { width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font: 800 .85rem Inter, sans-serif; color: #fff; border: 4px dashed rgba(255,255,255,.75); background: #3a3f3c; transition: transform .12s, box-shadow .12s; }
.gzr-chip[data-chip="5"] { background: #ff3d5a; } .gzr-chip[data-chip="25"] { background: #14b85f; } .gzr-chip[data-chip="100"] { background: #151515; }
.gzr-chip.is-on { transform: translateY(-4px) scale(1.08); box-shadow: 0 0 0 3px #ffc83d, 0 10px 20px rgba(0,0,0,.5); }
.gzr-spin { font-size: 1rem; padding: .8rem 1.5rem; }
.is-spinning .gzr-spin { opacity: .5; pointer-events: none; }

/* Board */
.gzr-board { display: grid; gap: 3px; grid-template-columns: 1.1fr repeat(12, 1fr) 1.1fr; grid-template-rows: repeat(3, 46px); }
.gzr-cell { position: relative; grid-row: var(--dr); grid-column: var(--dc); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; color: #fff; font: 800 .9rem Inter, sans-serif; cursor: pointer; padding: 0; transition: filter .12s, transform .12s; }
.gzr-cell:hover { filter: brightness(1.25); }
.gzr-cell:active { transform: scale(.96); }
.gzr-red { background: #d8263f; } .gzr-black { background: #1a1a1a; } .gzr-green { background: #14b85f; }
.gzr-out { background: rgba(43,234,127,.08); border-color: rgba(43,234,127,.3); font-size: .82rem; }
.gzr-outside { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin-top: 3px; }
.gzr-outside .gzr-cell { height: 44px; }
.gzr-dozen { grid-column: span 2; }
.gzr-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #1a1a1a; border: 1px solid #fff; vertical-align: -1px; }
.gzr-dot--red { background: #d8263f; }
.gzr-badge { position: absolute; top: -7px; right: -5px; z-index: 1; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; background: #ffc83d; color: #14110a; font: 800 .66rem Inter, sans-serif; border: 2px dashed #14110a; box-shadow: 0 3px 8px rgba(0,0,0,.5); }

/* Simulation + footer */
.gzr-sim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1.2rem; padding: .9rem 1rem; border-radius: 18px; background: linear-gradient(135deg, rgba(43,234,127,.12), rgba(255,200,61,.08)); border: 1px solid rgba(43,234,127,.3); }
.gzr-sim span { display: block; font-size: .85rem; color: #c9d3cd; }
.gzr-simout { margin-top: 1rem; padding: 1rem; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.gzr-simout h3 { font-size: 1rem; }
.gzr-stats--sim { grid-template-columns: repeat(5, 1fr); margin-top: .8rem; }
.gzr-take { margin: .8rem 0 0; font-size: .92rem; }
.gzr-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
.gzr-note { font-size: .75rem; color: #9aa9a1; margin-left: auto; }
.gzr-note a { color: #2bea7f; }

@media (max-width: 760px) {
	.gzr-top { grid-template-columns: 1fr; }
	.gzr-wheelwrap { max-width: 260px; }
	.gzr-stats { grid-template-columns: repeat(2, 1fr); }
	.gzr-stats--sim { grid-template-columns: repeat(2, 1fr); }
	.gzr-board { grid-template-columns: repeat(3, 1fr); grid-template-rows: 40px repeat(12, 38px) 40px; }
	.gzr-cell { grid-row: var(--mr); grid-column: var(--mc); }
	.gzr-outside { grid-template-columns: repeat(3, 1fr); }
	.gzr-dozen { grid-column: span 1; }
	.gzr-controls { position: sticky; top: 64px; z-index: 3; background: rgba(10,16,13,.95); padding: .6rem; margin: 1rem -.4rem .6rem; border-radius: 16px; }
	.gzr-chip { width: 40px; height: 40px; }
	.gzr-note { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .gzr-rotor { transition-duration: .6s; } }
