:root {
  color-scheme: light;
  --background: #fff7fa;
  --surface: rgba(255, 255, 255, 0.66);
  --surface-strong: rgba(255, 255, 255, 0.84);
  --line: rgba(135, 78, 99, 0.15);
  --text: #59394a;
  --muted: #987585;
  --soft-pink: #d67f9b;
  --hot-pink: #efa7bc;
  --twitter: #1d9bf0;
  --twitter-deep: #157fc5;
  --shadow: 0 22px 65px rgba(156, 91, 114, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scroll-snap-type: y mandatory;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  background:
    radial-gradient(circle at 50% -10%, #ffd8e5 0, transparent 44%),
    linear-gradient(155deg, #fff9fb 0%, #fce9f0 54%, #fff6f9 100%);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Pretendard", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.035;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient-one {
  top: 10rem;
  left: -14rem;
  background: #f39db8;
}

.ambient-two {
  right: -14rem;
  bottom: 5rem;
  background: #efbdd2;
}

.page-shell {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  width: 100vw;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding-inline: max(20px, calc((100vw - 980px) / 2));
  border-bottom: 1px solid var(--line);
  margin-left: calc(50% - 50vw);
  background: rgba(255, 247, 250, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  place-items: center;
  color: var(--soft-pink);
  font-size: 1.05rem;
}

.header-note {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 0 62px;
  text-align: center;
}

.snap-section {
  min-height: calc(100svh - 84px);
  scroll-margin-top: 84px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--soft-pink);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.22em;
}

.timer-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  margin: -8px -10px 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.timer-toggle:hover,
.timer-toggle:focus-visible {
  background: rgba(239, 167, 188, 0.15);
  color: #bd617f;
  outline: none;
}

.timer-toggle-icon {
  display: grid;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(214, 127, 155, 0.28);
  border-radius: 50%;
  place-items: center;
  font-size: 0.66rem;
  line-height: 1;
  transition: transform 240ms ease;
}

.timer-toggle[aria-pressed="true"] .timer-toggle-icon {
  transform: rotate(180deg);
}

.main-timer {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: center;
  gap: 0.32em;
  margin: 20px 0 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(2.25rem, 9vw, 6rem);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 1;
  text-shadow: 0 14px 42px rgba(255, 175, 195, 0.13);
  white-space: nowrap;
}

#elapsed-days {
  color: var(--soft-pink);
}

.seconds-live {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin: 23px 0 0;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.015em;
}

#elapsed-seconds {
  color: var(--text);
  font-weight: 700;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff718f;
  box-shadow: 0 0 0 5px rgba(255, 113, 143, 0.09);
  animation: live-pulse 1.8s ease-in-out infinite;
}

.profile-section {
  padding: 0;
}

.section-heading {
  margin-bottom: 25px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  letter-spacing: -0.055em;
}

.section-heading > p:last-child:not(.section-kicker) {
  max-width: 38rem;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

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

.twitter-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 102px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(214, 127, 155, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 216, 229, 0.8),
      rgba(255, 243, 247, 0.6)
    ),
    var(--surface);
  box-shadow: var(--shadow);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.twitter-card::after {
  position: absolute;
  top: -80%;
  left: -40%;
  width: 40%;
  height: 250%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  content: "";
  transform: rotate(22deg);
  transition: left 420ms ease;
}

.twitter-card:hover,
.twitter-card:focus-visible {
  border-color: rgba(214, 127, 155, 0.55);
  background-color: rgba(255, 226, 236, 0.72);
  outline: none;
  transform: translateY(-3px);
}

.twitter-card:hover::after,
.twitter-card:focus-visible::after {
  left: 120%;
}

.twitter-icon {
  display: grid;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: linear-gradient(145deg, #2cacf7, var(--twitter-deep));
  box-shadow: 0 12px 28px rgba(29, 155, 240, 0.23);
  place-items: center;
}

.twitter-icon svg {
  width: 26px;
  fill: #fff;
}

.account-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.account-copy strong {
  font-size: 1.05rem;
}

.account-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.external-arrow {
  align-self: start;
  color: var(--muted);
  font-size: 0.88rem;
}

.profile-section,
.details-section,
.clicker-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-section {
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: 30px;
}

.profile-section > .section-heading {
  width: 100%;
  text-align: center;
}

.details-section {
  padding: 42px 0;
}

.details-panel {
  width: 100%;
}

.profile-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.82),
      rgba(255, 238, 244, 0.58)
    );
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.profile-accounts {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.profile-accounts .twitter-card {
  box-shadow: none;
}

.couple-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.person {
  display: flex;
  gap: 14px;
  align-items: center;
}

.person-right {
  flex-direction: row-reverse;
  text-align: right;
}

.person > div {
  display: flex;
  flex-direction: column;
}

.person-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.person strong {
  font-size: 1.15rem;
}

.avatar {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(176, 102, 127, 0.18);
  border-radius: 16px;
  place-items: center;
  font-size: 1rem;
  font-weight: 750;
  overflow: hidden;
}

.avatar-one {
  background: linear-gradient(145deg, #f7c6d5, #e8a7bc);
}

.avatar-two {
  background: linear-gradient(145deg, #ffd3df, #eeb2c5);
}

.avatar img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar img[hidden] {
  display: none;
}

.avatar-fallback {
  position: relative;
  z-index: 0;
}

.heart-divider {
  color: var(--soft-pink);
  font-size: 1.6rem;
}

.profile-comparison {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.28);
  font-size: 0.86rem;
}

.comparison-row {
  display: grid;
  min-height: 58px;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(82px, 0.42fr)
    minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row > * {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.comparison-row > *:last-child {
  border-right: 0;
}

.comparison-row > *:nth-child(2) {
  background: rgba(239, 167, 188, 0.1);
}

.comparison-row strong {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.comparison-row > span {
  color: var(--text);
}

.comparison-head {
  min-height: 42px;
  background: rgba(239, 167, 188, 0.14);
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.clicker-section {
  align-items: center;
  padding: 44px 0 0;
  text-align: center;
}

.clicker-content {
  width: min(100%, 720px);
  margin: auto 0;
}

.clicker-heading {
  text-align: center;
}

.clicker-heading > p:last-child {
  margin-inline: auto;
}

.clicker-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(30px, 6vw, 62px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(255, 218, 230, 0.9),
      transparent 54%
    ),
    rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.clicker-heart {
  color: var(--soft-pink);
  font-size: 2rem;
  line-height: 1;
}

.click-count {
  max-width: 100%;
  margin-top: 14px;
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(3.2rem, 10vw, 7rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.click-count-unit {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.click-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 174px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid rgba(184, 91, 123, 0.18);
  border-radius: 999px;
  margin-top: 32px;
  background: linear-gradient(145deg, #e999b3, #d97d9b);
  box-shadow: 0 14px 32px rgba(190, 102, 132, 0.22);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.click-button:hover,
.click-button:focus-visible {
  box-shadow: 0 17px 38px rgba(190, 102, 132, 0.3);
  outline: none;
  transform: translateY(-2px);
}

.click-button:active,
.click-button.is-clicked {
  transform: scale(0.96);
}

.click-button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.click-status {
  min-height: 1.2em;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.click-throughput {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid rgba(214, 127, 155, 0.16);
  border-radius: 999px;
  margin: 9px 0 0;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  font-size: 0.62rem;
}

#click-rate {
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.click-latency {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

footer span:nth-child(2) {
  color: var(--soft-pink);
  font-size: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 70px;
  }

  .page-shell {
    width: min(100% - 28px, 980px);
  }

  .site-header {
    min-height: 70px;
    padding-inline: 14px;
  }

  .header-note {
    display: none;
  }

  .hero {
    padding: 17px 0 42px;
  }

  .snap-section {
    min-height: calc(100svh - 70px);
    scroll-margin-top: 70px;
  }

  .main-timer {
    gap: 0.22em;
    font-size: clamp(1.75rem, 9vw, 2.8rem);
    letter-spacing: -0.075em;
  }

  .seconds-live {
    margin-top: 18px;
    font-size: 0.82rem;
  }

  .profile-section {
    padding-top: 0;
    padding-bottom: 18px;
  }

  .details-section {
    padding: 24px 0;
  }

  .social-grid {
    gap: 8px;
  }

  .twitter-card {
    min-height: 88px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    padding: 11px 9px;
    border-radius: 18px;
  }

  .profile-accounts {
    padding: 8px;
  }

  .twitter-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .twitter-icon svg {
    width: 19px;
  }

  .account-copy strong {
    font-size: 0.88rem;
  }

  .account-copy > span {
    font-size: clamp(0.45rem, 2.15vw, 0.62rem);
    letter-spacing: -0.055em;
  }

  .external-arrow {
    display: none;
  }

  .couple-summary {
    gap: 10px;
    padding: 20px 16px;
  }

  .person {
    gap: 9px;
  }

  .person-right {
    flex-direction: row;
    text-align: left;
  }

  .avatar {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    border-radius: 13px;
  }

  .person-label {
    font-size: 0.47rem;
  }

  .person strong {
    font-size: 0.92rem;
  }

  .heart-divider {
    font-size: 1.25rem;
  }

  .profile-comparison {
    width: 100%;
    margin: 0;
    font-size: 0.72rem;
  }

  .comparison-row {
    min-height: 52px;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(70px, 0.42fr)
      minmax(0, 1fr);
  }

  .comparison-row > * {
    padding: 11px 8px;
    overflow-wrap: anywhere;
  }

  .comparison-row strong {
    font-size: 0.66rem;
  }

  .comparison-head {
    min-height: 38px;
    font-size: 0.5rem;
  }

  .clicker-section {
    padding-top: 26px;
  }

  .clicker-card {
    min-height: 330px;
    padding: 28px 18px;
    border-radius: 26px;
  }

  .click-button {
    min-height: 50px;
    margin-top: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .live-dot {
    animation: none;
  }

  .twitter-card,
  .twitter-card::after,
  .click-button {
    transition: none;
  }
}
