:root {
  /* Color Palette - Modern High Contrast (oklch) */
  --bg-color: oklch(15% 0.02 250);
  --surface-color: oklch(25% 0.03 250);
  --primary-color: oklch(75% 0.18 150); /* Vibrant Green */
  --secondary-color: oklch(70% 0.2 250); /* Electric Blue */
  --accent-color: oklch(85% 0.2 80);   /* Neon Gold */
  --text-primary: oklch(98% 0.01 250);
  --text-secondary: oklch(85% 0.02 250);
  
  /* Effects */
  --glow-shadow: 0 0 20px oklch(75% 0.18 150 / 0.3);
  --deep-shadow: 0 10px 30px oklch(0% 0 0 / 0.5);
  --noise-filter: 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");

  /* Layout */
  --container-max-width: 1200px;
  --section-spacing: clamp(2rem, 8vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  word-break: keep-all; /* Better for Korean mobile text breaking */
}

/* Noise Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--noise-filter);
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

.container {
  width: 92%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  text-wrap: balance;
}

/* Header & Nav */
header {
  background: oklch(15% 0.02 250 / 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid oklch(100% 0 0 / 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: clamp(1.2rem, 5vw, 2rem);
  color: var(--primary-color);
  text-shadow: var(--glow-shadow);
}

nav ul {
  display: flex;
  list-style: none;
  gap: clamp(1rem, 3vw, 2rem);
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  text-transform: uppercase;
  transition: color 0.3s ease;
  white-space: nowrap;
}

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

/* Hero Section */
#hero {
  padding: clamp(4rem, 15vw, 8rem) 0;
  text-align: center;
  background: radial-gradient(circle at center, oklch(30% 0.1 150 / 0.2), transparent);
}

#hero h2 {
  font-size: clamp(2.5rem, 12vw, 5rem);
  margin-bottom: 1rem;
  background: linear-gradient(to bottom, var(--text-primary), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

#hero p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--text-secondary);
}

/* Section Common */
section {
  padding: var(--section-spacing) 0;
  container-type: inline-size;
}

h3 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  margin-bottom: 2rem;
  border-left: 5px solid var(--primary-color);
  padding-left: 1rem;
}

/* Grid Layout */
.grid {
  display: grid;
  gap: clamp(1rem, 4vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

/* Video Wrapper */
.video-wrapper {
  background: var(--surface-color);
  border-radius: clamp(12px, 3vw, 20px);
  overflow: hidden;
  border: 1px solid oklch(100% 0 0 / 0.1);
  box-shadow: var(--deep-shadow);
  width: 100%;
  position: relative;
}

.video-wrapper video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(to bottom, var(--text-primary), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.match-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.back-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  transition: opacity 0.3s ease;
}

.back-link:hover {
  opacity: 0.8;
}

.description-box {
  background: var(--surface-color);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border-radius: 12px;
  border: 1px solid oklch(100% 0 0 / 0.1);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  word-break: keep-all;
}

/* Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid oklch(100% 0 0 / 0.1);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  nav ul {
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .container {
    width: 95%;
  }
}
