@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Plus+Jakarta+Sans:wght@400;500;700&display=swap');

:root {
  --sea: #0e3d66;
  --foam: #ecf9ff;
  --sky: #b8ebff;
  --wave: #36a4d7;
  --deep: #06304d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #093555;
  background: linear-gradient(180deg, #e8f7ff 0%, #d7f1ff 45%, #effaff 100%);
}

.shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(236,249,255,0.92);
  border-bottom: 1px solid rgba(6,48,77,0.14);
  backdrop-filter: blur(10px);
}

.top {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand {
  text-decoration: none;
  color: var(--deep);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Marcellus', serif;
  font-size: 1.08rem;
}

.brand img { width: 34px; height: 34px; }

.fill { flex: 1; }

.menu-btn {
  display: none;
  border: 1px solid rgba(6,48,77,0.26);
  background: #f4fcff;
  color: var(--deep);
  border-radius: 999px;
  padding: 0.35rem 0.78rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
}

nav a {
  text-decoration: none;
  color: var(--deep);
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
}

nav a:hover { background: rgba(54,164,215,0.17); }

.hero {
  padding: 2.2rem 0 1rem;
}

.card {
  border: 1px solid rgba(6,48,77,0.16);
  border-radius: 22px;
  background: linear-gradient(135deg, #f6fdff 0%, #d8f3ff 100%);
  padding: 1.45rem;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  left: -8%;
  bottom: -70px;
  width: 120%;
  height: 140px;
  background: rgba(54,164,215,0.2);
  border-radius: 50% 50% 0 0;
}

.hero h1 {
  margin: 0;
  font-family: 'Marcellus', serif;
  color: #0a3f63;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero p { max-width: 72ch; }

.chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips span {
  background: #0e3d66;
  color: #effaff;
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  font-weight: 700;
  font-size: 0.86rem;
}

.grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 1rem;
  padding-bottom: 2.4rem;
}

.game {
  border: 1px solid rgba(6,48,77,0.18);
  border-radius: 20px;
  background: #04263d;
  padding: 0.72rem;
}

.game iframe {
  width: 100%;
  min-height: 680px;
  border: 0;
  border-radius: 12px;
}

.stack {
  display: grid;
  gap: 0.8rem;
}

.panel {
  border: 1px solid rgba(6,48,77,0.15);
  border-radius: 14px;
  background: #f6fdff;
  padding: 0.95rem;
}

.panel h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--sea);
}

.docs {
  padding: 2rem 0 3rem;
}

.sheet {
  max-width: 980px;
  border: 1px solid rgba(6,48,77,0.18);
  border-radius: 18px;
  background: #f8fdff;
  padding: 1.35rem;
}

.sheet h1 {
  margin-top: 0;
  color: var(--sea);
  font-family: 'Marcellus', serif;
}

footer { border-top: 1px solid rgba(6,48,77,0.14); }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 1rem 0 1.45rem;
}

.foot a { color: #0d6a95; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(4, 31, 50, 0.82);
  padding: 1rem;
}

.gate.hidden { display: none; }

.gate-card {
  width: min(520px, 100%);
  border: 1px solid rgba(184,235,255,0.45);
  border-radius: 16px;
  background: #edf9ff;
  padding: 1.1rem;
}

.gate-row {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.6rem;
}

.gate-row button {
  border: 0;
  border-radius: 8px;
  padding: 0.52rem 0.8rem;
  font-weight: 700;
}

.gate-row .yes { background: #0d6a95; color: #fff; }
.gate-row .no { background: #c6e7f6; color: #0e3d66; }

@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .top { flex-wrap: wrap; }
  nav {
    display: none;
    width: 100%;
    border-top: 1px solid rgba(6,48,77,0.15);
    padding-top: 0.5rem;
  }
  nav.on { display: block; }
  nav ul { flex-direction: column; }
  .game iframe { min-height: 470px; }
}