/* ==========================================================================
   Tiki-Taka 3D Dating Coaching Web App Stylesheet (app.css)
   - Pretendard Variable + KRDS Korean Word-Break & Tabular Numerals
   - Zero Emoji / Zero Kicker Eyebrows / Zero Side-Tab Borders (>1px)
   - Fullscreen 3D VRM Viewport + High-Contrast Smoke Translucent Chat Overlay
   ========================================================================== */

:root {
  --bg-deep: #070b14;
  --surface-card: rgba(15, 23, 42, 0.76);
  --glass-panel: rgba(10, 15, 28, 0.54);
  --glass-bubble-partner: rgba(15, 23, 42, 0.74);
  --glass-bubble-user: rgba(37, 99, 235, 0.82);
  --glass-coach-warn: rgba(30, 27, 38, 0.84);
  --glass-coach-good: rgba(13, 148, 136, 0.22);

  --line-soft: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.26);

  --ink-bright: #f8fafc;
  --ink-body: #e2e8f0;
  --ink-muted: #cbd5e1;

  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-rose: #f43f5e;
  --accent-teal: #2dd4bf;
  --accent-amber: #fbbf24;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}

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

::selection {
  background-color: var(--accent-blue);
  color: #ffffff;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--ink-body);
  line-height: 1.6;
  letter-spacing: -0.015em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  caret-color: var(--accent-blue);
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink-bright);
  letter-spacing: -0.025em;
  line-height: 1.32;
  text-wrap: balance;
}

p {
  margin: 0;
}

button, input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 1.85;
  flex-shrink: 0;
}

/* ==========================================================================
   SCREEN 1: 1:1 Female vs Male 3D Spotlight Partner Selection Gate
   ========================================================================== */
.gate-screen {
  min-height: 100dvh;
  width: 100%;
  padding: 44px 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  background:
    radial-gradient(circle at 24% 28%, rgba(59, 130, 246, 0.18), transparent 46%),
    radial-gradient(circle at 76% 32%, rgba(244, 63, 94, 0.15), transparent 46%),
    linear-gradient(180deg, #0b1120 0%, #070b14 100%);
}

.gate-screen.is-hidden {
  display: none;
}

.gate-header {
  text-align: center;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gate-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.38rem);
  font-weight: 700;
}

.gate-header p {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.gate-grid {
  width: 100%;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.partner-card {
  background: var(--surface-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: left;
  padding: 0;
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.45);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.22s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 28px 56px rgba(2, 6, 23, 0.65);
}

.partner-portrait-wrap {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #1e293b 0%, #0f172a 100%);
  position: relative;
}

.partner-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.partner-card:hover .partner-portrait-wrap img {
  transform: scale(1.04);
}

.partner-scene-pill {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 15, 28, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-soft);
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--ink-bright);
}

.partner-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.partner-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.partner-title-row h2 {
  font-size: 1.42rem;
  font-weight: 700;
}

.partner-role {
  font-size: 0.86rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.partner-desc {
  font-size: 0.93rem;
  color: var(--ink-muted);
  line-height: 1.6;
  flex: 1;
}

.partner-cta {
  margin-top: 6px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background-color: var(--accent-blue);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.16s ease;
}

.partner-card:hover .partner-cta {
  background-color: var(--accent-blue-hover);
}

.gate-legal-note {
  font-size: 0.78rem;
  color: rgba(203, 213, 225, 0.65);
  text-align: center;
  max-width: 680px;
}

/* ==========================================================================
   SCREEN 2: Fullscreen 3D VRM Stage + Translucent Glass Chat Overlay
   ========================================================================== */
.stage-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 34%, var(--ambient-glow, #1e293b) 0%, #090d16 86%);
  transition: background 0.6s ease;
}

.stage-screen.is-hidden {
  display: none;
}

#vrmCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  cursor: grab;
}

#vrmCanvas:active {
  cursor: grabbing;
}

/* Loading Pill over 3D Stage */
.vrm-loading-pill {
  position: absolute;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(10, 15, 28, 0.76);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-soft);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-bright);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.vrm-loading-pill.is-done {
  opacity: 0;
}

/* Top Floating Minimal HUD */
.stage-top-hud {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  flex-wrap: wrap;
}

.glass-pill {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 15, 28, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-soft);
  color: var(--ink-bright);
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.glass-btn {
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.glass-btn:hover {
  background: rgba(30, 41, 59, 0.82);
  border-color: var(--line-strong);
}

.glass-icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
}

.glass-select {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: rgba(10, 15, 28, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-soft);
  color: var(--ink-bright);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.glass-select option {
  background-color: #0f172a;
  color: #f8fafc;
}

.temp-meter-bar {
  width: 68px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.temp-meter-fill {
  height: 100%;
  background: var(--accent-rose);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Bottom Translucent Chat Overlay (Never covers upper 56% Face Sightline!) */
.chat-glass-overlay {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(690px, calc(100vw - 28px));
  max-height: 43dvh;
  z-index: 15;
  display: flex;
  flex-direction: column;
  background: var(--glass-panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.52);
  overflow: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.chat-glass-overlay.is-minimized {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 24px);
}

.chat-stream {
  flex: 1;
  min-height: 120px;
  max-height: calc(43dvh - 108px);
  overflow-y: auto;
  padding: 18px 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 100%);
}

.msg-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 86%;
}

.msg-row.is-partner {
  align-self: flex-start;
}

.msg-row.is-user {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-bubble {
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.56;
  color: var(--ink-bright);
  border: 1px solid var(--line-soft);
}

.msg-row.is-partner .msg-bubble {
  background: var(--glass-bubble-partner);
  border-bottom-left-radius: 4px;
}

.msg-row.is-user .msg-bubble {
  background: var(--glass-bubble-user);
  border-color: rgba(96, 165, 250, 0.4);
  border-bottom-right-radius: 4px;
}

.msg-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.79rem;
  color: var(--ink-muted);
  padding: 0 4px;
}

.msg-replay-btn {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--ink-muted);
  font-size: 0.79rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.msg-replay-btn:hover {
  color: var(--ink-bright);
}

/* Inline Dating Coach Whisper & Recast Box */
.coach-inline-card {
  align-self: stretch;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--glass-coach-warn);
  border: 1px solid rgba(251, 191, 36, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.87rem;
}

.coach-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.coach-badge-title {
  font-weight: 700;
  color: var(--accent-amber);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.coach-rewind-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.14);
  color: var(--ink-bright);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.coach-rewind-btn:hover {
  background: rgba(251, 191, 36, 0.28);
}

.coach-reason {
  color: var(--ink-body);
  line-height: 1.52;
}

.coach-recast-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.coach-recast-chip {
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-bright);
  font-size: 0.85rem;
  line-height: 1.48;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.coach-recast-chip:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(96, 165, 250, 0.55);
}

.coach-praise-pill {
  align-self: flex-end;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--glass-coach-good);
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: var(--accent-teal);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Hint Drawer inside Chat Overlay */
.hint-drawer {
  margin: 0 14px 8px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid var(--line-soft);
  font-size: 0.86rem;
  color: var(--ink-body);
  display: none;
  flex-direction: column;
  gap: 8px;
}

.hint-drawer.is-open {
  display: flex;
}

/* Bottom Translucent Input Toolbar */
.chat-input-bar {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 11, 20, 0.38);
}

.hint-trigger-btn {
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-bright);
  font-size: 0.83rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.hint-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.chat-text-input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(15, 23, 42, 0.62);
  color: var(--ink-bright);
  font-size: 0.94rem;
}

.chat-text-input::placeholder {
  color: rgba(203, 213, 225, 0.72);
}

.chat-send-btn {
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: none;
  background-color: var(--accent-blue);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.chat-send-btn:hover {
  background-color: var(--accent-blue-hover);
}

.mic-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mic-btn.is-listening {
  border-color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.26);
  color: #fda4af;
}

@media (max-width: 760px) {
  .gate-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .chat-glass-overlay {
    bottom: 10px;
    width: calc(100vw - 16px);
    max-height: 46dvh;
  }
  .hint-trigger-label {
    display: none;
  }
}

/* ==========================================================================
   Developer Real-Time Voice Tuning Studio (?tuning=1 only)
   ========================================================================== */
@media (min-width: 1120px) {
  .stage-screen.is-tuning-mode .chat-glass-overlay {
    left: 24px;
    transform: none;
    width: min(560px, calc(100vw - 440px));
  }
  .stage-screen.is-tuning-mode .chat-glass-overlay.is-minimized {
    transform: translateY(24px);
  }
}

.voice-studio-panel {
  position: absolute;
  top: 66px;
  right: 20px;
  bottom: 18px;
  width: min(382px, calc(100vw - 28px));
  z-index: 26;
  padding: 16px 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(9, 14, 26, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.72);
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow-y: auto;
  font-size: 0.84rem;
}

.voice-studio-panel.is-hidden {
  display: none;
}

.vs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.vs-title {
  font-size: 0.96rem;
  color: var(--ink-bright);
  display: block;
}

.vs-sub {
  font-size: 0.77rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.vs-Loop-btn {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-bright);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.vs-Loop-btn.is-on {
  background: rgba(45, 212, 191, 0.22);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.vs-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.vs-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  color: var(--ink-body);
  font-size: 0.81rem;
}

.vs-val {
  color: var(--accent-teal);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.vs-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.vs-preset-btn {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-body);
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.vs-preset-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.vs-preset-btn.is-active {
  background: rgba(37, 99, 235, 0.34);
  border-color: #60a5fa;
  color: var(--ink-bright);
}

.vs-sample-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.vs-chip {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-muted);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.vs-chip.is-active {
  background: rgba(45, 212, 191, 0.2);
  border-color: var(--accent-teal);
  color: var(--ink-bright);
}

.vs-text-input {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(15, 23, 42, 0.72);
  color: var(--ink-bright);
  font-size: 0.82rem;
}

.vs-play-row {
  display: flex;
  gap: 6px;
}

.vs-action-btn {
  flex: 1;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-bright);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.vs-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.vs-action-btn.is-primary {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #ffffff;
}

.vs-action-btn.is-primary:hover {
  background: var(--accent-blue-hover);
}

.vs-sliders {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 11px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.vs-slider-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vs-slider-item input[type="range"] {
  width: 100%;
  accent-color: var(--accent-teal);
  cursor: pointer;
  margin: 0;
}

.vs-toggles-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vs-check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--ink-body);
  cursor: pointer;
}

.vs-style-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
}

.vs-select {
  flex: 1;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: #0f172a;
  color: var(--ink-bright);
  font-size: 0.8rem;
}

.vs-footer {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
}

.vs-save-btn {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.vs-save-btn:hover {
  background: var(--accent-blue-hover);
}

.vs-status-msg {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ==========================================================================
   [REA-VERIFIED] Ringle-Style Bilingual Subtitle, Paraphrase & Graduate UI
   ========================================================================== */
.msg-en-line {
  font-size: 0.96rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.5;
}

.msg-sub-ko {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.82rem;
  color: rgba(203, 213, 225, 0.86);
  line-height: 1.45;
  word-break: keep-all;
}

.stage-screen.hide-ko-sub .msg-sub-ko {
  display: none;
}

.mic-lang-chip {
  height: 40px;
  min-width: 38px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: rgba(37, 99, 235, 0.22);
  color: #e0f2fe;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.mic-lang-chip:hover {
  background: rgba(37, 99, 235, 0.38);
}

.ringle-card {
  align-self: stretch;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(251, 191, 36, 0.38);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.ringle-card.is-great {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(13, 33, 42, 0.72);
}

.ringle-card.is-graduated {
  border-color: rgba(45, 212, 191, 0.72);
  background: rgba(13, 42, 40, 0.82);
}

.ringle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ringle-badge {
  font-weight: 700;
  color: var(--accent-amber);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ringle-card.is-great .ringle-badge,
.ringle-card.is-graduated .ringle-badge {
  color: var(--accent-teal);
}

.ringle-caf-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.ringle-diff-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.ringle-orig-line {
  font-size: 0.81rem;
  color: rgba(148, 163, 184, 0.88);
  text-decoration: line-through;
}

.ringle-native-en {
  font-size: 0.94rem;
  font-weight: 700;
  color: #93c5fd;
  line-height: 1.46;
}

.ringle-card.is-graduated .ringle-native-en {
  color: #5eead4;
}

.ringle-native-ko {
  font-size: 0.8rem;
  color: rgba(203, 213, 225, 0.84);
}

.ringle-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.ringle-act-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-bright);
  font-size: 0.79rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ringle-act-btn:hover {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(96, 165, 250, 0.55);
}

.ringle-act-btn.is-speak {
  border-color: rgba(45, 212, 191, 0.48);
  background: rgba(20, 184, 166, 0.18);
  color: #99f6e4;
}

.ringle-act-btn.is-speak.is-listening {
  background: rgba(244, 63, 94, 0.34);
  border-color: rgba(251, 113, 133, 0.75);
  color: #ffe4e6;
}

.ringle-act-btn.is-done {
  background: rgba(13, 148, 136, 0.35);
  border-color: rgba(94, 234, 212, 0.7);
  color: #ccfbf1;
  cursor: default;
}

.ringle-speak-feedback {
  font-size: 0.78rem;
  color: var(--accent-teal);
  line-height: 1.4;
}

.gate-mode-switch {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line-soft);
  flex-wrap: wrap;
  justify-content: center;
}

.gate-mode-btn {
  min-height: 38px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.gate-mode-btn:hover {
  color: var(--ink-bright);
}

.gate-mode-btn.is-active {
  background: rgba(37, 99, 235, 0.34);
  border-color: rgba(96, 165, 250, 0.65);
  color: #f8fafc;
}

.hud-mode-pill {
  border-color: rgba(96, 165, 250, 0.5);
  color: #dbeafe;
}

.opening-target-bar {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mic-live-banner {
  margin: 0 12px 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(10, 18, 32, 0.95);
  border: 1.5px solid rgba(52, 211, 153, 0.55);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.55);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.mic-live-banner.is-hidden {
  display: none;
}

.mic-live-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mic-live-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mic-rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.32);
  flex-shrink: 0;
  animation: micPulse 1.1s infinite ease-in-out;
}

.mic-rec-dot.is-idle {
  background: #94a3b8;
  box-shadow: none;
  animation: none;
}

@keyframes micPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.75; }
  50% { transform: scale(1.18); opacity: 1; }
}

.mic-live-text {
  font-size: 0.83rem;
  font-weight: 700;
  color: #f8fafc;
}

.mic-live-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mic-meter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.mic-meter-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #6ee7b7;
  white-space: nowrap;
}

.mic-level-track {
  flex: 1;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  overflow: hidden;
  padding: 1px;
}

.mic-level-fill {
  height: 100%;
  width: 6%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981 0%, #34d399 55%, #a7f3d0 100%);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.75);
  transition: width 0.05s linear;
}

.mic-meter-pct {
  min-width: 36px;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #a7f3d0;
}
