:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #111111;
  --secondary-text: #555555;
  --accent: #111111;
  --accent-muted: rgba(0, 0, 0, 0.08);
  --border: rgba(0, 0, 0, 0.1);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

.viewer {
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.status-indicator {
  position: fixed;
  top: clamp(1rem, 5vw, 2rem);
  left: clamp(1rem, 5vw, 2rem);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary-text);
  transition: background 0.3s ease;
}

.status-indicator.live {
  background: var(--text);
}

.status-indicator.connecting {
  background: rgba(0, 0, 0, 0.4);
}

.status-indicator.error {
  background: rgba(0, 0, 0, 0.2);
}

.columns-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

.column {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 2px solid var(--border);
}

.column:last-child {
  border-right: none;
}

.column-header {
  margin: 0;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 4vw, 2.5rem);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 0;
  z-index: 10;
}

.text-content {
  flex: 1;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow-y: auto;
  scroll-behavior: smooth;
  line-height: 1.8;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.english-column .text-content {
  font-weight: 600;
}

.korean-column .text-content {
  color: var(--secondary-text);
  font-weight: 500;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
  .columns-container {
    grid-template-columns: 1fr;
  }

  .column {
    border-right: none;
    border-bottom: 2px solid var(--border);
  }

  .column:last-child {
    border-bottom: none;
  }
}

.language-toggle {
  position: fixed;
  right: clamp(1rem, 5vw, 2rem);
  bottom: clamp(1rem, 5vw, 2rem);
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.language-toggle:active {
  transform: scale(0.97);
}

.partial-banner {
  position: fixed;
  right: clamp(1rem, 5vw, 2rem);
  bottom: clamp(4rem, 7vw, 6rem);
  max-width: 320px;
  padding: 0.75rem 1.2rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
  display: grid;
  gap: 0.3rem;
  font-size: 0.95rem;
}

.partial-banner .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.5);
}

.partial-banner .english {
  font-weight: 600;
}

.partial-banner .translation {
  color: var(--secondary-text);
}

@media (max-width: 600px) {
  .language-toggle {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .language-toggle:active {
    transform: translateX(-50%) scale(0.97);
  }

  .partial-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: clamp(5rem, 12vw, 6rem);
    max-width: min(90%, 320px);
  }
}
