/* PeonSlayer: an obsidian HUD with a fel-lime accent, matching the launcher. */

:root {
  --bg: #08090b;
  --surface: #101216;
  --raised: #171a1f;
  --border: #262a31;
  --lime: #b8f53d;
  --lime-deep: #93c724;
  --lime-glow: rgba(184, 245, 61, 0.18);
  --bone: #ece6d6;
  --muted: #8a8f98;
  --faint: #565b63;
  --amber: #ffb547;
  --ink: #0b0f02;
  --radius: 2px;
  --wrap: 1160px;
  --display: "Barlow Semi Condensed", "Bahnschrift SemiBold SemiConden", "Bahnschrift", system-ui, sans-serif;
  --body: "Barlow", "Bahnschrift", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
/* Layout rules below set display; hidden must still win. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); }
code { background: var(--raised); border: 1px solid var(--border); padding: 0.1em 0.4em; border-radius: var(--radius); font-size: 0.9em; color: var(--lime); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.lime { color: var(--lime); }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  background: var(--lime); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--lime); border-radius: var(--radius);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn:hover { background: var(--lime-deep); box-shadow: 0 0 32px var(--lime-glow); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--border); }
.btn-ghost:hover { background: var(--raised); border-color: var(--lime); box-shadow: none; }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--lime);
  margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 3px; height: 16px; background: var(--lime); }
.eyebrow .dot { color: var(--faint); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 11, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.06em; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--bone); }

/* Hero */
.hero { padding: 96px 0 72px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(184, 245, 61, 0.10), transparent 62%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(48px, 7vw, 86px); text-transform: uppercase; letter-spacing: 0.005em; }
.lede { color: var(--muted); font-size: 19px; max-width: 560px; margin-top: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta-row.center { justify-content: center; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 32px; list-style: none; padding: 0; margin: 44px 0 0; color: var(--muted); font-size: 15px; }
.hero-facts strong { display: block; font-family: var(--display); font-size: 30px; color: var(--bone); font-weight: 600; line-height: 1.1; }

/* The launcher mock */
.hud {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(184, 245, 61, 0.04);
  position: relative;
}
.hud::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--lime); }
.hud-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hud-title { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.06em; }
.hud-sub { font-size: 11px; color: var(--faint); letter-spacing: 0.1em; }
.hud-live { margin-left: auto; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--lime); border: 1px solid #2c3a10; background: #141c08; padding: 4px 10px; border-radius: var(--radius); }
.pulse { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 0 var(--lime-glow); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(184, 245, 61, 0.55); } 100% { box-shadow: 0 0 0 10px rgba(184, 245, 61, 0); } }
.hud-card { background: var(--bg); border: 1px solid var(--border); padding: 18px; }
.hud-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--faint); }
.hud-card > .hud-label { display: flex; align-items: center; gap: 10px; }
.hud-card > .hud-label::before { content: ""; width: 3px; height: 12px; background: var(--lime); }
.hud-row { display: flex; align-items: center; gap: 16px; margin: 16px 0 18px; }
.spell-icon {
  width: 64px; height: 64px; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #2d4a12, #0d1406 70%);
  border: 1px solid var(--lime); box-shadow: inset 0 0 18px rgba(184, 245, 61, 0.25), 0 0 24px var(--lime-glow);
  font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--lime);
}
.hud-spell { flex: 1; min-width: 0; }
.hud-name { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.1; }
.hud-why { color: var(--muted); font-size: 14px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-key { text-align: right; }
.key { font-size: 30px; font-weight: 600; color: var(--bone); line-height: 1.2; }
.segments { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; }
.segments i { height: 6px; background: var(--raised); }
.segments i.on { background: var(--lime); }
.hud-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; padding: 14px 18px; border: 1px solid var(--border); background: var(--bg); }
.stat { font-size: 22px; font-weight: 600; margin-top: 4px; }
.flash .hud-name, .flash .spell-icon, .flash .key { animation: flash 0.35s ease-out; }
@keyframes flash { from { opacity: 0.2; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Class strip */
.classes { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(16, 18, 22, 0.7); }
.class-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 22px; }
.class-strip span {
  font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c); display: flex; align-items: center; gap: 8px;
}
/* WoW's class colours. */
.class-strip .c-warrior { --c: #C69B6D; }
.class-strip .c-paladin { --c: #F48CBA; }
.class-strip .c-hunter { --c: #AAD372; }
.class-strip .c-rogue { --c: #FFF468; }
.class-strip .c-priest { --c: #F0EBE0; }
.class-strip .c-deathknight { --c: #C41E3A; }
.class-strip .c-shaman { --c: #0070DD; }
.class-strip .c-mage { --c: #3FC7EB; }
.class-strip .c-warlock { --c: #8788EE; }
.class-strip .c-druid { --c: #FF7C0A; }
.class-strip span::before { content: ""; width: 8px; height: 8px; background: var(--c); transform: rotate(45deg); }

/* Sections */
.section { padding: 112px 0; }
.section-alt { background: rgba(16, 18, 22, 0.6); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(34px, 4.6vw, 54px); max-width: 860px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--border); padding: 32px; position: relative; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 3px; background: var(--lime); }
.step-n { color: var(--lime); font-size: 14px; letter-spacing: 0.1em; }
.steps h3 { font-size: 28px; margin: 16px 0 12px; }
.steps p { color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; background: var(--border); border: 1px solid var(--border); }
.feature { background: var(--surface); padding: 32px 28px; transition: background 0.2s; }
.feature:hover { background: var(--raised); }
.feature svg { width: 30px; height: 30px; fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.feature h3 { font-size: 23px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15.5px; }

/* PvP */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 6px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg); }
.pvp-card { background: var(--surface); border: 1px solid var(--border); padding: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.pvp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 13px; letter-spacing: 0.14em; color: var(--muted); }
.tag { font-family: var(--mono); font-size: 11px; color: var(--amber); border: 1px solid #4a3410; background: #211907; padding: 3px 8px; letter-spacing: 0.12em; }
.pvp-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.pvp-list li { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-top: 1px solid var(--border); }
.pvp-list span { color: var(--faint); width: 14px; }
.pvp-list em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--faint); }
.pvp-list .dim { color: var(--faint); }
.pvp-list .hit { background: #141c08; color: var(--lime); border: 1px solid #2c3a10; }
.pvp-list .hit em { color: var(--lime); }
.pvp-foot { margin-top: 14px; font-size: 12px; color: var(--faint); letter-spacing: 0.08em; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--border); padding: 36px 32px; display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 30px; }
.plan-sub { color: var(--muted); margin-top: 8px; font-size: 15.5px; min-height: 50px; }
.price { font-family: var(--display); font-weight: 700; font-size: 56px; margin: 24px 0 4px; line-height: 1; }
.price small { font-family: var(--body); font-weight: 500; font-size: 16px; color: var(--muted); margin-left: 8px; }
.plan .ticks { margin-bottom: 32px; font-size: 15.5px; }
.plan .btn { margin-top: auto; }
.plan-featured { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 30px 70px rgba(184, 245, 61, 0.08); }
.ribbon { position: absolute; top: -12px; left: 32px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; padding: 4px 10px; }
.buy-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.buy-steps li { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; padding: 16px; border: 1px dashed var(--border); }
.buy-steps li > span:first-child { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--lime); color: var(--lime); font-size: 13px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 22px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); color: var(--lime); font-size: 22px; transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; }

/* Closer */
.closer { padding: 120px 0; text-align: center; position: relative; border-top: 1px solid var(--border); }
.closer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(184, 245, 61, 0.08), transparent 60%); pointer-events: none; }
.closer-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.closer h2 { font-size: clamp(42px, 6vw, 72px); text-transform: uppercase; margin-top: 28px; }
.closer .lede { margin-left: auto; margin-right: auto; }
.closer img .spark, .brand .spark { transform-origin: center; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; color: var(--faint); font-size: 14px; }
.footer-inner .brand { color: var(--bone); font-size: 17px; }
.footer-inner p:first-of-type { flex: 1; min-width: 260px; }

/* Smaller screens */
@media (max-width: 1000px) {
  /* minmax(0, …): a long line inside, such as the demo's reason, must not widen the page. */
  .hero-grid, .split, .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .buy-steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav nav { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 72px 0; }
  .steps, .features, .buy-steps { grid-template-columns: 1fr; }
  .hud-name { font-size: 22px; }
  .spell-icon { width: 52px; height: 52px; font-size: 22px; }
  .key { font-size: 24px; }
  .hud-stats { padding: 12px; }
  .stat { font-size: 17px; }
  .class-strip { justify-content: flex-start; }
  .brand span { font-size: 19px; }
  .nav-inner { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Checkout */
.coins { margin-top: 16px; font-size: 13px; color: var(--faint); letter-spacing: 0.06em; }
.checkout {
  width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--bone); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}
.checkout::backdrop { background: rgba(4, 5, 6, 0.75); backdrop-filter: blur(4px); }
.checkout-form { padding: 32px; position: relative; display: grid; gap: 18px; }
.checkout-form h2 { font-size: 34px; }
.checkout-form .eyebrow { margin-bottom: 0; }
.checkout-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 28px; cursor: pointer; line-height: 1; }
.checkout-close:hover { color: var(--bone); }
.checkout-price { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; }
.checkout-price small { font-family: var(--body); font-size: 15px; color: var(--muted); font-weight: 500; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.field > span, .field legend { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; padding: 0; margin-bottom: 8px; }
.field[hidden] { display: none; }
.field select {
  height: 46px; padding: 0 12px; background: var(--bg); color: var(--bone); border: 1px solid var(--border);
  border-radius: var(--radius); font: inherit;
}
.field select:focus { border-color: var(--lime); outline: none; }
.coin-options { display: grid; gap: 8px; }
.coin { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; }
.coin:has(input:checked) { border-color: var(--lime); background: #141c08; }
.coin input { accent-color: var(--lime); }
.checkout-error { color: #ff5a4f; min-height: 1.2em; font-size: 15px; }
.checkout-error:empty { display: none; }
.checkout-note { color: var(--faint); font-size: 13.5px; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }

/* Thank-you page */
.order { max-width: 780px; }
.order h1 { font-size: clamp(40px, 6vw, 64px); text-transform: uppercase; }
.order-card { margin-top: 36px; padding: 28px; background: var(--surface); border: 1px solid var(--lime); box-shadow: 0 0 40px var(--lime-glow); display: grid; gap: 16px; justify-items: start; }
.order-key { font-size: clamp(18px, 3.4vw, 28px); color: var(--lime); word-break: break-all; letter-spacing: 0.04em; }
.order-meta { color: var(--faint); font-size: 12px; }
.order-steps { margin-top: 32px; }
.order-help { margin-top: 32px; color: var(--faint); font-size: 14px; }
.order .cta-row { margin-top: 32px; }

/* Giveaways */
.giveaways-running { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 48px; }
.giveaways-running:empty { display: none; }
.giveaway { background: var(--surface); border: 1px solid var(--lime); box-shadow: 0 0 40px var(--lime-glow); padding: 28px; display: grid; gap: 14px; position: relative; }
.giveaway .live { position: absolute; top: -12px; left: 28px; background: var(--lime); color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; padding: 4px 10px; }
.giveaway h3 { font-size: 30px; }
.giveaway .countdown { font-family: var(--mono); font-size: 22px; color: var(--lime); }
.giveaway .facts { color: var(--muted); font-size: 15px; }
.giveaway .btn { justify-self: start; }
.giveaways-past { margin-top: 56px; }
.giveaways-past h3 { font-size: 13px; letter-spacing: 0.14em; color: var(--faint); font-weight: 600; margin-bottom: 8px; }
.past-list { list-style: none; margin: 0; padding: 0; }
.past-list li { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--border); }
.past-list li:last-child { border-bottom: 1px solid var(--border); }
.past-prize { font-family: var(--display); font-weight: 600; font-size: 20px; }
.past-when { color: var(--faint); font-family: var(--mono); font-size: 13px; }
.past-winners { color: var(--muted); font-size: 15px; }
.past-winners strong { color: var(--lime); font-weight: 600; }
.past-empty, .past-note { color: var(--faint); font-size: 14px; margin-top: 16px; }
#giveaways .cta-row { margin-top: 32px; }
@media (max-width: 640px) {
  .past-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* Discount code */
.code-row { display: flex; gap: 8px; }
.code-row input {
  flex: 1; min-width: 0; height: 46px; padding: 0 12px; background: var(--bg); color: var(--bone);
  border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--mono); font-size: 15px; text-transform: uppercase;
}
.code-row input:focus { border-color: var(--lime); outline: none; }
.code-row .btn { height: 46px; }
.code-note { color: var(--lime); font-size: 14px; min-height: 1.2em; }
.code-note:empty { display: none; }
.checkout-note a { color: var(--muted); }

/* Thank-you page actions, footer links */
.order-actions { margin-top: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--bone); }

/* Terms page */
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(40px, 6vw, 60px); text-transform: uppercase; }
.legal h2 { font-size: 28px; margin-top: 44px; }
.legal p, .legal li { color: var(--muted); margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal strong { color: var(--bone); font-weight: 600; }
.legal .updated { font-family: var(--mono); font-size: 13px; color: var(--faint); margin-top: 16px; }
