/* Headlines and big numbers use Oxanium (squared corners that echo Minecraft's blocks); everything else is Inter.
   StrataSMP site theme: deep navy, royal blue, silver. Soft glass surfaces, hairline borders, one bright accent.
   Change the colours in :root to re-skin everything. */
:root {
    --bg: #060912;
    --bg-2: #0a1021;
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .06);
    --solid: #0d1428;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .16);
    --text: #f2f5fb;
    --muted: #a3afc8;
    --accent: #3d6bff;
    --accent-hi: #7aa0ff;
    --accent-lo: #2447d6;
    --accent-2: #cdd5e4;
    --silver-hi: #f2f5fb;
    --diamond: #8ff0ff;
    --good: #4ade80;
    --bad: #ff5d6c;
    --radius: 14px;
    --shadow: 0 18px 50px -20px rgba(0, 0, 0, .8);
    --glow: 0 0 0 1px rgba(122, 160, 255, .35), 0 18px 50px -18px rgba(61, 107, 255, .55);
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Oxanium', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text);
    font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: auto; text-rendering: optimizeLegibility;
    background:
        radial-gradient(1100px 620px at 82% -10%, rgba(61, 107, 255, .20), transparent 62%),
        radial-gradient(900px 560px at -5% 38%, rgba(143, 240, 255, .06), transparent 60%),
        radial-gradient(800px 500px at 60% 110%, rgba(61, 107, 255, .10), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}
main { flex: 1; position: relative; z-index: 2; }
body { overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--diamond); outline-offset: 3px; border-radius: 6px; }
.st-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.st-muted { color: var(--muted); }
code { font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* ---------- surfaces and buttons ---------- */
.st-panel { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.st-slot { background: rgba(61, 107, 255, .12); border: 1px solid rgba(122, 160, 255, .28); border-radius: 12px; box-shadow: inset 0 0 18px rgba(61, 107, 255, .18); }
.st-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px; cursor: pointer; text-decoration: none; border: 0; border-radius: 12px;
    font: 700 15px var(--font-body); letter-spacing: .01em; color: #fff;
    background: linear-gradient(180deg, #5a85ff, var(--accent-lo)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 26px -10px rgba(61, 107, 255, .8);
    transition: transform .15s, filter .15s, box-shadow .15s;
}
.st-btn:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 16px 34px -10px rgba(61, 107, 255, .9); }
.st-btn:active { transform: translateY(0); }
.st-btn-stone { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.st-btn-stone:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); }
.st-btn-silver { color: #0b1230; background: linear-gradient(180deg, #fff, #cdd5e4); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 10px 26px -12px rgba(255, 255, 255, .4); }
.st-btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.st-btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.st-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- header ---------- */
.st-top { position: sticky; top: 0; z-index: 60; background: rgba(6, 9, 18, .74); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); }
.st-bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.st-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.st-brand img { filter: drop-shadow(0 4px 10px rgba(61, 107, 255, .35)); }
.st-word { font: 700 24px var(--font-display); letter-spacing: 1px; color: var(--silver-hi); }
.st-word b { color: var(--accent-hi); font-weight: 400; }
.st-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.st-nav::-webkit-scrollbar { display: none; }
.st-nav a { padding: 8px 14px; border-radius: 10px; text-decoration: none; white-space: nowrap; font: 600 15px var(--font-body); color: var(--muted); transition: color .15s, background .15s; }
.st-nav a:hover { color: var(--text); background: var(--surface-2); }
.st-nav a.is-active { color: #fff; background: rgba(61, 107, 255, .2); box-shadow: inset 0 0 0 1px rgba(122, 160, 255, .35); }
.st-actions { display: flex; gap: 10px; align-items: center; flex: none; }
.st-chip {
    display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px; cursor: pointer; text-decoration: none; border-radius: 12px; border: 0;
    font: 700 14px var(--font-body); color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .15s;
}
.st-chip:hover { background: rgba(255, 255, 255, .1); }
.st-chip small { color: var(--muted); font: 600 12px var(--font-body); }
.st-chip svg { width: 16px; height: 16px; fill: currentColor; opacity: .8; }
.st-chip-disc { background: #4752c4; box-shadow: none; color: #fff; }
.st-chip-disc:hover { background: #5865f2; }
.st-dot { width: 9px; height: 9px; border-radius: 50%; background: #5b6785; }
.st-dot.on { background: var(--good); box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }

/* ---------- hero ---------- */
.st-hero { position: relative; overflow: hidden; padding: 72px 0 0; background: url('../Assets/stars.svg') repeat 0 0 / 160px 160px; }
.st-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 420px at 78% 38%, rgba(61, 107, 255, .30), transparent 70%), linear-gradient(180deg, transparent 60%, var(--bg-2)); }
.st-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-bottom: 48px; }
.st-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 7px 14px; border-radius: 999px; font: 600 13px var(--font-body); letter-spacing: .04em; color: #d6e2ff; background: rgba(61, 107, 255, .14); box-shadow: inset 0 0 0 1px rgba(122, 160, 255, .32); }
.st-hero h1 { margin: 0 0 18px; font: 700 56px/1.04 var(--font-display); letter-spacing: 0; text-transform: uppercase; color: var(--silver-hi); text-shadow: 0 4px 0 rgba(0, 0, 0, .45); }
.st-hero h1 em { font-style: normal; background: linear-gradient(180deg, #b6ccff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .45)); }
.st-lead { max-width: 560px; margin: 0 0 28px; font-size: 18px; line-height: 1.65; color: #cbd5ea; }
.st-ip { display: inline-flex; align-items: center; gap: 14px; width: 100%; max-width: 440px; padding: 12px 14px; margin: 0 0 18px; text-align: left; cursor: pointer; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); transition: box-shadow .15s, background .15s; }
button.st-ip:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(122, 160, 255, .55), var(--shadow); }
.st-ip img { width: 44px; height: 44px; flex: none; }
.st-ip span { flex: 1; min-width: 0; line-height: 1.25; }
.st-ip small { display: block; font: 600 11px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.st-ip b { display: block; font: 700 18px var(--font-body); overflow: hidden; text-overflow: ellipsis; }
.st-ip u { text-decoration: none; padding: 8px 14px; border-radius: 10px; font: 700 13px var(--font-body); color: #fff; background: var(--accent); }
.st-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.st-hero-art { position: relative; display: grid; place-items: center; min-height: 360px; }
.st-cube { width: min(360px, 78%); height: auto; aspect-ratio: 1; image-rendering: pixelated; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)) drop-shadow(0 0 60px rgba(61, 107, 255, .45)); animation: st-float 6s ease-in-out infinite; }
@keyframes st-float { 50% { transform: translateY(-14px); } }
.st-orbit { position: absolute; inset: 6% 6%; border-radius: 50%; border: 1px dashed rgba(122, 160, 255, .28); pointer-events: none; }
.st-orbit::after { content: ''; position: absolute; top: 12%; left: 4%; width: 12px; height: 12px; background: var(--diamond); box-shadow: 0 0 14px var(--diamond); }
.st-moon { position: absolute; top: 28px; right: 6%; width: 56px; height: 56px; background: #e9eefb; box-shadow: inset -10px -10px 0 #aab4cc, 0 0 60px 18px rgba(143, 176, 255, .18); }
.st-moon::after { content: ''; position: absolute; left: 12px; top: 14px; width: 10px; height: 10px; background: #cdd5e4; box-shadow: 20px 18px 0 -2px #cdd5e4, 8px 28px 0 -3px #cdd5e4; }
.st-motes { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.st-motes span { position: absolute; bottom: 22%; left: var(--x); width: var(--s); height: var(--s); background: var(--c); box-shadow: 0 0 10px var(--c); opacity: 0; animation: st-rise var(--d) linear infinite; animation-delay: var(--dl); }
@keyframes st-rise { 10% { opacity: .9; } 100% { transform: translate3d(var(--dr), -420px, 0); opacity: 0; } }
.no-fx .st-motes, .no-fx .st-cube { display: none; }
@media (prefers-reduced-motion: reduce) { .st-motes { display: none; } .st-cube { animation: none; } }

/* live numbers, glass strip overlapping the hero's bottom edge */
.st-statrow { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 780px; margin: 0 auto -40px; border-radius: 18px; background: rgba(13, 20, 40, .82); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.st-stat { padding: 20px 14px; text-align: center; border-right: 1px solid var(--line); }
.st-stat:last-child { border-right: 0; }
.st-stat b { display: block; font: 700 32px/1.1 var(--font-display); color: var(--silver-hi); font-variant-numeric: tabular-nums; }
.st-stat span { display: block; margin-top: 6px; font: 600 11px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
/* the strata cross-section: the page "digs" down into it */
.st-band { position: relative; z-index: 1; height: clamp(150px, 19vw, 280px); margin-top: -90px; background: url('../Assets/strata-band.svg') center bottom / cover no-repeat; image-rendering: pixelated; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 38%); mask-image: linear-gradient(180deg, transparent 0, #000 38%); }

/* ---------- sections + cards ---------- */
.st-section { margin-top: 84px; position: relative; z-index: 2; }
.st-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.st-kicker { display: block; margin-bottom: 8px; font: 700 12px var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-hi); }
.st-h2 { margin: 0; font: 700 32px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: 0; color: var(--silver-hi); text-shadow: 0 3px 0 rgba(0, 0, 0, .4); }
.st-sub { margin: 10px 0 0; color: var(--muted); max-width: 620px; }
.st-link { color: var(--accent-hi); text-decoration: none; font: 700 14px var(--font-body); white-space: nowrap; }
.st-link:hover { color: var(--diamond); }
.st-grid { display: grid; gap: 16px; }
.st-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.st-card { padding: 24px; }
.st-card h3 { margin: 0 0 8px; font: 700 20px/1.25 var(--font-body); letter-spacing: -.005em; }
.st-card p { margin: 0; color: var(--muted); }
.st-ico { width: 56px; height: 56px; margin-bottom: 18px; display: grid; place-items: center; }
.st-ico img { width: 34px; height: 34px; image-rendering: pixelated; }
a.st-card { text-decoration: none; display: block; transition: transform .18s, box-shadow .18s, border-color .18s; }
a.st-card:hover { transform: translateY(-4px); border-color: rgba(122, 160, 255, .5); box-shadow: var(--glow); }

/* bento grid for the feature cards */
.st-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.st-bento .st-card { transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden; }
.st-bento .st-card:hover { transform: translateY(-3px); border-color: rgba(122, 160, 255, .45); box-shadow: var(--glow); }
.st-bento .st-card::before { content: ''; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(61, 107, 255, .22), transparent 70%); pointer-events: none; }
.b2 { grid-column: span 2; } .b3 { grid-column: span 3; } .b6 { grid-column: span 6; }
.st-bento .b6 { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.st-bento .b6 .st-ico { margin: 0; }
.st-bento .b6 > div:not(.st-ico) { flex: 1; min-width: 240px; }

.st-page-head { padding: 56px 0 6px; position: relative; z-index: 2; }
.st-page-head h1 { margin: 0; font: 700 40px/1.1 var(--font-display); text-transform: uppercase; color: var(--silver-hi); text-shadow: 0 4px 0 rgba(0, 0, 0, .45); }
.st-page-head h1 em { font-style: normal; color: var(--accent-hi); }
.st-page-head p { margin: 14px 0 0; max-width: 680px; color: #cbd5ea; font-size: 17px; }

/* closing call to action */
.st-cta-band { padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: radial-gradient(520px 240px at 0% 0%, rgba(61, 107, 255, .32), transparent 70%), radial-gradient(520px 240px at 100% 100%, rgba(143, 240, 255, .12), transparent 70%), rgba(13, 20, 40, .8); }
.st-cta-band h2 { margin: 0 0 8px; font: 700 32px/1.1 var(--font-display); text-transform: uppercase; }
.st-cta-band p { margin: 0; color: #cbd5ea; max-width: 520px; }

/* ---------- leaderboards ---------- */
.st-tabs { display: flex; gap: 8px; margin: 26px 0 12px; flex-wrap: wrap; }
.st-tab { padding: 9px 18px; cursor: pointer; border: 0; border-radius: 999px; font: 600 14px var(--font-body); color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: color .15s, background .15s; }
.st-tab:hover { color: var(--text); background: var(--surface-2); }
.st-tab.is-active { color: #fff; background: var(--accent); box-shadow: 0 8px 22px -8px rgba(61, 107, 255, .8); }
.st-tabs-sub { margin-top: 0; }
.st-tabs-sub .st-tab { padding: 6px 14px; font-size: 13px; }
.st-bar2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 14px; }
.st-search { display: flex; }
.st-search input { height: 42px; width: min(300px, 70vw); padding: 0 16px; border: 0; border-radius: 12px; font: 500 15px var(--font-body); color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.st-search input::placeholder { color: #7f8cab; }
.st-search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent-hi); }
.st-live { display: inline-flex; align-items: center; gap: 8px; font: 700 12px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--good); }
.st-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: st-pulse 1.6s ease-out infinite; }
@keyframes st-pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } }
.st-note { padding: 12px 16px; margin-bottom: 14px; border-radius: 12px; font-size: 14px; color: #cfe0ff; background: rgba(61, 107, 255, .1); box-shadow: inset 0 0 0 1px rgba(122, 160, 255, .3); }
.st-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.st-table th { padding: 4px 16px; text-align: left; font: 700 11px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.st-table td { padding: 12px 16px; background: var(--surface); font-variant-numeric: tabular-nums; transition: background .15s; }
.st-table td:first-child { width: 72px; border-radius: 12px 0 0 12px; font: 700 24px var(--font-display); color: var(--accent-2); }
.st-table td:last-child { border-radius: 0 12px 12px 0; }
.st-table tbody tr:hover td { background: var(--surface-2); }
.st-table tr.r1 td { background: rgba(255, 214, 107, .11); }
.st-table tr.r1 td:first-child { color: #ffd66b; }
.st-table tr.r2 td { background: rgba(205, 213, 228, .09); }
.st-table tr.r2 td:first-child { color: #dfe6f5; }
.st-table tr.r3 td { background: rgba(217, 160, 102, .09); }
.st-table tr.r3 td:first-child { color: #e0a96d; }
.st-num { text-align: right; }
.st-pl { display: flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; }
.st-pl img { width: 34px; height: 34px; image-rendering: pixelated; border-radius: 8px; background: #0a1021; }
.st-pl:hover span { color: var(--diamond); }
.st-tier { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 700 11px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #0b1230; }
.st-tier.bronze { background: #d9985f; } .st-tier.silver { background: #cdd5e4; } .st-tier.gold { background: #ffd66b; }
.st-tier.platinum { background: #9fe8e0; } .st-tier.diamond { background: #8ff0ff; } .st-tier.champion { background: #c8a2ff; }
.st-bar-bg { width: 96px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); display: inline-block; vertical-align: middle; overflow: hidden; }
.st-bar-bg i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--diamond)); }
.st-empty { padding: 34px; text-align: center; color: var(--muted); }

/* ---------- player profile ---------- */
.st-profile { display: flex; align-items: center; gap: 24px; padding: 26px; flex-wrap: wrap; background: radial-gradient(520px 220px at 0% 0%, rgba(61, 107, 255, .22), transparent 70%), rgba(13, 20, 40, .7); }
.st-profile img { width: 96px; height: 96px; image-rendering: pixelated; border-radius: 16px; background: #0a1021; box-shadow: 0 0 0 1px var(--line-2), 0 14px 30px -12px rgba(0, 0, 0, .7); }
.st-profile h1 { margin: 0; font: 700 32px var(--font-display); text-shadow: 0 3px 0 rgba(0, 0, 0, .4); }
.st-kv { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.st-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.st-skill { padding: 16px 18px; }
.st-skill b { font: 700 15px var(--font-body); }
.st-skill .lv { float: right; font: 700 24px var(--font-display); color: var(--silver-hi); }
.st-skill .st-bar-bg { width: 100%; margin-top: 10px; }
.st-skill small { color: var(--muted); font-size: 12px; }
.st-duelbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.st-duelbox > div { padding: 18px 14px; text-align: center; }
.st-duelbox b { display: block; font: 700 32px/1.1 var(--font-display); color: var(--silver-hi); }
.st-duelbox span { display: block; margin-top: 6px; font: 600 11px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- vote ---------- */
.st-vote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.st-vote-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.st-vote-card h3 { margin: 0; font: 700 18px var(--font-body); }
.st-vote-card small { color: var(--muted); }
.st-field { display: grid; gap: 8px; max-width: 420px; }
.st-field span { font: 700 11px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.st-field input { height: 48px; padding: 0 16px; border: 0; border-radius: 12px; font: 500 16px var(--font-body); color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.st-field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent-hi); }
.st-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: s; }
.st-steps li { counter-increment: s; position: relative; padding: 4px 0 4px 52px; color: #d4dcef; }
.st-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; font: 700 16px var(--font-display); color: #fff; background: var(--accent); box-shadow: 0 8px 20px -8px rgba(61, 107, 255, .8); }

/* ---------- footer ---------- */
.st-foot { position: relative; z-index: 2; margin-top: 100px; padding: 56px 0 28px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35)); border-top: 1px solid var(--line); }
.st-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.st-foot-grid p { margin: 14px 0 0; color: var(--muted); max-width: 340px; font-size: 14px; }
.st-foot-col h4 { margin: 0 0 14px; font: 700 12px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hi); }
.st-foot-col a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: 15px; }
.st-foot-col a:hover { color: var(--text); }
.st-legal { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: #74809e; }
.st-legal a { color: #93a0be; }

/* ---------- store page (the Tebex storefront inside the shared frame) ---------- */
.store-bar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.store-bar .nav { flex: 0 1 auto; }
.st-store-head .st-page-head { padding-bottom: 0; }
body[data-view="category"] .st-store-head, body[data-view="ranks"] .st-store-head { display: none; }
body.st-store #app { margin-top: 26px; }
body.st-store .bubble { background: rgba(13, 20, 40, .72); border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.st-store .section-head h2, body.st-store .cat-main h2 { text-transform: uppercase; letter-spacing: 0; }

/* ---------- gentle reveal on scroll (only when JS is running, so nothing stays hidden) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (min-width: 600px) { .st-hero h1 { font-size: 64px; } .st-page-head h1 { font-size: 48px; } .st-profile h1 { font-size: 40px; } }
@media (min-width: 1000px) { .st-hero h1 { font-size: 64px; } .st-h2, .st-cta-band h2 { font-size: 40px; } .st-page-head h1 { font-size: 56px; } .st-profile h1 { font-size: 48px; } }
@media (max-width: 960px) {
    .st-hero-grid { grid-template-columns: 1fr; text-align: left; }
    .st-hero-art { min-height: 220px; margin-top: 8px; }
    .st-cube { width: min(220px, 56%); }
    .st-bar { flex-wrap: wrap; gap: 8px 14px; padding-top: 8px; padding-bottom: 8px; }
    .st-nav { order: 3; flex-basis: 100%; }
    .st-actions { margin-left: auto; }
    .b3, .b2 { grid-column: span 6; }
    .st-foot-grid { grid-template-columns: 1fr 1fr; }
    .st-foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .st-word { font-size: 16px; }
    .st-hero { padding-top: 40px; }
    .st-hero h1 { font-size: 40px; }
    .st-statrow { margin-left: 16px; margin-right: 16px; }
    .st-stat b { font-size: 24px; }
    .st-chip { height: 38px; padding: 0 10px; }
    .st-moon { width: 40px; height: 40px; right: 6%; top: 18px; }
    .st-table th:nth-child(n+4), .st-table td:nth-child(n+4) { display: none; }
    .st-table td:first-child { width: 48px; }
    .st-cta-band { padding: 26px; }
    .st-wrap { padding: 0 18px; }
}

/* the small leaderboard cards on the home page: compact rows that always fit their card */
.st-grid > * { min-width: 0; }
#home-boards .st-card { padding: 20px; }
#home-boards .st-card .st-head-row { margin-bottom: 8px; }
#home-boards .st-table { table-layout: fixed; border-spacing: 0 6px; }
#home-boards .st-table td { padding: 8px 10px; }
#home-boards .st-table td:first-child { width: 40px; font-size: 16px; }
#home-boards .st-table td:last-child { width: 36%; }
#home-boards .st-pl { min-width: 0; gap: 10px; }
#home-boards .st-pl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#home-boards .st-pl img { width: 28px; height: 28px; flex: none; }
@media (min-width: 1280px) { .st-hero h1 { font-size: 72px; } }