/* Account pages. Colors come from the logo: night navy, neon cyan, window light, star orange. */
:root {
  --panel: rgba(0, 0, 0, .34);
  --panel-2: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .1);
  --text: rgba(255, 255, 255, .85);
  --soft: rgba(255, 255, 255, .75);
  --cyan: #00bfff;
  --cyan-hi: #5bdfe7;
  --neon: #00ffff;
  --window: #ffe9a0;
  --star: #ffa31a;
  --good: #00ff99;
  --bad: #ff5656;
  --discord: #5865f2;
  --r: 10px;
  --glow: 0 0 12px rgba(0, 191, 255, .7), 0 0 24px rgba(0, 191, 255, .5);
  --glow-s: 0 0 8px rgba(0, 191, 255, .6);
  --head: Biryani, sans-serif;
  --body: Overpass, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; background: #161c29; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(to bottom, #161c29ee, #161c29ee), url('../images/header/background.png') no-repeat center center fixed; background-size: cover; color: var(--soft); font: 300 16px/1.8 var(--body); }
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 140px 32px 96px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.3; margin: 0; color: var(--text); text-wrap: balance; }
h2 { font-size: 2.2rem; font-weight: 700; color: var(--cyan); }
h3 { font-size: 1.15rem; font-weight: 400; }
p { margin: 0; }
strong { font-weight: 700; color: #fff; }
a { color: var(--cyan-hi); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: #161c29; padding: 8px 14px; z-index: 1300; }
.skip:focus { left: 16px; }
.soft { color: rgba(255, 255, 255, .7); }
.small { font-size: 14px; }

/* floating nav, corner pill, online box: as on the home page */
.nav-wrap { position: fixed; inset: 0 0 auto; z-index: 999; display: flex; justify-content: center; padding: 20px 32px 0; pointer-events: none; }
.navbar { pointer-events: auto; display: flex; align-items: center; gap: 50px; padding: 12px 12px 12px 24px; border-radius: 1000px; background: #ffffff08; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); box-shadow: 0 50px 50px #00000008; }
.nav-links { display: flex; align-items: center; gap: 20px; padding-top: 4px; }
.nav-links a, .nav-mobile nav a { color: var(--text); text-decoration: none; transition: color .2s, text-shadow .2s; }
.nav-links a:hover, .nav-mobile nav a:hover, .foot-links a:hover { color: #00b8b8; text-shadow: 0 0 6px var(--neon), 0 0 10px var(--neon); }
.nav-slash { color: #ffffff26; }
.nav-connect { display: inline-flex; align-items: center; gap: 12px; padding-right: 1.7em; border: 1px solid var(--cyan-hi); border-radius: 100px; color: var(--text); font-size: .9em; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.nav-connect:hover { background: #ffffff1a; color: var(--neon); text-shadow: 0 0 6px var(--neon), 0 0 12px var(--neon); }
.nav-connect > span:last-child { padding-top: .25em; }
.nav-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan-hi); }
.nav-mobile { display: none; }
.corner-user { position: fixed; top: 18px; left: 18px; z-index: 1200; }
.corner-link, .corner-user summary { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 10px 16px; border: 1px solid rgba(88, 101, 242, .6); border-radius: 999px; background: rgba(20, 23, 28, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 14px; font-weight: 400; line-height: 1; text-decoration: none; list-style: none; cursor: pointer; }
.corner-user summary::-webkit-details-marker { display: none; }
.corner-link:hover, .corner-user summary:hover { border-color: var(--discord); box-shadow: 0 0 0 2px rgba(88, 101, 242, .25); }
.corner-user summary img { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); object-fit: cover; }
.corner-user summary span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.corner-menu { margin-top: 8px; min-width: 170px; overflow: hidden; border: 1px solid rgba(88, 101, 242, .45); border-radius: 12px; background: rgba(20, 23, 28, .98); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.corner-menu a, .corner-menu button { display: block; width: 100%; padding: 10px 14px; border: 0; background: none; color: #fff; font: 400 13px/1.4 var(--body); text-align: left; text-decoration: none; cursor: pointer; }
.corner-menu a:hover, .corner-menu button:hover { background: rgba(88, 101, 242, .2); }
.online-box { position: fixed; top: 10px; right: 20px; z-index: 1100; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 2px solid var(--cyan); border-radius: 8px; background: rgba(0, 0, 0, .75); box-shadow: var(--glow-s); font-size: .8rem; font-weight: 700; white-space: nowrap; color: var(--good); }
.online-box img { filter: drop-shadow(0 0 4px var(--cyan)); }
.online-box .is-off { color: var(--bad); }
.online-box.in-foot { position: static; }
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 32px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 64px 32px 80px; border-top: 1px solid var(--line); }
.foot-links { display: grid; justify-items: start; }
.foot-links a { color: var(--text); text-decoration: none; }
.foot-brand { display: grid; justify-items: center; gap: 8px; font-size: 14px; }
.foot-brand img { width: auto; height: auto; }
.foot-brand a:first-child img { max-width: 100px; }
.foot-brand a + a img { max-width: 200px; }
.foot-online { display: flex; justify-content: flex-end; }

/* buttons (black with a neon edge, like Join Discord), fields, messages */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 18px; border: 2px solid var(--cyan); border-radius: 8px; background: rgba(0, 0, 0, .75); color: #fff; font: 700 1rem/1.2 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: 0 0 10px rgba(0, 191, 255, .6); transition: box-shadow .25s, transform .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 18px rgba(0, 191, 255, 1); color: #fff; }
.btn-small { min-height: 40px; padding: 7px 15px; font-size: 14px; }
.btn-discord { border-color: var(--discord); box-shadow: 0 0 10px rgba(88, 101, 242, .7); }
.btn-discord:hover { box-shadow: 0 0 18px rgba(88, 101, 242, 1); }
.btn-quiet { border-width: 1px; border-color: rgba(255, 255, 255, .75); box-shadow: none; font-weight: 400; }
.btn-quiet:hover { box-shadow: none; background: rgba(255, 255, 255, .1); }
.btn-danger { border-color: var(--bad); box-shadow: 0 0 8px rgba(255, 86, 86, .5); }
.btn-danger:hover { box-shadow: 0 0 16px rgba(255, 86, 86, .9); }
.btn svg { width: 19px; height: 19px; flex: none; }
.field { display: grid; gap: 6px; }
.field label { color: var(--text); font-weight: 400; }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font: 400 16px var(--body); }
.field input:focus, .field select:focus { border-color: var(--cyan); outline: none; box-shadow: var(--glow-s); }
.field .hint { color: rgba(255, 255, 255, .65); font-size: 14px; line-height: 1.5; }
.flash { margin: 0 0 24px; padding: 12px 18px; border-radius: 8px; border: 1px solid var(--cyan); background: rgba(0, 0, 0, .6); color: #fff; }
.flash-error { border-color: var(--bad); box-shadow: 0 0 8px rgba(255, 86, 86, .4); }
.flash-success { border-color: var(--good); box-shadow: 0 0 8px rgba(0, 255, 153, .35); }

/* log in / sign up */
.gate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 72px; align-items: center; padding: 24px 0; }
.gate-story h1 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 400; color: #fff; }
.gate-story p { font-size: 1.2rem; line-height: 1.6; max-width: 46ch; margin-top: 16px; }
.gate-photo { display: block; width: 100%; height: auto; max-height: 400px; object-fit: cover; object-position: 50% 6%; margin-top: 30px; border: 2px solid var(--cyan); border-radius: 10px; box-shadow: var(--glow); }
.gate-card { background: rgba(0, 0, 0, .6); border: 2px solid var(--cyan); border-radius: 10px; box-shadow: var(--glow); padding: 32px; }
.gate-card h2 { font-size: 1.8rem; margin-bottom: 18px; }
.gate-card form { display: grid; gap: 18px; }
.gate-card .btn { width: 100%; }
.gate-single { grid-template-columns: minmax(0, 480px); justify-content: center; }
.gate-or { text-align: center; margin: 14px 0; }
.gate-card .check { line-height: 1.4; }
.gate-alt { margin-top: 20px; font-size: 15px; display: grid; gap: 4px; }

/* resident pass */
.pass { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); background: rgba(0, 0, 0, .55); border: 2px solid var(--cyan); border-radius: 10px; box-shadow: var(--glow); }
.pass-who { padding: 38px 12px 38px 40px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.pass-id { display: flex; align-items: center; gap: 22px; }
.pass-photo { width: 104px; height: 104px; border-radius: 10px; object-fit: cover; background: #0b0f17; border: 2px solid var(--cyan); box-shadow: var(--glow-s); flex: none; }
.pass-photo.is-logo { object-fit: contain; padding: 16px; }
.pass h1 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 400; color: #fff; overflow-wrap: anywhere; }
.pass-sub { margin-top: 2px; }
.pass-state { display: flex; gap: 12px; align-items: flex-start; max-width: 46ch; }
.pass-state .dot { margin-top: 8px; }
.pass-state strong { display: block; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--soft); flex: none; }
.dot.good { background: var(--good); } .dot.warn { background: var(--star); } .dot.bad { background: var(--bad); }
.pass-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.role { border: 1px solid rgba(255, 255, 255, .2); border-radius: 99px; padding: 2px 13px; font-size: 14px; font-weight: 400; background: rgba(0, 0, 0, .5); }
.pass-photo-wide { position: relative; min-height: 270px; }
.pass-photo-wide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; -webkit-mask-image: linear-gradient(to right, transparent, #000 38%); mask-image: linear-gradient(to right, transparent, #000 38%); }

/* steps under the pass, what is done and what is next */
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step { display: grid; grid-template-columns: 26px 1fr; gap: 0 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.step .mark { grid-row: span 2; width: 26px; height: 26px; margin-top: 3px; border-radius: 7px; display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, .3); color: var(--soft); font-weight: 700; font-size: 13px; }
.step strong { font-weight: 400; color: var(--text); font-family: var(--head); padding-top: 3px; }
.step span.soft { font-size: 14px; }
.step.done .mark { background: var(--cyan-hi); border-color: var(--cyan-hi); color: #06202a; }
.step.now { border: 1px solid var(--cyan); box-shadow: var(--glow-s); background: rgba(0, 0, 0, .6); }
.step.now .mark { border-color: var(--cyan); color: var(--cyan-hi); }

/* tabs */
.tabs { display: flex; gap: 8px 14px; align-items: center; margin: 64px 0 40px; padding-bottom: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { padding: 6px 4px; margin-right: 18px; color: var(--text); text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: #00b8b8; text-shadow: 0 0 6px var(--neon), 0 0 10px var(--neon); }
.tabs a[aria-current=true] { color: #00b8b8; text-decoration: line-through; text-decoration-color: var(--neon); text-shadow: 0 0 6px var(--neon), 0 0 10px var(--neon); }
.sec { scroll-margin-top: 190px; }
.sec + .sec { margin-top: 44px; }
.js .sec + .sec { margin-top: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.empty { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r); padding: 40px 24px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.empty strong { font-family: var(--head); font-weight: 400; font-size: 1.3rem; }

/* characters */
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.char { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.char-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--panel-2); }
.char-badge { width: 46px; height: 46px; border-radius: 8px; background: #08264a; border: 2px solid var(--cyan); color: var(--window); display: grid; place-items: center; font: 700 16px/1 var(--head); flex: none; padding-top: 3px; }
.char-head .soft { font-size: 14px; line-height: 1.4; display: block; font-variant-numeric: tabular-nums; }
.char dl { margin: 0; padding: 6px 20px 14px; }
.char dl div { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; }
.char dl div + div { border-top: 1px solid var(--line); }
.char dt { color: var(--soft); }
.char dd { margin: 0; text-align: right; font-weight: 400; color: #fff; line-height: 1.5; padding-top: 2px; font-variant-numeric: tabular-nums; }

/* connections */
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.link-head { display: flex; align-items: center; gap: 14px; }
.link-icon { width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; background: rgba(0, 0, 0, .75); color: #fff; border: 2px solid var(--line); flex: none; }
.link-icon svg { width: 25px; height: 25px; }
.link-icon.discord { border-color: var(--discord); box-shadow: 0 0 10px rgba(88, 101, 242, .7); }
.link-icon.fivem { border-color: #f40552; box-shadow: 0 0 10px rgba(244, 5, 82, .6); }
.link-body { margin-top: 18px; display: grid; gap: 16px; justify-items: start; }
.unlink { width: 100%; }
.unlink summary { cursor: pointer; color: var(--soft); font-size: 14px; width: fit-content; }
.unlink form { display: grid; gap: 14px; margin-top: 14px; justify-items: start; }
.unlink .field { width: 100%; }

/* applications */
.apps { display: grid; gap: 14px; }
.app { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; }
.app .wide { grid-column: 1 / -1; }
.hist { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.hist summary { cursor: pointer; padding: 14px 20px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-weight: 400; color: var(--text); list-style: none; }
.hist summary::-webkit-details-marker { display: none; }
.hist summary .soft { margin-left: auto; font-weight: 400; font-size: 14px; }
.hist-body { padding: 2px 20px 20px; display: grid; gap: 14px; }
.hist-body h4 { margin: 0 0 4px; font: 600 15px var(--body); }
.hist-body p { color: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.tag { border-radius: 99px; padding: 1px 12px; font-size: 13px; font-weight: 400; border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.tag.approved { border-color: var(--good); color: var(--good); } .tag.denied { border-color: var(--bad); color: #ff9b9b; } .tag.pending { border-color: var(--star); color: #ffc56b; }
.gap-top { margin-top: 34px; }

/* release countdown settings */
.head-links { display: flex; gap: 20px; flex-wrap: wrap; }
.launch-head { margin-top: 20px; }
.launch-head h1 { font-size: 2.2rem; font-weight: 700; color: var(--cyan); }
.launch-now { margin: 10px 0 18px; }
.sec-grid .plain-form { margin-top: 0; }
.check { display: flex; gap: 11px; align-items: center; color: var(--text); }
.check input { width: 20px; height: 20px; accent-color: var(--cyan); }

.field textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font: 400 16px/1.6 var(--body); resize: vertical; }
.field textarea:focus { border-color: var(--cyan); outline: none; box-shadow: var(--glow-s); }

/* security */
.sec-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sec-grid form { display: grid; gap: 16px; margin-top: 16px; justify-items: start; }
.sec-grid .field { width: 100%; }
.sec-grid form + form, .sec-grid details + form { margin-top: 18px; }
.sec-grid details { margin-top: 14px; }
.log { list-style: none; margin: 14px 0 0; padding: 0; }
.log li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.log li + li { border-top: 1px solid var(--line); }
.log time { color: var(--soft); font-size: 14px; white-space: nowrap; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .navbar { gap: 12px; padding: 8px 8px 8px 16px; }
  .nav-wrap { justify-content: flex-end; padding: 12px 16px 0; }
  .nav-mobile { display: block; position: relative; order: -1; }
  .nav-mobile summary { width: 40px; height: 40px; display: grid; align-content: center; gap: 5px; list-style: none; cursor: pointer; }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile summary span { height: 2px; width: 22px; background: var(--text); }
  .nav-mobile nav { position: absolute; top: 52px; right: -120px; min-width: 220px; padding: 10px 0; display: grid; border: 1px solid rgba(88, 101, 242, .45); border-radius: 12px; background: rgba(20, 23, 28, .98); }
  .nav-mobile nav a { padding: 8px 20px; }
  .nav-mobile .nav-slash { display: none; }
  .online-box:not(.in-foot) { display: none; }
  .corner-user { top: 18px; }
}
@media (max-width: 900px) {
  .gate, .gate-single { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .gate-photo { display: none; }
  .pass { grid-template-columns: 1fr; }
  .pass-who { padding: 28px 24px 12px; }
  .pass-photo-wide { min-height: 0; aspect-ratio: 16 / 9; }
  .pass-photo-wide img { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%); mask-image: linear-gradient(to bottom, transparent, #000 34%); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links, .sec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { background-attachment: scroll; }
  main { padding: 104px 16px 64px; }
  h2 { font-size: 1.8rem; }
  .nav-connect { padding: 0; border: 0; }
  .nav-connect > span:last-child { display: none; }
  .nav-mobile nav { right: -50px; }
  .corner-link, .corner-user summary { font-size: 12px; min-height: 34px; padding: 8px 12px; }
  .foot { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 48px 16px 64px; }
  .foot-links { justify-items: center; }
  .steps { gap: 10px; }
  .step { grid-template-columns: 1fr; align-content: start; padding: 14px; gap: 4px; }
  .step .mark { grid-row: auto; }
  .step span.soft { overflow-wrap: anywhere; line-height: 1.4; }
  .pass-id { gap: 16px; }
  .pass-photo { width: 76px; height: 76px; }
  .gate-card { padding: 24px 20px; }
  .tabs { margin: 44px 0 28px; }
  .app { grid-template-columns: 1fr; }
  .chars { grid-template-columns: 1fr; }
  .hist summary .soft { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }
