/* DiveyFish website. Deep-ocean dark with the game's bright pixel colours. */
:root {
  --ink: #eaf6ff;
  --ink-soft: #b5cfe6;
  --ink-dim: #7f9dba;
  --deep: #061a33;
  --deep-2: #0a2a52;
  --deep-3: #0e3768;
  --sea: #2f93df;
  --sky: #7fd3ff;
  --yellow: #ffd23f;
  --yellow-dark: #e0a800;
  --coral: #ff5d5d;
  --coral-dark: #c93a3a;
  --mint: #5ff2c8;
  --card: rgba(255, 255, 255, 0.055);
  --card-line: rgba(255, 255, 255, 0.11);
  --radius: 20px;
  --font-head: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-pixel: 'Silkscreen', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.lead { font-size: 1.15rem; color: var(--ink); opacity: 0.9; }
.eyebrow {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.9rem;
}
.hl-yellow { color: var(--yellow); }
.hl-coral { color: var(--coral); }

.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
/* (Jumping to a section from the menu: its heading lands below the bar, not under it.) */
section[id] { scroll-margin-top: 64px; }
.section-head { max-width: 720px; margin-bottom: 48px; }

/* ---- Buttons ---------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  padding: 14px 26px;
  border-radius: 14px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-yellow { background: var(--yellow); color: #3a2a00; box-shadow: 0 5px 0 var(--yellow-dark), 0 12px 30px rgba(255, 210, 63, 0.25); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 5px 0 var(--coral-dark), 0 12px 30px rgba(255, 93, 93, 0.25); }
.btn-yellow:hover, .btn-coral:hover { transform: translateY(-2px); }
.btn-yellow:active, .btn-coral:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--yellow-dark); }
.btn-coral:active { box-shadow: 0 2px 0 var(--coral-dark); }
.btn-ghost { background: rgba(6, 26, 51, 0.35); color: #fff; border: 2px solid rgba(255, 255, 255, 0.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-small { padding: 9px 16px; font-size: 0.95rem; border-radius: 11px; box-shadow: 0 4px 0 var(--yellow-dark); white-space: nowrap; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--yellow); outline-offset: 3px;
}

/* ---- Navigation ------------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.nav.scrolled { background: rgba(6, 26, 51, 0.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--card-line); padding-top: 10px; padding-bottom: 10px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; opacity: 0; transition: opacity 0.25s ease; }
.nav.scrolled .nav-brand { opacity: 1; }
.nav-logo { width: 118px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: #fff; opacity: 0.85; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3); }
.nav-links a:hover { opacity: 1; color: var(--yellow); }
@media (max-width: 900px) { .nav-links { display: none; } .nav .btn-small { margin-left: auto; } }

/* ---- Phone menu ------------------------------------------------------------------------------- */
.nav-toggle {
  display: none; position: relative; flex: none;
  width: 48px; height: 48px; padding: 0; margin-left: -8px; cursor: pointer;
  border: 0; background: none;
}
.nav-toggle span {
  position: absolute; left: 9px; width: 30px; height: 3px; border-radius: 3px; background: #fff;
  box-shadow: 0 1px 6px rgba(6, 26, 51, 0.35);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 31px; }
.menu-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
@media (max-width: 900px) { .nav-toggle { display: block; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
  padding: 90px 16px 40px;
  background: rgba(6, 26, 51, 0.5);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.8rem, 8vw, 2.4rem);
  color: #fff; text-decoration: none; padding: 6px 18px; border-radius: 14px;
  text-shadow: 0 2px 14px rgba(6, 26, 51, 0.45);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease;
}
.mobile-menu nav a:hover, .mobile-menu nav a:focus-visible { color: var(--yellow); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.mobile-menu nav a:nth-child(2) { transition-delay: 0.03s; }
.mobile-menu nav a:nth-child(3) { transition-delay: 0.06s; }
.mobile-menu nav a:nth-child(4) { transition-delay: 0.09s; }
.mobile-menu nav a:nth-child(5) { transition-delay: 0.12s; }
.mobile-menu nav a:nth-child(6) { transition-delay: 0.15s; }
.mobile-menu nav a:nth-child(7) { transition-delay: 0.18s; }
body.menu-open { overflow: hidden; }
/* (While the menu is open the bar is see-through, so the blur reaches the top.) */
.menu-open .nav, .menu-open .nav.scrolled { background: transparent; box-shadow: none; backdrop-filter: none; }
@media (min-width: 901px) { .mobile-menu { display: none; } }

/* ---- Hero ------------------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 75vh; min-height: 460px;
  overflow: hidden;
  background: #56b8f2;
}
#sim { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 46%, rgba(6, 26, 51, 0.38), transparent 70%),
    linear-gradient(to bottom, transparent 70%, rgba(6, 26, 51, 0.55));
}
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 16px 40px;
  pointer-events: none;
}
.hero-content a { pointer-events: auto; }
.hero-logo {
  width: clamp(240px, 40vw, 560px);
  filter: drop-shadow(0 6px 0 rgba(6, 26, 51, 0.35)) drop-shadow(0 18px 30px rgba(6, 26, 51, 0.35));
  animation: bob 3.2s ease-in-out infinite;
}
.hero-tagline {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: #fff; margin: 22px 0 28px;
  text-shadow: 0 2px 0 rgba(6, 26, 51, 0.45), 0 4px 18px rgba(6, 26, 51, 0.5);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 28px; height: 44px; border: 2px solid rgba(255,255,255,0.7); border-radius: 16px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrolldot 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---- About ------------------------------------------------------------------------------------ */
.about { background: linear-gradient(to bottom, var(--deep), var(--deep-2)); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.feature-list li { color: var(--ink-soft); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-pixel); font-size: 0.78rem; letter-spacing: 0.04em;
  background: rgba(127, 211, 255, 0.12); color: var(--sky);
  border: 1px solid rgba(127, 211, 255, 0.3);
  padding: 3px 10px; border-radius: 8px;
}
.about-phone { position: relative; height: 560px; }
.about-phone .phone { position: absolute; width: 56%; }
.about-phone .tilt-left { left: 4%; top: 0; transform: rotate(-6deg); z-index: 2; }
.about-phone .tilt-right { right: 4%; top: 60px; transform: rotate(5deg); }

.phone {
  margin: 0;
  border-radius: 28px;
  padding: 8px;
  background: linear-gradient(160deg, #24476f, #0d2343);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 30px 60px rgba(0, 0, 0, 0.45);
}
.phone img { border-radius: 21px; width: 100%; aspect-ratio: 1170 / 2532; object-fit: cover; }
.phone figcaption { font-family: var(--font-head); font-weight: 600; text-align: center; padding: 10px 0 4px; color: var(--ink); }

.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 96px 0 24px; }
.gallery-head h3 { font-size: 1.8rem; margin: 0; }
.gallery-head p { margin: 0; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
  gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 24px;
  scrollbar-width: thin; scrollbar-color: var(--deep-3) transparent;
}
.gallery .phone { scroll-snap-align: start; transition: transform 0.25s ease; }
.gallery .phone:hover { transform: translateY(-6px); }

.videos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 22px; height: clamp(320px, 38vw, 520px); }
.video-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--deep-3); border: 1px solid var(--card-line); }
.video-card:first-child { grid-row: span 2; }
.video-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; filter: saturate(1.1); transition: transform 0.4s ease; }
.video-card:hover img { transform: scale(1.04); }
.video-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 20px; gap: 6px;
  background: linear-gradient(to top, rgba(6, 26, 51, 0.85), rgba(6, 26, 51, 0.05) 60%);
}
.play {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.play::after { content: ''; position: absolute; left: 29px; top: 22px; border-left: 22px solid var(--deep-2); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video-title { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; }
.soon, .badge {
  font-family: var(--font-pixel); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--yellow); color: #3a2a00; padding: 3px 9px; border-radius: 7px;
}

/* ---- Levels ----------------------------------------------------------------------------------- */
.levels { background: var(--deep-2); }
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.level-card {
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.level-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--accent); }
.level-art { position: relative; height: 210px; overflow: hidden; }
.level-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.level-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 42, 82, 0.7), transparent 55%); }
.level-num {
  position: absolute; left: 16px; bottom: 12px; z-index: 1;
  font-family: var(--font-pixel); font-size: 2.2rem; line-height: 1; color: #fff;
  text-shadow: 3px 3px 0 var(--accent);
}
.level-body { padding: 22px 22px 24px; }
.level-body h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tags { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.soon-art { display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, #145f8c, #07203d); }
.soon-art img { width: 104px; height: auto; object-fit: contain; filter: brightness(0) invert(0.75) sepia(1) hue-rotate(110deg) saturate(3); opacity: 0.55; animation: bob 2.6s ease-in-out infinite; }
.level-soon { border-style: dashed; }

/* ---- Hats & costumes -------------------------------------------------------------------------- */
.hats { background: linear-gradient(to bottom, var(--deep-2), var(--deep)); }
.hat-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px;
  grid-auto-flow: dense;
}
.hat {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 22px 10px 18px;
  font: inherit; color: inherit; cursor: pointer;
  background: var(--card); border: 1px solid var(--card-line); border-radius: 18px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hat:hover { transform: translateY(-4px) rotate(-1.5deg); background: rgba(255, 255, 255, 0.09); }
.hat.selected { border-color: var(--yellow); background: rgba(255, 210, 63, 0.1); box-shadow: 0 0 0 1px var(--yellow), 0 12px 30px rgba(255, 210, 63, 0.15); }
.hat img { width: 75px; height: 75px; margin-bottom: 8px; transition: transform 0.25s ease; }
.hat:hover img { transform: scale(1.12) translateY(-3px); }
.hat b { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.hat span { font-size: 0.8rem; color: var(--ink-dim); }

/* The two preview cards: 2 x 2 each, stacked on the right of the hats. */
.hat-preview {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  padding: 26px 18px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 210, 63, 0.35);
  overflow: hidden;
}
.preview-award { grid-column: -3 / -1; grid-row: 1 / span 2; background: radial-gradient(circle at 50% 42%, rgba(255, 210, 63, 0.22), rgba(255, 255, 255, 0.04) 62%), var(--deep-3); }
.preview-fish { grid-column: -3 / -1; grid-row: 3 / span 2; background: linear-gradient(to bottom, #56b8f2, #2683d2 75%, #1f73c2); border-color: rgba(127, 211, 255, 0.45); }
.preview-fish::before { content: ''; position: absolute; left: 0; right: 0; top: 18%; height: 3px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.9) 0 8px, transparent 8px 12px); opacity: 0.6; }
.preview-label {
  position: absolute; top: 14px; left: 16px;
  font-family: var(--font-pixel); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky);
}
.preview-fish .preview-label { color: #fff; opacity: 0.9; }
#preview-award { position: relative; width: min(150px, 60%); aspect-ratio: 1; margin: 10px 0 6px; animation: popin 0.35s ease; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); }
.preview-award b { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; }
.preview-award span:last-child { font-size: 0.85rem; color: var(--ink-soft); }
#preview-fish { width: 82%; max-width: 240px; height: auto; aspect-ratio: 48 / 38; animation: swim 2.4s ease-in-out infinite; filter: drop-shadow(0 10px 12px rgba(6, 26, 51, 0.35)); }
#preview-costume { font-family: var(--font-head); font-weight: 600; color: #fff; text-shadow: 0 2px 6px rgba(6, 26, 51, 0.5); }
.award-stack img { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes popin { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

.costumes {
  margin-top: 72px; padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(47, 147, 223, 0.22), rgba(255, 93, 93, 0.12));
  border: 1px solid var(--card-line);
  display: grid; grid-template-columns: 0.9fr 1.6fr; gap: 32px; align-items: center;
}
.costumes h3 { font-size: 1.9rem; }
.costume-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.costume {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px 12px;
  font: inherit; color: inherit; cursor: pointer;
  border-radius: 16px; background: rgba(6, 26, 51, 0.35); border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.costume:hover { background: rgba(6, 26, 51, 0.55); transform: translateY(-3px); }
.costume.selected { border-color: var(--yellow); background: rgba(255, 210, 63, 0.12); }
.costume img { width: 104px; height: 56px; object-fit: contain; animation: swim 2.4s ease-in-out infinite; }
.costume:nth-child(2n) img { animation-delay: -1.2s; }
.costume:nth-child(3n) img { animation-delay: -0.6s; }
.costume span { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; }
.costume.glow img { filter: drop-shadow(0 0 10px rgba(255, 120, 220, 0.9)); }
@keyframes swim { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-4deg); } }

/* ---- Versus ----------------------------------------------------------------------------------- */
.versus { background: radial-gradient(ellipse at 20% 30%, #12407a, var(--deep) 60%); overflow: hidden; }
.versus-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.versus-art {
  position: relative; border-radius: 28px; padding: 36px 28px 28px;
  background: linear-gradient(to bottom, #56b8f2, #1f73c2 70%, #16579e);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.versus-art::before { content: ''; position: absolute; left: 0; right: 0; top: 22px; height: 3px; background: repeating-linear-gradient(90deg, #fff 0 10px, transparent 10px 14px); opacity: 0.85; }
.vs-lane { position: relative; height: 92px; }
/* Each racer swims back and forth, clear of the VS on the right. Its speed line starts at a fixed point on the left
   and stretches to the racer's tail, so it grows and shrinks as the racer moves (same timing as the racer). */
.racer { position: absolute; top: 50%; left: 30%; display: flex; align-items: center; transform: translateY(-50%); animation: race 3.6s ease-in-out infinite; }
.racer img { width: 104px; position: relative; }
.lane-2 .racer, .lane-2 .trail { animation-delay: -1.8s; }
.lane-2 img { opacity: 0.55; filter: grayscale(0.2); }
.trail { position: absolute; left: 0; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75)); border-radius: 2px; animation: trail 3.6s ease-in-out infinite; }
@keyframes race { 0%, 100% { left: 16%; } 50% { left: 62%; } }
@keyframes trail { 0%, 100% { width: calc(16% + 12px); } 50% { width: calc(62% + 12px); } }
.vs-badge {
  position: absolute; right: 26px; top: 88px; z-index: 2;
  font-family: var(--font-pixel); font-size: 2.6rem; color: var(--yellow);
  text-shadow: 3px 3px 0 var(--coral-dark), 0 0 30px rgba(255, 210, 63, 0.5);
  transform: rotate(-8deg);
}
.vs-board { margin-top: 18px; background: rgba(6, 26, 51, 0.72); border-radius: 16px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, 0.14); }
.vs-board .row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.vs-board .row:last-child { border-bottom: 0; }
.vs-board img { width: 30px; }
.vs-board span { flex: 1; font-weight: 500; }
.vs-board b { font-family: var(--font-pixel); font-weight: 400; color: var(--yellow); font-size: 0.9rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 8px; }
.stat { background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; padding: 16px; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--yellow); }
.stat span { font-size: 0.85rem; color: var(--ink-dim); }

/* ---- FAQ -------------------------------------------------------------------------------------- */
.faq { background: var(--deep); }
.faq-list { display: grid; gap: 12px; }
details { background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; padding: 0 22px; transition: background 0.2s ease; }
details[open] { background: rgba(255, 255, 255, 0.08); }
summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--font-pixel); font-size: 1.4rem; color: var(--yellow); transition: transform 0.2s ease; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding-bottom: 20px; margin: 0; }

/* ---- Roadmap ---------------------------------------------------------------------------------- */
.roadmap { background: linear-gradient(to bottom, var(--deep), var(--deep-2)); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 3px; background: repeating-linear-gradient(90deg, rgba(127, 211, 255, 0.45) 0 8px, transparent 8px 14px); }
.timeline li { position: relative; padding-top: 42px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 6px; background: var(--deep-3); border: 3px solid var(--ink-dim); }
.timeline li.done::before { background: var(--mint); border-color: var(--mint); }
.timeline li.now::before { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 0 6px rgba(255, 210, 63, 0.2); animation: pulse 1.8s ease-in-out infinite; }
.when { font-family: var(--font-pixel); font-size: 0.85rem; color: var(--sky); }
.timeline li.now .when { color: var(--yellow); }
.timeline h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.timeline p { font-size: 0.95rem; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(255, 210, 63, 0); } }

/* ---- Contact ---------------------------------------------------------------------------------- */
.contact { background: var(--deep-2); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-fish { width: 156px; margin-top: 32px; animation: swim 2.6s ease-in-out infinite; }
.contact-form { background: var(--card); border: 1px solid var(--card-line); border-radius: 24px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
input, textarea, select {
  font: inherit; color: var(--ink);
  background: rgba(6, 26, 51, 0.6); border: 1px solid var(--card-line); border-radius: 12px;
  padding: 12px 14px; width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--sky); outline: none; box-shadow: 0 0 0 3px rgba(127, 211, 255, 0.2); }
textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.fish-check { display: grid; gap: 8px; }
.fish-check-label { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.fish-options { display: flex; gap: 10px; flex-wrap: wrap; min-height: 64px; align-items: center; }
.fish-options button {
  width: 64px; height: 64px; padding: 8px; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(6, 26, 51, 0.6); border: 1px solid var(--card-line); border-radius: 14px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.fish-options button:hover { transform: translateY(-2px); border-color: var(--sky); }
.fish-options button[aria-pressed="true"] { border-color: var(--yellow); background: rgba(255, 210, 63, 0.14); box-shadow: 0 0 0 1px var(--yellow); }
.fish-options button { width: 76px; }
.fish-options img { width: 52px; height: auto; image-rendering: pixelated; }
.fish-wait { font-size: 0.85rem; color: var(--ink-dim); }
.form-note { margin: 0; font-size: 0.9rem; color: var(--mint); min-height: 1.2em; }

/* ---- Footer ----------------------------------------------------------------------------------- */
.footer { background: #04122a; padding: 44px 0; border-top: 1px solid var(--card-line); }
.footer-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-logo { width: 132px; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; }
.footer nav a:hover { color: var(--yellow); }
.footer p { margin: 0 0 0 auto; font-size: 0.8rem; color: var(--ink-dim); max-width: 420px; }

/* ---- Scroll reveal ---------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- Smaller screens -------------------------------------------------------------------------- */
@media (max-width: 1180px) { .hat-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1000px) {
  .hat-grid { grid-template-columns: repeat(4, 1fr); }
  .preview-award { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .preview-fish { grid-column: 3 / span 2; grid-row: 1 / span 2; }
  .level-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 26px; padding-left: 40px; }
  .timeline::before { left: 10px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; background: repeating-linear-gradient(180deg, rgba(127, 211, 255, 0.45) 0 8px, transparent 8px 14px); }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: -40px; top: 2px; }
  .costumes { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .about-grid, .versus-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-phone { height: 440px; max-width: 420px; margin: 0 auto; width: 100%; }
  .videos { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .video-card { aspect-ratio: 16 / 10; }
  .video-card:first-child { grid-column: span 2; grid-row: auto; }
  .versus-art { order: 2; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .level-grid { grid-template-columns: 1fr; }
  .costume-row { grid-template-columns: repeat(2, 1fr); }
  .hat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .preview-award { grid-column: 1 / span 1; grid-row: 1 / span 1; }
  .preview-fish { grid-column: 2 / span 1; grid-row: 1 / span 1; }
  .hat-preview { padding: 34px 10px 16px; }
  .hat { padding: 14px 8px 12px; }
  .hat img { width: 52px; height: 52px; margin-bottom: 4px; }
  .hat-grid { grid-template-columns: repeat(3, 1fr); }
  .preview-award { grid-column: 1 / span 3; grid-row: 1 / span 1; display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; row-gap: 2px; align-content: center; text-align: left; padding: 38px 16px 16px; }
  .preview-award #preview-award { width: 72px; margin: 0; grid-row: span 2; }
  .preview-award b { align-self: end; }
  .preview-award span:last-child { align-self: start; }
  .preview-fish { grid-column: 1 / span 3; grid-row: 2 / span 1; }
  .preview-award b { font-size: 1.15rem; }
  .field-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 12px 10px; }
  .stat b { font-size: 1.15rem; }
  .gallery { grid-auto-columns: 62%; }
  .videos { grid-template-columns: 1fr; }
  .video-card:first-child { grid-column: auto; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer p { margin-left: 0; }
}
