:root {
  color-scheme: light;
  --ink: #21183a;
  --muted: #514866;
  --paper: #fffdf8;
  --surface: #ffffff;
  --purple: #3b1973;
  --purple-dark: #24104f;
  --pink: #a61c70;
  --yellow: #ffe45e;
  --line: #ded6ed;
  --shadow: 0 14px 35px rgba(36, 16, 79, .12);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: var(--purple); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid #d22b87; outline-offset: 4px; }
.skip-link { position: absolute; z-index: 10; top: .5rem; left: .5rem; padding: .65rem 1rem; transform: translateY(-160%); background: #fff; color: var(--purple-dark); border-radius: .4rem; }
.skip-link:focus { transform: translateY(0); }
.wrap { width: min(1100px, calc(100% - 2.5rem)); margin-inline: auto; }
.site-header { background: var(--purple-dark); color: #fff; }
.header-inner { width: min(1160px, calc(100% - 2.5rem)); min-height: 82px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; font-size: 1.25rem; font-weight: 850; text-decoration: none; letter-spacing: -.03em; }
.brand img { width: 44px; height: 44px; }
.brand-accent { color: var(--yellow); }
.nav-list { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; list-style: none; }
.nav-list a { display: inline-block; padding: .55rem .75rem; color: #fff; border-radius: .5rem; text-decoration: none; font-weight: 650; }
.nav-list a:hover, .nav-list a[aria-current="page"] { background: rgba(255,255,255,.15); }
.theme-button { border: 2px solid var(--yellow); border-radius: 999px; padding: .55rem .8rem; color: var(--purple-dark); background: var(--yellow); font: inherit; font-weight: 750; cursor: pointer; white-space: nowrap; }
.theme-button:hover { background: #fff; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem; padding-block: clamp(3rem, 8vw, 6.5rem); }
.hero-copy { max-width: 620px; }
.eyebrow { margin: 0 0 .6rem; color: var(--pink); text-transform: uppercase; font-size: .8rem; font-weight: 850; letter-spacing: .12em; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h1 { max-width: 750px; margin: .2rem 0 1.1rem; color: var(--purple-dark); font-size: clamp(2.5rem, 6vw, 4.8rem); }
h1 span { color: var(--pink); }
.hero-copy > p:not(.eyebrow) { max-width: 590px; color: var(--muted); font-size: 1.15rem; }
.hero-art { display: block; width: 100%; max-height: 390px; object-fit: contain; }
.button-link { display: inline-block; margin-top: .7rem; padding: .8rem 1.15rem; border-radius: .65rem; background: var(--purple); color: #fff; text-decoration: none; font-weight: 750; box-shadow: var(--shadow); }
.button-link:hover { background: var(--purple-dark); }
.content-section { padding-block: 1rem 5rem; }
.content-section h2, .callout h2, .info-panel h2 { margin: 0 0 .7rem; color: var(--purple-dark); font-size: clamp(1.65rem, 3.5vw, 2.4rem); }
.section-intro { max-width: 650px; margin: 0 0 1.5rem; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { padding: 1.4rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.card-icon { display: inline-grid; width: 3rem; height: 3rem; place-items: center; margin-bottom: .75rem; border-radius: .8rem; background: #f0e8ff; font-size: 1.5rem; }
.card h3 { margin: 0 0 .5rem; color: var(--purple-dark); font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 4rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 1.2rem; background: var(--purple-dark); color: #fff; }
.callout h2 { max-width: 600px; color: #fff; }
.callout p:not(.eyebrow) { margin-bottom: 0; color: #f0eafa; }
.callout .eyebrow { color: var(--yellow); }
.button-link-light { flex: 0 0 auto; background: var(--yellow); color: var(--purple-dark); }
.button-link-light:hover { background: #fff; }
.page-content { min-height: 65vh; padding-block: clamp(3rem, 7vw, 5.5rem); }
.page-content h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.text-accent { color: var(--pink); }
.lead { max-width: 760px; color: var(--muted); font-size: 1.2rem; }
.info-panel { max-width: 800px; margin-block: 1.5rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.info-panel h2 { font-size: 1.55rem; }
.info-panel p:last-child { margin-bottom: 0; }
.notice { padding: 1rem; border-left: 4px solid var(--pink); background: #fff2f8; color: var(--ink); }
.text-link { display: inline-block; margin-top: 1rem; font-weight: 750; }
.site-footer { padding-block: 1.4rem; background: #f0eaf8; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-inner p { margin: 0; }
body.arcade-mode { --paper: #171327; --surface: #241c39; --ink: #fff9e9; --muted: #e1d9ef; --purple-dark: #120c24; --line: #51416c; --purple: #6837ad; }
body.arcade-mode .hero h1, body.arcade-mode .content-section h2, body.arcade-mode .card h3, body.arcade-mode .info-panel h2 { color: #fff; }
body.arcade-mode .card-icon { background: #3c2d59; }
body.arcade-mode .notice { background: #38253b; color: #fff; }
body.arcade-mode .site-footer { background: #211a32; color: #e1d9ef; }
body.arcade-mode .callout { background: #080612; }
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; padding-block: .75rem; }
  .header-inner nav { order: 3; width: 100%; }
  .nav-list { justify-content: center; }
  .nav-list a { padding-inline: .6rem; }
  .hero { grid-template-columns: 1fr; gap: .5rem; padding-top: 3rem; }
  .hero-art { max-height: 300px; }
  .card-grid { grid-template-columns: 1fr; }
  .callout { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
  .wrap, .header-inner { width: min(100% - 1.5rem, 1100px); }
  .brand { font-size: 1.1rem; }
  .brand img { width: 38px; height: 38px; }
  .theme-button { padding: .45rem .6rem; font-size: .9rem; }
  .nav-list { gap: 0; }
  .nav-list a { padding-inline: .5rem; font-size: .93rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
