/* --- Core Design System & Variables --- */
:root {
  --bg-color: #0d0d0f;
  --font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-color: #f3f4f6;
  --text-muted: #9ca3af;
  --card-bg-color: rgba(22, 22, 26, 0.75);
  --header-bg-color: rgba(13, 13, 15, 0.85);
  --header-text-color: #f3f4f6;
  --footer-bg-color: #060608;
  --footer-text-color: #f3f4f6;
  --primary-color: #a855f7;
  /* Neon Purple */
  --primary-glow: rgba(168, 85, 247, 0.4);
  --accent-color: #f59e0b;
  /* Military Gold */
  --accent-glow: rgba(245, 158, 11, 0.4);
  --border-color: rgba(168, 85, 247, 0.2);
  --shadow-color: rgba(0, 0, 0, 0.5);

  --loader-bg: #0d0d0f;
  --loader-ring: rgba(168, 85, 247, 0.1);
  --loader-spinner: #a855f7;
}



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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* Glassmorphic Panel Base */
.glass-panel {
  background: var(--card-bg-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 var(--shadow-color);
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 12px 40px 0 rgba(168, 85, 247, 0.15);
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.25rem 2rem;
  transition: all 0.3s ease;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--header-text-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
}

nav a:hover::after {
  width: 100%;
}

/* Main Layout */
main {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Visual Frame Placeholder (The "Nicely Blank" Slot) */
.visual-frame-container {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.visual-frame {
  position: relative;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed rgba(168, 85, 247, 0.4);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.visual-frame:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Profile image ratio 3:4 */
.image-slot {
  aspect-ratio: 3 / 4;
}

/* Video ratio 16:9 */
.video-slot {
  aspect-ratio: 16 / 9;
}

.frame-content {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  pointer-events: none;
}

.frame-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  animation: pulse-glow 2s infinite ease-in-out;
}

.frame-label {
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.frame-hint {
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Hidden visual content that shows if files exist */
.visual-frame img,
.visual-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* Hero Content */
.rank-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(245, 158, 11, 0.2));
  border: 1px solid var(--primary-color);
  color: var(--text-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.character-name {
  font-size: 3rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.2rem;
}

.pronouns {
  font-size: 1.1rem;
  font-weight: 600;
  color: rebeccapurple;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

@media (max-width: 576px) {
  .profile-details-grid {
    grid-template-columns: 1fr;
  }
}

.detail-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
}

.detail-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.detail-value {
  font-weight: 700;
  color: var(--text-color);
}

/* Two Column Layout */
.two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .two-column-grid {
    grid-template-columns: 1fr;
  }
}

/* Likes/Interests Tags */
.likes-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.like-tag {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Event Timeline Section */
.event-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.event-item:hover {
  transform: translateX(5px);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
}

.event-item h3 {
  color: var(--accent-color);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.event-item ul {
  list-style: none;
}

.event-item li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.event-item li strong {
  color: var(--text-color);
}

/* Blog Section */
.blog-post {
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
  display: flex;
  gap: 1.5rem;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post-content h3 {
  font-size: 1.35rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.blog-post-content small {
  color: var(--text-muted);
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
}

.blog-post-content p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* Custom Contact Form */
#message-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 1.5rem auto 0;
}

#message-form input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  color: var(--text-color);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

#message-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-glow);
}

#message-form button {
  background: linear-gradient(135deg, var(--primary-color), #7c3aed);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

#message-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

/* Footer styling */
footer {
  background-color: var(--footer-bg-color);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
  text-align: center;
  margin-top: 5rem;
}

.footer-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* Loading animation styles */
#loader-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--loader-bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid var(--loader-ring);
  border-top-color: var(--loader-spinner);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px var(--primary-glow);
}

.loader-text {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Theme Switch UI (Devil Mode) */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 48px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #2a2a35;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
  background-color: #fff;
  bottom: 3px;
  content: "";
  height: 16px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 16px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

input:checked+.slider {
  background-color: #ff0055;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
  border: 1px solid rgba(255, 0, 85, 0.5);
}

input:checked+.slider:before {
  transform: translateX(24px);
  background-color: #ffe6eb;
}

/* Umitsuki-style Devil Glassmorphism Overrides */
/* Umitsuki-style Devil Glassmorphism Overrides */
[data-theme="devil"] .glass-panel {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(135deg, rgba(20, 5, 30, 0.7) 0%, rgba(5, 0, 10, 0.9) 100%);
  border: 1px solid rgba(255, 0, 85, 0.2);
  box-shadow: 0 8px 32px 0 rgba(157, 0, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

[data-theme="devil"] .glass-panel:hover {
  border: 1px solid rgba(255, 0, 85, 0.5);
  box-shadow: 0 12px 40px 0 rgba(255, 0, 85, 0.3);
  transform: translateY(-2px);
}

[data-theme="devil"] header {
  background-color: rgba(10, 2, 15, 0.6);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 0, 85, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* --- Umitsuki Layout Structure --- */
.umitsuki-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Sections handle their own spacing */
  align-items: center;
  width: 100%;
}

.umi-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Titles */
.umi-title-box {
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 0.5rem 3rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.umi-title-box h2 {
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.umi-section-title {
  font-size: 2rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.umi-section-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

/* Hero */
.umi-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 2rem;
  gap: 2rem;
}

.umi-hero-left {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.umi-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-family: serif;
  font-style: italic;
  text-shadow: 0 0 20px var(--primary-glow);
  margin-bottom: 1rem;
}

.umi-hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  max-width: 300px;
}

.umi-hero-right {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.umi-hero-img-container {
  position: relative;
  max-width: 500px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /* Align character to the bottom */
}

.umi-hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  z-index: 0;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.umi-hero-img {
  position: relative;
  width: 90%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(157, 0, 255, 0.4));
  z-index: 1;
}

/* Buttons */
.umi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: #fff;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  background: linear-gradient(90deg, rgba(255, 0, 85, 0.6) 0%, rgba(157, 0, 255, 0.6) 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.umi-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 85, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.4);
  background: linear-gradient(90deg, rgba(255, 0, 85, 0.8) 0%, rgba(157, 0, 255, 0.8) 100%);
}

.capsule-btn {
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
}

.rounded-btn {
  border-radius: 30px;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
}

.btn-icon {
  margin-right: 0.5rem;
  display: flex;
}

/* About Section */
.umi-about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
}

.umi-about-img-container {
  flex: 0 0 300px;
}

.umi-about-icon {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 0 30px var(--primary-glow);
}

.umi-about-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.umi-about-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.umi-about-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

/* News Section */
.umi-news-list {
  width: 100%;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 3rem;
}

.umi-goals-area {
  width: 100%;
  max-width: 800px;
}

.umi-goals-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 auto 1.5rem;
  display: inline-block;
}

.umi-goals-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.umi-goals-list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.umi-goals-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Gallery Section */
.umi-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
}

.umi-gallery-item {
  border: 4px solid #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.umi-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.umi-gallery-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.umi-logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

/* Contact */
.umi-contact-content {
  text-align: center;
  padding: 2rem;
}

.umi-contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Simple entry animation */
.animate-fade-in {
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}