/* Ripl Originals, second wave: game scenes. Scoped to the game stage. */
.gstage .o2, .o2seg, .o2pays { --lime: #1f5bff; --lime-d: #1841b2; --ink: #12150c; --red: #ff4d5e; --gold: #ffc93c; --raise: #1f232b; --raise2: #272c36; --line: #2a2f39; --text: #eef1f5; --muted: #8a93a3; --fun: "Lilita One", system-ui, sans-serif; --ui: inherit; }
.gstage .o2 { width: 100%; position: relative; }
.gstage .o2 *, .gstage .o2 *::before, .gstage .o2 *::after { box-sizing: border-box; }
.gstage .o2 button { font: inherit; color: inherit; }
.o2-p { position: absolute; pointer-events: none; z-index: 30; }
.o2-ladder { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; scroll-behavior: smooth; }
.o2-ladder span { flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: #1f232b; color: #8a93a3; border: 1px solid transparent; font-variant-numeric: tabular-nums; }
.o2-ladder span.done { background: rgba(31,91,255,.12); color: #1f5bff; }
.o2-ladder span.next { border-color: #1f5bff; color: #eef1f5; }
.o2-ladder span.bust { background: rgba(255,77,94,.15); color: #ff4d5e; }
.o2seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: rgba(0,0,0,.25); border: 1px solid #2a2f39; border-radius: 10px; padding: 4px; margin-bottom: 4px; }
.o2seg button { border: 0; background: transparent; border-radius: 7px; padding: 7px 0; font-weight: 600; font-size: 13px; color: #8a93a3; cursor: pointer; }
.o2seg button[aria-pressed="true"] { background: #272c36; color: #eef1f5; }
.o2seg.off { opacity: .55; pointer-events: none; }
.o2pays { margin-top: 12px; font-size: 12.5px; color: #8a93a3; }
.o2pays summary { cursor: pointer; font-weight: 700; color: #eef1f5; }
.o2pays p { margin: 8px 0 0; line-height: 1.45; }
.o2pays b { color: #eef1f5; }
.tile.o2t { position: relative; overflow: hidden; }
.tile.o2t > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gstage .he-fly { position: absolute; left: 0; top: 0; }
.gstage .sl { width: 100%; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.gstage .sl-head { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 14px; }
.gstage .sl-head b { font: 400 30px/1 var(--fun); color: var(--lime); }
.gstage .sl-head span { font-size: 13px; }
.gstage .sl-view { position: relative; width: 100%; height: 176px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.gstage .sl-track { position: absolute; left: 0; top: 24px; display: flex; gap: 16px; will-change: transform; }
.gstage .sl-card { flex: 0 0 96px; height: 128px; border-radius: 14px; display: grid; place-items: center; font: 400 22px/1 var(--fun); border: 2px solid rgba(255,255,255,.08); box-shadow: inset 0 -6px 0 rgba(0,0,0,.22); transition: transform .25s cubic-bezier(.2,1.6,.4,1); }
.gstage .sl-card.t0 { background: #262b35; color: #8a93a3; }
.gstage .sl-card.t1 { background: #33405a; color: #c7d2ea; }
.gstage .sl-card.t2 { background: #0b6f80; color: #a8f0fa; }
.gstage .sl-card.t3 { background: #001e70; color: #799dff; }
.gstage .sl-card.t4 { background: #4b25b8; color: #d9caff; }
.gstage .sl-card.t5 { background: linear-gradient(160deg, #ffd34d, #c27a00); color: #3a2400; }
.gstage .sl-card.hit { transform: scale(1.14); }
.gstage .sl-card.hit.win { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(31,91,255,.25), 0 0 30px rgba(31,91,255,.45); }
.gstage .sl-card.hit.lose { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,77,94,.2); }
.gstage .sl-mark { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%); background: linear-gradient(var(--lime), rgba(31,91,255,0) 22%, rgba(31,91,255,0) 78%, var(--lime)); }
.gstage .sl-mark::before, .gstage .sl-mark::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 11px solid transparent; }
.gstage .sl-mark::before { top: 0; border-top-color: var(--lime); }
.gstage .sl-mark::after { bottom: 0; border-bottom-color: var(--lime); }
.gstage .sl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12px; color: var(--muted); }
.gstage .sl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.gstage .sl-legend .t0 { background: #262b35; }
.gstage .sl-legend .t1 { background: #33405a; }
.gstage .sl-legend .t2 { background: #0b6f80; }
.gstage .sl-legend .t3 { background: #001e70; }
.gstage .sl-legend .t4 { background: #4b25b8; }
.gstage .sl-legend .t5 { background: #ffc93c; }
.gstage .ck { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.gstage .ck-view { position: relative; height: 380px; overflow: hidden; border-radius: 14px; background: #2b2e36; }
.gstage .ck-road { position: absolute; inset: 0 auto 0 0; display: flex; will-change: transform; }
.gstage .ck-side { position: relative; height: 100%; background: repeating-linear-gradient(0deg, #4a4f5c 0 38px, #535967 38px 40px); }
.gstage .ck-side.start { box-shadow: inset -8px 0 0 #6b7180; }
.gstage .ck-side.end { box-shadow: inset 8px 0 0 #6b7180; display: grid; place-items: center; }
.gstage .ck-flag { font-size: 44px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.gstage .ck-lane { position: relative; height: 100%; background: #2b2e36; border-right: 4px dashed rgba(255,255,255,.55); display: grid; place-items: center; overflow: hidden; }
.gstage .ck-lane:last-of-type { border-right: 0; }
.gstage .ck-cover { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #5a606e, #3a3f4b); border: 4px solid #22252c; box-shadow: inset 0 0 0 3px #4a4f5c; font-weight: 800; font-size: 15px; color: #d3d8e2; transition: background .3s, color .3s; }
.gstage .ck-lane.passed .ck-cover { background: radial-gradient(circle at 40% 35%, #799dff, #1f5bff 55%, #113290); color: var(--ink); border-color: #00185b; box-shadow: 0 0 22px rgba(31,91,255,.45); }
.gstage .ck-lane.passed::after { content: ""; position: absolute; left: 10%; right: 10%; top: 18px; height: 14px; border-radius: 4px; background: repeating-linear-gradient(90deg, #ffc21a 0 14px, #1b1f2a 14px 28px); box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.gstage .ck-lane.crash .ck-cover { background: #5a2028; color: #ff9aa5; }
.gstage .ck-car { position: absolute; left: 50%; top: 0; z-index: 4; filter: drop-shadow(0 10px 10px rgba(0,0,0,.45)); }
.gstage .ck-hen { position: absolute; left: 0; top: calc(50% - 64px); z-index: 5; width: 96px; filter: drop-shadow(0 8px 6px rgba(0,0,0,.35)); will-change: transform; }
.gstage .ck-foot { min-height: 40px; }
.gstage .rl { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.gstage .rl-top { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 20px; align-items: center; }
.gstage .rl-wheel { width: 100%; filter: drop-shadow(0 14px 22px rgba(0,0,0,.5)); }
.gstage .rl-info { display: flex; flex-direction: column; gap: 12px; }
.gstage .rl-big { width: 92px; height: 92px; border-radius: 18px; display: grid; place-items: center; font: 400 46px/1 var(--fun); background: var(--raise); }
.gstage .rl-big.red { background: #c42339; }
.gstage .rl-big.black { background: #1b1f2a; border: 2px solid #3a404c; }
.gstage .rl-big.green { background: #15a85d; }
.gstage .rl-last { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.gstage .rl-last span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.gstage .rl-last .red { background: #c42339; }
.gstage .rl-last .black { background: #2a2f39; }
.gstage .rl-last .green { background: #15a85d; }
.gstage .rl-tip { margin: 0; color: var(--muted); font-size: 13px; max-width: 34ch; }
.gstage .rl-table { display: grid; grid-template-columns: 48px repeat(12, 1fr) 48px; grid-template-rows: repeat(3, 44px) 40px 40px; gap: 4px; }
.gstage .rl-cell { position: relative; border: 0; border-radius: 6px; font-weight: 800; font-size: 14px; color: #fff; transition: filter .15s, box-shadow .2s; }
.gstage .rl-cell:hover { filter: brightness(1.2); }
.gstage .rl-cell.red { background: #c42339; }
.gstage .rl-cell.blk { background: #1f232b; }
.gstage .rl-cell.z { background: #15a85d; }
.gstage .rl-cell.out { background: #232832; border: 1px solid var(--line); font-size: 13px; }
.gstage .rl-cell.win { box-shadow: 0 0 0 3px var(--lime), 0 0 18px rgba(31,91,255,.5); z-index: 2; }
.gstage .rl-cell .dia { display: inline-block; width: 16px; height: 16px; transform: rotate(45deg); border-radius: 2px; }
.gstage .rl-cell .dia.r { background: #e8344e; }
.gstage .rl-cell .dia.b { background: #0e1014; border: 1px solid #555; }
.gstage .rl-stack { position: absolute; right: 2px; top: 2px; min-width: 22px; height: 22px; padding: 0 3px; border-radius: 11px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; background: var(--c); border: 2px dashed rgba(255,255,255,.75); box-shadow: 0 2px 4px rgba(0,0,0,.5); animation: o2chipIn .18s ease; }
@keyframes o2chipIn { from { transform: translateY(-10px) scale(1.3); opacity: 0; } }
.gstage .rl-chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.gstage .rl-chip { aspect-ratio: 1; border-radius: 50%; border: 3px dashed rgba(255,255,255,.7); background: var(--c); font-weight: 800; font-size: 12px; color: #fff; box-shadow: 0 0 0 2px var(--c), 0 3px 0 rgba(0,0,0,.4); transition: transform .12s; }
.gstage .rl-chip[aria-pressed="true"] { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--c), 0 0 0 5px var(--lime), 0 6px 10px rgba(0,0,0,.4); }
.gstage .vp { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gstage .vp-pay { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 4px 14px; width: 100%; max-width: 640px; background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.gstage .vp-pay div { display: flex; justify-content: space-between; color: var(--muted); padding: 3px 6px; border-radius: 6px; }
.gstage .vp-pay b { color: var(--text); }
.gstage .vp-pay div.on { background: var(--lime); color: var(--ink); }
.gstage .vp-pay div.on b { color: var(--ink); }
.gstage .vp-hint { color: var(--muted); font-size: 14px; min-height: 20px; }
.gstage .vp-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 128px)); gap: 12px; perspective: 900px; width: 100%; justify-content: center; }
.gstage .vp-card { position: relative; background: none; border: 0; padding: 0; aspect-ratio: 100/140; transition: transform .2s cubic-bezier(.2,1.4,.4,1); }
.gstage .vp-card:disabled { cursor: default; }
.gstage .vp-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .38s cubic-bezier(.3,.7,.3,1); }
.gstage .vp-in .f { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; filter: drop-shadow(0 8px 12px rgba(0,0,0,.4)); }
.gstage .vp-in .front { transform: rotateY(180deg); }
.gstage .vp-card.up .vp-in { transform: rotateY(180deg); }
.gstage .vp-card em { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); font-style: normal; font-size: 12px; font-weight: 800; color: var(--ink); background: var(--lime); padding: 2px 10px; border-radius: 999px; opacity: 0; transition: opacity .15s; }
.gstage .vp-card.held { transform: translateY(-14px); }
.gstage .vp-card.held em { opacity: 1; }
.gstage .vp-card.held .f { box-shadow: 0 0 0 3px var(--lime); border-radius: 10px; }
.gstage .vp-card.lose .front { opacity: .55; }
.gstage .vp-card.winc .f { filter: drop-shadow(0 0 14px rgba(31,91,255,.5)); }
.gstage .rp { width: 100%; display: flex; flex-direction: column; gap: 18px; }
.gstage .rp-arena { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.gstage .rp-side { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 13px; }
.gstage .rp-pod { width: 168px; height: 168px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #2c3240, #1a1e26); border: 3px solid #333a47; display: grid; place-items: center; padding: 8px; transition: border-color .2s, box-shadow .2s; }
.gstage .rp-pod svg { width: 100%; height: 100%; }
.gstage .rp-pod.house svg { transform: scaleX(-1); }
.gstage .rp-pod.won { border-color: var(--lime); box-shadow: 0 0 0 6px rgba(31,91,255,.15), 0 0 40px rgba(31,91,255,.3); }
.gstage .rp-pod.lose { border-color: var(--red); opacity: .7; }
.gstage .rp-pod.tie { border-color: var(--gold); }
.gstage .rp-mid { text-align: center; min-width: 170px; }
.gstage .rp-mult { font: 400 48px/1 var(--fun); color: var(--lime); }
.gstage .rp-mult.dead { color: var(--red); }
.gstage .rp-msg { color: var(--muted); font-size: 14px; margin-top: 8px; min-height: 40px; max-width: 24ch; margin-inline: auto; }
.gstage .rp-picks { display: flex; justify-content: center; gap: 12px; }
.gstage .rp-pick { width: 116px; padding: 12px 8px 10px; border-radius: 14px; background: var(--raise); border: 2px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; transition: transform .12s, border-color .15s; }
.gstage .rp-pick svg { width: 76px; height: 76px; }
.gstage .rp-pick:not(:disabled):hover { border-color: var(--lime); transform: translateY(-3px); }
.gstage .rp-pick:disabled { opacity: .45; cursor: not-allowed; }
.gstage .ml { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.gstage .ml-field { position: relative; height: 380px; border-radius: 16px; overflow: hidden;
  background: repeating-linear-gradient(90deg, #4fae38 0 60px, #57b83f 60px 120px), #4fae38; box-shadow: inset 0 -30px 60px rgba(0,0,0,.25); }
.gstage .ml-hole { position: absolute; width: 22%; max-width: 150px; aspect-ratio: 1.25; transform: translate(-50%,-50%); background: none; border: 0; padding: 0; }
.gstage .ml-hole:not(:disabled):hover .ml-rim { box-shadow: 0 0 0 4px var(--lime); }
.gstage .ml-pit { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #0f0905 55%, #2d1c0e 70%); }
.gstage .ml-rim { position: absolute; left: -4%; right: -4%; bottom: -6%; height: 30%; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: #7a5232; box-shadow: inset 0 6px 0 #a87a52; transition: box-shadow .15s; }
.gstage .ml-clip { position: absolute; left: 10%; right: 10%; bottom: 14%; height: 120%; overflow: hidden; }
.gstage .ml-mole { position: absolute; left: 0; right: 0; bottom: 0; height: 80%; transform: translateY(100%); transition: transform .22s cubic-bezier(.2,1.5,.4,1); }
.gstage .ml-hole.up .ml-mole { transform: translateY(8%); }
.gstage .ml-hole.miss .ml-pit { background: radial-gradient(ellipse at 50% 40%, #3b2412 40%, #2d1c0e 70%); }
.gstage .ml-mallet { position: absolute; left: 0; top: 0; z-index: 5; opacity: 0; transform-origin: 70% 90%; pointer-events: none; filter: drop-shadow(0 8px 6px rgba(0,0,0,.35)); }
.gstage .ml-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.gstage .ml-status b { font: 400 28px/1 var(--fun); color: var(--lime); margin-left: 6px; }
.gstage .pm { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.gstage .pm-sky { position: relative; height: 400px; border-radius: 16px; overflow: hidden; background: linear-gradient(#1d6fd6, #6cc4ff 70%, #b8e4ff); }
.gstage .pm-sky .cl { position: absolute; height: 34px; border-radius: 20px; background: rgba(255,255,255,.75); filter: blur(.5px); animation: o2drift 26s linear infinite; }
.gstage .pm-sky .cl::before { content: ""; position: absolute; left: 22%; top: -18px; width: 46px; height: 46px; border-radius: 50%; background: inherit; }
.gstage .pm-sky .c1 { width: 120px; top: 60px; left: 10%; }
.gstage .pm-sky .c2 { width: 90px; top: 140px; left: 70%; animation-duration: 34s; }
.gstage .pm-sky .c3 { width: 70px; top: 30px; left: 55%; animation-duration: 40s; opacity: .6; }
@keyframes o2drift { from { transform: translateX(-60px); } 50% { transform: translateX(60px); } to { transform: translateX(-60px); } }
.gstage .pm-balloon { position: absolute; left: 50%; bottom: 128px; width: 220px; height: 292px; transform-origin: 50% 85%; transform: translateX(-50%) scale(.55); }
.gstage .pm-tag { position: absolute; left: 50%; top: 32%; transform: translate(-50%,-50%); font: 400 30px/1 var(--fun); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.3); white-space: nowrap; }
.gstage .pm-pump { position: absolute; left: 50%; bottom: 14px; width: 120px; height: 120px; transform: translateX(-50%); }
.gstage .pm-handle { position: absolute; left: 22px; top: 0; width: 76px; height: 14px; border-radius: 7px; background: #1b1f2a; z-index: 2; }
.gstage .pm-rod { position: absolute; left: 55px; top: 10px; width: 10px; height: 40px; background: #9aa2b2; }
.gstage .pm-barrel { position: absolute; left: 40px; top: 44px; width: 40px; height: 76px; border-radius: 8px; background: linear-gradient(90deg, #fff, #c9ced8); box-shadow: inset 0 -6px 0 rgba(0,0,0,.12); }
.gstage .pm-hose { position: absolute; left: 58px; top: -10px; width: 4px; height: 0; }
.gstage .pm-pop { position: absolute; left: 50%; top: 40%; transform: translate(-50%,-50%) scale(0); font: 400 64px/1 var(--fun); color: #fff; text-shadow: 0 4px 0 #a30a22; opacity: 0; }
.gstage .pm-pop.show { animation: o2popIn .6s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes o2popIn { to { transform: translate(-50%,-50%) scale(1) rotate(-6deg); opacity: 1; } }
.gstage .sn { width: 100%; display: grid; place-items: center; }
.gstage .sn-board { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: 8px; width: min(100%, 460px); aspect-ratio: 1; }
.gstage .sn-tile { position: relative; border-radius: 14px; display: grid; place-items: center; background: #232832; border: 2px solid #2f3540; box-shadow: inset 0 -5px 0 rgba(0,0,0,.25); transition: box-shadow .2s, transform .2s; }
.gstage .sn-tile b { font: 400 21px/1 var(--fun); }
.gstage .sn-tile small { position: absolute; left: 7px; top: 5px; font-size: 11px; font-weight: 800; color: var(--muted); }
.gstage .sn-tile.cool b { color: #c7d2ea; }
.gstage .sn-tile.warm b { color: var(--lime); }
.gstage .sn-tile.hot { background: #3b2f10; border-color: #6b5413; }
.gstage .sn-tile.hot b { color: var(--gold); }
.gstage .sn-tile.snake { background: #3a1820; border-color: #5c2330; }
.gstage .sn-tile.start { background: #111627; border-color: #00185b; color: var(--lime); font-weight: 800; font-size: 13px; }
.gstage .sn-tile.land { box-shadow: 0 0 0 3px var(--lime), 0 0 26px rgba(31,91,255,.4); transform: scale(1.04); }
.gstage .sn-tile.snake.land { box-shadow: 0 0 0 3px var(--red), 0 0 26px rgba(255,77,94,.45); }
.gstage .sn-center { grid-column: 2 / 4; grid-row: 2 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.gstage .sn-dice { display: flex; gap: 12px; }
.gstage .sn-dice span { width: 62px; height: 62px; display: block; filter: drop-shadow(0 6px 6px rgba(0,0,0,.4)); }
.gstage .sn-dice svg { width: 100%; height: 100%; }
.gstage .sn-mult { font: 400 38px/1 var(--fun); color: var(--lime); }
.gstage .sn-msg { color: var(--muted); font-size: 13px; max-width: 22ch; min-height: 36px; }
.gstage .sn-token { position: absolute; width: 30px; height: 30px; border-radius: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle at 35% 30%, #799dff, var(--lime) 50%, #002384); border: 3px solid #12151a; box-shadow: 0 6px 10px rgba(0,0,0,.5); z-index: 4; transition: background .2s; }
.gstage .sn-token.bitten { background: radial-gradient(circle at 35% 30%, #ffb3bb, var(--red) 55%, #8a0f1e); }
.gstage .dt { width: 100%; display: grid; grid-template-columns: 1fr 190px; gap: 20px; align-items: center; }
.gstage .dt-boardwrap { position: relative; display: grid; place-items: center; }
.gstage .dt-board { width: min(100%, 420px); filter: drop-shadow(0 16px 24px rgba(0,0,0,.5)); }
.gstage .dt-dart { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0,0,0,.45)); transform-origin: 50% 100%; }
.gstage .dt-legend { display: flex; flex-direction: column; gap: 6px; }
.gstage .dt-legend div { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--raise); border: 1px solid transparent; font-size: 13px; }
.gstage .dt-legend i { width: 14px; height: 14px; border-radius: 50%; }
.gstage .dt-legend span { color: var(--muted); }
.gstage .dt-legend div.on { border-color: var(--lime); background: rgba(31,91,255,.08); }
.gstage .tw { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gstage .tw-top { filter: drop-shadow(0 0 16px rgba(255,207,61,.6)); animation: o2bob 2.4s ease-in-out infinite; }
@keyframes o2bob { 50% { transform: translateY(-5px); } }
.gstage .tw-rows { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 16px; background: linear-gradient(#2a221d, #1c1714); border: 2px solid #3a2f27; }
.gstage .tw-row { display: grid; grid-template-columns: 78px 1fr; gap: 8px; align-items: center; border-radius: 10px; padding: 2px; transition: background .2s; }
.gstage .tw-m { font-size: 12px; font-weight: 800; color: var(--muted); text-align: right; padding-right: 4px; }
.gstage .tw-row.active { background: rgba(31,91,255,.08); }
.gstage .tw-row.active .tw-m { color: var(--lime); }
.gstage .tw-row.cleared .tw-m { color: var(--gold); }
.gstage .tw-tiles { display: grid; gap: 6px; }
.gstage .tw-tile { height: 38px; border-radius: 8px; border: 0; background: linear-gradient(#8f7d6c, #6f5f51); box-shadow: inset 0 -4px 0 rgba(0,0,0,.28), inset 0 2px 0 rgba(255,255,255,.15); display: grid; place-items: center; padding: 3px; }
.gstage .tw-tile svg { height: 100%; }
.gstage .tw-tile:not(:disabled):hover { background: linear-gradient(#799dff, #1d48c0); }
.gstage .tw-row.active .tw-tile:not(:disabled) { box-shadow: inset 0 -4px 0 rgba(0,0,0,.28), 0 0 0 2px rgba(31,91,255,.5); }
.gstage .tw-tile:disabled { cursor: default; }
.gstage .tw-tile.egg { background: linear-gradient(#5a4a1a, #3d3110); }
.gstage .tw-tile.trap { background: linear-gradient(#5c1d24, #3a0f15); }
.gstage .tw-tile.ghost { opacity: .45; }
.gstage .tw-tile.chosen.egg { box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(255,207,61,.45); }
.gstage .tw-tile.chosen.trap { box-shadow: 0 0 0 2px var(--red); }
@media (max-width: 860px) {
.gstage .rl-top { grid-template-columns: 1fr; justify-items: center; }
.gstage .rl-info { align-items: center; text-align: center; }
.gstage .rl-table { grid-template-columns: 30px repeat(12, 1fr) 30px; grid-template-rows: repeat(3, 34px) 34px 34px; font-size: 11px; }
.gstage .rl-cell { font-size: 11px; }
.gstage .vp-pay { grid-template-columns: 1fr 1fr; }
.gstage .rp-pod { width: 112px; height: 112px; padding: 14px; }
.gstage .rp-mid { min-width: 110px; }
.gstage .rp-mult { font-size: 34px; }
.gstage .dt { grid-template-columns: 1fr; }
.gstage .dt-legend { display: grid; grid-template-columns: repeat(2, 1fr); }
.gstage .ml-field, .gstage .pm-sky { height: 320px; }
.gstage .pm-balloon { width: 170px; height: 226px; }
}
.gstage .he { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.gstage .he-felt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 16px 16px; border-radius: 120px 120px 22px 22px / 70px 70px 22px 22px;
  background: radial-gradient(120% 90% at 50% 20%, #1c7a52, #0d4a32 70%); border: 10px solid #3a2112; box-shadow: inset 0 0 0 3px #c9a24a, inset 0 0 50px rgba(0,0,0,.45), 0 16px 30px rgba(0,0,0,.4); }
.gstage .he-row { display: grid; grid-template-columns: 70px auto 1fr; align-items: center; gap: 14px; width: 100%; max-width: 560px; }
.gstage .he-who { font-weight: 800; font-size: 13px; color: #b9e6cf; text-align: right; }
.gstage .he-cards, .gstage .he-board { display: flex; gap: 8px; perspective: 900px; }
.gstage .he-card { position: relative; width: 70px; aspect-ratio: 100/140; transition: transform .2s; }
.gstage .he-board .he-card { width: 76px; }
.gstage .he-card .vp-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .38s cubic-bezier(.3,.7,.3,1); }
.gstage .he-card .f { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; filter: drop-shadow(0 5px 8px rgba(0,0,0,.4)); }
.gstage .he-card .front { transform: rotateY(180deg); }
.gstage .he-card.up .vp-in { transform: rotateY(180deg); }
.gstage .he-card.best { transform: translateY(-8px); }
.gstage .he-card.best .front { filter: drop-shadow(0 0 10px rgba(31,91,255,.75)); }
.gstage .he-card.dim { opacity: .45; }
.gstage .he-tag { justify-self: start; font-size: 13px; font-weight: 700; color: #e9f7ef; background: rgba(0,0,0,.28); padding: 5px 10px; border-radius: 999px; min-height: 28px; }
.gstage .he-tag:empty { visibility: hidden; }
.gstage .he-tag.win { background: var(--lime); color: var(--ink); }
.gstage .he-tag.nq { color: #ffd34d; }
.gstage .he-arc { font-size: 11px; letter-spacing: .5px; color: rgba(233,247,239,.6); border-top: 1px solid rgba(201,162,74,.5); border-bottom: 1px solid rgba(201,162,74,.5); padding: 3px 12px; }
.gstage .he-spots { display: flex; gap: 14px; margin-top: 2px; }
.gstage .he-spot { width: 104px; padding: 8px 6px; border-radius: 999px; border: 2px dashed rgba(233,247,239,.45); text-align: center; display: flex; flex-direction: column; font-size: 12px; color: #d8efe3; transition: border-color .2s, background .2s; }
.gstage .he-spot b { font-size: 11px; font-weight: 800; opacity: .8; }
.gstage .he-spot span { font-weight: 800; font-size: 14px; color: #fff; }
.gstage .he-spot.bonus { border-color: rgba(255,211,77,.6); }
.gstage .he-spot.won { border-style: solid; border-color: var(--lime); background: rgba(31,91,255,.18); }
.gstage .he-spot.lost { border-style: solid; border-color: rgba(255,77,94,.7); background: rgba(255,77,94,.12); }
.gstage .he-spot.lost span { text-decoration: line-through; opacity: .7; }
.gstage .he-spot.push { border-style: solid; border-color: rgba(233,247,239,.8); }
.gstage .he-msg { font-size: 14px; color: #e9f7ef; min-height: 21px; text-align: center; max-width: 52ch; }
.gstage .he-pays { background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.gstage .he-pays summary { cursor: pointer; font-weight: 700; }
.gstage .he-paygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.gstage .he-paygrid h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.gstage .he-paygrid p { display: flex; justify-content: space-between; margin: 3px 0; }
.gstage .he-paygrid p.note { color: var(--muted); display: block; margin-top: 8px; }
@media (max-width: 860px) {
.gstage .he-card { width: 52px; }
.gstage .he-board .he-card { width: 54px; }
.gstage .he-row { grid-template-columns: 50px auto 1fr; gap: 8px; }
.gstage .he-spot { width: 86px; }
.gstage .he-paygrid { grid-template-columns: 1fr; }
}
.gstage .he-pile { position: absolute; top: 44px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.gstage .he-shoe { right: 44px; }
.gstage .he-discard { left: 44px; }
.gstage .he-stack { position: relative; width: 56px; aspect-ratio: 100/140; }
.gstage .he-stack::before { content: ""; position: absolute; inset: -4px; border: 2px dashed rgba(233,247,239,.22); border-radius: 10px; }
.gstage .he-stack i { position: absolute; inset: 0; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.gstage .he-stack svg { display: block; width: 100%; height: 100%; }
.gstage .he-lbl { font-size: 11px; font-weight: 700; color: rgba(233,247,239,.7); white-space: nowrap; }
.gstage .he-lbl b { color: #fff; }
.gstage .he-fly { position: absolute; left: 0; top: 0; z-index: 30; transform-origin: 0 0; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); will-change: transform; }
.gstage .he-fly svg { display: block; width: 100%; height: auto; }
.gstage .he-card::before { content: ""; position: absolute; inset: 0; border: 2px dashed rgba(233,247,239,.2); border-radius: 9px; }
.gstage .he-card.empty .vp-in { opacity: 0; }
@media (max-width: 860px) {
.gstage .he-felt { padding-top: 104px; }
.gstage .he-stack { width: 42px; }
.gstage .he-pile { top: 18px; }
.gstage .he-shoe { right: 22px; }
.gstage .he-discard { left: 22px; }
}
