/* Wing Rush - full-window canvas + floating HUD + menus / cards. Everything scales with rem / clamp from phones to 4K. */
:root { --wr-acc: #FF8A2B; --wr-gold: #FFC23D; --wr-ink: #0F0C22; }
html { font-size: clamp(14px, calc(9px + .45vw), 26px); height: 100%; }
html, body { height: 100%; overflow: hidden; }
body { margin: 0; background: #0F0C22; overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
button, a { -webkit-tap-highlight-color: transparent; }

.wr { position: fixed; inset: 0; height: 100vh; height: 100dvh; overflow: hidden; background: #0F0C22; --safe-t: env(safe-area-inset-top, 0px); --safe-r: env(safe-area-inset-right, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); }
.wr-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* ---------- top bar ---------- */
.wr-top { position: absolute; z-index: 45; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: max(12px, var(--safe-t)) max(14px, var(--safe-r)) 0 max(14px, var(--safe-l)); pointer-events: none; }
.wr-top > * { pointer-events: auto; }
.wr-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 14px 6px 6px; border-radius: 14px; background: rgba(15, 12, 34, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; transition: background .15s, transform .12s; }
.wr-brand:hover { background: rgba(15, 12, 34, .8); transform: translateY(-1px); }
.wr-brand img { width: 34px; height: 34px; }
.wr-brand b { font-family: var(--font-d); font-size: .95rem; font-weight: 400; letter-spacing: .02em; line-height: 1; }
.wr-brand b i { font-style: normal; color: var(--lime); }
.wr.is-play .wr-brand, .wr.is-ready .wr-brand { display: none; }
.wr-tools { display: flex; gap: 8px; margin-left: auto; }
.wr-tool { width: 46px; height: 46px; border: 0; padding: 0; display: grid; place-items: center; border-radius: 13px; background: rgba(15, 12, 34, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; transition: background .15s, transform .12s; text-decoration: none; color: #fff; }
.wr-tool:hover { background: rgba(15, 12, 34, .85); transform: translateY(-1px); }
.wr-tool svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wr.is-menu .wr-tool--home, .wr.is-menu #bPause, .wr.is-over #bPause, .wr.is-over .wr-tool--home { display: none; }
.wr.is-play .wr-tool--home, .wr.is-ready .wr-tool--home, .wr.is-pause .wr-tool--home { display: grid; }
@media (pointer: coarse) { .wr-tool { width: 50px; height: 50px; } .wr-tool--full { display: none; } }
@media (max-width: 560px) { .wr.is-play .wr-tool--home, .wr.is-ready .wr-tool--home { display: none; } .wr-tool { width: 46px; height: 46px; } }

/* ---------- HUD ---------- */
.wr-hud { position: absolute; inset: 0; z-index: 10; pointer-events: none; color: #fff; font-size: 1rem; padding: max(12px, var(--safe-t)) max(14px, var(--safe-r)) 0 max(14px, var(--safe-l)); }
.wr-hud[hidden] { display: none; }
.wr-score { position: absolute; left: 0; right: 0; top: max(8px, var(--safe-t)); text-align: center; line-height: 1; }
.wr-score b { display: inline-block; font-family: var(--font-d); font-weight: 400; font-size: clamp(3.4rem, 2rem + 5.4vw, 7rem); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .01em;
  text-shadow: 0 .05em 0 rgba(20, 10, 50, .85), 0 0 .08em rgba(20, 10, 50, .9), .04em .04em 0 rgba(20, 10, 50, .8), -.04em .04em 0 rgba(20, 10, 50, .8), 0 .1em .35em rgba(0, 0, 0, .35); -webkit-text-stroke: .045em rgba(20, 10, 50, .85); paint-order: stroke fill; }
.wr-score b.pop { animation: wrscore .32s var(--ease); }
.wr-score small { display: block; margin-top: .2rem; font-weight: 800; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); opacity: .85; }
@keyframes wrscore { 0% { transform: scale(1.35); } 100% { transform: none; } }
.wr-pills { position: absolute; left: max(14px, var(--safe-l)); top: max(12px, var(--safe-t)); display: grid; gap: .45em; justify-items: start; }
.wr-pill { display: inline-flex; align-items: center; gap: .5em; padding: .42em .95em .42em .5em; border-radius: 99px; background: rgba(15, 12, 34, .58); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; line-height: 1; }
.wr-pill b { font-family: var(--font-d); font-weight: 400; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.wr-pill svg { width: 1.7em; height: 1.7em; flex: none; }
.wr-pill.bump { animation: wrbump .22s var(--ease); }
@keyframes wrbump { 0% { transform: scale(1.18); } 100% { transform: none; } }
.wr-biome { position: absolute; left: 50%; top: calc(max(8px, var(--safe-t)) + clamp(4.4rem, 2.8rem + 6vw, 8.2rem)); transform: translateX(-50%); display: grid; gap: .3em; min-width: 13em; padding: .5em 1em .6em; border-radius: 14px; background: rgba(15, 12, 34, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; --bc: #FFB35C; text-align: center; }
.wr-biome small { font-size: .58rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--bc); }
.wr-biome b { font-family: var(--font-d); font-weight: 400; font-size: .95rem; white-space: nowrap; }
.wr-biome__bar { height: .32em; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.wr-biome__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--bc), #fff); box-shadow: 0 0 .7em var(--bc); }
.wr-pw { position: absolute; left: 50%; transform: translateX(-50%); top: calc(max(8px, var(--safe-t)) + clamp(4.4rem, 2.8rem + 6vw, 8.2rem) + 4.4rem); display: flex; gap: .5rem; justify-content: center; }
.wr-pw__i { --pc: #fff; position: relative; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: rgba(15, 12, 34, .62); box-shadow: 0 0 0 2px var(--pc) inset, 0 0 1em color-mix(in srgb, var(--pc) 45%, transparent); display: grid; place-items: center; animation: wrpop .3s var(--ease); }
.wr-pw__i[hidden] { display: none; }
.wr-pw__i svg { width: 62%; height: 62%; fill: none; stroke: var(--pc); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wr-pw__i i { position: absolute; left: 12%; right: 12%; bottom: -.5rem; height: .28rem; border-radius: 9px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.wr-pw__i i em { display: block; height: 100%; width: 100%; background: var(--pc); border-radius: inherit; }
.wr-pw__i.low { animation: wrblink .5s steps(2) infinite; }
@keyframes wrpop { from { transform: scale(.5); opacity: 0; } }
@keyframes wrblink { 50% { opacity: .35; } }

/* ---------- banner / toast / tap hint / countdown ---------- */
.wr-banner { --bc: #FFC23D; position: absolute; z-index: 20; left: 50%; top: 32%; width: min(92vw, 40em); transform: translateX(-50%); text-align: center; pointer-events: none; opacity: 0; }
.wr-banner small { display: block; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; font-size: clamp(.7rem, .6rem + .5vw, 1rem); color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .75); }
.wr-banner h2 { margin: .1em 0 .12em; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; line-height: .95; font-size: clamp(2rem, 1rem + 4.6vw, 5rem); color: var(--bc); text-shadow: 0 .05em 0 rgba(20, 10, 50, .7), 0 0 .5em color-mix(in srgb, var(--bc) 55%, transparent), 0 .1em .4em rgba(0, 0, 0, .5); -webkit-text-stroke: .03em rgba(20, 10, 50, .6); paint-order: stroke fill; }
.wr-banner p { display: inline-block; margin: .2em 0 0; padding: .35em 1.1em; border-radius: 99px; background: rgba(15, 12, 34, .6); font-weight: 800; font-size: clamp(.8rem, .6rem + .6vw, 1.15rem); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset; }
.wr-banner.show { animation: wrbanner 3s var(--ease) forwards; }
.wr-banner.quick.show { animation-duration: 2.2s; }
@keyframes wrbanner { 0% { opacity: 0; transform: translate(-50%, 24px) scale(.82); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 20% { transform: translate(-50%, 0) scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -26px) scale(1); } }
.wr-toast { position: absolute; z-index: 22; left: 50%; bottom: max(14%, calc(var(--safe-b) + 70px)); transform: translate(-50%, 12px); max-width: min(92vw, 34em); padding: .6em 1.3em; border-radius: 99px; text-align: center; font-weight: 800; font-size: clamp(.85rem, .6rem + .6vw, 1.2rem); background: rgba(15, 12, 34, .84); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16) inset; pointer-events: none; opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.wr-toast.show { opacity: 1; transform: translate(-50%, 0); }
.wr-toast.new { box-shadow: 0 0 0 2px var(--wr-gold) inset, 0 0 1.4em rgba(255, 194, 61, .35); }
.wr-tap { position: absolute; z-index: 18; left: 50%; top: 66%; transform: translate(-50%, -50%); display: grid; justify-items: center; pointer-events: none; text-shadow: 0 .06em 0 rgba(0, 0, 0, .5); }
.wr-tap[hidden] { display: none; }
.wr-tap b { font-family: var(--font-d); font-weight: 400; font-size: clamp(2.4rem, 1.4rem + 3vw, 4.2rem); color: #fff; line-height: 1; margin-top: .1em; animation: wrtap 1.1s ease-in-out infinite; -webkit-text-stroke: .03em rgba(20, 10, 50, .6); paint-order: stroke fill; }
.wr-tap span { margin-top: .3em; padding: .3em 1em; border-radius: 99px; background: rgba(15, 12, 34, .7); font-weight: 800; font-size: clamp(.8rem, .6rem + .5vw, 1.1rem); }
.wr-tap__f { width: clamp(3rem, 2rem + 4vw, 5.5rem); height: auto; filter: drop-shadow(0 .15em 0 rgba(0, 0, 0, .4)); animation: wrtapf 1.1s ease-in-out infinite; }
.wr-tap__r { position: absolute; top: -.2em; width: 5em; height: 5em; border-radius: 50%; border: 4px solid var(--wr-gold); opacity: 0; animation: wrtapr 1.1s ease-out infinite; }
@keyframes wrtap { 50% { transform: scale(1.12); } }
@keyframes wrtapf { 0%, 100% { transform: translateY(0) rotate(-8deg); } 45% { transform: translateY(-.35em) rotate(-8deg); } 55% { transform: translateY(.1em) rotate(-8deg); } }
@keyframes wrtapr { 0% { transform: scale(.4); opacity: 0; } 50% { opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.wr-count { position: absolute; z-index: 30; inset: 0; display: grid; place-items: center; pointer-events: none; }
.wr-count[hidden] { display: none; }
.wr-count b { font-family: var(--font-d); font-weight: 400; font-size: clamp(5rem, 3rem + 10vw, 11rem); color: #fff; text-shadow: 0 .06em 0 rgba(20, 10, 50, .7), 0 0 .5em rgba(255, 194, 61, .55); -webkit-text-stroke: .04em rgba(20, 10, 50, .7); paint-order: stroke fill; animation: wrcount .8s var(--ease); }
@keyframes wrcount { 0% { transform: scale(2); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(.9); opacity: .9; } }

/* ---------- overlays ---------- */
.wr-ov { position: absolute; inset: 0; z-index: 40; display: none; overflow: auto; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-y; }
.wr-ov::-webkit-scrollbar { display: none; }
.wr-ov.show { display: block; animation: wrfade .3s ease; }
.wr-ov--screen.show { background: rgba(10, 8, 28, .68); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.wr-ov--center.show { background: rgba(15, 12, 34, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.wr-ov--menu.show { background: linear-gradient(90deg, rgba(15, 12, 34, .88) 0%, rgba(15, 12, 34, .6) 34%, rgba(15, 12, 34, .06) 58%, rgba(15, 12, 34, 0) 70%), linear-gradient(0deg, rgba(15, 12, 34, .5), rgba(15, 12, 34, 0) 26%); overflow: hidden; }
@keyframes wrfade { from { opacity: 0; } }
@keyframes wrpop2 { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.wr-fade { position: absolute; inset: 0; z-index: 60; background: #0F0C22; opacity: 0; pointer-events: none; transition: opacity .35s; }
.wr-fade.on { opacity: 1; }

/* ---------- menu ---------- */
.wr-menu { position: absolute; inset: 0; display: flex; align-items: center; padding: clamp(64px, 9vh, 120px) clamp(20px, 5vw, 110px) clamp(16px, 3vh, 40px) max(clamp(20px, 5vw, 110px), var(--safe-l)); }
.wr-menu__l { animation: wrpop2 .5s var(--ease); max-width: min(38em, 100%, 52vw); min-width: 0; }
.wr-kicker { display: inline-flex; align-items: center; gap: .6em; flex-wrap: wrap; font-weight: 800; font-size: clamp(.7rem, .55vw + .45rem, 1rem); letter-spacing: .16em; text-transform: uppercase; color: var(--wr-gold); }
.wr-kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.wr-kicker span { color: #CFC9F5; letter-spacing: .1em; padding: .15em .7em; border-radius: 99px; background: rgba(255, 255, 255, .09); }
.wr-title { margin: .08em 0 .14em; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; line-height: .86; font-size: clamp(3.2rem, min(8vw, 15vh), 10.5rem); letter-spacing: .005em; display: grid; justify-items: start; }
.wr-title b { font-weight: 400; display: block; background: linear-gradient(100deg, #FFF3A8 0%, #FFC23D 30%, #FF7B3A 55%, #FF4F7A 78%, #FFF3A8 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: wrslide2 7s linear infinite; filter: drop-shadow(0 .05em 0 rgba(30, 10, 40, .55)) drop-shadow(0 0 .45em rgba(255, 140, 60, .3)); }
.wr-title b.b2 { margin-left: .35em; animation-delay: -1.2s; }
@keyframes wrslide2 { to { background-position: -220% 0; } }
.wr-tag { margin: 0 0 clamp(14px, 2.4vh, 28px); font-size: clamp(.95rem, .5vw + .75rem, 1.35rem); font-weight: 600; color: #DCD7FF; max-width: 28em; line-height: 1.45; }
.wr-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(6px, 1.6vh, 20px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.f { fill: currentColor; stroke: none; }
.wr-cta .btn, .wr-sub .btn, .wr-acts .btn { gap: .55em; }
.wr-cta .btn--big { font-size: clamp(1.05rem, .5vw + .9rem, 1.6rem); }
.btn--flame { --bg: #FFB02E; --fg: #0F0C22; --sh: #B06A00; }
.btn--daily { --bg: #5A3FD0; --fg: #fff; --sh: #2A1A7A; }
.wr-sub { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.wr-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: clamp(14px, 2.4vh, 28px); }
.wr-chip { padding: .5em 1em; border-radius: 14px; background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; line-height: 1.05; text-align: left; }
.wr-chip small { display: block; font-size: .6rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }
.wr-chip b { font-family: var(--font-d); font-weight: 400; font-size: 1.3rem; }
.wr-chip b i { font-style: normal; font-size: .62em; color: var(--mute); }
.wr-dailytag { font-size: .62em; font-weight: 800; letter-spacing: .1em; padding: .15em .6em; border-radius: 99px; background: rgba(255, 255, 255, .18); margin-left: .3em; }

/* ---------- screens (den, trophies, ...) ---------- */
.wr-screen { position: relative; min-height: 100%; padding: max(72px, calc(var(--safe-t) + 64px)) max(16px, var(--safe-r)) max(30px, var(--safe-b)) max(16px, var(--safe-l)); }
.wr-screen--center { display: grid; place-items: center; padding-top: max(24px, var(--safe-t)); }
.wr-head { position: sticky; top: 0; z-index: 5; padding: .5rem 0 .8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(64em, 100%); margin: 0 auto .4rem; }
.wr-head h2 { margin: 0; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; font-size: clamp(1.4rem, 1rem + 1.8vw, 3rem); text-shadow: 0 4px 0 rgba(0, 0, 0, .4); }
.wr-bank { display: inline-flex; align-items: center; gap: .45em; padding: .4em 1em .4em .5em; border-radius: 99px; background: rgba(15, 12, 34, .7); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; font-family: var(--font-d); font-size: 1.15rem; }
.wr-bank svg { width: 1.6em; height: 1.6em; }
.wr-den { width: min(64em, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(16em, 22em) 1fr; gap: 1.2rem; align-items: start; }
.wr-prev { position: sticky; top: 4.2rem; padding: 1rem; border-radius: 24px; background: linear-gradient(180deg, #2A2260, #1B1540); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12) inset, 0 20px 60px rgba(0, 0, 0, .45); text-align: center; }
.wr-prev canvas { display: block; width: 100%; aspect-ratio: 1.15; border-radius: 16px; background: #1B1540; }
.wr-prev h3 { margin: .7rem 0 .1rem; font-family: var(--font-d); font-weight: 400; font-size: 1.7rem; text-transform: uppercase; }
.wr-prev p { margin: 0 0 .8rem; color: #CFC9F5; font-weight: 700; font-size: .9rem; }
.wr-prev .btn { width: 100%; }
.wr-prev .btn[disabled] { opacity: .55; filter: grayscale(.4); transform: none; cursor: default; }
.wr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.2em, 1fr)); gap: .8rem; }
.wr-dc { position: relative; border: 0; padding: .6rem .5rem .7rem; border-radius: 18px; color: #fff; text-align: center; background: linear-gradient(180deg, #2A2260, #1B1540); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset, 0 .3em 0 rgba(0, 0, 0, .35); transition: transform .14s var(--ease), box-shadow .2s; display: grid; gap: .25em; justify-items: center; }
.wr-dc:hover { transform: translateY(-3px); }
.wr-dc.sel { box-shadow: 0 0 0 3px var(--wr-gold) inset, 0 .3em 0 rgba(0, 0, 0, .35), 0 0 1.4em rgba(255, 194, 61, .35); }
.wr-dc canvas { width: 100%; aspect-ratio: 1.1; display: block; }
.wr-dc b { font-family: var(--font-d); font-weight: 400; font-size: 1rem; text-transform: uppercase; }
.wr-dc small { font-weight: 800; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.wr-dc .tag { position: absolute; top: .5rem; right: .5rem; padding: .15em .6em; border-radius: 99px; font-weight: 800; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; background: var(--wr-gold); color: var(--wr-ink); }
.wr-dc.lock canvas { filter: brightness(.25) saturate(.3); }
.wr-dc .cost { display: inline-flex; align-items: center; gap: .3em; font-family: var(--font-d); font-size: .85rem; color: var(--wr-gold); }
.wr-dc .cost svg { width: 1.2em; height: 1.2em; }
.wr-dc .padl { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.wr-dc .padl svg { width: 2rem; height: 2rem; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; margin-top: -1.2rem; }
.wr-trophy { width: min(60em, 100%); margin: 0 auto; display: grid; gap: 1rem; }
.wr-panel { padding: 1.2rem 1.3rem; border-radius: 22px; background: linear-gradient(180deg, #2A2260, #1B1540); box-shadow: 0 0 0 2px rgba(255, 255, 255, .1) inset, 0 20px 60px rgba(0, 0, 0, .4); }
.wr-panel h3 { margin: 0 0 .8rem; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; font-size: 1.05rem; color: var(--wr-gold); }
.wr-medals { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; text-align: center; }
.wr-medal { display: grid; justify-items: center; gap: .2rem; }
.wr-medal svg { width: 100%; max-width: 5.2rem; height: auto; }
.wr-medal.off svg { filter: grayscale(1) brightness(.5); opacity: .7; }
.wr-medal b { font-family: var(--font-d); font-weight: 400; font-size: .85rem; text-transform: uppercase; }
.wr-medal small { font-size: .7rem; font-weight: 800; color: var(--mute); letter-spacing: .06em; }
.wr-biomes { display: grid; grid-template-columns: repeat(auto-fill, minmax(11em, 1fr)); gap: .5rem; }
.wr-bi { --c: #fff; display: flex; align-items: center; gap: .6em; padding: .5em .8em; border-radius: 12px; background: rgba(255, 255, 255, .06); font-weight: 800; font-size: .8rem; }
.wr-bi i { width: .9em; height: .9em; border-radius: 50%; background: var(--c); box-shadow: 0 0 .7em var(--c); flex: none; }
.wr-bi.off { opacity: .4; } .wr-bi.off i { background: #555; box-shadow: none; }
.wr-bi small { display: block; font-size: .62rem; color: var(--mute); letter-spacing: .06em; font-weight: 700; }
.wr-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(8em, 1fr)); gap: .6rem; }

/* ---------- cards ---------- */
.wr-card { width: min(34em, 100%); text-align: center; padding: 1.7rem 1.8rem 1.5rem; border-radius: 28px; background: linear-gradient(180deg, #2A2260, #1B1540); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12) inset, 0 30px 80px rgba(0, 0, 0, .55); animation: wrpop2 .4s var(--ease); margin: auto; }
.wr-card h2 { font-family: var(--font-d); font-weight: 400; font-size: clamp(1.7rem, 1.1rem + 1.7vw, 3rem); line-height: 1; margin: .1em 0 .3em; text-transform: uppercase; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.wr-card h3 { font-family: var(--font-d); font-weight: 400; text-transform: uppercase; font-size: 1rem; color: var(--wr-gold); margin: 1.1em 0 .5em; text-align: left; }
.wr-k { display: block; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; color: var(--wr-gold); }
.wr-sub2 { margin: 0 0 1rem; color: #CFC9F5; font-weight: 600; }
.wr-note { margin: .8rem 0 0; font-size: .82rem; color: var(--mute); font-weight: 600; }
.wr-acts { display: grid; gap: .65rem; margin-top: 1.1rem; }
.wr-acts .row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.wr-acts .btn { width: 100%; }
.wr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.4em, 1fr)); gap: .6rem; margin: 1rem 0 .4rem; }
.wr-stats .wr-chip { text-align: center; padding: .6em .4em; }
.wr-big { font-family: var(--font-d); font-size: clamp(3.4rem, 2rem + 5vw, 5.6rem); line-height: 1; color: #fff; text-shadow: 0 5px 0 rgba(0, 0, 0, .4); -webkit-text-stroke: .04em rgba(20, 10, 50, .5); paint-order: stroke fill; }
.wr-biglab { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-top: 2px; }
.wr-over__bar { height: .7em; margin: .8rem 1.5rem 0; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; } .wr-over__bar i { display: block; height: 100%; background: linear-gradient(90deg, #FF7B3A, #FFD23F); border-radius: inherit; transition: width .8s var(--ease); }
.wr-rec { display: inline-block; margin: .6rem 0 0; padding: .35em 1em; border-radius: 99px; background: var(--wr-gold); color: var(--wr-ink); font-family: var(--font-d); font-size: .9rem; transform: rotate(-3deg); box-shadow: 0 3px 0 #B68A00; animation: wrpop2 .5s .3s both var(--ease); }
.wr-medalbig { width: 6.2rem; margin: -.2rem auto .1rem; animation: wrmedal .8s .15s both cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 .4em 0 rgba(0, 0, 0, .3)); }
.wr-medalbig.none { filter: grayscale(1) brightness(.5) drop-shadow(0 .4em 0 rgba(0, 0, 0, .3)); opacity: .75; width: 4.6rem; }
@keyframes wrmedal { 0% { transform: scale(0) rotate(-50deg); } 100% { transform: scale(1) rotate(0); } }
.wr-card--final { width: min(36em, 100%); box-shadow: 0 0 0 3px #FFC23D inset, 0 30px 80px rgba(0, 0, 0, .55), 0 0 100px rgba(255, 194, 61, .35); }
.wr-card--how { text-align: left; width: min(42em, 100%); } .wr-card--how h2 { text-align: center; }
.wr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.wr-steps li { display: grid; grid-template-columns: 2.2em 1fr; gap: .8rem; align-items: center; } .wr-steps li b { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: var(--wr-gold); color: var(--wr-ink); font-family: var(--font-d); font-weight: 400; }
.wr-steps p { margin: 0; font-weight: 600; color: #E2DEFF; font-size: .95rem; line-height: 1.35; }
.wr-pwl { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; } .wr-pwl li { display: grid; grid-template-columns: 2.4em 1fr; gap: .8rem; align-items: center; } .wr-pwl p { margin: 0; font-weight: 600; color: #E2DEFF; font-size: .92rem; line-height: 1.3; }
.wr-pwl .pi { --pc: #fff; width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--pc) inset; background: rgba(0, 0, 0, .25); } .wr-pwl .pi svg { width: 60%; height: 60%; fill: none; stroke: var(--pc); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wr-opt { text-align: left; margin: .7rem 0; display: grid; gap: .35rem; } .wr-opt small { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.wr-seg { display: flex; gap: 6px; flex-wrap: wrap; } .wr-seg button { flex: 1; min-width: 4.4em; min-height: 44px; padding: .55em .9em; border: 0; border-radius: 11px; background: rgba(255, 255, 255, .08); font-weight: 800; font-size: .9rem; color: #D6D1FA; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; transition: background .15s, transform .1s; }
.wr-seg button:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); } .wr-seg button.on { background: var(--wr-gold); color: var(--wr-ink); box-shadow: none; }
.wr-seg button.danger.on, .wr-seg button.danger:hover { background: #FF5B4A; color: #fff; }
.wr-shake { animation: wrshake .35s; }
@keyframes wrshake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* ---------- responsive ---------- */
@media (max-aspect-ratio: 1/1) {
  .wr-ov--menu.show { background: linear-gradient(0deg, rgba(15, 12, 34, .96) 0%, rgba(15, 12, 34, .82) 40%, rgba(15, 12, 34, .3) 58%, rgba(15, 12, 34, 0) 70%), linear-gradient(180deg, rgba(15, 12, 34, .72), rgba(15, 12, 34, .5) 30%, rgba(15, 12, 34, 0) 50%); }
  .wr-tag { text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
  .wr-menu { padding: max(70px, calc(var(--safe-t) + 60px)) max(18px, var(--safe-r)) max(20px, var(--safe-b)) max(18px, var(--safe-l)); text-align: center; }
  .wr-menu__l { display: flex; flex-direction: column; align-items: center; height: 100%; width: 100%; max-width: 30em; margin: 0 auto; }
  .wr-title { justify-items: center; font-size: clamp(3.4rem, 18vw, 6.8rem); } .wr-title b.b2 { margin-left: 0; }
  .wr-kicker { justify-content: center; } .wr-kicker span { display: none; }
  .wr-tag { font-size: .95rem; margin-bottom: 0; }
  .wr-cta { margin-top: auto; flex-direction: column; width: 100%; } .wr-cta .btn { width: 100%; }
  .wr-sub { justify-content: center; } .wr-chips { justify-content: center; margin-top: .9rem; }
  .wr-brand b { display: none; } .wr-brand { padding: 6px; }
  .wr-den { grid-template-columns: 1fr; } .wr-prev { position: relative; top: 0; display: grid; grid-template-columns: 8.5em 1fr; gap: .4rem .9rem; text-align: left; align-items: center; padding: .8rem; } .wr-prev canvas { grid-row: 1 / 4; } .wr-prev h3 { margin: 0; align-self: end; font-size: 1.35rem; } .wr-prev p { margin: 0; } .wr-prev .btn { grid-column: 2; }
  .wr-biome { min-width: 11em; } .wr-pw { top: calc(max(8px, var(--safe-t)) + clamp(4.4rem, 2.8rem + 6vw, 8.2rem) + 4.1rem); }
  .wr-pw__i { width: 2.6rem; height: 2.6rem; }
  .wr-toast { bottom: max(11%, calc(var(--safe-b) + 70px)); }
}
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .wr-menu { padding-top: 56px; align-items: center; } .wr-tag, .wr-chips, .wr-kicker span { display: none; } .wr-title { font-size: clamp(2.4rem, 17vh, 4.6rem); } .wr-sub { margin-top: .6rem; }
  .wr-cta .btn--big { font-size: 1rem; padding: .6em 1.2em; }
  .wr-pill b { font-size: 1.05rem; } .wr-score b { font-size: clamp(2.6rem, 14vh, 4rem); } .wr-biome { left: max(14px, var(--safe-l)); transform: none; top: calc(max(12px, var(--safe-t)) + 3rem); padding: .3em .8em .4em; min-width: 9.5em; text-align: left; } .wr-pw { top: calc(max(8px, var(--safe-t)) + 3.7rem); } .wr-pw__i { width: 2.3rem; height: 2.3rem; } .wr-score small { display: none; }
  .wr-card { padding: 1rem 1.2rem; border-radius: 22px; } .wr-acts { margin-top: .6rem; } .wr-stats { margin: .5rem 0 .2rem; } .wr-big { font-size: 2.8rem; } .wr-card h2 { margin-bottom: .1em; } .wr-sub2 { margin-bottom: .4rem; font-size: .85rem; } .wr-medalbig { width: 3.8rem; } .wr-medalbig.none { width: 3rem; }
  .wr-tap { top: 70%; } .wr-banner { top: 26%; }
  .wr-screen { padding-top: 60px; } .wr-den { grid-template-columns: 15em 1fr; } .wr-prev { top: 3.4rem; padding: .6rem; } .wr-prev h3 { margin-top: .3rem; font-size: 1.3rem; } .wr-prev p { margin-bottom: .4rem; }
}
@media (max-height: 720px) and (max-aspect-ratio: 1/1) {
  .wr-screen--center { padding-top: 64px; padding-bottom: 20px; align-items: start; }
  .wr-card { padding: 1.1rem 1.2rem 1rem; border-radius: 24px; } .wr-big { font-size: 3.2rem; } .wr-medalbig { width: 4.6rem; } .wr-medalbig.none { width: 3.6rem; } .wr-stats { margin: .6rem 0 .3rem; } .wr-acts { margin-top: .7rem; } .wr-card h2 { font-size: 1.8rem; }
}
.wr-stats.c3 { grid-template-columns: repeat(3, 1fr); gap: .45rem; }
@media (prefers-reduced-motion: reduce) { .wr-title b, .wr-tap b, .wr-tap__f, .wr-tap__r, .wr-pw__i.low { animation: none; } }
@media (max-width: 560px) { .wr-stats:not(.c3) { grid-template-columns: 1fr 1fr; } .wr-medals { gap: .3rem; } .wr-medal b { font-size: .7rem; } }
