/* ============================================================
   See No Evil — promo site theme
   "Worn parchment adventure manual" — retro point-and-click
   light scheme: aged paper, ink serif headings, demon crimson.
   ============================================================ */

:root {
  --paper: #f8f2e4;
  --paper-2: #efe6d1;
  --paper-3: #e6dabd;
  --ink: #2d2a26;
  --ink-soft: #5f584c;
  --crimson: #a63d40;
  --crimson-dark: #7f2c2f;
  --plum: #5e3a5c;
  --moss: #4c6b48;
  --gold: #b98a2f;
  --line: #d6c9ac;
  --shadow: 0 2px 10px rgba(61, 45, 20, 0.08);
  --radius: 3px;
  --serif: Georgia, "Times New Roman", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper-2);
  border-bottom: 3px double var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.brand:hover { text-decoration: none; color: var(--crimson); }
.brand img { border-radius: var(--radius); }

.brand-name {
  font-variant: small-caps;
  letter-spacing: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 8px 14px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--ink-soft);
  font-size: 0.98rem;
  padding: 6px 10px;
  border-radius: var(--radius);
}
.nav-link:hover { color: var(--crimson); text-decoration: none; background: var(--paper-3); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-play {
  background: var(--crimson);
  color: #fff8ec;
  border-color: var(--crimson-dark);
  box-shadow: inset 0 -2px 0 var(--crimson-dark), var(--shadow);
  letter-spacing: 0.3px;
}
.btn-play:hover { background: var(--crimson-dark); color: #fff8ec; }

.btn-primary {
  background: var(--crimson);
  color: #fff8ec;
  border-color: var(--crimson-dark);
  box-shadow: inset 0 -2px 0 var(--crimson-dark), var(--shadow);
}
.btn-primary:hover { background: var(--crimson-dark); color: #fff8ec; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--crimson); color: var(--crimson); }

.btn-banner {
  background: var(--gold);
  color: #2d2615;
  border-color: #8f6a1f;
  box-shadow: inset 0 -2px 0 #8f6a1f, var(--shadow);
  font-size: 1.1rem;
  padding: 14px 34px;
}
.btn-banner:hover { background: #c99c3a; color: #2d2615; }

/* ---------- Hero (index) ---------- */

.hero {
  background:
    radial-gradient(1200px 420px at 85% -10%, rgba(166, 61, 64, 0.10), transparent 60%),
    radial-gradient(900px 380px at 10% 110%, rgba(92, 58, 92, 0.10), transparent 55%),
    var(--paper-2);
  border-bottom: 3px double var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 48px;
}

.hero-eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--crimson);
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  color: var(--ink);
}

.hero-tagline {
  margin: 0 0 26px;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-media img {
  border: 8px solid var(--paper);
  outline: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-copy { min-width: 0; }
.hero-media { min-width: 0; }

/* ---------- Hero (sub-pages) ---------- */

.hero-subpage {
  background: var(--paper-2);
  border-bottom: 3px double var(--line);
  padding: 44px 0 36px;
}

.hero-subpage h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.15;
}

.hero-lead {
  margin: 0;
  max-width: 46em;
  font-size: 1.06rem;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */

.section { padding: 44px 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-divider { margin-top: 8px; }

.section h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--ink);
}

.section h2::before {
  content: "\25C6";
  color: var(--crimson);
  font-size: 0.72em;
  vertical-align: 0.18em;
  margin-right: 10px;
}

.section h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  color: var(--ink);
  margin: 28px 0 10px;
}

.section-intro {
  max-width: 44em;
  color: var(--ink-soft);
  margin: 0 0 26px;
}

.article p { margin: 0 0 16px; }
.article p:last-child { margin-bottom: 0; }

.article-center {
  max-width: 760px;
  margin: 0 auto 40px;
}

/* ---------- Facts ---------- */

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.fact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.fact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 4px;
}

.fact-value {
  display: block;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
}

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--crimson);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--crimson);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-caption {
  padding: 10px 14px 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28, 22, 14, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 84vh;
  border: 6px solid var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(248, 242, 228, 0.14);
  border: 1px solid rgba(248, 242, 228, 0.4);
  color: var(--paper);
  font-size: 1.6rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 210;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { background: var(--crimson); border-color: var(--crimson); }

.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Quotes ---------- */

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  box-shadow: var(--shadow);
  margin: 0;
}

.quote-card p {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
}

.quote-author {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--plum);
}

/* ---------- Play banner ---------- */

.play-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background:
    radial-gradient(700px 200px at 90% 0%, rgba(185, 138, 47, 0.16), transparent 60%),
    var(--crimson);
  color: #fff8ec;
  border-radius: var(--radius);
  padding: 30px 34px;
  box-shadow: var(--shadow);
}

.play-banner h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #fff8ec;
}
.play-banner h2::before { content: none; }

.play-banner p {
  margin: 0;
  color: #f3e3cd;
}

.play-banner-inner { flex: 1 1 300px; }

/* ---------- Figures on sub-pages ---------- */

.img-side {
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 8px;
  box-shadow: var(--shadow);
}

.img-side-left { float: left; width: 46%; margin-right: 26px; }
.img-side-right { float: right; width: 46%; margin-left: 26px; }

.img-side img { border-radius: 2px; }

figcaption {
  padding: 8px 4px 2px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Characters ---------- */

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.character-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.character-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff8ec;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.char-1 { background: linear-gradient(135deg, #a63d40, #7f2c2f); }
.char-2 { background: linear-gradient(135deg, #5e3a5c, #432a42); }
.char-3 { background: linear-gradient(135deg, #4c6b48, #364f33); }
.char-4 { background: linear-gradient(135deg, #b98a2f, #8f6a1f); }
.char-5 { background: linear-gradient(135deg, #5a6b7a, #3f4c58); }
.char-6 { background: linear-gradient(135deg, #8a4a5c, #653341); }

.character-card h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.12rem;
}

.character-role {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 10px;
}

.character-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Tips list ---------- */

.tips-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: tip;
}

.tip-item {
  counter-increment: tip;
  position: relative;
  padding: 12px 16px 12px 56px;
  margin-bottom: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tip-item::before {
  content: counter(tip);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--plum);
  color: #fff8ec;
  font-family: var(--serif);
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.tip-item strong { color: var(--crimson-dark); }

/* ---------- Table ---------- */

.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

.sysreq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--paper);
}

.sysreq-table caption { text-align: left; }

.sysreq-table th,
.sysreq-table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.sysreq-table th {
  background: var(--paper-2);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.sysreq-table tr:nth-child(even) td { background: var(--paper-2); }

.faq-sysreq { margin-top: 0; }

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 24px;
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--line);
  border-left: 4px solid var(--plum);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: pointer;
  padding: 14px 18px;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: bold;
  color: var(--ink);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: "\002B";
  display: inline-block;
  width: 1.4em;
  color: var(--crimson);
  font-weight: bold;
}

.faq-item[open] summary::before { content: "\2212"; }

.faq-item .faq-answer {
  padding: 0 18px 16px;
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--paper-2);
  border-top: 3px double var(--line);
  padding: 26px 0 30px;
  margin-top: 40px;
}

.footer-copy {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-switch, .lang-switcher { align-items: center; }

.lang-link {
  color: var(--ink-soft);
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 12px;
  background: var(--paper);
}

.lang-link:hover { color: var(--crimson); border-color: var(--crimson); text-decoration: none; }

.lang-switch .lang-link.active,
.lang-switch a.active {
  color: #fff8ec;
  background: var(--crimson);
  border-color: var(--crimson-dark);
  font-weight: 700;
  cursor: default;
}

.lang-switch .lang-link.active:hover,
.lang-switch a.active:hover { text-decoration: none; }

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  body { font-size: 16px; }

  .nav-toggle { display: inline-block; }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 10px 0 4px;
    gap: 2px;
  }

  .site-nav.open { display: flex; }

  .nav-link, .site-nav .btn { text-align: center; }

  .header-inner { flex-wrap: wrap; }

  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 36px; gap: 26px; }

  .facts-grid, .features-grid, .character-grid, .quotes-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .img-side-left, .img-side-right { float: none; width: 100%; margin: 24px 0; }

  .play-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .facts-grid, .features-grid, .character-grid, .quotes-grid, .gallery-grid { grid-template-columns: 1fr; }

  .hero h1 { font-size: 2rem; }

  .hero-actions .btn { width: 100%; }

  .section { padding: 34px 0; }

  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}
