/* Vandra website. One stylesheet, no inline styles, so the Content-Security-Policy can stay at style-src 'self'. */

@font-face { font-family: 'Oswald'; font-weight: 500; font-display: swap; src: url('../fonts/oswald-500.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url('../fonts/oswald-600.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 700; font-display: swap; src: url('../fonts/oswald-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('../fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('../fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('../fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url('../fonts/jetbrains-mono-700.woff2') format('woff2'); }

:root {
  --night: #0B0D11; --night-2: #0E1015; --night-3: #0D1014; --black: #080A0D;
  --iron: #262B32; --iron-2: #1E2228; --iron-3: #16191E; --panel: #14171C;
  --line: #22272F; --line-2: #2E343D; --line-3: #3A424D; --line-4: #4A525E; --rivet: #3E454F; --rivet-hi: #5A616B;
  --snow: #F4F6F1; --text: #C3C8D1; --text-2: #AEB4BE; --muted: #8E96A3; --bright: #D9DDE3;
  --amethyst: #B57BFF; --amethyst-hi: #C99BFF; --amethyst-lt: #F1DDFF; --amethyst-soft: #CFA8FF; --amethyst-deep: #6B35C9;
  --violet-bg: #17121F; --violet-card: #1C1728; --violet-card-2: #141119; --violet-line: #33295A;
  --green: #8FE3B8; --green-line: #2F7A57; --gold: #F2C14E;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--snow); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--amethyst-soft); }
a:hover { color: var(--amethyst-lt); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #A066FF; outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
.mono { font-family: var(--mono); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; }
.wrap-narrow { max-width: 860px; margin: 0 auto; }
.wrap-mid { max-width: 1000px; margin: 0 auto; }

/* Staff preview bar */
.staffbar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 18px; padding: 8px 24px; background: var(--violet-bg); border-bottom: 1px solid var(--amethyst-deep); font-family: var(--display); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--amethyst-soft); }
.staffbar span { color: var(--text-2); }

/* Header */
.site-head { background: var(--night-3); border-bottom: 1px solid var(--line); }
.nav { max-width: 1240px; margin: 0 auto; padding: 10px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 40px; font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; }
.nav-side { display: flex; flex-wrap: wrap; gap: 0 32px; flex: 1 1 260px; }
.nav-side.left { justify-content: flex-end; }
.nav a.nav-link { color: var(--text-2); text-decoration: none; padding: 12px 0; }
.nav a.nav-link:hover { color: var(--snow); }
.nav a.nav-link[aria-current="page"] { color: var(--snow); box-shadow: inset 0 -2px 0 var(--amethyst); }
.nav-logo { display: flex; padding: 2px 0; }
.nav-logo img { height: 58px; width: auto; }
.status-strip { margin: 0; padding: 8px 32px; border-top: 1px solid #1A1E25; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1px solid transparent; font-family: var(--display); font-size: 15px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .2s; }
.btn-lg { min-height: 56px; padding: 0 34px; font-size: 17px; }
.btn-primary { background: var(--amethyst); color: var(--night); font-weight: 600; box-shadow: 0 0 24px rgba(160,102,255,.35); }
.btn-primary:hover { background: var(--amethyst-hi); color: var(--night); box-shadow: 0 0 32px rgba(160,102,255,.55); }
.btn-ghost { background: transparent; border-color: var(--line-4); color: var(--snow); font-weight: 500; }
.btn-ghost:hover { border-color: var(--amethyst); color: var(--amethyst-lt); }
.btn-copy { min-width: 108px; background: var(--violet-bg); border-color: var(--amethyst-deep); color: var(--amethyst-soft); font-weight: 600; font-size: 14px; padding: 0 22px; }
.btn-copy:hover { border-color: var(--amethyst); color: var(--amethyst-lt); }
.btn-off { background: transparent; border: 1px dashed var(--line-4); color: var(--muted); font-weight: 500; cursor: default; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Rivets on iron plates */
.riveted { position: relative; }
.rivet { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--rivet); }
.rivet.tl { top: 10px; left: 10px; } .rivet.tr { top: 10px; right: 10px; } .rivet.bl { bottom: 10px; left: 10px; } .rivet.br { bottom: 10px; right: 10px; }
.rivet.hi { background: var(--rivet-hi); }
.rivet.violet { background: #4A3A66; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 900px; display: flex; align-items: center; justify-content: center; padding: 72px 32px 210px; background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(107,53,201,.34), rgba(107,53,201,0) 70%), var(--night); }
.hero.compact { min-height: 0; padding: 72px 32px 96px; background: radial-gradient(ellipse 50% 70% at 50% 20%, rgba(107,53,201,.3), rgba(107,53,201,0) 70%), var(--night); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; }
.hero-inner { position: relative; z-index: 2; width: 100%; min-width: 0; max-width: 860px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.shield { position: relative; display: flex; justify-content: center; }
.shield img { position: relative; height: 260px; width: auto; }
.shield.md img { height: 150px; }
.shield.sm img { height: 120px; }
.halo { position: absolute; top: 50%; left: 50%; width: 400px; height: 400px; margin: -200px 0 0 -200px; background: radial-gradient(circle, rgba(160,102,255,.45), rgba(160,102,255,0) 65%); animation: breathe 5s ease-in-out infinite; }
.shield.md .halo, .shield.sm .halo { width: 280px; height: 280px; margin: -140px 0 0 -140px; }
@keyframes breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.sparks { position: absolute; left: 0; right: 0; bottom: 120px; height: 10px; }
.spark { position: absolute; bottom: 0; width: 3px; height: 3px; background: var(--amethyst-lt); box-shadow: 0 0 8px 2px #A066FF; animation: rise 9s linear infinite; }
.spark:nth-child(1) { left: 18%; } .spark:nth-child(2) { left: 27%; animation-delay: 2.2s; } .spark:nth-child(3) { left: 36%; animation-delay: 5.1s; }
.spark:nth-child(4) { left: 44%; animation-delay: 1.1s; } .spark:nth-child(5) { left: 52%; animation-delay: 6.3s; } .spark:nth-child(6) { left: 58%; animation-delay: 3.4s; }
.spark:nth-child(7) { left: 66%; animation-delay: 7.6s; } .spark:nth-child(8) { left: 74%; animation-delay: 4.2s; } .spark:nth-child(9) { left: 82%; animation-delay: .6s; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(-420px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .spark, .halo { animation: none; } }
.eyebrow { margin-top: 32px; display: flex; align-items: center; gap: 16px; font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .32em; text-transform: uppercase; color: var(--amethyst-soft); }
.eyebrow::before, .eyebrow::after { content: ''; width: 48px; border-top: 1px solid var(--amethyst-deep); }
.display { margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: clamp(52px, 7.4vw, 104px); line-height: 1; letter-spacing: .16em; text-transform: uppercase; background: linear-gradient(180deg, #FFFFFF 20%, #B9BEC8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.display.md { font-size: clamp(46px, 6.2vw, 84px); }
.lead { margin-top: 24px; max-width: 640px; font-size: 20px; color: var(--text); text-wrap: pretty; }
.fine { margin-top: 14px; max-width: 560px; font-size: 15px; color: var(--muted); }

/* Address plate */
.address { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; padding: 20px 36px; border: 1px solid var(--line-3); background: linear-gradient(180deg, var(--iron), #1B1F25); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 20px 40px rgba(0,0,0,.45); }
.address .rivet { top: 8px; left: 8px; } .address .rivet.tr { left: auto; right: 8px; } .address .rivet.bl { top: auto; bottom: 8px; } .address .rivet.br { top: auto; left: auto; bottom: 8px; right: 8px; }
.address-text { display: flex; flex-direction: column; align-items: flex-start; }
.address-label { font-family: var(--display); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.address-value { font-family: var(--mono); font-weight: 700; font-size: 24px; color: var(--snow); }

/* Sections */
.section { padding: 96px 32px; background: var(--night); border-top: 1px solid var(--line); }
.section.alt { background: var(--night-2); }
.section-title { display: flex; align-items: center; justify-content: center; gap: 20px; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4vw, 44px); letter-spacing: .18em; text-transform: uppercase; text-align: center; }
.section-title::before, .section-title::after { content: ''; width: 64px; border-top: 1px solid var(--line-3); }
.section-lead { margin: 16px auto 0; max-width: 640px; text-align: center; color: var(--text-2); text-wrap: pretty; }
.grid { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { position: relative; padding: 32px 30px 30px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--iron-2), var(--iron-3)); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); transition: border-color .2s; }
.card:hover { border-color: var(--line-4); }
.card.accent { border-color: var(--amethyst-deep); background: linear-gradient(180deg, var(--violet-card), var(--violet-card-2)); box-shadow: inset 0 0 60px rgba(160,102,255,.12); }
.card h3 { margin-top: 18px; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: .14em; text-transform: uppercase; }
.card p { margin-top: 8px; color: var(--text); }
.card .icon { width: 44px; height: 44px; }
.keycap { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--amethyst); border-bottom-width: 5px; background: var(--violet-bg); font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--amethyst-lt); }

/* Game mode */
.mode { margin-top: 48px; display: flex; flex-wrap: wrap; border: 1px solid var(--amethyst-deep); background: #15121F; box-shadow: inset 0 0 80px rgba(160,102,255,.14); }
.mode-art { flex: 1 1 480px; min-width: 0; height: auto; min-height: 300px; }
.mode-body { flex: 1 1 420px; min-width: 0; padding: 40px 40px 38px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.mode-body h3 { font-family: var(--display); font-weight: 700; font-size: 42px; letter-spacing: .14em; text-transform: uppercase; }
.mode-body p { color: var(--text); }
.tag { padding: 3px 10px; border: 1px solid var(--green-line); font-family: var(--display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--green); }
.facts { margin-top: 6px; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 15px; }
.facts dt { font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Numbered steps */
.steps { margin: 48px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }
.steps > li { flex: 1 1 320px; min-width: 0; padding: 34px 30px 32px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--iron-2), var(--iron-3)); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.step-num { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 1px solid var(--amethyst-deep); background: var(--violet-bg); font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--amethyst-soft); }
.steps h3 { margin-top: 20px; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: .14em; text-transform: uppercase; }
.steps p { margin-top: 8px; color: var(--text); }
.steps .btn { margin-top: 16px; }
.inline-addr { font-family: var(--mono); font-size: 15px; color: var(--snow); }

/* Step list (install guide) */
.rows { margin: 36px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.rows > li { display: flex; gap: 22px; align-items: flex-start; padding: 24px 28px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--iron-2), var(--iron-3)); }
.rows > li.final { border-color: var(--amethyst-deep); background: linear-gradient(180deg, var(--violet-card), var(--violet-card-2)); }
.rows .step-num { flex: none; width: 52px; height: 52px; font-size: 26px; }
.rows > li.final .step-num { background: var(--amethyst); border-color: var(--amethyst); color: var(--night); }
.rows h3 { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: .12em; text-transform: uppercase; }
.rows p { margin-top: 6px; color: var(--text); }
.rows .btn { margin-top: 14px; }

/* Questions */
.faq { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line-2); background: var(--panel); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 16px 24px; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: .1em; text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { font-size: 26px; line-height: 1; color: var(--amethyst); transition: transform .2s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; color: var(--text); }

/* Rules */
.rule-group { border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--iron-2), var(--iron-3)); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.rule-group > h2 { padding: 20px 30px; border-bottom: 1px solid var(--line-2); font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .16em; text-transform: uppercase; }
.rule-list { padding: 0 30px; }
.rule { padding: 20px 0; border-bottom: 1px solid #2A3038; }
.rule:last-child { border-bottom: 0; }
.rule h3 { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; }
.rule > p { margin-top: 4px; color: var(--text); }
.chips { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border: 1px solid var(--line-3); background: #0F1115; font-size: 14px; color: var(--text); }
.to { font-size: 14px; color: var(--rivet-hi); }
.stack { display: flex; flex-direction: column; gap: 28px; }
.mods { padding: 28px 30px; }
.mods h2 { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .16em; text-transform: uppercase; }
.mods ul { margin-top: 14px; padding-left: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 6px 28px; color: var(--bright); }
.pair { display: flex; flex-wrap: wrap; gap: 20px; }
.note { flex: 1 1 380px; min-width: 0; padding: 26px 28px; border: 1px solid var(--line-2); background: var(--panel); }
.note h2 { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: .14em; text-transform: uppercase; }
.note p { margin-top: 8px; font-size: 16px; color: var(--text); }

/* Footer */
.site-foot { padding: 64px 32px 40px; background: var(--black); border-top: 1px solid var(--line); }
.foot-top { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px 64px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand img { height: 52px; width: auto; }
.foot-brand p { color: var(--text-2); font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.foot-links a { color: var(--text); text-decoration: none; padding: 8px 0; }
.foot-links a:hover { color: var(--snow); }
.foot-legal { max-width: 1240px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid #1A1E25; font-size: 13px; color: var(--muted); }

/* Coming soon, 404, maintenance */
.solo { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse 55% 50% at 50% 42%, rgba(107,53,201,.32), rgba(107,53,201,0) 70%), var(--night); }
.solo-head { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; border-bottom: 1px solid var(--line); background: var(--night-3); }
.solo-head img { height: 44px; width: auto; }
.solo-head .staff-link { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); text-decoration: none; padding: 10px 14px; border: 1px solid var(--line-2); }
.solo-head .staff-link:hover { color: var(--snow); border-color: var(--amethyst); }
.solo-main { position: relative; overflow: hidden; flex: 1; display: flex; align-items: center; justify-content: center; padding: 64px 32px 140px; }
.solo-foot { padding: 22px 32px; border-top: 1px solid var(--line); background: var(--black); text-align: center; font-size: 13px; color: var(--muted); }
.big-404 { font-family: var(--display); font-weight: 700; font-size: clamp(120px, 16vw, 200px); line-height: .9; letter-spacing: .08em; background: linear-gradient(180deg, var(--amethyst-lt) 10%, var(--amethyst) 55%, var(--amethyst-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title-md { margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: .16em; text-transform: uppercase; }

@media (max-width: 640px) {
  .display { letter-spacing: .08em; overflow-wrap: anywhere; }
  .eyebrow { letter-spacing: .2em; font-size: 13px; }
  .eyebrow::before, .eyebrow::after { width: 24px; }
  .lead { font-size: 18px; }
  .address { width: 100%; justify-content: space-between; }
  .solo-head { padding-top: 14px; padding-bottom: 14px; }
  .solo-head .staff-link { font-size: 12px; letter-spacing: .1em; padding: 8px 10px; }
  .solo-main { padding-top: 40px; padding-bottom: 120px; }
  .nav { gap: 2px 20px; padding-top: 8px; padding-bottom: 8px; }
  .nav-logo { order: -1; flex: 0 0 100%; justify-content: center; }
  .nav-side, .nav-side.left { flex: 0 0 auto; justify-content: center; gap: 0 18px; }
  .hero { padding-bottom: 240px; }
  .btn { letter-spacing: .12em; }
  .btn-row .btn { flex: 1 1 100%; }
  .section-title { gap: 12px; letter-spacing: .1em; }
  .section-title::before, .section-title::after { width: 20px; }
  .nav, .status-strip, .hero, .section, .site-foot, .solo-head, .solo-main { padding-left: 18px; padding-right: 18px; }
  .hero { min-height: 0; padding-top: 48px; }
  .shield img { height: 180px; }
  .address { padding: 18px 20px; }
  .address-value { font-size: 20px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .mode-body { padding: 28px 22px; }
  .rule-list, .rule-group > h2 { padding-left: 20px; padding-right: 20px; }
  .rows > li { padding: 20px; gap: 16px; }
}
.address-gap { margin-top: 30px; }
.rule > p.chips { margin-top: 10px; }
.card .num { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--amethyst-soft); }
.card .num + h3 { margin-top: 8px; }
