/* ==========================================================================
   TAHIRO.MIKATA — CYBER-ANIME NOIR & LUXURY GLASS DESIGN SYSTEM
   Aesthetic: Neon Sakura, Deep Obsidian, Japanese Cyber-Aesthetics
   ========================================================================== */

:root {
  /* Dark Substrates */
  --bg-primary: #05050D;
  --bg-secondary: #0B0818;
  --bg-tertiary: #130E26;
  --bg-card: rgba(19, 14, 38, 0.65);
  --bg-card-hover: rgba(28, 20, 56, 0.85);
  --bg-glass: rgba(14, 11, 28, 0.6);
  --bg-glass-heavy: rgba(7, 6, 15, 0.88);

  /* Vivid Accents */
  --accent-sakura: #FF2A85;
  --accent-sakura-glow: rgba(255, 42, 133, 0.35);
  --accent-rose: #FF0055;
  --accent-cyan: #00F0FF;
  --accent-cyan-glow: rgba(0, 240, 255, 0.3);
  --accent-violet: #8B5CF6;
  --accent-purple: #A855F7;
  --accent-gold: #FFD166;
  --accent-emerald: #00FF9D;

  /* Gradients */
  --grad-sakura-cyan: linear-gradient(135deg, #FF2A85 0%, #8B5CF6 50%, #00F0FF 100%);
  --grad-sakura-glow: linear-gradient(135deg, #FF007A 0%, #7928CA 100%);
  --grad-neon-title: linear-gradient(135deg, #FFFFFF 0%, #FFD6E8 40%, #FF2A85 100%);
  --grad-cyan-title: linear-gradient(135deg, #FFFFFF 0%, #D4F4FF 40%, #00F0FF 100%);
  --grad-card-border: linear-gradient(135deg, rgba(255, 42, 133, 0.3) 0%, rgba(139, 92, 246, 0.15) 50%, rgba(0, 240, 255, 0.3) 100%);
  --grad-border-idle: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);

  /* Text */
  --text-main: #F8FAFC;
  --text-muted: #A5B4CB;
  --text-dim: #6B7280;
  --text-sakura: #FF758C;
  --text-cyan: #38BDF8;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 42, 133, 0.5);
  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow-sakura: 0 0 35px rgba(255, 42, 133, 0.25);
  --shadow-glow-cyan: 0 0 30px rgba(0, 240, 255, 0.2);
  --shadow-modal: 0 25px 70px -15px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 42, 133, 0.2);

  /* Typography */
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container-max: 1320px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Selection */
::selection {
  background: rgba(255, 42, 133, 0.35);
  color: #FFFFFF;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 42, 133, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-sakura);
}

/* ==========================================================================
   BACKGROUND CYBER-GRID & NOISE OVERLAY
   ========================================================================== */

.cyber-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cyber-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 85%);
}

.ambient-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.18;
  pointer-events: none;
}

.glow-1 {
  top: -200px;
  left: 10%;
  background: radial-gradient(circle, var(--accent-sakura) 0%, rgba(255, 42, 133, 0) 70%);
  animation: floatOrb 22s infinite alternate ease-in-out;
}

.glow-2 {
  top: 45%;
  right: -200px;
  background: radial-gradient(circle, var(--accent-violet) 0%, rgba(139, 92, 246, 0) 70%);
  animation: floatOrb 28s infinite alternate-reverse ease-in-out;
}

.glow-3 {
  bottom: -100px;
  left: 30%;
  background: radial-gradient(circle, var(--accent-cyan) 0%, rgba(0, 240, 255, 0) 70%);
  animation: floatOrb 25s infinite alternate ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.15); }
  100% { transform: translate(-50px, 60px) scale(0.95); }
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-sakura);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--accent-sakura);
  transition: transform 0.08s ease;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 42, 133, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}

.cursor-ring.active {
  width: 58px;
  height: 58px;
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.text-gradient {
  background: var(--grad-neon-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: var(--grad-cyan-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.font-mono {
  font-family: var(--font-mono);
}

.kanji-badge {
  font-family: 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  color: var(--accent-sakura);
  letter-spacing: 0.15em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-sakura);
  background: rgba(255, 42, 133, 0.1);
  border: 1px solid rgba(255, 42, 133, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-sakura);
  box-shadow: 0 0 8px var(--accent-sakura);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 20px;
  font-weight: 800;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
}

.section-header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

.text-center {
  text-align: center;
}

/* Glass Card System */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 42, 133, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-sakura);
}

.glass-card:hover::before {
  opacity: 1;
}

/* ==========================================================================
   BUTTONS & CTAS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--grad-sakura-cyan);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(255, 42, 133, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(255, 42, 133, 0.65);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-sakura);
  color: var(--accent-sakura);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 42, 133, 0.25);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-normal);
}

.site-header.scrolled {
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  height: 70px;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #FFFFFF;
}

.logo-glyph {
  width: 38px;
  height: 38px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-glyph svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(255, 42, 133, 0.6));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  line-height: 1;
}

.brand-title span {
  color: var(--accent-sakura);
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--grad-sakura-cyan);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-sakura);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-telemetry-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 42, 133, 0.1);
  border: 1px solid rgba(255, 42, 133, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-sakura);
}

.status-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-sakura);
  box-shadow: 0 0 8px var(--accent-sakura);
  animation: pulseDot 1.5s infinite;
}

/* Audio button */
.audio-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.audio-toggle-btn:hover,
.audio-toggle-btn.playing {
  border-color: var(--accent-sakura);
  color: var(--accent-sakura);
  background: rgba(255, 42, 133, 0.12);
  box-shadow: 0 0 15px rgba(255, 42, 133, 0.35);
}

/* Language switch */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn.active {
  background: var(--accent-sakura);
  color: #FFFFFF;
  box-shadow: 0 0 10px var(--accent-sakura-glow);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-subtle);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: 80px 30px 40px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-sakura);
}

/* ==========================================================================
   HERO SECTION (CYBER-SAKURA & FLAGSHIP TITLE)
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

#heroCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hero-content-wrapper .hero-interactive {
  pointer-events: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-text-block {
  max-width: 680px;
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 40px;
}

/* Hero Feature Showcase Card */
.hero-feature-card {
  background: rgba(13, 10, 26, 0.8);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 42, 133, 0.3);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 42, 133, 0.15);
  position: relative;
  overflow: hidden;
}

.hfc-badge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hfc-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 42, 133, 0.15);
  color: var(--accent-sakura);
  border: 1px solid rgba(255, 42, 133, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.hfc-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.hfc-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.hfc-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.hfc-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.hfc-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.hfc-stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.hfc-stat-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-top: 2px;
}

/* ==========================================================================
   METRICS BANNER / MEDIA STATS
   ========================================================================== */

.metrics-ticker-section {
  position: relative;
  z-index: 2;
  background: rgba(11, 8, 24, 0.9);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 26px 0;
  backdrop-filter: blur(15px);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 42, 133, 0.1);
  border: 1px solid rgba(255, 42, 133, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sakura);
  flex-shrink: 0;
}

.metric-data {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}

.metric-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   ANIME AI MINI-CHAT SECTION
   ========================================================================== */

.section-anime-chat {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.chat-portal-wrapper {
  background: rgba(11, 8, 24, 0.95);
  border: 1px solid rgba(255, 42, 133, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 42, 133, 0.15);
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 620px;
}

/* Left: Characters Roster */
.chat-roster-pane {
  background: rgba(7, 5, 16, 0.9);
  border-right: 1px solid var(--border-subtle);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.roster-header-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-sakura);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.character-card-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
  width: 100%;
}

.character-card-btn:hover,
.character-card-btn.active {
  background: rgba(255, 42, 133, 0.12);
  border-color: var(--accent-sakura);
  transform: translateX(4px);
  box-shadow: 0 0 20px rgba(255, 42, 133, 0.2);
}

.char-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--accent-sakura);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255, 42, 133, 0.3);
}

.char-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.char-avatar .status-beacon {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid #000;
  z-index: 2;
}

.char-info {
  display: flex;
  flex-direction: column;
}

.char-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.char-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Right: Active Chat Arena */
.chat-arena-pane {
  display: flex;
  flex-direction: column;
  background: rgba(13, 9, 28, 0.75);
}

.chat-arena-header {
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.active-char-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-messages-container {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 400px;
}

.chat-msg {
  display: flex;
  gap: 12px;
  max-width: 82%;
  animation: fadeInMsg 0.3s ease;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-bubble {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.6;
}

.chat-msg.bot .msg-bubble {
  background: rgba(25, 18, 48, 0.9);
  border: 1px solid rgba(255, 42, 133, 0.25);
  color: #FFFFFF;
  border-bottom-left-radius: 4px;
}

.chat-msg.user .msg-bubble {
  background: var(--grad-sakura-glow);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(255, 0, 122, 0.3);
}

.msg-time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Quick prompt chips */
.chat-chips-row {
  display: flex;
  gap: 8px;
  padding: 8px 24px;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.chat-chip:hover {
  border-color: var(--accent-sakura);
  color: var(--accent-sakura);
  background: rgba(255, 42, 133, 0.1);
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 18px 24px;
  background: rgba(7, 5, 16, 0.95);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 12px;
}

.chat-input {
  flex: 1;
  background: rgba(25, 18, 48, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.95rem;
  color: #FFFFFF;
  outline: none;
  transition: var(--transition-fast);
}

.chat-input:focus {
  border-color: var(--accent-sakura);
  box-shadow: 0 0 15px rgba(255, 42, 133, 0.25);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-sakura);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* ==========================================================================
   VOICE ACTING STUDIO & AUDIO PLAYER SECTION
   ========================================================================== */

.section-voice-studio {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.voice-studio-container {
  background: rgba(13, 9, 28, 0.92);
  border: 1px solid rgba(255, 42, 133, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.voice-player-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.wave-visualizer-box {
  background: rgba(7, 5, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

#voiceVisualizerCanvas {
  width: 100%;
  height: 140px;
  display: block;
}

.voice-track-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voice-track-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-fast);
}

.voice-track-item:hover,
.voice-track-item.active {
  background: rgba(255, 42, 133, 0.12);
  border-color: var(--accent-sakura);
  transform: translateX(4px);
}

.track-play-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 42, 133, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sakura);
}

/* ==========================================================================
   MANGA & WEBTOON SHOWCASE
   ========================================================================== */

.section-manga {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.manga-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.manga-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition-normal);
}

.manga-cover-art {
  height: 320px;
  background: linear-gradient(180deg, rgba(255, 42, 133, 0.15) 0%, rgba(13, 9, 28, 0.9) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.manga-cover-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  transition: transform 0.5s ease;
}

.manga-card:hover .manga-cover-art::before {
  transform: scale(1.08);
}

.manga-genre-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(7, 5, 16, 0.85);
  color: var(--accent-sakura);
  border: 1px solid rgba(255, 42, 133, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.manga-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.manga-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.manga-synopsis {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

/* ==========================================================================
   RELEASE CALENDAR / DUB SCHEDULE
   ========================================================================== */

.section-calendar {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.calendar-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.cal-day-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cal-day-btn.active {
  background: var(--accent-sakura);
  color: #FFFFFF;
  border-color: var(--accent-sakura);
  box-shadow: 0 0 15px var(--accent-sakura-glow);
}

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

.release-card {
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.rel-time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.rel-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(0, 255, 178, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 255, 178, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.rel-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.rel-dubbers {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.rel-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.rel-progress-fill {
  height: 100%;
  background: var(--grad-sakura-cyan);
}

/* ==========================================================================
   CASTING & COMMUNITY TERMINAL
   ========================================================================== */

.section-casting {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.casting-container {
  background: rgba(11, 8, 24, 0.95);
  border: 1px solid rgba(255, 42, 133, 0.3);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.casting-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  background: rgba(25, 18, 48, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #FFFFFF;
  outline: none;
  transition: var(--transition-fast);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-sakura);
  box-shadow: 0 0 15px rgba(255, 42, 133, 0.25);
}

/* ==========================================================================
   MODALS (MANGA READER & SUCCESS)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 2, 8, 0.9);
  backdrop-filter: blur(14px);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  max-width: 840px;
  width: 100%;
  padding: 36px;
  box-shadow: var(--shadow-modal);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-backdrop.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 2;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-sakura);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid,
  .chat-portal-wrapper,
  .voice-player-layout,
  .casting-container {
    grid-template-columns: 1fr;
  }
  .manga-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .releases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .d-none-mobile {
    display: none !important;
  }
  .metrics-row,
  .manga-grid,
  .releases-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}
