:root {
  --sea-deep: #071824;
  --sea-mid: #0c2c3f;
  --sea-foam: #7ec8c8;
  --sea-glow: #1a5a6e;
  --parchment: #e6d1a3;
  --ink: #e8eef2;
  --muted: #9bb0bc;
  --gold: #d4b46a;
  --ember: #e07a4c;
  --stone: #8a7a64;
  --panel: rgba(8, 28, 40, 0.72);
  --line: rgba(212, 180, 106, 0.28);
  --radius: 6px;
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(26, 90, 110, 0.45), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(12, 44, 63, 0.9), transparent 55%),
    linear-gradient(180deg, #041018 0%, var(--sea-deep) 40%, #0a2030 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sea-foam);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus {
  left: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  backdrop-filter: blur(10px);
  background: rgba(4, 16, 24, 0.78);
  border-bottom: 1px solid var(--line);
}

.brand picture {
  display: block;
  width: 140px;
}
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 0.35rem 0.55rem;
}

.nav-link.is-active,
.nav-link:hover {
  color: var(--parchment);
}

.nav-play {
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: var(--radius);
}

.hero,
.lb-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.lb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 16, 24, 0.35), rgba(4, 16, 24, 0.82)),
    var(--hero-image, none) center / cover no-repeat,
    radial-gradient(ellipse at 50% 70%, var(--sea-glow), transparent 55%);
  z-index: -2;
  transform: scale(1.02);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-veil,
.lb-hero .hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(4, 16, 24, 0.92)),
    radial-gradient(circle at 50% 100%, rgba(126, 200, 200, 0.12), transparent 45%);
  z-index: -1;
  pointer-events: none;
}

@keyframes drift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.06) translateY(-1.5%); }
}

.hero-inner,
.lb-hero-inner {
  width: min(100% - 2rem, 720px);
  text-align: center;
  padding: 4rem 0 3rem;
  animation: rise 0.9s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: min(100%, 520px);
  margin: 0 auto 1rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}
.hero-inner picture {
  display: block;
  margin: 0 auto 1rem;
}
.hero-inner picture .hero-logo {
  margin: 0 auto;
}

.hero-tagline {
  margin: 0 auto 0.85rem;
  max-width: 34rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: 0.03em;
  color: var(--parchment);
}

.hero-pitch,
.lb-hero-inner p {
  margin: 0 auto 1.5rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #f0d9a0, var(--gold));
  color: #1a1208;
  box-shadow: 0 8px 24px rgba(212, 180, 106, 0.25);
}

.btn-primary:hover {
  color: #1a1208;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(126, 200, 200, 0.45);
  color: var(--sea-foam);
}

.btn-steam {
  background: #1b2838;
  border-color: #66c0f4;
  color: #66c0f4;
}

.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.section-head h1,
.section-head h2,
.lb-hero-inner h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.55rem;
  color: var(--parchment);
}

.section-head p,
.muted {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.shot-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .shot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shot {
  margin: 0;
  animation: rise 0.7s ease both;
  animation-delay: var(--d, 0ms);
}

.shot picture,
.shot img {
  display: block;
  width: 100%;
}

.shot img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--sea-mid);
}

.shot figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.phone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.phone-frame {
  margin: 0;
  width: min(100%, 260px);
  text-align: center;
}

.phone-bezel {
  padding: 0.55rem;
  border-radius: 1.35rem;
  background: linear-gradient(160deg, #1a2430, #0a1218);
  border: 1px solid rgba(212, 180, 106, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.phone-bezel::before {
  content: "";
  display: block;
  width: 28%;
  height: 0.28rem;
  margin: 0.15rem auto 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.phone-screen,
.phone-bezel img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 0.55rem;
  display: block;
  background: var(--sea-mid);
}

.phone-frame figcaption {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.video-frame {
  border: 1px solid var(--line);
  background: #02080c;
  overflow: hidden;
}

.gameplay-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #02080c;
}

.prose {
  max-width: 42rem;
  color: var(--ink);
  line-height: 1.65;
}
.prose p {
  margin: 0 0 1rem;
}
.prose p:last-child {
  margin-bottom: 0;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 800px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}
.feature-list li {
  position: relative;
  padding: 0.85rem 0.95rem 0.85rem 1.85rem;
  background: rgba(4, 16, 24, 0.45);
  border: 1px solid rgba(126, 200, 200, 0.12);
  line-height: 1.45;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 1.15rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--gold);
}
.coming-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.5;
}

.diff-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .diff-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.diff-card {
  margin: 0;
  padding: 1.15rem 1.2rem;
  background: rgba(4, 16, 24, 0.5);
  border: 1px solid var(--line);
}
.diff-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  color: var(--parchment);
  letter-spacing: 0.04em;
}
.diff-card p,
.diff-shared {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.diff-shared {
  margin-top: 1.15rem;
  max-width: 48rem;
}

.steam-panel {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid rgba(102, 192, 244, 0.28);
  border-radius: 4px;
  align-items: center;
}

@media (min-width: 860px) {
  .steam-panel {
    grid-template-columns: auto 1fr auto;
  }
}

.steam-badge {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background: linear-gradient(160deg, #1b2838, #171a21);
  border: 2px solid #66c0f4;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.35rem;
}

.steam-mark {
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #c7d5e0;
  font-size: 0.95rem;
}

.steam-soon {
  color: #66c0f4;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.steam-copy h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  color: var(--parchment);
}

.steam-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 36rem;
}

.steam-capsule,
.steam-panel picture {
  width: min(100%, 280px);
  display: block;
}
.steam-capsule {
  border-radius: 2px;
  border: 1px solid rgba(102, 192, 244, 0.2);
}

.coming-soon-pill {
  display: inline-block;
  margin: 0;
  padding: 0.55rem 1rem;
  border: 1px dashed var(--line);
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  background: linear-gradient(180deg, transparent, rgba(2, 10, 16, 0.95));
}

.footer-links {
  margin-top: 0.75rem;
}

.lb-hero {
  min-height: 42vh;
}

.lb-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
}

.seg-btn.is-active {
  background: rgba(212, 180, 106, 0.18);
  color: var(--parchment);
}

.lb-meta {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(4, 16, 24, 0.55);
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.lb-table th,
.lb-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(126, 200, 200, 0.12);
}

.lb-table th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.25);
}

.lb-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.lb-table tbody tr:hover {
  background: rgba(126, 200, 200, 0.06);
}

.admin-auth {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.admin-auth label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-auth input,
.admin-table input {
  background: #041018;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  font: inherit;
  min-width: 220px;
}

.admin-actions {
  margin-bottom: 0.75rem;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-row-actions button {
  font-size: 0.8rem;
  padding: 0.35rem 0.55rem;
}

@media (max-width: 640px) {
  .topbar {
    padding: 0.55rem 0.85rem;
  }
  .brand picture,
  .brand-logo {
    width: 110px;
  }
  .nav-link {
    font-size: 0.72rem;
    padding: 0.3rem 0.4rem;
  }
  .hero-inner {
    padding-top: 3rem;
  }
  .btn {
    width: 100%;
  }
  .hero-ctas {
    flex-direction: column;
  }
}
