:root {
  --toss-blue: #1d4ed8;
  --toss-bg: #f5f8ff;
  --toss-surface: #ffffffd9;
  --toss-line: #dce6fb;
  --toss-text: #101828;
  --toss-sub: #475467;
  --toss-soft: #667085;
  --bg-glass-layer: 0.92;
  --noise-intensity: 0.045;
  --bg-aurora-1: rgba(59, 130, 246, 0.42);
  --bg-aurora-2: rgba(56, 189, 248, 0.35);
  --bg-aurora-3: rgba(236, 72, 153, 0.16);
}

body.night-mode {
  --toss-bg: #050816;
  --toss-surface: rgba(15, 23, 42, 0.93);
  --toss-line: rgba(148, 163, 184, 0.28);
  --toss-text: #e2e8f0;
  --toss-sub: #cbd5e1;
  --toss-soft: #94a3b8;
  --bg-glass-layer: 0.22;
  --noise-intensity: 0.14;
  --bg-aurora-1: rgba(56, 189, 248, 0.2);
  --bg-aurora-2: rgba(129, 140, 248, 0.16);
  --bg-aurora-3: rgba(236, 72, 153, 0.14);
}

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

html,
body {
  margin: 0;
  width: 100%;
}

body {
  min-height: 100vh;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: var(--toss-text);
  background-color: var(--toss-bg);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1300px 620px at 18% 14%, var(--bg-aurora-1) 0%, transparent 58%),
    radial-gradient(900px 430px at 84% 18%, var(--bg-aurora-2) 0%, transparent 56%),
    radial-gradient(980px 440px at 50% 98%, var(--bg-aurora-3) 0%, transparent 57%),
    linear-gradient(130deg, rgba(255, 255, 255, var(--bg-glass-layer)) 0%, rgba(226, 239, 255, 0.74) 42%, rgba(191, 219, 254, 0.52) 74%, rgba(255, 255, 255, 0.45) 100%),
    repeating-linear-gradient(70deg, transparent 0 22px, rgba(255, 255, 255, 0.14) 22px 24px, transparent 24px 48px),
    url('img/car-lineup-bg.svg');
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat;
  background-position: 18% 14%, 84% 18%, 50% 98%, center, 0 0, center;
  background-size: cover, cover, cover, cover, 180% 120%, auto;
  animation: luxuryBackdropShift 26s ease-in-out infinite alternate;
  opacity: 1;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(620px 240px at 9% 4%, rgba(59, 130, 246, var(--noise-intensity)), transparent 58%),
    radial-gradient(680px 250px at 90% 0%, rgba(56, 189, 248, calc(var(--noise-intensity) * 0.9)), transparent 60%),
    radial-gradient(720px 390px at 50% 35%, rgba(191, 219, 254, calc(var(--noise-intensity) * 0.65)), transparent 64%),
    linear-gradient(10deg, transparent 66%, rgba(255, 255, 255, calc(var(--noise-intensity) * 1.7)) 100%);
  animation: luxuryNoiseDrift 32s linear infinite;
  z-index: -1;
}

@keyframes luxuryBackdropShift {
  0% {
    background-position: 18% 14%, 84% 18%, 50% 98%, 50% 45%, 0 0, center;
    background-size: cover, cover, cover, cover, 180% 120%, auto;
  }
  45% {
    background-position: 14% 10%, 88% 22%, 52% 94%, 54% 41%, -18px 12px, center;
    background-size: cover, cover, cover, 95% 95%, 180% 120%, auto;
  }
  100% {
    background-position: 20% 20%, 80% 10%, 50% 103%, 48% 55%, 18px -10px, center;
    background-size: cover, cover, cover, cover, 180% 120%, auto;
  }
}

@keyframes luxuryNoiseDrift {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.75;
  }
  50% {
    transform: translate3d(-6px, 8px, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(8px, -5px, 0);
    opacity: 0.78;
  }
}

.brand-body-logo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background-repeat: no-repeat;
  background-position: center 34%;
  background-size: clamp(220px, 46vw, 560px);
  opacity: 0;
  filter: grayscale(0.34) blur(0.25px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.9s ease;
  mix-blend-mode: normal;
}

.brand-body-logo-image {
  width: clamp(220px, 46vw, 560px);
  max-width: 72vh;
  max-height: 28vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.brand-body-logo.is-visible {
  opacity: 0.42;
  transform: scale(1);
  filter: grayscale(0.17) blur(0);
}

.brand-body-logo.is-visible .brand-body-logo-image {
  opacity: 0.88;
}

.brand-body-logo:not(.is-visible) {
  transform: scale(0.97);
}

.vehicle-page {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 24px 16px 44px;
}

.hero-top {
  min-height: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--toss-line);
  background-color: var(--toss-surface);
  backdrop-filter: blur(5px);
}

.brand {
  text-decoration: none;
  color: #111827 !important;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.night-mode .brand {
  color: var(--toss-text) !important;
}

.top-links {
  display: flex;
  gap: 16px;
}

.top-link {
  text-decoration: none;
  color: var(--toss-sub) !important;
  font-size: 0.91rem;
}

.theme-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--toss-sub);
  font-size: 0.83rem;
  line-height: 1;
}

.theme-toggle-text {
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.theme-toggle-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.theme-toggle-track {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  cursor: pointer;
  background: linear-gradient(150deg, #d8e4ff, #bdd1f5);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.theme-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
  transition: transform 0.24s ease, background 0.24s ease;
}

#night-mode-toggle:checked + .theme-toggle-track {
  background: linear-gradient(150deg, #0ea5e9, #6366f1);
  border-color: rgba(224, 242, 254, 0.66);
}

#night-mode-toggle:checked + .theme-toggle-track .theme-switch-knob {
  transform: translateX(24px);
  background: #e2e8f0;
}

body.night-mode .theme-toggle-track {
  background: linear-gradient(150deg, #11203a, #1e293b);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
}

body.night-mode #night-mode-toggle:checked + .theme-toggle-track {
  background: linear-gradient(150deg, #0f172a, #1d4ed8);
}

.main-shell {
  max-width: 760px;
  margin: 0 auto;
}

.hero-copy {
  margin-bottom: 16px;
  padding: 24px 20px;
  border-radius: 22px;
  text-align: center;
  border: 1px solid var(--toss-line);
  background: var(--toss-surface);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 44%;
  background: linear-gradient(110deg, transparent 0%, rgba(59, 130, 246, 0.18), rgba(14, 165, 233, 0.22), transparent 84%);
  transform: translateX(-60%);
  opacity: 0;
  animation: none;
  pointer-events: none;
}

@keyframes heroGlowDrift {
  0% {
    opacity: 0;
    transform: translateX(-70%);
  }
  45% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateX(60%);
  }
}

@keyframes heroPanelReveal {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-copy .title,
.hero-copy .subtitle,
.hero-copy .copy-body {
  opacity: 0;
  transform: translateY(16px);
  animation-fill-mode: both;
  will-change: transform, opacity, filter, letter-spacing;
}

.hero-copy .title {
  margin: 0 0 8px;
  color: transparent;
  background-image: linear-gradient(120deg, #0d2e6b, #1d4ed8 46%, #7dd3fc);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation-name: none;
}

.hero-copy.is-in-view {
  animation: heroPanelReveal 0.72s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.hero-copy.is-in-view::before {
  animation: heroGlowDrift 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.22s both;
}

.hero-copy.is-in-view .title {
  animation:
    heroTextReveal 0.82s cubic-bezier(0.2, 0.85, 0.2, 1) 0.12s both,
    heroTextShimmer 2.8s linear infinite 0.95s;
}

.hero-copy.is-in-view .subtitle {
  color: #1f2937;
  font-weight: 700;
  animation: heroTextReveal 0.74s cubic-bezier(0.2, 0.85, 0.2, 1) 0.34s both;
}

.hero-copy.is-in-view .copy-body {
  margin: 0 auto;
  max-width: 680px;
  color: var(--toss-sub);
  position: relative;
  overflow: hidden;
  animation: heroCopyBodyFlyIn 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}

.hero-copy.is-in-view .copy-body::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 48%;
  height: 100%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0));
  animation: heroCopyBodySweep 1.5s cubic-bezier(0.2, 0.7, 0.4, 1) 0.82s both;
  pointer-events: none;
}

@keyframes heroCopyBodyFlyIn {
  0% {
    opacity: 0;
    transform: translate3d(26px, 26px, 0) rotate(1.7deg) scale(0.98, 0.94);
    filter: blur(10px);
    letter-spacing: 0.18em;
  }
  65% {
    opacity: 1;
    transform: translate3d(-2px, -5px, 0) rotate(-0.55deg) scale(1.02, 1.02);
    filter: blur(3px);
    letter-spacing: 0.02em;
  }
  82% {
    transform: translate3d(1px, 1px, 0) rotate(0.15deg) scale(1.01, 1.01);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1, 1);
    filter: blur(0);
    letter-spacing: 0;
  }
}

@keyframes heroCopyBodySweep {
  0% {
    transform: translateX(0) skewX(-18deg);
    opacity: 0;
  }
  10% {
    opacity: 0.56;
  }
  70% {
    opacity: 0.2;
  }
  100% {
    transform: translateX(250%) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes heroTextReveal {
  0% {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
    letter-spacing: 0.04em;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    letter-spacing: 0;
  }
}

@keyframes heroTextShimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: -120% 50%;
  }
}

.title {
  margin: 0 0 8px;
}

.subtitle {
  margin-bottom: 8px;
}

.copy-body {
  margin: 0 auto;
  max-width: 680px;
  color: var(--toss-sub);
}

.scroll-reveal {
  --reveal-delay: 0s;
  opacity: 0;
  transform: translateY(16px);
  animation-fill-mode: both;
  will-change: transform, opacity, filter;
}

.scroll-reveal.is-in-view {
  animation: sectionReveal 0.68s cubic-bezier(0.2, 0.85, 0.2, 1) var(--reveal-delay) both;
}

.reveal-delay-1 {
  --reveal-delay: 0.08s;
}

.reveal-delay-2 {
  --reveal-delay: 0.16s;
}

.reveal-delay-3 {
  --reveal-delay: 0.24s;
}

.reveal-delay-4 {
  --reveal-delay: 0.32s;
}

@keyframes sectionReveal {
  0% {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.youtube-block {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--toss-line);
  background: #fff;
}

body.night-mode .youtube-block {
  background: rgba(15, 23, 42, 0.72);
}

.youtube-icon {
  width: 24px;
  height: 24px;
}

.youtube-link {
  color: #1d4ed8 !important;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
}

body.night-mode .youtube-link {
  color: #93c5fd !important;
}

.card-shadow {
  box-shadow: 0 12px 28px rgba(18, 31, 57, 0.12);
}

body.night-mode .card-shadow {
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.65);
}

.mode-card {
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--toss-line);
  background-color: var(--toss-surface);
  margin-bottom: 14px;
}

.mode-title {
  margin: 0 0 10px;
  color: #17335e;
  font-weight: 700;
}

body.night-mode .mode-title {
  color: var(--toss-text);
}

.mode-switch-wrap {
  display: grid;
  grid-template-columns: auto 62px auto;
  align-items: center;
  gap: 10px;
}

.mode-caption {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--toss-soft);
  transition: all 0.24s ease;
  opacity: 0.48;
}

.mode-caption.is-active {
  color: var(--toss-blue);
  opacity: 1;
  transform: translateY(-1px);
  animation: modeCaptionPop 0.24s cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes modeCaptionPop {
  0% {
    transform: translateY(4px);
    opacity: 0.5;
  }
  100% {
    transform: translateY(-1px);
    opacity: 1;
  }
}

.mode-switch-group {
  display: flex;
  justify-content: center;
}

#lineup-toggle {
  display: none;
}

.mode-switch-track {
  position: relative;
  width: 62px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #cfdcf5;
  background: #dbe6fb;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

body.night-mode .mode-switch-track {
  border-color: rgba(148, 163, 184, 0.45);
  background: #0f1d3a;
}

.mode-switch-knob {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  top: 3px;
  left: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

#lineup-toggle:checked + .mode-switch-track {
  background: #cfe1ff;
  border-color: #9bb4ed;
}

body.night-mode #lineup-toggle:checked + .mode-switch-track {
  background: #1e3a8a;
  border-color: #60a5fa;
}

#lineup-toggle:checked + .mode-switch-track .mode-switch-knob {
  transform: translateX(30px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.mode-status {
  margin: 10px 2px 0;
  color: var(--toss-sub);
  min-height: 20px;
  font-size: 0.9rem;
  transition: color 0.18s ease;
}

.mode-status-animate {
  animation: modeTextPop 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes modeTextPop {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-flag {
  margin: 8px 0 10px;
  color: #475467;
  font-weight: 700;
}

body.night-mode .section-flag {
  color: var(--toss-soft);
}

.result-headline-banner {
  display: none;
  margin: 8px 0 10px;
  min-height: clamp(46px, 5.4vw, 72px);
  gap: 10px;
  color: #1d4ed8;
  --headline-tone: #1f2937;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

body.night-mode .result-headline-banner {
  color: var(--toss-sub);
}

.result-headline-banner.is-visible {
  display: flex;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.result-headline-banner .result-headline-logo,
.result-headline-banner .result-headline-text {
  opacity: 0;
  transform: translateY(10px);
}

.result-headline-banner.is-visible .result-headline-logo {
  opacity: 0.88;
  transform: translateY(0);
  animation: resultHeadlineLogo 0.55s cubic-bezier(0.18, 0.88, 0.24, 1) both;
}

.result-headline-banner.is-visible .result-headline-text {
  color: var(--headline-tone);
  transform: translateY(0);
  animation: resultHeadlineText 0.6s cubic-bezier(0.18, 0.88, 0.24, 1) both;
}

.result-headline-text {
  font-size: clamp(1.4rem, 1.08rem + 1.6vw, 2.2rem);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.018em;
  color: var(--headline-tone);
}

body.night-mode .result-headline-text {
  color: var(--toss-sub);
}

.result-headline-logo {
  width: clamp(42px, 4.6vw, 64px);
  height: clamp(42px, 4.6vw, 64px);
  object-fit: contain;
  border-radius: 10px;
  opacity: 0.88;
  filter: drop-shadow(0 5px 14px rgba(14, 165, 233, 0.26));
}

@keyframes resultHeadlineLogo {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
    filter: blur(1.4px) brightness(0.8);
  }
  58% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
    filter: blur(0) brightness(1.05);
  }
  100% {
    opacity: 0.88;
    transform: translateY(0) scale(1);
    filter: blur(0) brightness(1);
  }
}

@keyframes resultHeadlineText {
  0% {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(1.2px);
  }
  58% {
    opacity: 1;
    transform: translateY(-2px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.file-upload {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--toss-line);
  background-color: var(--toss-surface);
  padding: 22px 15px 16px;
}

.image-upload-wrap {
  position: relative;
  width: min(100%, 620px);
  margin: 0 auto;
  min-height: 270px;
  border: 2px dashed #9eb6ec;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  transition: border-color 0.22s ease, background-color 0.22s ease;
}

body.night-mode .image-upload-wrap {
  border-color: rgba(148, 163, 184, 0.55);
  background: linear-gradient(180deg, #0f172a, #0b1220);
}

.image-upload-wrap:hover,
.image-dropping {
  border-color: #2f6df6;
  background-color: #f2f7ff;
}

body.night-mode .image-upload-wrap:hover,
body.night-mode .image-upload-wrap:focus-within,
body.night-mode .image-dropping {
  border-color: #5a86ff;
  background-color: rgba(30, 41, 59, 0.9);
}

.file-upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.file-upload-input:focus-visible {
  outline: none;
}

.drag-text {
  text-align: center;
}

.drag-text h3,
.upload-text {
  margin: 54px auto 0;
  font-size: 1.35rem;
  color: #1f2d43;
  text-transform: none;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.03em;
  transform-origin: center center;
  transform: scaleX(0.72);
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), letter-spacing 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.1s ease, filter 1.1s ease;
  opacity: 0;
  filter: blur(1.2px);
}

body.night-mode .drag-text h3,
body.night-mode .upload-text {
  color: var(--toss-sub);
}

.noti {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--toss-soft);
  letter-spacing: -0.02em;
  transform: scaleX(1.45) translateX(24px);
  transform-origin: right center;
  opacity: 0;
  filter: blur(1.2px);
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), letter-spacing 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.1s ease, filter 1.1s ease;
}

.noti.notice-error {
  color: #b42318;
  font-weight: 700;
  opacity: 1 !important;
  transform: none;
  filter: none;
  letter-spacing: 0.02em;
}

.image-upload-wrap:hover .upload-text,
.image-upload-wrap:focus-within .upload-text {
  letter-spacing: 0.23em;
  transform: scaleX(1);
  opacity: 1;
  filter: blur(0);
}

.image-upload-wrap:hover .noti,
.image-upload-wrap:focus-within .noti {
  letter-spacing: 0.04em;
  transform: scaleX(1);
  opacity: 1;
  filter: blur(0);
}

.image-upload-wrap:hover .upload-text {
  animation: uploadTextExpand 1.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-upload-wrap:hover .noti {
  animation: uploadNotiExpand 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes uploadTextExpand {
  0% {
    letter-spacing: 0.01em;
    transform: scaleX(0.9);
    opacity: 0.55;
  }
  60% {
    letter-spacing: 0.28em;
    transform: scaleX(1.06);
    opacity: 1;
  }
  100% {
    letter-spacing: 0.23em;
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes uploadNotiExpand {
  0% {
    letter-spacing: 0.22em;
    transform: scaleX(1.6) translateX(22px);
    opacity: 0.35;
  }
  60% {
    letter-spacing: 0.06em;
    transform: scaleX(0.88) translateX(-6px);
    opacity: 1;
  }
  100% {
    letter-spacing: 0.04em;
    transform: scaleX(1) translateX(0);
    opacity: 1;
  }
}

.file-upload-content {
  display: none;
  text-align: center;
  --result-tone: var(--toss-blue);
  --result-tone-soft: rgba(37, 99, 235, 0.16);
  --result-tone-medium: rgba(37, 99, 235, 0.23);
  --result-tone-strong: rgba(37, 99, 235, 0.45);
}

.result-image-wrap {
  position: relative;
  width: min(100%, 100%);
  margin: 0 auto;
  border-radius: 20px;
  padding: 14px 10px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(150deg, var(--result-tone-soft), rgba(255, 255, 255, 0.88));
}

.result-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 22% 18%, var(--result-tone-soft) 0%, transparent 42%),
    radial-gradient(circle at 78% 78%, var(--result-tone-soft) 0%, transparent 38%),
    repeating-linear-gradient(
      45deg,
      transparent 0 26px,
      var(--result-tone-soft) 26px 27px,
      transparent 27px 48px
    );
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.result-image-wrap::after {
  content: '';
  position: absolute;
  inset: 20px;
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: clamp(180px, 42vw, 320px);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
  filter: saturate(1.08) contrast(1.08);
  transition: opacity 0.6s ease;
  z-index: 1;
}

.file-upload-image {
  width: 100%;
  max-height: 370px;
  max-width: 100%;
  margin: 0 auto;
  display: none;
  position: relative;
  z-index: 2;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.file-upload-content .file-upload-image {
  display: block;
}

#loading {
  margin-top: 12px;
  display: none;
}

#loading .spinner-border {
  color: var(--toss-blue);
}

#label-container {
  width: min(100%, 720px);
  margin: 12px auto 0;
}

.result-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.carbrand-label {
  width: 34%;
  min-width: 108px;
  color: var(--toss-text);
  font-weight: 700;
}

.bar-track {
  flex: 1;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #e4ecff;
  background: #eef3ff;
  position: relative;
  overflow: hidden;
}

body.night-mode .bar-track {
  border-color: rgba(148, 163, 184, 0.42);
  background: #1e293b;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.52s cubic-bezier(0.22, 0.61, 0.36, 1);
  min-width: 2%;
}

.percent-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.84rem;
}

body.night-mode .percent-text {
  color: #f8fafc;
}

.result-message {
  text-align: left;
  margin: 12px auto 0;
  color: #1e293b;
}

body.night-mode .result-message {
  color: #cbd5e1;
}

.result-main-title {
  margin-bottom: 8px;
  color: #101828;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.4;
  position: relative;
  padding-left: 12px;
}

body.night-mode .result-main-title {
  color: #e2e8f0;
}

.result-main-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 4px;
  height: 1.05em;
  border-radius: 999px;
  background: var(--result-tone);
}

.result-match,
.result-detail,
.result-recommend {
  margin: 6px 0 10px;
  color: #344054;
  font-size: 0.97rem;
  line-height: 1.7;
}

body.night-mode .result-match,
body.night-mode .result-detail,
body.night-mode .result-recommend {
  color: #cbd5e1;
}

.result-detail {
  color: #475467;
}

.result-recommend {
  color: #172554;
}

body.night-mode .result-recommend {
  color: #e2e8f0;
}

.result-recommend strong {
  color: inherit;
}

.result-point {
  color: var(--result-tone);
  font-weight: 700;
}

.result-recommend strong.result-point {
  color: var(--result-tone);
}

.try-again-btn {
  border: 1px solid #2f6df6;
  border-radius: 999px;
  background: linear-gradient(180deg, #4b82f7, #2f6df6);
  color: #fff;
  padding: 0 18px;
}

body.night-mode .try-again-btn {
  border-color: #60a5fa;
  background: linear-gradient(180deg, #1d4ed8, #1e3a8a);
  color: #e2e8f0;
}

.try-again-text {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.image-title-wrap {
  padding-top: 12px;
}

.ad-slot {
  text-align: center;
  margin-top: 14px;
}

.footer {
  padding-top: 20px;
  text-align: center;
  color: #667085;
  font-size: 0.86rem;
}

body.night-mode .footer {
  color: #94a3b8;
}

input#gender,
label {
  cursor: inherit;
  width: auto;
  height: auto;
  box-shadow: none;
  border-radius: initial;
  position: static;
}

@media (max-width: 768px) {
  .hero-top {
    border-radius: 14px;
    padding: 12px 14px;
  }

  .theme-toggle-wrap {
    width: 100%;
    justify-content: flex-end;
  }

  .top-links {
    gap: 10px;
  }

  .hero-copy {
    padding: 18px 14px;
  }

  .mode-switch-wrap {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }

  .mode-caption {
    font-size: 0.83rem;
  }

  .drag-text h3,
  .upload-text {
    margin-top: 40px;
    width: min(88%, 100%);
    font-size: 1.1rem;
  }

  .carbrand-label {
    width: 30%;
    min-width: 92px;
    font-size: 0.85rem;
  }

  .result-main-title {
    font-size: 1.25rem;
  }

  .result-match,
  .result-detail,
  .result-recommend {
    font-size: 0.93rem;
  }
}
