:root {
  --ink: #f2e6cf; --dim: #cbb391; --amber: #ffcf6e; --rust: #ff8a3c;
  --deep: #14102b; --panel: #1e1740; --line: rgba(255, 190, 90, .28);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--deep); color: var(--ink); font-family: "Segoe UI", system-ui, sans-serif; }

#topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center;
  justify-content: space-between; padding: 14px 22px;
  background: rgba(20, 16, 43, .9); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); }
.logo { letter-spacing: .28em; font-weight: 800; color: var(--amber); }
.nav-play { color: var(--ink); text-decoration: none; border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 9px; letter-spacing: .1em; font-size: 14px; }
.nav-play:hover { background: rgba(255, 160, 70, .18); }

#hero { position: relative; height: min(88vh, 760px); min-height: 520px; overflow: hidden;
  border-bottom: 1px solid var(--line); }
#hero-preview { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#hero-text { position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; padding: 0 7vw; pointer-events: none;
  background: linear-gradient(100deg, rgba(14, 10, 32, .82) 25%, transparent 70%); }
#hero-text h1 { font-size: clamp(48px, 11vw, 110px); letter-spacing: .1em; line-height: 1;
  color: var(--amber); text-shadow: 0 0 40px rgba(255, 130, 50, .55), 0 4px 0 rgba(0,0,0,.35); }
.tagline { margin-top: 12px; font-size: clamp(15px, 2.4vw, 22px); color: var(--dim);
  font-style: italic; max-width: 28ch; }
#play-now, #play-now-2 { pointer-events: auto; display: inline-block; margin-top: 26px;
  padding: 16px 40px; font-size: 18px; font-weight: 800; letter-spacing: .14em;
  color: #241300; text-decoration: none; border-radius: 14px;
  background: linear-gradient(180deg, #ffd97a, #ff8a3c);
  box-shadow: 0 6px 30px rgba(255, 140, 60, .45); }
#play-now:hover, #play-now-2:hover { filter: brightness(1.15); transform: translateY(-2px); }
.hint { margin-top: 14px; font-size: 12.5px; color: var(--dim); letter-spacing: .06em; }

main { max-width: 1060px; margin: 0 auto; padding: 30px 22px 10px; }
main section { margin: 54px 0; }
h2 { font-size: clamp(24px, 4vw, 34px); color: var(--amber); letter-spacing: .06em;
  margin-bottom: 18px; border-left: 4px solid var(--rust); padding-left: 14px; }
#about p { line-height: 1.9; color: var(--dim); max-width: 62ch; }
#about b { color: var(--ink); }

#gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
#gallery figure { background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; }
#gallery img { width: 100%; display: block; aspect-ratio: 8/5; object-fit: cover; }
#gallery figcaption { padding: 10px 12px; font-size: 13px; color: var(--dim); }

#features { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px; }
#features li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; font-size: 14.5px; line-height: 1.55; color: var(--dim); }

#controls { display: grid; gap: 10px; }
.ctl { background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; font-size: 14.5px; color: var(--dim); }
.keys { display: inline-block; min-width: 108px; color: var(--amber); font-weight: 700;
  letter-spacing: .06em; margin-right: 10px; }
.goal { margin-top: 14px; line-height: 1.9; color: var(--dim); }
.goal b { color: var(--amber); }
#play-section { text-align: center; }
#play-section #controls { text-align: left; }

footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 26px 20px 34px;
  text-align: center; color: #91806a; font-size: 13px; }

@media (max-width: 640px) {
  #hero { height: auto; min-height: 0; }
  #hero-preview { position: relative; height: 300px; width: 100%; }
  #hero-text { position: static; padding: 22px; background: none; align-items: center;
    text-align: center; }
  .tagline { max-width: 34ch; }
  .ctl .keys { min-width: 92px; }
}
