:root {
  --bg-left: #061121;
  --bg-center: #0a1730;
  --bg-right: #061121;
  --panel-bg: rgba(255, 255, 255, 0.06);
  --panel-line: rgba(255, 255, 255, 0.12);
  --panel-text: rgba(255, 255, 255, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.72);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.24);
  --radius-xl: 30px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html {
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at 50% 26%, rgba(83, 127, 255, 0.22), transparent 19%),
    linear-gradient(90deg, var(--bg-left) 0%, var(--bg-center) 50%, var(--bg-right) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.landing {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.halo {
  position: absolute;
  border-radius: 999px;
  filter: blur(86px);
  pointer-events: none;
}

.halo--left {
  width: clamp(180px, 24vw, 340px);
  height: clamp(180px, 24vw, 340px);
  top: clamp(76px, 10vh, 90px);
  left: 11%;
  background: radial-gradient(circle, rgba(53, 108, 255, 0.46) 0%, transparent 70%);
}

.halo--center {
  width: clamp(240px, 32vw, 420px);
  height: clamp(240px, 32vw, 420px);
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(74, 131, 255, 0.18) 0%, transparent 70%);
}

.halo--right {
  width: clamp(180px, 22vw, 320px);
  height: clamp(180px, 22vw, 320px);
  top: clamp(82px, 11vh, 98px);
  right: 11%;
  background: radial-gradient(circle, rgba(53, 108, 255, 0.32) 0%, transparent 70%);
}

.scene {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 26px 18px 22px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
}

.card-shell {
  position: relative;
  width: min(100%, 412px);
  animation: cardHeartbeat 1.8s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform, filter;
}

.card-glow {
  position: absolute;
  inset: -30px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(66, 121, 255, 0.36) 0%, rgba(66, 121, 255, 0.12) 42%, transparent 72%);
  filter: blur(28px);
  animation: glowPulse 1.8s ease-in-out infinite;
}

.card-shine {
  position: absolute;
  inset: -14px;
  border-radius: 36px;
  background: linear-gradient(115deg, transparent 24%, rgba(255,255,255,0.22) 45%, transparent 66%);
  transform: translateX(-130%) skewX(-16deg);
  opacity: 0.85;
  pointer-events: none;
  animation: shineSweep 3.2s linear infinite;
}

.card-figure {
  position: relative;
  margin: 0;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.02);
}

.card-image {
  display: block;
  width: 100%;
  height: auto;
}

.redirect-box {
  width: min(100%, 412px);
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-line);
  background: var(--panel-bg);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.redirect-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.redirect-box__eyebrow {
  color: var(--panel-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.redirect-box__time {
  color: var(--panel-text);
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.redirect-box__desc {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.meter {
  margin-top: 14px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.meter__bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #74adff 0%, #4b84ff 55%, #7cd6ff 100%);
  box-shadow: 0 0 18px rgba(100, 171, 255, 0.52);
}

.noscript-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 10;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 10, 20, 0.92);
}

.noscript-banner a {
  color: #8cb9ff;
  text-decoration: underline;
}

body.is-leaving .scene {
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

@keyframes cardHeartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.022); }
  28% { transform: scale(0.995); }
  42% { transform: scale(1.028); }
  56% { transform: scale(1); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  14% { opacity: 0.96; transform: scale(1.03); }
  42% { opacity: 1; transform: scale(1.04); }
  56% { opacity: 0.76; transform: scale(1.01); }
}

@keyframes shineSweep {
  0%, 12% { transform: translateX(-130%) skewX(-16deg); opacity: 0; }
  20% { opacity: 0.82; }
  48% { transform: translateX(130%) skewX(-16deg); opacity: 0.18; }
  100% { transform: translateX(130%) skewX(-16deg); opacity: 0; }
}

@media (max-width: 768px) {
  .scene {
    padding: 20px 14px 18px;
    gap: 16px;
  }

  .card-shell,
  .redirect-box {
    width: min(100%, 400px);
  }

  .redirect-box {
    padding: 15px;
  }
}

@media (max-width: 560px) {
  .scene {
    padding: 14px 10px 16px;
    gap: 14px;
  }

  .card-shell,
  .redirect-box {
    width: min(100%, 408px);
  }

  .redirect-box {
    padding: 14px;
  }

  .redirect-box__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .redirect-box__time {
    font-size: 18px;
  }

  .redirect-box__desc {
    font-size: 13px;
    line-height: 1.45;
  }
}

@media (max-width: 430px) {
  .scene {
    padding: 12px 10px 14px;
    gap: 12px;
  }

  .card-shell,
  .redirect-box {
    width: min(100%, 360px);
  }

  .card-glow {
    inset: -22px;
  }

  .card-shine {
    inset: -10px;
    border-radius: 30px;
  }

  .redirect-box {
    padding: 13px;
    border-radius: 16px;
  }

  .redirect-box__eyebrow {
    font-size: 12px;
  }

  .redirect-box__time {
    font-size: 17px;
  }

  .redirect-box__desc {
    margin-top: 8px;
    font-size: 12.5px;
  }

  .meter {
    margin-top: 12px;
    height: 7px;
  }
}

@media (max-width: 390px) {
  .card-shell,
  .redirect-box {
    width: min(100%, 332px);
  }

  .redirect-box {
    padding: 12px;
  }

  .redirect-box__time {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .scene {
    padding-left: 8px;
    padding-right: 8px;
  }

  .card-shell,
  .redirect-box {
    width: min(100%, 308px);
  }

  .redirect-box__eyebrow {
    font-size: 11.5px;
  }

  .redirect-box__time {
    font-size: 15px;
  }

  .redirect-box__desc {
    font-size: 12px;
  }
}

@media (max-height: 760px) {
  .scene {
    padding-top: 12px;
    padding-bottom: 14px;
    gap: 12px;
  }

  .card-shell,
  .redirect-box {
    width: min(100%, 372px);
  }
}

@media (max-height: 680px) {
  .scene {
    align-content: start;
    padding-top: 10px;
  }

  .card-shell,
  .redirect-box {
    width: min(100%, 340px);
  }

  .redirect-box {
    padding: 12px;
  }

  .redirect-box__desc {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-shell,
  .card-glow,
  .card-shine {
    animation: none;
  }

  body.is-leaving .scene {
    transition: none;
  }
}
