/* Stand Off: Enchanted — game page. Dark fantasy: deep night, violet magic, warm gold. */
:root {
  color-scheme: dark;
  --bg: #0b0912;
  --bg-2: #120e1c;
  --panel: #171223;
  --line: rgba(230, 197, 139, 0.16);
  --line-strong: rgba(230, 197, 139, 0.34);
  --text: #f1ece3;
  --muted: #bdb4c6;
  --dim: #9a90a6;
  --gold: #e8c487;
  --gold-hi: #f6dcaa;
  --gold-ink: #241a0d;
  --violet: #9c6bff;
  --violet-soft: rgba(156, 107, 255, 0.14);
  --focus: #d8b4ff;
  --radius: 14px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --max: 1160px;
  --head: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --body: 'Alegreya Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; color: var(--muted); }
strong { color: var(--text); font-weight: 700; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--text); }
h2 {
  font-family: var(--head);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
h3 { font-size: 1.3rem; line-height: 1.3; letter-spacing: 0.01em; }
.gold { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--gold); color: var(--gold-ink); padding: 12px 18px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 700 1rem/1.2 var(--body); letter-spacing: 0.02em; text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 6px 22px -10px rgba(232, 196, 135, 0.7);
}
.btn-gold:hover { color: var(--gold-ink); transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(232, 196, 135, 0.85); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: rgba(11, 9, 18, 0.45); }
.btn-ghost:hover { color: var(--text); border-color: var(--gold); background: rgba(232, 196, 135, 0.08); }
.btn-large { min-height: 56px; padding: 14px 30px; font-size: 1.08rem; }
.btn-small { min-height: 42px; padding: 9px 18px; font-size: .95rem; }
.tri {
  width: 0; height: 0; border-left: 10px solid currentColor;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11, 9, 18, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
  font: 700 .95rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.brand img { border-radius: 50%; }
.brand em { font-style: normal; color: var(--gold); font-size: .78em; margin-left: .25em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 1rem;
  padding: 10px 12px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 860px);
  display: grid; align-items: end;
  padding: clamp(96px, 16vh, 180px) var(--gutter) clamp(40px, 7vh, 80px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 58%, rgba(11, 9, 18, 0.62), transparent 72%),
    linear-gradient(180deg, rgba(11, 9, 18, 0.35) 0%, rgba(11, 9, 18, 0.15) 30%, rgba(11, 9, 18, 0.78) 74%, var(--bg) 100%);
}
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px; padding: 7px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(11, 9, 18, 0.6);
  color: var(--gold-hi); font-size: .92rem; font-weight: 500; letter-spacing: .04em;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #9be38f; box-shadow: 0 0 0 0 rgba(155, 227, 143, .6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(155, 227, 143, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(155, 227, 143, 0); } }
.logo { margin: 0 auto 14px; max-width: 620px; }
.logo img { width: 100%; height: auto; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .55)); }
/* The logo's hexagon emblem, alive: laid exactly over its own place in the logo (crop 686,24 to 936,274 of 1200 x 388). */
.logo { position: relative; }
.logo .logo-emblem { position: absolute; left: 57.1667%; top: 6.1856%; width: 20.8333%; height: auto; filter: none; pointer-events: none; }
.tagline {
  font-family: var(--head); font-weight: 600; color: var(--text);
  font-size: clamp(1.15rem, .95rem + 1vw, 1.6rem); line-height: 1.35; letter-spacing: .02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
  margin-bottom: 12px;
}
.tagline span { color: var(--gold); white-space: nowrap; }
.pitch { max-width: 600px; margin: 0 auto 28px; color: #d6cede; font-size: 1.1rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.byline { margin: 20px 0 0; font-size: .95rem; color: var(--dim); }

/* ---------------------------------------------------------------- sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--gutter); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.kicker {
  margin: 0 0 12px; color: var(--gold); font: 600 .82rem/1 var(--head);
  letter-spacing: .22em; text-transform: uppercase;
}
.lede { margin-top: 16px; font-size: 1.12rem; }
.note { margin: 24px 0 0; font-size: .95rem; color: var(--dim); }

/* ---------------------------------------------------------------- trailers */
.trailers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.trailer-frame {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line-strong); background: #000;
}
.trailer-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.trailer-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 9, 18, .55));
}
.play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 78px; height: 78px; translate: -50% -50%;
  border-radius: 50%; background: rgba(11, 9, 18, .62); border: 2px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(232, 196, 135, .14);
  transition: transform .2s ease, background-color .2s ease;
}
.play::before {
  content: ""; position: absolute; left: 50%; top: 50%; translate: -36% -50%;
  border-left: 22px solid var(--gold-hi); border-top: 14px solid transparent; border-bottom: 14px solid transparent;
}
.trailer-frame:hover img { transform: scale(1.03); filter: brightness(1.08); }
.trailer-frame:hover .play { transform: scale(1.06); background: rgba(11, 9, 18, .8); }
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.trailer-copy { padding: 18px 4px 0; }
.trailer-copy h3 { margin-bottom: 6px; }
.trailer-copy p { margin-bottom: 8px; }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; }
.text-link::after { content: "↗"; font-weight: 400; }
.text-link:hover { text-decoration: underline; }
.text-link[href^="mailto:"]::after { content: none; }

/* ---------------------------------------------------------------- gameplay features */
.feature {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4.5vw, 64px); align-items: center;
}
.feature + .feature { margin-top: clamp(48px, 7vw, 88px); }
.feature.flip .feature-art { order: 2; }
.feature-art { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(156, 107, 255, .55); }
.feature-art img { width: 100%; height: auto; }
.feature-num { margin: 0 0 6px; font: 600 1.6rem/1 var(--head); color: var(--gold); }
.feature-copy h3 { font: 600 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.2 var(--head); margin-bottom: 14px; }
.schools { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.schools li {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; color: var(--text); background: rgba(255, 255, 255, .02);
}
.sw { width: 10px; height: 10px; border-radius: 50%; }
.sw.fire { background: #ff7a3d; } .sw.water { background: #47b8ff; } .sw.grass { background: #5fd36a; }
.sw.light { background: #ffd866; } .sw.void { background: #a873ff; } .sw.earth { background: #c79358; }

/* ---------------------------------------------------------------- modes */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.mode { border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.mode img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.mode-copy { padding: 22px 24px 8px; }
.mode-tag { margin: 0 0 6px; color: var(--gold); font: 600 .78rem/1 var(--head); letter-spacing: .18em; text-transform: uppercase; }
.mode-copy h3 { font: 600 1.5rem/1.2 var(--head); margin-bottom: 10px; }
.mode-list {
  list-style: none; margin: clamp(20px, 3vw, 32px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.mode-list li { padding: 22px 24px 8px; }
.mode-list li + li { border-left: 1px solid var(--line); }
.mode-list h3 { font: 600 1.15rem/1.2 var(--head); margin-bottom: 8px; color: var(--gold-hi); }

/* ---------------------------------------------------------------- screenshots */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--panel); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .3s ease; }
.gallery a:hover img { transform: scale(1.04); filter: brightness(1.1); }

.viewer { padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #000; max-width: min(1400px, 94vw); width: 100%; }
.viewer::backdrop { background: rgba(5, 4, 9, .86); }
.viewer img { width: 100%; height: auto; max-height: 88vh; object-fit: contain; }
.viewer-close {
  position: absolute; top: 10px; right: 10px; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(11, 9, 18, .8);
  color: var(--text); font-size: 28px; line-height: 1; cursor: pointer;
}

/* ---------------------------------------------------------------- join */
.join { position: relative; }
.join::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* closest-side: the glow fades out before it reaches any edge, so it never shows a hard border */
  background: radial-gradient(ellipse closest-side at 72% 30%, var(--violet-soft), transparent);
}
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 860px; }
.steps li {
  counter-increment: step; position: relative;
  padding: 24px 26px 24px 92px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 24px; top: 22px;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.3rem/1 var(--head); color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold));
}
.steps h3 { margin: 8px 0 8px; }
.steps p { margin-bottom: 14px; }
.steps p:last-child { margin-bottom: 0; }
.ext { font-weight: 400; font-size: 1.05em; line-height: 1; }
/* The address under each signup button: shows where it goes, and can be copied to another device. */
.steps p.addr {
  margin: 10px 0 0; font-size: .9rem; color: var(--dim);
  overflow-wrap: anywhere; user-select: all;
}
.warning {
  margin-top: 22px; max-width: 860px; padding: 22px 26px;
  border-radius: var(--radius); border: 1px solid rgba(240, 168, 96, .45); background: rgba(240, 150, 70, .08);
}
.warning h3 { color: #ffcf9a; margin-bottom: 8px; }
.warning p { margin: 0; }
.warning p + p { margin-top: 10px; }
/* Before the steps: the one thing to get right now that the game can also be bought. */
.first {
  margin: 0 0 22px; max-width: 860px; padding: 20px 26px;
  border-radius: var(--radius); border: 1px solid rgba(232, 190, 110, .5); background: rgba(232, 180, 90, .08);
}
.first h3 { color: var(--gold-hi); margin-bottom: 8px; }
.first p { margin: 0; }

/* ---------------------------------------------------------------- help */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; min-height: 56px; font-weight: 700; font-size: 1.12rem; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); rotate: 45deg; translate: 0 -3px;
  transition: rotate .2s ease, translate .2s ease;
}
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq details p { padding: 0 4px 20px; max-width: 760px; margin: 0; }
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); margin-top: clamp(40px, 6vw, 64px); }
.contact > div { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.contact h3 { margin-bottom: 10px; }
.contact .links { margin: 0; }

/* ---------------------------------------------------------------- feedback */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.ways > div { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.ways h3 { margin-bottom: 10px; }
.ways p { margin-bottom: 10px; }
.ways p:last-child, .ways .links { margin-bottom: 0; }
.include { margin-top: clamp(20px, 3vw, 28px); max-width: 860px; padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.include h3 { margin-bottom: 10px; }
.include ul { margin: 0 0 12px; padding-left: 1.2em; }
.include li { margin-bottom: 6px; }
.include .note { margin: 0; color: var(--dim); font-size: .95rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: #08060e; }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 56px; text-align: center; }
.foot-logo { width: 220px; height: auto; margin: 0 auto 12px; opacity: .92; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.foot-links a { padding: 10px 12px; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--gold-hi); text-decoration: underline; }

/* ---------------------------------------------------------------- responsive */
/* Seven section links fit in one line from about 1120px; narrower, the bar keeps only the brand and Join. */
@media (max-width: 1120px) {
  .nav { display: none; }
  .bar { justify-content: space-between; }
}
@media (max-width: 980px) {
  .bar { justify-content: space-between; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .trailers, .modes, .contact, .ways { grid-template-columns: minmax(0, 1fr); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-art { order: 0; }
  .mode-list { grid-template-columns: minmax(0, 1fr); }
  .mode-list li + li { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .brand span { font-size: .82rem; }
  .hero { min-height: 0; padding-top: 72px; padding-bottom: 16px; }
  .section { padding-top: 52px; padding-bottom: 56px; }
  .hero::after {
    background: linear-gradient(180deg, rgba(11, 9, 18, .2) 0%, rgba(11, 9, 18, .55) 40%, rgba(11, 9, 18, .92) 75%, var(--bg) 100%);
  }
  .status { font-size: .85rem; }
  .hero-actions .btn { width: 100%; }
  .play { width: 64px; height: 64px; }
  .play::before { border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; }
  .steps li { padding: 76px 20px 22px; }
  .steps li::before { left: 20px; top: 20px; }
  .steps .btn { width: 100%; }
  .gallery { gap: 10px; }
  .warning, .contact > div, .ways > div, .include, .first { padding: 20px; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}

/* ---------------------------------------------------------------- duelists */
.lede { max-width: 62ch; margin: 14px 0 0; color: var(--muted); }
/* No single word left alone on a paragraph's last line ("for every / step."), where the browser supports it. */
p, .lede { text-wrap: pretty; }
.duelists { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
@media (max-width: 980px) { .duelists { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .duelists { grid-template-columns: repeat(2, minmax(0, 1fr)); } .duelist { padding: 14px 12px 4px; } }
.duelist { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; text-align: center; outline: none; transition: border-color .2s ease; }
.duelist:hover, .duelist:focus-visible, .duelist.playing { border-color: var(--line-strong); }
.duelist img { width: min(150px, 70%); height: auto; aspect-ratio: 1; margin: 0 auto 12px; display: block; }
.duelist h3 { font: 600 1.15rem/1.2 var(--head); margin-bottom: 4px; }
.duelist .passive { margin: 0 0 8px; color: var(--gold); font: 600 .78rem/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; }
.duelist p:last-child { color: var(--muted); font-size: .92rem; }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn-gold:hover { transform: none; }
}
