/* OceanSMP - colours taken from the logo: sky blue, water cyan, navy outline, sand. */
:root {
  --navy: #1d0f45;        /* logo outline */
  --ink: #0d1638;         /* page background */
  --panel: #173372;       /* block panels */
  --panel-2: #1d418c;
  --panel-solid: #142c66;
  --blue: #2766c4;        /* water side face */
  --water: #38c6ec;       /* water top face */
  --sky: #4aa0ea;
  --sand: #f9c74b;
  --sand-2: #f08c3c;
  --brown: #5d2c1c;       /* SMP outline */
  --text: #ffffff;
  --muted: #c4d6f2;
  --dim: #8ea6cf;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --a1: var(--water); --a2: var(--water);
  --green: #5fd35a; --red: #ff5a5f;
  --head: "Pixelify Sans", "Rubik", system-ui, sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --grad: var(--water);
  /* names used by map.html */
  --card: var(--panel); --card-b: var(--navy); --pixel: var(--head);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--text); background: var(--ink); min-height: 100vh; overflow-x: hidden; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; letter-spacing: .01em; line-height: 1.1; }
::selection { background: var(--sand); color: var(--navy); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--blue); border: 3px solid var(--navy); }
.i { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.mono { font-family: var(--mono); }
.grad, .stripe { color: var(--water); }
.crumb { font-size: .85rem; color: var(--dim); }
.crumb a:hover { color: var(--water); }

/* ---------- background ---------- */
#sea { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; image-rendering: pixelated; image-rendering: crisp-edges; }
.veil { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: rgba(10, 18, 52, .22); }

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* ---------- the block look ---------- */
.card, .panel, .block {
  background: var(--panel); border: 3px solid var(--navy); border-radius: 4px; position: relative;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .1), inset 0 -4px 0 rgba(0, 0, 0, .22), 0 6px 0 var(--navy);
}
.card { transition: transform .15s; }
.lift:hover { transform: translateY(-3px); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; font: 600 .78rem var(--head); text-transform: uppercase; letter-spacing: .04em;
  background: var(--sand); color: var(--navy); border: 2px solid var(--navy); border-radius: 3px; }
.tile { --tc: var(--water); width: 44px; height: 44px; border-radius: 4px; display: grid; place-items: center; flex: none;
  color: var(--navy); background: var(--tc); border: 3px solid var(--navy); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), inset 0 3px 0 rgba(255, 255, 255, .3); }

/* ---------- nav ---------- */
nav { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 4px solid #120833; }
nav .container { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)); transition: transform .15s; }
.logo:hover img { transform: rotate(-3deg) scale(1.04); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 7px 12px; color: var(--muted); font: 600 1.05rem var(--head); border-radius: 3px; }
.nav-links a .i { display: none; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-links a.active { color: var(--sand); }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 4px; cursor: pointer; position: relative;
  background: var(--blue); color: #fff; border: 3px solid #120833; font: 600 1rem var(--head);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .2), inset 0 -4px 0 rgba(0, 0, 0, .25); }
.icon-btn:hover { background: #2f74d8; }
.icon-btn .count { position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; padding: 0 5px; background: var(--sand); color: var(--navy); border: 2px solid var(--navy); font: 700 .75rem var(--body); display: grid; place-items: center; }
.icon-btn .count:empty { display: none; }
.icon-btn.bump { animation: bump .4s; }
@keyframes bump { 30% { transform: scale(1.15); } }
.burger { display: none; padding: 0 10px; }

/* ---------- buttons ---------- */
.btn { --c: var(--sand); --t: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; user-select: none;
  padding: 11px 20px; border: 3px solid var(--navy); border-radius: 4px; font: 700 1.05rem var(--head); color: var(--t); background: var(--c);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 -5px 0 rgba(0, 0, 0, .2), 0 5px 0 var(--navy); transition: transform .08s, box-shadow .08s, filter .15s; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .2), 0 1px 0 var(--navy); }
.btn.ghost { --c: var(--blue); --t: #fff; }
.btn.discord { --c: #5865f2; --t: #fff; }
.btn.small { padding: 7px 13px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn:disabled { filter: grayscale(.7) brightness(.75); cursor: not-allowed; transform: none; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; text-align: center; }
.hero .wordmark { width: min(560px, 86vw); height: auto; margin: 0 auto; filter: drop-shadow(0 8px 0 rgba(13, 22, 56, .55)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-.6deg); } }
.hero .lead { font-size: 1.2rem; max-width: 560px; margin: 26px auto 0; color: #eaf3ff; text-shadow: 0 2px 0 rgba(13, 22, 56, .7); }
.join-row { display: flex; gap: 14px; justify-content: center; align-items: stretch; flex-wrap: wrap; margin-top: 28px; }
.ipbox { display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 18px; cursor: pointer; border-radius: 4px;
  background: #fff; color: var(--navy); border: 3px solid var(--navy); box-shadow: inset 0 -5px 0 #c9d6ea, 0 5px 0 var(--navy); transition: transform .08s, box-shadow .08s; }
.ipbox:active { transform: translateY(4px); box-shadow: inset 0 -3px 0 #c9d6ea, 0 1px 0 var(--navy); }
.ipbox .ip { font: 700 1.2rem var(--mono); }
.ipbox .copy { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--sand); border: 2px solid var(--navy); border-radius: 3px; font: 700 .9rem var(--head); }
.online { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--muted); font-size: .95rem; }
.online b { font: 700 1.3rem var(--head); color: #fff; }
.online .max { color: var(--dim); margin-left: -6px; }
.hero .online { margin-top: 18px; background: rgba(29, 15, 69, .75); box-shadow: none; }
.dot { width: 12px; height: 12px; background: var(--green); border: 2px solid var(--navy); flex: none; animation: blink 1.6s steps(2) infinite; }
.dot.off { background: var(--red); animation: none; }
@keyframes blink { 50% { opacity: .45; } }

/* ---------- sections ---------- */
section { padding: 64px 0; position: relative; }
.sec-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 8px; text-shadow: 0 3px 0 var(--navy); }
.sec-sub { color: var(--muted); margin-bottom: 26px; max-width: 560px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }

/* how to join */
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; font-size: 1.05rem; }
.steps li::before { content: counter(s); flex: none; width: 36px; height: 36px; display: grid; place-items: center; font: 700 1.2rem var(--head);
  background: var(--sand); color: var(--navy); border: 3px solid var(--navy); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18); }
.steps b { color: var(--sand); font-weight: 600; }
.steps code, .cmd { font: 600 .88em var(--mono); background: rgba(13, 22, 56, .7); padding: 1px 7px; border-radius: 3px; color: var(--water); white-space: nowrap; }

/* fake server-list entry */
.mc-list { background: rgba(0, 0, 0, .55); border: 3px solid #000; padding: 14px; font-family: var(--head); }
.mc-list .label { color: #aaa; font-size: .85rem; margin-bottom: 10px; text-align: center; }
.mc-entry { display: flex; gap: 12px; padding: 6px; border: 2px solid #888; background: rgba(0, 0, 0, .4); }
.mc-entry img { width: 64px; height: 64px; image-rendering: pixelated; flex: none; }
.mc-entry .meta { flex: 1; min-width: 0; line-height: 1.3; }
.mc-entry .row1 { display: flex; justify-content: space-between; gap: 8px; color: #fff; font-size: 1.05rem; }
.mc-entry .row1 span { color: #aaa; font-size: .95rem; }
.mc-entry .motd { color: var(--water); font-size: .95rem; }
.mc-entry .motd2 { color: var(--sand); font-size: .95rem; }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; margin-left: 6px; vertical-align: -1px; }
.bars i { width: 3px; background: var(--green); }
.bars i:nth-child(1) { height: 4px; } .bars i:nth-child(2) { height: 7px; } .bars i:nth-child(3) { height: 10px; } .bars i:nth-child(4) { height: 14px; }
.mc-list .btns { display: flex; gap: 8px; margin-top: 12px; }
.mc-list .btns span { flex: 1; text-align: center; padding: 6px; background: #6f6f6f; border: 2px solid #000; color: #fff; box-shadow: inset 0 2px 0 #aaa, inset 0 -3px 0 #4a4a4a; font-size: .95rem; }
.mc-list .btns span:first-child { outline: 2px solid #fff; outline-offset: -4px; }

/* features: a plain list, not cards */
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; }
.feat { display: flex; gap: 14px; padding: 16px 0; border-bottom: 3px dashed rgba(196, 214, 242, .16); }
.feat .tile { width: 42px; height: 42px; }
.feat h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feat p { color: var(--muted); font-size: .97rem; margin-top: 2px; }

/* ranks table */
.ranks-wrap { overflow-x: auto; padding-bottom: 8px; }
.ranks { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 620px; background: var(--panel); border: 3px solid var(--navy); box-shadow: 0 6px 0 var(--navy); }
.ranks th, .ranks td { padding: 12px 14px; text-align: center; border-bottom: 2px solid rgba(29, 15, 69, .7); }
.ranks th:first-child, .ranks td:first-child { text-align: left; color: var(--muted); }
.ranks thead th { font: 700 1.3rem var(--head); background: var(--panel-2); color: var(--rc, #fff); padding-top: 16px; }
.ranks thead th small { display: block; font: 600 1rem var(--head); color: #fff; margin-top: 2px; }
.ranks td .i { color: var(--green); }
.ranks .no { color: var(--dim); }
.ranks tr:last-child td { border-bottom: 0; }
.ranks tbody tr:nth-child(even) td { background: rgba(0, 0, 0, .1); }
.ranks .pop { background: rgba(249, 199, 75, .1) !important; }
.ranks-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); }

/* rules: a written sign/book */
.book { background: #f4e3b5; color: #3b2414; border: 3px solid var(--brown); border-radius: 4px; padding: 26px 28px;
  box-shadow: inset 0 -5px 0 #dcc58c, inset 0 3px 0 #fff4d6, 0 6px 0 var(--brown); }
.book h2 { color: var(--brown); font-size: 1.9rem; margin-bottom: 14px; }
.book ol { padding-left: 22px; display: grid; gap: 9px; }
.book li { padding-left: 4px; }
.book li::marker { font: 700 1rem var(--head); color: #9a5a2a; }
.book .ok { margin-top: 18px; padding: 10px 14px; background: #dff2c6; border: 2px solid #5a8a2a; color: #2c4a10; border-radius: 3px; }
.book .fine { margin-top: 12px; font-size: .9rem; color: #7a5a3a; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 3px solid var(--navy); border-radius: 4px; box-shadow: 0 4px 0 var(--navy); }
.faq summary { list-style: none; cursor: pointer; padding: 13px 16px; font: 600 1.1rem var(--head); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--sand); transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq .ans { padding: 0 16px 15px; color: var(--muted); }

/* discord strip */
.discord-strip { background: #5865f2; border-top: 4px solid var(--navy); border-bottom: 4px solid var(--navy); padding: 34px 0; }
.discord-strip .container { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.discord-strip .big { width: 64px; height: 64px; flex: none; display: grid; place-items: center; background: #fff; color: #5865f2; border: 3px solid var(--navy); border-radius: 4px; }
.discord-strip h2 { font-size: 1.9rem; }
.discord-strip p { color: #e3e6ff; }
.discord-strip .btn { margin-left: auto; --c: #fff; --t: #4752c4; }

/* footer */
footer { padding: 40px 0 34px; background: var(--navy); font-size: .92rem; color: var(--dim); border-top: 4px solid #120833; }
footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 26px; }
footer .col { display: flex; flex-direction: column; gap: 6px; }
footer .col .logo img { height: 52px; }
footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--sand); }
footer .legal { border-top: 2px solid rgba(255, 255, 255, .08); padding-top: 18px; font-size: .78rem; line-height: 1.7; }
footer .legal p + p { margin-top: 6px; }
footer .legal a { text-decoration: underline; text-underline-offset: 3px; }

/* reveal (subtle) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.reveal.in { opacity: 1; transform: none; }

/* toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 140px); z-index: 200; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 4px;
  background: #fff; color: var(--navy); border: 3px solid var(--navy); box-shadow: inset 0 -4px 0 #c9d6ea, 0 5px 0 var(--navy); font: 600 1.05rem var(--head); transition: transform .3s; }
.toast .i { color: var(--blue); }
.toast.show { transform: translate(-50%, 0); }

/* ============== STORE ============== */
.page-head, .store-hero { padding: 44px 0 24px; }
.page-head h1, .store-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin: 8px 0 8px; text-shadow: 0 4px 0 var(--navy); }
.page-head p, .store-hero p { color: #e2ecfb; max-width: 580px; text-shadow: 0 2px 0 rgba(13, 22, 56, .6); }
.store-top { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.side-stack { display: grid; gap: 12px; }
.side-stack .online { display: flex; }
.who { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; }
.who img { width: 42px; height: 42px; image-rendering: pixelated; border: 2px solid var(--navy); background: rgba(0, 0, 0, .2); }
.who b { font: 600 1.15rem var(--head); }
.who small { display: block; color: var(--dim); font-size: .8rem; }
.who .i { margin-left: auto; color: var(--sand); }
.who:hover { background: var(--panel-2); }
.goal { padding: 14px 16px; }
.goal .row { display: flex; justify-content: space-between; font: 600 1rem var(--head); margin-bottom: 8px; }
.goal .bar { height: 16px; background: var(--navy); border: 2px solid var(--navy); }
.goal .bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--sand) 0 10px, #f3b23a 10px 20px); transition: width 1.2s; }
.goal p { color: var(--dim); font-size: .85rem; margin-top: 6px; }

.cats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cat { cursor: pointer; padding: 20px; display: flex; flex-direction: column; animation: pop .35s both; }
.cat .big-tile { --tc: var(--cc); width: 64px; height: 64px; border-radius: 4px; display: grid; place-items: center; color: var(--navy); margin-bottom: 16px;
  background: var(--tc); border: 3px solid var(--navy); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), inset 0 3px 0 rgba(255, 255, 255, .35); }
.cat h3 { font-size: 1.5rem; }
.cat p { color: var(--muted); font-size: .95rem; margin: 4px 0 14px; flex: 1; }
.cat .n { display: inline-flex; align-items: center; gap: 6px; font: 600 1rem var(--head); color: var(--sand); }
.cat:hover { background: var(--panel-2); }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }

.back { display: inline-flex; gap: 8px; align-items: center; font: 600 1.05rem var(--head); color: #fff; cursor: pointer; background: none; border: 0; text-shadow: 0 2px 0 var(--navy); }
.back:hover { color: var(--sand); }
.pkgs { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pkg { padding: 12px; display: flex; flex-direction: column; animation: pop .35s both; }
.pkg .art, .modal .art { height: 150px; margin-bottom: 14px; display: grid; place-items: center; overflow: hidden; color: var(--pc);
  background: var(--navy); border: 3px solid var(--navy); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06); }
.pkg .art img, .modal .art img { max-height: 124px; object-fit: contain; image-rendering: pixelated; transition: transform .2s; }
.pkg:hover .art img, .pkg:hover .art svg { transform: scale(1.06); }
.pkg .tag { position: absolute; top: 20px; left: 20px; z-index: 2; }
.pkg .tag.hot { background: var(--sand-2); }
.pkg .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 0 4px; }
.pkg h3 { font-size: 1.35rem; }
.pkg .pr { text-align: right; font: 700 1.3rem var(--head); color: var(--sand); white-space: nowrap; }
.pkg .pr s { display: block; color: var(--dim); font-size: .85rem; }
.pkg .pr small { display: block; color: var(--dim); font: 400 .75rem var(--body); }
.pkg .perks { color: #dbe7f8; font-size: .92rem; padding: 8px 4px 0; flex: 1; }
.pkg .perks ul, .modal .desc ul { list-style: none; display: grid; gap: 3px; padding: 0; }
.pkg .perks li, .modal .desc li { padding-left: 18px; position: relative; }
.pkg .perks li::before, .modal .desc li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 7px; height: 7px; background: var(--pc, var(--water)); border: 1px solid var(--navy); }
.pkg .perks.fade { max-height: 88px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.pkg .more { display: inline-flex; align-items: center; gap: 6px; font: 600 .98rem var(--head); color: var(--water); background: none; border: 0; cursor: pointer; padding: 8px 4px 12px; }
.pkg .more:hover { text-decoration: underline; text-underline-offset: 3px; }
.skeleton { height: 240px; background: var(--panel); border: 3px solid var(--navy); opacity: .6; animation: sk 1s steps(2) infinite; }
@keyframes sk { 50% { opacity: .35; } }
.notice { display: flex; gap: 10px; align-items: center; padding: 10px 14px; margin-bottom: 20px; background: #f4e3b5; color: #3b2414; border: 3px solid var(--brown); border-radius: 4px; font-size: .95rem; }

/* cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(13, 22, 56, .6); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100vw); z-index: 100; display: flex; flex-direction: column;
  background: var(--panel-solid); border-left: 4px solid var(--navy); transform: translateX(105%); transition: transform .3s; }
.drawer.open { transform: none; }
.drawer header { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; background: var(--navy); }
.drawer header h3 { font-size: 1.5rem; }
.x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; display: grid; place-items: center; }
.x:hover { color: #fff; }
.lines { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.line { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--panel); border: 3px solid var(--navy); border-radius: 4px; }
.line .tile { --tc: var(--pc); width: 40px; height: 40px; }
.line .nm { flex: 1; font: 600 1.1rem var(--head); }
.line .nm small { color: var(--dim); display: block; font: 400 .8rem var(--body); }
.qty { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 1.1rem; }
.qty button { width: 28px; height: 28px; border: 2px solid var(--navy); background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: #2f74d8; }
.empty { text-align: center; color: var(--muted); margin-top: 70px; }
.empty .tile { margin: 0 auto 14px; width: 60px; height: 60px; }
.drawer footer { padding: 18px 20px; border-top: 3px solid var(--navy); margin: 0; background: var(--navy); }
.drawer footer .tot { display: flex; justify-content: space-between; font: 700 1.35rem var(--head); color: #fff; margin-bottom: 14px; }
.drawer footer .secure { display: flex; gap: 6px; justify-content: center; align-items: center; color: var(--dim); font-size: .82rem; margin-top: 12px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; pointer-events: none; opacity: 0; transition: opacity .2s; background: rgba(13, 22, 56, .6); }
.modal.open { opacity: 1; pointer-events: auto; }
.modal .box { width: min(500px, 100%); max-height: 86vh; overflow-y: auto; padding: 22px; background: var(--panel-solid); }
.modal h3 { font-size: 1.7rem; margin-bottom: 4px; }
.modal .desc { color: #dbe7f8; margin: 14px 0 20px; }
.modal input { width: 100%; padding: 12px 14px; border: 3px solid var(--navy); border-radius: 4px; background: #0b1230; color: #fff; font: 500 1.05rem var(--mono); margin: 16px 0 4px; outline: none; }
.modal input:focus { border-color: var(--sand); }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; }
.modal .head-preview { display: flex; gap: 14px; align-items: center; }
.modal .head-preview img { width: 56px; height: 56px; image-rendering: pixelated; border: 3px solid var(--navy); }

[hidden] { display: none !important; }

/* responsive */
@media (max-width: 900px) {
  .split, .store-top { grid-template-columns: 1fr; }
  .feat-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; margin: 0; padding: 10px; background: var(--navy); border-bottom: 4px solid #120833; display: none; }
  .nav-links.open { display: flex; }
  .burger { display: inline-flex; }
  .logo img { height: 40px; }
  .hero { padding-top: 34px; }
  section { padding: 48px 0; }
  .ipbox .ip { font-size: 1.05rem; }
  .discord-strip .btn { margin-left: 0; }
  .book { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
