/* ============================================================
   Level Devil - playleveldevil.com
   Shared stylesheet
   Palette matches the official game: warm yellow / orange / red
   with a deep brown base.
   ============================================================ */

:root {
  --bg: #1a0906;
  --bg-elev: #2c0e0a;
  --bg-card: #3d1610;
  --bg-soft: #4a1a0c;
  --border: #6b2a1f;
  --border-strong: #8b3826;
  --text: #f5e4c0;
  --text-muted: #c5a07c;
  --text-dim: #8b6c52;
  --accent: #c73626;
  --accent-hot: #e84a3a;
  --accent-deep: #8b1e1e;
  --yellow: #f4c20d;
  --yellow-soft: #f8d550;
  --yellow-deep: #d4a508;
  --orange: #e89240;
  --hero-bg: #f4c20d;
  --shadow-lg: 0 30px 60px -20px rgba(199, 54, 38, 0.4);
  --shadow-md: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-yellow: 0 18px 40px -10px rgba(244, 194, 13, 0.5);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --font-display: 'Lilita One', 'Bowlby One', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--yellow); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--yellow-soft); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

section { padding: 96px 0; position: relative; z-index: 2; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 9, 6, 0.85);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 2px solid var(--accent-deep);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.03em;
  color: var(--text);
  text-transform: uppercase;
}

.brand-mark {
  border-radius: 6px;
  display: block;
  box-shadow: 0 4px 14px rgba(244, 194, 13, 0.35);
  flex-shrink: 0;
  image-rendering: pixelated;
}

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

.site-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav a:hover { color: var(--yellow); }

.site-nav .btn { margin-left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 3px solid var(--accent-deep);
  border-bottom-width: 5px;
  cursor: pointer;
  transition: transform .1s ease, background .15s ease, border-color .15s ease;
}

.btn:hover { background: var(--accent-hot); color: #fff; border-color: var(--accent); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); border-bottom-width: 3px; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover { background: var(--bg-elev); border-color: var(--text-muted); color: var(--text); }

.btn-yellow {
  background: var(--yellow);
  color: #2c0e0a;
  border-color: var(--yellow-deep);
}

.btn-yellow:hover { background: var(--yellow-soft); border-color: var(--yellow); color: #2c0e0a; }

.btn-lg { padding: 16px 32px; font-size: 17px; border-bottom-width: 6px; }

/* ---------- Hero (signature yellow section) ---------- */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  color: #2c0e0a;
  border-bottom: 4px solid var(--accent-deep);
}

/* Pixel ground silhouette at the bottom of the hero */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 24' preserveAspectRatio='none'><path d='M0,24 L0,12 L8,12 L8,8 L16,8 L16,4 L24,4 L24,8 L32,8 L32,12 L40,12 L40,8 L48,8 L48,16 L56,16 L56,12 L64,12 L64,8 L72,8 L72,12 L80,12 L80,24 Z' fill='%238b1e1e'/></svg>");
  background-size: 240px 24px;
  background-repeat: repeat-x;
  pointer-events: none;
}

/* Decorative pixel dots scattered in hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 232, 114, 0.7) 2px, transparent 2.5px),
    radial-gradient(circle, rgba(255, 232, 114, 0.5) 2px, transparent 2.5px);
  background-size: 80px 80px, 120px 120px;
  background-position: 10px 20px, 60px 50px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #2c0e0a;
  color: var(--yellow);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 2px solid #2c0e0a;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 13vw, 168px);
  line-height: 0.85;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #2c0e0a;
  margin-bottom: 24px;
  text-shadow:
    4px 4px 0 #8b1e1e,
    8px 8px 0 rgba(0,0,0,0.15);
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
  text-shadow:
    4px 4px 0 #2c0e0a,
    8px 8px 0 rgba(0,0,0,0.15);
}

.hero-tagline {
  font-size: clamp(18px, 2vw, 22px);
  color: #2c0e0a;
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 500;
}

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

.hero-meta {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: #5c2010;
  font-size: 13px;
  font-weight: 500;
}

.hero-meta strong { color: #2c0e0a; font-weight: 700; }

.hero-art {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid #2c0e0a;
  box-shadow: 8px 8px 0 #8b1e1e, 16px 16px 0 rgba(0,0,0,0.1);
  background: var(--bg);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: pixelated;
}

/* ---------- Section headings ---------- */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--text);
}

.section-heading h2 em {
  font-style: normal;
  color: var(--accent-hot);
}

.section-heading p {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  font-size: 17px;
}

/* ---------- Trailer ---------- */
.trailer-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--accent-deep);
  background: #000;
  box-shadow: var(--shadow-md);
}

.trailer-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  transition: transform .15s ease, border-color .15s ease;
  border-bottom-width: 6px;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--yellow);
  border: 3px solid var(--yellow-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: #2c0e0a;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--yellow);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Screenshots ---------- */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.shot {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 3px solid var(--border);
  background: var(--bg-card);
  transition: transform .2s ease, border-color .2s ease;
  position: relative;
  cursor: pointer;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: pixelated;
}

.shot:hover {
  transform: scale(1.02);
  border-color: var(--yellow);
}

/* ---------- Mobile / CTA strip ---------- */
.cta-strip {
  background: var(--yellow);
  color: #2c0e0a;
  border: 4px solid #2c0e0a;
  border-bottom-width: 8px;
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.07) 2px, transparent 2.5px);
  background-size: 40px 40px;
  pointer-events: none;
}

.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #2c0e0a;
  position: relative;
  z-index: 1;
  text-shadow: 3px 3px 0 var(--accent);
}

.cta-strip p {
  color: #5c2010;
  max-width: 520px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border: 3px solid #2c0e0a;
  border-bottom-width: 5px;
  border-radius: 10px;
  background: #2c0e0a;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: transform .1s ease, background .15s ease;
}

.store-badge:hover { background: var(--accent-deep); color: var(--text); transform: translateY(-1px); }

.store-badge-icon {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--yellow);
}

.store-badge-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge-text small { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 4px solid var(--accent-deep);
  padding: 48px 0 32px;
  margin-top: 48px;
  position: relative;
  z-index: 2;
  background: #100503;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text); font-size: 14px; font-weight: 500; }
.footer-col a:hover { color: var(--yellow); }

.footer-blurb { color: var(--text-muted); font-size: 14px; max-width: 320px; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------- Legal pages ---------- */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 24px 72px;
  position: relative;
  z-index: 2;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--yellow);
}

.legal-page .updated {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 32px 0 12px;
  color: var(--text);
}

.legal-page p, .legal-page li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-page ul, .legal-page ol { padding-left: 24px; margin-bottom: 12px; }

.legal-page .placeholder-note {
  background: rgba(244, 194, 13, 0.1);
  border: 2px solid var(--yellow-deep);
  color: var(--yellow);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 32px;
  font-weight: 500;
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 96px 24px;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 240px);
  line-height: 0.9;
  color: var(--yellow);
  text-shadow: 6px 6px 0 var(--accent);
}

/* ---------- Play page (the iframe target) ---------- */
.play-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #000;
}

.play-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(26, 9, 6, 0.95);
  border-bottom: 2px solid var(--accent-deep);
  font-size: 13px;
  color: var(--text-muted);
}

.play-topbar .brand { font-size: 18px; }
.play-topbar a { color: var(--text-muted); }
.play-topbar a:hover { color: var(--yellow); }

.play-stage {
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--bg);
}

.play-placeholder {
  text-align: center;
  padding: 40px;
  max-width: 560px;
  color: var(--text-muted);
}

.play-placeholder h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 88px);
  color: var(--yellow);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 4px 4px 0 var(--accent);
}

.play-placeholder .tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--yellow);
  color: #2c0e0a;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .hero { padding: 80px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { aspect-ratio: 3/4; max-width: 360px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; }
  .shots-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-strip { padding: 40px 24px; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.btn) { display: none; }
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: clamp(56px, 16vw, 88px); }
  .hero-meta { gap: 16px; }
}
