/* CD-Man tribute site. Night arcade look, EGA accents. */
:root {
  --bg: #0a0f1c; --bg-2: #101830; --panel: #141d36; --line: #263252;
  --ink: #f3f0e6; --muted: #aab3c9;
  --yellow: #ffd23f; --green: #5ee27a; --blue: #4aa3ff; --pink: #ff5fa2; --red: #ff4d4d;
  --display: "Press Start 2P", "Courier New", monospace;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
section[id], main[id] { scroll-margin-top: 66px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body);
  background-image: radial-gradient(circle, rgba(255,210,63,.13) 1.6px, transparent 2px);
  background-size: 34px 34px; background-attachment: fixed;
}
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
kbd { font: 600 .8em var(--body); background: var(--bg-2); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: .05em .45em; }
h1, h2, h3 { font-family: var(--display); line-height: 1.45; letter-spacing: .01em; }
h2 { font-size: clamp(1rem, 2.4vw, 1.45rem); margin: 0 0 1.2rem; color: var(--yellow); }
h3 { font-size: .8rem; margin: 0 0 .7rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
section { padding-block: clamp(56px, 8vw, 96px); }
section + section { border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--display); font-size: .6rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.lead { font-size: 1.2rem; max-width: 60ch; color: var(--ink); }
.muted { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* top nav */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: rgba(10,15,28,.82); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 58px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-size: .8rem; color: var(--yellow); display: flex; align-items: center; gap: .6rem; }
.top nav { margin-left: auto; display: flex; gap: clamp(.6rem, 2vw, 1.4rem); flex-wrap: wrap; font-weight: 600; font-size: .95rem; }
.top nav a { color: var(--ink); }
.top nav a.hot { color: var(--yellow); }

/* hero: the painted forest of version 3 behind everything */
.hero { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 130px) clamp(40px, 6vw, 72px); text-align: center;
  background: linear-gradient(180deg, rgba(10,15,28,.62) 0%, rgba(10,15,28,.8) 55%, var(--bg) 100%), url("/assets/bg/forest.jpg") center 40% / cover no-repeat; }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(2rem, 7.5vw, 4.6rem); margin: .2em 0 .35em; color: var(--yellow); text-shadow: 0 6px 0 #7a5a00, 0 12px 30px rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; gap: .35em; flex-wrap: wrap; }
.hero-man { width: 1.9em; height: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,.55)); animation: bob 2.4s ease-in-out infinite; }
.hero .lead { margin-inline: auto; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.hero .eyebrow { color: #dbe3f5; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.float { position: absolute; width: clamp(70px, 9vw, 140px); height: auto; opacity: .9; filter: drop-shadow(0 12px 18px rgba(0,0,0,.5)); pointer-events: none; }
.float.spider { left: 3%; top: 26%; animation: bob 3.4s ease-in-out infinite; }
.float.shark { right: 4%; top: 30%; animation: bob 4.1s ease-in-out infinite reverse; }
.float.key { left: 12%; bottom: 8%; width: clamp(48px, 5vw, 80px); transform: rotate(-12deg); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .hero-man, .float { animation: none; } }
@media (max-width: 860px) { .float.spider, .float.shark { top: 10%; } .float.key { display: none; } }
.cast { display: flex; justify-content: center; align-items: center; gap: clamp(10px, 2.2vw, 26px); flex-wrap: wrap; margin-top: 1.6rem; }
.cast img { height: clamp(26px, 3.4vw, 42px); width: auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.brand img { width: 28px; height: 28px; }


/* painted backdrops per section: set --bg-img on the section */
.backdrop { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, rgba(10,15,28,.72) 18%, rgba(10,15,28,.72) 82%, var(--bg) 100%), var(--bg-img) center / cover no-repeat; }
.backdrop > .wrap { position: relative; }
.backdrop h2, .backdrop p, .backdrop li { text-shadow: 0 2px 10px rgba(0,0,0,.75); }
.backdrop .tl, .backdrop .step, .backdrop .thanks-card, .backdrop .setting { background: rgba(20,29,54,.88); backdrop-filter: blur(4px); }

/* play cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 28px); margin-top: 2.4rem; text-align: left; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.card .shot { width: 100%; height: auto; background: #000; image-rendering: pixelated; }
.card .shot.smooth { image-rendering: auto; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card h3 { display: flex; align-items: baseline; gap: .6rem; font-size: .78rem; margin: 0; }
.card h3 .year { font-family: var(--body); font-weight: 800; color: var(--muted); font-size: .95rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.card .tag { position: absolute; top: 12px; left: 12px; font-family: var(--display); font-size: .5rem; padding: .5em .7em; border-radius: 999px; background: rgba(10,15,28,.85); border: 1px solid var(--line); }
.card.v1 { --c: var(--yellow); } .card.v2 { --c: var(--blue); } .card.v3 { --c: var(--green); }
.card h3 { color: var(--c); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 800 1.05rem var(--body); padding: .8em 1.4em; border-radius: 12px; background: var(--c, var(--yellow)); color: #0a0f1c; border: 0; cursor: pointer; text-decoration: none !important; box-shadow: 0 4px 0 rgba(0,0,0,.35); transition: transform .1s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn .k { font-family: var(--display); font-size: .55rem; opacity: .7; }
.card .btn { margin-top: .4rem; }

/* thank you */
.thanks { background: linear-gradient(180deg, rgba(255,210,63,.06), transparent); }
.thanks-card { background: var(--panel); border: 1px solid rgba(255,210,63,.35); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); box-shadow: 0 0 0 6px rgba(255,210,63,.06), 0 30px 80px rgba(0,0,0,.4); }
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.4rem 0 1.8rem; }
@media (max-width: 560px) { .names { grid-template-columns: 1fr; } }
.name { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.name b { font-family: var(--display); font-size: .75rem; color: var(--yellow); display: block; margin-bottom: .5rem; }
.name span { color: var(--muted); font-size: .95rem; }
.note { font-size: 1.1rem; }
.note p:last-child { margin-bottom: 0; }
.sig { font-weight: 800; }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr; } }
.tl { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tl h3 { color: var(--c); }
.tl ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.tl li { margin-bottom: .35em; }
.tl.v1 { --c: var(--yellow); } .tl.v2 { --c: var(--blue); } .tl.v3 { --c: var(--green); }

/* remake */
.steps { counter-reset: s; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 1.2rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 16px 56px; position: relative; font-size: .97rem; color: var(--muted); }
.step b { color: var(--ink); display: block; margin-bottom: .2rem; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #0a0f1c; font: 800 .95rem/28px var(--body); text-align: center; }
.figure { margin: 0; }
.figure img { border-radius: 14px; border: 1px solid var(--line); }
.figure figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.wip { display: inline-block; font-family: var(--display); font-size: .55rem; color: var(--bg); background: var(--green); padding: .5em .8em; border-radius: 999px; vertical-align: middle; margin-left: .5rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 1.8em; position: relative; margin-bottom: .45em; }
.checklist li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.checklist li.todo::before { content: "…"; color: var(--muted); }

/* credits */
.credits small { display: block; color: var(--muted); font-size: .9rem; }
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .9rem; text-align: center; }

/* play pages */
.play-page { display: flex; flex-direction: column; min-height: 100vh; background-attachment: scroll; }
.play-bar { display: flex; align-items: center; gap: 1rem; padding: 10px clamp(12px, 2vw, 24px); border-bottom: 1px solid var(--line); background: rgba(10,15,28,.9); flex-wrap: wrap; }
.play-bar h1 { font-size: .75rem; margin: 0; color: var(--yellow); }
.play-bar h1 .v { color: var(--ink); } .play-bar h1 .year { color: var(--muted); font-family: var(--body); font-weight: 800; font-size: .95rem; margin-left: .4rem; }
.play-bar nav { margin-left: auto; display: flex; gap: 1rem; font-weight: 600; font-size: .92rem; }
.play-bar nav a { color: var(--ink); }
.play-bar .back { font-weight: 800; }
.play-main { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px) 40px; }
.dos-box { width: min(100%, 1100px); aspect-ratio: 4 / 3; max-height: calc(100vh - 150px); background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.play-hint { max-width: 900px; color: var(--muted); font-size: .95rem; text-align: center; }
.play-hint b { color: var(--ink); }
