/* =========================================================
   MONKEY D. LUFFY — GEAR 5 EDITORIAL POSTER DESIGN SYSTEM
   ========================================================= */

:root {
  --bg-void: #050505;
  --bg-surface: #0d0d0d;
  --bg-card: #121212;
  --ivory: #f0ede6;
  --ivory-muted: #a69d8e;
  --accent-rgb: 101, 232, 48;
  --lime: #65e830;
  --lime-bright: #78ff42;
  --lime-dim: rgba(var(--accent-rgb), 0.16);
  --crimson: #ff3b6b;
  --border-distress: rgba(240, 237, 230, 0.14);

  --font-display: 'Anton', 'Bebas Neue', Impact, sans-serif;
  --font-condensed: 'Bebas Neue', 'Anton', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-script: 'Caveat', cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--ivory);
  font-family: var(--font-mono);
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  background-color: var(--bg-void);
  color: var(--ivory);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Hide scrollbars visually while keeping scrolling active */
::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Utility Colors */
.ivory {
  color: var(--ivory);
}
.lime {
  color: var(--lime);
}

/* =========================================================
   PERSISTENT GRUNGE CANVAS & FILM GRAIN
   ========================================================= */
#grunge-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.film-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.vignette-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, transparent 48%, rgba(0, 0, 0, 0.72) 100%);
  box-shadow: inset 0 0 calc(32px + var(--audio-energy, 0) * 120px) rgba(var(--accent-rgb), calc(var(--audio-energy, 0) * 0.28));
  transition: box-shadow 0.08s linear;
}

/* =========================================================
   CORNER HUD & SLIDE RAIL
   ========================================================= */
.corner-hud {
  position: fixed;
  bottom: clamp(14px, 2.5vh, 26px);
  left: clamp(18px, 3vw, 40px);
  right: clamp(18px, 3vw, 40px);
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
}

.brand-onepiece {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.35vw, 1.25rem);
  letter-spacing: 0.04em;
  color: var(--lime);
  text-decoration: none;
  transition: text-shadow 0.2s ease, transform 0.2s ease;
}

.brand-onepiece:hover {
  text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.7);
  transform: translateY(-1px);
}

.hud-dock {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  background: rgba(12, 12, 12, 0.72);
  border: 1px solid rgba(240, 237, 230, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.hud-dock:hover {
  border-color: rgba(240, 237, 230, 0.2);
}

.dock-divider {
  width: 1px;
  height: 14px;
  background: rgba(240, 237, 230, 0.12);
  margin: 0 3px;
}

.dock-crew-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.dock-crew-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dock-crew-num {
  color: var(--lime);
  font-weight: 700;
}

.dock-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ivory-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dock-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ivory);
}

.dock-btn[aria-pressed='true'] {
  color: var(--lime);
  background: rgba(var(--accent-rgb), 0.14);
}

/* Equalizer animated bars inside Audio Beat button */
.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.eq-bars i {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: height 0.08s linear;
}

.eq-bars i:nth-child(1) { height: 5px; }
.eq-bars i:nth-child(2) { height: 10px; }
.eq-bars i:nth-child(3) { height: 7px; }

.dock-btn[aria-pressed='true']:not(.has-live-eq) .eq-bars i:nth-child(1) { animation: eqBounce 0.65s 0.0s ease-in-out infinite; }
.dock-btn[aria-pressed='true']:not(.has-live-eq) .eq-bars i:nth-child(2) { animation: eqBounce 0.65s 0.18s ease-in-out infinite; }
.dock-btn[aria-pressed='true']:not(.has-live-eq) .eq-bars i:nth-child(3) { animation: eqBounce 0.65s 0.34s ease-in-out infinite; }

.dock-btn.audio-resume-hint {
  color: var(--lime);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.5);
  animation: resumePulse 1.5s ease-in-out infinite;
}

@keyframes resumePulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35); }
  50%      { box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.65); }
}

@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50%      { height: 12px; }
}

/* Audio Mini-Player Popover in HUD Dock */
.audio-drawer-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.dock-btn-mini {
  width: 20px;
  height: 28px;
  border-radius: 999px;
}

.audio-popover {
  position: absolute;
  bottom: calc(100% + 14px);
  left: -48px;
  width: 292px;
  background: rgba(8, 8, 8, 0.94);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(18px);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 42;
}

.audio-popover[hidden] {
  display: none;
}

.ap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ap-eyebrow {
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: var(--ivory-muted);
}

.ap-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: var(--ivory-muted);
}

.ap-status-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(240, 237, 230, 0.35);
}

body.drums-active .ap-status-dot {
  color: var(--lime);
}

body.drums-active .ap-status-dot::before {
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.ap-track-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ap-nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ap-step-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(240, 237, 230, 0.16);
  background: transparent;
  color: var(--ivory-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.ap-step-btn svg {
  width: 11px;
  height: 11px;
}

.ap-step-btn:hover {
  color: var(--ivory);
  border-color: var(--lime);
  background: rgba(var(--accent-rgb), 0.14);
}

.ap-jukebox-btn {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(240, 237, 230, 0.16);
  background: transparent;
  color: var(--ivory-muted);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.ap-jukebox-btn[aria-pressed='true'] {
  color: var(--bg-void);
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 700;
}

.ap-play-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.ap-play-btn:hover {
  background: var(--lime);
  color: var(--bg-void);
  transform: scale(1.06);
}

.ap-play-btn svg {
  width: 13px;
  height: 13px;
}

.ap-meta {
  min-width: 0;
  flex: 1;
}

.ap-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ivory);
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-sub {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--lime);
  margin-top: 2px;
}

.ap-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ap-time {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--ivory-muted);
  min-width: 32px;
  font-variant-numeric: tabular-nums;
}

.ap-time:last-child {
  text-align: right;
}

.audio-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(240, 237, 230, 0.16);
  outline: none;
  cursor: pointer;
}

.audio-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.7);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.audio-range::-webkit-slider-thumb:hover {
  transform: scale(1.22);
}

.audio-range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: var(--lime);
  cursor: pointer;
}

.ap-vol-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
  border-top: 1px solid rgba(240, 237, 230, 0.08);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--ivory-muted);
}

.ap-vol-row svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--ivory-muted);
}

.now-playing-toast {
  position: fixed;
  left: 20px;
  bottom: 72px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.86);
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--ivory);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.now-playing-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.now-playing-toast.is-unlock-prompt {
  pointer-events: auto;
  cursor: pointer;
  border-color: var(--lime);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.25);
}

.now-playing-toast em {
  font-style: normal;
  color: var(--lime);
}

/* SFX Muted slash line */
#sfx-toggle[aria-pressed='false'] {
  opacity: 0.5;
}

#sfx-toggle[aria-pressed='true'] {
  color: var(--lime);
  background: transparent;
}

/* Crew Quick-Jump Dropdown in HUD */
.crew-drawer-wrap {
  position: relative;
}

.crew-dropdown {
  position: absolute;
  bottom: calc(100% + 14px);
  left: -6px;
  width: 290px;
  max-height: 62vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: rgba(8, 8, 8, 0.94);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 40;
}

.crew-dropdown[hidden] {
  display: none;
}

.crew-dropdown a {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ivory);
  border-radius: 6px;
  transition: background 0.16s ease, color 0.16s ease;
}

.crew-dropdown a span {
  color: var(--ivory-muted);
}

.crew-dropdown a em {
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.crew-dropdown a:hover,
.crew-dropdown a.active {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--lime);
}

.hud-page {
  pointer-events: auto;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  color: var(--lime);
  letter-spacing: 0.02em;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.hud-page:hover {
  transform: scale(1.08);
  text-shadow: 0 0 16px rgba(var(--accent-rgb), 0.6);
}

/* Right-edge slide rail */
.slide-rail {
  position: fixed;
  right: clamp(12px, 1.8vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rail-dot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  text-decoration: none;
  color: var(--ivory-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  opacity: 0.45;
  transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.rail-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 1px;
  border: 1px solid currentColor;
  transition: background 0.25s ease, transform 0.25s ease;
}

.rail-dot span {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rail-dot:hover span,
.rail-dot.active span {
  opacity: 1;
  transform: translateX(0);
}

.rail-dot:hover,
.rail-dot.active {
  opacity: 1;
  color: var(--lime);
}

.rail-dot.active::after {
  background: var(--lime);
  transform: scale(1.25);
}

/* =========================================================
   POSTER SECTIONS BASE
   ========================================================= */
main {
  position: relative;
  z-index: 5;
}

.poster-section {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 3vh, 32px) clamp(18px, 3vw, 40px);
}

/* =========================================================
   /1 — HERO POSTER (Matches reference design)
   ========================================================= */
.hero-section {
  height: 100vh;
  min-height: 600px;
  max-height: 1120px;
  overflow: hidden;
  padding-bottom: clamp(22px, 3.2vh, 38px);
}

.poster-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  width: 100%;
  position: relative;
  z-index: 12;
  animation: fadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Top Left */
.tb-left {
  display: flex;
  flex-direction: column;
  line-height: 0.94;
  animation: slideInLeft 0.75s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: translateX(0); }
}

.tb-line {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2.35rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Top Center */
.tb-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.8vh, 8px);
  animation: fadeDown 0.75s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tb-gear-tag {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.25vw, 1.15rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.jolly-roger {
  width: clamp(42px, 5vw, 62px);
  height: auto;
  filter: drop-shadow(0 0 10px rgba(240, 237, 230, 0.18));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  animation: floatSlow 4.8s ease-in-out infinite;
}

.jolly-roger:hover {
  transform: scale(1.12) rotate(-6deg);
}

/* Top Right */
.tb-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.15;
  animation: slideInRight 0.75s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

.tb-jp {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(1rem, 1.8vw, 1.65rem);
  letter-spacing: 0.04em;
}

.tb-jp-sub {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(0.9rem, 1.35vw, 1.25rem);
  margin-top: 3px;
}

/* Center Stage & Masked Portrait */
.hero-stage {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
  margin: -3vh auto -3vh;
  width: 100%;
  max-width: 1460px;
  pointer-events: none;
}

.hero-aura {
  position: absolute;
  width: 64%;
  height: 68%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 237, 230, 0.09) 0%, rgba(var(--accent-rgb), 0.05) 42%, transparent 72%);
  filter: blur(42px);
  opacity: 0.65;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.luffy-artwork-wrap {
  position: relative;
  width: min(94vw, 1280px);
  aspect-ratio: 1024 / 576;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transition: transform 0.16s ease-out;
  pointer-events: auto;
}

.luffy-letter {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.luffy-float {
  width: 100%;
  height: 100%;
  transform-origin: inherit;
  will-change: transform;
  animation: letterWave 4.6s var(--wave-delay, 0s) ease-in-out infinite;
}

.luffy-layer-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  display: block;
  transform-origin: inherit;
  transition: transform 0.32s cubic-bezier(0.22, 1.28, 0.36, 1), filter 0.28s ease;
}

.member-bounty-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  color: var(--ivory-muted);
  margin-top: 2px;
}

@keyframes letterSlamUp {
  0%   { opacity: 0; transform: translateY(-48px) scale(0.95); }
  72%  { opacity: 1; transform: translateY(5px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes letterSlamDown {
  0%   { opacity: 0; transform: translateY(48px) scale(0.95); }
  72%  { opacity: 1; transform: translateY(-5px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes letterWave {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Hover & Click Gomu-Gomu Rubber Snap applied on inner img so letter slam & float never collide */
.luffy-letter.is-hovered {
  z-index: 4;
}

.luffy-letter.is-hovered .luffy-layer-img {
  transform: translateY(-10px) scale(1.028);
  filter: drop-shadow(0 0 18px rgba(var(--accent-rgb), 0.32)) brightness(1.06);
}

.luffy-letter.is-snapping {
  z-index: 5;
}

.luffy-letter.is-snapping .luffy-layer-img {
  animation: gomuRubberSnap 0.52s cubic-bezier(0.22, 1.38, 0.36, 1);
}

@keyframes gomuRubberSnap {
  0%   { transform: scale(1, 1) translateY(0); }
  22%  { transform: scale(0.93, 1.09) translateY(-14px); }
  48%  { transform: scale(1.05, 0.95) translateY(4px); }
  72%  { transform: scale(0.98, 1.02) translateY(-3px); }
  100% { transform: scale(1, 1) translateY(0); }
}

/* Drums of Liberation letter pulse */
body.drums-active .luffy-float {
  animation: letterBeat 0.76s var(--beat-delay, 0s) ease-in-out infinite;
}

@keyframes letterBeat {
  0%, 100% { transform: translateY(0) scale(1); }
  28%      { transform: translateY(-8px) scale(1.02); }
}

/* Interactive Hitboxes aligned directly over L, U, F1, F2, Y */
.letter-hitboxes {
  position: absolute;
  inset: 16% 5% 12% 7%;
  z-index: 15;
  display: grid;
  grid-template-columns: 16.5% 24.5% 18.5% 18.5% 22%;
  pointer-events: auto;
}

.letter-hitbox {
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Subtle Eye Glow aligned with Luffy's pupils */
.eye-glow {
  position: absolute;
  width: 3.4%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 75, 118, 0.75) 0%, rgba(255, 75, 118, 0.15) 55%, transparent 75%);
  mix-blend-mode: screen;
  opacity: 0.25;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.eye-left {
  left: 40.8%;
  top: 45.1%;
}

.eye-right {
  left: 61.9%;
  top: 45.5%;
}

body.drums-active .eye-glow {
  opacity: calc(0.65 + var(--audio-energy, 0.3) * 0.35);
  filter: drop-shadow(0 0 calc(8px + var(--audio-energy, 0.2) * 14px) rgba(var(--accent-rgb), 0.75));
}

body.drums-active .hero-aura {
  opacity: calc(0.62 + var(--audio-energy, 0.25) * 0.38);
  transform: scale(calc(0.98 + var(--audio-energy, 0) * 0.16));
  background: radial-gradient(circle, rgba(240, 237, 230, calc(0.1 + var(--audio-energy, 0.2) * 0.12)) 0%, rgba(var(--accent-rgb), calc(0.1 + var(--audio-energy, 0.2) * 0.18)) 45%, transparent 74%);
  transition: transform 0.09s linear, opacity 0.09s linear;
}

@keyframes eyeBeat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.45; }
  35% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
}

@keyframes auraBeat {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.06); }
}

/* Hero Bottom Quote & Signature */
.hero-bottom {
  position: relative;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  animation: fadeUp 0.9s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-quote p {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 0.95vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  line-height: 1.55;
  color: var(--ivory);
  text-transform: uppercase;
}

.hero-signature {
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 2.3vw, 2.15rem);
  font-weight: 700;
  color: var(--lime);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.25);
  margin-top: 2px;
  animation: signatureGlow 3.6s ease-in-out infinite;
}

@keyframes signatureGlow {
  0%, 100% { text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.22); }
  50% { text-shadow: 0 0 26px rgba(var(--accent-rgb), 0.55); }
}

.scroll-cue {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ivory-muted);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  opacity: 0.65;
  transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.scroll-cue:hover {
  opacity: 1;
  color: var(--lime);
  transform: translateY(2px);
}

.scroll-cue-arrow {
  animation: bounceDown 1.6s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* =========================================================
   INNER EDITORIAL SECTIONS (/2, /3, /4)
   ========================================================= */
.awakening-section,
.bounty-section,
.gears-section,
.render-section {
  justify-content: center;
  padding-top: clamp(64px, 9vh, 100px);
  padding-bottom: clamp(86px, 11vh, 120px);
  border-top: 1px solid rgba(240, 237, 230, 0.08);
}

/* =========================================================
   FULL-BODY ACTION RENDER / 3D WANTED POSTER FLIP STAGE
   ========================================================= */
.render-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.25fr;
  gap: clamp(28px, 4.5vw, 56px);
  align-items: start;
}

.flip-stage-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stage-mode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.stage-mode-tabs {
  display: flex;
  gap: 6px;
}

.stage-tab {
  padding: 8px 13px;
  background: rgba(14, 14, 14, 0.9);
  border: 1px solid var(--border-distress);
  color: var(--ivory-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stage-tab:hover {
  color: var(--ivory);
  border-color: rgba(240, 237, 230, 0.45);
}

.stage-tab.active {
  background: var(--lime);
  color: var(--bg-void);
  border-color: var(--lime);
  font-weight: 700;
}

.zoom-wanted-btn {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border-distress);
  color: var(--ivory-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zoom-wanted-btn:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.flip-card-wrap {
  perspective: 1300px;
  width: 100%;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 15.2;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.22, 1.18, 0.36, 1);
  cursor: pointer;
}

.flip-card-inner.is-flipped {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(14px, 2vw, 24px);
  background: radial-gradient(circle at 50% 48%, rgba(var(--accent-rgb), 0.1) 0%, rgba(12, 12, 12, 0.94) 68%);
  border: 1px solid var(--border-distress);
  overflow: hidden;
}

.flip-face::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), transparent 75%);
  z-index: 3;
}

.flip-face:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
}

.flip-face-back {
  transform: rotateY(180deg);
  background: radial-gradient(circle at 50% 48%, rgba(214, 184, 132, 0.12) 0%, rgba(10, 10, 10, 0.96) 72%);
}

.action-render-bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 9rem);
  letter-spacing: 0.04em;
  color: rgba(240, 237, 230, 0.045);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.action-render-img,
.wanted-poster-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.action-render-img {
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 16px rgba(var(--accent-rgb), 0.18));
  animation: floatNika 4.8s ease-in-out infinite;
}

.wanted-poster-img {
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.94));
  transform: rotate(-0.8deg);
  transition: transform 0.35s ease;
}

.flip-face-back:hover .wanted-poster-img {
  transform: rotate(0deg) scale(1.02);
}

/* Wanted Lightbox Modal */
.wanted-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 4, 4, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 14px;
}

.wanted-lightbox[hidden] {
  display: none;
}

.wanted-lightbox img {
  max-width: min(90vw, 520px);
  max-height: 82vh;
  width: auto;
  height: auto;
  filter: drop-shadow(0 24px 56px rgba(0, 0, 0, 0.95));
  animation: panelPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-close {
  background: transparent;
  border: 1px solid var(--lime);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  padding: 8px 18px;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--lime);
  color: var(--bg-void);
}

.dossier-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.member-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.meta-box {
  background: rgba(14, 14, 14, 0.88);
  border: 1px solid var(--border-distress);
  border-left: 2px solid var(--lime);
  padding: 14px 16px;
}

.meta-box .spec-k {
  margin-bottom: 4px;
}

.meta-box .spec-v {
  font-size: 0.82rem;
}

/* Crew Navigation Bar across all 10 separate member pages */
.crew-pages-bar {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--border-distress);
}

.crew-pages-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ivory-muted);
}

.crew-pages-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.crew-page-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  background: rgba(14, 14, 14, 0.86);
  border: 1px solid var(--border-distress);
  color: var(--ivory-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  transition: all 0.22s ease;
}

.crew-page-link strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--ivory);
  font-weight: 400;
}

.crew-page-link span {
  color: var(--lime);
  font-size: 0.65rem;
}

.crew-page-link:hover {
  border-color: rgba(240, 237, 230, 0.45);
  transform: translateY(-2px);
}

.crew-page-link.active {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--lime);
}

.crew-page-link.active strong {
  color: var(--lime);
}

.section-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: clamp(28px, 4.5vh, 48px);
  border-bottom: 1px solid var(--border-distress);
}

.sh-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  margin-bottom: 6px;
}

.sh-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.2vw, 4.5rem);
  line-height: 0.94;
  letter-spacing: 0.02em;
  color: var(--ivory);
  text-transform: uppercase;
}

.sh-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--ivory-muted);
  margin-top: 8px;
}

.sh-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sh-jp {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  color: var(--ivory);
}

.sh-jp-sub {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.25vw, 1.1rem);
  margin-top: 4px;
}

/* =========================================================
   /2 — AWAKENING SECTION & NIKA DEVIL FRUIT POSTER
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1), transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lore-stack .reveal:nth-child(2) { transition-delay: 0.1s; }
.lore-stack .reveal:nth-child(3) { transition-delay: 0.2s; }

.awakening-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: stretch;
}

.nika-emblem-card {
  background: radial-gradient(circle at 50% 42%, rgba(30, 18, 42, 0.52) 0%, rgba(10, 10, 10, 0.96) 72%);
  border: 1px solid var(--border-distress);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.22s ease-out, border-color 0.3s ease;
}

.nika-emblem-card:hover {
  border-color: rgba(var(--accent-rgb), 0.42);
}

.nika-emblem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), transparent 75%);
}

.nika-poster-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 10px 8px;
  margin: auto 0;
}

.nika-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  transform: translate(-50%, -56%) scale(0.85);
  opacity: 0;
  pointer-events: none;
  animation: ringExpand 3.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.nika-pulse-ring.ring-2 {
  border-color: rgba(240, 237, 230, 0.22);
  animation-delay: 1.8s;
}

body.drums-active .nika-pulse-ring {
  animation-duration: 1.3s;
  border-color: rgba(var(--accent-rgb), 0.6);
}

@keyframes ringExpand {
  0% { transform: translate(-50%, -56%) scale(0.62); opacity: 0.75; }
  100% { transform: translate(-50%, -56%) scale(1.48); opacity: 0; }
}

.nika-kana-backdrop {
  position: relative;
  width: 100%;
  text-align: center;
  margin-bottom: -48px;
  z-index: 1;
  user-select: none;
  pointer-events: none;
  animation: kanaDrift 5.5s ease-in-out infinite;
}

.nika-kana-backdrop span {
  display: block;
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(3.3rem, 6.2vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, #b585d6 0%, #7d4ea2 58%, rgba(var(--accent-rgb), 0.65) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(154, 98, 198, 0.28));
}

.kana-splatter {
  width: 90%;
  max-width: 340px;
  height: auto;
  margin: -10px auto 0;
  display: block;
  opacity: 0.9;
}

@keyframes kanaDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.nika-fruit-float {
  position: relative;
  z-index: 2;
  width: clamp(210px, 24vw, 290px);
  animation: floatNika 4.4s ease-in-out infinite;
}

.nika-fruit-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 22px rgba(155, 93, 229, 0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.nika-emblem-card:hover .nika-fruit-img {
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 30px rgba(var(--accent-rgb), 0.35));
}

body.drums-active .nika-fruit-float {
  animation: fruitBeat 0.65s ease-in-out infinite;
}

@keyframes floatNika {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-12px) rotate(1.4deg); }
}

@keyframes fruitBeat {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-8px) scale(1.045); }
}

.beat-caption {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  position: relative;
  z-index: 3;
}

.beat-sfx {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.beat-sub {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--ivory-muted);
}

.action-btn {
  width: 100%;
  margin-top: 24px;
  padding: 14px 18px;
  background: transparent;
  border: 1px solid var(--lime);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.action-btn:hover,
body.drums-active .action-btn {
  background: var(--lime);
  color: var(--bg-void);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.32);
}

.btn-tag {
  font-size: 0.65rem;
  opacity: 0.8;
}

.lore-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.grunge-card {
  background: rgba(15, 15, 15, 0.85);
  border: 1px solid var(--border-distress);
  border-left: 3px solid var(--lime);
  padding: 22px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.grunge-card:hover {
  transform: translateX(6px);
  background: rgba(22, 22, 22, 0.96);
  border-color: rgba(var(--accent-rgb), 0.55);
}

.card-index {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--lime);
  margin-bottom: 6px;
}

.grunge-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--ivory);
  margin-bottom: 8px;
}

.grunge-card p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--ivory-muted);
}

/* =========================================================
   /3 — BOUNTY & TECHNIQUES SECTION
   ========================================================= */
.bounty-banner {
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid var(--border-distress);
  padding: clamp(22px, 3.2vw, 38px);
  margin-bottom: 34px;
  position: relative;
  overflow: hidden;
}

.bounty-banner::after {
  content: '3B';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 9.5rem);
  color: rgba(var(--accent-rgb), 0.05);
  pointer-events: none;
  line-height: 1;
}

.bounty-label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--ivory-muted);
  margin-bottom: 8px;
}

.bounty-amount {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.8vw, 6.2rem);
  line-height: 0.95;
  color: var(--ivory);
  display: flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: 0.02em;
}

.berry-symbol {
  color: var(--lime);
}

.berry-dash {
  color: var(--ivory-muted);
}

.bounty-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--ivory-muted);
}

.techniques-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-tab {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: rgba(14, 14, 14, 0.85);
  border: 1px solid var(--border-distress);
  color: var(--ivory-muted);
  text-align: left;
  cursor: pointer;
  transition: all 0.22s ease;
}

.tech-tab:hover {
  border-color: rgba(240, 237, 230, 0.4);
  color: var(--ivory);
}

.tech-tab.active {
  background: rgba(var(--accent-rgb), 0.09);
  border-color: var(--lime);
  color: var(--ivory);
}

.tech-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--lime);
}

.tech-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.04em;
}

.tech-jp {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.75;
}

.tech-detail-panel {
  background: rgba(15, 15, 15, 0.92);
  border: 1px solid var(--border-distress);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.panel-pop {
  animation: panelPop 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes panelPop {
  0% { opacity: 0.4; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.td-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.td-jp {
  font-family: var(--font-jp);
  font-weight: 700;
  color: var(--ivory-muted);
}

.td-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  line-height: 1;
  color: var(--ivory);
  letter-spacing: 0.02em;
}

.td-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ivory-muted);
}

.td-metrics {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-distress);
}

.metric-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--ivory-muted);
  margin-bottom: 6px;
}

.metric-bar {
  width: 100%;
  height: 6px;
  background: rgba(240, 237, 230, 0.08);
  overflow: hidden;
}

.metric-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--lime-bright));
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   /4 — GEAR EVOLUTION SECTION
   ========================================================= */
.gear-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.gear-btn {
  padding: 14px 12px;
  background: rgba(14, 14, 14, 0.88);
  border: 1px solid var(--border-distress);
  color: var(--ivory-muted);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.22s ease;
}

.gear-btn:hover {
  color: var(--ivory);
  border-color: rgba(240, 237, 230, 0.4);
}

.gear-btn.active {
  background: var(--lime);
  color: var(--bg-void);
  border-color: var(--lime);
}

.gear-stage-card {
  position: relative;
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid var(--border-distress);
  padding: clamp(26px, 4vw, 48px);
  overflow: hidden;
}

.gear-bg-num {
  position: absolute;
  right: clamp(16px, 3vw, 40px);
  top: 10px;
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 12rem);
  line-height: 0.9;
  color: rgba(240, 237, 230, 0.04);
  pointer-events: none;
  user-select: none;
}

.gear-card-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.gear-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

.gear-jp-tag {
  font-family: var(--font-jp);
  font-weight: 700;
  color: var(--ivory-muted);
}

.gear-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1;
  color: var(--ivory);
  margin-bottom: 14px;
}

.gear-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ivory-muted);
  margin-bottom: 28px;
}

.gear-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border-distress);
}

.spec-k {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--lime);
  margin-bottom: 6px;
}

.spec-v {
  font-size: 0.85rem;
  color: var(--ivory);
  line-height: 1.5;
}

.site-footer {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--border-distress);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--ivory-muted);
}

.footer-quote {
  color: var(--ivory);
}

.back-top {
  text-decoration: none;
  font-weight: 700;
}

.back-top:hover {
  text-decoration: underline;
}

.creator-bar {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(240, 237, 230, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--ivory-muted);
}

.creator-name strong {
  color: var(--ivory);
  font-weight: 700;
}

.creator-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.creator-link {
  color: var(--lime);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s ease, text-shadow 0.2s ease;
}

.creator-link:hover {
  text-decoration: underline;
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
}

/* =========================================================
   INK-WIPE PAGE TRANSITION, EDGE ARROWS & CLEAN POSTER HUD
   ========================================================= */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #050505;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.34s cubic-bezier(0.77, 0, 0.175, 1);
  border-top: 3px solid var(--lime);
}

.page-transition.is-leaving {
  transform: scaleY(1);
}

.edge-nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 26;
  width: 38px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.58);
  border: 1px solid rgba(240, 237, 230, 0.14);
  color: var(--ivory-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 1rem;
  backdrop-filter: blur(6px);
  opacity: 0.55;
  transition: all 0.24s ease;
}

.edge-nav-arrow:hover {
  opacity: 1;
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(14, 14, 14, 0.92);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.24);
}

.edge-prev {
  left: clamp(8px, 1.2vw, 18px);
}

.edge-next {
  right: clamp(8px, 1.2vw, 18px);
}

/* Clean Poster / HUD-Hide Mode */
body.hud-hidden .hud-dock {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.hud-hidden .hud-dock > :not(#hud-toggle),
body.hud-hidden .slide-rail,
body.hud-hidden .edge-nav-arrow,
body.hud-hidden .scroll-cue {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.hud-hidden #hud-toggle {
  opacity: 0.36;
  background: rgba(12, 12, 12, 0.7);
}

body.hud-hidden #hud-toggle:hover {
  opacity: 1;
}

/* =========================================================
   CREW GALLERY HUB (crew.html)
   ========================================================= */
.gallery-section {
  padding-top: clamp(44px, 7vh, 72px);
  padding-bottom: clamp(88px, 12vh, 130px);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-btn {
  padding: 9px 16px;
  background: rgba(14, 14, 14, 0.88);
  border: 1px solid var(--border-distress);
  color: var(--ivory-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--ivory);
  border-color: rgba(240, 237, 230, 0.45);
}

.filter-btn.active {
  background: var(--lime);
  color: var(--bg-void);
  border-color: var(--lime);
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gallery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #0b0b0b;
  border: 1px solid var(--border-distress);
  text-decoration: none;
  color: var(--ivory);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-accent, var(--lime));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.85), 0 0 24px rgba(var(--card-rgb, 101, 232, 48), 0.18);
}

.gallery-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.gallery-toolbar .gallery-filters {
  margin-bottom: 0;
}

.gallery-view-switch {
  display: flex;
  gap: 6px;
}

.gallery-grid.is-wanted-mode {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.gallery-grid.is-wanted-mode .gallery-thumb-wrap {
  aspect-ratio: 2 / 3;
  padding: 10px;
  background: radial-gradient(circle, rgba(214, 184, 132, 0.1) 0%, #090909 80%);
}

.gallery-grid.is-wanted-mode .gallery-thumb {
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.88));
}

.gallery-grid.is-wanted-mode .gc-name {
  font-size: 1.12rem;
}

@media (max-width: 1120px) {
  .gallery-grid.is-wanted-mode {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-card:hover .gallery-thumb {
  transform: scale(1.045);
}

.gallery-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--border-distress);
}

.gc-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gc-role {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: var(--card-accent, var(--lime));
}

.gc-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.gc-bounty {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ivory-muted);
}

.gc-play-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(var(--card-rgb, 101, 232, 48), 0.55);
  background: rgba(6, 6, 6, 0.8);
  backdrop-filter: blur(10px);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gc-play-btn svg {
  width: 11px;
  height: 11px;
  display: block;
}

.gc-play-btn:hover,
.gallery-card.is-playing .gc-play-btn {
  background: var(--card-accent, var(--lime));
  color: var(--bg-void);
  transform: scale(1.04);
}

.gallery-card.is-playing {
  border-color: var(--card-accent, var(--lime));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9), 0 0 28px rgba(var(--card-rgb, 101, 232, 48), 0.28);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 920px) {
  .awakening-grid,
  .techniques-layout,
  .render-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gear-specs,
  .member-meta-grid {
    grid-template-columns: 1fr;
  }

  .crew-pages-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .slide-rail,
  .edge-nav-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: 100svh;
    height: 100svh;
  }

  .luffy-artwork-wrap {
    width: 98vw;
  }

  .gear-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .gear-selector .gear-btn:last-child {
    grid-column: span 2;
  }

  .drums-label {
    display: none;
  }

  .hud-left {
    gap: 8px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sh-right {
    text-align: left;
  }
}
