* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #07070F; color: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; overscroll-behavior: none; user-select: none; -webkit-user-select: none; }
#app { position: fixed; inset: 0; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.hidden { display: none !important; }
button, .btn { font: inherit; color: #fff; background: #16182e; border: 2px solid #2f3566; border-radius: 12px; padding: 10px 14px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
button, .btn { transition: transform .18s cubic-bezier(.34,1.8,.64,1), box-shadow .2s; }
button:hover, .btn:hover { transform: translateY(-2px) scale(1.03); }
button:active, .btn:active { transform: scale(.9); transition-duration: .06s; }
button:disabled { opacity: .5; cursor: default; }
button.big { font-size: 26px; font-weight: 900; padding: 14px 40px; background: linear-gradient(135deg, #38BDF8, #7C3AED 60%, #E8197A); border-color: #9be7ff; box-shadow: 0 0 24px #38bdf888; letter-spacing: 2px; }
button.icon { background: none; border: none; font-size: 22px; padding: 4px 8px; }
button.tiny { font-size: 11px; padding: 3px 7px; border-radius: 8px; border-width: 1px; background: #20244a; }

#hud { height: 52px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; background: #0B0B16; border-bottom: 1px solid #2f3566; }
.hudmid { text-align: center; line-height: 1.05; }
#lvl { font-size: 12px; opacity: .7; letter-spacing: 1px; }
#timer { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
#timer.low { color: #ff3b3b; animation: pulse .5s infinite; }
.hudright { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
#bucks { font-size: 13px; font-weight: 700; }
@keyframes pulse { 50% { transform: scale(1.15); } }

#cv { flex: 1; width: 100%; min-height: 0; touch-action: none; display: block; }
#hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: 62px; background: #000c; border: 1px solid #38BDF8; border-radius: 999px; padding: 6px 14px; white-space: nowrap; z-index: 2; text-align: center; font-weight: 800; pointer-events: none; text-shadow: 0 2px 6px #000; font-size: 15px; }

#banner { height: 50px; flex: none; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, #1c1c1c 0 10px, #222 10px 20px); border-top: 1px dashed #666; font-size: 13px; cursor: pointer; text-align: center; padding: 0 8px; }
#banner b { color: #ffcc33; }

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; z-index: 5; }
#title { background: radial-gradient(circle at 50% 30%, #1E1F3B, #07070F 70%); }
.logo { position: relative; }
.logo h1 { margin: 0; font-size: 52px; line-height: .9; font-weight: 1000; font-style: italic; background: linear-gradient(#ffffff, #67E8F9 45%, #A855F7); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 12px rgba(56,189,248,.6)); }
.applogo { width: 116px; height: 116px; display: block; margin: 0 auto 14px; filter: drop-shadow(0 0 18px rgba(56,189,248,.45)); animation: floaty 2.4s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
.flame { font-size: 60px; display: block; animation: flick .15s infinite alternate; }
@keyframes flick { to { transform: scale(1.06) rotate(-3deg); } }
.withads { display: inline-block; margin-top: 6px; background: #ffcc00; color: #000; padding: 2px 10px; transform: rotate(-4deg); font-weight: 700; font-size: 18px; border-radius: 4px; }
.sub { opacity: .8; font-size: 14px; margin: 0; }
.row { display: flex; gap: 10px; }
.row > * { min-width: 150px; }
.stats { font-size: 12px; opacity: .6; }

#clear { background: #07070Fee; }
#clear h2 { font-size: 34px; margin: 0; color: #ffcc33; }
#clearBody { font-size: 16px; line-height: 1.6; }
#clearBody .newitem { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: #1d1010; }

#ad { background: #000; z-index: 20; }
.adtag { position: absolute; top: 12px; left: 12px; font-size: 12px; background: #ffcc00; color: #000; padding: 2px 8px; border-radius: 4px; font-weight: 700; max-width: 80%; text-align: left; }
.adcard { width: 100%; max-width: 380px; border-radius: 18px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; border: 3px solid; animation: adin .35s ease-out; }
@keyframes adin { from { transform: scale(.6) rotate(-6deg); opacity: 0; } }
.adlogo { font-size: 84px; line-height: 1; }
.adlogo img { max-width: 220px; max-height: 120px; }
.adname { font-size: 28px; font-weight: 1000; }
.adtagline { font-size: 16px; opacity: .9; }
.adcta { margin-top: 6px; padding: 10px 22px; border-radius: 999px; font-weight: 800; color: #000; text-decoration: none; }
.adjoke { font-size: 13px; opacity: .7; max-width: 340px; }
#skipBtn { min-width: 140px; }
.adfoot { position: absolute; bottom: 14px; font-size: 12px; opacity: .6; }

#modal { background: #000c; z-index: 15; padding: 12px; }
.modalbox { background: #170c0c; border: 2px solid #5a2a20; border-radius: 16px; width: 100%; max-height: 92%; display: flex; flex-direction: column; overflow: hidden; }
.modalhead { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #3a1a14; }
.modalhead h2 { margin: 0; font-size: 20px; }
#modalBody { overflow-y: auto; padding: 12px; text-align: left; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card { background: #221212; border: 2px solid #333; border-radius: 12px; padding: 8px 6px; text-align: center; font-size: 11px; min-height: 104px; }
.card .em { font-size: 34px; }
.card .nm { font-weight: 700; font-size: 12px; margin: 2px 0; }
.card .fx { color: #8fd; font-size: 10px; }
.card.locked { opacity: .35; }
.r-common { border-color: #777; } .r-rare { border-color: #3fa9ff; } .r-epic { border-color: #b46cff; } .r-legendary { border-color: #ffcc33; box-shadow: 0 0 10px #ffcc3366; }
.ach { display: flex; gap: 10px; align-items: center; padding: 8px; border-bottom: 1px solid #2a1515; }
.ach .em { font-size: 28px; width: 36px; text-align: center; }
.ach.locked { opacity: .4; }
.ach small { opacity: .7; display: block; }
.lootbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px; background: #2a1010; border-radius: 12px; }

#toasts { position: absolute; top: 60px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; z-index: 30; }
.toast { background: #ffcc33; color: #000; font-weight: 800; padding: 8px 14px; border-radius: 12px; box-shadow: 0 4px 14px #0008; animation: tin 3.2s forwards; font-size: 14px; }
.toast small { display: block; font-weight: 500; }
@keyframes tin { 0% { transform: translateY(-20px); opacity: 0; } 8%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }
.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.advid { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: #000; }
.advid video { width: 100%; display: block; max-height: 42vh; }
.advid #unmute { position: absolute; right: 8px; bottom: 8px; }
.bonus { width: 100%; max-width: 380px; }
.bonusbar { height: 10px; background: #222; border-radius: 99px; overflow: hidden; border: 1px solid #444; }
#bonusFill { height: 100%; width: 0; background: linear-gradient(90deg, #ffcc33, #ff5a1a); transition: width .1s linear; }
#bonusText { font-size: 14px; margin-top: 6px; }
#bonusText.got { color: #ffcc33; font-weight: 900; }
#skipBtn.go { background: linear-gradient(#ffcc33, #ff7a1a); color: #000; font-weight: 900; border-color: #ffe08a; }
#mult { background: #ffcc33; color: #000; font-weight: 900; padding: 1px 6px; border-radius: 6px; font-size: 12px; animation: pulse 1s infinite; }
/* polish */
body { background: radial-gradient(circle at 50% 0%, #1E1F3B, #050509 70%); }
#hud { background: linear-gradient(#1a1c36, #0B0B16); border-bottom: 1px solid #38bdf844; box-shadow: 0 2px 12px #0008; }
#timer { background: #000a; border: 1px solid #ff7a1a66; border-radius: 10px; padding: 0 10px; min-width: 76px; }
#bucks { background: #000a; border-radius: 999px; padding: 2px 8px; border: 1px solid #ffcc3344; }
#banner { background: linear-gradient(90deg, #1a1208, #2a1a08, #1a1208); border-top: 1px solid #ffcc3355; }

/* phones with notches / home bars */
#app { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
html, body { -webkit-touch-callout: none; }

/* ---- juice ---- */
#playBtn { animation: playpulse 1.6s ease-in-out infinite; }
@keyframes playpulse { 0%,100% { transform: scale(1); box-shadow: 0 0 24px #38bdf888; } 50% { transform: scale(1.07) rotate(-1.5deg); box-shadow: 0 0 40px #a855f7cc; } }
#playBtn:active { animation: none; transform: scale(.9); }
.screen:not(.hidden) > * { animation: popin .45s cubic-bezier(.34,1.7,.64,1) both; }
.screen:not(.hidden) > *:nth-child(2) { animation-delay: .06s; } .screen:not(.hidden) > *:nth-child(3) { animation-delay: .12s; }
.screen:not(.hidden) > *:nth-child(4) { animation-delay: .18s; } .screen:not(.hidden) > *:nth-child(5) { animation-delay: .24s; } .screen:not(.hidden) > *:nth-child(6) { animation-delay: .3s; }
@keyframes popin { from { opacity: 0; transform: translateY(18px) scale(.85); } }
.logo h1 { animation: wobble 3.2s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: rotate(0) } 25% { transform: rotate(-2deg) scale(1.02) } 75% { transform: rotate(2deg) scale(1.02) } }
.withads { animation: tagbob 2s ease-in-out infinite; }
@keyframes tagbob { 0%,100% { transform: rotate(-4deg) } 50% { transform: rotate(-1deg) translateY(-3px) } }
.bump { display: inline-block; animation: bump .35s cubic-bezier(.34,1.8,.64,1); }
@keyframes bump { 40% { transform: scale(1.45); color: #FFC21A; } }
#hint:not(.hidden) { animation: hintpop .4s cubic-bezier(.34,1.8,.64,1); }
@keyframes hintpop { from { transform: translateX(-50%) scale(.6); opacity: 0; } }
#clear h2 { animation: cleartitle .7s cubic-bezier(.34,1.8,.64,1) both, wobble 2.4s 0.7s ease-in-out infinite; }
@keyframes cleartitle { from { transform: scale(.3) rotate(-12deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* coins this round -> doubled */
.coinx { display: flex; align-items: center; gap: 14px; font-size: 30px; font-weight: 1000; font-variant-numeric: tabular-nums; }
.coinx .cnow { color: #fff; transition: opacity .3s, transform .3s; }
.coinx .carrow { color: #67E8F9; animation: nudge .7s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(7px); } }
.coinx .cx2 { color: #FFC21A; text-shadow: 0 0 16px #ffc21a99; opacity: .55; transform: scale(.9); transition: opacity .2s, transform .2s; }
.coinx.got .cnow { opacity: .4; text-decoration: line-through; transform: scale(.85); }
.coinx.got .cx2 { opacity: 1; animation: cashpop .6s cubic-bezier(.34,1.8,.64,1) both, wobble 1.6s .6s ease-in-out infinite; }
@keyframes cashpop { from { transform: scale(.6); } 60% { transform: scale(1.35); } to { transform: scale(1.15); } }
.gc { display: inline-block; width: .85em; height: .85em; margin-right: .18em; vertical-align: -.08em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c2, #ffd23a 45%, #c98a00); box-shadow: inset 0 0 0 .08em #b07800, 0 0 .3em #ffc21a66; }

/* ---- title: progression ---- */
#title { gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 380px; }
.row3 button { padding: 9px 4px; font-size: 14px; position: relative; }
.tinyrow { display: flex; gap: 8px; }
button.dot::after { content: ''; position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 8px #ff3b5c; animation: pulse 1s infinite; }
.rankcard { width: 100%; max-width: 380px; background: #11132a; border: 1px solid #2f3566; border-radius: 14px; padding: 8px 12px; text-align: left; }
.rankcard .rk { display: flex; justify-content: space-between; align-items: baseline; }
.rankcard .rk b { font-size: 16px; background: linear-gradient(90deg, #67E8F9, #A855F7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rankcard .rk span { font-size: 12px; opacity: .8; } .rankcard em { color: #FFC21A; font-style: normal; font-weight: 800; }
.rankcard small { font-size: 11px; opacity: .6; }
.xpbar { height: 8px; background: #05050c; border-radius: 99px; overflow: hidden; margin: 5px 0 3px; border: 1px solid #2f3566; }
.xpbar > div { height: 100%; background: linear-gradient(90deg, #38BDF8, #A855F7); border-radius: 99px; transition: width .8s cubic-bezier(.34,1.4,.64,1); }
/* clear screen */
.stars { display: flex; justify-content: center; gap: 14px; margin-bottom: 8px; }
.star { display: flex; flex-direction: column; align-items: center; opacity: .25; animation: starpop .5s cubic-bezier(.34,1.9,.64,1) both; }
.star b { font-size: 46px; line-height: 1; color: #555; }
.star.on { opacity: 1; } .star.on b { color: #FFC21A; text-shadow: 0 0 18px #ffc21acc; }
.star small { font-size: 10px; opacity: .8; }
@keyframes starpop { from { transform: scale(0) rotate(-90deg); } }
.rankup { margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: linear-gradient(90deg, #38bdf833, #a855f733); font-size: 14px; animation: popin .5s .9s cubic-bezier(.34,1.7,.64,1) both; }
#clearBody .rankcard { margin: 6px auto; }
/* daily / missions / trails */
.dsub { text-align: center; opacity: .85; margin: 0 0 10px; font-size: 14px; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.day { background: #11132a; border: 2px solid #2f3566; border-radius: 12px; padding: 8px 4px; text-align: center; font-size: 13px; font-weight: 800; min-height: 64px; }
.day small { display: block; opacity: .6; font-weight: 500; font-size: 11px; margin-bottom: 3px; }
.day.big { grid-column: span 2; background: linear-gradient(135deg, #2a1f4a, #3a1640); }
.day.got { opacity: .45; position: relative; } .day.got::after { content: '✓'; position: absolute; top: 2px; right: 6px; color: #22C55E; }
.day.now { border-color: #FFC21A; box-shadow: 0 0 16px #ffc21a88; animation: pulse 1.2s infinite; }
.mis { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #11132a; margin-bottom: 8px; border: 1px solid #2f3566; }
.mis .mt { flex: 1; } .mis small { opacity: .7; font-size: 11px; }
.mis.done { border-color: #22C55E; box-shadow: 0 0 10px #22c55e55; } .mis.claimed { opacity: .5; }
.mis.done button { background: linear-gradient(#4ade80, #16a34a); color: #04210f; font-weight: 900; border-color: #9dffb4; animation: pulse 1s infinite; }
.trails { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.trail { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.trail .sw { width: 100%; height: 12px; border-radius: 99px; }
.trail small { opacity: .7; font-size: 11px; } .trail.sel { border-color: #67E8F9; box-shadow: 0 0 12px #67e8f988; }
/* modal re-theme */
.modalbox { background: #0d0f22; border-color: #2f3566; } .modalhead { border-bottom-color: #2f3566; }
.card { background: #13152c; } .lootbar { background: #1a1c3a; } .ach { border-bottom-color: #1d2040; }
/* ---- loot spin ---- */
#spin { background: radial-gradient(circle at 50% 40%, #241a4a, #07070F 70%); overflow: hidden; z-index: 16; }
.spintitle { margin: 0; font-size: 26px; font-style: italic; letter-spacing: 1px; }
.spinstage { position: relative; width: 100%; height: 150px; display: flex; align-items: center; justify-content: center; }
.spinbox { font-size: 96px; filter: drop-shadow(0 0 24px #a855f7aa); }
.spinbox.idle { animation: floaty 1.8s ease-in-out infinite; }
.spinbox.shaking { animation: rattle 1.05s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes rattle { 0% { transform: rotate(0) scale(1); } 20% { transform: rotate(-6deg) scale(1.03); } 30% { transform: rotate(6deg); } 45% { transform: rotate(-9deg) scale(1.08); }
  55% { transform: rotate(9deg); } 65% { transform: rotate(-12deg) scale(1.14); } 72% { transform: rotate(12deg); } 79% { transform: rotate(-14deg) scale(1.2); } 86% { transform: rotate(14deg); }
  93% { transform: rotate(-8deg) scale(1.35); filter: drop-shadow(0 0 40px #fff) brightness(1.6); } 100% { transform: scale(1.7); opacity: 0; filter: drop-shadow(0 0 60px #fff) brightness(3); } }
.reelwrap { position: absolute; inset: 20px -12px; overflow: hidden; border-top: 2px solid #2f3566; border-bottom: 2px solid #2f3566; background: #07070F;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.reel { display: flex; gap: 8px; height: 100%; align-items: center; will-change: transform; }
.tile { flex: none; width: 88px; height: 88px; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 2px solid; position: relative; transition: transform .3s cubic-bezier(.34,1.8,.64,1); }
.tile .em { font-size: 44px; }
.tile.r-common { background: linear-gradient(#2a2c3a, #1a1b24); } .tile.r-rare { background: linear-gradient(#123a6a, #0a1d38); }
.tile.r-epic { background: linear-gradient(#45206e, #220f3a); } .tile.r-legendary { background: linear-gradient(#6a4a08, #2e1f04); box-shadow: inset 0 0 18px #ffcc3388; }
.tile::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 5px; height: 4px; border-radius: 4px; background: currentColor; }
.tile.r-common { color: #aaa; } .tile.r-rare { color: #3fa9ff; } .tile.r-epic { color: #b46cff; } .tile.r-legendary { color: #ffcc33; }
.tile.win { transform: scale(1.12); box-shadow: 0 0 24px currentColor; z-index: 2; }
.tile.tease { animation: tease .6s ease-in-out 2; }
@keyframes tease { 25% { transform: translateX(-5px) rotate(-4deg); } 75% { transform: translateX(5px) rotate(4deg); } }
.reelmark { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; background: #FFC21A; box-shadow: 0 0 12px #FFC21A; border-radius: 2px; }
.reelmark::before, .reelmark::after { content: ''; position: absolute; left: -8px; border: 10px solid transparent; }
.reelmark::before { top: -2px; border-top-color: #FFC21A; } .reelmark::after { bottom: -2px; border-bottom-color: #FFC21A; }
.spinmsg { min-height: 30px; font-size: 24px; font-weight: 1000; font-style: italic; color: #FFC21A; text-shadow: 0 0 16px #ffc21a88; }
.reveal { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 340px; }
.reveal.show { animation: popin .6s cubic-bezier(.34,1.9,.64,1) both; }
.reveal .rays { position: absolute; top: 36px; left: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; z-index: -1; opacity: .5;
  background: repeating-conic-gradient(currentColor 0 10deg, transparent 10deg 30deg); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%); animation: spinrays 8s linear infinite; }
@keyframes spinrays { to { transform: rotate(360deg); } }
.reveal.r-common { color: #aaa; } .reveal.r-rare { color: #3fa9ff; } .reveal.r-epic { color: #b46cff; } .reveal.r-legendary { color: #ffcc33; }
.reveal .rem { font-size: 76px; line-height: 1.1; } .reveal .rlab { font-weight: 1000; letter-spacing: 2px; font-size: 13px; }
.reveal .rnm { color: #fff; font-size: 22px; font-weight: 900; } .reveal .rd { color: #ddd; font-size: 14px; } .reveal .rfx { color: #8fd; font-size: 13px; } .reveal small { color: #999; }
.spinbtns { display: flex; flex-direction: column; align-items: center; gap: 8px; } .spinbtns.hidden { display: none; }
.spininfo { font-size: 12px; opacity: .85; text-align: center; line-height: 1.5; }
.conf { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; z-index: 40; pointer-events: none; animation: conf 2s ease-in forwards; }
@keyframes conf { to { transform: translate(var(--dx), 105vh) rotate(720deg); } }
#rankCard { width: 100%; max-width: 380px; }
.rankcard .rk { gap: 10px; }
.tinyrow .tiny, .tinyrow .btn { font-size: 12px; padding: 6px 10px; border-radius: 10px; border-width: 1px; }
#spin { justify-content: flex-start; padding-top: max(8vh, 40px); }
#modal { background: #07070Ff2; }
#timer.warn { color: #ff8a5c; border-color: #ff5a3c88; animation: pulse 1s infinite; }

/* ---- Ad Blocker (roguelike) ---- */
#rogue { position: absolute; left: 0; right: 0; top: 0; bottom: calc(50px + env(safe-area-inset-bottom)); z-index: 8; background: #05050c; }
#rcv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
.rhud { position: absolute; top: 0; left: 0; right: 0; height: 26px; display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 0; pointer-events: none; z-index: 2; }
.rhud button { pointer-events: auto; padding: 0 6px; font-size: 20px; }
.rroom { font-size: 13px; opacity: .85; } .rroom b { color: #67E8F9; font-size: 15px; }
.rcoins { font-weight: 900; font-size: 14px; background: #000a; border-radius: 99px; padding: 2px 9px; border: 1px solid #ffcc3344; }
.rhint { position: absolute; left: 50%; bottom: 118px; transform: translateX(-50%); background: #000c; border: 1px solid #38BDF8; border-radius: 999px; padding: 6px 14px; font-weight: 800; white-space: nowrap; pointer-events: none; animation: hintpop .4s cubic-bezier(.34,1.8,.64,1); z-index: 3; }
.rover { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; text-align: center; background: #05050cd9; backdrop-filter: blur(3px); }
.rover h2 { margin: 0; font-size: 30px; font-style: italic; background: linear-gradient(#fff, #67E8F9 50%, #A855F7); -webkit-background-clip: text; background-clip: text; color: transparent; animation: cleartitle .6s cubic-bezier(.34,1.8,.64,1) both; }
.rover p { margin: 0; opacity: .85; }
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 420px; margin-top: 6px; }
.pcard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 16px; background: linear-gradient(#1a1c3c, #10112a); border: 2px solid #3a4180; position: relative; animation: popin .5s cubic-bezier(.34,1.8,.64,1) both; }
.pcard:hover { border-color: #67E8F9; box-shadow: 0 0 18px #67e8f966; }
.pcard .pem { font-size: 38px; } .pcard b { font-size: 14px; } .pcard small { font-size: 11px; opacity: .8; line-height: 1.25; }
.plv { position: absolute; top: -8px; right: -6px; font-size: 10px; font-weight: 900; background: #A855F7; padding: 2px 6px; border-radius: 99px; } .plv.new { background: #22C55E; color: #04210f; }
.rstats { display: flex; gap: 18px; } .rstats div { display: flex; flex-direction: column; } .rstats b { font-size: 24px; } .rstats small { opacity: .7; font-size: 11px; }
.rpicks { font-size: 24px; letter-spacing: 3px; } .rearn { font-size: 20px; }
/* Ad Blocker v2 */
.card .rfxp { color: #67E8F9; font-size: 10px; margin-top: 3px; font-weight: 700; }
.chars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; max-width: 380px; }
.char { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: linear-gradient(#1a1c3c, #10112a); border: 2px solid #3a4180; }
.char.sel { border-color: #67E8F9; box-shadow: 0 0 16px #67e8f988; } .char .cem { font-size: 30px; line-height: 1.1; } .char small { font-size: 11px; opacity: .8; line-height: 1.25; } .char .hearts { font-size: 11px; }
.passbox { width: 100%; max-width: 380px; background: #11132a; border: 1px solid #2f3566; border-radius: 12px; padding: 8px 10px; text-align: left; font-size: 13px; }
.passlist { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; max-height: 92px; overflow-y: auto; } .passlist span { font-size: 11px; opacity: .9; }
.pcard { border-color: var(--rc); } .pcard.r-epic { box-shadow: 0 0 18px #b46cff66; background: linear-gradient(#2a1a4a, #140c2a); } .pcard.r-rare { background: linear-gradient(#142a4a, #0c1830); }
.prar { position: absolute; top: 6px; left: 8px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: var(--rc); }
.rintro { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 3; pointer-events: none; animation: introin .5s cubic-bezier(.34,1.7,.64,1) both; width: max-content; max-width: 92%; }
@keyframes introin { from { opacity: 0; transform: translate(-50%, -20px) scale(.85); } }
.rintro .ic { display: flex; align-items: center; gap: 10px; background: #0b0c1ef2; border: 2px solid #ff5a6e; border-radius: 14px; padding: 6px 12px 6px 6px; box-shadow: 0 6px 20px #000a; }
.rintro .ic small { display: block; color: #ff5a6e; font-weight: 900; font-size: 10px; letter-spacing: 1px; } .rintro .ic b { font-size: 16px; } .rintro .ic span { display: block; font-size: 12px; opacity: .85; }
.rintro .ic.boss { flex-direction: column; align-items: center; gap: 2px; padding: 10px 16px; border-color: #FFC21A; } .rintro .ic.boss small { color: #FFC21A; }
/* Ad Blocker v3 */
.rhud { height: 30px; }
.rmap { display: flex; align-items: center; gap: 0; flex: 1; justify-content: center; padding: 0 6px; max-width: 72%; }
.rmap .node { width: 9px; height: 9px; border-radius: 50%; background: #1d2044; border: 1.5px solid #3a4180; flex: none; position: relative; font-style: normal; font-size: 9px; line-height: 9px; text-align: center; }
.rmap .node.boss { width: 15px; height: 15px; line-height: 13px; border-radius: 5px; border-color: var(--wc); }
.rmap .node.done { background: var(--wc); border-color: var(--wc); }
.rmap .node.now { background: #fff; border-color: #fff; box-shadow: 0 0 10px #fff; animation: pulse 1s infinite; }
.rmap .node.best::after { content: '🏁'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-size: 10px; }
.rmap .link { height: 2px; flex: 1; min-width: 4px; background: #2a2f5a; font-style: normal; } .rmap .link.done { background: #67E8F9; } .rmap .link.gap { min-width: 9px; }
.rintro .ic.world { flex-direction: column; align-items: center; gap: 2px; padding: 12px 22px; border-color: var(--wc); box-shadow: 0 0 30px color-mix(in srgb, var(--wc) 40%, transparent); }
.rintro .ic.world small { color: var(--wc); letter-spacing: 3px; } .rintro .ic.world b { font-size: 24px; font-style: italic; }
.rintro .ic .warn { color: #ffcc00; font-weight: 800; margin-top: 4px; }
.rdomain { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; pointer-events: none; text-align: center; }
.rdomain.intro, .rdomain.roll { background: radial-gradient(circle, #3a0a5acc, #05000ce6 70%); }
.rdomain .dx1 { font-size: 34px; font-weight: 1000; font-style: italic; letter-spacing: 2px; color: #fff; text-shadow: -3px 0 #ff2a6a, 3px 0 #2ad4ff, 0 0 30px #a855f7; animation: dxin .7s cubic-bezier(.2,1.6,.4,1) both, glitch .25s steps(2) infinite .7s; }
.rdomain .dx2 { font-size: 22px; font-weight: 900; color: #FFC21A; animation: popin .5s .35s cubic-bezier(.34,1.8,.64,1) both; }
.rdomain .dx3 { font-size: 14px; opacity: .85; animation: popin .5s .6s both; }
.rdomain.win .dx1 { text-shadow: -3px 0 #22C55E, 3px 0 #FFC21A, 0 0 30px #22C55E; }
@keyframes dxin { from { transform: scale(3) rotate(-8deg); opacity: 0; filter: blur(8px); } }
@keyframes glitch { 50% { transform: translateX(2px) skewX(-4deg); } }
.die { width: 120px; height: 120px; border-radius: 26px; background: linear-gradient(#fff, #d8dcf0); color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 10px 40px #000c, 0 0 0 4px #a855f7; animation: dieroll .12s infinite alternate; }
.die span { font-size: 54px; line-height: 1; } .die b { font-size: 22px; }
.die.landed { animation: dieland .6s cubic-bezier(.34,1.9,.64,1); }
.die.d5, .die.d6 { box-shadow: 0 10px 40px #000c, 0 0 0 4px #ff2a3c, 0 0 40px #ff2a3c; }
.die.d1, .die.d2 { box-shadow: 0 10px 40px #000c, 0 0 0 4px #22C55E, 0 0 30px #22C55E; }
@keyframes dieroll { from { transform: rotate(-8deg) scale(.96); } to { transform: rotate(8deg) scale(1.04); } }
@keyframes dieland { 0% { transform: scale(1.6); } 100% { transform: scale(1); } }
.dxlab { font-size: 26px; font-weight: 1000; color: #FFC21A; min-height: 32px; text-shadow: 0 0 20px #ffc21a88; }
.rdomain.hud { justify-content: flex-start; padding-top: 54px; }
.dhud { background: #0b0c1ef2; border: 2px solid #a855f7; border-radius: 14px; padding: 6px 12px; min-width: 260px; box-shadow: 0 0 24px #a855f766; }
.dhud b { font-size: 13px; } .dhud small { font-size: 10px; opacity: .8; }
.dbar { height: 8px; background: #000; border-radius: 99px; overflow: hidden; margin: 4px 0; } .dbar div { height: 100%; width: 100%; background: linear-gradient(90deg, #22C55E, #FFC21A); transition: width .1s linear; } .dbar div.low { background: #ff3b5c; }
.rstats { gap: 14px; }
/* Ad Blocker v4 */
#rEnd { justify-content: flex-start; padding-top: 44px; overflow-y: auto; }
.chaps { display: flex; gap: 6px; width: 100%; max-width: 420px; overflow-x: auto; padding-bottom: 4px; }
.chap { flex: 1 0 74px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 7px 8px; border-radius: 12px; background: #11132a; border: 2px solid #2f3566; text-align: left; }
.chap small { font-size: 9px; color: var(--wc); font-weight: 900; letter-spacing: 1px; } .chap b { font-size: 11px; line-height: 1.15; min-height: 26px; } .chap em { font-size: 9px; opacity: .7; font-style: normal; }
.chap.sel { border-color: var(--wc); box-shadow: 0 0 14px color-mix(in srgb, var(--wc) 50%, transparent); } .chap.done em { color: #4ade80; opacity: 1; }
.cbar { width: 100%; height: 4px; background: #000; border-radius: 9px; overflow: hidden; } .cbar i { display: block; height: 100%; background: var(--wc); }
.chars { grid-template-columns: repeat(3, 1fr) !important; max-width: 420px !important; }
.char { padding: 8px 4px !important; } .char .cem { font-size: 26px !important; } .char b { font-size: 12px; } .char small { font-size: 10px !important; }
.selrow { display: flex; gap: 10px; align-items: center; font-size: 12px; opacity: .9; }
.tals { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 400px; }
.tal { display: flex; align-items: center; gap: 10px; background: #11132a; border: 1px solid #2f3566; border-radius: 12px; padding: 8px 10px; text-align: left; }
.tal .tem { font-size: 24px; } .tal .tt { flex: 1; } .tal .tt span { display: block; font-size: 12px; opacity: .85; } .tal .tt small { opacity: .6; } .tmax { color: #FFC21A; font-weight: 900; font-size: 12px; }
.unlock { background: linear-gradient(90deg, #22c55e33, #38bdf833); border: 1px solid #22C55E; border-radius: 12px; padding: 8px 12px; font-weight: 800; animation: popin .5s .4s both; }
.pdelta { font-size: 11px; color: #9dffb4; font-weight: 800; } .pcard small b { color: #fff; }
.rmap .node.elite { border-color: #b46cff; font-size: 7px; color: #b46cff; } .chlab { font-size: 9px; font-weight: 900; margin-right: 5px; opacity: .8; }
/* loot v2: x10 pulls */
button.big.ten { font-size: 17px; padding: 10px 18px; background: linear-gradient(135deg, #FFC21A, #ff7a1a 55%, #E8197A); border-color: #ffe08a; box-shadow: 0 0 24px #ffc21a88; }
button.big.ten small { display: block; font-size: 10px; font-weight: 700; opacity: .9; letter-spacing: 0; }
.spinbox.gold { filter: drop-shadow(0 0 30px #ffc21a) drop-shadow(0 0 60px #ff7a1a); }
.reveal.multi { width: 100%; max-width: 420px; }
.mgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 100%; }
.mcard { position: relative; aspect-ratio: 3/4; perspective: 600px; animation: dealin .4s cubic-bezier(.34,1.7,.64,1) both; }
@keyframes dealin { from { transform: translateY(-40px) scale(.5) rotate(-10deg); opacity: 0; } }
.mcard .mback, .mcard .mfront { position: absolute; inset: 0; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: hidden; transition: transform .45s cubic-bezier(.34,1.5,.64,1); border: 2px solid; }
.mcard .mback { background: linear-gradient(135deg, #2a1f5a, #120c2c); border-color: #4a3a8a; font-size: 26px; font-weight: 1000; color: #a855f7; }
.mcard .mfront { transform: rotateY(180deg); background: #11132a; padding: 3px; text-align: center; }
.mcard.flip .mback { transform: rotateY(-180deg); } .mcard.flip .mfront { transform: rotateY(0); }
.mcard.r-common .mfront { border-color: #888; } .mcard.r-rare .mfront { border-color: #3fa9ff; background: linear-gradient(#123a6a, #0a1d38); }
.mcard.r-epic .mfront { border-color: #b46cff; background: linear-gradient(#45206e, #220f3a); box-shadow: 0 0 16px #b46cff; } .mcard.r-legendary .mfront { border-color: #ffcc33; background: linear-gradient(#6a4a08, #2e1f04); box-shadow: 0 0 22px #ffcc33; }
.mcard.tease .mback { animation: shake .3s 2; box-shadow: 0 0 24px #ffcc33; border-color: #ffcc33; }
.mcard .mem { font-size: 26px; line-height: 1.1; } .mcard b { font-size: 8.5px; line-height: 1.1; } .mtag { font-size: 8px; font-weight: 900; color: #9dffb4; margin-top: 2px; }
.msum { margin-top: 10px; font-size: 13px; text-align: center; line-height: 1.5; }
.rbonus { margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: #0f2a3a; border: 1px solid #2ad4ff66; color: #bff3ff; font-size: 12px; }
/* ===== Drops v3: gacha overlay ===== */
.gacha { position: absolute; inset: 0; z-index: 20; background: radial-gradient(ellipse at 50% 0%, #2a1458 0%, #0b0820 55%, #05050c 100%); display: flex; flex-direction: column; overflow: hidden; }
.gacha.hidden { display: none; }
.gtop { display: flex; align-items: center; gap: 6px; padding: calc(8px + env(safe-area-inset-top)) 8px 6px; }
.gtop .icon { width: 34px; height: 34px; padding: 0; border-radius: 10px; flex: none; }
.gtabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.gtabs button { flex: 1; padding: 7px 4px; font-size: 12px; border-radius: 10px; background: #15163a; border: 1px solid #343a7a; position: relative; white-space: nowrap; }
.gtabs button.on { background: linear-gradient(135deg, #7c3aed, #db2777); border-color: #f0abfc; }
.gdot { position: absolute; top: 3px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 6px #ff3b5c; }
.gwal { display: flex; flex-direction: column; font-size: 11px; font-weight: 900; text-align: right; line-height: 1.3; flex: none; }
.gbody { flex: 1; overflow-y: auto; padding: 6px 12px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; }
.gdrops, .gsum { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.gbox { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-top: 6px; }
.gboxart { font-size: 96px; animation: gbob 2.2s ease-in-out infinite; filter: drop-shadow(0 10px 20px #000a); z-index: 1; }
.gboxglow { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #ffcc3355, #b46cff55, #3fa9ff55, #ffcc3355); filter: blur(18px); animation: gspin 6s linear infinite; }
@keyframes gbob { 50% { transform: translateY(-8px) rotate(-3deg); } }
@keyframes gspin { to { transform: rotate(360deg); } }
.gcount { font-size: 12px; opacity: .85; }
.groad { width: 100%; background: #0d0f2a; border: 1px solid #3b3f86; border-radius: 14px; padding: 8px 10px; text-align: left; }
.grl { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; } .grl b { color: #ffcc33; }
.grbar, .gbar, .rgbar { position: relative; height: 10px; border-radius: 99px; background: #1d2050; overflow: hidden; margin: 6px 0 4px; }
.grbar i, .gbar i, .rgbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #ffb000, #ffe680); box-shadow: 0 0 10px #ffcc33; transition: width .9s cubic-bezier(.2,.9,.3,1); }
.grnext { display: flex; gap: 6px; font-size: 10px; opacity: .75; overflow: hidden; white-space: nowrap; } .grnext span { background: #1a1d48; padding: 2px 7px; border-radius: 99px; } .grnext .now { background: #3a2a08; color: #ffd76a; }
.gbtns { display: flex; flex-direction: column; gap: 8px; width: 100%; align-items: stretch; }
.gbtns .g1 { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.gbtns .g10 { background: linear-gradient(135deg, #FFC21A, #ff7a1a 55%, #E8197A); border-color: #ffe08a; box-shadow: 0 0 24px #ffc21a77; animation: gpulse 1.6s ease-in-out infinite; }
.gbtns .g10:disabled, .gbtns .g1:disabled { animation: none; filter: grayscale(.7) brightness(.7); box-shadow: none; }
.gbtns small { display: block; font-size: 10px; font-weight: 700; opacity: .9; }
@keyframes gpulse { 50% { box-shadow: 0 0 36px #ffc21acc; } }
.gpity { display: flex; justify-content: center; gap: 12px; font-size: 12px; flex-wrap: wrap; }
.gwhy { font-size: 12px; opacity: .8; line-height: 1.4; } .godds { font-size: 11px; opacity: .9; line-height: 1.5; }
/* reels */
.gstage { width: 100%; max-width: 440px; flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; }
.gcharge { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; transition: opacity .3s, transform .3s; pointer-events: none; }
.gcharge .gboxart { font-size: 120px; animation: gshake .09s linear infinite; }
.gcharge.c1 .gboxart { filter: drop-shadow(0 0 30px #3fa9ff); } .gcharge.c2 .gboxart { filter: drop-shadow(0 0 40px #b46cff) drop-shadow(0 0 70px #b46cff); } .gcharge.c3 .gboxart { filter: drop-shadow(0 0 40px #ffcc33) drop-shadow(0 0 90px #ff9a1a); }
.gcharge.gone { opacity: 0; transform: scale(2.2); }
@keyframes gshake { 0% { transform: translate(2px, 0) rotate(2deg); } 50% { transform: translate(-2px, 1px) rotate(-2deg); } }
.greels { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.greel { position: relative; height: 56px; border-radius: 12px; overflow: hidden; background: linear-gradient(#0e1030, #08091c); border: 2px solid #2b2f6e; animation: greelin .35s cubic-bezier(.34,1.6,.64,1) both; transition: opacity .25s, border-color .2s, box-shadow .2s; }
@keyframes greelin { from { transform: translateX(var(--fx, -60px)) scale(.9); opacity: 0; } }
.greel.rgt { --fx: 60px; }
.gstrip { position: absolute; left: 0; top: 0; bottom: 0; display: flex; will-change: transform; }
.gt { width: 52px; height: 52px; flex: none; display: grid; place-items: center; position: relative; }
.gt::before { content: ''; position: absolute; inset: 5px; border-radius: 10px; background: #1b1e44; border: 2px solid #3a3f78; }
.gt.r-rare::before { background: #10305e; border-color: #3fa9ff; } .gt.r-epic::before { background: #3a1866; border-color: #b46cff; } .gt.r-legendary::before { background: #5a3d06; border-color: #ffcc33; box-shadow: 0 0 10px #ffcc33aa; }
.gt span { position: relative; font-size: 24px; filter: drop-shadow(0 0 5px var(--sc, transparent)); }
.gt .gsk { position: absolute; right: 4px; bottom: 3px; font-size: 10px; font-style: normal; }
.gmark { position: absolute; left: 50%; top: 0; bottom: 0; width: 56px; margin-left: -28px; border: 2px solid #ffffff55; border-radius: 12px; pointer-events: none; }
.greels.focus .greel:not(.tense):not(.done) { opacity: .35; }
.greel.tense.t2 { border-color: #b46cff; box-shadow: 0 0 20px #b46cff, inset 0 0 20px #b46cff66; animation: gtense .25s ease-in-out infinite alternate; }
.greel.tense.t3 { border-color: #ffcc33; box-shadow: 0 0 30px #ffcc33, inset 0 0 24px #ffcc3388; animation: gtense .18s ease-in-out infinite alternate; }
@keyframes gtense { to { transform: scale(1.03); } }
.greel .glab { position: absolute; left: calc(50% + 32px); right: 6px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; text-align: left; opacity: 0; transform: translateX(-12px); transition: all .3s .1s; pointer-events: none; }
.greel .glab b { font-size: 12px; line-height: 1.1; text-shadow: 0 1px 3px #000; } .greel .glab small { font-size: 10px; font-weight: 900; color: #9dffb4; } .glab small.hot { color: #ffe066; }
.greel.done .glab { opacity: 1; transform: none; }
.greel.done .gt:not(.land) { opacity: .12; transition: opacity .3s; }
.greel.done .gt.land { animation: gland .45s cubic-bezier(.34,1.8,.64,1); }
@keyframes gland { 40% { transform: scale(1.35); } }
.greel.done.r-rare { border-color: #3fa9ff; } .greel.done.r-epic { border-color: #b46cff; box-shadow: 0 0 14px #b46cff88; } .greel.done.r-legendary { border-color: #ffcc33; box-shadow: 0 0 20px #ffcc33aa; background: linear-gradient(90deg, #08091c, #3a2a06 50%, #08091c); }
.gstage.big .greel { height: 104px; border-radius: 18px; } .gstage.big .gt { width: 88px; height: 100px; } .gstage.big .gt span { font-size: 44px; } .gstage.big .gmark { width: 92px; margin-left: -46px; border-radius: 16px; }
.gstage.big .glab { left: 0; right: 0; top: auto; bottom: -46px; text-align: center; align-items: center; } .gstage.big .greel { overflow: visible; margin-bottom: 50px; } .gstage.big .gstrip { clip-path: inset(0 round 18px); }
.gstage.big .greel.done .glab b { font-size: 18px; } .gstage.big .greel.done .glab small { font-size: 13px; }
.gtap { text-align: center; font-size: 11px; opacity: .5; margin-top: 10px; }
.gflash { position: absolute; inset: -40px; pointer-events: none; animation: gfl .7s ease-out forwards; z-index: 4; }
.gflash.r-epic { background: radial-gradient(circle, #b46cff88, transparent 70%); } .gflash.r-legendary { background: radial-gradient(circle, #ffe9a0cc, #ffcc3344 40%, transparent 75%); }
@keyframes gfl { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(1.4); } }
/* splash */
.gsplash { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: #000d; animation: gsin .3s ease-out; overflow: hidden; }
.gsplash.out { opacity: 0; transition: opacity .25s; }
@keyframes gsin { from { opacity: 0; } }
.gsrays { position: absolute; width: 200vmax; height: 200vmax; left: 50%; top: 50%; margin: -100vmax 0 0 -100vmax; background: repeating-conic-gradient(from 0deg, var(--rc, #ffcc33) 0 6deg, transparent 6deg 18deg); opacity: .22; animation: gspin 14s linear infinite; }
.gsplash.r-epic { --rc: #b46cff; } .gsplash.r-rare { --rc: #3fa9ff; } .gsplash.r-legendary { --rc: #ffcc33; }
.gscard { position: relative; text-align: center; padding: 20px; max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gstitle { font-size: 30px; font-weight: 1000; letter-spacing: 1px; color: var(--rc); text-shadow: 0 0 20px var(--rc); animation: gstitle .6s cubic-bezier(.34,1.8,.64,1) both; }
.gsem { font-size: 110px; line-height: 1.1; filter: drop-shadow(0 0 30px var(--sc, var(--rc))); animation: gsem .8s .15s cubic-bezier(.34,1.7,.64,1) both; }
@keyframes gstitle { from { transform: scale(3); opacity: 0; } } @keyframes gsem { from { transform: scale(0) rotate(-30deg); } }
.gsrar { text-transform: uppercase; font-size: 12px; font-weight: 900; letter-spacing: 3px; color: var(--rc); } .gsnm { font-size: 24px; font-weight: 1000; }
.gsdesc { font-size: 13px; opacity: .85; } .gsperk { font-size: 13px; padding: 8px 12px; border-radius: 12px; background: #0f2a3a; border: 1px solid #2ad4ff66; color: #bff3ff; }
.gstap { margin-top: 14px; font-size: 11px; opacity: .55; animation: gblink 1.2s infinite; } @keyframes gblink { 50% { opacity: .2; } }
/* summary */
.gsum h2 { margin: 4px 0 0; font-size: 26px; text-shadow: 0 0 18px currentColor; } .gsline { font-size: 13px; }
.grows { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.grow { display: flex; align-items: center; gap: 6px; background: #0e1030; border: 1px solid #2b2f6e; border-radius: 12px; padding: 2px 8px 2px 2px; animation: growin .35s cubic-bezier(.34,1.5,.64,1) both; text-align: left; }
@keyframes growin { from { transform: translateX(-30px); opacity: 0; } }
.grow.r-epic { border-color: #b46cff88; } .grow.r-legendary { border-color: #ffcc33; box-shadow: 0 0 10px #ffcc3355; }
.grow .gt { width: 44px; height: 44px; } .grow .gt span { font-size: 20px; }
.grt { flex: 1; min-width: 0; } .grt b { font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .grt small { font-size: 11px; opacity: .85; display: block; line-height: 1.3; }
.gbar { height: 13px; margin: 3px 0 1px; } .gbar em { position: absolute; inset: 0; font-size: 9px; font-style: normal; font-weight: 900; line-height: 13px; padding-left: 6px; text-shadow: 0 1px 2px #000; }
.gst { color: #ffcc33; font-size: 11px; letter-spacing: -1px; } .gst i { color: #ffffff22; font-style: normal; } .gst.big { font-size: 15px; }
.gtag { font-size: 10px; font-weight: 900; color: #9dffb4; white-space: nowrap; } .gtag.hot { color: #ffe066; text-shadow: 0 0 8px #ffcc33; }
/* heroes */
.gheroes, .gitems { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 8px; }
.ghero { display: flex; gap: 10px; padding: 10px; border-radius: 16px; background: linear-gradient(#17193f, #0d0e28); border: 2px solid #343a7a; text-align: left; }
.ghero.r-epic { border-color: #7d4bc4; } .ghero.r-legendary { border-color: #b8901f; } .ghero.awake { box-shadow: 0 0 20px #ffcc3366; border-color: #ffcc33; }
.ghero.locked { opacity: .75; } .ghero.locked .ghem { filter: grayscale(1) brightness(.5); }
.ghem { font-size: 44px; width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, var(--sc, #38bdf8)44, transparent 70%); }
.ght { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .ght > b { font-size: 16px; } .grar { font-size: 10px; text-transform: uppercase; font-weight: 900; } .glock { color: #ffb3c0; }
.gperks { list-style: none; padding: 0; margin: 2px 0; font-size: 11px; line-height: 1.45; } .gperks li { opacity: .4; } .gperks li.on { opacity: 1; color: #bff3ff; }
.gawk { color: #ffcc33; font-weight: 900; font-size: 12px; }
.ghb { display: flex; gap: 6px; flex-wrap: wrap; } .ghb button, .gitem button { font-size: 11px; padding: 6px 9px; border-radius: 10px; }
.ghb button.go { background: linear-gradient(135deg, #22c55e, #16a34a); border-color: #86efac; animation: gpulse 1.4s infinite; }
.gskins { display: flex; gap: 4px; flex-wrap: wrap; } .gskins button { font-size: 10px; padding: 4px 8px; border-radius: 99px; border-color: var(--sc, #555); } .gskins button.on { background: var(--sc, #444); color: #000; font-weight: 900; }
.ghelp { font-size: 12px; opacity: .8; margin: 0 0 4px; text-align: center; }
.gitem { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 12px; background: #0e1030; border: 1px solid #2b2f6e; text-align: left; }
.gitem.none > :not(button) { opacity: .45; } .gitem.r-legendary { border-color: #b8901f; } .gitem.r-epic { border-color: #6d3fb0; }
.gnext { color: #9dffb4; }
/* special button + run-end goal */
.rspec { position: absolute; right: 14px; bottom: 16px; z-index: 4; width: 64px; height: 64px; border-radius: 50%; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px solid #4a4f90; background: conic-gradient(#ffcc33 var(--p, 0%), #15163a 0); box-shadow: 0 4px 14px #000a; touch-action: none; }
.rspec span { font-size: 24px; line-height: 1; } .rspec b { font-size: 9px; font-weight: 1000; text-shadow: 0 1px 2px #000; }
.rspec.ready { border-color: #fff; box-shadow: 0 0 22px #ffcc33, 0 0 44px #ff9a1a; animation: gtense .3s ease-in-out infinite alternate; }
.rspec.hidden { display: none; }
.rgoal { width: 100%; max-width: 340px; background: #0d0f2a; border: 1px solid #3b3f86; border-radius: 14px; padding: 8px 10px; font-size: 12px; text-align: left; }
.rgl.hot { color: #ffe066; margin-top: 4px; } .rgb { display: flex; gap: 6px; margin-top: 6px; } .rgb button { flex: 1; }
.char .cst { color: #ffcc33; font-size: 11px; letter-spacing: -1px; } .char.lockd { opacity: .55; }
/* Ad Blocker v5 */
body.rplay #banner { display: none; }
body.rplay #rogue { bottom: 0; }
.rcoins em.hot { font-style: normal; font-size: 11px; color: #ffb000; margin-left: 4px; text-shadow: 0 0 8px #ff7a1a; }
button.risk { margin-top: 8px; background: linear-gradient(135deg, #3a0a1e, #1a0610); border-color: #ff5a9e88; color: #ffb3d0; }
button.risk.on { background: linear-gradient(135deg, #ff2a6a, #a0104a); border-color: #fff; color: #fff; box-shadow: 0 0 18px #ff2a6a; animation: gpulse 1.2s infinite; }
/* compact "new ad" tooltips: a slim strip, the fight stays visible */
.rintro { top: 92px !important; flex-direction: row !important; flex-wrap: wrap; justify-content: center; gap: 4px !important; max-width: 96% !important; }
.rintro .ic:not(.boss):not(.world) { gap: 6px; padding: 2px 8px 2px 2px; border-width: 1.5px; border-radius: 10px; background: #0b0c1ecc; box-shadow: none; max-width: 230px; }
.rintro .ic:not(.boss):not(.world) canvas { width: 30px; height: 27px; }
.rintro .ic:not(.boss):not(.world) small { font-size: 8px; } .rintro .ic:not(.boss):not(.world) b { font-size: 12px; line-height: 1.1; } .rintro .ic:not(.boss):not(.world) span { font-size: 10px; line-height: 1.2; }
.rintro .ic.boss { padding: 6px 12px; } .rintro .ic.boss b { font-size: 16px; } .rintro .ic.boss span { font-size: 11px; }
.char .cicon { width: 42px; height: 42px; } .char.lockd .cicon, .char[disabled] .cicon { filter: grayscale(1) brightness(.6); }

/* NEW AD cards fade to see-through quickly so they never hide the fight (boss/chapter cards stay solid) */
.rintro .ic:not(.boss):not(.world) { animation: icfade 2.6s ease forwards; }
@keyframes icfade { 0%, 30% { opacity: 1; } 100% { opacity: .28; } }
#rPause { z-index: 6; }

/* world + level picker (100 levels) */
.wnav { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 420px; }
.wnav > div { flex: 1; text-align: center; } .wnav small { display: block; font-size: 10px; letter-spacing: 1px; opacity: .7; } .wnav b { font-size: 18px; color: var(--wc); }
.wnav button { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--wc); background: #0b0c1e; color: #fff; font-size: 16px; } .wnav button:disabled { opacity: .25; }
.lvls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 100%; max-width: 420px; }
.lvl { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border-radius: 10px; border: 2px solid #2a2f55; background: #0e1030; color: #fff; }
.lvl b { font-size: 14px; } .lvl small { font-size: 11px; min-height: 14px; } .lvl em { font-style: normal; font-size: 10px; color: #ffd23a; letter-spacing: -1px; }
.lvl.sel { border-color: #67E8F9; box-shadow: 0 0 0 2px #67E8F955; } .lvl.bossl { border-color: #ff5a6e88; } .lvl:disabled { opacity: .35; }
.lvinfo { width: 100%; max-width: 420px; font-size: 12px; text-align: center; opacity: .95; } .lvinfo > small { display: block; opacity: .6; font-size: 10px; margin-top: 3px; }
.lvinfo .muts { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; font-size: 11px; } .lvinfo .muts span { background: #ff5a6e1a; border-radius: 6px; padding: 2px 6px; }
.ults { display: flex; gap: 6px; width: 100%; max-width: 420px; } .ults button { flex: 1; padding: 6px 4px; border-radius: 10px; border: 2px solid #2a2f55; background: #0e1030; color: #fff; font-size: 11px; line-height: 1.2; }
.ults button.sel { border-color: #ffd23a; box-shadow: 0 0 0 2px #ffd23a44; } .ults button:disabled { opacity: .35; } .ults b { display: block; font-size: 12px; }

/* select screen fits a laptop/phone screen: scrolls if needed, only the picked hero shows its description */
#rEnd.selscr { justify-content: flex-start; overflow-y: auto; gap: 8px; padding-top: 14px; }
#rEnd.selscr h2 { font-size: 24px; }
#rEnd.selscr .chars { grid-template-columns: repeat(4, 1fr) !important; gap: 6px; max-width: 420px !important; }
#rEnd.selscr .char { padding: 6px 4px; } #rEnd.selscr .char small { display: none; } #rEnd.selscr .char b { font-size: 11px; }
#rEnd.selscr .char .cicon { width: 34px; height: 34px; }
#rEnd.selscr .herodesc { width: 100%; max-width: 420px; font-size: 12px; opacity: .85; text-align: center; margin-top: -2px; }

/* gear (per hero) */
#gearOv { position: fixed; inset: 0; z-index: 60; background: #05061acc; display: flex; justify-content: center; overflow-y: auto; }
#gearOv.hidden { display: none; }
.gwrap { width: 100%; max-width: 440px; padding: 14px 12px 30px; display: flex; flex-direction: column; gap: 8px; }
.ghead { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; background: #070820; padding: 6px 0; z-index: 1; }
.ghead b { font-size: 17px; } .ghead span { flex: 1; text-align: right; font-size: 12px; opacity: .85; } .ghead button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid #333a6a; background: #10133a; color: #fff; }
.gsec { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: .6; margin-top: 6px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.gi { border: 2px solid var(--rc, #333a6a); border-radius: 12px; padding: 8px 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--rc, #333) 18%, #0b0c1e), #0b0c1e); display: flex; flex-direction: column; gap: 3px; }
.gi.r4 { box-shadow: 0 0 16px #ff9a1a55; } .gi.empty { border-style: dashed; opacity: .6; font-size: 12px; }
.gih { display: flex; align-items: center; gap: 6px; } .gih b { color: var(--rc); font-size: 14px; flex: 1; } .gih em { font-style: normal; font-size: 12px; font-weight: 800; } .gih em.up { color: #4ade80; } .gih em.dn { color: #ff5a6e; }
.gi small { opacity: .65; font-size: 10px; text-transform: capitalize; } .gil { font-size: 12px; } .gleg { font-size: 12px; color: #ffb35c; font-weight: 700; }
.gbt { display: flex; gap: 6px; margin-top: 3px; } .gbt .go { background: #22c55e; color: #000; }
.rloot { display: flex; flex-direction: column; gap: 3px; font-weight: 800; font-size: 14px; } .rloot small { font-weight: 400; opacity: .7; font-size: 11px; }

/* ===================== Design layer v2 (Oct 21): one surface style, one accent, less noise ===================== */
:root { --bg: #080918; --sf: #111329; --sf2: #181b37; --line: #262a52; --mut: #9aa0c8; --acc: #67e8f9; --r: 14px; }
button, .btn { border-width: 1px; border-color: var(--line); background: var(--sf); border-radius: var(--r); font-weight: 700; }
button:hover, .btn:hover { transform: translateY(-1px); }
button:active, .btn:active { transform: scale(.96); }
button.big { border: 0; border-radius: 18px; letter-spacing: 1px; box-shadow: 0 10px 30px -8px #7c3aed99; padding: 15px 44px; }
button.tiny { background: var(--sf2); border-color: var(--line); font-weight: 600; }
button.ghost, .btn.ghost { background: none; border-color: transparent; color: var(--mut); font-weight: 600; font-size: 14px; }
button.danger { color: #ff7a8f; border-color: #ff7a8f44; background: #ff3b5c0f; }
h2 { letter-spacing: .5px; }

/* title: logo, rank, one big PLAY, quiet classic link, tab bar at the bottom, everything else in More */
#title { justify-content: flex-start; padding-top: 7vh; gap: 12px; background: radial-gradient(120% 70% at 50% 18%, #1b1d42 0%, var(--bg) 62%); }
#title .logo { margin-bottom: 6px; } #titleStats { display: none; }
#title #rankCard { max-width: 340px; }
#title #playBtn { font-size: 30px; padding: 18px 64px; margin-top: 8px; }
#title #classicBtn { margin-top: -4px; }
.tabbar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: calc(100% - 24px); max-width: 440px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px; border-radius: 22px; background: #10122ad9; border: 1px solid var(--line); backdrop-filter: blur(10px); box-shadow: 0 10px 30px #0008; }
.tabbar button { background: none; border: 0; border-radius: 16px; padding: 7px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
.tabbar button:hover { background: #ffffff0d; transform: none; }
.tabbar i { font-style: normal; font-size: 21px; line-height: 1; } .tabbar span { font-size: 11px; font-weight: 600; color: var(--mut); }
.tabbar button.dot::after { top: 4px; right: calc(50% - 18px); width: 9px; height: 9px; }
.sheet { position: fixed; inset: 0; z-index: 70; background: #0009; display: flex; align-items: flex-end; justify-content: center; }
.sheetin { width: 100%; max-width: 460px; background: var(--sf); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 16px 16px 26px; display: flex; flex-direction: column; gap: 8px; animation: sheetup .25s ease-out; }
.sheetin > b { font-size: 16px; margin-bottom: 4px; } .sheetin button, .sheetin .btn { width: 100%; text-align: left; padding: 13px 14px; }
@keyframes sheetup { from { transform: translateY(40px); opacity: 0; } }

/* level select */
#rEnd.selscr { gap: 10px; padding: 16px 14px 96px; background: var(--bg); }
#rEnd.selscr h2 { font-size: 20px; background: none; -webkit-text-fill-color: #fff; color: #fff; animation: none; letter-spacing: 3px; opacity: .9; }
.wnav button { border-radius: 12px; border: 1px solid var(--line); background: var(--sf); width: 38px; height: 38px; }
.wnav b { font-size: 19px; } .wnav small { color: var(--mut); opacity: 1; }
.lvls { gap: 6px; } .lvl { border: 1px solid var(--line); background: var(--sf); border-radius: 12px; padding: 7px 2px 5px; }
.lvl.sel { border-color: var(--acc); background: #67e8f914; box-shadow: none; } .lvl.bossl { border-color: #ff5a6e55; } .lvl:disabled { opacity: .3; }
.lvinfo { background: var(--sf); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; text-align: left; }
.lvinfo > small { color: var(--mut); opacity: 1; }
#rEnd.selscr .chars { display: flex !important; overflow-x: auto; gap: 8px; max-width: 432px !important; padding: 2px 2px 6px; scrollbar-width: none; }
#rEnd.selscr .chars::-webkit-scrollbar { display: none; }
#rEnd.selscr .char { flex: 0 0 76px; border: 1px solid var(--line); background: var(--sf); border-radius: var(--r); padding: 8px 4px; }
#rEnd.selscr .char.sel { border-color: var(--acc); background: #67e8f914; box-shadow: none; }
#rEnd.selscr .herodesc { color: var(--mut); opacity: 1; text-align: left; max-width: 432px; }
#rEnd.selscr .selrow { width: 100%; max-width: 432px; display: flex; align-items: center; gap: 8px; } .selrow #rGear { padding: 8px 14px; } .selrow #rGear b { color: var(--acc); }
#rEnd.selscr .passsum { color: var(--mut); font-size: 12px; opacity: 1; }
.ults { max-width: 432px; } .ults button { border: 1px solid var(--line); background: var(--sf); border-radius: 12px; text-align: left; padding: 8px; color: var(--mut); font-weight: 500; }
.ults button b { color: #fff; } .ults button.sel { border-color: #ffd23a; background: #ffd23a12; box-shadow: none; }
#rEnd.selscr #rGo { position: sticky; bottom: 10px; margin-top: 4px; width: 100%; max-width: 432px; z-index: 2; }

/* power-up pick + run end */
.pcard { border-radius: 16px !important; }
#rEnd:not(.selscr) { gap: 10px; }
#rEnd:not(.selscr) .rstats { gap: 0; background: var(--sf); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 6px; width: 100%; max-width: 360px; display: grid; grid-template-columns: repeat(4, 1fr); }
.rpicks { font-size: 15px; opacity: .8; max-width: 360px; }
.rloot { background: var(--sf); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; width: 100%; max-width: 360px; text-align: left; }
.rgoal { display: none; }
.rstars { font-size: 30px; color: #ffd23a; letter-spacing: 4px; margin-top: -6px; }

/* gear */
.gbr { font-style: normal; font-weight: 800; color: var(--bc); text-transform: none; margin-right: 2px; }
.gbps { display: flex; flex-direction: column; gap: 4px; } .gbp { font-size: 12px; border-left: 3px solid var(--bc); padding: 4px 8px; background: var(--sf); border-radius: 0 8px 8px 0; color: var(--mut); }
.gbp b { color: var(--bc); margin-right: 4px; } .gbp.on { color: #fff; } .gbp span { opacity: .8; }
.gi { border-width: 1px; background: linear-gradient(135deg, color-mix(in srgb, var(--rc, #333) 14%, var(--sf)), var(--sf)); }

/* loot pickup card, deals, select header */
#rLootCard { position: absolute; left: 50%; top: 22%; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; z-index: 6; min-width: 220px; max-width: 86%; text-align: center; padding: 10px 16px; border-radius: 16px; background: #0b0c1ef2; border: 2px solid var(--rc); box-shadow: 0 0 30px color-mix(in srgb, var(--rc) 40%, transparent); transition: transform .25s cubic-bezier(.34,1.6,.64,1), opacity .2s; display: flex; flex-direction: column; gap: 2px; }
#rLootCard.show { opacity: 1; transform: translate(-50%, 0); }
#rLootCard.r4 { animation: legpulse .6s ease-in-out 3; } @keyframes legpulse { 50% { box-shadow: 0 0 60px #ff9a1a; } }
#rLootCard small { font-size: 10px; letter-spacing: 1px; font-weight: 800; } #rLootCard b { font-size: 17px; } #rLootCard span { font-size: 12px; color: #ffb35c; }
.deals { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 420px; }
.deals button { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-color: #ff5a9e44; background: #ff5a9e0d; }
.deals button.on { border-color: #ff5a9e; background: #ff5a9e26; box-shadow: 0 0 0 2px #ff5a9e55; }
.deals b { font-size: 14px; } .deals .cu { font-size: 12px; color: #ff8fa6; font-weight: 600; } .deals .rw { font-size: 12px; color: #7ef0a8; font-weight: 600; }
.selhead { display: flex; align-items: center; width: 100%; max-width: 432px; } .selhead h2 { flex: 1; text-align: center; margin: 0 !important; } .selhead > button, .selhead > span { width: 80px; text-align: left; padding: 6px 0; }

/* banner-maze domain */
.rdomain.black { background: #000; animation: toblack .6s ease-out both; }
@keyframes toblack { from { background: #0000; } to { background: #000; } }
.rdomain.mz { padding-top: 54px; }
.rdomain.mz .dhud { border-color: #ffd23a; box-shadow: 0 0 24px #ffd23a33; }
.mzcard { position: absolute; top: 45%; font-size: 30px; font-weight: 1000; font-style: italic; letter-spacing: 2px; color: #ffd23a; text-shadow: 0 0 24px #ffd23a88; animation: mzcard 1.3s ease-out both; }
@keyframes mzcard { 0% { opacity: 0; transform: scale(1.4); } 20% { opacity: 1; transform: scale(1); } 70% { opacity: 1; } 100% { opacity: 0; } }
.rdomain.mz .dhud { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.ic.boss.shrine { border-color: #ff1f3d; background: linear-gradient(135deg, #3a0008f2, #12000af2); box-shadow: 0 0 40px #ff1f3d77; }
.ic.boss.shrine b { color: #ff3b52; letter-spacing: 2px; text-shadow: 0 0 18px #ff1f3d; }
.dealone { width: 100%; max-width: 340px; background: var(--sf); border: 1px solid #ff5a9e66; border-radius: 18px; padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 6px; text-align: center; box-shadow: 0 0 40px #ff5a9e22; animation: sheetup .25s ease-out; }
.dealone small { font-size: 11px; letter-spacing: 1.5px; color: #ff8fc0; font-weight: 800; } .dealone b { font-size: 22px; }
.dealone p { margin: 0; font-size: 14px; font-weight: 600; } .dealone .cu { color: #ff8fa6; } .dealone .rw { color: #7ef0a8; }
.dealone .dbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; } .dealone .dbtns button { padding: 12px; font-size: 15px; }
.dealone button.risk { background: linear-gradient(135deg, #ff3b7a, #a21caf); border: 0; color: #fff; }
.welcome { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.wgifts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.wgifts > div { background: var(--sf2, #181b37); border: 1px solid var(--line, #262a52); border-radius: 14px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.wgifts i { font-style: normal; font-size: 26px; } .wgifts b { font-size: 14px; } .wgifts span { font-size: 11px; color: var(--mut, #9aa0c8); }
.ghtabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; } .ghtabs::-webkit-scrollbar { display: none; }
.ghtabs button { flex: none; font-size: 12px; padding: 6px 10px; border-radius: 999px; background: var(--sf, #111329); border: 1px solid var(--line, #262a52); color: var(--mut, #9aa0c8); }
.ghtabs button.on { color: #fff; border-color: var(--acc, #67e8f9); background: #67e8f914; }
.ghtabs i { font-style: normal; background: #ff3b5c; color: #fff; border-radius: 99px; padding: 0 5px; font-size: 10px; margin-left: 2px; }
#rEquip { background: linear-gradient(135deg, #22c55e, #0ea5e9); border: 0; font-weight: 800; padding: 12px 20px; }
.tabbar { grid-template-columns: repeat(5, 1fr); }
#gearOv { background: #080918 !important; }
.advcard { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 340px; padding: 10px 14px; border-radius: 16px; text-decoration: none; color: #fff; background: linear-gradient(135deg, #2a1300, #3a0d1f); border: 1px solid #ffb02e55; box-shadow: 0 6px 24px -10px #ff8a1a66; text-align: left; margin-top: 4px; }
.advcard i { font-style: normal; font-size: 26px; } .advcard span { display: flex; flex-direction: column; gap: 1px; } .advcard b { font-size: 14px; color: #ffcf6e; } .advcard small { font-size: 11px; color: #f3d9b5cc; }
.advcard:hover { border-color: #ffb02e; }
#title #classicBtn { font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--sf); color: var(--mut); margin-top: 2px; }

/* gear page v2 */
#gearOv .gwrap { gap: 8px; }
#gearOv .ghead { justify-content: space-between; background: #080918; }
#gearOv .ghead b { font-size: 18px; }
.ghtabs { flex-shrink: 0; }
#gearOv .gsum { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: center; background: var(--sf); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; flex-shrink: 0; }
#gearOv .gsum small { display: block; font-size: 10px; color: var(--mut); text-transform: uppercase; letter-spacing: .8px; } #gearOv .gsum b { font-size: 18px; }
#gearOv .gsum button { justify-self: end; padding: 9px 12px; font-size: 13px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
#gearOv .gsum button.go { background: linear-gradient(135deg, #22c55e, #0ea5e9); border: 0; color: #fff; } #gearOv .gsum button small { color: #ffffffcc; font-size: 10px; text-transform: none; letter-spacing: 0; }
#gearOv .gsum button:disabled { opacity: .55; }
.gsets { display: flex; flex-wrap: wrap; gap: 6px; } .gset { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--bc) 50%, transparent); color: var(--bc); background: color-mix(in srgb, var(--bc) 8%, transparent); }
.gset.on { background: color-mix(in srgb, var(--bc) 22%, transparent); }
.gi { flex-shrink: 0; } .gi .gih { display: flex; align-items: center; gap: 8px; } .gi .gih b { flex: 1; font-size: 14px; } .gi .gih em { font-style: normal; font-size: 12px; font-weight: 800; }
.gi.empty { opacity: 1; border-style: dashed; color: var(--mut); background: transparent; } .gi.empty .gih b { color: var(--mut); font-weight: 600; }
.gbt { display: flex; gap: 6px; margin-top: 6px; } .gbt button { padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.gbt .go { background: #22c55e; color: #04140a; border: 0; }
#gearOv .gsec { opacity: 1; color: var(--mut); font-weight: 700; } #gearOv .gsec .tiny { font-size: 11px; }

/* home: PLAY first, two equal secondary tiles */
#title .sec2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 340px; margin-top: 2px; }
#title .sec2 > * { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--sf); border: 1px solid var(--line); color: #fff; text-decoration: none; text-align: left; font: inherit; margin: 0; box-shadow: none; }
#title .sec2 i { font-style: normal; font-size: 22px; } #title .sec2 span { display: flex; flex-direction: column; } #title .sec2 b { font-size: 13px; font-weight: 800; } #title .sec2 small { font-size: 11px; color: var(--mut); font-weight: 500; }
#title #classicBtn { font-size: inherit; border-radius: 16px; padding: 10px 12px; }
/* home: PLAY and the two tiles share one width; tiles are slim single-line bars */
#title #playBtn { width: 100%; max-width: 300px; padding: 16px 0; }
#title .sec2 { max-width: 300px; gap: 8px; }
#title .sec2 > * { justify-content: center; padding: 8px 10px; gap: 6px; border-radius: 12px; min-height: 0; }
#title .sec2 i { font-size: 15px; } #title .sec2 small { display: none; } #title .sec2 b { font-size: 13px; }
#title #classicBtn { padding: 8px 10px; border-radius: 12px; }
.welcome .ghost { margin-top: -4px; }
#title .sec2 { width: 100%; }

/* ===== gear screen v3 ===== */
.gx { gap: 12px !important; padding-bottom: 40px !important; }
.gx .ghead { gap: 10px; } .gx .ghead b { flex: 1; font-size: 20px; } .gq-scrap { font-size: 13px; font-weight: 700; color: var(--mut); background: var(--sf); border: 1px solid var(--line); padding: 5px 10px; border-radius: 99px; }
.gx .ghead button { width: 36px; height: 36px; border-radius: 12px; }
.gx .ghtabs button { display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; }
.gx .ghtabs button span { width: 24px; height: 24px; border-radius: 50%; background: #ffffff10; display: grid; place-items: center; font-size: 13px; }
.gq-doll { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: stretch; background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--hc, #67e8f9) 14%, var(--sf)), var(--sf)); border: 1px solid var(--line); border-radius: 18px; padding: 12px; flex-shrink: 0; }
.gq-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.gq-port { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: color-mix(in srgb, var(--hc) 18%, #0b0c1e); border: 2px solid var(--hc); box-shadow: 0 0 24px color-mix(in srgb, var(--hc) 40%, transparent); margin-bottom: 4px; }
.gq-hero b { font-size: 13px; } .gq-hero small { font-size: 10px; color: var(--mut); text-transform: uppercase; letter-spacing: .8px; margin-top: 4px; } .gq-hero strong { font-size: 24px; line-height: 1; }
.gq-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; }
.gq-slot { display: flex; flex-direction: column; gap: 4px; align-items: center; } .gq-slot > small { font-size: 10px; color: var(--mut); text-transform: uppercase; letter-spacing: .8px; }
.gq-t2 { position: relative; width: 100%; aspect-ratio: 1; border-radius: 14px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1.5px solid var(--rc); background: radial-gradient(90% 90% at 50% 30%, color-mix(in srgb, var(--rc) 30%, #0b0c1e), #0b0c1e); box-shadow: inset 0 -10px 20px -12px var(--rc); }
.gq-t2 span { font-size: 26px; line-height: 1; } .gq-t2 small { font-size: 9px; font-weight: 700; color: color-mix(in srgb, var(--rc) 70%, #fff); text-transform: capitalize; }
.gq-t2.r4 { box-shadow: 0 0 14px #ff9a1a66, inset 0 -10px 20px -12px #ff9a1a; } .gq-t2.r3 { box-shadow: 0 0 10px #b46cff44, inset 0 -10px 20px -12px #b46cff; }
.gq-t2.empty { border: 1.5px dashed var(--line); background: #0a0b18; } .gq-t2.empty span { opacity: .3; } .gq-t2.empty small { color: var(--mut); }
.gq-t2 .gq-star { position: absolute; top: 4px; left: 6px; font-style: normal; font-size: 11px; color: #ff9a1a; }
.gq-t2 .gq-up { position: absolute; top: 3px; right: 5px; font-style: normal; font-size: 11px; font-weight: 900; color: #4ade80; }
.gq-t2 .gq-new { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #ff3b5c; border: 2px solid var(--bg); }
.gq-t2:hover { transform: translateY(-2px); }
.gq-strip { display: flex; flex-wrap: wrap; gap: 6px; } .gq-strip span { font-size: 12px; background: var(--sf); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; color: var(--mut); } .gq-strip b { color: #fff; } .gq-strip .mut { border-style: dashed; }
.gq-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .gq-acts button { padding: 11px 8px; font-size: 13px; border-radius: 12px; } .gq-acts button small { opacity: .8; font-weight: 600; }
.gq-acts button.go { background: linear-gradient(135deg, #22c55e, #0ea5e9); border: 0; color: #fff; } .gq-acts button:disabled { opacity: .45; }
.gq-bagh { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; } .gq-bagh b { font-size: 15px; } .gq-bagh b small { color: var(--mut); font-weight: 600; margin-left: 4px; }
.gq-filt { display: flex; background: var(--sf); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; } .gq-filt button { border: 0; background: none; padding: 5px 11px; font-size: 13px; border-radius: 9px; } .gq-filt button.on { background: #ffffff14; }
.gq-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; } @media (max-width: 380px) { .gq-grid { grid-template-columns: repeat(4, 1fr); } }
.gq-emptybag { text-align: center; color: var(--mut); font-size: 13px; padding: 24px 12px; border: 1px dashed var(--line); border-radius: 14px; }
/* item sheet */
.gq-sh { position: fixed; inset: 0; z-index: 65; background: #000a; display: flex; align-items: flex-end; justify-content: center; }
.gq-shin { width: 100%; max-width: 460px; background: var(--sf); border: 1px solid var(--line); border-top: 3px solid var(--rc); border-radius: 22px 22px 0 0; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 12px; animation: sheetup .22s ease-out; max-height: 88vh; overflow-y: auto; }
.gq-shh { display: flex; gap: 12px; align-items: center; } .gq-shi { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; border: 1.5px solid var(--rc); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rc) 35%, #0b0c1e), #0b0c1e); }
.gq-shh small { font-size: 11px; color: var(--rc); font-weight: 800; text-transform: uppercase; letter-spacing: .6px; } .gq-shh b { display: block; font-size: 17px; color: var(--rc); line-height: 1.2; } .gq-shh span { font-size: 12px; color: var(--mut); } .gq-shh i { font-style: normal; font-weight: 800; }
.gq-shh em, .gq-sr em { font-style: normal; font-weight: 800; } em.up { color: #4ade80; } em.dn { color: #ff6b81; } em.on { color: var(--acc); }
.gq-srs { display: flex; flex-direction: column; background: #0b0c1e; border-radius: 12px; padding: 4px 12px; }
.gq-sr { display: grid; grid-template-columns: 1fr 60px 70px; align-items: center; padding: 7px 0; border-bottom: 1px solid #ffffff0a; font-size: 13px; } .gq-sr:last-child { border: 0; }
.gq-sr span { color: var(--mut); } .gq-sr b { text-align: right; } .gq-sr em { text-align: right; font-size: 12px; } .gq-sr.hd { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--mut); padding: 5px 0; } .gq-sr.hd b { color: var(--mut); font-weight: 700; } .gq-sr.hd em { color: var(--mut); font-weight: 700; }
.gq-perk { font-size: 12px; color: var(--mut); border-left: 3px solid var(--bc, #ff9a1a); padding: 6px 10px; background: #0b0c1e; border-radius: 0 10px 10px 0; } .gq-perk b { color: var(--bc); margin-right: 4px; } .gq-perk.leg { color: #ffb35c; font-weight: 700; border-color: #ff9a1a; }
.gq-sha { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .gq-sha button { padding: 12px; border-radius: 12px; font-size: 14px; } .gq-sha .go { background: #22c55e; border: 0; color: #04140a; } .gq-sha .ghost { grid-column: 1 / -1; }
.gq-sha button#gsRr { grid-column: 1 / -1; }
.gx .ghead .gq-scrap { flex: none; text-align: center; }
/* Drops reel: a thin gold line marks the winner (not a box), so stops can land near a tile edge */
.gmark { width: 3px !important; margin-left: -1.5px !important; border: 0 !important; border-radius: 2px !important; background: #ffd23a; box-shadow: 0 0 10px #ffd23a, 0 0 2px #fff; z-index: 2; }
.gmark::before, .gmark::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); border: 6px solid transparent; }
.gmark::before { top: -1px; border-top-color: #ffd23a; } .gmark::after { bottom: -1px; border-bottom-color: #ffd23a; }
.gstage.big .gmark { width: 4px !important; margin-left: -2px !important; }
.gt.tease { animation: gtease .5s ease-in-out 3; } @keyframes gtease { 50% { transform: scale(1.12) rotate(-4deg); filter: brightness(1.6); } }
.gclose { position: absolute; left: 6px; top: 50%; transform: translateY(-50%) rotate(-6deg); font-style: normal; font-weight: 1000; font-size: 12px; color: #ffcc33; text-shadow: 0 0 8px #ff7a1a, 0 1px 2px #000; z-index: 3; animation: popin .4s cubic-bezier(.34,1.8,.64,1) both; }
.gstage.big .gclose { font-size: 18px; top: -18px; left: 50%; transform: translateX(-50%) rotate(-4deg); }
.greel.done .gt.tease { opacity: 1 !important; }

/* QA4 fixes */
#rEnd.selscr .chars { flex-shrink: 0; min-height: 84px; }
.rhint, #hint { white-space: normal; max-width: calc(100% - 24px); width: max-content; text-align: center; }
#rPause button.tiny, #rQuit { padding: 10px 14px; font-size: 13px; }
.gt.tease { animation: gtease .5s ease-in-out 3; } @keyframes gtease { 50% { transform: scale(1.04); filter: brightness(1.7); } }
.greel.nl .glab { left: 6px; right: calc(50% + 32px); text-align: right; align-items: flex-end; }
.greel.nl .gclose { left: auto; right: 6px; }
#toasts { z-index: 90; }
/* thinner CS-style marker */
.gmark { width: 2px !important; margin-left: -1px !important; box-shadow: 0 0 6px #ffd23acc !important; }
.gmark::before, .gmark::after { border-width: 4px !important; }
.gstage.big .gmark { width: 2px !important; margin-left: -1px !important; }
.pcards.six { gap: 6px; } .pcards.six .pcard { padding: 10px 4px; gap: 2px; }
/* home: three full-width rows, same width as PLAY */
#title .sec2 { display: flex !important; flex-direction: column; gap: 8px; width: 100%; max-width: 300px; }
#title .sec2 > * { width: 100%; justify-content: center; padding: 11px 12px; }
#title .sec2 > * { height: 44px; box-sizing: border-box; color: #fff !important; font-weight: 800; }
#title .sec2 b { color: #fff; }
/* spend buttons: affordable = bright gold, can't afford = clearly locked, armed = confirm */
#gacha button.spend:not(:disabled) { background: linear-gradient(135deg, #ffd23a, #ff9a1a); color: #1a0f00; border: 0; font-weight: 800; opacity: 1 !important; filter: none !important; }
#gacha button.spend:disabled, #gacha .ghb button:disabled { background: #1a1c33 !important; color: #6b7099 !important; border: 1px dashed #3a3f6a !important; opacity: 1 !important; cursor: not-allowed; animation: none !important; }
#gacha button.armed { background: linear-gradient(135deg, #22c55e, #16a34a) !important; color: #fff !important; box-shadow: 0 0 0 2px #86efac; }
.gitem.none button { opacity: 1; }
#skipBtn:disabled { opacity: .55; filter: grayscale(.6); cursor: not-allowed; }
.adkiller { text-align: center; margin-bottom: -4px; animation: popin .4s cubic-bezier(.34,1.8,.64,1) both; }
.adkiller small { display: inline-block; font-size: 15px; font-weight: 1000; letter-spacing: 2px; color: #ff5a6e; background: #ff3b5c1f; border: 1px solid #ff3b5c66; padding: 6px 14px; border-radius: 999px; text-shadow: 0 0 12px #ff3b5c88; }
.tabbar { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 1fr; }
.rankup.starter { background: linear-gradient(135deg, #22c55e33, #0ea5e933); border-color: #22c55e88; }
/* 3D renderer (beta): the 2D canvas becomes the floor texture; 3D + HUD overlay canvases sit on top */
#rogue #r3cv, #rogue #r3hud { display: none; }
#rogue.r3live #r3cv, #rogue.r3live #r3hud { display: block; }
#rogue.r3live #rcv { opacity: 0; }
.r3row button { width: 100%; }
.r3row button.on { background: linear-gradient(135deg, #38bdf8, #7c3aed); color: #fff; }
