/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --color-bg-deep: #0a0a0c;
  --color-bg-surface: #121216;
  --color-bg-elevated: #1a1a22;
  --color-text-main: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-primary: #a81b36;       /* Deep Plum Red */
  --color-primary-glow: #e11d48;  /* Glowing Rose Red */
  --color-secondary: #6d28d9;     /* Violet */
  --color-accent: #06b6d4;        /* Cyan Cyber */
  --color-neon-border: rgba(168, 27, 54, 0.4);
  
  --font-family-sys: 'Outfit', sans-serif;
  --font-family-ja: 'Noto Serif JP', 'Zen Kaku Gothic New', serif;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* Chrome scroll bug fix: overflow-x must be on html, not just body */
}

body {
  background-color: var(--color-bg-deep);
  color: var(--color-text-main);
  font-family: var(--font-family-sys), var(--font-family-ja);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-glow);
}

/* ==========================================================================
   VISUAL EFFECTS OVERLAYS
   ========================================================================== */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.3;
}

.noise-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  z-index: 9998;
  pointer-events: none;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

p {
  color: var(--color-text-muted);
}

.highlight {
  color: transparent;
  background: linear-gradient(135deg, var(--color-primary-glow), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 30px rgba(225, 29, 72, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-family-sys);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  font-size: 0.85rem;
}

.btn i {
  margin-right: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(168, 27, 54, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(225, 29, 72, 0.6);
  background: linear-gradient(135deg, var(--color-primary-glow), var(--color-secondary));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary-glow);
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.2);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
  transition: background var(--transition-fast);
}

.header-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-family-sys);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--color-primary-glow);
  font-size: 0.9rem;
  margin-left: 2px;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-family-sys);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary-glow);
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(225, 29, 72, 0.5);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--color-text-main);
  transition: all var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  overflow: hidden;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.1);
  transform: scale(1.05);
  animation: bgPulse 20s infinite alternate ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 20%, var(--color-bg-deep) 90%),
              linear-gradient(to top, var(--color-bg-deep) 5%, transparent 60%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  margin-top: 60px;
}

.hero-subtitle {
  font-family: var(--font-family-sys);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--color-primary-glow);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(225, 29, 72, 0.4);
  font-weight: 600;
  animation: blink 2s infinite;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.25;
  margin-bottom: 2rem;
  font-family: var(--font-family-ja);
  font-weight: 900;
}

.hero-description {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-family-sys);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

.mouse-icon {
  width: 20px;
  height: 35px;
  border: 2px solid var(--color-text-muted);
  border-radius: 10px;
  position: relative;
}

.mouse-icon .wheel {
  width: 4px;
  height: 8px;
  background-color: var(--color-primary-glow);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

/* ==========================================================================
   SECTION COMMONS
   ========================================================================== */
section {
  padding: 8rem 2rem;
  position: relative;
  scroll-margin-top: 80px; /* Fixed header offset */
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
}

.section-tag {
  font-family: var(--font-family-sys);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--color-primary-glow);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  font-family: var(--font-family-sys);
}

.title-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary-glow), var(--color-secondary));
  margin-top: 1rem;
}

/* ==========================================================================
   CHARACTER / PROFILE SECTION
   ========================================================================== */
.profile-section {
  background-color: var(--color-bg-surface);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.profile-image-wrap {
  position: relative;
}

.glitch-img-container {
  position: relative;
  border: 1px solid var(--color-neon-border);
  background: var(--color-bg-elevated);
  border-radius: 4px;
  overflow: hidden;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.profile-main-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform var(--transition-medium);
  object-fit: cover;
  object-position: top center;
  max-height: 520px;
}

.img-overlay-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(168, 27, 54, 0.02) 1px, transparent 1px),
              linear-gradient(90deg, rgba(168, 27, 54, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.status-panel {
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--color-primary);
  padding: 0.8rem 1.2rem;
  font-family: var(--font-family-sys);
  font-size: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.status-row {
  display: flex;
  gap: 0.5rem;
}

.status-row .label {
  color: var(--color-text-muted);
}

.status-row .val {
  color: var(--color-accent);
  font-weight: 600;
}

.profile-info-wrap {
  display: flex;
  flex-direction: column;
}

.profile-name-en {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  position: relative;
}

.profile-bio {
  font-size: 1.2rem;
  color: var(--color-text-main);
  font-family: var(--font-family-ja);
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--color-primary-glow);
  padding-left: 1rem;
}

.profile-desc-detail {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.analysis-title {
  font-family: var(--font-family-sys);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.hotspot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.hotspot-card {
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.2rem;
  text-align: left;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.hotspot-num {
  font-family: var(--font-family-sys);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary-glow);
  opacity: 0.8;
}

.hotspot-label {
  font-family: var(--font-family-ja);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.hotspot-card .icon {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

/* Hover effects */
.hotspot-card:hover {
  background: rgba(168, 27, 54, 0.15);
  border-color: var(--color-primary-glow);
  box-shadow: 0 0 20px rgba(168, 27, 54, 0.3);
}

.hotspot-card:hover .icon {
  transform: translateX(3px);
  color: var(--color-primary-glow);
}

/* ==========================================================================
   WORLDVIEW SECTION
   ========================================================================== */
.world-section {
  background-color: var(--color-bg-deep);
}

.world-content {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--color-bg-surface);
  border-radius: 4px;
  padding: 3rem;
}

.world-story h3 {
  font-family: var(--font-family-ja);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-main);
  letter-spacing: 0.1em;
}

.world-story p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 800px;
}

.world-graphic {
  width: 100%;
  margin-top: 2rem;
  border: 1px solid var(--color-neon-border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.city-preview {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.city-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) grayscale(0.2);
  transition: transform 10s ease;
}

.city-preview:hover img {
  transform: scale(1.05);
}

.overlay-scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3) 50%);
  background-size: 100% 4px;
  pointer-events: none;
}

/* ==========================================================================
   MOVIE SECTION
   ========================================================================== */
.movie-section {
  background-color: var(--color-bg-deep);
}

.movie-content {
  max-width: 900px;
  margin: 0 auto;
}

.movie-frame {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-neon-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(168, 27, 54, 0.15), 0 0 30px rgba(109, 40, 217, 0.1);
  display: flex;
  flex-direction: column;
}

.frame-header {
  background: var(--color-bg-elevated);
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-status {
  font-family: var(--font-family-sys);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.05em;
}

.status-dot-blink {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulse 1.5s infinite alternate;
}

.frame-controls {
  display: flex;
  gap: 0.5rem;
}

.frame-controls span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.frame-controls span:nth-child(1) { background: var(--color-primary-glow); }
.frame-controls span:nth-child(2) { background: var(--color-accent); }
.frame-controls span:nth-child(3) { background: var(--color-secondary); }

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.frame-footer {
  background: var(--color-bg-elevated);
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family-sys);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.left-status {
  color: var(--color-accent);
}

.right-status {
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SPECIAL SECTION
   ========================================================================== */
.special-section {
  background-color: var(--color-bg-surface);
}

.special-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
}

.special-card {
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-family: var(--font-family-sys);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-primary-glow);
  margin-bottom: 1rem;
  font-weight: 600;
}

.special-card h3 {
  font-family: var(--font-family-ja);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card-desc {
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Voice Player Custom */
.voice-player {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.play-btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(168, 27, 54, 0.4);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.6);
}

.play-btn:active {
  transform: scale(0.95);
}

.player-info {
  flex-grow: 1;
}

.track-title {
  font-family: var(--font-family-sys);
  font-size: 0.85rem;
  color: var(--color-text-main);
  display: block;
  margin-bottom: 0.5rem;
}

.progress-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, var(--color-primary-glow), var(--color-accent));
  transition: width 0.1s linear;
}

.time-display {
  font-family: var(--font-family-sys);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.transcript-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 1.2rem;
  flex-grow: 1;
  min-height: 100px;
  display: flex;
  flex-direction: column;
}

.sys-prefix {
  font-family: var(--font-family-sys);
  font-size: 0.7rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.transcript-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-main);
  font-family: var(--font-family-ja);
}

/* Schedule Block */
.schedule-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sch-item {
  background: rgba(0, 0, 0, 0.2);
  border-left: 2px solid var(--color-accent);
  padding: 1rem;
  border-radius: 0 4px 4px 0;
}

.sch-item .date {
  font-family: var(--font-family-sys);
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.sch-item .event {
  font-size: 0.9rem;
  color: var(--color-text-main);
  font-family: var(--font-family-ja);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  background-color: var(--color-bg-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-main);
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 1.2rem;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  font-size: 1.2rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--color-primary-glow);
  color: #fff;
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.5);
  transform: translateY(-3px);
}

.contact-form {
  background: var(--color-bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-family: var(--font-family-sys);
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.form-group input, .form-group textarea {
  width: 100%;
  background: var(--color-bg-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1rem;
  color: var(--color-text-main);
  border-radius: 4px;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary-glow);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: #050507;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   MODAL WINDOW STYLES
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

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

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 7, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-wrapper {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 900px;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-neon-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-medium);
}

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

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: var(--color-primary-glow);
  color: #fff;
  border-color: transparent;
  transform: rotate(90deg);
}

.modal-content {
  padding: 3rem;
  max-height: 85vh;
  overflow-y: auto;
}

/* Character Specific Modal Grid */
.modal-body-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.modal-image-viewport {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  background: var(--color-bg-elevated);
  overflow: hidden;
  height: 400px;
  width: 100%;
  position: relative;
}

.modal-crop-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Cropped image positioning will be configured dynamically via JS */
.modal-cropped-img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none; /* Crucial to allow sizing beyond viewport */
  transition: all var(--transition-medium);
}

.modal-text-content {
  display: flex;
  flex-direction: column;
}

.modal-tag {
  font-family: var(--font-family-sys);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
  font-family: var(--font-family-ja);
}

.modal-description {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--color-text-muted);
}

.modal-status-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-family-sys);
  font-size: 0.75rem;
  border-left: 2px solid var(--color-accent);
}

.status-indicator {
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulse 1.5s infinite alternate;
}

/* Schedule Modal Layout */
.schedule-modal-content {
  padding: 1rem 0;
}

.modal-intro-text {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.full-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.schedule-row {
  display: flex;
  gap: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  padding: 1.2rem;
  transition: all var(--transition-fast);
}

.schedule-row:hover {
  border-color: rgba(225, 29, 72, 0.2);
  background: rgba(168, 27, 54, 0.05);
}

.schedule-row.unavailable {
  opacity: 0.5;
  border-left: 2px solid var(--color-text-muted);
}

.sch-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 0.5rem;
}

.sch-date-box .day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-glow);
  line-height: 1;
}

.sch-date-box .month {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0.2rem 0;
}

.sch-date-box .dayname {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  text-align: center;
  padding-top: 0.2rem;
}

.sch-detail h4 {
  font-family: var(--font-family-ja);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.sch-detail p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes bgPulse {
  0% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes scrollWheel {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  80% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet styles */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .profile-image-wrap {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .special-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .modal-body-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .modal-image-viewport {
    height: 300px;
  }
  
  .city-preview {
    aspect-ratio: 16 / 9;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Navigation mobile menu */
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 100%;
    height: calc(100vh - 80px);
    text-align: center;
    transition: left var(--transition-medium);
    gap: 2rem;
    padding-top: 3rem;
    z-index: 99;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  /* Hero typography */
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    padding: 0 2rem;
  }
  
  .hotspot-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  .schedule-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .sch-date-box {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
    min-width: auto;
    padding: 0.5rem 1rem;
  }
  
  .sch-date-box .dayname {
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    width: auto;
    padding-top: 0;
    padding-left: 1rem;
  }
}

/* ==========================================================================
   FLOATING HOLOGRAM MASCOT
   ========================================================================== */
.hologram-assistant {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition-fast), opacity var(--transition-medium);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.hologram-assistant.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.hologram-assistant:hover {
  transform: scale(1.05);
}

.mascot-img-wrap {
  position: relative;
  width: 140px;
  height: 175px;
  animation: floatMascot 4s infinite ease-in-out;
}

.mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.4)) brightness(1.1);
  position: relative;
  z-index: 2;
}

.mascot-glow {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: rgba(6, 182, 212, 0.25);
  filter: blur(8px);
  border-radius: 50%;
  z-index: 1;
  animation: pulse 2s infinite alternate;
}

.bubble-chat {
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.15);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  margin-bottom: 0.8rem;
  max-width: 220px;
  position: relative;
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.hologram-assistant.show-bubble .bubble-chat,
.hologram-assistant:hover .bubble-chat {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.bubble-chat::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(18, 18, 22, 0.85);
  border-right: 1px solid rgba(6, 182, 212, 0.3);
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
}

.bubble-tag {
  font-family: var(--font-family-sys);
  font-size: 0.65rem;
  color: var(--color-accent);
  display: block;
  font-weight: 700;
  margin-bottom: 0.2rem;
  letter-spacing: 0.05em;
}

.bubble-text {
  font-family: var(--font-family-ja);
  font-size: 0.8rem;
  color: var(--color-text-main);
  line-height: 1.4;
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 768px) {
  .hologram-assistant {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .mascot-img-wrap {
    width: 100px;
    height: 125px;
  }
  .bubble-chat {
    max-width: 180px;
    padding: 0.5rem 0.8rem;
  }
}
