/* SunSlayer – website. Self-hosted fonts, no external requests (strict CSP). */
@font-face { font-family: 'Archivo'; src: url(../fonts/archivo-latin.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; src: url(../fonts/archivo-latin-ext.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; src: url(../fonts/inter-400-latin.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/inter-500-latin.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/inter-600-latin.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(../fonts/inter-700-latin.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(../fonts/jetbrains-mono-400-latin.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(../fonts/jetbrains-mono-700-latin.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0c0907; --bg2: #14100c; --card: #17120e; --line: #2a211a; --line2: #3a2d22;
  --text: #f6efe6; --muted: #b3a597; --dim: #7c6f62;
  --sun: #fbbf24; --sun2: #f59e0b; --ember: #ea580c; --blood: #b91c1c;
  --grad: linear-gradient(100deg, #fde68a 0%, #fbbf24 35%, #f97316 70%, #dc2626 100%);
  --display: 'Archivo', system-ui, sans-serif; --body: 'Inter', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 18px; --pad: clamp(20px, 5vw, 64px); --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background: radial-gradient(1200px 700px at 50% -10%, rgba(251, 146, 60, .16), transparent 60%), radial-gradient(800px 600px at 100% 100%, rgba(185, 28, 28, .08), transparent 60%); }
img { image-rendering: pixelated; }
a { color: inherit; }
b { color: var(--text); font-weight: 600; }
code { font: 500 .88em var(--mono); color: var(--sun); background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .18); padding: .1em .45em; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
main, .footer { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(calc(100% - 24px), 1100px);
  display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 16px; border-radius: 16px;
  background: rgba(16, 12, 9, .55); border: 1px solid rgba(255, 255, 255, .06); backdrop-filter: blur(14px) saturate(140%); transition: background .3s, border-color .3s; }
.nav.solid { background: rgba(16, 12, 9, .9); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 17px/1 var(--display); font-stretch: 112%; letter-spacing: .02em; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }

/* ---------- ip button ---------- */
.ip-btn { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; border: 1px solid rgba(251, 191, 36, .35); color: var(--text);
  background: linear-gradient(180deg, rgba(251, 191, 36, .14), rgba(234, 88, 12, .08)); border-radius: 14px; padding: 12px 14px 12px 18px; font: 600 15px var(--body);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3) inset, 0 10px 40px -12px rgba(245, 158, 11, .5); transition: transform .15s, box-shadow .2s, border-color .2s; }
.ip-btn:hover { transform: translateY(-1px); border-color: var(--sun); box-shadow: 0 0 0 1px rgba(0, 0, 0, .3) inset, 0 14px 50px -12px rgba(245, 158, 11, .7); }
.ip-btn:active { transform: translateY(1px); }
.ip-label { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ip-text { font: 700 18px var(--mono); letter-spacing: -.01em; }
.ip-copy { font: 600 12px var(--body); background: var(--grad); color: #1a0d03; padding: 7px 12px; border-radius: 9px; }
.ip-btn.small { padding: 8px 12px; gap: 8px; border-radius: 11px; box-shadow: none; }
.ip-btn.small .ip-text { font-size: 13.5px; }
.ip-btn.big { padding: 16px 18px 16px 24px; }
.ip-btn.big .ip-text { font-size: clamp(18px, 3vw, 26px); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.on { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .15), 0 0 12px #4ade80; animation: pulse 2s infinite; }
.dot.warn { background: var(--sun); box-shadow: 0 0 12px var(--sun); }
.dot.off { background: #ef4444; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0), 0 0 12px #4ade80; } }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font: 600 15px var(--body); padding: 14px 20px; border-radius: 14px; border: 1px solid var(--line2); color: var(--text); background: rgba(255, 255, 255, .03); transition: background .2s, border-color .2s; }
.btn:hover { background: rgba(255, 255, 255, .07); border-color: var(--dim); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 120px var(--pad) 90px; overflow: hidden; isolation: isolate; }
.sun { position: absolute; left: 50%; top: 46%; width: min(120vw, 1100px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -2; pointer-events: none; }
.sun::before { content: ''; position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fff3c4 0%, #fcd34d 18%, #f59e0b 38%, #c2410c 62%, rgba(124, 45, 18, .0) 72%);
  filter: blur(2px); opacity: .55; }
.sun::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(251, 146, 60, .22) 0%, transparent 62%); }
.sun i { position: absolute; inset: 6%; border-radius: 50%; opacity: .35;
  background: repeating-conic-gradient(from 0deg, rgba(251, 191, 36, .55) 0deg 2.2deg, transparent 2.2deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 33%, #000 34%, #000 46%, transparent 70%); mask: radial-gradient(circle, transparent 33%, #000 34%, #000 46%, transparent 70%);
  animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner { max-width: 1240px; width: 100%; text-align: center; }
.eyebrow { display: inline-flex; gap: 8px; margin: 0 0 22px; flex-wrap: wrap; justify-content: center; }
.eyebrow span { font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); background: rgba(12, 9, 7, .6); padding: 6px 10px; border-radius: 999px; }
.title { margin: 0; font: 900 clamp(38px, 9.4vw, 150px)/.86 var(--display); white-space: nowrap; font-stretch: 125%; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff8ea 0%, #f6e7cf 45%, #c9b39a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 40px rgba(0, 0, 0, .55)); }
.title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 690px; margin: 26px auto 0; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.live { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font: 500 14px var(--body); color: var(--muted); padding: 8px 14px; border-radius: 999px; background: rgba(12, 9, 7, .55); border: 1px solid var(--line); }
.live b { color: var(--text); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid var(--line2); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--sun); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- founder ---------- */
.founder { padding: 0 var(--pad); margin-top: -30px; }
.founder-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--r);
  background: linear-gradient(100deg, rgba(251, 191, 36, .12), rgba(234, 88, 12, .06)); border: 1px solid rgba(251, 191, 36, .28); }
.founder p { margin: 0; flex: 1 1 380px; color: var(--muted); }
.badge { font: 800 13px var(--display); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; color: #1a0d03; background: var(--grad); padding: 8px 12px; border-radius: 10px; }
.countdown { font: 700 15px var(--mono); color: var(--sun); white-space: nowrap; }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 150px) var(--pad) 0; }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.kicker { font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sun2); margin: 0 0 14px; }
h2 { margin: 0; font: 900 clamp(38px, 6.4vw, 84px)/.92 var(--display); font-stretch: 122%; letter-spacing: -.02em; text-transform: uppercase; }
h2 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--muted); font-size: 17.5px; margin: 20px 0 0; max-width: 560px; }
h3 { margin: 0; font: 800 21px/1.15 var(--display); font-stretch: 112%; letter-spacing: -.005em; }

/* ---------- modes ---------- */
.modes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.mode { --c: var(--sun); grid-column: span 2; position: relative; padding: 22px 22px 20px; border-radius: var(--r); background: linear-gradient(180deg, var(--card), #120e0b);
  border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; gap: 12px; transition: border-color .25s, transform .25s; }
.mode::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 220px at 85% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); opacity: .7; transition: opacity .25s; pointer-events: none; }
.mode:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); transform: translateY(-3px); }
.mode:hover::before { opacity: 1; }
.mode.feature { grid-column: span 3; padding: 28px 28px 24px; }
.mode.feature h3 { font-size: 27px; }
.mode canvas { width: 64px; height: 64px; position: relative; }
.mode.feature canvas { width: 84px; height: 84px; }
.mode-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; position: relative; }
.mode h3 { color: var(--text); }
.count { font: 600 12.5px var(--mono); color: var(--muted); white-space: nowrap; }
.count.has { color: #4ade80; }
.mode p { margin: 0; color: var(--muted); position: relative; }
.mode ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; position: relative; flex: 1; }
.mode li { position: relative; padding-left: 20px; color: #d8cbbd; font-size: 15px; line-height: 1.5; }
.mode li::before { content: ''; position: absolute; left: 2px; top: .58em; width: 8px; height: 8px; background: var(--c); transform: rotate(45deg); box-shadow: 0 0 10px var(--c); }
.mode > code { align-self: flex-start; position: relative; color: var(--c); border-color: color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.mode[data-mode="steal"] { --c: #fb923c; } .mode[data-mode="pvp"] { --c: #ef4444; } .mode[data-mode="smp"] { --c: #4ade80; } .mode[data-mode="oneblock"] { --c: #a78bfa; }
.mode[data-mode="skywars"] { --c: #fbbf24; } .mode[data-mode="bedwars"] { --c: #f87171; } .mode[data-mode="arcade"] { --c: #38bdf8; }
.modes .mode:nth-child(n+3) { grid-column: span 2; }
.modes .mode:last-child { grid-column: span 4; }

/* ---------- features ---------- */
.grid-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.feat { background: var(--bg); padding: 28px 26px; display: grid; gap: 10px; align-content: start; transition: background .25s; }
.feat:hover { background: var(--bg2); }
.feat canvas { width: 48px; height: 48px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- ranking ---------- */
.board { border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--card), #110d0a); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: none; cursor: pointer; font: 600 14px var(--body); color: var(--muted); background: none; border: 1px solid transparent; padding: 9px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: #1a0d03; background: var(--grad); }
.rows { list-style: none; margin: 0; padding: 8px; min-height: 340px; }
.rows li { display: grid; grid-template-columns: 48px 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; }
.rows li:nth-child(odd):not(.empty) { background: rgba(255, 255, 255, .02); }
.rows .pos { font: 800 22px var(--display); font-stretch: 112%; color: var(--dim); text-align: center; }
.rows li:nth-child(1) .pos { color: #fbbf24; } .rows li:nth-child(2) .pos { color: #e5e7eb; } .rows li:nth-child(3) .pos { color: #d97706; }
.rows .head { width: 32px; height: 32px; border-radius: 6px; background: var(--line); image-rendering: pixelated; }
.rows .name { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .val { font: 700 15px var(--mono); color: var(--sun); white-space: nowrap; }
.rows .val small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.rows .empty { display: block; text-align: center; color: var(--dim); padding: 80px 20px; }

/* ---------- join ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.steps li { position: relative; padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.steps li > span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font: 900 20px var(--display); color: #1a0d03; background: var(--grad); margin-bottom: 16px; }
.steps p { margin: 10px 0 0; color: var(--muted); }
.inline-ip { cursor: pointer; font: 700 .95em var(--mono); color: var(--sun); background: rgba(251, 191, 36, .1); border: 1px dashed rgba(251, 191, 36, .45); border-radius: 7px; padding: 1px 7px; }

/* ---------- rules / faq ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); }
.split h2 { font-size: clamp(32px, 4.6vw, 56px); margin-bottom: 26px; }
.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 2px; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); color: #d8cbbd; }
.rules li::before { content: counter(r, decimal-leading-zero); font: 700 13px var(--mono); color: var(--sun2); padding-top: 3px; }
.note { color: var(--dim); font-size: 14px; margin-top: 16px; }
.rules code, .steps code { white-space: nowrap; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 0 18px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line2); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 22px/1 var(--body); color: var(--sun); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--muted); }

/* ---------- cta + footer ---------- */
.cta { text-align: center; padding: clamp(110px, 16vw, 200px) var(--pad); position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; left: 50%; bottom: -60%; width: 900px; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(251, 146, 60, .28), transparent 60%); }
.cta h2 { font-size: clamp(44px, 8vw, 110px); margin-bottom: 40px; }
.footer { border-top: 1px solid var(--line); padding: 34px var(--pad) 40px; max-width: var(--max); margin: 0 auto; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 18px; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer nav a:hover { color: var(--text); }
.legal { color: var(--dim); font-size: 13px; margin: 18px 0 0; }

/* ---------- toast + reveal ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; pointer-events: none; font: 600 14px var(--body);
  background: #1d1611; border: 1px solid var(--line2); color: var(--text); padding: 12px 16px; border-radius: 12px; transition: opacity .25s, transform .25s; box-shadow: 0 20px 50px -20px #000; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- legal pages ---------- */
.page { max-width: 780px; margin: 0 auto; padding: 150px var(--pad) 90px; }
.page h1 { font: 900 clamp(40px, 7vw, 72px)/.95 var(--display); font-stretch: 122%; text-transform: uppercase; margin: 0 0 30px; }
.page h2 { font-size: 22px; text-transform: none; letter-spacing: 0; margin: 34px 0 10px; font-stretch: 105%; }
.page p, .page li { color: var(--muted); }
.page .todo { color: #fca5a5; background: rgba(239, 68, 68, .1); border: 1px dashed rgba(239, 68, 68, .4); padding: 2px 6px; border-radius: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav nav { display: none; }
  .nav .ip-btn.small { margin-left: auto; }
  .modes { grid-template-columns: 1fr 1fr; }
  .mode.feature, .modes .mode:nth-child(n+3) { grid-column: span 1; }
  .modes .mode:last-child { grid-column: span 2; }
  .grid-feat { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .modes { grid-template-columns: 1fr; }
  .mode.feature, .modes .mode:nth-child(n+3), .modes .mode:last-child { grid-column: span 1; }
  .grid-feat { grid-template-columns: 1fr; }
  .ip-btn .ip-label { display: none; }
  .nav .brand span { display: none; }
  .rows li { grid-template-columns: 34px 32px 1fr auto; gap: 10px; padding: 10px; }
  .founder { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
