/* =========================================================
   BASE — tokens, type, nav, buttons, holo panels, modal, form, footer
   Dark room; light text on dark; coral holograms, red visor accents.
   ========================================================= */
:root {
  --bg: #110e17; --bg2: #19151f; --panel: rgba(34, 28, 44, .72);
  --ink: #f2eef8; --ink2: #d3cde0; --mute: #a59fb5; --line: rgba(236, 230, 250, .13);
  /* neon palette — change these 8 lines to re-colour the whole site */
  /* neon gradient #004aad → #cb6ce6 (Vlad's pick). Change these lines to re-colour the site */
  --grad: linear-gradient(90deg, #004aad 0%, #cb6ce6 100%);
  --accent: #cb6ce6; --on-accent: #ffffff;              /* key accents */
  --holo: #d48bf0; --h: 203, 108, 230; --h2: 226, 184, 245;   /* hologram light (lavender end) */
  --v: 40, 110, 255; --violet: #2f6fff;                 /* blue end, brightened so it glows on dark */
  --holo-ink: #f3e9ff; --holo-mute: #c9a8f0; --holo-hi: #fbf6ff;
  --stamp: #e07bff; --red: #ff2e2e; --sand: #b9b3d6;
  --coral: var(--accent); --head-hue: -110deg;
  --f-display: 'Unbounded', system-ui, sans-serif; --f-sans: 'Manrope', system-ui, sans-serif; --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --nav-h: 58px; --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg) url("../media/common/metal.webp") 0 0 / 420px; color: var(--ink); font: 400 16px/1.55 var(--f-sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
/* worn-metal texture over the whole page, barely visible */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: url("../media/common/grain.webp") 0 0 / 512px; opacity: .09; mix-blend-mode: overlay; }
main, .nav, #foot { position: relative; z-index: 1; } .nav { position: fixed; z-index: 50; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--holo); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--coral); color: var(--on-accent); border-radius: 8px; }
.skip:focus { left: 16px; }
.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
h1 { font-size: clamp(34px, 4.4vw, 58px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
h1 em, h2 em { font-style: normal; color: var(--accent); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: 18px; color: var(--ink2); max-width: 560px; }
.label { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sand); margin-bottom: 16px; }
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }

/* ---------- buttons, chips, links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line);
  font: 700 15px/1 var(--f-sans); text-decoration: none; color: var(--ink); background: rgba(255,255,255,.02); transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { background: rgba(255,255,255,.06); }
.btn.solid { background: var(--grad); border-color: transparent; color: #fff; box-shadow: -8px 8px 26px -10px rgba(var(--v), .8), 8px 8px 26px -10px rgba(var(--h), .8); text-shadow: 0 1px 2px rgba(0,0,40,.35); }
.btn.solid:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(var(--h), .9); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font: 600 13px/1 var(--f-sans); color: var(--ink2); background: rgba(255,255,255,.02); transition: .2s; }
.chip:hover { border-color: rgba(var(--h), .5); color: var(--ink); }
.chip.on { background: rgba(var(--h), .16); border-color: var(--holo); color: var(--holo-ink); }
.trace { display: inline-flex; align-items: center; gap: 6px; font: 700 15px/1 var(--f-sans); color: var(--holo); text-decoration: none; white-space: nowrap; }
.trace:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: min(1200px, calc(100% - 24px)); z-index: 50; }
.nav-bar { height: var(--nav-h); display: flex; align-items: center; gap: 24px; padding: 0 9px 0 18px; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(16, 11, 9, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 15px/1 var(--f-display); letter-spacing: .02em; }
.logo svg { width: 26px; height: 26px; }
.logo small { display: block; margin-top: 3px; font: 500 10px/1 var(--f-mono); color: var(--mute); letter-spacing: .12em; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { font: 600 14px/1 var(--f-sans); color: #e2d8cd; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.links a:hover, .links a[aria-current] { color: var(--ink); border-color: var(--coral); }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.lang button, .lang a { display: block; padding: 6px 8px; border-radius: 7px; font: 600 11px/1 var(--f-mono); color: var(--mute); }
.lang button.on, .lang a.on { background: #2a201b; color: var(--ink); }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: .25s; }
.burger i:first-child { top: 15px; } .burger i:last-child { top: 23px; }
.nav.open .burger i:first-child { top: 19px; transform: rotate(45deg); } .nav.open .burger i:last-child { top: 19px; transform: rotate(-45deg); }
.drawer { display: none; }

/* ---------- holo panel (shared look of every hologram) ---------- */
.holo-panel { position: relative; border: 1px solid rgba(var(--h2), .45); border-radius: 10px; color: var(--holo-ink);
  background: linear-gradient(180deg, rgba(var(--h), .13), rgba(var(--h), .04)), rgba(16, 10, 8, .72);
  box-shadow: -10px -6px 34px -10px rgba(var(--h), .4), 12px 10px 34px -10px rgba(var(--v), .4), inset 0 0 26px rgba(var(--h), .1); }
.holo-panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(var(--h2), .07) 0 1px, transparent 1px 3px); }
.h-head { display: flex; justify-content: space-between; gap: 12px; font: 500 12px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--holo-mute);
  padding-bottom: 10px; border-bottom: 1px dashed rgba(var(--h2), .35); margin-bottom: 14px; }
.blink { animation: blink 1s steps(1) infinite; } @keyframes blink { 50% { opacity: 0; } }
.flash { animation: flash .45s ease-out; } @keyframes flash { 0% { opacity: 0; filter: blur(4px) brightness(2); } }

/* droid portrait */
.portrait { position: relative; width: 120px; height: 140px; flex: none; display: grid; place-items: center; border: 1px solid rgba(var(--h2), .45); border-radius: 6px;
  background: radial-gradient(circle at 50% 40%, rgba(var(--h), .22), rgba(var(--h), .04) 70%); overflow: hidden; }
.portrait > span:last-child:not(.head) { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font: 600 9px/1 var(--f-mono); letter-spacing: .2em; color: var(--on-accent); background: var(--holo); padding: 4px 0; }
.portrait .head { display: grid; place-items: center; width: 80%; height: 80%; }
.portrait .head svg { width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(var(--h), .8)); }
.portrait .head img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) sepia(1) saturate(6) hue-rotate(var(--head-hue)) brightness(1.1) drop-shadow(0 0 6px rgba(var(--h), .7)); }
.portrait.sm { width: 84px; height: 96px; } .portrait.xs { width: 46px; height: 52px; } .portrait.lg { width: 170px; height: 196px; }
.portrait.q { font: 800 30px/1 var(--f-display); color: var(--holo); }

/* stamp */
.stamp { position: absolute; left: 50%; top: 56%; z-index: 3; padding: 12px 26px; border: 5px solid var(--stamp); border-radius: 10px; color: var(--stamp); white-space: nowrap; pointer-events: none;
  font: 800 40px/1 var(--f-display); letter-spacing: .14em; transform: translate(-50%, -50%) rotate(-24deg) scale(2.6); opacity: 0; background: rgba(40, 8, 0, .25);
  text-shadow: 0 0 14px rgba(var(--h), .8); box-shadow: 0 0 18px rgba(var(--h), .45), inset 0 0 12px rgba(var(--h), .3); }
.stamp.hit { animation: stamp .32s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes stamp { to { opacity: .92; transform: translate(-50%, -50%) rotate(-24deg) scale(1); } }

/* data rows on holograms */
.c-row { display: grid; grid-template-columns: 82px 1fr; gap: 10px; font: 400 13px/1.35 var(--f-mono); padding: 7px 0; border-top: 1px solid rgba(var(--h2), .18); }
.c-row span { color: var(--holo-mute); letter-spacing: .1em; font-size: 11px; padding-top: 2px; }
.c-row b { font-weight: 500; }
.bd-reward small, .bc-price small { display: block; font: 500 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--holo-mute); margin-bottom: 6px; }

/* ---------- page head / backgrounds ---------- */
.page-bg { position: fixed; inset: 0; z-index: -1; background: center / cover no-repeat; opacity: 0; transition: opacity .8s; }
.page-bg.has-bg { opacity: .7; }
.page-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 14, 23, .45), rgba(17, 14, 23, .75) 60%, var(--bg)); }
.page-head { padding: calc(var(--nav-h) + 80px) 0 36px; }
.page-head .lead { margin-top: 14px; }
main { min-height: calc(100vh - 52px); }

/* ---------- modal (holo card) ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .3s; }
.modal.on { opacity: 1; }
.modal-back { position: absolute; inset: 0; background: rgba(5, 3, 2, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(640px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; padding: 22px 24px 24px;
  transform: scaleY(.6); filter: blur(4px); transition: transform .35s cubic-bezier(.2, 1.2, .4, 1), filter .35s; overscroll-behavior: contain; }
.modal.on .modal-card { transform: none; filter: none; }
.modal-card.wide { width: min(960px, 100%); }
.modal-x { position: sticky; top: 0; float: right; z-index: 5; width: 38px; height: 38px; margin: -6px -8px 0 8px; border-radius: 10px; border: 1px solid rgba(var(--h2), .45);
  font: 400 24px/1 var(--f-sans); color: var(--holo-ink); background: rgba(20, 10, 6, .8); }

/* ---------- form ---------- */
.form { display: grid; gap: 14px; }
.form label, .lbl { display: grid; gap: 6px; font: 500 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--holo-mute); }
.form input, .form textarea, .bf-top select { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(var(--h2), .35); background: rgba(10, 6, 5, .7);
  font: 400 15px/1.4 var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.form input::placeholder, .form textarea::placeholder { color: #8d7d70; }
.form input:focus, .form textarea:focus, .bf-top select:focus { outline: none; border-color: var(--holo); box-shadow: 0 0 0 3px rgba(var(--h), .2); }
.form .hp { position: absolute; left: -9999px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { font-size: 12px; color: var(--mute); }
.status { font-size: 14px; } .status.err { color: #ff8a7a; } .status.ok { font: 600 18px/1.4 var(--f-sans); color: var(--holo-ink); padding: 26px 0; }
.direct { margin-top: 16px; font-size: 14px; color: var(--mute); } .direct a { color: var(--holo); }
.bounty-form { position: relative; }
.bf-top { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.bf-top > div:last-child { flex: 1; display: grid; gap: 12px; }
.bf-top h3 { font-size: 26px; color: var(--holo-hi); text-shadow: 0 0 16px rgba(var(--h), .6); }
.bf-top label { display: grid; gap: 6px; font: 500 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--holo-mute); }
.bounty-form .stamp { top: 46%; }

/* ---------- footer ---------- */
.foot-bar { height: 52px; display: flex; align-items: center; gap: 18px; width: min(1200px, calc(100% - 32px)); margin: 60px auto 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.foot-icons { display: flex; gap: 6px; margin: 0 auto; }
.foot-icons a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--mute); transition: .2s; }
.foot-icons a:hover { color: var(--holo); background: rgba(var(--h), .08); }
.foot-icons svg { width: 17px; height: 17px; }
.foot-link { color: var(--mute); text-decoration: none; } .foot-link:hover { color: var(--ink); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- animations shared by props ---------- */
.visor { animation: visor 4s infinite; }
@keyframes visor { 0%, 100% { opacity: .9; } 46% { opacity: .9; } 48% { opacity: .1; } 50% { opacity: .95; } 52% { opacity: .15; } 55% { opacity: 1; } }
.scan { animation: scan 2.4s linear infinite; } @keyframes scan { from { transform: translateX(-120px); } to { transform: translateX(120px); } }
.led { animation: led 1.2s steps(1) infinite; } @keyframes led { 50% { opacity: .15; } }
@keyframes flick { 0%, 100% { opacity: 1; } 31% { opacity: 1; } 32% { opacity: .55; } 33% { opacity: 1; } 71% { opacity: .92; } 72% { opacity: .6; } 73% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .links, .nav-bar .lang, .nav-cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .drawer { display: grid; gap: 4px; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(16, 11, 9, .96);
    max-height: 0; opacity: 0; overflow: hidden; padding-block: 0; transition: .3s; }
  .nav.open .drawer { max-height: 480px; opacity: 1; padding-block: 10px; }
  .drawer a { padding: 12px; border-radius: 10px; text-decoration: none; font: 600 16px/1 var(--f-sans); }
  .drawer a[aria-current] { background: rgba(var(--h), .14); color: var(--holo-ink); }
  .drawer .lang { justify-self: start; margin: 6px 12px; }
  .page-head { padding-top: calc(var(--nav-h) + 50px); }
  .lead { font-size: 16px; }
  .row2 { grid-template-columns: 1fr; }
  .modal { padding: 10px; } .modal-card { padding: 18px 16px 20px; }
  .bf-top .portrait { width: 76px; height: 92px; }
  .stamp { font-size: 26px; border-width: 4px; padding: 8px 16px; }
  .foot-bar { flex-wrap: wrap; height: auto; padding: 12px 0; justify-content: center; gap: 8px 16px; }
  .foot-icons { order: -1; width: 100%; justify-content: center; }
}
.logo .logo-mark { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(255,40,40,.35)); }
