/* =====================================================================================
   PIXDLY WORLD — game UI
   Dark lacquered frame, gold/violet accents, pill counters, notched tabs, round icon buttons.
   ===================================================================================== */
@font-face { font-family: 'Russo One'; src: url('../fonts/russo-one-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Russo One'; src: url('../fonts/russo-one-latin-ext-400-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-ext-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --frame: #0c0d14; --frame2: #14151f; --panel: #181924; --panel2: #1f2030; --panel3: #262739;
  --pill: #0a0b11; --ring: #2a2b3b; --line: rgba(255,255,255,.07);
  --text: #ffffff; --muted: #9b9db3; --dim: #6d6f85;
  --gold: #f6c453; --gold2: #e3961f; --gold3: #fff0b0;
  --violet: #8f3dff; --violet2: #b25cff; --magenta: #ff3d8b; --green: #2fbf4f; --red: #ff4d5e;
  --st-peace: #30c24d; --st-tension: #f2d33b; --st-threat: #ff8a2a; --st-conflict: #ff3b4a; --st-protected: #3b8cff; --st-inactive: #7c8095;
  --r-xl: 26px; --r-lg: 18px; --r-md: 12px;
  --shadow: 0 18px 50px rgba(0,0,0,.55), 0 2px 0 rgba(255,255,255,.04) inset;
  --display: 'Russo One', 'Barlow', system-ui, sans-serif;
  --ui: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #05060b; color: var(--text); font-family: var(--ui); font-weight: 600; -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: var(--text); }
a { color: var(--gold); }
img { display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg { display: block; }

/* ---------- globe stage ---------- */
#stage { position: fixed; inset: 0; background: radial-gradient(1200px 700px at 50% 40%, #101a3a 0%, #070912 60%, #030409 100%); }
#globe { position: absolute; inset: 0; }
#globe canvas { outline: none; }
.stage-vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%); }
#boot { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: #05060b; transition: opacity .6s; }
#boot.done { opacity: 0; pointer-events: none; }
.boot-inner { display: grid; justify-items: center; gap: 14px; }
.boot-bar { width: 220px; height: 8px; border-radius: 8px; background: #151622; overflow: hidden; box-shadow: inset 0 1px 3px #000; }
.boot-bar i { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, var(--violet), var(--magenta), var(--gold)); border-radius: 8px; animation: boot 1.2s ease-in-out infinite; }
@keyframes boot { 0% { transform: translateX(-100%); } 100% { transform: translateX(330%); } }

/* ---------- shared atoms ---------- */
.gold-text { background: linear-gradient(180deg, #fff3b8 0%, #f6c453 45%, #d88a17 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.display { font-family: var(--display); letter-spacing: .02em; text-transform: uppercase; }
.muted { color: var(--muted); }
.caps { text-transform: uppercase; letter-spacing: .04em; }

.pill { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 6px; border-radius: 24px; background: var(--pill);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.05); font-size: 18px; font-weight: 700; white-space: nowrap; }
.pill .ico { width: 36px; height: 36px; display: grid; place-items: center; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.pill .ico svg { width: 32px; height: 32px; }
.pill .val { min-width: 58px; font-variant-numeric: tabular-nums; }
.pill .sub { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-left: -4px; }
.pill-btn { width: 38px; height: 38px; margin-right: -12px; border-radius: 50%; display: grid; place-items: center; }
.pill-btn svg { width: 20px; height: 20px; }
.pill-btn.violet { background: radial-gradient(circle at 50% 35%, #3a2766, #20163d); border: 2px solid #5b3bb0; color: #d8c8ff; }
.pill-btn.green { width: 40px; height: 40px; background: radial-gradient(circle at 50% 30%, #6cf07f, #1f9a3a 70%); border: 2px solid #0e5d22; color: #fff; box-shadow: 0 2px 0 #0a3d17, 0 0 14px rgba(47,191,79,.45); }
.round { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #e6e7f2;
  background: radial-gradient(circle at 50% 30%, #2a2b3c, #161722 70%); box-shadow: inset 0 0 0 2px #2c2d3f, 0 4px 10px rgba(0,0,0,.5); transition: transform .12s, box-shadow .12s; position: relative; }
.round:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 2px #4a3a8a, 0 6px 16px rgba(0,0,0,.6); }
.round svg { width: 24px; height: 24px; }
.round.lg { width: 60px; height: 60px; } .round.lg svg { width: 26px; height: 26px; }
.badge-new { position: absolute; top: -10px; right: -12px; padding: 2px 7px; border-radius: 6px; background: linear-gradient(#ff4f7e, #e2155a); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 2px 6px rgba(226,21,90,.5); }
.badge-dot { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--magenta); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--frame); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: 24px; font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(180deg, #2a2b3d, #1b1c29); box-shadow: inset 0 0 0 1.5px #34354a, 0 4px 10px rgba(0,0,0,.4); transition: transform .1s, filter .1s; white-space: nowrap; }
.btn:hover { filter: brightness(1.15); } .btn:active { transform: translateY(1px); }
.btn.gold { color: #2b1a00; background: linear-gradient(180deg, #ffe488 0%, #f6b733 55%, #d98a12 100%); box-shadow: inset 0 -3px 0 rgba(120,60,0,.45), inset 0 2px 0 rgba(255,255,255,.55), 0 6px 18px rgba(246,183,51,.35); }
.btn.violet { background: linear-gradient(180deg, #a65bff 0%, #7a2cf0 60%, #5a19c4 100%); box-shadow: inset 0 -3px 0 rgba(30,0,80,.45), inset 0 2px 0 rgba(255,255,255,.35), 0 6px 18px rgba(143,61,255,.4); }
.btn.green { background: linear-gradient(180deg, #5fe475, #22a03e 60%, #167a2c); box-shadow: inset 0 -3px 0 rgba(0,50,10,.45), inset 0 2px 0 rgba(255,255,255,.4), 0 6px 18px rgba(47,191,79,.35); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px #3a3b52; }
.btn.sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: #10111a; box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #cfd0e0; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px currentColor; background: currentColor; }
.st-peace { color: var(--st-peace); } .st-tension { color: var(--st-tension); } .st-threat { color: var(--st-threat); } .st-conflict { color: var(--st-conflict); } .st-protected { color: var(--st-protected); } .st-inactive { color: var(--st-inactive); }
.flag { width: 30px; height: 22px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 2px 4px rgba(0,0,0,.4); background: #222; }
.flag.sq { width: 44px; height: 44px; border-radius: 9px; }
.flag.lg { width: 64px; height: 48px; border-radius: 8px; }

/* ---------- top bar ---------- */
.topbar { position: fixed; z-index: 20; top: 10px; left: 10px; right: 10px; height: 70px; border-radius: var(--r-xl); display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: linear-gradient(180deg, rgba(22,23,33,.97), rgba(12,13,20,.97)); box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; padding-right: 6px; text-decoration: none; }
.brand-name { font-family: var(--display); font-size: 19px; line-height: .9; letter-spacing: .03em; text-transform: uppercase; }
.brand-name small { display: block; font-size: 11px; letter-spacing: .32em; color: var(--muted); font-family: var(--ui); font-weight: 800; margin-top: 3px; }
.top-center { position: absolute; left: 50%; top: 0; transform: translateX(-50%); height: 64px; min-width: 300px; padding: 0 48px; display: grid; place-items: center;
  background: linear-gradient(180deg, #1f2030, #171823); clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); }
.top-cta { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding-bottom: 4px; white-space: nowrap; }
.top-cta .chev { color: var(--gold); width: 22px; } .top-cta .chev.l { transform: scaleX(-1); }
.top-cta:hover .chev { filter: drop-shadow(0 0 6px var(--gold)); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.clockbar { position: fixed; z-index: 19; top: 86px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; }
.clock-pill { height: 30px; padding: 0 16px; border-radius: 15px; background: rgba(12,13,20,.88); box-shadow: inset 0 0 0 1px var(--line), 0 6px 16px rgba(0,0,0,.4); display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.clock-pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
.clock-pill.off .live { background: var(--st-inactive); box-shadow: none; animation: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* navigation (game tabs) */
.navtabs { position: fixed; z-index: 19; top: 124px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 22px; background: rgba(10,11,17,.86); box-shadow: inset 0 0 0 1px var(--line), 0 8px 20px rgba(0,0,0,.4); }
.navtabs button { height: 34px; padding: 0 14px; border-radius: 17px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b9bbd0; white-space: nowrap; }
.navtabs button:hover { color: #fff; background: #1c1d2a; }
.navtabs button.on { color: #fff; background: linear-gradient(180deg, #2c2d42, #1d1e2c); box-shadow: inset 0 0 0 1px #3d3e58, 0 0 12px rgba(143,61,255,.25); }

/* ---------- league panel (left) ---------- */
.league { position: fixed; z-index: 15; left: 10px; top: 170px; width: 330px; border-radius: 0 var(--r-lg) var(--r-lg) 0; background: linear-gradient(180deg, rgba(27,28,40,.96), rgba(20,21,31,.96)); box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.league.collapsed { transform: translateX(calc(-100% + 0px)); }
.league-tab { position: absolute; right: -34px; top: 50%; transform: translateY(-50%); width: 34px; height: 120px; display: grid; place-items: center; color: var(--gold);
  background: linear-gradient(180deg, #1c1d2a, #15161f); clip-path: polygon(0 0, 100% 14%, 100% 86%, 0 100%); }
.league-tab svg { width: 22px; transition: transform .3s; } .league:not(.collapsed) .league-tab svg { transform: scaleX(-1); }
.league-head { display: flex; gap: 10px; align-items: center; padding: 10px 14px 6px 0; margin-left: -6px; }
.crest { width: 118px; height: 112px; flex: none; position: relative; display: grid; place-items: center; margin-top: -26px; }
.crest svg.crest-frame { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.crest img { position: relative; width: 58px; height: 44px; border-radius: 6px; margin-top: -6px; box-shadow: 0 0 0 2px #2b1c00, 0 3px 6px rgba(0,0,0,.6); object-fit: cover; }
.league-title .t1 { font-family: var(--display); font-size: 25px; line-height: 1.05; text-transform: uppercase; }
.league-title .t2 { font-family: var(--display); font-size: 23px; line-height: 1.1; color: #d6d7e6; text-transform: uppercase; }
.league-title .t3 { display: flex; align-items: center; gap: 5px; font-size: 14px; color: #d7d8e6; margin-top: 4px; }
.league-title .t3 svg { width: 15px; }
.league-strip { display: flex; align-items: center; gap: 18px; margin: 4px 12px 6px 0; padding: 0 12px 0 14px; height: 46px; border-radius: 0 24px 24px 0; background: #111219; box-shadow: inset 0 2px 5px rgba(0,0,0,.6); }
.league-strip .money { font-size: 21px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.league-strip .rank { display: flex; align-items: center; gap: 6px; font-size: 21px; font-weight: 800; }
.league-strip .rank svg { width: 24px; }
.league-strip .i { margin-left: auto; color: var(--gold); width: 28px; height: 28px; display: grid; place-items: center; }
.league-strip .i svg { width: 26px; }
.league-rows { padding: 2px 12px 12px 14px; }
.lrow { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 10px 0 6px; border-radius: 10px; width: 100%; text-align: left; }
.lrow:hover { background: rgba(255,255,255,.03); }
.lrow.me { background: linear-gradient(90deg, #26273a, #20212f); box-shadow: inset 0 0 0 1px #33344a; }
.lrow .av { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.12); background: #222; }
.lrow .av img { width: 100%; height: 100%; object-fit: cover; }
.lrow .pts { font-size: 15px; color: #c9cbdc; letter-spacing: .03em; text-transform: uppercase; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .pts b { display: block; font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.lrow.me .pts { color: #fff; }
.lrow .no { font-size: 25px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }
.relegation { display: flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; padding: 10px 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0; color: #e6e7f2; }
.relegation svg { width: 18px; }

/* ---------- right column: banners + medallions ---------- */
.promo { position: fixed; z-index: 15; right: 10px; top: 170px; display: grid; grid-template-columns: 304px 100px; gap: 14px 10px; align-items: center; }
.banner { position: relative; height: 124px; border-radius: 12px; overflow: hidden; text-align: left; box-shadow: 0 10px 24px rgba(0,0,0,.5); transition: transform .15s, box-shadow .15s; }
.banner:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 14px 30px rgba(0,0,0,.6), 0 0 0 2px rgba(255,255,255,.18); }
.banner .bg { position: absolute; inset: 0; }
.banner .bt { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 30px; line-height: .95; text-transform: uppercase; letter-spacing: .01em;
  -webkit-text-stroke: 1.5px rgba(40,10,60,.85); paint-order: stroke fill; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.banner .bs { position: absolute; left: 16px; bottom: 10px; padding: 3px 10px; border-radius: 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; background: rgba(10,8,25,.65); text-transform: uppercase; }
.banner .art { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 104px; height: 104px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.banner .dots { position: absolute; left: 50%; bottom: 6px; display: flex; gap: 5px; transform: translateX(-50%); }
.banner .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); } .banner .dots i.on { background: #fff; }
.b-blue { background: radial-gradient(160px 120px at 75% 40%, #4fb3ff 0%, transparent 70%), linear-gradient(135deg, #0e3fb8, #1a73ff 50%, #0a2a8a); box-shadow: inset 0 0 0 2px rgba(120,190,255,.6), 0 10px 24px rgba(0,0,0,.5); }
.b-purple { background: radial-gradient(160px 120px at 80% 30%, #ff6fd8 0%, transparent 70%), linear-gradient(135deg, #4a0f7a, #9a2bc8 55%, #3a0a6a); box-shadow: inset 0 0 0 2px rgba(255,140,240,.5), 0 10px 24px rgba(0,0,0,.5); }
.b-gold { background: radial-gradient(180px 120px at 30% 60%, #3a6bff 0%, transparent 70%), linear-gradient(135deg, #0b1a5a, #1b2f9a 60%, #0a1240); box-shadow: inset 0 0 0 3px #f2c14e, 0 0 22px rgba(242,193,78,.35), 0 10px 24px rgba(0,0,0,.5); }
.banner .bt.ice { background: linear-gradient(180deg, #fff 0%, #d6ecff 45%, #7fb8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1.5px #0b2a7a; }
.banner .bt.pink { background: linear-gradient(180deg, #fff 0%, #ffd2f4 50%, #ff7fd6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1.5px #4a0a5a; }
.banner .bt.gold { background: linear-gradient(180deg, #fff7c8 0%, #ffd34f 50%, #d98a12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1.5px #3a1f00; }
.medal { display: grid; justify-items: center; gap: 2px; text-align: center; }
.medal .m-art { width: 84px; height: 72px; position: relative; filter: drop-shadow(0 6px 8px rgba(0,0,0,.6)); transition: transform .15s; }
.medal:hover .m-art { transform: scale(1.06) rotate(-3deg); }
.medal .m-art svg { width: 100%; height: 100%; }
.medal .m-name { font-family: var(--display); font-size: 15px; line-height: 1; text-transform: uppercase; margin-top: -10px; -webkit-text-stroke: 1px #3a1f00; paint-order: stroke fill; }
.medal .m-time { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.medal .m-cap { font-size: 10px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* ---------- online now (top-right list, live presence) ---------- */
.online { position: fixed; z-index: 14; right: 10px; top: 586px; width: 414px; border-radius: 14px; background: rgba(14,15,22,.82); box-shadow: inset 0 0 0 1px var(--line); padding: 8px 10px; }
.online h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.online ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-height: 64px; overflow: hidden; }
.online li { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: 14px; background: #191a26; font-size: 13px; }
.online li img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; }

/* ---------- world stats strip ---------- */
.stats { position: fixed; z-index: 14; left: 50%; bottom: 140px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 20px; background: rgba(10,11,17,.86); box-shadow: inset 0 0 0 1px var(--line), 0 10px 26px rgba(0,0,0,.45); max-width: calc(100vw - 20px); overflow-x: auto; scrollbar-width: none; }
.stats::-webkit-scrollbar { display: none; }
.stat { display: grid; padding: 4px 12px; border-radius: 14px; min-width: 92px; text-align: center; background: #12131c; }
.stat b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { font-size: 10px; letter-spacing: .09em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }

/* ---------- bottom bar ---------- */
.bottombar { position: fixed; z-index: 20; left: 10px; right: 10px; bottom: 10px; height: 92px; border-radius: var(--r-xl); display: flex; align-items: center; gap: 14px; padding: 0 22px;
  background: linear-gradient(180deg, rgba(24,25,35,.97), rgba(13,14,21,.98)); box-shadow: var(--shadow); }
.me-card { display: flex; align-items: center; gap: 12px; text-align: left; min-width: 0; }
.me-card .txt { display: grid; gap: 2px; min-width: 0; }
.avatar { width: 54px; height: 54px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #3a3b55, #191a27); box-shadow: 0 0 0 2px #2f3046, 0 0 0 4px #13141d; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 30px; height: 30px; color: #8c8ea8; }
.me-name { font-size: 20px; font-weight: 700; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.me-id { font-size: 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.me-id.warn { color: var(--gold); }
.bar-pill { height: 50px; padding: 0 28px; border-radius: 25px; font-size: 18px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: linear-gradient(180deg, #212232, #181924); box-shadow: inset 0 0 0 1.5px #2b2c3e, 0 3px 8px rgba(0,0,0,.4); }
.bar-pill:hover { box-shadow: inset 0 0 0 1.5px #4b3b8f, 0 3px 12px rgba(0,0,0,.5); }
.notch { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 380px; height: 104px; display: grid; justify-items: center; align-content: end; padding-bottom: 14px; }
.notch::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: linear-gradient(180deg, #1d1e2c, #11121b); clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%); border-radius: 0; }
.wheel { position: absolute; top: -26px; width: 190px; height: 95px; overflow: hidden; z-index: 1; cursor: pointer; }
.wheel .disc { width: 190px; height: 190px; border-radius: 50%; background: conic-gradient(from 0deg, #ffffff 0 30deg, #6ad8ff 0 60deg, #2a7bff 0 90deg, #8f3dff 0 120deg, #ff6fd8 0 150deg, #ffffff 0 180deg, #6ad8ff 0 210deg, #2a7bff 0 240deg, #8f3dff 0 270deg, #ff6fd8 0 300deg, #6ad8ff 0 330deg, #2a7bff 0 360deg);
  box-shadow: inset 0 0 0 6px #f6c453, inset 0 0 0 9px #7a4a08, 0 0 24px rgba(143,61,255,.5); transition: transform 1.6s cubic-bezier(.15,.85,.2,1); }
.wheel .hub { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #2a1d4a, #120c24); box-shadow: 0 0 0 4px #f6c453, 0 0 0 7px #4a2c05, 0 0 16px rgba(246,196,83,.5); display: grid; place-items: start center; padding-top: 6px; }
.wheel .hub svg { width: 34px; height: 34px; }
.wheel .hub-name { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 800; letter-spacing: .1em; color: #fff; text-shadow: 0 1px 3px #000, 0 0 6px #000; white-space: nowrap; text-transform: uppercase; }
.collect { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; }
.collect .tri { width: 26px; height: 26px; display: grid; place-items: center; color: #e8e9f5; }
.collect .tri svg { width: 13px; height: 15px; }
.collect .cbtn { height: 44px; min-width: 150px; padding: 0 22px; border-radius: 12px; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(180deg, #2a2b3e, #1b1c2a); box-shadow: inset 0 0 0 1.5px #383a52, 0 4px 10px rgba(0,0,0,.4); }
.collect .cbtn:hover { box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 14px rgba(246,196,83,.35); }
.collect .clabel { display: none; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; text-transform: uppercase; }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.gold-pill { height: 56px; width: 110px; border-radius: 28px; display: grid; place-items: center; background: linear-gradient(180deg, #1c1d2a, #12131b); box-shadow: inset 0 0 0 2.5px #e7b13a, 0 0 16px rgba(231,177,58,.2); margin-left: 18px; }
.gold-pill svg { width: 40px; height: 26px; }
.gold-pill.on { box-shadow: inset 0 0 0 2.5px #fff0b0, 0 0 22px rgba(231,177,58,.5); }

/* map modes grid (Roblox-style) */
.modes { position: fixed; z-index: 21; right: 10px; bottom: 112px; display: grid; grid-template-columns: repeat(3, 118px); gap: 6px; padding: 8px; border-radius: 16px; background: rgba(12,13,20,.95); box-shadow: var(--shadow); transform-origin: bottom right; transition: transform .2s, opacity .2s; }
.modes.hidden { transform: scale(.9); opacity: 0; pointer-events: none; }
.modes h5 { grid-column: 1 / -1; margin: 2px 4px 2px; font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.modes button { height: 46px; border-radius: 10px; background: #1a1b27; font-size: 14px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.modes button.on { background: linear-gradient(180deg, #34245e, #22173f); box-shadow: inset 0 0 0 1.5px var(--violet2); }
.legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 6px 4px 2px; font-size: 12px; color: #cfd0e0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- globe tooltip + markers ---------- */
.tip { position: fixed; z-index: 30; pointer-events: none; padding: 8px 12px; border-radius: 10px; background: rgba(10,11,17,.92); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 8px 20px rgba(0,0,0,.5); font-size: 13px; line-height: 1.35; min-width: 160px; transform: translate(14px, 14px); display: none; }
.tip .tn { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.tip .tn img { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; }
.tip .tr { color: var(--muted); } .tip .tr b { color: #fff; font-weight: 700; }
.pin { transform: translate(-50%, -100%); display: flex; align-items: center; gap: 4px; padding: 2px 6px 2px 2px; border-radius: 6px; background: rgba(10,11,17,.85); box-shadow: 0 0 0 1px rgba(255,255,255,.15); font: 700 11px var(--ui); color: #fff; white-space: nowrap; pointer-events: auto; cursor: pointer; }
.pin img { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 1px; height: 5px; background: rgba(255,255,255,.6); }

/* ---------- country spotlight card (center) ---------- */
.spot-wrap { position: fixed; z-index: 25; left: 50%; top: 50%; transform: translate(-50%, -46%); width: min(620px, calc(100vw - 24px)); display: none; }
.spot-wrap.show { display: block; animation: spotIn .28s cubic-bezier(.2,.9,.2,1.1); }
@keyframes spotIn { from { opacity: 0; transform: translate(-50%, -40%) scale(.96); } }
.spot-card { position: relative; }
.spot-stack { position: absolute; left: 4%; right: 4%; height: 40px; border-radius: 14px 14px 0 0; background: linear-gradient(180deg, #2a1c4a, #1a1230); opacity: .85; box-shadow: inset 0 0 0 1px rgba(178,92,255,.35); overflow: hidden; }
.spot-stack.top { top: -44px; } .spot-stack.top2 { top: -80px; left: 8%; right: 8%; opacity: .5; }
.spot-stack.bot { bottom: -42px; border-radius: 0 0 14px 14px; } .spot-stack.bot2 { bottom: -76px; left: 8%; right: 8%; opacity: .5; border-radius: 0 0 14px 14px; }
.spot-stack img { width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: blur(2px) saturate(1.3); }
.spot { position: relative; height: 196px; border-radius: 14px; overflow: hidden; background: #160f2c; box-shadow: 0 0 0 2px #b25cff, 0 0 28px rgba(178,92,255,.55), 0 20px 50px rgba(0,0,0,.7); }
.spot .sbg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(6px) saturate(1.5) brightness(.6); transform: scale(1.15); }
.spot .sglow { position: absolute; inset: 0; background: radial-gradient(260px 160px at 50% 110%, rgba(255,80,200,.45), transparent 70%), radial-gradient(300px 200px at 50% -20%, rgba(80,120,255,.45), transparent 70%), linear-gradient(90deg, rgba(20,8,45,.92) 0%, rgba(20,8,45,.35) 50%, rgba(20,8,45,.9) 100%); }
.spot .sname { position: absolute; left: 22px; top: 18px; font-family: var(--display); font-size: 38px; line-height: 1; text-transform: uppercase; max-width: 52%; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.spot .sname.long { font-size: 28px; }
.spot .ssub { position: absolute; left: 22px; bottom: 18px; font-size: 16px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.spot .sright { position: absolute; right: 22px; top: 18px; text-align: right; font-size: 20px; font-weight: 800; line-height: 1.2; text-transform: uppercase; }
.spot .sright small { display: block; font-size: 13px; color: #d8c8ff; letter-spacing: .1em; }
.spot .semblem { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 120px; height: 150px; display: grid; place-items: center; }
.spot .semblem svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
.spot .semblem img { position: relative; width: 70px; height: 52px; border-radius: 6px; margin-top: -16px; object-fit: cover; box-shadow: 0 0 0 2px #2b1c00; }
.spot .sguard { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: 11px; letter-spacing: .12em; color: #cbbfff; text-transform: uppercase; white-space: nowrap; }
.spot-back { position: absolute; right: -54px; top: -6px; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(180deg, #a65bff, #6a22d8); box-shadow: 0 4px 12px rgba(143,61,255,.5); }
.spot-back svg { width: 22px; }
.spot-actions { position: relative; margin-top: 92px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ---------- windows (modals) ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(4,4,10,.62); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: fade .18s; }
@keyframes fade { from { opacity: 0; } }
.win { width: min(880px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column; border-radius: var(--r-xl); background: linear-gradient(180deg, #1b1c28, #12131b); box-shadow: 0 0 0 1.5px #2c2d40, 0 30px 80px rgba(0,0,0,.7); overflow: hidden; animation: pop .22s cubic-bezier(.2,.9,.25,1.15); }
.win.sm { width: min(480px, 100%); } .win.md { width: min(640px, 100%); } .win.xl { width: min(1100px, 100%); }
@keyframes pop { from { transform: scale(.94) translateY(10px); opacity: 0; } }
.win-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 18px 14px 22px; background: linear-gradient(180deg, #232436, #1a1b28); box-shadow: 0 1px 0 var(--line); }
.win-head h2 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-head .x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #11121a; box-shadow: inset 0 0 0 1.5px #2e2f44; color: #cfd0e0; flex: none; }
.win-head .x svg { width: 18px; }
.win-tabs { display: flex; gap: 4px; padding: 10px 18px 0; overflow-x: auto; scrollbar-width: none; flex: none; }
.win-tabs button { height: 36px; padding: 0 16px; border-radius: 12px 12px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #15161f; white-space: nowrap; }
.win-tabs button.on { color: #fff; background: #1f2030; box-shadow: inset 0 2px 0 var(--violet2); }
.win-body { padding: 18px 22px 22px; overflow: auto; flex: 1; font-weight: 500; }
.win-body h3 { font-family: var(--display); font-weight: 400; font-size: 17px; text-transform: uppercase; margin: 18px 0 10px; letter-spacing: .02em; }
.win-body h3:first-child { margin-top: 0; }
.win-body p { color: #c9cadb; line-height: 1.5; margin: 0 0 10px; }
.win-foot { padding: 14px 22px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; background: #14151e; box-shadow: 0 -1px 0 var(--line); }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { border-radius: 14px; background: #1a1b27; box-shadow: inset 0 0 0 1px var(--line); padding: 14px; }
.card.hi { background: linear-gradient(180deg, #24203e, #1a1730); box-shadow: inset 0 0 0 1.5px #4a3590; }
.kv { display: grid; gap: 2px; } .kv b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; } .kv span { font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.bar { height: 12px; border-radius: 6px; background: #0c0d14; box-shadow: inset 0 1px 3px #000; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--violet), var(--magenta)); transition: width .6s; }
.bar.gold i { background: linear-gradient(90deg, #d98a12, #ffe488); }
.bar.green i { background: linear-gradient(90deg, #1b8a34, #5fe475); }
.attr { display: grid; grid-template-columns: 120px 1fr 64px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }
.attr b { text-align: right; font-variant-numeric: tabular-nums; }
.list { display: grid; gap: 6px; }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #181924; box-shadow: inset 0 0 0 1px var(--line); text-align: left; width: 100%; }
.li:hover { background: #1d1e2b; }
.li .grow { flex: 1; min-width: 0; } .li .grow > * { overflow: hidden; text-overflow: ellipsis; }
.li .t { font-weight: 700; font-size: 15px; white-space: nowrap; } .li .s { font-size: 13px; color: var(--muted); }
.li .r { font-weight: 800; font-variant-numeric: tabular-nums; }
.empty { padding: 26px 12px; text-align: center; color: var(--muted); border-radius: 14px; background: #15161f; box-shadow: inset 0 0 0 1px dashed var(--line); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(246,196,83,.08); box-shadow: inset 0 0 0 1px rgba(246,196,83,.3); color: #f5dfa6; font-size: 14px; line-height: 1.45; }
.note.violet { background: rgba(143,61,255,.1); box-shadow: inset 0 0 0 1px rgba(178,92,255,.35); color: #dccbff; }
.note svg { width: 18px; flex: none; margin-top: 1px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.input { height: 46px; padding: 0 14px; border-radius: 12px; border: 0; background: #0c0d14; box-shadow: inset 0 0 0 1.5px #2a2b3d, inset 0 2px 5px rgba(0,0,0,.6); outline: none; font-weight: 600; width: 100%; }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--violet2), 0 0 0 3px rgba(143,61,255,.2); }
textarea.input { height: auto; min-height: 80px; padding: 12px 14px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9b9db3 50%), linear-gradient(135deg, #9b9db3 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 14px) 20px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: #0f1018; box-shadow: inset 0 0 0 1px var(--line); flex-wrap: wrap; }
.seg button { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.seg button.on { color: #fff; background: #26273a; box-shadow: inset 0 0 0 1px #3a3b55; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.rolegrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.role { padding: 10px 6px; border-radius: 12px; background: #181924; box-shadow: inset 0 0 0 1px var(--line); text-align: center; font-size: 13px; font-weight: 700; display: grid; gap: 6px; justify-items: center; }
.role svg { width: 40px; height: 40px; }
.role.on { background: linear-gradient(180deg, #2c2150, #1d1636); box-shadow: inset 0 0 0 1.5px var(--violet2); }
.countrypick { max-height: 300px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; padding-right: 4px; }
.countrypick button { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: #181924; box-shadow: inset 0 0 0 1px var(--line); text-align: left; font-size: 13px; font-weight: 700; }
.countrypick button.on { box-shadow: inset 0 0 0 1.5px var(--gold); background: #231f17; }
.countrypick img { width: 26px; height: 19px; border-radius: 3px; object-fit: cover; flex: none; }

/* fanned challenge cards */
.fan { position: relative; height: 360px; display: flex; justify-content: center; align-items: center; perspective: 1200px; }
.fcard { position: absolute; width: 230px; height: 320px; border-radius: 16px; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s, box-shadow .35s; box-shadow: 0 0 0 2px rgba(255,255,255,.5), 0 20px 40px rgba(0,0,0,.6); }
.fcard .fbg { position: absolute; inset: 0; }
.fcard .fart { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: 150px; height: 150px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)); }
.fcard .flabel { position: absolute; left: 10px; right: 10px; bottom: 34px; height: 46px; display: grid; place-items: center; background: #0b0a14; border-radius: 8px; box-shadow: 0 0 0 2px var(--magenta); font-family: var(--display); font-size: 18px; text-transform: uppercase; transform: skewX(-6deg); text-align: center; line-height: 1; padding: 0 6px; }
.fcard .fsub { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; letter-spacing: .08em; color: #f0e6ff; text-transform: uppercase; }
.fcard .fcount { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,.55); font-size: 12px; font-weight: 800; }
.fcard.dim { filter: brightness(.5) saturate(.7); }
.fan-ctl { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 8px; }

/* challenge play */
.q { padding: 16px; border-radius: 14px; background: #181924; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 12px; }
.q .qp { font-size: 17px; font-weight: 700; margin-bottom: 12px; line-height: 1.35; }
.q .qsvg { width: 140px; margin: 0 0 12px; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.q .qsvg svg { width: 100%; height: auto; display: block; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt { min-height: 46px; padding: 8px 12px; border-radius: 12px; text-align: left; background: #11121a; box-shadow: inset 0 0 0 1.5px #2a2b3d; font-weight: 700; font-size: 15px; }
.opt:hover { box-shadow: inset 0 0 0 1.5px #4a4b68; }
.opt.on { background: #2a1f4d; box-shadow: inset 0 0 0 2px var(--violet2); }
.opt.right { background: rgba(47,191,79,.18); box-shadow: inset 0 0 0 2px var(--green); }
.opt.wrong { background: rgba(255,77,94,.15); box-shadow: inset 0 0 0 2px var(--red); }
.timer { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold); }

/* store */
.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pkg { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #221a3e, #15121f); box-shadow: inset 0 0 0 1.5px #3a2c66, 0 10px 24px rgba(0,0,0,.4); }
.pkg .ph { padding: 16px 16px 8px; text-align: center; position: relative; }
.pkg .ph .gemstack { width: 84px; height: 72px; margin: 0 auto 6px; position: relative; }
.pkg .ph .gemstack svg { position: absolute; width: 48px; height: 48px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.pkg .pname { font-family: var(--display); font-size: 18px; text-transform: uppercase; }
.pkg .pcred { font-size: 26px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.pkg ul { margin: 0; padding: 4px 18px 0 34px; font-size: 13px; color: #d6d0ee; line-height: 1.5; flex: 1; }
.pkg .pmeta { padding: 8px 16px; font-size: 11px; color: var(--muted); line-height: 1.4; }
.pkg .pfoot { padding: 12px 14px 14px; }
.pkg .pfoot .btn { width: 100%; }
.pkg.best { box-shadow: inset 0 0 0 2px var(--gold), 0 0 26px rgba(246,196,83,.25); }
.pkg .ribbon { position: absolute; top: 12px; right: -30px; transform: rotate(35deg); background: linear-gradient(#ff4f7e, #e2155a); padding: 3px 34px; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.cos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cos .card { display: grid; gap: 6px; text-align: center; }
.cos .swatch { height: 70px; border-radius: 10px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2c2d44, #15161f); }

/* chat drawer */
.drawer { position: fixed; z-index: 35; top: 10px; bottom: 10px; right: 10px; width: min(420px, calc(100vw - 20px)); border-radius: var(--r-xl); background: linear-gradient(180deg, #1b1c28, #12131b); box-shadow: 0 0 0 1.5px #2c2d40, 0 30px 80px rgba(0,0,0,.7); display: flex; flex-direction: column; transform: translateX(110%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.drawer.open { transform: none; }
.msgs { flex: 1; overflow: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 14px; font-weight: 500; }
.msg img { width: 26px; height: 19px; border-radius: 3px; object-fit: cover; margin-top: 2px; }
.msg .mn { font-weight: 800; font-size: 13px; color: var(--gold); display: flex; gap: 8px; align-items: baseline; }
.msg .mn time { color: var(--dim); font-weight: 600; font-size: 11px; }
.msg .mb { color: #e8e9f5; word-break: break-word; line-height: 1.4; }
.msg .mact { opacity: 0; font-size: 11px; color: var(--dim); margin-left: auto; }
.msg:hover .mact { opacity: 1; }
.msg .mact button { color: var(--dim); font-size: 11px; font-weight: 700; padding: 0 3px; }
.composer { display: flex; gap: 8px; padding: 12px; box-shadow: 0 -1px 0 var(--line); }

/* toast + verify banner */
.toasts { position: fixed; z-index: 60; left: 50%; top: 92px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { padding: 12px 18px; border-radius: 14px; background: rgba(16,17,26,.96); box-shadow: inset 0 0 0 1.5px #3a3b55, 0 10px 30px rgba(0,0,0,.6); font-size: 15px; font-weight: 700; max-width: min(520px, 92vw); animation: toastIn .25s; pointer-events: auto; }
.toast.ok { box-shadow: inset 0 0 0 1.5px var(--green), 0 10px 30px rgba(0,0,0,.6); }
.toast.err { box-shadow: inset 0 0 0 1.5px var(--red), 0 10px 30px rgba(0,0,0,.6); }
.toast.gold { box-shadow: inset 0 0 0 1.5px var(--gold), 0 10px 30px rgba(0,0,0,.6); }
@keyframes toastIn { from { transform: translateY(-10px); opacity: 0; } }
.verify { position: fixed; z-index: 22; left: 50%; top: 170px; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); display: none; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 16px; background: linear-gradient(90deg, rgba(58,40,6,.96), rgba(32,22,6,.96)); box-shadow: inset 0 0 0 1.5px var(--gold), 0 10px 30px rgba(0,0,0,.5); }
.verify.show { display: flex; }
.verify b { font-family: var(--display); font-weight: 400; font-size: 15px; color: var(--gold); display: block; }
.verify span { font-size: 13px; color: #f0dfb0; font-weight: 500; }
.ticker { position: fixed; z-index: 13; left: 360px; right: 440px; top: 172px; height: 30px; overflow: hidden; display: none; }
.offline-note { position: fixed; z-index: 22; left: 50%; bottom: 168px; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); display: none; }
.offline-note.show { display: flex; }

/* events feed */
.ev { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #181924; box-shadow: inset 0 0 0 1px var(--line); }
.ev img { width: 30px; height: 22px; border-radius: 3px; object-fit: cover; }
.ev .eg { width: 30px; height: 30px; display: grid; place-items: center; color: var(--gold); } .ev .eg svg { width: 22px; }
.ev .et { font-weight: 700; font-size: 14px; } .ev .eb { font-size: 13px; color: var(--muted); }
.ev time { font-size: 12px; color: var(--dim); white-space: nowrap; }

/* table (leaderboards/admin) */
table.t { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
table.t th { text-align: left; font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; padding: 0 10px; font-weight: 700; }
table.t td { padding: 10px; background: #181924; font-weight: 600; }
table.t td:first-child { border-radius: 10px 0 0 10px; } table.t td:last-child { border-radius: 0 10px 10px 0; }
table.t tr.me td { background: #26213f; }
table.t .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */
@media (max-width: 1500px) { .online { display: none; } }
@media (max-width: 1280px) {
  .promo { grid-template-columns: 250px 86px; } .banner { height: 104px; } .banner .bt { font-size: 24px; } .banner .art { width: 84px; height: 84px; }
  .medal .m-art { width: 70px; height: 60px; }
  .league { width: 290px; } .crest { width: 100px; height: 96px; } .league-title .t1 { font-size: 21px; } .league-title .t2 { font-size: 19px; }
}
@media (max-width: 1100px) {
  .navtabs button { padding: 0 10px; font-size: 12px; }
  .promo .banner:nth-of-type(3), .promo .medal:nth-of-type(3) { display: none; }
  .top-right .pill.coins .sub { display: none; }
}
@media (max-width: 960px) {
  .promo { display: none; } .league { top: 170px; }
  .bar-pill { display: none; }
}
@media (max-width: 760px) {
  .topbar { height: 60px; gap: 8px; padding: 0 8px; top: 8px; left: 8px; right: 8px; }
  .brand-name { display: none; }
  .top-center { display: none; }
  .pill { height: 40px; font-size: 15px; padding: 0 12px 0 4px; gap: 6px; } .pill .ico { width: 30px; height: 30px; } .pill .ico svg { width: 26px; height: 26px; } .pill .val { min-width: 0; }
  .pill.credits { display: none; }
  .top-right { gap: 8px; } .round { width: 42px; height: 42px; } .round svg { width: 20px; height: 20px; }
  .round.hide-m { display: none; }
  .clockbar { top: 74px; white-space: nowrap; } .clock-pill { font-size: 11px; height: 26px; padding: 0 10px; white-space: nowrap; } #clockText .d { display: none; }
  .navtabs { top: auto; bottom: 92px; left: 8px; right: 8px; transform: none; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .navtabs::-webkit-scrollbar { display: none; }
  .league { top: 110px; width: 270px; } .league.collapsed { transform: translateX(-100%); }
  .stats { bottom: 140px; left: 8px; right: 8px; transform: none; justify-content: flex-start; }
  .wheel .hub { width: 44px; height: 44px; bottom: -22px; padding-top: 3px; } .wheel .hub svg { width: 24px; height: 24px; } .wheel .hub-name { display: none; }
  .stat { min-width: 80px; padding: 3px 8px; } .stat b { font-size: 15px; }
  .bottombar { height: 76px; left: 8px; right: 8px; bottom: 8px; padding: 0 10px; gap: 8px; }
  .avatar { width: 44px; height: 44px; } .me-name { font-size: 16px; max-width: 100px; } .me-id { font-size: 12px; }
  .notch { position: static; transform: none; width: auto; height: auto; padding: 0; display: block; } .notch::before { display: none; } .wheel { display: none; } .collect .tri { display: none; }
  .wheel { width: 120px; height: 60px; top: -16px; } .wheel .disc { width: 120px; height: 120px; } 
  .collect { gap: 6px; } .collect .cbtn { min-width: 0; height: 40px; padding: 0 14px; font-size: 15px; } .collect .clabel { display: none; }
  .bar-right { gap: 8px; } .bar-right .round.hide-m { display: none; } .gold-pill { width: 60px; height: 44px; margin-left: 0; } .gold-pill svg { width: 30px; }
  .me-card .txt { display: none; }
  .modes { grid-template-columns: repeat(2, 1fr); bottom: 92px; right: 8px; left: 8px; }
  .spot .sname { font-size: 26px; max-width: 60%; } .spot .sname.long { font-size: 21px; } .spot .semblem { width: 84px; height: 104px; left: 52%; top: 58%; } .spot .semblem img { width: 52px; height: 39px; }
  .spot .sright { font-size: 15px; } .spot-back { right: 6px; top: -50px; }
  .spot-actions .btn { height: 42px; padding: 0 16px; font-size: 14px; }
  .grid3, .pkgs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rolegrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .win-body { padding: 14px; } .win-head h2 { font-size: 19px; }
  .opts { grid-template-columns: 1fr; }
  .fan { height: 300px; } .fcard { width: 180px; height: 260px; } .fcard .fart { width: 110px; height: 110px; } .fcard .flabel { font-size: 15px; }
  .attr { grid-template-columns: 96px 1fr 50px; }
  .verify { top: 110px; }
}
@media (max-width: 420px) { .pkgs, .grid2 { grid-template-columns: 1fr; } .pill .sub { display: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===================== v2: stylised world, boot, activity feed, view toggle, mobile hardening ===================== */
#stage { background:
  radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7) 50%, transparent 51%), radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.55) 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 38% 78%, rgba(200,180,255,.6) 50%, transparent 51%), radial-gradient(1px 1px at 88% 64%, rgba(255,255,255,.5) 50%, transparent 51%),
  radial-gradient(1px 1px at 22% 58%, rgba(255,255,255,.45) 50%, transparent 51%), radial-gradient(1.2px 1.2px at 58% 34%, rgba(255,255,255,.5) 50%, transparent 51%),
  radial-gradient(1px 1px at 5% 88%, rgba(255,255,255,.4) 50%, transparent 51%), radial-gradient(1px 1px at 95% 30%, rgba(255,255,255,.5) 50%, transparent 51%),
  radial-gradient(900px 600px at 50% 45%, #1a1650 0%, #0a0b24 55%, #04050c 100%); background-size: 340px 340px, 420px 420px, 380px 380px, 300px 300px, 460px 460px, 360px 360px, 500px 500px, 280px 280px, 100% 100%; }
#boot { background: radial-gradient(900px 600px at 50% 40%, #1a1650 0%, #07081a 70%); overflow: hidden; }
.boot-earth { position: absolute; left: 50%; top: 50%; width: min(78vmin, 640px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; opacity: .55;
  background: radial-gradient(circle at 34% 30%, rgba(160,140,255,.45), transparent 45%), radial-gradient(circle at 50% 50%, #1b2470 0%, #0d1240 62%, #070a24 100%);
  box-shadow: 0 0 80px rgba(143,107,255,.45), inset -40px -30px 80px rgba(0,0,0,.6); overflow: hidden; }
.boot-earth i { position: absolute; inset: 0; border-radius: 50%; background:
  radial-gradient(ellipse 18% 12% at 30% 40%, #3a2f8a 60%, transparent 62%), radial-gradient(ellipse 14% 20% at 52% 58%, #3a2f8a 60%, transparent 62%),
  radial-gradient(ellipse 22% 10% at 70% 32%, #3a2f8a 60%, transparent 62%), radial-gradient(ellipse 10% 16% at 82% 62%, #3a2f8a 60%, transparent 62%),
  repeating-linear-gradient(90deg, transparent 0 38px, rgba(160,150,255,.12) 38px 39px), repeating-linear-gradient(0deg, transparent 0 38px, rgba(160,150,255,.10) 38px 39px);
  background-size: 200% 100%; animation: spinEarth 14s linear infinite; }
@keyframes spinEarth { to { background-position: -200% 0, -200% 0, -200% 0, -200% 0, -200% 0, 0 0; } }
.boot-inner { position: relative; padding: 24px 28px; border-radius: 22px; background: rgba(10,10,28,.6); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.boot-tag { font-size: 11px; letter-spacing: .18em; color: var(--muted); text-align: center; }
.boot-bar i { width: 0; animation: none; transition: width .4s; }
.boot-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); min-width: 240px; }
.boot-steps li { display: flex; align-items: center; gap: 8px; }
.boot-steps li i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px #3a3b55; flex: none; }
.boot-steps li.done { color: #fff; } .boot-steps li.done i { background: var(--green); box-shadow: 0 0 8px var(--green); }

.view-toggle { cursor: pointer; color: #fff; font-weight: 700; }
.view-toggle:hover { box-shadow: inset 0 0 0 1px var(--violet2), 0 6px 16px rgba(0,0,0,.4); }
.aifeed { position: fixed; z-index: 13; left: 50%; top: 168px; transform: translateX(-50%); width: min(460px, calc(100vw - 24px)); display: grid; gap: 4px; pointer-events: none; }
.ai-item { pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 10px; background: rgba(10,11,24,.72); box-shadow: inset 3px 0 0 var(--c, #5fd4ff); font-size: 12px; font-weight: 600; color: #dfe0f0; animation: aiIn .4s ease; overflow: hidden; }
.ai-item:nth-child(2) { opacity: .7; } .ai-item:nth-child(3) { opacity: .4; }
.ai-item img { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; flex: none; }
.ai-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-item b { color: var(--c, #5fd4ff); font-size: 10px; letter-spacing: .1em; margin-right: 4px; }
@keyframes aiIn { from { transform: translateY(-6px); opacity: 0; } }
.pin { position: relative; transform: translate(-50%, -100%); padding: 2px; border-radius: 4px; background: rgba(8,10,24,.85); box-shadow: 0 0 0 1px rgba(255,255,255,.25); cursor: pointer; transition: opacity .2s; display: flex; gap: 3px; align-items: center; }
.pin img { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; display: block; }
.pin .pc:empty { display: none; } .pin .pc { font: 700 10px var(--ui); color: #fff; padding-right: 3px; }
.pin.imp img { width: 22px; height: 16px; } .pin.sel { box-shadow: 0 0 0 2px var(--gold), 0 0 12px rgba(246,196,83,.6); z-index: 2; }
.pin::after { display: none; }
.scrim.blur { backdrop-filter: blur(10px) saturate(.8); background: rgba(4,4,14,.55); }
.gate-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.gate-locked { position: relative; filter: blur(5px); opacity: .6; pointer-events: none; user-select: none; }
.round.sm { width: 40px; height: 40px; } .round.sm svg { width: 20px; height: 20px; }

/* keep everything inside the viewport */
.win, .drawer, .spot-wrap, .stats, .navtabs, .modes, .verify, .offline-note, .aifeed { max-width: calc(100vw - 16px); }
.win-body, .msgs { overflow-wrap: anywhere; }
table.t { min-width: 0; } .tbl, .win-body:has(table.t) { overflow-x: auto; }
@media (max-width: 760px) {
  .hide-xs { display: none !important; }
  .view-toggle span { display: none; }
  .aifeed { top: 106px; width: calc(100vw - 16px); } .ai-item:nth-child(n+2) { display: none; }
  .online, .ticker { display: none !important; }
  .top-right .round:not(#btnSettings):not(#btnSound) { display: none; }
  #btnSound { width: 40px; height: 40px; }
  .spot-wrap { top: auto; bottom: 186px; transform: translateX(-50%); } .spot-wrap.show { animation: none; }
  .spot-stack.top2, .spot-stack.bot2, .spot-stack.bot { display: none; } .spot-stack.top { top: -26px; height: 26px; }
  .spot { height: 150px; } .spot .sname { font-size: 22px; top: 14px; left: 14px; } .spot .ssub { left: 14px; bottom: 12px; font-size: 12px; } .spot .sright { right: 12px; top: 12px; font-size: 13px; } .spot .sright small { font-size: 10px; }
  .spot .semblem { width: 70px; height: 88px; left: 50%; top: 56%; } .spot .semblem img { width: 42px; height: 31px; margin-top: -12px; } .spot .sguard { display: none; }
  .spot-actions { margin-top: 10px; gap: 6px; flex-wrap: nowrap; } .spot-actions .btn { flex: 1; min-width: 0; padding: 0 8px; font-size: 12px; height: 40px; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; }
  .spot-back { right: 4px; top: -48px; width: 38px; height: 38px; }
  .league { max-height: calc(100vh - 340px); overflow: auto; }
  .stats { bottom: 140px; } .modes { grid-template-columns: repeat(2, 1fr); }
  .win { max-height: calc(100vh - 24px); border-radius: 20px; } .scrim { padding: 8px; align-items: end; }
  .win-head { padding: 12px 12px 10px 16px; } .win-tabs { padding: 8px 10px 0; } .win-tabs button { padding: 0 10px; font-size: 12px; }
  .grid3[style] { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .countrypick { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 34vh; }
  .attr { grid-template-columns: 84px 1fr 44px; font-size: 12px; }
  .fan { height: 260px; } .fcard { width: 150px; height: 220px; } .fcard .fart { width: 90px; height: 90px; } .fcard .flabel { font-size: 13px; height: 38px; bottom: 30px; }
  .fan-ctl .btn { min-width: 0 !important; font-size: 13px; padding: 0 14px; }
  .row { min-width: 0; } .li .t { white-space: normal; }
  .drawer { top: auto; height: 78vh; right: 8px; left: 8px; width: auto; bottom: 8px; transform: translateY(110%); } .drawer.open { transform: none; }
  .bottombar .bar-right { margin-left: auto; }
}
@media (max-width: 380px) { .pill { padding-right: 8px; } .pill.rep .sub { display: none; } .bottombar { gap: 6px; } .collect .cbtn { padding: 0 10px; font-size: 13px; } }
.flagstrip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: thin; }
.flagstrip button { flex: none; padding: 3px; border-radius: 6px; background: #181924; box-shadow: inset 0 0 0 1px var(--line); }
.flagstrip button:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }
.flagstrip img { width: 30px; height: 22px; border-radius: 3px; object-fit: cover; display: block; }
#globe.far .pin:not(.imp):not(.big):not(.sel) { display: none; }
.banner .bt.sm { font-size: 23px; }
@media (max-width: 1280px) { .banner .bt.sm { font-size: 19px; } }
.spot .sright { max-width: 38%; } .spot .sright span { font-size: 16px; display: block; line-height: 1.15; }
body:has(#spot.show) .aifeed { display: none; }
.fan { overflow: hidden; }
@media (max-width: 760px) { .spot-wrap { bottom: 202px; } }
a.btn { text-decoration: none; color: inherit; } a.btn.gold { color: #2b1a00; }

/* ===================== v3: focus sheet, tasks, HUD wallet ===================== */
.coinflag { width: 32px; height: 24px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 2px #f6c453, 0 2px 4px rgba(0,0,0,.5); }
.round.off { opacity: .55; }
.xpbar { display: block; width: 150px; height: 6px; border-radius: 3px; background: #0c0d14; box-shadow: inset 0 1px 2px #000; margin-top: 4px; overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2fbf4f, #b6ff6a); border-radius: 3px; transition: width .6s; }
.emp-art { display: grid; place-items: center; }
.emp-art img { position: absolute; width: 74px; height: 54px; left: 6px; top: 26px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(0,0,0,.5); transform: rotate(-8deg); }
.emp-art svg { position: absolute; width: 50px; height: 60px; right: 4px; top: 6px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.55)); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.btn.red { background: linear-gradient(180deg, #ff6b7a, #d2233a 60%, #9a1428); box-shadow: inset 0 -3px 0 rgba(80,0,10,.45), inset 0 2px 0 rgba(255,255,255,.35), 0 6px 18px rgba(210,35,58,.35); }
.sheet { position: fixed; z-index: 24; left: 50%; bottom: 112px; transform: translate(-50%, 20px); width: min(760px, calc(100vw - 20px)); max-height: 46vh; display: flex; flex-direction: column; border-radius: 22px; background: linear-gradient(180deg, rgba(27,28,42,.98), rgba(16,17,26,.98)); box-shadow: 0 0 0 1.5px #3a2c66, 0 0 30px rgba(143,61,255,.25), 0 24px 60px rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s; }
.sheet.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
body.focus .stats, body.focus .aifeed, body.focus .promo { display: none; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 8px 14px; }
.sheet-head .flag.lg { width: 56px; height: 42px; }
.sh-t { flex: 1; min-width: 0; } .sh-t b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-t span { font-size: 13px; color: var(--muted); } .sh-t i { font-style: normal; font-weight: 700; }
.sheet .x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #11121a; box-shadow: inset 0 0 0 1.5px #2e2f44; flex: none; } .sheet .x svg { width: 18px; }
.sheet-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 0 14px; }
.sheet-stats div { background: #12131c; border-radius: 12px; padding: 6px 8px; text-align: center; } .sheet-stats b { display: block; font-size: 16px; font-weight: 800; white-space: nowrap; } .sheet-stats span { font-size: 10px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.sheet-tabs { padding: 8px 14px 0; }
.sheet-body { padding: 10px 14px 14px; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .sheet-actions .btn { flex: 1; min-width: 130px; }
.taskrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.task { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: linear-gradient(180deg, #232438, #181926); box-shadow: inset 0 0 0 1px #33344a; }
.task:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }
.task .ti, .li .ti { font-size: 26px; line-height: 1; } .task b { font-size: 14px; } .task small { font-size: 11px; color: var(--gold); font-weight: 700; }
.li.inc.bad { box-shadow: inset 3px 0 0 #ff9a3c, inset 0 0 0 1px var(--line); } .li.inc.good { box-shadow: inset 3px 0 0 #3ee08a, inset 0 0 0 1px var(--line); }
.gico { position: relative; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: rgba(8,10,24,.9); box-shadow: 0 0 0 2px #ff9a3c, 0 0 14px rgba(255,154,60,.5); cursor: pointer; }
.gico.good { box-shadow: 0 0 0 2px #3ee08a, 0 0 14px rgba(62,224,138,.5); }
.gico.march { box-shadow: 0 0 0 2px #ff4d5e, 0 0 14px rgba(255,77,94,.6); width: auto; padding: 0 8px; border-radius: 16px; gap: 4px; display: flex; font-size: 15px; }
.gico.march small { font: 800 10px var(--ui); color: #ffb3ba; }
.pin .pc { white-space: nowrap; }
/* harvest tap game */
.tapzone { position: relative; display: grid; justify-items: center; gap: 10px; padding: 8px 0 4px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.tapbtn { width: 170px; height: 170px; border-radius: 50%; font-size: 72px; background: radial-gradient(circle at 50% 35%, #ffe488, #e09a1a 60%, #8a5208); box-shadow: 0 0 0 6px #2a1d0a, 0 0 0 9px #f6c453, 0 14px 30px rgba(0,0,0,.6); transition: transform .06s; touch-action: manipulation; }
.tapbtn:active { transform: scale(.94); }
.tapfloat { position: absolute; pointer-events: none; font-size: 26px; animation: floatUp .9s ease-out forwards; }
@keyframes floatUp { to { transform: translateY(-120px) scale(1.4); opacity: 0; } }
.combo { font-family: var(--display); font-size: 34px; } .gapbar { width: 220px; height: 8px; border-radius: 4px; background: #0c0d14; overflow: hidden; } .gapbar i { display: block; height: 100%; background: linear-gradient(90deg, #ff4d5e, #f6c453, #2fbf4f); }
.range { width: 100%; accent-color: #f6c453; }
.quote { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; } .quote div { background: #12131c; border-radius: 12px; padding: 8px; text-align: center; } .quote b { display: block; font-size: 18px; } .quote span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* mobile: windows always show their close button and scroll smoothly */
.win { max-height: min(86dvh, 900px); } .win-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  .scrim { align-items: flex-end; padding: 6px; padding-top: max(6px, env(safe-area-inset-top)); }
  .win { max-height: calc(100dvh - 12px - env(safe-area-inset-top)); width: 100%; }
  .win-head { position: sticky; top: 0; z-index: 2; flex: none; }
  .sheet { bottom: 84px; max-height: 52dvh; width: calc(100vw - 12px); border-radius: 18px; }
  .sheet-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sheet-stats div:nth-child(n+4) { display: none; }
  .sh-t b { font-size: 18px; } .sheet-head .flag.lg { width: 44px; height: 33px; }
  .taskrow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .task { padding: 8px 2px; } .task b { font-size: 12px; } .task .ti { font-size: 22px; }
  body.focus .navtabs { display: none; }
  .xpbar { width: 90px; }
  .pill.coins .val { font-size: 14px; } .coinflag { width: 26px; height: 20px; }
  #btnMusic { width: 40px; height: 40px; }
  .top-right .round:not(#btnSettings):not(#btnSound):not(#btnMusic) { display: none; }
  .me-card .txt { display: grid; } .me-name { font-size: 14px; max-width: 90px; } .me-id { font-size: 11px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .bar-pill { display: none; }
  .li { flex-wrap: wrap; } .li .grow { min-width: 140px; }
}
@media (max-width: 420px) { .pill.rep { display: none; } .bottombar .round.lg { width: 46px; height: 46px; } .gold-pill { width: 52px; } }
.clist .li .cn { min-width: 74px; text-align: right; font-size: 13px; white-space: nowrap; }
.clist .li .chip { flex: none; }
@media (max-width: 760px) {
  .clist .li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; }
  .clist .li .grow { min-width: 0; } .clist .li .t, .clist .li .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .clist .li .chip { grid-column: 2; justify-self: start; } .clist .li .cn { grid-column: 3; min-width: 0; }
  .clist .li .cn:last-child { grid-row: 2; }
  .seg { width: 100%; overflow-x: auto; flex-wrap: nowrap; } .seg button { flex: none; }
}
@media (max-width: 1640px) { #subAch { display: none; } .pill.credits .val { min-width: 36px; } }
@media (max-width: 400px) { .me-card .txt { display: none !important; } }
