/* ================================================
   TIDECREST STUDIOS  v3  "boing arcade" stylesheet
   ================================================ */

:root {
  --bg: #130d1e;
  --bg2: #1b1229;
  --card: #221738;
  --ink: #0b0713;
  --line: #392a55;
  --text: #f7f1fd;
  --dim: #cfc1e6;
  --pink: #ff4da6;
  --orange: #ff9a4d;
  --blue: #8fd0ff;
  --yellow: #ffd84d;
  --green: #86ffa6;
  --accent: var(--pink);
  --grad: linear-gradient(100deg, var(--blue), var(--pink) 50%, var(--orange));
  --display: "Titan One", sans-serif;
  --body: "Outfit", sans-serif;
  /* springy easings */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-big: cubic-bezier(0.22, 1.8, 0.36, 1);
}

/* per-game themes */
body.theme-onein {
  --accent: #ff5252;
  --bg: #0d0a0a; --bg2: #151010; --card: #1c1515; --line: #3a2a2a;
  --grad: linear-gradient(100deg, #ffd9d9, #ff5252 55%, #b81e1e);
}
body.theme-dicempo {
  --accent: var(--yellow);
  --bg: #150f20; --bg2: #1d1329; --card: #251835; --line: #403057;
  --grad: linear-gradient(100deg, #fff3c4, var(--yellow) 50%, var(--orange));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* film grain, very subtle */
body::after {
  content: "";
  position: fixed;
  inset: -100px;
  z-index: 99;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(4) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-30px, 20px); }
  50% { transform: translate(20px, -25px); }
  75% { transform: translate(-15px, -10px); }
  100% { transform: translate(0, 0); }
}

/* with reduced motion on, freeze the looping stuff but keep the short snappy bits */
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .ticker-track { animation: none !important; }
  .hero .hero-logo { animation: boingIn 0.8s var(--spring) both !important; }
}

/* ambient glow */
.glow-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 540px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(700px 480px at -10% 35%, rgba(143, 208, 255, 0.10), transparent 60%),
    radial-gradient(820px 520px at 55% 115%, rgba(255, 154, 77, 0.09), transparent 60%);
}

#fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

main { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.5px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--accent); }

img, video { max-width: 100%; display: block; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(3px 3px 0 var(--ink));
}

.accent-text { color: var(--accent); }

::selection { background: var(--pink); color: #fff; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============ springy scroll reveal ============ */

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.4s ease, transform 0.55s var(--spring);
}

.reveal.in { opacity: 1; transform: translateY(0) scale(1); }

.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }

/* ============ hero entrance: the WOW ============ */

@keyframes boingIn {
  0% { opacity: 0; transform: scale(0.2) rotate(-12deg); }
  60% { opacity: 1; transform: scale(1.12) rotate(3deg); }
  80% { transform: scale(0.96) rotate(-1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes popUp {
  0% { opacity: 0; transform: translateY(36px) scale(0.9); }
  70% { opacity: 1; transform: translateY(-6px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero .hero-logo { animation: boingIn 0.8s var(--spring) both, bob 5s ease-in-out 0.9s infinite; }
.hero h1 { animation: popUp 0.55s var(--spring) 0.18s both; }
.hero .tagline { animation: popUp 0.55s var(--spring) 0.3s both; }
.hero .btn-row { animation: popUp 0.55s var(--spring) 0.42s both; }

.game-hero .pill { animation: boingIn 0.6s var(--spring) 0.1s both; }
.game-hero .game-logo { animation: popUp 0.6s var(--spring) 0.2s both; }
.game-hero .tagline { animation: popUp 0.55s var(--spring) 0.34s both; }
.game-hero .btn-row { animation: popUp 0.55s var(--spring) 0.46s both; }

/* ============ nav ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--line);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 46px; width: auto; transition: transform 0.3s var(--spring-big); }
.nav-logo:hover img { transform: rotate(-8deg) scale(1.15); }
.nav-logo span { font-family: var(--display); font-size: 1.1rem; letter-spacing: 0.5px; color: var(--text); }

.nav-links { display: flex; gap: 4px; align-items: center; }

.nav-links a {
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 1px;
  color: var(--dim);
  padding: 7px 15px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: transform 0.22s var(--spring-big), color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover { color: var(--text); border-color: var(--line); transform: rotate(-2deg) scale(1.08); }

.nav-links a.active {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
}

.nav-burger {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 1.3rem;
  padding: 4px 12px;
  cursor: pointer;
}

/* ============ ticker (slow cruise) ============ */

.ticker {
  overflow: hidden;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 2px;
  padding: 9px 0;
  white-space: nowrap;
  width: 104%;
  margin-left: -2%;
  transform: rotate(-0.6deg);
  position: relative;
  z-index: 2;
}

.ticker-track { display: inline-block; animation: ticker 80s linear infinite; }
.ticker span { margin: 0 26px; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ hero ============ */

.hero {
  position: relative;
  padding: 88px 0 66px;
  text-align: center;
}

.hero-logo {
  width: min(340px, 66vw);
  margin: 0 auto 26px;
  filter: drop-shadow(0 14px 44px color-mix(in srgb, var(--accent) 45%, transparent));
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.2rem);
  margin-bottom: 14px;
  text-shadow: 4px 4px 0 var(--ink);
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--dim);
  max-width: 620px;
  margin: 0 auto 34px;
}

/* game-page hero */

.game-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.game-hero .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.game-hero .shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 30%, var(--bg) 96%),
    radial-gradient(120% 90% at 50% 10%, transparent 55%, rgba(0, 0, 0, 0.55));
}

.game-hero .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 56px;
  text-align: left;
}

.game-hero .game-logo { max-height: 150px; width: auto; margin-bottom: 18px; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.85)); }
.game-hero .tagline { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #fff; max-width: 560px; margin-bottom: 26px; text-shadow: 0 2px 12px rgba(0,0,0,0.95); }

/* ============ buttons (snappy boing) ============ */

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-row.left { justify-content: flex-start; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 13px 28px;
  border-radius: 14px;
  color: var(--ink);
  background: var(--accent);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-1deg);
  transition: transform 0.25s var(--spring-big), box-shadow 0.25s var(--spring-big);
  cursor: pointer;
}

.btn:hover {
  color: var(--ink);
  transform: rotate(1.5deg) translate(-2px, -4px) scale(1.05);
  box-shadow: 10px 11px 0 var(--ink);
}

.btn:active { transform: translate(3px, 4px) scale(0.97); box-shadow: 2px 2px 0 var(--ink); transition-duration: 0.08s; }

.btn.alt { background: var(--blue); }
.btn.ghost { background: var(--card); color: var(--text); }

/* ============ sections ============ */

section { padding: 64px 0; position: relative; }

.kicker {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  margin-bottom: 10px;
  text-shadow: 3px 3px 0 var(--ink);
}

.section-sub { color: var(--dim); margin-bottom: 38px; max-width: 660px; }

.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ============ pills ============ */

.pill {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 16px;
  transform: rotate(-2deg);
}

.pill.live { background: var(--green); color: var(--ink); }
.pill.soon { background: var(--orange); color: var(--ink); }
.pill.secret { background: var(--blue); color: var(--ink); }

/* ============ sticker cards / capsules ============ */

.capsule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
  align-items: stretch;
}

.capsule-card {
  position: relative;
  display: block;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 9px 9px 0 var(--ink);
  overflow: hidden;
  color: var(--text);
  transform: rotate(-1.2deg);
  transition: transform 0.3s var(--spring-big), box-shadow 0.3s var(--spring-big);
  will-change: transform;
}

.capsule-card:nth-child(even) { transform: rotate(1.2deg); }

.capsule-card:hover {
  color: var(--text);
  transform: rotate(0deg) translate(-3px, -6px) scale(1.02);
  box-shadow: 14px 16px 0 var(--ink);
}

.capsule-card img.cap { width: 100%; aspect-ratio: 616 / 353; object-fit: cover; border-bottom: 3px solid var(--ink); }

.capsule-card .cap-body { padding: 22px 24px 26px; }
.capsule-card h3 { font-size: 1.55rem; margin-bottom: 6px; }
.capsule-card p { color: var(--dim); font-size: 0.97rem; margin-bottom: 14px; }

.capsule-card .go {
  font-family: var(--display);
  letter-spacing: 1px;
  font-size: 1.02rem;
  color: var(--accent);
}

.capsule-card .pill { position: absolute; top: 14px; left: 14px; margin: 0; z-index: 2; }

/* ============ feature cards ============ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.feature {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 26px 22px;
  transition: transform 0.28s var(--spring-big);
}

.feature:hover { transform: translateY(-7px) rotate(-1.5deg) scale(1.03); }

.feature .ico { font-size: 2rem; margin-bottom: 10px; display: block; }
.feature h4 { font-size: 1.12rem; margin-bottom: 8px; color: var(--accent); }
.feature p { color: var(--dim); font-size: 0.94rem; }

/* ============ mode cards (gif media) ============ */

.mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.mode-card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  transform: rotate(-0.8deg);
  transition: transform 0.3s var(--spring-big), box-shadow 0.3s var(--spring-big);
}

.mode-card:nth-child(even) { transform: rotate(0.8deg); }
.mode-card:hover { transform: rotate(0deg) translateY(-5px); box-shadow: 11px 12px 0 var(--ink); }

.mode-card .media { border-bottom: 3px solid var(--ink); aspect-ratio: 16 / 9; overflow: hidden; }
.mode-card .media img, .mode-card .media video { width: 100%; height: 100%; object-fit: cover; }
.mode-card .body { padding: 22px 26px 26px; }
.mode-card h3 { font-size: 1.45rem; color: var(--accent); margin-bottom: 8px; }
.mode-card p { color: var(--dim); font-size: 0.97rem; }

/* ============ gallery + lightbox ============ */

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.shots img {
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.26s var(--spring-big);
}

.shots img:hover { transform: scale(1.05) rotate(0.8deg); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 5, 14, 0.92);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  padding: 4vh 4vw;
}

.lightbox.open { display: flex; }
.lightbox.open img { animation: boingIn 0.35s var(--spring) both; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--ink);
  background: var(--accent);
  border: 3px solid var(--ink);
  border-radius: 14px;
  width: 56px;
  height: 56px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s var(--spring-big);
}

.lightbox .lb-nav:hover { transform: translateY(-50%) scale(1.12); }
.lightbox .lb-prev { left: 3vw; }
.lightbox .lb-next { right: 3vw; }

/* ============ trailer ============ */

.trailer-frame {
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
  background: #000;
}

.trailer-frame video { width: 100%; aspect-ratio: 16 / 9; }

/* ============ team rows (about) ============ */

.member-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 9px 9px 0 var(--ink);
  padding: 34px 38px;
  margin-bottom: 34px;
  transform: rotate(-0.6deg);
  transition: transform 0.3s var(--spring-big);
}

.member-row:hover { transform: rotate(0deg) scale(1.01); }
.member-row:nth-child(even) { transform: rotate(0.6deg); }
.member-row:nth-child(even):hover { transform: rotate(0deg) scale(1.01); }
.member-row.flip { grid-template-columns: 1fr 280px; }
.member-row.flip .pfp-box { order: 2; }

.pfp-box { position: relative; }

.pfp-box img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--member, var(--accent));
  transform: rotate(-2deg);
  transition: transform 0.32s var(--spring-big);
}

.member-row:hover .pfp-box img { transform: rotate(3deg) scale(1.06); }

.pfp-box .badge {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  background: var(--member, var(--accent));
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 16px;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}

.member-info h3 { font-size: 2rem; margin-bottom: 4px; color: var(--member, var(--accent)); text-shadow: 2px 2px 0 var(--ink); }
.member-info .role-line { font-weight: 700; color: var(--text); margin-bottom: 12px; }
.member-info p { color: var(--dim); margin-bottom: 16px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink);
  background: var(--member, var(--accent));
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 13px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.2s var(--spring-big);
}

.chip:hover { transform: scale(1.1) rotate(-2deg); }

/* mini team strip on home */

.team-strip { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }

.team-mini {
  text-align: center;
  width: 180px;
  color: var(--text);
  transition: transform 0.28s var(--spring-big);
}

.team-mini:hover { transform: translateY(-8px) rotate(-2deg) scale(1.05); color: var(--text); }

.team-mini img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--mini, var(--accent));
  margin: 0 auto 12px;
}

.team-mini h4 { font-size: 1.1rem; color: var(--mini, var(--accent)); }
.team-mini span { font-size: 0.85rem; color: var(--dim); }

/* ============ stats strip ============ */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: center;
}

.stat {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 26px 16px;
  transition: transform 0.28s var(--spring-big);
}

.stat:hover { transform: translateY(-6px) rotate(-1deg); }

.stat .num { font-family: var(--display); font-size: 2.4rem; color: var(--accent); text-shadow: 2px 2px 0 var(--ink); }
.stat .lbl { color: var(--dim); font-size: 0.92rem; }

/* ============ contact ============ */

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.contact-card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 7px 7px 0 var(--ink);
  padding: 34px 26px;
  text-align: center;
  transform: rotate(-0.8deg);
  transition: transform 0.28s var(--spring-big);
}

.contact-card:nth-child(2) { transform: rotate(0.8deg); }
.contact-card:hover { transform: rotate(0deg) translateY(-7px) scale(1.02); }

.contact-card .icon { font-size: 2.4rem; margin-bottom: 12px; }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--accent); }
.contact-card p { color: var(--dim); font-size: 0.95rem; margin-bottom: 18px; }

/* ============ big cta ============ */

.big-cta {
  text-align: center;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 26px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: 60px 30px;
  position: relative;
  overflow: hidden;
}

.big-cta h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); margin-bottom: 12px; text-shadow: 3px 3px 0 var(--ink); }
.big-cta p { color: var(--dim); max-width: 560px; margin: 0 auto 26px; }

/* ============ footer ============ */

footer {
  border-top: 3px solid var(--ink);
  background: var(--bg2);
  padding: 44px 0 30px;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner img { height: 52px; transition: transform 0.3s var(--spring-big); }
.footer-inner img:hover { transform: rotate(-6deg) scale(1.12); }
.footer-inner .f-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-inner .f-links a { font-family: var(--display); font-size: 0.9rem; letter-spacing: 1px; color: var(--dim); }
.footer-inner .f-links a:hover { color: var(--accent); }
.footer-note { color: var(--dim); font-size: 0.88rem; }

/* ============ story (about) ============ */

.story {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
}

.story img {
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(1.5deg);
  transition: transform 0.3s var(--spring-big);
}

.story img:hover { transform: rotate(-1deg) scale(1.03); }

.story p { color: var(--dim); margin-bottom: 16px; }
.story p strong { color: var(--text); }

.big-quote {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  letter-spacing: 0.5px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  text-shadow: 3px 3px 0 var(--ink);
}

/* ============ member pages ============ */

body.theme-kan { --accent: var(--pink); }
body.theme-stef { --accent: var(--blue); }
body.theme-miru { --accent: var(--orange); }

.member-hero { text-align: center; padding: 70px 0 50px; }

.member-hero .big-pfp {
  width: min(230px, 52vw);
  height: min(230px, 52vw);
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--accent);
  margin: 0 auto 20px;
  animation: boingIn 0.8s var(--spring) both;
}

.member-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); text-shadow: 4px 4px 0 var(--ink); animation: popUp 0.55s var(--spring) 0.15s both; }
.member-hero .role-line { font-weight: 700; color: var(--text); margin: 6px 0 14px; animation: popUp 0.55s var(--spring) 0.25s both; }
.member-hero .tagline { color: var(--dim); max-width: 600px; margin: 0 auto 22px; animation: popUp 0.55s var(--spring) 0.33s both; }
.member-hero .chip-row { justify-content: center; margin-bottom: 24px; animation: popUp 0.55s var(--spring) 0.4s both; }
.member-hero .chip { background: var(--accent); }
.member-hero .btn-row { animation: popUp 0.55s var(--spring) 0.48s both; }

/* masonry gallery for mixed-size art */

.masonry { columns: 3 300px; column-gap: 16px; }

.masonry img {
  width: 100%;
  margin-bottom: 16px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  break-inside: avoid;
  cursor: zoom-in;
  transition: transform 0.26s var(--spring-big);
}

.masonry img:hover { transform: scale(1.03) rotate(0.6deg); }

/* sprite grid: square-ish game assets shown big and together */

.sprite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.sprite-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background:
    repeating-conic-gradient(rgba(255, 255, 255, 0.045) 0% 25%, transparent 0% 50%) 0 0 / 26px 26px,
    var(--card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: zoom-in;
  transition: transform 0.26s var(--spring-big);
}

.sprite-cell:hover { transform: scale(1.06) rotate(-1deg); }
.sprite-cell img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* pixel grid: tiny icons scaled up crisp, many at once */

.pixel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 14px;
}

.pixel-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-conic-gradient(rgba(255, 255, 255, 0.05) 0% 25%, transparent 0% 50%) 0 0 / 20px 20px,
    var(--bg2);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.24s var(--spring-big);
}

.pixel-cell:hover { transform: scale(1.12) rotate(2deg); }

.pixel-cell img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  image-rendering: pixelated;
}

/* music players */

.audio-list { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }

.audio-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 18px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 16px 22px;
  transition: transform 0.24s var(--spring-big);
}

.audio-row:hover { transform: translateX(4px) rotate(-0.4deg); }

.audio-row .track {
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.audio-row .from { font-size: 0.82rem; color: var(--dim); }
.audio-row audio { width: 300px; max-width: 100%; height: 38px; grid-row: span 2; }

/* big single artwork frame */

.art-frame {
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
}

.art-frame img { width: 100%; cursor: zoom-in; }

/* gallery section label strip */

.era-label {
  display: inline-block;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--ink);
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 5px 18px;
  transform: rotate(-1.5deg);
  margin-bottom: 18px;
}

@media (max-width: 700px) {
  .audio-row { grid-template-columns: 1fr; }
  .audio-row audio { width: 100%; grid-row: auto; }
}

/* ============ responsive ============ */

@media (max-width: 900px) {
  .capsule-grid, .mode-grid { grid-template-columns: 1fr; }
  .member-row, .member-row.flip { grid-template-columns: 1fr; padding: 26px 22px; }
  .member-row.flip .pfp-box { order: 0; }
  .pfp-box { max-width: 260px; margin: 0 auto 10px; }
  .story { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .game-hero { min-height: 62vh; }
  .game-hero .game-logo { max-height: 100px; }

  .nav-burger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg2);
    border-bottom: 3px solid var(--ink);
    padding: 14px 20px 20px;
    gap: 8px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; text-align: center; }
}

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