:root {
  --bg: #e4f4fd;
  --bg-2: #d2ecfa;
  --surface: #ffffff;
  --surface-2: #f1f8fd;
  --surface-3: #2193c9;
  --line: rgba(13, 63, 106, .1);
  --line-2: rgba(13, 63, 106, .18);
  --text: #0d3f6a;
  --muted: #3f6d93;
  --dim: #7096b7;
  --gold: #fcd535;
  --gold-2: #ff9f1c;
  --gold-ink: #5a2a00;
  --brown: #6b300d;
  --cyan: #2193c9;
  --sky: #5cc6ef;
  --mint: #d8f5ee;
  --blue: #2193c9;
  --pink: #ff4fa3;
  --violet: #8a5cff;
  --green: #3fae4a;
  --art: radial-gradient(90% 70% at 50% 100%, rgba(255, 255, 255, .45), transparent 65%), linear-gradient(180deg, #7fd6f5, #2b9fd3);
  --glass: rgba(255, 255, 255, .86);
  --red: #d0442a;
  --discord: #5865f2;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -22px rgba(13, 63, 106, .45);
  --display: 'Lilita One', 'Trebuchet MS', sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
  --max: 1100px;
  --header-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--gold); color: var(--gold-ink); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 10px; font-weight: 800; }
.skip:focus { left: 16px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: 64px 0; position: relative; }
.section-tight { padding: 44px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 900 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-2);
}
.eyebrow::before { content: ''; width: 18px; height: 3px; border-radius: 3px; background: currentColor; }
.title { font-size: clamp(26px, 3.4vw, 38px); margin-top: 10px; }
.title .hl { color: var(--gold-2); }
.lead { color: var(--muted); font-size: 16px; max-width: 580px; margin-top: 10px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  --b: var(--surface-3); --b-dark: #156a96; --ink: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 13px;
  background: var(--b); color: var(--ink);
  font: 400 16px/1 var(--display); letter-spacing: .02em;
  box-shadow: 0 5px 0 var(--b-dark), 0 12px 24px -12px rgba(13, 63, 106, .5);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--b-dark), 0 16px 28px -12px rgba(13, 63, 106, .5); filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--b-dark), 0 4px 10px -6px rgba(0, 0, 0, .6); }
.btn-gold { --b: linear-gradient(180deg, #ffe36b, var(--gold) 40%, var(--gold-2)); --b-dark: #d0442a; --ink: var(--gold-ink); }
.btn-cyan { --b: linear-gradient(180deg, #5cc6ef, var(--blue)); --b-dark: #156a96; --ink: #fff; }
.btn-discord { --b: var(--discord); --b-dark: #3640b0; --ink: #fff; }
.btn-ghost { --b: #fff; --b-dark: #b9d9ee; --ink: var(--text); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { filter: grayscale(.7) brightness(.7); pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(12px);
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.header.scrolled, .header.solid { background: var(--glass); backdrop-filter: blur(14px); box-shadow: 0 6px 24px -12px rgba(13, 63, 106, .35); }
.header .wrap { display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { width: 42px; height: 42px; }
.logo-word { font: 400 28px/1 var(--display); letter-spacing: .03em; background: linear-gradient(180deg, #fff 30%, #ffd96b 55%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 var(--brown)); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 12px;
  font-weight: 800; font-size: 15px; color: var(--muted);
  transition: color .15s, background .15s;
}
.nav a { white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(33, 147, 201, .1); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(252, 213, 53, .25); }
.nav a[aria-current="page"]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--gold-2); }
.nav .tag { font: 800 10px/1 var(--body); background: var(--pink); color: #fff; padding: 3px 6px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--glass); color: var(--text); align-items: center; justify-content: center; }
.burger svg { width: 24px; height: 24px; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: rgba(228, 244, 253, .98); backdrop-filter: blur(14px);
  padding: 24px 16px; display: none; flex-direction: column; gap: 6px; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 16px 18px; border-radius: 14px; background: var(--surface); font: 400 22px/1 var(--display); }
.mobile-nav a[aria-current="page"] { background: var(--surface-3); color: #fff; }
.mobile-nav .btn { margin-top: 12px; }

/* IP pill */
.ip {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 16px;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, .6); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -14px rgba(13, 63, 106, .5);
}
.ip-label { font: 800 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ip-value { font: 400 18px/1 var(--display); letter-spacing: .03em; }
.ip-copy { padding: 10px 14px; border-radius: 11px; background: var(--surface-3); color: #fff; font-weight: 800; font-size: 14px; transition: background .15s; }
.ip-copy:hover { background: var(--blue); }
.ip-copy.done { background: var(--green); color: #fff; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid { display: grid; gap: 20px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; font: 800 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); }
.badge-gold { background: rgba(255, 159, 28, .16); color: #c15f00; }
.badge-cyan { background: rgba(33, 147, 201, .14); color: var(--blue); }
.badge-pink { background: rgba(255, 79, 163, .16); color: var(--pink); }
.badge-green { background: rgba(63, 174, 74, .14); color: var(--green); }
.badge-violet { background: rgba(138, 92, 255, .14); color: var(--violet); }

/* Footer */
.footer { background: #0d3f6a; --text: #fff; --muted: #b8d6ee; --dim: #86aed0; --surface: rgba(255, 255, 255, .08); --line: rgba(255, 255, 255, .1); color: #fff; border-top: 1px solid var(--line); padding: 48px 0 26px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-size: 18px; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer li a { color: var(--muted); font-weight: 700; font-size: 15px; transition: color .15s; }
.footer li a:hover { color: var(--gold); }
.footer-about { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); transition: background .15s, transform .15s; }
.socials a:hover { background: var(--surface-3); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

/* Page hero (sub pages) */
.page-hero { position: relative; padding: calc(var(--header-h) + 40px) 0 36px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(228, 244, 253, 0) 40%, var(--bg)), url(../assets/img/sky.webp) center 30%/cover; z-index: -1; }
.page-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.page-hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 32px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); }
.page-hero .art { justify-self: end; width: min(220px, 100%); filter: drop-shadow(0 24px 30px rgba(8, 50, 90, .35)); animation: bob 5s ease-in-out infinite; }
.breadcrumb { display: flex; gap: 8px; color: var(--dim); font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--gold); }

@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 140%);
  background: var(--text); color: #fff; border: 1px solid var(--line-2); padding: 14px 20px; border-radius: 14px; font-weight: 800;
  box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2, 1.4, .4, 1), opacity .2s, visibility .3s; max-width: calc(100% - 32px);
  opacity: 0; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

.prose { color: var(--muted); max-width: 780px; }
.prose h2 { color: var(--text); font-size: 28px; margin: 40px 0 12px; }
.prose h3 { color: var(--text); font-size: 21px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) {
  .nav, .header-cta .btn-discord { display: none; }
  .burger { display: inline-flex; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero .wrap { grid-template-columns: 1fr; }
  .page-hero .art { display: none; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-cta .btn-gold { display: none; }
  .ip { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Shared components */
.logo img { height: 40px; width: auto; filter: drop-shadow(0 4px 8px rgba(13, 63, 106, .3)); transition: transform .2s; }
.logo:hover img { transform: rotate(-2deg) scale(1.04); }
.footer .logo img { height: 50px; }

.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .6); backdrop-filter: blur(10px); color: var(--text); font-weight: 800; font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(127, 211, 78, .7); animation: pulse 2s infinite; }
.dot.off { background: var(--gold); animation: none; box-shadow: 0 0 10px var(--gold); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(127, 211, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 211, 78, 0); } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; color: var(--blue); }
.link-arrow::after { content: '→'; transition: transform .2s; }
.link-arrow:hover::after, a:hover > .news-body .link-arrow::after { transform: translateX(4px); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 22px; }
.chips li { padding: 7px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 800; font-size: 14px; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.checks li::before { content: '✓'; display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 8px; background: rgba(127, 211, 78, .18); color: var(--green); font-weight: 900; font-size: 13px; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.news-img { aspect-ratio: 16 / 9; background: var(--art); display: grid; place-items: center; overflow: hidden; }
.news-img img { height: 90%; width: auto; object-fit: contain; transition: transform .4s; filter: drop-shadow(0 12px 14px rgba(8, 50, 90, .4)); }
.news-card:hover .news-img img { transform: scale(1.06) rotate(-1.5deg); }
.news-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta { display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: 13px; font-weight: 800; }
.news-body h3 { font-size: 19px; }
.news-body p { color: var(--muted); font-size: 15px; flex: 1; }

.round { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 4px 0 #b9d9ee; transition: background .15s, transform .15s; }
.round:hover { background: var(--mint); transform: translateY(-2px); }
.round svg { width: 22px; height: 22px; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1400px, 94vw); }
.lightbox::backdrop { background: rgba(8, 30, 55, .85); backdrop-filter: blur(6px); }
.lightbox img { border-radius: 16px; max-height: 86vh; width: auto; }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .9); color: var(--text); font-size: 28px; line-height: 1; }

.tabs { display: inline-flex; padding: 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); gap: 4px; }
.tabs button { padding: 9px 16px; border-radius: 10px; font-weight: 800; font-size: 14px; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface-3); color: #fff; }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 800; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 24px/1 var(--display); color: var(--gold-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

.field { display: grid; gap: 8px; }
.field label { font-weight: 800; font-size: 14px; }
.input { width: 100%; padding: 14px 16px; border-radius: 12px; background: #fff; border: 2px solid var(--line-2); transition: border-color .15s; }
.input:focus { outline: none; border-color: var(--cyan); }
.hint { color: var(--dim); font-size: 13px; }

@media (max-width: 960px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } .logo img { height: 42px; } }

/* Play modal */
.play-modal { padding: 0; border: 0; border-radius: 24px; width: min(620px, calc(100% - 32px)); background: transparent; overflow: visible; color: var(--text); }
.play-modal::backdrop { background: rgba(8, 30, 55, .55); backdrop-filter: blur(5px); }
.play-modal[open] { animation: modalIn .35s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.play-body { position: relative; background: #fff; border-radius: 24px; padding: 28px 28px 24px; box-shadow: 0 30px 60px -20px rgba(13, 63, 106, .55); border: 4px solid #fff; background-image: linear-gradient(180deg, #e9f7fe, #fff 55%); }
.play-body h2 { font-size: 28px; padding-right: 40px; }
.play-body .hint { margin: 6px 0 18px; font-size: 14px; max-width: 360px; }
.play-card { position: relative; display: grid; gap: 14px; padding: 26px 20px 20px; border-radius: 16px; background: #fff; border: 2px solid #c3e2f5; max-width: 360px; }
.play-version { position: absolute; top: -13px; left: 16px; padding: 5px 10px; border-radius: 8px; background: var(--red); color: #fff; font: 900 12px/1 var(--body); box-shadow: 0 3px 0 #8e2a17; transform: rotate(-3deg); }
.play-field { display: grid; gap: 6px; }
.play-field > span { font-weight: 900; font-size: 13px; color: var(--muted); }
.play-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 11px; background: var(--surface-2); border: 2px solid var(--line-2); font-weight: 800; font-family: ui-monospace, Consolas, monospace; }
.play-ip { padding: 6px 6px 6px 12px; }
.play-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.play-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); }
.play-close svg { width: 20px; height: 20px; }
.play-king { position: absolute; right: -36px; bottom: -18px; width: 250px; pointer-events: none; filter: drop-shadow(0 18px 20px rgba(13, 63, 106, .35)); }
@media (max-width: 600px) { .play-king { width: 140px; right: -12px; bottom: auto; top: -70px; } .play-body { padding-top: 34px; } }
