:root { --bg:#14161a; --panel:#1c1f25; --panel2:#252931; --line:#323743; --text:#e8eaee; --muted:#9aa1ad;
  --red:#d6282f; --gold:#e8b931; --green:#3fb37f; --radius:14px; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: #8ab4ff; } a:hover { color: #b8d0ff; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.sh { border-bottom: 1px solid var(--line); background: rgba(20,22,26,.96); position: sticky; top: 0; z-index: 5; }
.sh .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.logo { font-weight: 800; font-size: 20px; color: #fff; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--red); }
.snav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.snav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 99px; white-space: nowrap; font-size: 14px; font-weight: 600; }
.snav a:hover { color: #fff; background: var(--panel2); }
.snav a[aria-current] { color: #1b1b1b; background: var(--gold); }
.crumbs { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.crumbs a { color: var(--muted); }
h1 { font-size: 30px; line-height: 1.2; margin: 10px 0 12px; }
h2 { font-size: 21px; margin: 30px 0 10px; }
h3 { font-size: 17px; margin: 20px 0 6px; }
.lead { font-size: 18px; color: #cfd3da; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.cta { background: linear-gradient(135deg, rgba(214,40,47,.18), rgba(232,185,49,.10)); border-color: rgba(214,40,47,.45); }
.cta b.addr { color: var(--gold); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel2); color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit; }
.btn:hover { color: #fff; border-color: #4a5160; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.dc { background: #5865f2; border-color: #5865f2; color: #fff; }
code, .kbd { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em; background: var(--panel2);
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
pre { background: #0f1114; border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; font-size: 13px; white-space: pre-wrap; word-break: break-all; }
ol li, ul li { margin: 6px 0; }
.tip { border-left: 3px solid var(--gold); padding: 8px 12px; background: rgba(232,185,49,.08); border-radius: 0 8px 8px 0; margin: 12px 0; }
.warn { border-left: 3px solid var(--red); padding: 8px 12px; background: rgba(214,40,47,.10); border-radius: 0 8px 8px 0; margin: 12px 0; }
.note { color: var(--muted); font-size: 14px; }
.live { font-size: 14px; color: var(--muted); margin-top: 6px; } .live b { color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mapc { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); display: block; }
.mapc:hover { border-color: #4a5160; color: #fff; }
.mapc img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #0f1114; }
.mapc div { padding: 10px 12px; } .mapc b { display: block; } .mapc small { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--panel2); color: var(--muted); }
.tag.xmas { background: #1f7a3a; color: #fff; } .tag.gold { background: var(--gold); color: #1b1b1b; }
.facts { width: 100%; border-collapse: collapse; } .facts td { padding: 6px 4px; border-top: 1px solid var(--line); } .facts td:first-child { color: var(--muted); width: 45%; }
.mapimg { width: 100%; max-height: 440px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
table.rk { width: 100%; border-collapse: collapse; font-size: 15px; }
table.rk th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; padding: 6px 4px; }
table.rk td { padding: 8px 4px; border-top: 1px solid var(--line); }
table.rk td.n { text-align: right; white-space: nowrap; } table.rk th.n { text-align: right; }
table.rk .nm { font-weight: 700; word-break: break-all; }
@media (max-width: 560px) { table.rk .hide-s { display: none; } h1 { font-size: 25px; } }
.links { columns: 2; } @media (max-width: 560px) { .links { columns: 1; } }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.codes div { overflow-wrap: anywhere; }
.codes div { display: flex; align-items: center; gap: 8px; background: var(--panel2); border-radius: 8px; padding: 6px 8px; font-size: 14px; }
.codes i { width: 22px; height: 22px; border-radius: 5px; flex: none; border: 1px solid rgba(255,255,255,.15); }
footer.sf { border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0 40px; color: var(--muted); font-size: 14px; }
footer.sf a { color: var(--muted); }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #000; color: #fff; padding: 10px 16px; border-radius: 10px;
  opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 20; font-size: 14px; }
#toast.show { opacity: .95; }
/* nick generator */
.ngin { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; font-size: 16px; }
.ngmodes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.ngmodes button { border: 1px solid var(--line); background: var(--panel2); color: var(--muted); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ngmodes button.on { background: var(--gold); border-color: var(--gold); color: #1b1b1b; }
.ngpick { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.ngslot { width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--line); cursor: pointer; flex: none; }
.ngslot.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(232,185,49,.35); }
.ngpal { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 5px; margin: 8px 0; }
.ngpal button { height: 34px; border-radius: 7px; border: 1px solid rgba(255,255,255,.15); cursor: pointer; padding: 0; font: 700 11px/1 ui-monospace, monospace; color: #fff; text-shadow: 0 0 3px #000, 0 0 2px #000; }
.ngpal button.on { outline: 2px solid var(--gold); outline-offset: 1px; }
.ngprev { background: #161616; border: 1px solid var(--line); border-radius: 10px; padding: 14px 10px; margin-top: 6px; text-align: center;
  font: 700 22px/1.35 "Courier New", ui-monospace, monospace; text-shadow: 1px 1px 0 #000; overflow-wrap: anywhere; }
.ngprev .h { cursor: pointer; border-radius: 3px; } .ngprev .h:hover { outline: 1px dashed rgba(255,255,255,.6); }
.ngcode { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 8px; }
.ngcode code { overflow-wrap: anywhere; } #nglen { font-size: 12px; color: var(--muted); white-space: nowrap; } #nglen.bad { color: #ff6b6b; font-weight: 700; }
[hidden] { display: none !important; }
