/* GTA VI Kingdom — shared theme. Pricedown appears only as pre-rendered images (font licence §2.2/§4.3). */
:root {
  --black: #000;
  --ink: #09070d;
  --panel: #110d18;
  --panel-2: #191322;
  --line: #2a2133;
  --line-2: #3a2e47;
  --cream: #fff7ed;
  --muted: #a99db8;
  --pink: #ff4fa3;
  --orange: #ff7a3d;
  --purple: #1a0b2e;
  --good: #46e0a0;
  --amber: #ffc24a;
  --bad: #ff5b6b;
  --grad: linear-gradient(100deg, var(--pink), var(--orange));
  /* Display face: Inter Tight stands in for Neue Haas Display (desktop licence can't be web-embedded).
     To switch after buying a Monotype web licence: add @font-face for 'Neue Haas Display' and put it first here. */
  --display: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --display-track: -.01em;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --r: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--black); color: var(--cream); font: 14px/1.5 var(--body); }
a { color: var(--pink); }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* header */
.k-top {
  display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: var(--black);
  border-bottom: 1px solid var(--line); position: relative; z-index: 1000; min-height: 58px;
}
.k-brand { display: block; line-height: 0; flex: none; }
.k-brand img { height: 40px; width: auto; display: block; }
.k-nav { display: flex; gap: 2px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.k-nav::-webkit-scrollbar { display: none; }
.k-nav a {
  font: 800 14px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; padding: 10px 12px; border-radius: 8px; white-space: nowrap;
}
.k-nav a:hover { color: var(--cream); background: var(--panel); }
.k-nav a.on { color: var(--cream); box-shadow: inset 0 -3px 0 var(--pink); border-radius: 0; }
.k-user { display: flex; align-items: center; gap: 8px; flex: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2);
  background: var(--panel); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600;
  white-space: nowrap; text-decoration: none; color: var(--cream); transition: border-color .12s, transform .12s, background .12s;
}
.btn:hover { border-color: var(--pink); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-hot { background: var(--grad); border-color: transparent; color: #fff; }
.btn-hot:hover { border-color: transparent; filter: brightness(1.08); }
.btn-small { padding: 5px 10px; font-size: 12px; }
.btn-ghost { background: transparent; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord:hover { border-color: #fff; }
.btn.on { border-color: var(--good); color: var(--good); }
.btn.on-pink { border-color: var(--pink); color: var(--pink); }
.btn.on-bad { border-color: var(--bad); color: var(--bad); }

.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--panel-2); border: 2px solid var(--line-2); flex: none; display: inline-grid; place-items: center; font: 800 14px/1 var(--display); color: var(--cream); overflow: hidden; }
.avatar.lg { width: 88px; height: 88px; font-size: 40px; border-width: 3px; border-color: var(--pink); }

.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--panel-2); border: 1px solid var(--line-2); white-space: nowrap; }
.tag.good { color: var(--good); border-color: var(--good); }
.tag.warn { color: var(--amber); border-color: var(--amber); }
.tag.pink { color: var(--pink); border-color: var(--pink); }

/* forms */
.stack { display: grid; gap: 10px; }
.stack label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.field, .stack input[type=text], .stack input[type=email], .stack input[type=url], .stack select, .stack textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ink);
  outline: none; color: var(--cream); font-weight: 400;
}
.stack textarea { min-height: 84px; resize: vertical; }
.field:focus, .stack :is(input, select, textarea):focus { border-color: var(--pink); }
.check { display: flex !important; align-items: center; gap: 8px !important; color: var(--cream) !important; font-weight: 400 !important; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 4px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }


/* modal + sheet */
.k-modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(0,0,0,.72); padding: 16px; }
.k-modal-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.6); max-height: calc(100vh - 32px); overflow-y: auto; }
.k-modal-card h2 { margin: 0 0 4px; }
.k-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; font-size: 18px; line-height: 1; }
.head-img { display: block; height: 30px; width: auto; margin: 0 0 12px; }
.head-img.sm { height: 24px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 4000; background: var(--panel);
  border: 1px solid var(--pink); padding: 10px 16px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.6);
  max-width: calc(100vw - 32px);
}
.k-foot { color: var(--muted); font-size: 12px; padding: 20px 16px 32px; border-top: 1px solid var(--line); }
.k-foot a { color: var(--muted); }

.progress { height: 10px; border-radius: 999px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--line-2); }
.progress > i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .4s ease; }

@media (max-width: 720px) {
  .k-top { flex-wrap: wrap; gap: 6px 10px; padding: 8px 16px 0; }
  .k-brand img { height: 30px; }
  .k-nav { order: 3; flex-basis: 100%; margin: 0 -4px; }
  .k-nav a { font-size: 12.5px; padding: 10px 8px; letter-spacing: 0; }
  .k-user { margin-left: auto; }
}

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.auth-tab { background: none; border: 0; border-radius: 999px; padding: 8px; cursor: pointer; font: 800 13px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.auth-tab.on { background: var(--panel-2); color: var(--cream); box-shadow: inset 0 0 0 1px var(--pink); }
