/* Sunshine Remastered — modern Metin2 theme */
:root {
  --bg: #08080d;
  --bg-2: #0e0e17;
  --bg-3: #14141f;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(232, 181, 99, 0.16);
  --border-soft: rgba(255, 255, 255, 0.08);
  --gold: #e8b563;
  --gold-2: #f6d79a;
  --gold-deep: #a9772b;
  --ember: #ff7d40;
  --text: #efe9dd;
  --muted: #9c96a8;
  --discord: #5865f2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 40px -6px rgba(232, 181, 99, 0.35);
  --container: 1180px;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: 0.5px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); opacity: 0.9;
}
.gold-text { background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px;
  border-radius: 12px; font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #2a1c05; box-shadow: var(--glow);
}
.btn-primary:hover { box-shadow: 0 0 55px -4px rgba(232, 181, 99, 0.55); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-soft); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--border); background: var(--surface-2); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { box-shadow: 0 0 40px -6px rgba(88, 101, 242, 0.6); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* navbar */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; transition: background .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(8, 8, 13, 0.82); backdrop-filter: blur(14px);
  border-bottom-color: var(--border-soft); padding: 12px 32px; }
.nav-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display);
  font-weight: 800; font-size: 20px; letter-spacing: 1px; }
.nav-brand img { width: 38px; height: 38px; filter: drop-shadow(0 0 10px rgba(232,181,99,.4)); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--gold); border-radius: 2px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding: 120px 0 80px; }
/* site-wide animated background */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-fx #embers { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
.bg-fx .blob { position: absolute; border-radius: 50%; filter: blur(90px); mix-blend-mode: screen; opacity: .55; will-change: transform; }
.blob.a { width: 520px; height: 520px; top: -12%; left: -6%;
  background: radial-gradient(circle, rgba(232,181,99,.40), transparent 70%); animation: drift1 26s ease-in-out infinite; }
.blob.b { width: 640px; height: 640px; bottom: -18%; right: -12%;
  background: radial-gradient(circle, rgba(255,125,64,.28), transparent 70%); animation: drift2 32s ease-in-out infinite; }
.blob.c { width: 440px; height: 440px; top: 40%; left: 55%;
  background: radial-gradient(circle, rgba(122,92,255,.16), transparent 70%); animation: drift3 38s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(70px,50px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-80px,-40px) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px,60px) scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(1000px 600px at 70% 20%, rgba(232, 181, 99, 0.14), transparent 60%),
    radial-gradient(800px 500px at 15% 80%, rgba(255, 125, 64, 0.10), transparent 55%),
    linear-gradient(180deg, transparent 40%, var(--bg) 96%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero .status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: 13px; font-weight: 600; margin-bottom: 26px; backdrop-filter: blur(6px);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #33d17a;
  box-shadow: 0 0 10px #33d17a; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.hero h1 { font-size: clamp(44px, 7vw, 82px); font-weight: 800; margin-bottom: 20px; }
.hero h1 span { display: block; }
.hero-logo { margin: 0 0 20px; line-height: 0; }
.hero-logo img { width: min(700px, 100%); height: auto; filter: drop-shadow(0 10px 44px rgba(232, 181, 99, 0.22)); }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  animation: float 2.4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* sections */
.section { padding: 100px 0; position: relative; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 16px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 28px 16px; border: 1px solid var(--border-soft);
  border-radius: var(--radius); background: var(--surface); }
.stat .num { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--gold-2); }
.stat .label { color: var(--muted); font-size: 14px; margin-top: 6px; letter-spacing: 1px; text-transform: uppercase; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 30px; border-radius: var(--radius); border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--border); box-shadow: var(--shadow); }
.card .icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(232,181,99,.22), rgba(232,181,99,.06));
  border: 1px solid var(--border); margin-bottom: 18px; color: var(--gold-2); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(120% 120% at 30% 10%, rgba(232,181,99,.14), transparent 55%),
    linear-gradient(135deg, var(--bg-3), var(--bg-2));
  display: grid; place-items: center; color: var(--muted); font-size: 13px; letter-spacing: 1px; }
.shot span { border: 1px dashed var(--border); padding: 8px 14px; border-radius: 8px; }
.shot.wide { grid-column: span 2; aspect-ratio: unset; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 60px 40px; text-align: center;
  border: 1px solid var(--border);
  background: radial-gradient(700px 300px at 50% -20%, rgba(88,101,242,.25), transparent 60%),
             linear-gradient(180deg, var(--bg-2), var(--bg-3)); }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 480px; margin: 0 auto 28px; }

/* footer */
.footer { border-top: 1px solid var(--border-soft); padding: 50px 0 34px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 34px; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; }
.footer-col h4 { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { text-align: center; color: var(--muted); font-size: 13px; padding-top: 24px;
  border-top: 1px solid var(--border-soft); }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* status widget (download) */
.status-widget { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.sw-item { display: flex; align-items: center; gap: 12px; padding: 20px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); }
.sw-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.sw-dot.online { background: #33d17a; box-shadow: 0 0 10px #33d17a; }
.sw-dot.pending { background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 2s infinite; }
.sw-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.sw-val { font-weight: 600; font-size: 16px; }

/* download cards */
.dl-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 40px; }
.dl-card { position: relative; padding: 32px; border-radius: var(--radius); border: 1px solid var(--border-soft); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.dl-card.featured { border-color: var(--border); box-shadow: var(--glow); }
.dl-badge { position: absolute; top: 20px; right: 20px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #2a1c05; background: linear-gradient(180deg, var(--gold-2), var(--gold)); padding: 5px 10px; border-radius: 999px; }
.dl-card h3 { font-size: 24px; margin-bottom: 10px; }
.dl-card p { color: var(--muted); margin-bottom: 16px; }
.dl-meta { display: flex; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* requirements */
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.req-col { padding: 28px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); }
.req-col h4 { font-family: var(--font-display); color: var(--gold-2); font-size: 18px; margin-bottom: 14px; }
.req-col ul { list-style: none; }
.req-col li { color: var(--muted); padding: 7px 0; border-bottom: 1px solid var(--border-soft); font-size: 15px; }
.req-col li:last-child { border-bottom: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 28px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); }
.step-n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--gold-2); background: linear-gradient(180deg, rgba(232,181,99,.2), rgba(232,181,99,.05)); border: 1px solid var(--border); margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ranking */
.rank-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.rank-tab { padding: 10px 20px; border-radius: 10px; border: 1px solid var(--border-soft); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s; }
.rank-tab:hover { color: var(--text); }
.rank-tab.active { color: #2a1c05; background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: transparent; }
.rank-table-wrap { border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th { text-align: left; padding: 16px 20px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); border-bottom: 1px solid var(--border-soft); }
.rank-table td { padding: 15px 20px; border-bottom: 1px solid var(--border-soft); font-size: 15px; }
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table tr:hover td { background: var(--surface-2); }
.rank-pos { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--muted); width: 60px; }
.rank-pos.gold { color: #f6d79a; } .rank-pos.silver { color: #cfd3da; } .rank-pos.bronze { color: #d59a67; }
.rank-empty { text-align: center; color: var(--muted); padding: 50px; }

/* vote */
.vote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 44px; }
.vote-card { text-align: center; padding: 36px 28px; border-radius: var(--radius); border: 1px solid var(--border-soft); background: linear-gradient(180deg, var(--surface-2), var(--surface)); transition: transform .25s, border-color .25s, box-shadow .25s; }
.vote-card:hover { transform: translateY(-5px); border-color: var(--border); box-shadow: var(--shadow); }
.vote-logo { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--gold-2); background: linear-gradient(180deg, rgba(232,181,99,.2), rgba(232,181,99,.05)); border: 1px solid var(--border); }
.vote-card h3 { font-size: 20px; margin-bottom: 6px; }
.vote-card .site { color: var(--muted); font-size: 13px; margin-bottom: 16px; word-break: break-all; }
.vote-reward { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 999px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a1c05; font-weight: 700; font-size: 14px; margin-bottom: 20px; }
.vote-cd { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* members / dashboard */
.login-gate { max-width: 460px; margin: 0 auto; text-align: center; padding: 50px 40px; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.login-gate .icon-lg { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(180deg, rgba(88,101,242,.25), rgba(88,101,242,.05)); border: 1px solid rgba(88,101,242,.4); color: #aab4ff; }
.login-gate h2 { font-size: 28px; margin-bottom: 12px; }
.login-gate p { color: var(--muted); margin-bottom: 26px; }
.dash { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.dash-user { padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), var(--surface)); text-align: center; }
.dash-user img { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px; border: 2px solid var(--border); }
.dash-user .name { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.dash-user .tag { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.dash-panel { padding: 30px; border-radius: var(--radius); border: 1px solid var(--border-soft); background: var(--surface); margin-bottom: 22px; }
.dash-panel h3 { font-size: 20px; margin-bottom: 6px; }
.dash-panel .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.acc-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border: 1px solid var(--border-soft); border-radius: 12px; margin-bottom: 12px; background: var(--bg-2); }
.acc-row .acc-name { font-weight: 600; }
.acc-row .acc-sub { color: var(--muted); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border-soft); color: var(--muted); }
.badge.gold { color: var(--gold-2); border-color: var(--border); }

/* UCP (control panel) */
.ucp { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
.ucp-mini { text-align: left; margin: 18px 0 14px; display: grid; gap: 8px; }
.ucp-mini > div { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 12px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--bg-2); }
.ucp-mini .k { color: var(--muted); }
.ucp-mini .v { font-weight: 600; }
.ucp-mini .v.gold { color: var(--gold-2); }
.ucp-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.ucp-tab { padding: 10px 20px; border-radius: 10px; border: 1px solid var(--border-soft); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s; }
.ucp-tab:hover { color: var(--text); }
.ucp-tab.active { color: #2a1c05; background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: transparent; }
.ucp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ucp-stat { text-align: center; padding: 24px 16px; border-radius: var(--radius); border: 1px solid var(--border-soft); background: var(--surface); }
.ucp-stat .num { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--gold-2); }
.ucp-stat .label { color: var(--muted); font-size: 13px; margin-top: 4px; }
.ucp-acc-pick { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ucp-acc-pick label { color: var(--muted); font-size: 13px; font-weight: 600; }
.ucp-acc-pick select { max-width: 260px; }
.ucp-form { border: 1px solid var(--border-soft); border-radius: 14px; padding: 20px; margin-bottom: 16px; background: var(--bg-2); display: grid; gap: 10px; }
.ucp-form-head { margin-bottom: 4px; }
.ucp-input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-soft); background: var(--bg-3); color: var(--text); font-family: var(--font-body); font-size: 15px; }
.ucp-input:focus { outline: none; border-color: var(--gold); }
.ucp-form .btn { justify-self: start; }
.ucp-msg { font-size: 13px; margin: 0; min-height: 18px; }
.ucp-msg.err { color: #ff8a8a; }
.ucp-msg.ok { color: #86e29b; }
.notice { display: flex; align-items: center; gap: 14px; max-width: 720px; margin: 0 auto 26px; padding: 15px 18px; border-radius: var(--radius-sm); font-size: 15px; }
.notice-err { color: #ffd7d7; background: rgba(255, 92, 92, 0.10); border: 1px solid rgba(255, 138, 138, 0.38); }
.notice span { flex: 1; }
.notice-close { flex: 0 0 auto; background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; opacity: 0.7; padding: 0 2px; }
.notice-close:hover { opacity: 1; }
.emp { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border-soft); }
.emp.red { color: #ff9a8a; } .emp.yellow { color: var(--gold-2); } .emp.blue { color: #8ab6ff; }

/* account registration */
.reg-gate { max-width: 560px; margin: 0 auto; }
.reg-form .reg-field { display: grid; gap: 6px; }
.reg-form label { color: var(--muted); font-size: 13px; font-weight: 600; }
.reg-hint { color: var(--muted); font-size: 12px; }
.reg-alpha { padding: 16px 18px; border: 1px solid rgba(88,101,242,.4); border-radius: 12px; background: rgba(88,101,242,.08); margin-bottom: 18px; display: grid; gap: 12px; justify-items: start; }
.reg-alpha[hidden] { display: none; }
.reg-alpha-text { margin: 0; color: var(--text); font-size: 14px; }
.reg-code { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: 8px; text-align: center; color: var(--gold-2); padding: 18px; margin: 6px 0 12px; border: 1px dashed var(--border); border-radius: 14px; background: var(--bg-2); }
.reg-acct { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.acc-switch { text-align: left; display: grid; gap: 6px; margin: 4px 0 12px; }
.acc-switch label { color: var(--muted); font-size: 13px; font-weight: 600; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 14px; padding: 6px 10px; border: 1px solid var(--border-soft); border-radius: 10px; }
.nav-user img { width: 24px; height: 24px; border-radius: 50%; }

/* wiki */
.wiki-search { display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto 34px; padding: 12px 18px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface); color: var(--muted); }
.wiki-search input { flex: 1; background: none; border: none; color: var(--text); font-family: var(--font-body); font-size: 15px; }
.wiki-search input:focus { outline: none; }
.wiki-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wiki-cat { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border-soft); background: linear-gradient(180deg, var(--surface-2), var(--surface)); transition: transform .25s, border-color .25s, box-shadow .25s; }
.wiki-cat:hover { transform: translateY(-5px); border-color: var(--border); box-shadow: var(--shadow); }
.wiki-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: var(--gold-2); background: linear-gradient(180deg, rgba(232,181,99,.2), rgba(232,181,99,.05)); border: 1px solid var(--border); margin-bottom: 16px; }
.wiki-cat h3 { font-size: 19px; margin-bottom: 6px; }
.wiki-cat p { color: var(--muted); font-size: 14px; }
.wiki-note { text-align: center; color: var(--muted); font-size: 15px; margin-top: 40px; padding: 22px; border: 1px dashed var(--border-soft); border-radius: var(--radius); }
.wiki-count { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--gold-2); opacity: .85; }
.wiki-crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.wiki-crumb a { color: var(--gold); }
.wiki-crumb a:hover { text-decoration: underline; }
.wiki-crumb span { color: var(--muted); }
.wiki-h { font-size: 30px; margin-bottom: 8px; }
.wiki-sub { color: var(--muted); margin-bottom: 26px; }
.wiki-list { display: grid; gap: 12px; }
.wiki-list-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--surface); color: var(--muted); transition: border-color .2s, transform .2s, background .2s; }
.wiki-list-item:hover { border-color: var(--border); transform: translateX(3px); background: var(--surface-2); }
.wiki-li-title { color: var(--text); font-weight: 600; font-size: 16px; }
.wiki-li-sum { font-size: 13px; margin-top: 3px; }
.wiki-list-item svg { flex: none; color: var(--gold); }
.wiki-article { max-width: 760px; }
.wiki-meta { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.wiki-article h3 { font-size: 20px; margin: 26px 0 10px; }
.wiki-article p { color: var(--text); opacity: .9; margin-bottom: 14px; }
.wiki-article ol, .wiki-article ul { margin: 0 0 16px 22px; color: var(--text); opacity: .9; }
.wiki-article li { margin-bottom: 7px; }
.wiki-art-note { color: var(--muted); font-size: 14px; padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--bg-2); border-radius: 0 10px 10px 0; margin: 8px 0 18px; }

/* language switcher */
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border-soft); background: var(--surface); color: var(--text); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; transition: border-color .2s; }
.lang-btn:hover { border-color: var(--border); }
.lang-cur-code { letter-spacing: .5px; }
.lang-flag { width: 22px; height: 15px; border-radius: 3px; overflow: hidden; display: inline-block; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); flex: none; }
.lang-flag svg { width: 100%; height: 100%; display: block; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px; background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); display: none; z-index: 60; }
.lang-switch.open .lang-menu { display: block; }
.lang-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; border: 0; background: none; color: var(--text); cursor: pointer; font-family: inherit; font-size: 14px; text-align: left; }
.lang-opt:hover { background: var(--surface-2); }
.lang-opt[aria-current="true"] { color: var(--gold-2); font-weight: 600; }

/* error pages */
.err-wrap { min-height: 100vh; display: grid; place-items: center; align-content: center; text-align: center; padding: 130px 24px 90px; position: relative; }
.err-brand { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: 2px; }
.err-stage { position: relative; display: inline-grid; place-items: center; isolation: isolate; }
.err-ring { position: absolute; z-index: -1; width: min(560px, 86vw); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 62%, rgba(232, 181, 99, 0.05) 72%, rgba(232, 181, 99, 0.4) 88%, transparent 100%); filter: blur(34px); opacity: .7; animation: err-spin 14s linear infinite; }
@keyframes err-spin { to { transform: rotate(360deg); } }
.err-spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 12px 2px rgba(246, 215, 154, .8); opacity: 0; }
.err-spark.s1 { top: 12%; left: 16%; animation: err-spark 5s ease-in-out infinite; }
.err-spark.s2 { top: 20%; right: 12%; width: 4px; height: 4px; animation: err-spark 6.5s ease-in-out .8s infinite; }
.err-spark.s3 { bottom: 22%; left: 24%; width: 5px; height: 5px; animation: err-spark 5.8s ease-in-out 1.6s infinite; }
.err-spark.s4 { bottom: 16%; right: 22%; animation: err-spark 7s ease-in-out 2.3s infinite; }
@keyframes err-spark { 0%, 100% { opacity: 0; transform: translateY(8px) scale(.6); } 45%, 55% { opacity: .9; transform: translateY(-10px) scale(1); } }

.err-code { position: relative; font-family: var(--font-display); font-weight: 800; font-size: clamp(120px, 26vw, 300px); line-height: .82; letter-spacing: 2px;
  background-image: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 38%, #fff6df 50%, var(--gold) 62%, var(--gold-deep) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 12px 60px rgba(232, 181, 99, 0.35));
  animation: err-float 6s ease-in-out infinite, err-shimmer 5s linear infinite; }
@keyframes err-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes err-shimmer { 0% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
.err-code::before, .err-code::after { content: attr(data-code); position: absolute; inset: 0; background-image: inherit; background-size: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-code::before { animation: err-glitch1 3.4s steps(2, jump-none) infinite; }
.err-code::after { opacity: .75; animation: err-glitch2 2.9s steps(2, jump-none) infinite; }
@keyframes err-glitch1 { 0%, 90%, 100% { transform: translate(0); clip-path: inset(0 0 0 0); } 92% { transform: translate(-4px, 2px); clip-path: inset(18% 0 56% 0); } 95% { transform: translate(3px, -2px); clip-path: inset(62% 0 12% 0); } }
@keyframes err-glitch2 { 0%, 88%, 100% { transform: translate(0); clip-path: inset(0 0 0 0); } 90% { transform: translate(4px, -2px); clip-path: inset(40% 0 40% 0); } 94% { transform: translate(-3px, 1px); clip-path: inset(8% 0 78% 0); } }

.err-platform { width: min(440px, 72%); height: 40px; margin: 4px auto 26px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(232, 181, 99, 0.22), transparent 70%); filter: blur(7px); animation: err-breathe 6s ease-in-out infinite; }
@keyframes err-breathe { 0%, 100% { transform: scaleX(1); opacity: .85; } 50% { transform: scaleX(.82); opacity: .55; } }
.err-title, .err-sub, .err-cta, .err-wrap .eyebrow { animation: err-rise .7s ease both; }
.err-sub { animation-delay: .08s; }
.err-cta { animation-delay: .16s; }
@keyframes err-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .err-ring, .err-spark, .err-code, .err-code::before, .err-code::after, .err-platform, .err-title, .err-sub, .err-cta, .err-wrap .eyebrow { animation: none !important; } .err-code::before, .err-code::after { display: none; } }
.err-title { font-size: clamp(24px, 4vw, 40px); margin: 14px 0 10px; }
.err-sub { color: var(--muted); max-width: 520px; margin: 0 auto 30px; font-size: 17px; }
.err-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* responsive */
@media (max-width: 900px) {
  .status-widget, .steps { grid-template-columns: 1fr 1fr; }
  .dl-grid, .req { grid-template-columns: 1fr; }
  .dash, .ucp { grid-template-columns: 1fr; }
  .wiki-grid { grid-template-columns: 1fr 1fr; }
  .features, .stats, .shots { grid-template-columns: 1fr 1fr; }
  .shot.wide { grid-column: span 2; }
}
@media (max-width: 680px) {
  .nav { padding: 14px 20px; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: 260px; flex-direction: column;
    align-items: flex-start; gap: 18px; padding: 90px 28px; background: var(--bg-2);
    border-left: 1px solid var(--border-soft); transform: translateX(100%); transition: transform .3s ease; }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; }
  .lang-btn .lang-cur-code { display: none; }
  .lang-btn { padding: 8px; }
  .features, .stats, .shots, .vote-grid, .ucp-cards, .wiki-grid { grid-template-columns: 1fr; }
  .shot.wide { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr; }
}
