/* Dead End: Escape — website styles */
:root {
  --ink: #1b1d3a;
  --ink-soft: #3a3f66;
  --sea: #19c3e6;
  --sea-deep: #0a8fc2;
  --sky: #bdf1ff;
  --sand: #f6dfa8;
  --sand-deep: #e9c57a;
  --sun: #ffd23f;
  --sun-deep: #f5a300;
  --leaf: #4cd04a;
  --leaf-deep: #23a12a;
  --coral: #ff5c6c;
  --purple: #8b5cf6;
  --paper: #fffaf0;
  --radius: 22px;
  --outline: 4px solid var(--ink);
  --shadow: 0 6px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, .chunky { font-family: "Lilita One", "Nunito", sans-serif; font-weight: 400; letter-spacing: .5px; line-height: 1.1; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Lilita One", sans-serif; font-size: 1.25rem; letter-spacing: .6px;
  text-decoration: none; text-transform: uppercase;
  padding: 14px 28px; border-radius: 999px;
  border: var(--outline); box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn-play { background: linear-gradient(#6ee36a, var(--leaf-deep)); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.btn-sun { background: linear-gradient(#ffe27a, var(--sun-deep)); color: var(--ink); }
.btn-discord { background: linear-gradient(#8f9bff, #5865f2); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.3); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-sm { font-size: 1rem; padding: 9px 18px; border-width: 3px; box-shadow: 0 4px 0 var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(#ffdc55, var(--sun-deep));
  border-bottom: var(--outline);
}
.nav { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 14px; border: 3px solid var(--ink); }
.brand span { font-family: "Lilita One", sans-serif; font-size: 1.35rem; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a {
  font-family: "Lilita One", sans-serif; font-size: 1.1rem; text-decoration: none; text-transform: uppercase;
  padding: 8px 14px; border-radius: 12px; color: var(--ink);
}
.nav-links a:hover { background: rgba(255,255,255,.45); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; background: #fff; border: 3px solid var(--ink); border-radius: 12px; width: 46px; height: 42px; box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 22px; height: 3px; background: var(--ink); border-radius: 2px; margin: 0 auto; position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero { position: relative; border-bottom: var(--outline); background: linear-gradient(var(--sea), var(--sea-deep)); }
.hero-art { display: block; width: 100%; aspect-ratio: 1794 / 876; max-height: 76vh; background: var(--sea) url("img/hero.jpg") left center / cover no-repeat; border-bottom: var(--outline); }
.hero-inner { position: relative; z-index: 1; max-width: 1200px; width: 100%; margin: 0 auto; padding: 24px 16px 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.hero-tag {
  background: #fff; border: var(--outline); box-shadow: var(--shadow); border-radius: var(--radius);
  padding: 16px 22px; max-width: 520px;
}
.hero-tag h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.hero-tag p { margin: 6px 0 0; font-weight: 700; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.gp-badge img { height: 64px; width: auto; }

/* ---------- Sections ---------- */
section { position: relative; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 72px 16px; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 {
  font-size: clamp(2rem, 5vw, 3.2rem); color: #fff;
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink);
}
.section-title p { margin: 12px auto 0; max-width: 640px; font-weight: 700; font-size: 1.1rem; color: var(--ink-soft); }
.on-dark .section-title p { color: #e7f7ff; }

.sea { background: linear-gradient(var(--sea), var(--sea-deep)); }
.sand { background: linear-gradient(var(--sand), var(--sand-deep)); }
.sun-bg { background: repeating-conic-gradient(from 0deg at 50% 50%, #ffcf3a 0 10deg, #ffc21a 10deg 20deg); }
.sea .section-title h2 { color: var(--sun); }

/* wavy edge */
.wave { display: block; width: 100%; height: 40px; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.intro-text { background: #fff; border: var(--outline); box-shadow: var(--shadow); border-radius: var(--radius); padding: 28px; }
.intro-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.intro-text p { font-size: 1.08rem; margin: 0 0 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.stat { text-align: center; background: var(--sky); border: 3px solid var(--ink); border-radius: 16px; padding: 10px 6px; }
.stat b { display: block; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.9rem; color: var(--sea-deep); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.stat span { font-weight: 800; font-size: .85rem; text-transform: uppercase; }
.phone { justify-self: center; width: min(280px, 70vw); aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border: 6px solid var(--ink); border-radius: 36px; overflow: hidden; box-shadow: 0 10px 0 var(--ink); transform: rotate(3deg); background: var(--ink); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.feature { background: #fff; border: var(--outline); box-shadow: var(--shadow); border-radius: var(--radius); padding: 22px; transition: transform .15s; }
.feature:hover { transform: translateY(-4px) rotate(-.5deg); }
.feature .ico { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; font-size: 30px; margin-bottom: 12px; box-shadow: 0 4px 0 var(--ink); }
.feature h3 { font-size: 1.45rem; margin-bottom: 6px; }
.feature p { margin: 0; font-weight: 600; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; scrollbar-color: var(--ink) transparent; }
.gallery img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border: var(--outline); border-radius: 20px; box-shadow: var(--shadow); scroll-snap-align: start; background: #fff; }
.gallery-hint { text-align: center; font-weight: 800; color: #e7f7ff; margin-top: 4px; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.news-card { background: #fff; border: var(--outline); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.news-card .tag { font-family: "Lilita One", sans-serif; background: var(--ink); color: var(--sun); padding: 8px 16px; font-size: 1rem; letter-spacing: .6px; }
.news-card .body { padding: 18px 18px 20px; }
.news-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.news-card ul { margin: 0; padding-left: 18px; font-weight: 600; color: var(--ink-soft); }
.news-card li { margin-bottom: 4px; }
.news-card.latest .tag { background: var(--coral); color: #fff; }

/* ---------- Community ---------- */
.community { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card-big { background: #fff; border: var(--outline); box-shadow: var(--shadow); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.card-big h3 { font-size: 1.9rem; }
.card-big p { margin: 0; font-weight: 600; color: var(--ink-soft); }
.card-big.discord { background: linear-gradient(#eef0ff, #dfe3ff); }

/* ---------- Press kit ---------- */
.press { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.press a { text-decoration: none; background: #fff; border: var(--outline); box-shadow: var(--shadow); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-weight: 800; transition: transform .12s; }
.press a:hover { transform: translateY(-3px); }
.press img { border-radius: 12px; border: 3px solid var(--ink); aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--sky); }
.press small { font-weight: 700; color: var(--ink-soft); }
.facts { margin-top: 26px; background: #fff; border: var(--outline); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 24px; }
.facts div { font-weight: 700; }
.facts b { display: block; font-family: "Lilita One", sans-serif; font-weight: 400; color: var(--sea-deep); font-size: 1.05rem; }

/* ---------- Download banner ---------- */
.download { text-align: center; }
.download .box { background: #fff; border: var(--outline); box-shadow: 0 8px 0 var(--ink); border-radius: 28px; padding: 36px 20px; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.download .box img.icon { width: 110px; height: 110px; border-radius: 26px; border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.download h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.download p { margin: 0; font-weight: 700; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd3ff; border-top: var(--outline); }
.site-footer .wrap { padding: 40px 16px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: #fff; font-weight: 800; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer small { display: block; color: #9aa0d0; margin-top: 6px; }

/* ---------- Legal pages ---------- */
.legal-hero { background: linear-gradient(var(--sea), var(--sea-deep)); border-bottom: var(--outline); padding: 46px 16px 40px; text-align: center; }
.legal-hero h1 { font-size: clamp(2rem, 6vw, 3rem); color: var(--sun); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
.legal-hero p { color: #e7f7ff; font-weight: 800; margin: 10px 0 0; }
.legal { max-width: 820px; margin: -20px auto 60px; padding: 0 16px; position: relative; }
.legal article { background: #fff; border: var(--outline); box-shadow: var(--shadow); border-radius: var(--radius); padding: 28px clamp(18px, 4vw, 40px); }
.legal h2 { font-size: 1.5rem; margin: 28px 0 8px; color: var(--sea-deep); }
.legal h2:first-of-type { margin-top: 10px; }
.legal a { color: var(--sea-deep); font-weight: 700; }
.legal li { margin-bottom: 4px; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .bob { animation: bob 3.2s ease-in-out infinite; }
  @keyframes bob { 0%,100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-10px); } }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .intro-grid, .community { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: #fff; border-bottom: var(--outline); padding: 10px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 1.25rem; }
  .menu-toggle { display: block; }
  .nav .btn { display: none; }
  .hero-art { background-image: url("img/hero_sm.jpg"); }
  .hero-inner { padding: 22px 16px 28px; justify-content: center; }
  .hero-cta { justify-content: center; width: 100%; }
}
@media (max-width: 600px) {
  .wrap { padding: 52px 16px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat b { font-size: 1.5rem; }
  .brand span { font-size: 1.1rem; }
  .btn { font-size: 1.05rem; padding: 12px 20px; }
}
