/* Ripl Arena */
.ar { --lime: #1f5bff; --pink: #ff4f9a; --card: #111114; --line: rgba(255,255,255,.08); --mute: #9b9ba3; color: #f5f5f3; display: flex; flex-direction: column; gap: 22px; padding-bottom: 40px; }
.ar h1, .ar h2, .ar h3, .ar h4 { margin: 0; }
.ar .lime, .ar-modal .lime { color: var(--lime, #1f5bff); }
.ar .red { color: #ff4f6a; }
.ar-cur { font-size: .78em; color: #9b9ba3; font-weight: 700; }
.ar-pill { display: inline-block; font: 800 11px/1 "RB Inter", Inter, system-ui, sans-serif; letter-spacing: .12em; padding: 6px 9px; border-radius: 99px; background: rgba(31,91,255,.12); color: #1f5bff; border: 1px solid rgba(31,91,255,.35); }
.ar-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 0 0 rgba(255,59,92,.6); animation: arPulse 1.6s infinite; margin-right: 6px; vertical-align: middle; }
@keyframes arPulse { 70% { box-shadow: 0 0 0 8px rgba(255,59,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); } }

/* hero */
.ar-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 20px; padding: 34px 34px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(90% 140% at 0% 0%, rgba(31,91,255,.16), transparent 55%), radial-gradient(80% 120% at 100% 100%, rgba(255,79,154,.2), transparent 60%), linear-gradient(135deg, #15111f, #0b0b0e); }
.ar-hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 22px); pointer-events: none; }
.ar-hero h1 { font: 900 clamp(34px, 5vw, 58px)/.95 "RB Inter", Inter, system-ui, sans-serif; letter-spacing: -.03em; margin: 12px 0 10px; text-transform: uppercase; }
.ar-hero h1 em { font-style: normal; color: #1f5bff; text-shadow: 0 0 30px rgba(31,91,255,.45); }
.ar-hero p { color: #c9c9cf; max-width: 560px; margin: 0 0 18px; font-size: 15px; line-height: 1.55; }
.ar-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ar-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; color: #9b9ba3; font-size: 13px; }
.ar-stats b { color: #fff; }
.ar-vsart { position: relative; height: 210px; z-index: 1; }
.ar-vsc { position: absolute; width: 170px; top: 18px; filter: drop-shadow(0 20px 26px rgba(0,0,0,.6)); animation: arFloat 4s ease-in-out infinite; }
.ar-vsc svg { width: 100%; height: auto; display: block; overflow: visible; }
.ar-vsc.a { left: 4%; transform: rotate(-8deg); }
.ar-vsc.b { right: 4%; animation-delay: -2s; }
.ar-vsb { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); font: 900 64px/1 "RB Inter", Inter, system-ui; color: #1f5bff; text-shadow: 0 0 0 #000, 4px 4px 0 #000, 0 0 40px rgba(31,91,255,.6); font-style: italic; }
@keyframes arFloat { 50% { translate: 0 -10px; } }
.ar-active { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(90deg, rgba(31,91,255,.16), rgba(31,91,255,.04)); border: 1px solid rgba(31,91,255,.4); color: #fff; text-decoration: none; }
.ar-active span:nth-child(3) { color: #c9c9cf; flex: 1; font-size: 14px; }

/* grid of tiles */
.ar-h2 h2, .ar-h3 h3 { font: 800 20px "RB Inter", Inter, system-ui, sans-serif; }
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ar-gt { position: relative; }
.ar-gt .tile { transition: transform .2s, box-shadow .2s; }
.ar-gt:hover .tile { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.ar-em { width: 68% !important; top: 40% !important; }
.ar-em svg { width: 100%; height: auto; display: block; overflow: visible; }
.ar-cnt { position: absolute; left: 9px; top: 9px; font: 800 10px/1 "RB Inter", Inter, system-ui; padding: 5px 8px; border-radius: 99px; background: rgba(0,0,0,.66); color: #1f5bff; }
.ar-cnt i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #1f5bff; margin-right: 5px; }
.ar-cnt::after { content: " open"; }

/* lists */
.ar-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ar-card { background: #0e0e10; border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
.ar-h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ar-sub { color: #9b9ba3; font-size: 12px; }
.ar-row { display: grid; grid-template-columns: 40px minmax(90px, 1fr) minmax(0, 1.6fr) auto auto; align-items: center; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--line); }
.ar-row:first-child { border-top: 0; }
.ar-row:has(.ar-tag) { grid-template-columns: 40px minmax(90px, 1fr) minmax(0, 1.6fr) auto auto auto; }
.ar-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; flex: none; }
.ar-ico svg { width: 34px; height: 34px; overflow: visible; }
.ar-rg { display: flex; flex-direction: column; min-width: 0; }
.ar-rg b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-rg small, .ar-ra small { color: #9b9ba3; font-size: 11px; }
.ar-rp { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ar-vs { font-style: normal; color: #6f6f78; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.ar-ra { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.ar-free { color: #1f5bff; }
.ar-tag { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 99px; background: rgba(255,255,255,.07); color: #c9c9cf; white-space: nowrap; }
.ar-tag.win { background: rgba(31,91,255,.12); color: #1f5bff; }
.ar-none { color: #7d7d86; font-size: 14px; padding: 18px 6px; text-align: center; }
.ar-pc { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.ar-pc.ar-empty { color: #7d7d86; font-size: 13px; }
.ar-pn { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.ar-pn b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-pn small { color: #9b9ba3; font-size: 11px; }
.ar-av { --h: 90; width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 900 13px "RB Inter", Inter, system-ui; color: #0b0b0d; background: linear-gradient(135deg, hsl(var(--h) 90% 70%), hsl(calc(var(--h) + 40) 80% 50%)); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.ar-av.lg { width: 46px; height: 46px; font-size: 20px; }

/* game page hero */
.ar-ghero { border-radius: 20px; padding: 18px 24px 26px; border: 1px solid var(--line); background: radial-gradient(100% 130% at 0% 0%, color-mix(in srgb, var(--a) 35%, transparent), transparent 60%), linear-gradient(135deg, #15121c, #0b0b0e); }
.ar-back { color: #9b9ba3; text-decoration: none; font-size: 13px; font-weight: 700; }
.ar-back:hover { color: #fff; }
.ar-gh { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; margin-top: 10px; }
.ar-gart { width: 100%; }
.ar-gart .tile { container-type: inline-size; position: relative; aspect-ratio: 3 / 4; width: 100%; overflow: hidden; isolation: isolate; border-radius: 18px; box-shadow: 0 20px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08); animation: arFloat 4s ease-in-out infinite; }
.ar-gtext h1 { font: 900 clamp(30px, 4vw, 46px)/1 "RB Inter", Inter, system-ui; text-transform: uppercase; margin: 10px 0 12px; }
.ar-how { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; color: #d4d4da; font-size: 14px; }
.ar-how li { position: relative; padding-left: 22px; }
.ar-how li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 3px; background: #1f5bff; transform: rotate(45deg) scale(.8); }

/* modal */
.ar-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(0,0,0,.66); backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s; padding: 16px; }
.ar-modal.in { opacity: 1; }
.ar-mbox { position: relative; width: min(520px, 100%); max-height: 92vh; overflow: auto; background: #121215; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 22px; color: #f5f5f3; transform: translateY(10px) scale(.98); transition: transform .18s; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.ar-modal.in .ar-mbox { transform: none; }
.ar-mbox h2 { font: 800 22px "RB Inter", Inter, system-ui; margin: 0 0 14px; }
.ar-x { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255,255,255,.06); color: #fff; font-size: 22px; cursor: pointer; }
.ar-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.ar-pg { display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: #18181c; color: #e5e5ea; font: 700 12.5px "RB Inter", Inter, system-ui; cursor: pointer; text-align: left; }
.ar-pg .ar-ico { width: 32px; height: 32px; border-radius: 8px; }
.ar-pg .ar-ico svg { width: 27px; height: 27px; }
.ar-pg.on { border-color: #1f5bff; background: rgba(31,91,255,.1); color: #fff; }
.ar-lbl { display: block; font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.ar-lbl small { display: block; font-weight: 500; color: #9b9ba3; margin-top: 2px; }
.ar-stake { display: flex; align-items: center; gap: 6px; background: #0b0b0d; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 5px 5px 5px 14px; }
.ar-stake input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; font: 800 18px "RB Inter", Inter, system-ui; outline: none; }
.ar-stake button, .ar-quick button { border: 0; background: #1d1d22; color: #fff; font-weight: 800; border-radius: 9px; padding: 8px 12px; cursor: pointer; }
.ar-stake button:hover, .ar-quick button:hover { background: #2a2a31; }
.ar-quick { display: flex; gap: 6px; margin: 8px 0 14px; flex-wrap: wrap; }
.ar-chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: 14px; margin-bottom: 14px; cursor: pointer; }
.ar-chk input { margin-top: 3px; accent-color: #1f5bff; }
.ar-chk small { display: block; font-weight: 500; color: #9b9ba3; }
.ar-sum { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 6px 14px; padding: 12px 14px; border-radius: 12px; background: #0b0b0d; border: 1px solid rgba(255,255,255,.07); margin-bottom: 14px; font-size: 14px; }
.ar-sum span { color: #9b9ba3; }
.ar-sum b { text-align: right; }
.ar-btns { display: grid; gap: 8px; }
.ar-fine { color: #7d7d86; font-size: 12px; margin: 12px 0 0; }
.ar-jhead { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.ar-jhead .ar-ico { width: 54px; height: 54px; border-radius: 14px; }
.ar-jhead .ar-ico svg { width: 46px; height: 46px; }
.ar-jhead h2 { margin: 0; }

/* match page */
.ar-match { gap: 14px; }
.ar-mtop { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ar-mt { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.ar-mt b { font: 800 18px "RB Inter", Inter, system-ui; }
.ar-mt .ar-ico { width: 34px; height: 34px; border-radius: 9px; }
.ar-mt .ar-ico svg { width: 29px; height: 29px; }
.ar-pot { padding: 6px 12px; border-radius: 99px; background: rgba(31,91,255,.1); border: 1px solid rgba(31,91,255,.3); font-weight: 800; font-size: 13px; color: #1f5bff; }
.ar-mbtn { display: flex; gap: 8px; }
.ar-players { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.ar-pcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #0e0e10; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; min-width: 0; }
.ar-pcard.r { flex-direction: row-reverse; text-align: right; }
.ar-pcard.r .ar-pn { align-items: flex-end; }
.ar-pcard .ar-pn b { font-size: 15px; }
.ar-pcard.turn { border-color: #1f5bff; box-shadow: 0 0 0 3px rgba(31,91,255,.12), 0 0 30px rgba(31,91,255,.12); }
.ar-pcard.won { border-color: #ffd21f; box-shadow: 0 0 0 3px rgba(255,210,31,.15); }
.ar-you { font-style: normal; font-size: 10px; font-weight: 900; background: #1f5bff; color: #0b0b0d; padding: 2px 6px; border-radius: 6px; vertical-align: 2px; margin-left: 4px; }
.ar-score { margin-left: auto; font: 900 22px "RB Inter", Inter, system-ui; white-space: nowrap; }
.ar-pcard.r .ar-score { margin-left: 0; margin-right: auto; }
.ar-score small { font-size: 12px; color: #9b9ba3; font-weight: 700; }
.ar-mis { font-style: normal; color: #ff4f6a; font-size: 12px; margin-left: 6px; letter-spacing: 2px; }
.ar-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 70px; }
.ar-vsl { font: 900 18px "RB Inter", Inter, system-ui; color: #4b4b55; font-style: italic; }
.ar-clock { font: 900 20px "RB Inter", Inter, system-ui; color: #fff; font-variant-numeric: tabular-nums; min-height: 24px; }
.ar-clock.low { color: #ff4f6a; animation: arBlink 1s steps(2) infinite; }
@keyframes arBlink { 50% { opacity: .55; } }
.ar-stage { position: relative; min-height: 460px; border-radius: 20px; background: radial-gradient(120% 100% at 50% 0%, #17141f, #0a0a0c); border: 1px solid var(--line); padding: 20px; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; }
.ar-fair { background: #0e0e10; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-size: 13px; color: #c9c9cf; }
.ar-fair summary { cursor: pointer; font-weight: 800; color: #fff; }
.ar-fair code { word-break: break-all; font-size: 12px; color: #1f5bff; }
.ar-fair dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.ar-fair dt { color: #9b9ba3; }
.ar-fair dd { margin: 0; }
.ar-wait { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 30px 10px; max-width: 520px; }
.ar-wait h2 { font: 800 24px "RB Inter", Inter, system-ui; }
.ar-radar { position: relative; width: 200px; height: 200px; display: grid; place-items: center; margin-bottom: 8px; }
.ar-radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(31,91,255,.5); animation: arRing 2.4s linear infinite; }
.ar-radar span:nth-child(2) { animation-delay: -.8s; }
.ar-radar span:nth-child(3) { animation-delay: -1.6s; }
@keyframes arRing { from { transform: scale(.35); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.ar-rcore { width: 110px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.6)); animation: arFloat 3s ease-in-out infinite; }
.ar-rcore.big { width: 150px; }
.ar-rcore svg { width: 100%; height: auto; overflow: visible; }
.ar-link { display: flex; gap: 8px; width: 100%; }
.ar-link input { flex: 1; min-width: 0; background: #0b0b0d; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #fff; padding: 9px 12px; }
.ar-spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255,255,255,.1); border-top-color: #1f5bff; animation: arRot .8s linear infinite; }
@keyframes arRot { to { transform: rotate(360deg); } }
.ar-cd { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; font: 900 140px/1 "RB Inter", Inter, system-ui; color: #fff; text-shadow: 0 8px 0 #000, 0 0 60px rgba(31,91,255,.6); background: rgba(5,5,8,.55); pointer-events: none; }
.ar-cd.pop { animation: arPop .9s ease-out; }
.ar-cd.go { color: #1f5bff; animation: arPop .6s ease-out; }
@keyframes arPop { from { transform: scale(1.8); opacity: 0; } 30% { transform: scale(1); opacity: 1; } }
.ar-res { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(5,5,8,.72); backdrop-filter: blur(3px); animation: arFade .3s; }
@keyframes arFade { from { opacity: 0; } }
.ar-res.min { inset: auto 12px 12px auto; background: none; backdrop-filter: none; }
.ar-res.min .ar-rbox { padding: 12px 16px; transform: none; }
.ar-res.min .ar-rt { font-size: 22px; }
.ar-res.min .ar-why, .ar-res.min #arSee { display: none; }
.ar-rbox { text-align: center; padding: 30px 34px; border-radius: 22px; background: #121215; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: arPop .5s ease-out; position: relative; z-index: 2; }
.ar-rt { font: 900 48px/1 "RB Inter", Inter, system-ui; text-transform: uppercase; letter-spacing: -.02em; }
.ar-res.won .ar-rt { color: #1f5bff; text-shadow: 0 0 40px rgba(31,91,255,.5); }
.ar-res.lost .ar-rt { color: #ff4f6a; }
.ar-rs { font: 800 22px "RB Inter", Inter, system-ui; margin-top: 10px; }
.ar-pay { color: #1f5bff; }
.ar-why { color: #9b9ba3; margin: 8px 0 18px; text-transform: capitalize; }
.ar-rbox .ar-cta { justify-content: center; }
.ar-conf { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.ar .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 8px; }
.ar .dot.big { width: 20px; height: 20px; margin: 0; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.ar .dot.lime { background: #1f5bff; }
.ar .dot.pink { background: #ff4f9a; }

/* ── Four in a Row */
.g4 { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.g4-status { font-size: 16px; min-height: 24px; }
.g4-wrap { --s: min(66px, calc((100vw - 90px) / 7.6)); position: relative; padding-top: calc(var(--s) * 1.05); }
.g4-ghost { position: absolute; top: 0; left: 14px; right: 14px; display: grid; grid-template-columns: repeat(7, 1fr); }
.g4-ghost span { width: calc(var(--s) * .8); height: calc(var(--s) * .8); margin: auto; border-radius: 50%; opacity: 0; transition: opacity .12s; }
.g4-ghost span.on { opacity: .9; animation: arFloat 1s ease-in-out infinite; }
.g4-ghost .lime { background: radial-gradient(circle at 35% 30%, #95b1ff, #1f5bff 50%, #062b8e); }
.g4-ghost .pink { background: radial-gradient(circle at 35% 30%, #ffc2dc, #ff4f9a 50%, #9c1446); }
.g4-board { display: grid; grid-template-columns: repeat(7, var(--s)); grid-template-rows: repeat(6, var(--s)); padding: 14px; border-radius: 22px; background: linear-gradient(180deg, #5b7cff, #2836b8); box-shadow: inset 0 3px 0 rgba(255,255,255,.35), inset 0 -6px 0 rgba(0,0,0,.25), 0 22px 40px rgba(0,0,0,.5); position: relative; overflow: hidden; }
.g4-board.myturn { cursor: pointer; }
.g4-cell { position: relative; display: grid; place-items: center; }
.g4-cell.hc::before { content: ""; position: absolute; inset: 0 3px; background: rgba(255,255,255,.08); }
.g4-hole { width: 80%; height: 80%; border-radius: 50%; background: #0b0f3a; box-shadow: inset 0 5px 8px rgba(0,0,0,.6); }
.g4-disc { position: absolute; width: 80%; height: 80%; border-radius: 50%; animation: g4Drop calc(.18s + var(--r) * .06s) cubic-bezier(.4, 0, .9, .5); box-shadow: inset 0 -5px 0 rgba(0,0,0,.25), inset 0 3px 0 rgba(255,255,255,.4); }
.g4-disc::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); }
.g4-disc.lime { background: radial-gradient(circle at 35% 30%, #95b1ff, #1f5bff 50%, #062b8e); }
.g4-disc.pink { background: radial-gradient(circle at 35% 30%, #ffc2dc, #ff4f9a 50%, #9c1446); }
.g4-disc.win { animation: g4Win .7s ease-in-out infinite alternate; z-index: 2; }
@keyframes g4Drop { from { transform: translateY(calc(var(--r) * -100% - 120%)); } 80% { transform: translateY(4%); } }
@keyframes g4Win { to { transform: scale(1.12); box-shadow: 0 0 22px 6px rgba(255,255,255,.75); } }
.g4-feet { display: flex; justify-content: space-between; padding: 0 30px; }
.g4-feet i { width: 18px; height: 16px; background: #1c268a; border-radius: 0 0 6px 6px; }
.g4-keys { font-size: 12px; margin: 0; }

/* ── Word Duel */
.gw { display: flex; gap: 28px; align-items: flex-start; justify-content: center; flex-wrap: wrap; width: 100%; }
.gw-main { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gw-grid { display: grid; gap: 7px; }
.gw-row { display: grid; grid-template-columns: repeat(5, 58px); gap: 7px; }
.gw-row.shake { animation: arShake .4s; }
@keyframes arShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.gw-row span { height: 58px; display: grid; place-items: center; border: 2px solid #2a2a33; border-radius: 10px; font: 900 28px "RB Inter", Inter, system-ui; text-transform: uppercase; background: #0e0e12; }
.gw-row span.f { border-color: #5b5b68; animation: gwPop .1s; }
@keyframes gwPop { 50% { transform: scale(1.1); } }
.gw-row span.flip { animation: gwFlip .5s ease both; }
@keyframes gwFlip { 50% { transform: rotateX(90deg); } }
.gw-row span.c { background: #0934a9; border-color: #0934a9; color: #fff; }
.gw-row span.p { background: #e7a10f; border-color: #e7a10f; color: #fff; }
.gw-row span.x { background: #3a3a46; border-color: #3a3a46; color: #fff; }
.gw-grid.mini .gw-row { grid-template-columns: repeat(5, 26px); gap: 4px; }
.gw-grid.mini { gap: 4px; }
.gw-grid.mini .gw-row span { height: 26px; border-radius: 6px; font-size: 13px; border-width: 1.5px; }
.gw-side { background: #0e0e12; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.gw-side h4 { font-size: 14px; }
.gw-ans { font-size: 13px; color: #c9c9cf; text-align: center; }
.gw-ans b { color: #1f5bff; letter-spacing: .1em; }
.gw-kb { display: flex; flex-direction: column; gap: 7px; align-items: center; }
.gw-kb div { display: flex; gap: 6px; }
.gw-kb button { width: 40px; height: 52px; border: 0; border-radius: 8px; background: #2b2b35; color: #fff; font: 800 15px "RB Inter", Inter, system-ui; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.gw-kb button.wide { width: 64px; font-size: 12px; }
.gw-kb button.c { background: #0934a9; }
.gw-kb button.p { background: #e7a10f; }
.gw-kb button.x { background: #17171d; color: #6b6b76; }

/* ── Sudoku */
.gs { display: flex; gap: 26px; align-items: flex-start; justify-content: center; flex-wrap: wrap; width: 100%; }
.gs-board { --c: min(52px, calc((100vw - 70px) / 9.4)); display: grid; grid-template-columns: repeat(9, var(--c)); grid-template-rows: repeat(9, var(--c)); border: 3px solid #1f5bff; border-radius: 12px; overflow: hidden; background: #0d0d11; box-shadow: 0 20px 40px rgba(0,0,0,.45); }
.gs-c { border: 0; border-right: 1px solid #2a2a33; border-bottom: 1px solid #2a2a33; background: transparent; color: #1f5bff; font: 800 calc(var(--c) * .5) "RB Inter", Inter, system-ui; cursor: pointer; padding: 0; position: relative; transition: background .12s; }
.gs-c.c2, .gs-c.c5 { border-right: 2px solid #6b6b78; }
.gs-c.r2, .gs-c.r5 { border-bottom: 2px solid #6b6b78; }
.gs-c.c8 { border-right: 0; } .gs-c.r8 { border-bottom: 0; }
.gs-c.giv { color: #f5f5f3; }
.gs-c.peer { background: rgba(255,255,255,.045); }
.gs-c.same { background: rgba(31,91,255,.16); }
.gs-c.sel { background: rgba(31,91,255,.3); }
.gs-c.pend { color: #8b8b96; }
.gs-c.sol { color: #6b6b78; }
.gs-c.bad { background: rgba(255,79,106,.55) !important; animation: arShake .35s; }
.gs-n { position: absolute; inset: 2px; display: grid; grid-template-columns: repeat(3, 1fr); font: 700 calc(var(--c) * .2) "RB Inter", Inter, system-ui; color: #9b9ba3; }
.gs-n i { font-style: normal; display: grid; place-items: center; }
.gs-side { display: flex; flex-direction: column; gap: 14px; width: 220px; }
.gs-lives { display: flex; align-items: center; gap: 4px; font-size: 22px; color: #3a3a46; }
.gs-lives .on { color: #ff4f6a; }
.gs-lives small { font-size: 12px; color: #9b9ba3; margin-left: 6px; }
.gs-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gs-pad button { height: 58px; border: 0; border-radius: 12px; background: #1d1d24; color: #fff; font: 900 24px "RB Inter", Inter, system-ui; cursor: pointer; position: relative; }
.gs-pad button:hover { background: #2a2a33; }
.gs-pad button:disabled { opacity: .25; cursor: default; }
.gs-pad small { position: absolute; right: 7px; top: 5px; font-size: 10px; color: #9b9ba3; }
#gsN.on { background: rgba(31,91,255,.15); border-color: #1f5bff; color: #1f5bff; }
.gs-opp { background: #0e0e12; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 10px 12px; font-size: 13px; display: grid; gap: 6px; }
.gs-bar, .gc-bar { height: 8px; border-radius: 99px; background: #23232b; overflow: hidden; }
.gs-bar i, .gc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff4f9a, #ff8fc0); border-radius: inherit; transition: width .3s; }
.gs-opp small { color: #9b9ba3; }
.gs-tip { font-size: 12px; margin: 0; }

/* ── Type Race */
.gt2 { width: min(820px, 100%); display: flex; flex-direction: column; gap: 18px; }
.gt-track { display: grid; gap: 10px; background: #0e0e12; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 14px 16px; }
.gt-lane { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 12px; }
.gt-name { font-weight: 800; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-road { position: relative; height: 34px; border-radius: 8px; background: repeating-linear-gradient(90deg, #1b1b22 0 18px, #222229 18px 36px); border-bottom: 2px dashed #3a3a46; }
.gt-car { position: absolute; left: 0; top: 4px; width: 46px; transition: left .25s ease-out; filter: drop-shadow(0 0 8px var(--c)); }
.gt-car svg { width: 46px; height: 23px; display: block; }
.gt-flag { position: absolute; right: 4px; top: 5px; }
.gt-wpm { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.gt-box { position: relative; border-radius: 18px; background: #0e0e12; border: 2px solid #23232b; padding: 22px 24px; cursor: text; transition: border-color .2s; }
.gt-box.live { border-color: #1f5bff; box-shadow: 0 0 0 4px rgba(31,91,255,.08); }
.gt-text { font: 500 22px/1.65 "RB Inter", Inter, system-ui; color: #6b6b78; user-select: none; }
.gt-text .ok { color: #1f5bff; }
.gt-text .bad { background: rgba(255,79,106,.4); color: #fff; border-radius: 3px; }
.gt-text .cur { color: #fff; border-bottom: 3px solid #1f5bff; animation: arBlink 1s steps(2) infinite; }
.gt-box textarea { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; resize: none; cursor: text; }
.gt-hint { position: absolute; right: 14px; bottom: 8px; font-size: 12px; color: #9b9ba3; }
.gt-stats { display: flex; gap: 22px; color: #9b9ba3; font-size: 14px; justify-content: center; }
.gt-stats b { color: #fff; }

/* ── Color Find */
.gc { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.gc-top { display: grid; grid-template-columns: 1fr minmax(160px, 360px) 1fr; align-items: center; gap: 18px; width: min(720px, 100%); }
.gc-sc { display: flex; flex-direction: column; align-items: flex-start; }
.gc-sc.r { align-items: flex-end; }
.gc-sc b { font: 900 46px/1 "RB Inter", Inter, system-ui; color: var(--c); }
.gc-sc span { font-size: 13px; color: #9b9ba3; }
.gc-sc.bump b { animation: gcBump .35s; }
@keyframes gcBump { 40% { transform: scale(1.35); } }
.gc-bar { height: 10px; }
.gc-bar i { background: linear-gradient(90deg, #1f5bff, #ffd21f); transition: none; }
.gc-board { --sz: min(480px, calc(100vw - 80px)); width: var(--sz); height: var(--sz); display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 6px; padding: 8px; border-radius: 20px; background: #0e0e12; }
.gc-board.in { animation: gcIn .22s ease-out; }
@keyframes gcIn { from { transform: scale(.94); opacity: .4; } }
.gc-board.shake { animation: arShake .35s; }
.gc-board.lock { filter: grayscale(.85) brightness(.6); pointer-events: none; }
.gc-t { border: 0; border-radius: 10px; cursor: pointer; transition: transform .08s; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }
.gc-t:hover { transform: scale(.96); }
.gc-t.hit { transform: scale(.85); }
.gc-tip { font-size: 13px; margin: 0; }

/* ── Flap Dash */
.gf { display: flex; gap: 20px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.gf canvas { height: min(640px, 72vh); aspect-ratio: 360 / 640; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.6); touch-action: none; cursor: pointer; }
.gf-side { width: 200px; display: flex; flex-direction: column; gap: 10px; }
.gf-sc { display: grid; gap: 8px; }
.gf-p { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 10px 12px; border-radius: 12px; background: #0e0e12; border-left: 4px solid var(--c); }
.gf-p span { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-p b { font: 900 26px "RB Inter", Inter, system-ui; grid-row: span 2; }
.gf-p small { color: #9b9ba3; font-size: 11px; }

/* ── Block Stack */
.gb { display: flex; gap: 20px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.gb > canvas { height: min(560px, 70vh); border-radius: 14px; background: #08080b; box-shadow: 0 20px 50px rgba(0,0,0,.55); }
.gb-side { width: 190px; display: flex; flex-direction: column; gap: 10px; }
.gb-side canvas { width: 120px; height: 240px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); }
.gb-side h4 { font-size: 13px; color: #9b9ba3; margin-top: 8px; }
.gb-stat { display: grid; }
.gb-stat b { font: 900 30px/1 "RB Inter", Inter, system-ui; color: #1f5bff; font-variant-numeric: tabular-nums; }
.gb-stat span { font-size: 11px; color: #9b9ba3; text-transform: uppercase; letter-spacing: .1em; }
.gb-stat i { font-style: normal; font-size: 12px; color: #c9c9cf; }
.gb-keys { font-size: 12px; line-height: 1.6; }
.gb-touch { display: none; width: 100%; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.gb-touch button { height: 52px; border: 0; border-radius: 12px; background: #1d1d24; color: #fff; font-size: 18px; font-weight: 800; touch-action: none; }
@media (pointer: coarse), (max-width: 860px) { .gb-touch { display: grid; } }

/* ── Poker */
.gp { width: min(940px, 100%); display: flex; flex-direction: column; gap: 12px; }
.gp-table { padding: 16px; border-radius: 200px; background: linear-gradient(180deg, #3a2414, #1c1009); box-shadow: 0 30px 60px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.12); }
.gp-felt { position: relative; min-height: 470px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 0; border-radius: 190px; background: radial-gradient(70% 70% at 50% 45%, #14915e, #0a4f34); border: 3px solid rgba(31,91,255,.25); box-shadow: inset 0 0 60px rgba(0,0,0,.5); }
.gp-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 900 74px "RB Inter", Inter, system-ui; color: rgba(31,91,255,.07); pointer-events: none; }
.gp-seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 320px; z-index: 1; }
.gp-seat.top { flex-direction: column; }
.gp-seat.bottom { flex-direction: column-reverse; }
.gp-who { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 99px; background: rgba(8,8,10,.85); border: 2px solid transparent; }
.gp-who.turn { border-color: #1f5bff; }
.gp-who.win { border-color: #ffd21f; box-shadow: 0 0 24px rgba(255,210,31,.45); }
.gp-who div { display: flex; flex-direction: column; line-height: 1.15; }
.gp-who b { font-size: 13px; }
.gp-who span { font-weight: 800; color: #1f5bff; font-size: 14px; }
.gp-who .ar-av { width: 34px; height: 34px; }
.gp-d { position: absolute; right: -10px; top: -8px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #111; font: 900 11px/22px "RB Inter", Inter, system-ui; text-align: center; font-style: normal; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.gp-timer { position: absolute; left: 5px; top: 5px; width: 40px; height: 40px; transform: rotate(-90deg); }
.gp-timer circle { fill: none; stroke: #1f5bff; stroke-width: 3; stroke-dasharray: 113; stroke-dashoffset: 0; animation: gpT linear forwards; }
@keyframes gpT { to { stroke-dashoffset: 113; stroke: #ff4f6a; } }
.gp-hole { display: flex; gap: 6px; }
.gp-bet { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.45); }
.gp-chip { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, #1f5bff 40%, #fff 41% 55%, #1f5bff 56%); box-shadow: 0 1px 0 #00227f; }
.gp-hn { font-size: 12px; font-weight: 800; color: #ffd21f; text-transform: uppercase; letter-spacing: .06em; }
.gp-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gp-pot { display: flex; align-items: center; gap: 6px; font-weight: 900; padding: 5px 14px; border-radius: 99px; background: rgba(0,0,0,.4); }
.gp-board { display: flex; gap: 7px; }
.gp-msg { min-height: 20px; font-size: 14px; }
.pc { --w: 54px; width: var(--w); height: calc(var(--w) * 1.4); border-radius: 8px; background: linear-gradient(180deg, #fff, #ecebf3); color: #14121c; position: relative; display: block; box-shadow: 0 4px 10px rgba(0,0,0,.4); font-family: "RB Inter", Inter, system-ui; }
.pc.red { color: #e3203a; }
.pc b { position: absolute; left: 6px; top: 4px; font-size: 17px; font-weight: 900; }
.pc em { position: absolute; left: 7px; top: 22px; font-style: normal; font-size: 13px; }
.pc u { position: absolute; right: 6px; bottom: 2px; text-decoration: none; font-size: 30px; }
.pc.back { background: repeating-linear-gradient(45deg, #2a1360 0 6px, #351a7a 6px 12px); border: 3px solid #fff; }
.pc.back i { position: absolute; inset: 30% 22%; border-radius: 6px; background: #1f5bff; opacity: .9; clip-path: polygon(0 0, 34% 32%, 24% 15%, 57% 15%, 47% 34%, 100% 100%, 61% 33%, 81% 0); }
.pc.slot { background: rgba(0,0,0,.18); border: 2px dashed rgba(255,255,255,.12); box-shadow: none; }
.pc.hi { box-shadow: 0 0 0 3px #ffd21f, 0 0 20px rgba(255,210,31,.6); transform: translateY(-6px); }
.pc.flip { animation: pcFlip .45s ease both; }
@keyframes pcFlip { from { transform: rotateY(90deg) scale(.9); } }
.pc.deal { animation: pcDeal .4s ease both; }
@keyframes pcDeal { from { transform: translateY(-60px) scale(.6); opacity: 0; } }
.gp-bar { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; min-height: 54px; }
.gp-raise { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gp-pre { display: flex; gap: 4px; }
.gp-pre button { border: 0; border-radius: 8px; background: #1d1d24; color: #fff; font-weight: 800; font-size: 12px; padding: 8px 10px; cursor: pointer; }
.gp-raise input[type=range] { width: 160px; accent-color: #1f5bff; }
.gp-info { text-align: center; color: #9b9ba3; font-size: 13px; }

/* ── 8 Ball */
.g8 { width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.g8-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; width: min(1100px, 100%); }
.g8-grp { display: flex; flex-direction: column; gap: 6px; }
.g8-grp.r { align-items: flex-end; }
.g8-n { font-weight: 800; font-size: 14px; padding: 3px 10px; border-radius: 99px; border: 2px solid transparent; width: fit-content; }
.g8-n.turn { border-color: #1f5bff; color: #1f5bff; }
.g8-bs { display: flex; gap: 3px; flex-wrap: wrap; }
.g8-bs small { color: #9b9ba3; }
.g8-b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 900 9px "RB Inter", Inter, system-ui; color: #111; background: radial-gradient(circle, #fff 34%, var(--c) 36%); box-shadow: inset -3px -3px 5px rgba(0,0,0,.35); }
.g8-b[data-s] { background: radial-gradient(circle, #fff 34%, transparent 36%), linear-gradient(180deg, #f4f1ea 22%, var(--c) 22% 78%, #f4f1ea 78%); }
.g8-b.gone { opacity: .18; }
.g8-msg { text-align: center; font-size: 14px; max-width: 420px; }
.g8-row { display: flex; gap: 14px; align-items: center; justify-content: center; width: 100%; }
.g8-wrap { flex: 1; max-width: 1100px; }
.g8-wrap canvas { width: 100%; height: auto; display: block; touch-action: none; cursor: crosshair; }
.g8-ctl { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.g8-spin { --s: 0; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #d9d6cf 60%, #a9a59c); position: relative; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.g8-spin i { position: absolute; left: 50%; top: calc(50% - var(--s) * 18px); width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #ff4f6a; box-shadow: 0 0 0 2px #fff; }
.g8-pow { --p: 0; position: relative; width: 46px; height: 220px; border-radius: 14px; background: #0e0e12; border: 2px solid #2a2a33; overflow: hidden; cursor: ns-resize; touch-action: none; display: grid; place-items: end center; }
.g8-pow i { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--p) * 100%); background: linear-gradient(180deg, #1f5bff, #ffd21f 60%, #ff4f6a); }
.g8-pow span { position: relative; font: 900 10px "RB Inter", Inter, system-ui; color: #9b9ba3; writing-mode: vertical-rl; margin-bottom: 10px; letter-spacing: .2em; }
.g8-tip { font-size: 12px; margin: 0; }

@media (max-width: 860px) {
  .ar-hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .ar-vsart { display: none; }
  .ar-cols { grid-template-columns: 1fr; }
  .ar-gh { grid-template-columns: 120px 1fr; gap: 16px; }
  .ar-row { grid-template-columns: 36px 1fr auto auto; }
  .ar-row .ar-rp { display: none; }
  .ar-row:has(.ar-tag) { grid-template-columns: 36px 1fr auto auto; }
  .ar-row .ar-tag { display: none; }
  .ar-mtop { gap: 8px; }
  .ar-mt { order: 3; flex-basis: 100%; }
  .ar-mtop .ar-back { flex: 1; }
  .ar-mt b { font-size: 16px; }
  .ar-pot { font-size: 12px; padding: 4px 10px; }
  .gb > canvas { height: auto; width: 100%; max-width: 504px; }
  .gb-side { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
  .gb-side canvas { grid-row: span 3; width: 90px; height: 180px; }
  .gb-side .gb-keys { display: none; }
  .ar-players { grid-template-columns: 1fr 1fr; }
  .ar-mid { grid-column: span 2; order: -1; flex-direction: row; min-height: 0; }
  .ar-stage { padding: 12px; min-height: 380px; }
  .ar-pick { grid-template-columns: repeat(2, 1fr); }
  .pc { --w: 42px; } .gp-seat { width: 260px; }
  .g8-row { flex-direction: column; } .g8-ctl { flex-direction: row; } .g8-pow { width: 220px; height: 46px; place-items: center end; } .g8-pow i { top: 0; bottom: 0; left: 0; right: auto; height: auto; width: calc(var(--p) * 100%); background: linear-gradient(90deg, #1f5bff, #ffd21f 60%, #ff4f6a); } .g8-pow span { writing-mode: horizontal-tb; margin: 0 10px 0 0; }
  .gw-row { grid-template-columns: repeat(5, 48px); } .gw-row span { height: 48px; font-size: 22px; } .gw-kb button { width: 30px; height: 48px; } .gw-kb button.wide { width: 50px; }
  .gt-lane { grid-template-columns: 70px 1fr 56px; } .gt-text { font-size: 18px; }
}
