:root {
  color-scheme: dark;
  --bg: #101113;
  --surface: #191a1e;
  --ink: #f6f5f8;
  --muted: #b0b1bb;
  --line: #34353e;
  --purple: #b994ff;
  --cyan: #62d5ee;
  --heading: 'Source Sans 3', 'Arial Narrow', sans-serif;
  --body: 'Montserrat', sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f4f7; --surface: #ffffff; --ink: #202027;
  --muted: #5e5f6a; --line: #ceced8; --purple: #7440b8; --cyan: #087b92;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 600; cursor: pointer; }
.theme-toggle:hover { border-color: var(--purple); }
.theme-toggle[aria-pressed="true"] { border-color: var(--purple); color: var(--purple); }
.theme-icon { font-size: 20px; line-height: 1; }
:root[data-theme="light"] .button.primary { color: #fff; }
:root[data-theme="light"] .button.primary:hover { background: #63329f; }
:root[data-theme="light"] .button.light { background: #f6f5f8; color: #202027; }
:root[data-theme="light"] .button.light:hover { background: #d0edf3; }
.stream-intro { color: #f6f5f8; }
@media (max-width: 620px) {
  .header-actions { gap: 8px; }
  .theme-toggle { padding-inline: 8px; }
  .header-actions .header-cta { padding-inline: 10px; }
  .header-actions .header-cta span { margin-left: 6px; }
}
/* Map-only Hajin backdrop; quiet enough to keep the content readable. */
:root { --map-opacity: .12; }
:root[data-theme="light"] { --map-opacity: .07; }
body { isolation: isolate; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url('../images/dmz-hajin-map.webp') center / cover no-repeat;
  opacity: var(--map-opacity);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, iframe:focus-visible { outline: 3px solid var(--cyan); outline-offset: 5px; }
a:hover { color: var(--cyan); }
img { display: block; max-width: 100%; height: auto; }
iframe { display: block; border: 0; }
p, h1, h2 { margin: 0; }
h1, h2 { font-family: var(--heading); font-weight: 900; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(34px, 4vw, 52px); }
p { text-wrap: pretty; }
.shell { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 12px 20px; background: var(--cyan); color: var(--bg); z-index: 10; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; border-bottom: 1px solid var(--line); }
.brand-logo { display: flex; align-items: center; flex-shrink: 0; min-height: 44px; padding-block: 8px; }
.brand-logo img { width: 100px; height: auto; }
:root[data-theme="light"] .brand-logo img {
  filter: drop-shadow(-3px 0 7px #b994ff80) drop-shadow(3px 0 7px #62d5ee60);
}
.wordmark { display: inline-flex; align-items: baseline; font-family: var(--heading); font-size: 38px; line-height: 1; font-weight: 900; letter-spacing: -.05em; }
.wordmark span { color: var(--purple); font-size: 23px; letter-spacing: -.02em; }
.site-header nav { display: flex; gap: 32px; }
.site-header nav a { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; font-weight: 600; }
.site-header nav a:hover { color: var(--ink); }
.header-cta { border: 1px solid var(--line); padding: 10px 18px; min-height: 44px; font-weight: 600; font-size: 12px; }
.header-cta span { margin-left: 18px; color: var(--purple); }
.hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; padding-block: 76px 72px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 12px; color: var(--cyan); }
.tiny-line { width: 24px; height: 2px; background: var(--cyan); }
h1 { font-size: clamp(62px, 6.9vw, 94px); margin-top: 24px; }
h1 span { color: var(--purple); }
.hero-description { color: var(--muted); max-width: 380px; margin-top: 26px; font-size: 16px; line-height: 1.9; }
.actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 13px 20px; min-height: 48px; border: 0; border-radius: 2px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s; }
.button.primary { background: var(--purple); color: #171020; }
.button.primary:hover { background: #d0b7ff; }
.button.light { color: #101113; background: var(--ink); }
.button.light:hover { background: var(--cyan); }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 14px; font-weight: 600; }
.handle { margin-top: 32px; color: var(--muted); font-size: 12px; letter-spacing: .13em; font-weight: 600; }
.handle span { margin-inline: 12px; color: var(--line); }
.watch-block { min-width: 0; }
.panel-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .13em; padding: 13px 17px; border: 1px solid var(--line); border-top: 2px solid var(--purple); background: var(--surface); }
.panel-label span:last-child { color: var(--muted); }
.stream-screen { position: relative; width: 100%; overflow: hidden; background: #0b0b0e; }
.stream-art { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.stream-poster { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.stream-portrait {
  position: absolute; inset: 0 auto 0 0; width: 65%; height: 100%;
  object-fit: cover; object-position: var(--portrait-position, 55% center); pointer-events: none;
  opacity: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
}
.stream-portrait.is-current { opacity: 1; }
.portrait-controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #ffffff24; }
.portrait-controls > span { margin-right: auto; color: #c5c0cc; font-size: 11px; letter-spacing: .04em; }
.portrait-controls button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid #ffffff38; border-radius: 5px; background: #191a1e; color: #f6f5f8; font-size: 11px; font-weight: 600; cursor: pointer; }
.portrait-controls button:is(:hover, :focus-visible) { border-color: #62d5ee; color: #62d5ee; }
@media (prefers-reduced-motion: no-preference) {
  .stream-portrait { transition: opacity 1s ease-in-out; }
}
.stream-intro { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; padding: 22px 24px; background: #0b0b0e; }
.stream-intro h2 { font-size: 30px; }
.stream-intro p { grid-column: 1; font-size: 14px; color: #e4e0eb; }
.stream-intro .button { grid-column: 2; grid-row: 1 / 3; }
.stream-screen:has(> iframe) { min-height: 300px; }
.stream-screen > iframe { width: 100%; height: 100%; min-height: 300px; position: absolute; inset: 0; background: #0b0b0e; }
.stream-footer { display: flex; justify-content: space-between; gap: 12px; padding: 15px 17px; background: var(--surface); border: 1px solid var(--line); border-top: 0; font-size: 12px; }
.stream-footer p { color: var(--muted); }
.stream-footer a { white-space: nowrap; }
.watch-after { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 0; font-size: 13px; }
.watch-after > span { color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.rotation { display: flex; align-items: center; gap: 40px; padding-block: 23px; border-block: 1px solid var(--line); font-family: var(--heading); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.rotation .eyebrow { font-family: var(--body); margin-right: auto; }
.rotation-end { color: var(--muted); }
.section { padding-block: 78px; display: grid; column-gap: 48px; border-bottom: 1px solid var(--line); }
.section-index { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.community { grid-template-columns: 125px 1fr 350px; align-items: start; }
.community-copy { padding-top: 4px; }
.community-copy .eyebrow { color: var(--cyan); }
.community-copy h2, .about-copy h2 { margin-top: 18px; }
.community-copy > p:not(.eyebrow), .about-copy > p:not(.eyebrow) { color: var(--muted); max-width: 410px; margin-top: 22px; font-size: 16px; line-height: 1.9; }
.community-copy .text-link { margin-top: 18px; color: var(--purple); }
.press-scene { margin: 28px 0 0; border: 1px solid var(--line); background: var(--surface); }
.press-scene img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.press-scene figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 12px 14px; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.press-scene figcaption span { color: var(--muted); }
.discord-panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); }
.discord-panel .panel-label { border-inline: 0; }
.discord-panel iframe { width: 100%; height: 350px; }
.discord-panel > p { padding: 12px 17px; color: var(--muted); font-size: 12px; }
.about { grid-template-columns: 125px 1fr 1fr; align-items: start; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 55% center; }
.about-photo > span { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px 18px 15px; background: linear-gradient(transparent, #0009); color: white; font-size: 11px; letter-spacing: .15em; }
.about-copy { padding-top: 4px; }
.about-copy .eyebrow { color: var(--purple); }
.signature { width: 118px; margin-top: 24px; }
.setup { grid-template-columns: 125px 1fr; }
.setup-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 26px; }
.setup-heading h2 { margin-top: 14px; }
.setup-heading > p { color: var(--muted); font-size: 14px; }
summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; min-height: 56px; border-block: 1px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.details-indicator { font-size: 26px; font-weight: 400; color: var(--purple); line-height: 1; }
details[open] .details-indicator { transform: rotate(45deg); }
.hardware-groups { min-width: 0; }
.hardware-groups h3 { margin: 0 0 18px; color: var(--purple); font-size: 18px; }
.hardware-groups dl + h3 { margin-top: 32px; }
.setup-expanded { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding-top: 28px; }
.setup-photo { position: relative; min-height: 0; align-self: start; }
.setup-photo img { display: block; width: 100%; height: auto; }
dl { display: grid; grid-template-columns: 115px 1fr; margin: 0; gap: 12px 20px; font-size: 14px; }
dt { color: var(--muted); } dd { margin: 0; }
.site-footer { padding-block: 40px 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; }
.footer-top > p { color: var(--muted); font-size: 14px; }
.footer-top > p span { color: var(--cyan); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-block: 24px; }
.social-links a { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; }
.social-links a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.footer-bottom a { display: flex; align-items: center; min-height: 44px; }
@media (max-width: 1100px) {
  .shell { width: calc(100% - 64px); }
  .hero { gap: 32px; grid-template-columns: .85fr 1fr; }
  h1 { font-size: clamp(62px, 7vw, 80px); }
  .community { grid-template-columns: 1fr 330px; }
  .section-index { grid-column: 1/-1; margin-bottom: 24px; }
  .about { grid-template-columns: 1fr 1fr; }
  .setup { grid-template-columns: 1fr; }
  .rotation { gap: 24px; font-size: 19px; }
}
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 48px; }
  h1 { font-size: clamp(64px, 10vw, 88px); }
  .hero-description { max-width: 460px; }

  .community { grid-template-columns: 1fr 300px; gap: 24px; }
  .section { padding-block: 52px; }
  .rotation { flex-wrap: wrap; gap: 10px 24px; }
  .rotation .eyebrow { width: 100%; }
  .rotation-end { margin-left: auto; }
  .site-header nav { gap: 20px; }
  .setup-expanded { grid-template-columns: 160px 1fr; gap: 24px; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 40px); }
  .site-header { flex-wrap: wrap; gap: 4px 20px; padding-block: 20px 8px; }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; gap: 10px; }
  .site-header nav a { font-size: 11px; }
  .wordmark { font-size: 34px; }
  .hero { padding-block: 38px 40px; gap: 36px; }
  h1 { font-size: clamp(57px, 13vw, 78px); margin-top: 20px; }
  .hero-description { font-size: 16px; }
  .actions { gap: 10px 20px; }
  .handle { margin-top: 20px; }
  .stream-intro { grid-template-columns: 1fr; padding: 22px; }
  .stream-intro .button { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 12px; }
  .stream-footer { flex-direction: column; gap: 2px; }
  .stream-footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .watch-after { align-items: flex-start; flex-direction: column; gap: 4px; }
  .watch-after a { display: inline-flex; align-items: center; min-height: 44px; }
  .rotation { font-size: 18px; gap: 8px 24px; }
  .rotation-end { width: 100%; margin-left: 0; font-size: 14px; }
  .community, .about { grid-template-columns: 1fr; gap: 28px; }
  .section-index { margin-bottom: 0; }
  .discord-panel { width: min(350px, 100%); }
  .about-photo img { aspect-ratio: 4/3; }
  .setup-heading { display: block; }
  .setup-heading > p { margin-top: 18px; }
  .setup-expanded { grid-template-columns: 1fr; }
  dl { grid-template-columns: 95px 1fr; font-size: 13px; gap: 12px; }
  .footer-top { align-items: start; gap: 24px; }
  .footer-top p { max-width: 150px; }
  .footer-bottom { gap: 20px; }
}
/* A little arcade energy, using the existing VAS purple/cyan palette. */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: 28px -16px 30px 38%;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent, #000 35%, transparent);
  opacity: .55;
}
h1 span { position: relative; display: inline-block; }
h1 span::after {
  content: ''; position: absolute; left: 0; right: -2%; bottom: -.07em;
  height: .075em; background: var(--cyan); transform: rotate(-2deg);
  border-radius: 65% 25% 55% 30%;
}
.hero-copy > .eyebrow { letter-spacing: .12em; }
.tiny-line { width: 12px; height: 12px; border: 2px solid var(--cyan); background: transparent; transform: rotate(45deg); }
.watch-block { position: relative; box-shadow: 8px 8px 0 color-mix(in srgb, var(--purple) 25%, transparent); }
.watch-after { background: var(--bg); padding: 22px 0 10px; }


.button { border-radius: 5px; }
.button.primary { box-shadow: 4px 4px 0 color-mix(in srgb, var(--cyan) 55%, transparent); }
.header-cta { border-color: var(--purple); border-radius: 5px; }
.site-header nav a { position: relative; }
.site-header nav a::after {
  content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left;
}
.site-header nav a:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.rotation { gap: 22px; }
.rotation > span:not(.eyebrow):not(.rotation-end) {
  padding: 4px 16px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); white-space: nowrap;
}
.rotation > span:nth-child(3) { color: var(--purple); border-color: var(--purple); transform: rotate(-3deg); }
.rotation > span:nth-child(4) { color: var(--cyan); border-color: var(--cyan); transform: rotate(3deg); }
.rotation-end { font-size: 14px; letter-spacing: .06em; }
.section-index { color: var(--purple); }
.community-copy h2 { max-width: 440px; }
.discord-panel { box-shadow: 6px 6px 0 color-mix(in srgb, var(--purple) 22%, transparent); }
.about-photo { transform: rotate(-2deg); border: 8px solid var(--surface); box-shadow: 7px 7px 0 color-mix(in srgb, var(--cyan) 30%, transparent); }
.signature { transform: rotate(-8deg); width: 132px; }
summary { padding-inline: 16px; background: var(--surface); border-radius: 5px; }
summary:is(:hover, :focus-visible) { color: var(--purple); }
.details-indicator { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; }
.social-links a { padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; }
.social-links a:is(:hover, :focus-visible) { border-color: var(--cyan); color: var(--cyan); }
.site-footer { border-top: 3px solid var(--purple); margin-top: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: section-reveal .6s ease-out both; }
  .watch-block { animation: section-reveal .75s ease-out both; }
  .site-header nav a::after { transition: transform .2s ease; }
  .text-link span, .button span, .header-cta span { display: inline-block; transition: transform .2s ease; }
  .text-link:is(:hover, :focus-visible) span, .header-cta:is(:hover, :focus-visible) span { transform: translate(3px, -2px); }
  .button:is(:hover, :focus-visible) span { transform: translate(2px, -2px); }
  .about-photo, .signature { transition: transform .3s ease; }
  @media (hover: hover) and (pointer: fine) {
    .about-photo:hover { transform: rotate(0deg); }
    .signature:hover { transform: rotate(0deg) scale(1.06); }

  }
}
@media (max-width: 1100px) {
  .rotation { flex-wrap: wrap; gap: 12px 20px; }
  .rotation-end { margin-left: auto; }
}
@media (max-width: 620px) {
  .hero::before { inset: 24px 0 0 15%; }
  .watch-block { margin-right: 6px; box-shadow: 6px 6px 0 color-mix(in srgb, var(--purple) 25%, transparent); }

  .rotation { gap: 12px; }
  .rotation > span:not(.eyebrow):not(.rotation-end) { padding: 4px 12px; }
  .rotation-end { margin-left: 0; }
  .about-photo { margin: 5px 6px; }
  .social-links { gap: 10px; }
}
/* Motion is opt-in; nothing is hidden while waiting for a reveal. */
@media (prefers-reduced-motion: no-preference) {
  .brand-logo img { transition: filter .25s ease; }
  .brand-logo:is(:hover, :focus-visible) img {
    filter: drop-shadow(-3px 0 7px #b994ff80) drop-shadow(3px 0 7px #62d5ee60);
  }
  .button { position: relative; overflow: hidden; transition: background-color .15s, color .15s, transform .2s ease, box-shadow .2s ease; }
  .button::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, #ffffff50 50%, transparent 70%);
    transform: translateX(-130%);
  }
  .button:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 20px #b994ff26; }
  .button:focus-visible::before { animation: button-sweep .55s ease-out; }
  .section.is-revealed { animation: section-reveal .55s ease-out both; }
  @media (hover: hover) and (pointer: fine) {
    .button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px #b994ff26; }
    .button:hover::before { animation: button-sweep .55s ease-out; }
  }
}
@keyframes button-sweep {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}
@keyframes section-reveal {
  from { opacity: .45; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
