/* NAUTIDEA — company homepage. Bright yellow, pixel style, game feel. */

/* Pixel font: Fusion Pixel 12px Proportional SC (TakWolf, SIL OFL 1.1) — Latin + Simplified Chinese. */
@font-face {
  font-family: 'Fusion Pixel 12px Proportional SC';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/fusion-pixel-12px-proportional-sc@5.3.0/files/fusion-pixel-12px-proportional-sc-latin-400-normal.woff2') format('woff2');
}

html { color-scheme: light dark; scroll-behavior: smooth; }

:root {
  --font-pixel: 'Fusion Pixel 12px Proportional SC', 'Press Start 2P', monospace;
  --yellow: #FFD500;
  --yellow-deep: #FFC400;
  --coral: #FF6B4A;
  --ink: #1A1A1A;
  --paper: #FFFDF5;
  --paper-alt: #FFF3C4;
  --muted: #5C5546;
  --line: #1A1A1A;
  --shadow: 6px 6px 0 #1A1A1A;
  --shadow-sm: 4px 4px 0 #1A1A1A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--font-pixel);
  line-height: 1.3;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 900; letter-spacing: 0.02em; }
h3 { font-size: 1.25rem; font-weight: 800; }

p { margin: 0 0 1em; }
a { color: inherit; }

/* Language toggle: only the active language shows */
html[lang="zh"] .en { display: none; }
html[lang="en"] .zh { display: none; }

.pixel-label {
  font-family: "Press Start 2P", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.7rem 5vw;
  background: var(--yellow);
  border-bottom: 4px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-coin { width: 34px; height: 34px; image-rendering: pixelated; }
.brand-name {
  font-family: var(--font-pixel);
  font-size: 1.1rem;
}
.brand-sub { font-family: var(--font-pixel); font-size: 0.85rem; font-weight: 700; opacity: 0.75; }
.site-nav { display: flex; gap: 1.1rem; margin-left: auto; }
.site-nav a { text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.lang-switch { display: flex; border: 3px solid var(--line); background: var(--paper); }
.lang-switch button {
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.3em 0.7em;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.lang-switch button.active { background: var(--ink); color: var(--yellow); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2rem 5vw 3.5rem;
  background: var(--yellow);
  border-bottom: 4px solid var(--line);
}
.hud {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.7rem;
  margin-bottom: 2.5rem;
}
.hud-hearts { color: var(--coral); letter-spacing: 0.2em; }
.hero-cloud {
  position: absolute;
  background: var(--paper);
  border: 3px solid var(--line);
  height: 22px;
}
.cloud-a { width: 110px; top: 90px; left: 8%; }
.cloud-a::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: 19px;
  width: 52px;
  height: 20px;
  background: var(--paper);
  border: 3px solid var(--line);
  border-bottom: 0;
}
.cloud-b { width: 80px; top: 150px; right: 10%; }
.cloud-b::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 19px;
  width: 40px;
  height: 16px;
  background: var(--paper);
  border: 3px solid var(--line);
  border-bottom: 0;
}
.hero-sun {
  position: absolute;
  top: 70px;
  right: 16%;
  width: 44px;
  height: 44px;
  background: var(--coral);
  border: 3px solid var(--line);
  box-shadow: 0 0 0 6px var(--yellow), 0 0 0 9px var(--line);
}
.eyebrow {
  font-family: "Press Start 2P", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(2.2rem, 9vw, 5rem);
  margin: 0 0 0.4em;
  text-shadow: 4px 4px 0 var(--paper);
}
.hero-cn { font-family: var(--font-pixel); font-size: clamp(1.3rem, 3.5vw, 1.9rem); font-weight: 900; margin-bottom: 0.4em; }
.slogan {
  display: inline-block;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 900;
  background: var(--ink);
  color: var(--yellow);
  padding: 0.25em 0.8em;
  margin-bottom: 0.8em;
}
.lede { font-size: 1.1rem; font-weight: 600; }

.bead-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 1.8rem 0 0.6rem;
}
.bead {
  width: 30px;
  height: 30px;
  border: 3px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  animation: bead-bounce 1.6s ease-in-out infinite;
}
.bead:nth-child(2) { animation-delay: 0.15s; }
.bead:nth-child(3) { animation-delay: 0.3s; }
.bead:nth-child(4) { animation-delay: 0.45s; }
.bead:nth-child(5) { animation-delay: 0.6s; }
.bead-gold { background: #D9A441; }
.bead-green { background: #5D8A5A; }
.bead-rust { background: #B4552D; }
.bead-rose { background: #E8A0A8; }
.bead-violet { background: #8A6FB8; }
.bead.pop { animation: bead-pop 0.25s ease; }
@keyframes bead-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes bead-pop {
  50% { transform: scale(1.35) rotate(-8deg); }
}
.bead-hint { font-size: 0.9rem; color: var(--muted); font-weight: 600; }

.cta-row {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.6rem 0 1.4rem;
}
.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border: 3px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  font-weight: 900;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-ghost { background: var(--paper); }
.btn-small { padding: 0.5em 1em; font-size: 0.9rem; }
.press-start {
  font-family: "Press Start 2P", monospace;
  font-size: 0.65rem;
  animation: blink 1.2s steps(2) infinite;
  margin: 0;
}
@keyframes blink { 50% { opacity: 0; } }

/* Ticker */
.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--yellow);
  border-bottom: 4px solid var(--line);
  padding: 0.5rem 0;
  font-family: "Press Start 2P", monospace;
  font-size: 0.65rem;
  white-space: nowrap;
}
.ticker-track { display: inline-block; animation: ticker 22s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 3.5rem 5vw; max-width: 1080px; margin: 0 auto; }
.section-alt { background: var(--paper-alt); max-width: none; border-top: 4px solid var(--line); border-bottom: 4px solid var(--line); }
.section-inner { max-width: 1080px; margin: 0 auto; }
.level-tag {
  display: inline-block;
  font-family: "Press Start 2P", monospace;
  font-size: 0.65rem;
  background: var(--ink);
  color: var(--yellow);
  padding: 0.5em 0.9em;
  margin-bottom: 1rem;
}
.section-intro { font-size: 1.15rem; font-weight: 700; max-width: 640px; }
.body-text { max-width: 720px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.stat-card {
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  text-align: center;
}
.stat-num {
  font-family: "Press Start 2P", monospace;
  font-size: 1.6rem;
  color: var(--coral);
  margin-bottom: 0.4em;
}
.stat-card p:last-child { margin: 0; font-weight: 800; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.player-card {
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
}
.player-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--line); }
.player-tag {
  font-family: "Press Start 2P", monospace;
  font-size: 0.6rem;
  color: var(--coral);
  margin-bottom: 1rem;
}
.avatar {
  width: 104px;
  height: 104px;
  image-rendering: pixelated;
  border: 4px solid var(--line);
  margin-bottom: 1rem;
}
.role {
  font-family: "Press Start 2P", monospace;
  font-size: 0.6rem;
  color: var(--muted);
  margin-bottom: 0.8em;
}
.fine-note { font-size: 0.9rem; color: var(--muted); margin-top: 1.5rem; text-align: center; }

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.project-card {
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.project-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--line); }
.project-badge {
  font-family: "Press Start 2P", monospace;
  font-size: 0.6rem;
  margin-bottom: 0.8em;
}
.project-card.locked { opacity: 0.85; background: var(--paper-alt); }
.loading-bar {
  height: 16px;
  border: 3px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}
.loading-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, var(--yellow-deep) 8px 16px);
  animation: loading 1.4s linear infinite;
}
@keyframes loading { to { transform: translateX(250%); } }

/* Contact */
.contact-card {
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
  max-width: 640px;
}
.contact-card a { font-weight: 800; color: var(--coral); }

/* Footer */
.site-footer {
  border-top: 4px solid var(--line);
  padding: 2rem 5vw;
  text-align: center;
  background: var(--yellow);
}
.site-footer p { margin-bottom: 0.4em; font-weight: 700; }
.fine-print { font-family: "Press Start 2P", monospace; font-size: 0.6rem; }

/* Pixel prints: pufferfish + punk heads */
.px { image-rendering: pixelated; }
.px-fish { width: 34px; height: 29px; }
.px-punk { width: 30px; height: 30px; }
.flip { transform: scaleX(-1); }

.hero-pattern { position: absolute; inset: 0; pointer-events: none; }
.hero-pattern .px { position: absolute; opacity: 0.22; animation: drift 5s ease-in-out infinite; }
.hero-pattern .f1 { top: 24%; left: 4%; width: 44px; height: 38px; color: var(--coral); }
.hero-pattern .f2 { top: 16%; right: 6%; width: 34px; height: 29px; color: #FFFDF5; transform: scaleX(-1); animation-delay: 0.6s; }
.hero-pattern .f3 { top: 62%; left: 9%; width: 30px; height: 26px; color: var(--ink); animation-delay: 1.1s; }
.hero-pattern .f4 { top: 70%; right: 12%; width: 48px; height: 41px; color: var(--coral); transform: scaleX(-1); animation-delay: 0.3s; }
.hero-pattern .f5 { top: 42%; right: 3%; width: 26px; height: 22px; color: #FFFDF5; animation-delay: 1.5s; }
@keyframes drift {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

.fish-strip, .footer-fish {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.9rem 5vw;
}
.fish-strip { background: var(--paper); border-bottom: 4px solid var(--line); color: var(--ink); }
.fish-strip .px-fish:nth-child(even) { color: var(--coral); }
.footer-fish { padding-top: 0; }
.footer-fish .px-fish:nth-child(even) { color: var(--coral); }

/* Wide project cards */
.project-card.wide { grid-column: 1 / -1; }
.project-sub {
  font-family: "Press Start 2P", monospace;
  font-size: 0.6rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.series { margin-top: 1.5rem; }
.series h4 {
  display: inline-block;
  font-family: var(--font-pixel);
  background: var(--yellow);
  border: 3px solid var(--line);
  padding: 0.2em 0.6em;
  margin-bottom: 0.4em;
  font-size: 1.1rem;
}
.series-tag { font-weight: 800; }
.scent-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }
.chip {
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  background: var(--paper);
  padding: 0.3em 0.7em;
  font-weight: 800;
  font-size: 0.9rem;
}
.chip:nth-child(odd) { background: var(--paper-alt); }
.play { max-width: 720px; }
.punk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin: 0.8rem 0; }
.punk-tile {
  width: 64px;
  height: 64px;
  border: 3px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.punk-tile svg { width: 52px; height: 52px; image-rendering: pixelated; }
.tile-yellow { background: var(--yellow); }
.tile-mint { background: #7FE3C3; }
.tile-pink { background: #FFB3C1; }
.punk-count { font-weight: 800; }
.facts {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 3px dashed var(--line);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .brand-sub { display: none; }
  .hero-sun { display: none; }
  .cloud-b { display: none; }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1C1917;
    --paper-alt: #26211D;
    --ink: #FFF6D8;
    --muted: #B3A696;
    --line: #FFF6D8;
    --shadow: 6px 6px 0 rgba(0, 0, 0, 0.7);
    --shadow-sm: 4px 4px 0 rgba(0, 0, 0, 0.7);
  }
  .site-header { background: #2A251F; }
  .hero { background: #2A251F; }
  .hero-title { text-shadow: 4px 4px 0 #000; }
  .slogan { background: var(--yellow); color: #1A1A1A; }
  .btn-primary { color: #1A1A1A; }
  .site-footer { background: #2A251F; }
  .stat-card, .player-card, .project-card, .contact-card { background: #26211D; }
  .project-card.locked { background: #221E1A; }
  .lang-switch { background: #26211D; }
  .lang-switch button.active { background: var(--yellow); color: #1A1A1A; }
}
