/* Overy Skyblock — site public */
:root {
  --bg: #f6f8f3;
  --surface: #ffffff;
  --surface-2: #eef3ea;
  --ink: #15211a;
  --ink-2: #33433a;
  --muted: #5f6f64;
  --line: #e1e8dc;
  --green: #2c8a43;
  --green-600: #237238;
  --green-700: #1b5a2c;
  --green-50: #e8f4e9;
  --gold: #e09b12;
  --gold-600: #b97c08;
  --gold-50: #fff3d9;
  --sky: #d7ecfa;
  --night: #0f2318;
  --discord: #5865f2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 33, 26, .06), 0 8px 24px rgba(21, 33, 26, .06);
  --shadow-lg: 0 2px 4px rgba(21, 33, 26, .06), 0 20px 48px rgba(21, 33, 26, .12);
  --wrap: 1160px;
  --head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
code { font: 600 .9em/1 ui-monospace, 'SFMono-Regular', Menlo, monospace; background: var(--surface-2); color: var(--green-700); padding: .2em .45em; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; transition: background-color .15s, box-shadow .15s, transform .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: inset 0 -3px 0 var(--green-700); }
.btn-primary:hover { background: var(--green-600); }
.btn-gold { background: var(--gold); color: #2b1d00; box-shadow: inset 0 -3px 0 var(--gold-600); }
.btn-gold:hover { background: #eaa71e; }
.btn-light { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(21, 33, 26, .05); }
.btn-light:hover { box-shadow: inset 0 0 0 1px #c9d4c3, 0 1px 2px rgba(21, 33, 26, .05); }
.btn-discord { background: var(--discord); color: #fff; box-shadow: inset 0 -3px 0 #4450c9; }
.btn-discord:hover { background: #4f5be6; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; }
.link .i { width: 16px; height: 16px; transition: transform .15s; }
.link:hover .i { transform: translateX(3px); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(246, 248, 243, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand img { width: 92px; height: auto; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current=page] { color: var(--green-700); background: var(--green-50); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.burger { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky) 0%, #e8f4fb 45%, var(--bg) 100%); margin-top: -68px; padding: 132px 0 96px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.cloud { position: absolute; background: #fff; opacity: .75; border-radius: 6px; }
.cloud::after { content: ''; position: absolute; background: inherit; border-radius: inherit; }
.cloud.c1 { width: 180px; height: 26px; top: 120px; left: 4%; }
.cloud.c1::after { width: 90px; height: 22px; top: -18px; left: 34px; }
.cloud.c2 { width: 240px; height: 30px; top: 220px; right: -40px; opacity: .6; }
.cloud.c2::after { width: 110px; height: 24px; top: -20px; left: 60px; }
.cloud.c3 { width: 140px; height: 20px; bottom: 120px; left: 42%; opacity: .5; }
.cloud.c3::after { width: 64px; height: 18px; top: -14px; left: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(21, 33, 26, .08); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #b8c2bb; flex: none; }
.dot.on { background: #2fb350; box-shadow: 0 0 0 4px rgba(47, 179, 80, .18); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 22px 0 18px; letter-spacing: -.02em; }
.hero h1 span { color: var(--green); }
.hero .sub { font-size: 18px; color: var(--ink-2); max-width: 520px; }
.ip { display: flex; align-items: stretch; margin-top: 32px; max-width: 470px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); overflow: hidden; }
.ip-text { flex: 1; padding: 14px 18px; min-width: 0; }
.ip-text small { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ip-text b { display: block; font: 600 22px/1.3 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-text b span { color: var(--muted); font-weight: 500; font-size: 17px; }
.ip button { display: flex; align-items: center; gap: 8px; padding: 0 22px; background: var(--green); color: #fff; font-weight: 600; box-shadow: inset 0 -3px 0 var(--green-700); }
.ip button:hover { background: var(--green-600); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.platforms { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.platforms span { display: inline-flex; align-items: center; gap: 7px; }
.platforms .i { width: 17px; height: 17px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 440px); }
.hero-art img { width: 100%; height: auto; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 30px 30px rgba(31, 70, 100, .16)); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Key numbers */
.numbers { position: relative; z-index: 2; margin-top: -48px; }
.numbers .grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); }
.number { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 22px 20px; }
.number > div { max-width: 190px; }
.number + .number { border-left: 1px solid var(--line); }
.number b { display: block; font: 600 20px/1.2 var(--head); }
.number span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* Sections */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.band { background: var(--surface); border-block: 1px solid var(--line); }
.head { max-width: 660px; margin-bottom: 44px; }
.head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--green); margin-bottom: 12px; }
.title { font-size: clamp(30px, 4vw, 42px); }
.lead { font-size: 17px; color: var(--muted); margin-top: 14px; }
.row-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.row-head .head { margin-bottom: 0; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 26px; min-width: 0; }
.card h3 { font-size: 20px; margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Features */
.feature { padding: 24px; }
.feature h3 { font-size: 18px; margin-top: 18px; }
.feature p { font-size: 14.5px; }

/* Jobs & events */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.list { display: grid; gap: 4px; }
.list-item { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 14px; }
.list-item:hover { background: var(--surface-2); }
.list-item b { display: block; font: 600 17px/1.3 var(--head); }
.list-item span { display: block; color: var(--muted); font-size: 14.5px; }

/* Leaderboard mini */
.mini { display: grid; margin-top: 18px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.mini-row a, .mini-row .name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row a:hover { color: var(--green); }
.mini-row strong { margin-left: auto; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); font-size: 13px; font-weight: 700; flex: none; color: var(--ink-2); }
.rank.r1 { background: #fbe7b0; color: #7a5300; }
.rank.r2 { background: #e5e9ee; color: #4a5562; }
.rank.r3 { background: #f2dcc8; color: #7b4a22; }
.card-top { display: flex; align-items: center; gap: 14px; }
.card-top h3 { margin: 0; }
.card-top p { margin-top: 2px; font-size: 14px; }

/* Progress (VoteParty) */
.party { margin-top: 18px; }
.party-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.party-count { font: 600 30px/1 var(--head); color: var(--ink); }
.party-count small { font-size: 17px; color: var(--muted); font-weight: 500; }
.bar { height: 12px; border-radius: 999px; background: var(--surface-2); margin: 12px 0 10px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(21, 33, 26, .05); }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), #41b35c); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.small { font-size: 13.5px; }
.muted { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin-top: 18px; }
.note.error { color: #9c3e25; }
.empty, .loading { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 15px; }

/* Vote band */
.vote-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.steps { display: grid; gap: 14px; margin: 26px 0 28px; counter-reset: step; }
.steps li { list-style: none; display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--green-50); color: var(--green-700); font-weight: 700; font-size: 14px; flex: none; }
.steps { padding: 0; }
.reward { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--gold-50); margin-top: 18px; }
.reward b { display: block; font: 600 17px/1.3 var(--head); }
.reward span { font-size: 14px; color: #7a5a17; }
.streak { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 18px; }
.streak div { padding: 12px 8px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.streak b { display: block; font: 600 17px/1.2 var(--head); color: var(--green-700); }
.streak span { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 4px; }

/* Forms */
.field { display: grid; gap: 7px; flex: 1; min-width: 200px; }
.field label { font-weight: 600; font-size: 14px; }
.input { position: relative; }
.input .i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
input, select { width: 100%; height: 46px; padding: 0 14px; background: var(--surface); border: 1px solid #d3ddce; border-radius: 12px; }
.input input { padding-left: 42px; }
select { appearance: none; padding-right: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6f64' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
input:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(44, 138, 67, .15); }
.tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin-bottom: 22px; }

/* Tables */
.table { overflow-x: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: left; padding: 16px 20px 0; font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
th { text-align: left; padding: 14px 20px; font-size: 12.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 20px; border-top: 1px solid var(--line); white-space: nowrap; }
tbody tr:first-child td { border-top: 0; }
td:last-child, th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
td a { font-weight: 600; }
td a:hover { color: var(--green); }
tbody tr:hover td { background: #fafcf8; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; font-size: 14px; color: var(--muted); }

/* Players / profile */
.avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--green-50); color: var(--green-700); font: 600 20px/1 var(--head); flex: none; }
.avatar.lg { width: 76px; height: 76px; border-radius: 20px; font-size: 30px; }
.player-card { display: flex; flex-direction: column; gap: 4px; }
.player-card .card-top { margin-bottom: 10px; }
.player-card h3 { font-size: 18px; overflow-wrap: anywhere; }
.player-card .link { margin-top: 12px; }
.profile-top { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.profile-top h1 { font-size: 34px; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 36px; }
.stat { padding: 20px 22px; }
.stat strong { display: block; font: 600 26px/1.2 var(--head); }
.stat span { font-size: 13.5px; color: var(--muted); }
.jobs-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 18px 0 36px; }
.jobs-grid .card { padding: 20px; }
.jobs-grid h3 { font-size: 17px; margin: 14px 0 4px; }
.jobs-grid p { font-size: 13.5px; }
h3.section-title { font-size: 22px; }

/* Page header */
.page-head { padding: 64px 0 40px; background: linear-gradient(180deg, #e9f4ee 0%, var(--bg) 100%); }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); }
.page-head .lead { max-width: 640px; font-size: 18px; }
.page-head + section { padding-top: 32px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); margin-bottom: 24px; }
.back:hover { color: var(--ink); }
.back .i { width: 16px; height: 16px; }

/* Join / tabs / FAQ */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); margin-bottom: 22px; }
.tab { padding: 9px 18px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--muted); }
.tab[aria-selected=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(21, 33, 26, .1); }
.step-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tip { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--green-50); }
.tip b { display: block; font-size: 13px; color: var(--green-700); margin-bottom: 4px; }
.tip p { font-size: 14px; color: var(--ink-2); }
.tabs { flex-wrap: wrap; }
.step-card .num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--green); color: #fff; font: 600 17px/1 var(--head); }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 22px/1 var(--head); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
.faq a { color: var(--green); font-weight: 600; }

/* Wiki */
.guide { scroll-margin-top: 90px; }
.guide h2 { font-size: 21px; margin: 16px 0 8px; }
.guide p + p { margin-top: 10px; }

/* Callout / CTA */
.callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 34px; border-radius: 20px; background: var(--night); color: #fff; margin-top: 48px; }
.callout h3 { font-size: 24px; }
.callout p { color: #b8c9bd; margin-top: 6px; }
.cta { position: relative; overflow: hidden; text-align: center; padding: 72px 24px; border-radius: 28px; background: linear-gradient(180deg, #17402a, var(--night)); color: #fff; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); }
.cta p { color: #b8c9bd; margin: 12px auto 0; max-width: 480px; }
.cta .hero-actions { justify-content: center; margin-top: 28px; }
.cta img { width: 120px; margin: 0 auto 18px; }

/* Footer */
footer { background: var(--night); color: #b8c9bd; padding: 64px 0 32px; margin-top: 96px; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer img { width: 104px; margin-bottom: 14px; }
footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
footer ul { padding: 0; display: grid; gap: 9px; }
footer li { list-style: none; }
footer a:hover { color: #fff; }
footer .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; font-size: 13px; color: #8aa092; }
.cta + footer, main > section:last-child { margin-bottom: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; translate: -50% 20px; opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lg); transition: opacity .2s, translate .2s; }
.toast .i { color: #6fdc8c; }
.toast.show { opacity: 1; translate: -50% 0; }

/* Game textures */
.itile img, .slot img { margin: auto; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
.itile { display: inline-grid; place-items: center; place-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--surface-2); flex: none; }
.itile.lg { width: 64px; height: 64px; border-radius: 16px; }
/* Minecraft inventory slot */
.slot { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; background: #8b8b8b; box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #ffffff; flex: none; }
.slot b { position: absolute; right: 3px; bottom: 1px; font: 700 15px/1 'Inter', sans-serif; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
a .slot:hover, .slot[data-tip]:hover { background: #a4a4a4; }
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); translate: -50% 0; z-index: 5; white-space: nowrap; padding: 5px 9px; background: #1a0b2e; color: #fff; font: 600 13px/1.3 'Inter', sans-serif; border: 2px solid #3a136e; border-radius: 4px; pointer-events: none; }

/* Player heads */
.face { width: 24px; height: 24px; border-radius: 4px; flex: none; background: var(--surface-2); }
.face.avatar { width: 52px; height: 52px; border-radius: 10px; }
.face.avatar.lg { width: 64px; height: 64px; }
.face.avatar.xl { width: 88px; height: 88px; border-radius: 14px; box-shadow: var(--shadow); }
.who { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.who a, .who .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Enchanted items: the in-game purple glint */
.slot.ench img { animation: ench 2.4s ease-in-out infinite; }
@keyframes ench {
  0%, 100% { filter: drop-shadow(0 0 1px rgba(183, 123, 255, .9)) brightness(1); }
  50% { filter: drop-shadow(0 0 4px rgba(196, 139, 255, 1)) brightness(1.3) saturate(1.3); }
}
[data-tip]:hover::after { white-space: pre; text-align: left; }

/* Screenshot cards */
.shots { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.shots.three { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
.shot { position: relative; overflow: hidden; border-radius: 18px; min-height: 210px; background: var(--night); box-shadow: var(--shadow); }
.shot.big { grid-row: span 2; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.04); }
.shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .18) 55%, transparent); }
.shot > div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px; color: #fff; }
.shot h3 { font-size: 22px; }
.shot.big h3 { font-size: 30px; }
.shot p { color: rgba(255, 255, 255, .85); font-size: 14.5px; margin-top: 4px; max-width: 420px; }
.thumb { width: 104px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }

/* Join page */
.join-top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-bottom: 44px; }
.join-top .shot { min-height: 280px; }
@media (max-width: 900px) { .join-top { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gitem { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 9; background: var(--night); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gitem:hover img { transform: scale(1.05); }
.gitem span { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 600; }
.lightbox { margin: auto; padding: 0; border: 0; background: transparent; max-width: min(94vw, 1600px); overflow: visible; }
.lightbox::backdrop { background: rgba(5, 12, 8, .88); }
.lightbox img { display: block; max-width: 100%; max-height: 90vh; border-radius: 12px; }
.lightbox button { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, .6); color: #fff; }
.lightbox button:hover { background: rgba(0, 0, 0, .8); color: #fff; }

/* Grade cards */
.gcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.gcard { position: relative; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); scroll-margin-top: 90px; }
.gcard.featured { box-shadow: var(--shadow-lg), 0 0 0 3px var(--c); }
.gcard header { position: relative; overflow: hidden; border-radius: 20px 20px 0 0; padding: 24px 22px 20px; text-align: center; color: #fff; background: radial-gradient(120% 90% at 50% 0%, var(--c2), var(--c)); }
.gcard header::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 12px, transparent 12px 24px); pointer-events: none; }
.gcard header img { width: 88px; height: 88px; margin: 0 auto 6px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .2)); }
.gcard h3 { font-size: 28px; text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.gcard .price { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .22); font: 600 17px/1.2 var(--head); }
.gcard .badge { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff; color: var(--c); }
.g-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px 22px 22px; }
.g-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-stats div { padding: 12px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.g-stats b { display: block; font: 600 22px/1.2 var(--head); color: var(--c); }
.g-stats span { font-size: 12.5px; color: var(--muted); }
.g-kit, .slots { display: flex; flex-wrap: wrap; gap: 4px; }
.g-kit { justify-content: center; }
.g-sum { text-align: center; font-size: 14px; color: var(--muted); }
.g-block h4 { font: 600 15px/1.3 var(--head); margin-bottom: 10px; }
.heads, .capes { display: flex; flex-wrap: wrap; gap: 6px; }
.heads span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); }
.capes span { display: inline-grid; place-items: center; width: 52px; height: 56px; border-radius: 10px; background: var(--surface-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 4px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.gcards.full { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gcard .slot { width: 42px; height: 42px; box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff; }
.gcard .slot b { font-size: 13px; right: 2px; }
.gcard .slots { gap: 3px; }
.gcards.full .g-body { padding: 18px 16px 20px; }
.compare th:not(:first-child) { text-align: center; color: var(--c); font: 600 16px/1.2 var(--head); }
.compare td:not(:first-child) { text-align: center; }
.compare td:first-child { font-weight: 600; }
.compare .ok { color: var(--green); margin: 0 auto; }
.compare .no { color: #c3cbc0; }
.keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.key { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.key b { display: block; font: 600 16px/1.3 var(--head); }
.key span { font-size: 14px; color: var(--muted); }
.chooser { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 18px 22px; margin-bottom: 22px; background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.chooser p { flex: 1; min-width: 220px; font-size: 14.5px; color: var(--muted); }

/* Featured players & podium */
.player-card .jobs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.player-card .jobs span { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px 3px 4px; border-radius: 8px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 22px; }
.podium:empty { display: none; }
.podium .card { text-align: center; padding: 22px 16px; }
.podium .p1 { padding-top: 34px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #f2c94c; }
.podium .avatar { margin: 0 auto 10px; }
.podium h3 { font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.podium p { font-size: 14px; margin-top: 4px; }

/* Wiki */
.wtools { position: sticky; top: 68px; z-index: 10; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: end; padding: 14px 0; background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.wnav { display: flex; flex-wrap: wrap; gap: 6px; }
.wnav a { padding: 8px 14px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; }
.wnav a:hover { box-shadow: inset 0 0 0 1px var(--green); color: var(--green-700); }
.wtab { padding: 40px 0 8px; scroll-margin-top: 150px; }
.wcat { margin-top: 26px; scroll-margin-top: 150px; }
.wcat h2, .wcat h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; margin-bottom: 14px; }
.wcat .wcat { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--line); }
.wcat .wcat h3 { font-size: 18px; }
.wcat h2 .slot, .wcat h3 .slot { width: 44px; height: 44px; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.wentry { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.wentry:hover { box-shadow: inset 0 0 0 1px var(--green); color: var(--green-700); }
.wdetail { display: grid; gap: 18px; }
.whead { display: flex; gap: 22px; align-items: center; }
.whead .slot { width: 80px; height: 80px; box-shadow: inset 4px 4px 0 #373737, inset -4px -4px 0 #fff; }
.whead h1 { font-size: clamp(28px, 4vw, 40px); }
.wattrs { margin-top: 8px; padding-left: 18px; color: var(--ink-2); font-size: 15px; display: grid; gap: 4px; }
.wbody { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.wtext h3 { font-size: 18px; margin: 18px 0 6px; color: var(--green-700); }
.wtext h3:first-child { margin-top: 0; }
.wtext p { color: var(--ink-2); font-size: 15.5px; }
.wtext p + p { margin-top: 10px; }
.craft h3 { font-size: 18px; margin: 0 0 14px; }
.craft-row { display: flex; align-items: center; gap: 14px; }
.craft-grid { display: grid; grid-template-columns: repeat(3, 48px); background: #c6c6c6; padding: 6px; box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #555; }
.craft .arrow .i { width: 28px; height: 28px; color: var(--muted); }

@media (max-width: 1040px) {
  .gcards, .gcards.full, .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .shot.big { grid-column: span 2; grid-row: auto; min-height: 280px; }
  .shots.three { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wbody { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gcards, .gcards.full, .keys, .shots, .shots.three { grid-template-columns: 1fr; }
  .shot.big { grid-column: auto; }
  .whead { flex-direction: column; align-items: flex-start; }
}

/* Bourse */
.market { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.market .card { display: block; }
.market-index { display: flex !important; align-items: center; gap: 18px; }
.market .eyebrow { display: block; margin-bottom: 4px; }
.market .big { font: 600 38px/1.15 var(--head); }
.extreme { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.up { color: #1f9a3a; font-weight: 600; } .down { color: #c0392b; font-weight: 600; } .flat { color: #2775c9; font-weight: 600; }
.bourse-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quote { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 16px 18px; }
.quote h3 { font-size: 17px; margin: 0; }
.quote .price { font: 600 20px/1.2 var(--head); text-align: right; }
.quote .meta { font-size: 13.5px; color: var(--muted); }
.quote .right { text-align: right; }
.spark { grid-column: 2 / 4; display: flex; gap: 3px; height: 14px; }
.spark i { flex: 1; border-radius: 2px; background: #2775c9; }
.spark i.u { background: #2fb350; } .spark i.d { background: #d9534f; } .spark i.e { background: var(--surface-2); }
@media (max-width: 900px) { .market, .bourse-grid { grid-template-columns: 1fr; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art img { animation: none; }
}

/* Responsive */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jobs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .burger { display: inline-grid; }
  .nav .wrap { gap: 12px; }
  .nav-actions { margin-left: auto; }
  .hero { padding: 108px 0 88px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .sub, .ip { margin-inline: auto; }
  .hero-actions, .platforms { justify-content: center; }
  .hero-art { width: min(70%, 320px); grid-row: 1; }
  .numbers .grid { grid-template-columns: 1fr 1fr; }
  .number:nth-child(3) { border-left: 0; }
  .number:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-3, .split, .vote-band { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .row-head { flex-direction: column; align-items: flex-start; }
  .callout { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .nav-actions .btn span { display: none; }
  .grid-2, .grid-4, .numbers .grid { grid-template-columns: 1fr; }
  .number + .number { border-left: 0; border-top: 1px solid var(--line); }
  .jobs-grid { grid-template-columns: 1fr 1fr; }
  .streak { grid-template-columns: repeat(2, 1fr); }
  .ip-text b { font-size: 19px; }
  .ip button { padding: 0 16px; }
  .ip button span { display: none; }
  footer .cols { grid-template-columns: 1fr; }
  .cta { padding: 52px 20px; border-radius: 20px; }
}
