/* Les Ténèbres — presentation page. Night-time Paris, gold neon and blood red, CRT screens.
   No external font or script (the site's CSP allows only 'self'): system fonts, pixel art kept crisp. */
:root {
  --bg: #08050a; --bg2: #120b14; --ink: #ece4d6; --muted: #a99e92; --gold: #e8c15a; --gold2: #c9962e;
  --red: #d8323a; --red2: #8e1a22; --violet: #7b4fe4; --line: rgba(232, 193, 90, .22);
  --head: "Impact", "Haettenschweiler", "Arial Narrow Bold", "Oswald", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: .02em; line-height: 1.05; margin: 0 0 .5em; text-transform: uppercase; }
h2 { font-size: clamp(32px, 5vw, 54px); }
h3 { font-size: 26px; color: var(--gold); }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
section.wrap { padding: 88px 0 24px; }
.center { text-align: center; }
.kicker { font: 700 13px/1.4 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.kicker.red { color: var(--red); }
.kicker.gold { color: var(--gold); }

/* buttons */
.btn { display: inline-block; background: linear-gradient(#f2cf6a, var(--gold2)); color: #1a0d05; font: 800 16px/1 var(--body);
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 15px 24px; border-radius: 4px;
  box-shadow: 0 0 0 2px #1a0d05, 0 0 24px rgba(232, 193, 90, .35); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px #1a0d05, 0 0 36px rgba(232, 193, 90, .6); }
.btn.big { font-size: 19px; padding: 19px 30px; }
.btn.small { padding: 10px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(236, 228, 214, .5); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--gold); color: var(--gold); }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(8, 5, 10, .86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font: 400 22px/1 var(--head); letter-spacing: .06em; color: var(--ink); text-decoration: none; }
.logo img { image-rendering: pixelated; }
.bar nav { display: flex; gap: 18px; margin-left: auto; }
.bar nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.bar nav a:hover { color: var(--gold); }

/* hero */
.hero { position: relative; overflow: hidden; min-height: min(88vh, 760px); display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background: url(assets/rue.jpg) center 60% / cover no-repeat; image-rendering: pixelated; filter: saturate(1.15) brightness(.9); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,5,10,.95) 0%, rgba(8,5,10,.8) 50%, rgba(8,5,10,.45) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 420px; gap: 32px; align-items: end; padding: 40px 0 0; }
.hero-txt { padding-bottom: 48px; }
.hero-logo { width: 230px; margin: 0 0 8px -12px; filter: drop-shadow(0 0 30px rgba(216, 50, 58, .45)); object-fit: cover; aspect-ratio: 384 / 160; object-position: center 4%; }
.hero-group { width: 420px; image-rendering: pixelated; filter: drop-shadow(0 0 40px rgba(232, 193, 90, .25)); }
.hero h1 { font-size: clamp(34px, 4.4vw, 56px); text-shadow: 0 3px 0 #000, 0 0 30px rgba(216, 50, 58, .35); }
.hero h1 span { color: var(--gold); }
.lede { font-size: 20px; max-width: 640px; color: #ddd3c2; }
.lede b { color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(18, 11, 20, .7); color: #d9cfbf; }

/* CRT screens */
.crt { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 3px #1b1220, 0 0 0 4px rgba(232, 193, 90, .25), 0 22px 60px rgba(0, 0, 0, .7); }
.crt img, .crt video { width: 100%; image-rendering: pixelated; }
.crt::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.45)); }

/* text + video blocks */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.split.rev { grid-template-columns: 1fr 1fr; margin-top: 64px; }
.split p { color: #d6ccbc; }
.split h2 { font-size: clamp(30px, 3.4vw, 44px); }

/* heroes */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 36px 0 40px; }
.card { background: linear-gradient(180deg, var(--bg2), #0c070e); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: rgba(232, 193, 90, .55); }
.card .portrait { width: 100%; height: 260px; object-fit: contain; object-position: center bottom; image-rendering: pixelated;
  background: radial-gradient(ellipse at 50% 70%, rgba(210, 150, 60, .35), transparent 65%); padding-top: 16px; }
.card-body { padding: 18px 22px 22px; }
.card h3 { font-size: 34px; margin-bottom: .3em; }
.style { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.card p { color: #cfc5b5; font-size: 16px; }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; margin: 14px 0; font-size: 13px; }
.stats dt { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.stats dd { margin: 0; height: 8px; background: #23182a; border-radius: 2px; overflow: hidden; }
.stats i { display: block; height: 100%; width: calc(var(--v) * 20%); background: linear-gradient(90deg, var(--gold2), var(--gold)); }
.special { font-weight: 700; color: var(--ink) !important; }
blockquote { margin: 14px 0 0; padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(232, 193, 90, .06);
  font-style: italic; color: #e9dfcd; font-size: 15px; }

/* bosses */
.dark { background: linear-gradient(180deg, var(--bg), #12060a 30%, #12060a 70%, var(--bg)); padding: 96px 0 56px; margin-top: 64px;
  border-top: 1px solid rgba(216, 50, 58, .25); border-bottom: 1px solid rgba(216, 50, 58, .25); }
.villains { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.villain { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: start; padding: 22px; border-radius: 12px;
  background: rgba(30, 8, 12, .6); border: 1px solid rgba(216, 50, 58, .3); }
.villain .portrait { width: 180px; height: 200px; object-fit: contain; object-position: center bottom; image-rendering: pixelated;
  background: radial-gradient(ellipse at 50% 70%, rgba(200, 30, 30, .4), transparent 65%); border-radius: 8px; }
.villain .portrait.wide { object-fit: cover; object-position: 72% bottom; }
.villain h3 { color: var(--red); font-size: 30px; }
.villain blockquote { border-color: var(--red); background: rgba(216, 50, 58, .08); margin-bottom: 12px; }
.villain p { color: #cfc5b5; font-size: 16px; }
.dark .split .crt + * , .dark .split h3 { margin-top: 0; }
.dark .split figure + div figure { margin-top: 20px; }

/* levels */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.levels h3 { margin-top: 20px; font-size: 26px; display: flex; align-items: center; gap: 10px; }
.levels h3 b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font: 400 20px/1 var(--head); }
.levels p { color: #cfc5b5; font-size: 16px; }

/* controls */
.tablewrap { overflow-x: auto; margin: 28px 0 18px; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 15px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(232, 193, 90, .12); }
th { background: #160e19; color: var(--gold); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
tbody tr:hover { background: rgba(232, 193, 90, .04); }
kbd { display: inline-block; min-width: 1.6em; padding: 2px 7px; border-radius: 4px; background: #241a2a; border: 1px solid #3a2c42;
  border-bottom-width: 3px; font: 700 13px/1.4 ui-monospace, Menlo, monospace; color: var(--ink); text-align: center; }
.note { color: var(--muted); font-size: 15px; }
.moves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.moves div { padding: 18px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); }
.moves b { display: block; font: 400 22px/1.1 var(--head); text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.moves span { color: #cfc5b5; font-size: 15px; }

/* the 100-sat continue */
.sats-in { display: grid; grid-template-columns: 170px 1fr; gap: 36px; align-items: center; padding: 40px; border-radius: 16px;
  background: radial-gradient(ellipse at 0% 50%, rgba(247, 147, 26, .16), transparent 55%), var(--bg2); border: 1px solid rgba(247, 147, 26, .35); }
.sats-coin { width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center; font: 800 96px/1 var(--body); color: #fff;
  background: radial-gradient(circle at 35% 30%, #ffb24a, #f7931a 55%, #b9650a); box-shadow: 0 0 0 6px #2a1606, 0 0 50px rgba(247, 147, 26, .45);
  transform: rotate(-12deg); }
.sats p { color: #d6ccbc; }
.sats-link { padding: 14px 18px; border-radius: 10px; background: rgba(123, 79, 228, .12); border: 1px solid rgba(123, 79, 228, .45); }
.sats-link a { font-weight: 800; color: #b9a2ff; margin-right: 6px; }

/* languages */
.langs { text-align: center; }
.lang-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.lang-list a { font: 400 26px/1 var(--head); padding: 14px 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); color: var(--ink); text-decoration: none; }
.lang-list a:hover { border-color: var(--gold); color: var(--gold); }
.lang-list a:lang(zh), .lang-list a:lang(ja) { font-family: system-ui, sans-serif; font-weight: 700; }

/* language menu (header) and links (footer) */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: " ▾"; }
.lang-menu div { position: absolute; right: 0; top: calc(100% + 6px); display: grid; min-width: 140px; padding: 6px; border-radius: 8px;
  background: #140c17; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.6); z-index: 30; }
.lang-menu a { padding: 8px 10px; border-radius: 5px; color: var(--ink); text-decoration: none; font-size: 15px; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: rgba(232, 193, 90, .12); color: var(--gold); }
.foot-langs a { margin-right: 12px; }

/* where the game comes from */
.origin-in { max-width: 860px; padding: 36px 40px; border-radius: 16px; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 100% 0%, rgba(216, 50, 58, .14), transparent 55%), var(--bg2); }
.origin-in p { color: #d6ccbc; }
.origin-in b { color: var(--ink); }
.or-links a { font-weight: 700; }

/* Chinese and Japanese: the condensed Latin display font has no such glyphs */
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3,
:lang(zh) .moves b, :lang(ja) .moves b { font-family: system-ui, "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", sans-serif; font-weight: 800; letter-spacing: 0; }
.langs p.center { color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: #cfc5b5; }

/* final call */
.final { margin-top: 80px; padding: 110px 0; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(8,5,10,.6), rgba(8,5,10,.9)), url(assets/catacombe.jpg) center / cover; border-top: 1px solid var(--line); }
.final h2 { font-size: clamp(42px, 7vw, 84px); text-shadow: 0 0 40px rgba(216, 50, 58, .5); }
.final p { font-size: 20px; color: #ddd3c2; }

footer { padding: 40px 0 96px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer b { color: var(--ink); }
.credits { color: #8f857a; }
.muted a { color: var(--muted); }
.muted a:hover { color: var(--gold); }

/* the play button that follows the reader on phones */
.sticky-play { display: none; }

@media (max-width: 960px) {
  .bar nav { display: none; }
  .lang-menu { margin-left: auto; }
  .origin-in { padding: 24px; }
  .bar .btn.small { margin-left: 8px; }
  .hero-in { grid-template-columns: 1fr; gap: 0; padding: 32px 0 0; text-align: left; }
  .hero-txt { padding-bottom: 8px; }
  .hero-logo { width: 180px; }
  .hero-group { width: min(340px, 90%); margin: 0 auto; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(8,5,10,.7), rgba(8,5,10,.95) 60%, var(--bg)); }
  .split, .split.rev { grid-template-columns: 1fr; gap: 28px; }
  .cards, .levels { grid-template-columns: 1fr; }
  .villains { grid-template-columns: 1fr; }
  .moves { grid-template-columns: 1fr 1fr; }
  .sats-in { grid-template-columns: 1fr; text-align: left; padding: 28px; }
  .sats-coin { width: 110px; height: 110px; font-size: 64px; }
  section.wrap { padding-top: 64px; }
  .sticky-play { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; text-align: center;
    background: linear-gradient(#f2cf6a, var(--gold2)); color: #1a0d05; font: 800 17px/1 var(--body); letter-spacing: .06em;
    text-transform: uppercase; text-decoration: none; padding: 17px; border-radius: 6px; box-shadow: 0 0 0 2px #1a0d05, 0 8px 30px rgba(0,0,0,.6);
    opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s, transform .25s; }
  .sticky-play.on { opacity: 1; transform: none; pointer-events: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .lede { font-size: 18px; }
  .moves { grid-template-columns: 1fr; }
  .villain { grid-template-columns: 1fr; }
  .villain .portrait { width: 100%; }
  .cta .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .card { transition: none; } }
