:root {
  color-scheme: light;
  --ivory: #fff2d8;
  --ivory-deep: #f4ddb7;
  --peach: #ff7d6f;
  --peach-deep: #df6257;
  --sky: #82ccf3;
  --sky-soft: #e5f7ff;
  --mint: #8fddb7;
  --mint-soft: #e4faef;
  --yellow: #ffd65d;
  --yellow-soft: #fff0a8;
  --pink-soft: #ffe6ef;
  --charcoal: #24201d;
  --muted: #74685e;
  --line: #2f2924;
  --white: #fffdf6;
  --shadow: 6px 8px 0 rgba(47, 41, 36, 0.16);
  --soft-shadow: 3px 4px 0 rgba(47, 41, 36, 0.12);
  --radius: 8px;
  --content: 1120px;
  font-family:
    "IBM Plex Sans KR",
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--charcoal);
  background:
    linear-gradient(rgba(47, 41, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 41, 36, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 12px 12px, rgba(255, 125, 111, 0.08) 0 2px, transparent 2.5px),
    var(--ivory);
  background-size: 28px 28px, 28px 28px, 56px 56px, auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 2px solid var(--charcoal);
  background: rgba(255, 242, 216, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(100% - 32px, var(--content));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 2px solid var(--charcoal);
  border-radius: 50%;
  display: block;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--sky);
  object-fit: cover;
  object-position: center;
  transform: rotate(-4deg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-alert-btn {
  position: relative;
}

.notification-badge {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  margin-left: -4px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--charcoal);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.page {
  width: min(100% - 32px, var(--content));
  margin: 0 auto;
}

.site-footer {
  width: min(100% - 32px, var(--content));
  margin: auto auto 0;
  padding: 22px 0 26px;
  color: rgba(36, 32, 29, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.site-footer div {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 6px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
}

.hero {
  min-height: calc(100vh - 64px);
  padding: 44px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
}

.eyebrow {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 10px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--white);
  color: #5a4637;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  box-shadow: var(--soft-shadow);
}

.hero h1,
.screen-title {
  margin: 0;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: 0;
  word-break: keep-all;
}

.hero h1 span {
  display: inline-block;
  color: var(--peach-deep);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.08em;
}

.lead {
  max-width: 640px;
  margin: 18px 0 0;
  color: #514d55;
  font-size: clamp(1.02rem, 2.4vw, 1.28rem);
  line-height: 1.68;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.trust-chip,
.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.88);
  color: #5c4d45;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 2px 3px 0 rgba(47, 41, 36, 0.1);
}

.trust-chip:nth-child(2n) {
  background: var(--pink-soft);
}

.trust-chip:nth-child(3n) {
  background: var(--mint-soft);
}

.ranking-stats-strip {
  flex-wrap: nowrap;
}

.ranking-stats-strip .trust-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.floating-note {
  position: absolute;
  right: 0;
  bottom: 22px;
  width: min(88%, 360px);
  padding: 16px;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.floating-note strong {
  display: block;
  font-size: 1rem;
}

.floating-note p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.landing-rank-card {
  position: relative;
  right: auto;
  bottom: auto;
  align-self: center;
  width: min(100%, 462px);
  max-height: 560px;
  overflow: hidden;
  z-index: 1;
}

.landing-rank-card::before,
.invite-card::before,
.profile-band::before {
  content: none;
  display: none;
}

.landing-rank-card > *,
.invite-card > *,
.profile-band > * {
  position: relative;
  z-index: 1;
}

.landing-rank-card .mini-rank-list {
  max-height: 350px;
  overflow: auto;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}

.rank-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rank-card-head strong {
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
}

.rank-count {
  flex: 0 0 auto;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--mint-soft);
  color: #28594d;
  font-size: 0.78rem;
  font-weight: 950;
}

.mini-rank-list {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

.mini-rank-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: #fffaf1;
  box-shadow: 2px 3px 0 rgba(47, 41, 36, 0.08);
}

.mini-rank-number {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow-soft);
  border: 2px solid var(--charcoal);
  color: #5f4b10;
  font-size: 0.78rem;
  font-weight: 950;
}

.mini-rank-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
}

.mini-rank-content {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mini-rank-top {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.mini-rank-score {
  color: var(--peach-deep);
  font-weight: 950;
  white-space: nowrap;
}

.mini-rank-snippet,
.ranking-name em {
  min-width: 0;
  max-width: min(100%, 230px);
  display: block;
  overflow: hidden;
  color: #8a6f64;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chem-character {
  --creature-bg: #ffdfab;
  --creature-accent: #ff7f70;
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--charcoal);
  border-radius: 16px;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.88) 0 10%, transparent 11%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.6), transparent 58%),
    var(--creature-bg);
  box-shadow:
    2px 3px 0 rgba(47, 41, 36, 0.16),
    inset 0 -5px 0 rgba(47, 41, 36, 0.06);
  transform: rotate(-2deg);
}

.chem-character::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -5px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--creature-accent);
  box-shadow: inset 0 0 0 3px rgba(255, 254, 250, 0.46);
}

.chem-character.small {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  box-shadow:
    1.5px 2.5px 0 rgba(47, 41, 36, 0.15),
    inset 0 -4px 0 rgba(47, 41, 36, 0.06);
}

.chem-character.small::after {
  right: -4px;
  top: -5px;
  width: 11px;
  height: 11px;
  border-width: 1.5px;
}

.creature-emoji {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 1.55rem;
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(255, 254, 250, 0.78));
  transform: translateY(1px);
}

.chem-character.small .creature-emoji {
  font-size: 1.22rem;
}

.creature-spark {
  position: absolute;
  left: -5px;
  bottom: -5px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--white);
  color: var(--creature-accent);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  z-index: 2;
}

.chem-character.small .creature-spark {
  left: -5px;
  bottom: -5px;
  width: 14px;
  height: 14px;
  border-width: 1.5px;
  font-size: 0.56rem;
}

.rank-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 12px;
}

.rank-page-btn {
  min-width: 64px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--white);
  color: var(--charcoal);
  font-size: 0.84rem;
  font-weight: 950;
  cursor: pointer;
}

.rank-page-btn.active {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: white;
}

.landing-rank-card .btn {
  width: 100%;
  min-height: 42px;
}

.peek-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 44px;
}

.signal-card,
.ranking-item,
.result-section,
.question-card,
.doctor-result-card,
.share-card,
.modal-panel,
.profile-band,
.invite-card {
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--soft-shadow);
}

.signal-card {
  min-height: 104px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--charcoal);
  color: var(--charcoal);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.signal-card:nth-child(1) {
  background: #fff9ef;
}

.signal-card:nth-child(2) {
  background: var(--pink-soft);
}

.signal-card:nth-child(3) {
  background: var(--mint-soft);
}

.signal-card:nth-child(4) {
  background: var(--sky-soft);
}

.signal-card:hover,
.signal-card.active {
  transform: translate(-1px, -2px);
  box-shadow: var(--shadow);
}

.signal-card.active {
  outline: 3px solid rgba(255, 214, 93, 0.7);
  outline-offset: 2px;
}

.signal-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.signal-card b {
  display: block;
  margin: 0;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-weight: 400;
  font-size: 1.08rem;
}

.signal-toggle {
  width: 28px;
  height: 28px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--charcoal);
  border-radius: 50%;
  background: var(--white);
  color: var(--charcoal);
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: 2px 2px 0 rgba(47, 41, 36, 0.14);
}

.signal-card.active .signal-toggle {
  background: var(--yellow);
}

.signal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.52;
}

.landing-insight-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(14px, 3vw, 28px);
  align-items: start;
  margin: -22px 0 48px;
  padding: clamp(18px, 3vw, 26px);
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 253, 246, 0.96), rgba(228, 250, 239, 0.9));
  box-shadow: var(--soft-shadow);
}

.landing-insight-panel > div {
  display: grid;
  gap: 12px;
  align-content: start;
}

.landing-insight-panel .eyebrow {
  justify-self: start;
  margin: 0;
  line-height: 1.25;
}

.landing-insight-panel h2 {
  margin: 0;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.16;
}

.landing-insight-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.68;
}

.landing-insight-panel .insight-list {
  margin: 0;
}

.landing-insight-question {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 2px dashed rgba(47, 41, 36, 0.38);
  border-radius: var(--radius);
  background: #fff9ef;
}

.landing-insight-question span {
  color: var(--peach-deep);
  font-size: 0.82rem;
  font-weight: 950;
}

.landing-insight-question strong {
  font-size: 1.02rem;
  line-height: 1.5;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--charcoal);
  color: white;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 4px 0 rgba(47, 41, 36, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.btn:hover {
  transform: translate(-1px, -2px);
  box-shadow: 5px 6px 0 rgba(47, 41, 36, 0.18);
}

.btn:focus-visible,
.choice:focus-visible,
.segmented button:focus-visible,
.icon-btn:focus-visible,
.field:focus-visible {
  outline: 3px solid rgba(114, 189, 231, 0.5);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--peach);
  color: #251816;
}

.btn-secondary {
  border-color: var(--charcoal);
  background: var(--white);
  color: var(--charcoal);
}

.btn-kakao {
  background: #fee500;
  color: #251816;
}

.btn-sky {
  background: var(--sky);
  color: #14222a;
}

.btn-mint {
  background: var(--mint);
  color: #10261f;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--charcoal);
  border-radius: 50%;
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
}

.screen {
  padding: 34px 0 64px;
}

.screen-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.screen-title {
  max-width: 780px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.screen-subtitle {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.invite-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
  align-items: start;
}

.invite-card {
  position: sticky;
  top: 88px;
  padding: 18px;
  overflow: hidden;
  min-width: 0;
}

.stats-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.stat {
  min-width: 0;
  min-height: 78px;
  padding: 12px;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: #fffaf0;
  box-shadow: 2px 3px 0 rgba(47, 41, 36, 0.08);
}

.stat b {
  display: block;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-weight: 400;
  font-size: 1.35rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.toolbar strong {
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 2px 3px 0 rgba(47, 41, 36, 0.1);
}

.segmented button {
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 999px;
  background: transparent;
  color: #5c5960;
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
}

.segmented button.active {
  background: var(--charcoal);
  color: white;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 46px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(90deg, #fffdf6, #fff8ea);
}

.ranking-item-clickable {
  position: relative;
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.ranking-item-clickable::after {
  content: "상세보기";
  position: absolute;
  right: 12px;
  top: 10px;
  padding: 4px 8px;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  background: var(--mint-soft);
  color: #29564c;
  font-size: 0.72rem;
  font-weight: 950;
  opacity: 0;
  transform: translateY(-2px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.ranking-item-clickable[data-action="open-invite-participant"]::after {
  content: "나와 궁합";
}

.ranking-item-clickable:hover {
  transform: translate(-1px, -2px);
  background: linear-gradient(90deg, #fffdf6, #fff1dc);
  box-shadow: 5px 6px 0 rgba(47, 41, 36, 0.14);
}

.ranking-item-clickable:hover::after,
.ranking-item-clickable:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.ranking-item-clickable:focus-visible {
  outline: 3px solid rgba(130, 204, 243, 0.52);
  outline-offset: 3px;
}

.rank-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow-soft);
  border: 2px solid var(--charcoal);
  box-shadow: 2px 2px 0 rgba(47, 41, 36, 0.12);
  font-weight: 950;
}

.ranking-name {
  min-width: 0;
}

.ranking-name b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
}

.ranking-name span {
  color: var(--muted);
  font-size: 0.84rem;
}

.ranking-name em {
  max-width: min(100%, 360px);
  margin-top: 3px;
}

.score-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.score-pill {
  min-width: 78px;
  padding: 8px 9px;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  background: var(--sky-soft);
  text-align: center;
  font-size: 0.83rem;
  font-weight: 900;
}

.score-pill.romance {
  background: #ffe2dc;
}

.pair-detail-pills {
  justify-content: flex-start;
  margin-top: 14px;
}

.survey-wrap {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 24px 0 72px;
}

.progress-top {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #5b5760;
  font-size: 0.9rem;
  font-weight: 850;
}

.progress-track {
  height: 14px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 2px 3px 0 rgba(47, 41, 36, 0.1);
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--peach), var(--yellow), var(--mint), var(--sky));
  transition: width 0.24s ease;
}

.question-card {
  padding: clamp(18px, 4vw, 30px);
}

.doctor-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.doctor-avatar {
  width: 88px;
  height: 88px;
  border: 2px solid var(--charcoal);
  border-radius: 50%;
  background: var(--white);
  object-fit: cover;
  object-position: 50% 24%;
  box-shadow: 2px 3px 0 rgba(47, 41, 36, 0.14);
}

.speech {
  position: relative;
  padding: 13px 14px;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: #fffaf1;
  color: #5b514a;
  font-weight: 850;
  line-height: 1.45;
}

.speech::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 34px;
  width: 14px;
  height: 14px;
  border-left: 2px solid var(--charcoal);
  border-bottom: 2px solid var(--charcoal);
  background: #fffaf1;
  transform: rotate(45deg);
}

.question-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.category-label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 9px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--mint-soft);
  color: #28594d;
  font-size: 0.78rem;
  font-weight: 900;
}

.question-text {
  margin: 0 0 22px;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-weight: 400;
  font-size: clamp(1.42rem, 4.6vw, 2.1rem);
  line-height: 1.34;
  letter-spacing: 0;
}

.choices {
  display: grid;
  gap: 9px;
}

.choice {
  min-height: 54px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  text-align: left;
  cursor: pointer;
  box-shadow: 2px 3px 0 rgba(47, 41, 36, 0.08);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.choice:hover {
  transform: translate(-1px, -2px);
  border-color: var(--charcoal);
}

.choice.selected {
  border-color: var(--charcoal);
  background: #fff0ec;
  box-shadow: 3px 4px 0 rgba(255, 125, 111, 0.42);
}

.choice-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--charcoal);
  font-size: 0.82rem;
  font-weight: 950;
}

.choice-label {
  min-width: 0;
  font-weight: 800;
}

.choice-mood {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.survey-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.result-main {
  padding: clamp(18px, 3.4vw, 28px);
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.relationship-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 11px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--yellow-soft);
  color: #5f4b10;
  font-weight: 950;
  margin-bottom: 14px;
}

.pair-title {
  margin: 0;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.result-copy {
  margin: 16px 0 0;
  color: #59535d;
  font-size: 1.04rem;
  line-height: 1.68;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.big-score {
  min-height: 166px;
  padding: 18px;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: #fff9f0;
  display: grid;
  align-content: space-between;
}

.big-score.romance {
  background: #fff0ec;
}

.big-score span {
  color: #645d66;
  font-weight: 900;
}

.score-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.score-icon,
.section-emoji,
.science-card-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(47, 41, 36, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1;
}

.big-score strong {
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 5.2rem);
  line-height: 0.9;
}

.result-mood-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.result-mood-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border: 2px solid rgba(47, 41, 36, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 238, 0.88);
  color: #5a5149;
  font-size: 0.82rem;
  font-weight: 950;
}

.result-mood-strip b {
  font-size: 1rem;
  line-height: 1;
}

.pair-nature-scene {
  position: relative;
  margin-top: 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 252, 240, 0.96), rgba(255, 239, 226, 0.86)),
    repeating-linear-gradient(0deg, rgba(47, 41, 36, 0.025) 0 1px, transparent 1px 9px);
  box-shadow:
    var(--soft-shadow),
    inset 0 0 0 5px rgba(255, 255, 255, 0.46);
}

.pair-nature-scene::before,
.pair-nature-scene::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 48px;
  height: 48px;
  pointer-events: none;
  border-top: 3px solid rgba(255, 180, 95, 0.45);
  opacity: 0.9;
}

.pair-nature-scene::before {
  left: 10px;
  border-left: 3px solid rgba(255, 180, 95, 0.45);
  border-radius: 16px 0 0;
}

.pair-nature-scene::after {
  right: 10px;
  border-right: 3px solid rgba(255, 180, 95, 0.45);
  border-radius: 0 16px 0 0;
}

.pair-scene-stage {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 3px solid rgba(47, 41, 36, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 102%, rgba(255, 255, 255, 0.74) 0 12%, transparent 13%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 40%),
    linear-gradient(180deg, #dff4ff 0 48%, #f7eed1 49% 55%, #dff5c8 56% 100%);
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.5),
    inset 0 0 0 12px rgba(255, 243, 214, 0.22),
    inset 0 -28px 0 rgba(47, 41, 36, 0.04);
}

.pair-scene-stage::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 4;
  pointer-events: none;
  border: 2px dashed rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  box-shadow:
    inset 0 0 0 1px rgba(47, 41, 36, 0.06),
    0 0 0 1px rgba(47, 41, 36, 0.04);
}

.pair-scene-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 18% 82%, rgba(255, 255, 255, 0.22)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 7px);
  mix-blend-mode: soft-light;
}

.scene-picnic .pair-scene-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 40%),
    linear-gradient(180deg, #dff6ff 0 45%, #fff1bd 46% 52%, #dff3c6 53% 100%);
}

.scene-stream .pair-scene-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 40%),
    linear-gradient(180deg, #dff5ff 0 43%, #d3f0ff 44% 67%, #daf3cd 68% 100%);
}

.scene-moon .pair-scene-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(180deg, #d8d7ff 0 48%, #eadcff 49% 55%, #d9ecd2 56% 100%);
}

.scene-playground .pair-scene-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 38%),
    linear-gradient(180deg, #fff0bf 0 45%, #ffe7c5 46% 52%, #daf2c7 53% 100%);
}

.scene-mountain .pair-scene-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 40%),
    linear-gradient(180deg, #e4f3ff 0 44%, #ece0bd 45% 56%, #dceac3 57% 100%);
}

.scene-bridge .pair-scene-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 40%),
    linear-gradient(180deg, #edf2ff 0 43%, #d8efff 44% 71%, #e6e0c9 72% 100%);
}

.scene-garden .pair-scene-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 40%),
    linear-gradient(180deg, #e7f8ff 0 42%, #ffe6ef 43% 50%, #e2f4c9 51% 100%);
}

.scene-veil,
.scene-depth,
.scene-path {
  position: absolute;
  pointer-events: none;
}

.scene-veil {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.74) 0 18%, transparent 19% 100%),
    linear-gradient(245deg, rgba(255, 239, 198, 0.54) 0 20%, transparent 21% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 52%);
  mix-blend-mode: soft-light;
}

.scene-depth-back {
  left: -10%;
  right: -10%;
  bottom: 110px;
  z-index: 0;
  height: 136px;
  border-radius: 56% 52% 0 0;
  background: linear-gradient(180deg, rgba(161, 199, 179, 0.32), rgba(132, 190, 161, 0.12));
  clip-path: polygon(0 68%, 12% 42%, 28% 57%, 42% 32%, 58% 52%, 72% 36%, 88% 58%, 100% 38%, 100% 100%, 0 100%);
}

.scene-depth-mid {
  left: -8%;
  right: -8%;
  bottom: 46px;
  z-index: 0;
  height: 132px;
  border-radius: 52% 48% 0 0;
  background: linear-gradient(180deg, rgba(149, 207, 157, 0.42), rgba(232, 246, 200, 0.9));
  clip-path: polygon(0 48%, 14% 38%, 31% 56%, 48% 30%, 63% 50%, 80% 33%, 100% 52%, 100% 100%, 0 100%);
}

.scene-path {
  left: 32%;
  right: 32%;
  bottom: -6px;
  z-index: 1;
  height: 150px;
  border: 2px solid rgba(47, 41, 36, 0.08);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(255, 247, 219, 0.9), rgba(237, 207, 158, 0.75));
  transform: perspective(160px) rotateX(18deg);
}

.scene-picnic .scene-path {
  left: 31%;
  right: 31%;
  bottom: 38px;
  height: 64px;
  border: 2px solid rgba(47, 41, 36, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 126, 112, 0.28) 50%, transparent 50%) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(255, 126, 112, 0.24) 50%, transparent 50%) 0 0 / 18px 18px,
    #fff7e3;
  transform: rotate(-2deg);
}

.scene-stream .scene-path,
.scene-bridge .scene-path {
  left: 23%;
  right: 23%;
  bottom: -22px;
  height: 190px;
  border: 0;
  border-radius: 45% 55% 0 0;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.45) 13% 18%, transparent 19% 100%),
    linear-gradient(180deg, rgba(150, 220, 255, 0.95), rgba(80, 184, 226, 0.72));
  transform: perspective(150px) rotateX(24deg);
}

.scene-bridge .scene-path {
  left: 18%;
  right: 18%;
  bottom: 48px;
  height: 44px;
  border: 2px solid rgba(47, 41, 36, 0.22);
  border-radius: 16px;
  background:
    repeating-linear-gradient(90deg, rgba(47, 41, 36, 0.16) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #e7c08d, #c99362);
  transform: rotate(-1deg);
}

.scene-mountain .scene-path {
  left: 36%;
  right: 34%;
  bottom: -12px;
  height: 168px;
  background: linear-gradient(180deg, rgba(255, 247, 219, 0.82), rgba(191, 164, 116, 0.72));
  transform: perspective(150px) rotateX(22deg) rotate(-4deg);
}

.scene-moon .scene-path {
  background: linear-gradient(180deg, rgba(240, 232, 255, 0.92), rgba(174, 172, 216, 0.72));
}

.scene-garden .scene-path {
  left: 30%;
  right: 30%;
  bottom: 2px;
  height: 132px;
  background: linear-gradient(180deg, rgba(255, 236, 186, 0.86), rgba(205, 225, 160, 0.72));
}

.scene-sky {
  position: absolute;
  inset: 18px 22px auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: rgba(47, 41, 36, 0.72);
  font-size: 1.48rem;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.5);
}

.scene-sky span {
  animation: sceneFloat 3.8s ease-in-out infinite;
}

.scene-sky span:nth-child(2) {
  animation-delay: 0.4s;
}

.scene-sky span:nth-child(3) {
  animation-delay: 0.9s;
}

.scene-landmark {
  position: absolute;
  left: 50%;
  top: 36%;
  z-index: 1;
  transform: translate(-50%, -50%);
  font-size: clamp(5.2rem, 13vw, 8.9rem);
  opacity: 0.32;
  filter:
    drop-shadow(0 6px 0 rgba(255, 255, 255, 0.72))
    drop-shadow(0 14px 18px rgba(47, 41, 36, 0.08));
}

.scene-bookmark {
  position: absolute;
  left: 18px;
  top: -2px;
  z-index: 6;
  width: 30px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(47, 41, 36, 0.18);
  border-top: 0;
  border-radius: 0 0 15px 15px;
  background: linear-gradient(180deg, #ffe2a1, #ffbda4);
  color: #77523e;
  font-size: 0.92rem;
  box-shadow: 2px 3px 0 rgba(47, 41, 36, 0.12);
}

.scene-magic {
  position: absolute;
  left: 19%;
  right: 19%;
  top: 70px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.scene-magic span {
  display: inline-block;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.06rem;
  text-shadow: 0 1px 0 rgba(47, 41, 36, 0.18);
  animation: sceneTwinkle 3.6s ease-in-out infinite;
}

.scene-magic span:nth-child(2) {
  margin-top: 28px;
  animation-delay: 0.45s;
}

.scene-magic span:nth-child(3) {
  margin-top: 12px;
  animation-delay: 0.8s;
}

.scene-magic span:nth-child(4) {
  animation-delay: 1.15s;
}

.scene-magic span:nth-child(5) {
  margin-top: 42px;
  animation-delay: 1.45s;
}

.scene-fireflies {
  position: absolute;
  inset: 70px 42px 88px;
  z-index: 4;
  pointer-events: none;
}

.scene-fireflies span {
  position: absolute;
  display: inline-block;
  color: rgba(255, 250, 196, 0.94);
  font-size: 0.86rem;
  text-shadow:
    0 0 8px rgba(255, 232, 130, 0.58),
    0 1px 0 rgba(47, 41, 36, 0.16);
  animation: sceneFirefly 5.2s ease-in-out infinite;
}

.scene-fireflies span:nth-child(1) {
  left: 8%;
  top: 38%;
}

.scene-fireflies span:nth-child(2) {
  left: 28%;
  top: 8%;
  animation-delay: 0.7s;
}

.scene-fireflies span:nth-child(3) {
  right: 32%;
  top: 46%;
  animation-delay: 1.2s;
}

.scene-fireflies span:nth-child(4) {
  right: 12%;
  top: 18%;
  animation-delay: 1.8s;
}

.scene-fireflies span:nth-child(5) {
  left: 48%;
  bottom: 8%;
  animation-delay: 2.3s;
}

.scene-props {
  position: absolute;
  inset: auto 24px 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: rgba(47, 41, 36, 0.7);
  font-size: 1.5rem;
  pointer-events: none;
}

.scene-props span {
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.55));
  animation: sceneSway 4.8s ease-in-out infinite;
}

.scene-props span:nth-child(2) {
  margin-bottom: 34px;
  animation-delay: 0.35s;
}

.scene-props span:nth-child(3) {
  margin-bottom: 10px;
  animation-delay: 0.75s;
}

.scene-props span:nth-child(4) {
  margin-bottom: 48px;
  animation-delay: 1.05s;
}

.scene-props span:nth-child(5) {
  margin-bottom: 22px;
  animation-delay: 1.35s;
}

.scene-ground {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 26px;
  z-index: 1;
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(47, 41, 36, 0.1), transparent);
  filter: blur(1px);
}

.scene-character {
  position: absolute;
  bottom: 46px;
  width: min(38%, 150px);
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
  z-index: 2;
}

.scene-owner {
  left: 10%;
}

.scene-participant {
  right: 10%;
}

.scene-bridge .scene-owner {
  left: 5%;
}

.scene-bridge .scene-participant {
  right: 5%;
}

.scene-picnic .scene-owner,
.scene-stream .scene-owner,
.scene-garden .scene-owner {
  left: 13%;
}

.scene-picnic .scene-participant,
.scene-stream .scene-participant,
.scene-garden .scene-participant {
  right: 13%;
}

.chem-character.scene {
  width: 74px;
  height: 74px;
  border-radius: 25px;
  transform: rotate(-2deg);
  box-shadow:
    3px 5px 0 rgba(47, 41, 36, 0.16),
    0 10px 18px rgba(47, 41, 36, 0.12),
    inset 0 -6px 0 rgba(47, 41, 36, 0.06);
}

.scene-participant .chem-character.scene {
  transform: rotate(2deg);
}

.chem-character.scene .creature-emoji {
  font-size: 2.34rem;
}

.scene-character b {
  max-width: 100%;
  padding: 2px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 2px solid rgba(47, 41, 36, 0.12);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.72);
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

.scene-character small {
  max-width: 100%;
  display: block;
  overflow: hidden;
  color: #7b695f;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-interaction {
  position: absolute;
  left: 50%;
  bottom: 128px;
  z-index: 4;
  transform: translateX(-50%);
}

.scene-interaction span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 243, 214, 0.94));
  box-shadow:
    2px 3px 0 rgba(47, 41, 36, 0.14),
    0 0 0 8px rgba(255, 255, 255, 0.28);
  font-size: 1.58rem;
  animation: scenePulse 2.4s ease-in-out infinite;
}

.scene-interaction::before,
.scene-interaction::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 62px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: translateY(-50%);
}

.scene-interaction::before {
  right: 46px;
  transform: translateY(-50%) rotate(8deg);
}

.scene-interaction::after {
  left: 46px;
  transform: translateY(-50%) rotate(-8deg);
}

.pair-scene-copy {
  align-self: center;
  min-width: 0;
  padding: 18px;
  border: 2px solid rgba(47, 41, 36, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 232, 0.76));
  box-shadow: inset 0 -5px 0 rgba(47, 41, 36, 0.04);
}

.pair-scene-copy h2 {
  margin: 6px 0 0;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: clamp(1.5rem, 3.8vw, 2.35rem);
  font-weight: 400;
  line-height: 1.14;
}

.pair-scene-copy p:not(.eyebrow) {
  margin: 10px 0 0;
  color: #5a5149;
  font-weight: 800;
  line-height: 1.6;
}

.scene-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.scene-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 2px solid rgba(47, 41, 36, 0.16);
  border-radius: 999px;
  background: #fffaf1;
  color: #6a574b;
  font-size: 0.8rem;
  font-weight: 950;
}

.pair-miniroom-scene {
  overflow: hidden;
  border: 3px solid var(--charcoal);
  border-radius: 20px;
  background:
    radial-gradient(circle at 11% 18%, rgba(255, 116, 99, 0.12) 0 6px, transparent 7px),
    radial-gradient(circle at 88% 82%, rgba(91, 201, 196, 0.14) 0 7px, transparent 8px),
    linear-gradient(135deg, rgba(255, 250, 235, 0.98), rgba(255, 236, 218, 0.92));
  box-shadow:
    7px 8px 0 rgba(47, 41, 36, 0.14),
    inset 0 0 0 5px rgba(255, 255, 255, 0.56);
}

.pair-miniroom-scene::before,
.pair-miniroom-scene::after {
  width: 62px;
  height: 62px;
  border-color: rgba(47, 41, 36, 0.16);
  border-radius: 13px 0 0;
}

.pair-miniroom-scene::after {
  border-radius: 0 13px 0 0;
}

.pair-miniroom-scene .pair-scene-stage {
  min-height: 356px;
  isolation: isolate;
  border: 3px solid var(--charcoal);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), transparent 24%),
    repeating-linear-gradient(90deg, rgba(47, 41, 36, 0.045) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(47, 41, 36, 0.036) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, #ffe6ef 0 55%, #ffd79d 55.2% 56.2%, #f3c583 56.4% 100%);
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.54),
    inset 0 -34px 0 rgba(99, 67, 35, 0.05),
    3px 4px 0 rgba(47, 41, 36, 0.12);
}

.pair-miniroom-scene .pair-scene-stage::before {
  inset: 14px 14px auto;
  height: 162px;
  z-index: 0;
  border: 2px solid rgba(47, 41, 36, 0.1);
  border-radius: 13px;
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(255, 255, 255, 0.46) 14% 16%, transparent 16% 100%),
    linear-gradient(180deg, transparent 0 72%, rgba(139, 93, 54, 0.16) 72% 76%, transparent 76% 100%),
    radial-gradient(circle at 78% 35%, rgba(255, 220, 91, 0.44) 0 12px, transparent 13px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, rgba(255, 244, 214, 0.72), rgba(255, 231, 238, 0.5));
  box-shadow: inset 0 -5px 0 rgba(47, 41, 36, 0.04);
}

.pair-miniroom-scene .pair-scene-stage::after {
  inset: auto 9% 16px;
  height: 172px;
  z-index: 1;
  border: 2px solid rgba(47, 41, 36, 0.1);
  border-radius: 16px 16px 22px 22px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 16% 84%, rgba(255, 255, 255, 0.22)),
    repeating-linear-gradient(90deg, rgba(47, 41, 36, 0.07) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(47, 41, 36, 0.06) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, #ffd99c, #f7bd78);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
  transform: perspective(360px) rotateX(46deg);
  transform-origin: center bottom;
  mix-blend-mode: normal;
}

.pair-miniroom-scene .scene-veil {
  z-index: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.62) 0 52px, transparent 54px),
    radial-gradient(circle at 82% 24%, rgba(127, 216, 209, 0.18) 0 74px, transparent 76px),
    linear-gradient(130deg, rgba(255, 255, 255, 0.52), transparent 52%);
  mix-blend-mode: soft-light;
}

.pair-miniroom-scene .scene-depth-back {
  left: 9%;
  right: 9%;
  top: 42px;
  bottom: auto;
  z-index: 1;
  height: 108px;
  clip-path: none;
  border: 2px solid rgba(47, 41, 36, 0.12);
  border-radius: 14px;
  background:
    radial-gradient(circle at 22% 44%, rgba(255, 128, 108, 0.18) 0 18px, transparent 19px),
    radial-gradient(circle at 78% 40%, rgba(106, 201, 196, 0.2) 0 21px, transparent 22px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 239, 206, 0.56));
  box-shadow:
    0 8px 0 rgba(47, 41, 36, 0.04),
    inset 0 -6px 0 rgba(47, 41, 36, 0.04);
}

.pair-miniroom-scene .scene-depth-back::before,
.pair-miniroom-scene .scene-depth-back::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(47, 41, 36, 0.12);
  background: rgba(255, 255, 255, 0.52);
}

.pair-miniroom-scene .scene-depth-back::before {
  left: 24px;
  top: 20px;
  width: 64px;
  height: 44px;
  border-radius: 10px;
  box-shadow: inset 0 -10px 0 rgba(115, 205, 230, 0.18);
}

.pair-miniroom-scene .scene-depth-back::after {
  right: 26px;
  bottom: 18px;
  width: 104px;
  height: 8px;
  border-radius: 999px;
  background: rgba(139, 93, 54, 0.18);
}

.pair-miniroom-scene .scene-depth-mid {
  left: 12%;
  right: 12%;
  bottom: 48px;
  z-index: 2;
  height: 148px;
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
  border: 2px solid rgba(47, 41, 36, 0.11);
  border-radius: 14px 14px 24px 24px;
  background:
    repeating-linear-gradient(90deg, rgba(47, 41, 36, 0.08) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(47, 41, 36, 0.06) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, rgba(255, 219, 160, 0.95), rgba(246, 188, 116, 0.88));
  transform: perspective(320px) rotateX(47deg);
  transform-origin: center bottom;
}

.pair-miniroom-scene .scene-path {
  left: 28%;
  right: 28%;
  bottom: 72px;
  z-index: 3;
  height: 86px;
  border: 3px solid rgba(47, 41, 36, 0.18);
  border-radius: 18px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.34) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, #ffb6aa, #ffd782);
  transform: perspective(240px) rotateX(50deg) rotate(-2deg);
  transform-origin: center bottom;
  box-shadow: 3px 6px 0 rgba(47, 41, 36, 0.1);
}

.pair-miniroom-scene.scene-picnic .scene-path {
  left: 26%;
  right: 26%;
  bottom: 82px;
  height: 76px;
  background:
    linear-gradient(90deg, rgba(255, 120, 108, 0.32) 50%, transparent 50%) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(255, 120, 108, 0.26) 50%, transparent 50%) 0 0 / 18px 18px,
    #fff7df;
}

.pair-miniroom-scene.scene-stream .scene-path {
  background:
    radial-gradient(circle at 26% 46%, rgba(255, 255, 255, 0.56) 0 12px, transparent 13px),
    linear-gradient(135deg, #bdeaff, #87d5ff);
}

.pair-miniroom-scene.scene-moon .scene-path {
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.5) 0 16px, transparent 17px),
    linear-gradient(135deg, #dcd2ff, #f0b9dc);
}

.pair-miniroom-scene.scene-playground .scene-path {
  background:
    repeating-linear-gradient(90deg, rgba(47, 41, 36, 0.08) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, #fff08a, #ffb571);
}

.pair-miniroom-scene.scene-mountain .scene-path {
  background:
    linear-gradient(90deg, transparent 0 32%, rgba(255, 255, 255, 0.42) 32% 36%, transparent 36% 100%),
    linear-gradient(135deg, #e5d8ff, #ffc99b);
}

.pair-miniroom-scene.scene-bridge .scene-path {
  left: 22%;
  right: 22%;
  bottom: 83px;
  height: 64px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(47, 41, 36, 0.12) 0 2px, transparent 2px 20px),
    linear-gradient(135deg, #f2d4a4, #d9a86d);
  transform: perspective(250px) rotateX(48deg);
}

.pair-miniroom-scene.scene-garden .scene-path {
  background:
    radial-gradient(circle at 28% 40%, rgba(112, 205, 153, 0.34) 0 16px, transparent 17px),
    radial-gradient(circle at 70% 48%, rgba(112, 205, 153, 0.26) 0 18px, transparent 19px),
    linear-gradient(135deg, #fff0b0, #bfe5a4);
}

.pair-miniroom-scene .scene-sky {
  inset: 20px 28px auto;
  z-index: 4;
  font-size: 1.18rem;
  text-shadow: none;
}

.pair-miniroom-scene .scene-sky span,
.pair-miniroom-scene .scene-magic span,
.pair-miniroom-scene .scene-fireflies span,
.pair-miniroom-scene .scene-props span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  border: 2px solid rgba(47, 41, 36, 0.12);
  border-radius: 9px;
  background: rgba(255, 254, 248, 0.72);
  box-shadow: 2px 2px 0 rgba(47, 41, 36, 0.08);
}

.pair-miniroom-scene .scene-bookmark {
  left: 16px;
  top: 14px;
  width: 56px;
  height: 28px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff4a8, #ffd36e);
  color: #5a4438;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 2px 3px 0 rgba(47, 41, 36, 0.14);
}

.pair-miniroom-scene .scene-magic {
  left: 18%;
  right: 18%;
  top: 86px;
  z-index: 5;
}

.pair-miniroom-scene .scene-magic span {
  color: #f47d71;
  font-size: 0.86rem;
  text-shadow: none;
  background: rgba(255, 255, 255, 0.6);
}

.pair-miniroom-scene .scene-fireflies {
  inset: 82px 32px 104px;
  z-index: 5;
}

.pair-miniroom-scene .scene-fireflies span {
  color: #ffcf4c;
  min-width: 22px;
  min-height: 22px;
  border-radius: 7px;
  font-size: 0.72rem;
  text-shadow: none;
  background: rgba(255, 251, 213, 0.78);
}

.pair-miniroom-scene .scene-landmark {
  top: 49%;
  z-index: 3;
  font-size: clamp(3.6rem, 9vw, 5.6rem);
  opacity: 0.92;
  filter:
    drop-shadow(3px 5px 0 rgba(47, 41, 36, 0.12))
    drop-shadow(0 12px 18px rgba(47, 41, 36, 0.08));
}

.pair-miniroom-scene .scene-props {
  inset: auto 34px 55px;
  z-index: 4;
  align-items: flex-end;
  font-size: 1.22rem;
}

.pair-miniroom-scene .scene-props span:nth-child(2) {
  margin-bottom: 54px;
}

.pair-miniroom-scene .scene-props span:nth-child(3) {
  margin-bottom: 18px;
}

.pair-miniroom-scene .scene-props span:nth-child(4) {
  margin-bottom: 68px;
}

.pair-miniroom-scene .scene-props span:nth-child(5) {
  margin-bottom: 30px;
}

.pair-miniroom-scene .scene-ground {
  left: 14%;
  right: 14%;
  bottom: 54px;
  z-index: 3;
  height: 18px;
  background: radial-gradient(ellipse, rgba(47, 41, 36, 0.16), transparent 70%);
  filter: blur(2px);
}

.pair-miniroom-scene .scene-character {
  bottom: 58px;
  z-index: 6;
  width: min(38%, 148px);
}

.pair-miniroom-scene .scene-owner {
  left: 9%;
}

.pair-miniroom-scene .scene-participant {
  right: 9%;
}

.pair-miniroom-scene.scene-picnic .scene-owner,
.pair-miniroom-scene.scene-stream .scene-owner,
.pair-miniroom-scene.scene-garden .scene-owner {
  left: 11%;
}

.pair-miniroom-scene.scene-picnic .scene-participant,
.pair-miniroom-scene.scene-stream .scene-participant,
.pair-miniroom-scene.scene-garden .scene-participant {
  right: 11%;
}

.pair-miniroom-scene .chem-character.scene {
  width: 72px;
  height: 72px;
  border: 3px solid var(--charcoal);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 48%),
    var(--creature-bg, #ffe8b6);
  box-shadow:
    4px 5px 0 rgba(47, 41, 36, 0.16),
    inset 0 -7px 0 rgba(47, 41, 36, 0.06);
  image-rendering: auto;
}

.pair-miniroom-scene .scene-character b {
  border: 2px solid var(--charcoal);
  border-radius: 9px;
  background: #fffef8;
  box-shadow: 2px 2px 0 rgba(47, 41, 36, 0.1);
}

.pair-miniroom-scene .scene-character small {
  color: #6d574b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.pair-miniroom-scene .scene-interaction {
  bottom: 144px;
  z-index: 7;
}

.pair-miniroom-scene .scene-interaction span {
  width: 56px;
  height: 46px;
  border: 3px solid var(--charcoal);
  border-radius: 16px 16px 16px 6px;
  background: linear-gradient(180deg, #fffdf4, #ffe8a9);
  box-shadow:
    3px 4px 0 rgba(47, 41, 36, 0.16),
    0 0 0 7px rgba(255, 255, 255, 0.28);
  font-size: 1.42rem;
}

.pair-miniroom-scene .scene-interaction::before,
.pair-miniroom-scene .scene-interaction::after {
  top: 52%;
  width: 64px;
  height: 3px;
  border-radius: 0;
  background:
    repeating-linear-gradient(90deg, rgba(47, 41, 36, 0.28) 0 5px, transparent 5px 10px);
}

.pair-miniroom-scene .pair-scene-copy {
  border: 3px solid var(--charcoal);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 235, 0.78)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(47, 41, 36, 0.06) 25px 27px);
  box-shadow:
    5px 6px 0 rgba(47, 41, 36, 0.12),
    inset 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.pair-miniroom-scene .pair-scene-copy h2 {
  color: #2f2924;
}

.pair-miniroom-scene .scene-chips span {
  border: 2px solid var(--charcoal);
  border-radius: 10px;
  background: #fff8d8;
  box-shadow: 2px 2px 0 rgba(47, 41, 36, 0.1);
}

@keyframes sceneFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes scenePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes sceneTwinkle {
  0%,
  100% {
    transform: translateY(0) scale(0.92);
    opacity: 0.54;
  }
  50% {
    transform: translateY(-8px) scale(1.08);
    opacity: 1;
  }
}

@keyframes sceneSway {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-4px);
  }
}

@keyframes sceneFirefly {
  0%,
  100% {
    transform: translate(0, 0) scale(0.86);
    opacity: 0.44;
  }
  40% {
    transform: translate(8px, -10px) scale(1.08);
    opacity: 1;
  }
  70% {
    transform: translate(-5px, -4px) scale(0.96);
    opacity: 0.72;
  }
}

.result-side {
  display: grid;
  gap: 12px;
}

.doctor-result-card {
  padding: 16px;
  background: #fffaf1;
}

.result-doctor-row {
  grid-template-columns: 74px minmax(0, 1fr);
  margin-bottom: 0;
}

.result-doctor-row .doctor-avatar {
  width: 74px;
  height: 74px;
}

.result-doctor-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.result-doctor-row p {
  margin: 0;
  color: #5b514a;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.55;
}

.share-card {
  overflow: hidden;
  background: var(--white);
}

.share-body {
  padding: 16px;
}

.share-body h3 {
  margin: 0;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
}

.share-body p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.result-section {
  padding: 18px;
}

.result-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-weight: 400;
  font-size: 1.12rem;
}

.result-section-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.58;
}

.insight-list,
.question-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-list li,
.question-list li {
  padding: 11px 12px;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: #fffaf1;
  color: #524c54;
  line-height: 1.45;
}

.category-bars {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.bar-row span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5b5760;
  font-size: 0.86rem;
  font-weight: 900;
}

.category-emoji {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  padding: 0;
  border: 2px solid rgba(47, 41, 36, 0.16);
  border-radius: 999px;
  background: var(--yellow-soft);
  line-height: 1;
  text-align: center;
}

.category-emoji-glyph {
  display: block;
  width: 1em;
  height: 1em;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1rem;
  line-height: 1;
  transform: translateY(0.5px);
}

.category-emoji.pink {
  background: var(--pink-soft);
}

.category-emoji.sky {
  background: var(--sky-soft);
}

.category-emoji.mint {
  background: var(--mint-soft);
}

.category-emoji.yellow {
  background: var(--yellow-soft);
}

.bar-bg {
  height: 10px;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  background: var(--ivory-deep);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--peach), var(--yellow), var(--mint), var(--sky));
}

.disclaimer {
  margin-top: 14px;
  padding: 14px 16px;
  border: 2px dashed #9c805a;
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.74);
  color: #635d63;
  line-height: 1.58;
  font-size: 0.9rem;
}

.pair-science-report {
  margin-top: 14px;
  padding: clamp(16px, 2.4vw, 22px);
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 242, 184, 0.72), rgba(223, 248, 238, 0.58)),
    var(--white);
  box-shadow: var(--shadow);
}

.pair-science-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.pair-science-head h2 {
  margin: 0;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 400;
  line-height: 1.1;
}

.pair-science-head > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.pair-science-lead {
  max-width: 920px;
  margin: 12px 0 0;
  color: #554f56;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.72;
}

.pair-science-grid,
.pair-deep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pair-science-card {
  min-height: 236px;
  padding: 16px;
  border: 2px solid rgba(47, 41, 36, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.88);
}

.pair-science-card > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 8px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--pink-soft);
  color: #63433f;
  font-size: 0.74rem;
  font-weight: 950;
}

.pair-science-card .science-card-icon {
  width: 24px;
  height: 24px;
  border-width: 1px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.pair-science-card h3 {
  margin: 10px 0 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.pair-science-card p {
  margin: 8px 0 0;
  color: #554f56;
  font-weight: 800;
  line-height: 1.62;
}

.pair-science-card small {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(47, 41, 36, 0.22);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.5;
}

.pair-deep-grid .result-section {
  background: rgba(255, 254, 250, 0.9);
}

.mobile-result-actions {
  display: none;
}

.profile-band {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: 16px;
  align-items: end;
  padding: 18px;
  margin-bottom: 14px;
  overflow: hidden;
}

.ranking-hero-actions {
  width: 100%;
  display: grid;
  gap: 10px;
  justify-self: end;
}

.ranking-hero-actions .btn {
  width: 100%;
}

.ranking-my-character {
  width: min(100%, 520px);
  margin: 12px 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
}

.ranking-my-character .chem-character {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.ranking-my-character .creature-emoji {
  font-size: 1.58rem;
}

.ranking-my-character p {
  margin: 3px 0 0;
  color: #5a5149;
  font-size: 0.8rem;
  line-height: 1.38;
}

.notification-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff2b8, #dff8ee);
  box-shadow: 5px 5px 0 rgba(47, 41, 36, 0.14);
}

.notification-banner span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 950;
}

.notification-banner strong {
  display: block;
  font-size: 1.08rem;
}

.notification-banner p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.48;
}

.notification-banner .button-row {
  justify-content: flex-end;
}

.notification-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.notification-item {
  padding: 12px;
  border: 2px solid rgba(47, 41, 36, 0.18);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.78);
}

.notification-item.unread {
  border-color: var(--charcoal);
  background: #fff6d8;
  box-shadow: 3px 3px 0 rgba(47, 41, 36, 0.12);
}

.notification-item span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 950;
}

.notification-item strong,
.notification-item p {
  display: block;
}

.notification-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.profile-band .link-box {
  display: none !important;
}

.legal-page {
  display: grid;
  gap: 14px;
}

.legal-hero,
.legal-card {
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--soft-shadow);
}

.legal-hero {
  padding: clamp(18px, 3vw, 26px);
  background: linear-gradient(135deg, #fffdf6, #fff0e9 58%, #e5f7ff);
}

.legal-effective {
  display: inline-flex;
  width: fit-content;
  margin: 6px 0 0;
  padding: 7px 12px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--charcoal);
  color: var(--charcoal);
  font-size: 0.88rem;
  font-weight: 900;
}

.legal-card {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 3vw, 22px);
}

.legal-card article {
  display: grid;
  gap: 8px;
}

.legal-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.legal-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.55;
}

.legal-card .insight-list {
  margin: 0;
}

.legal-card .insight-list li {
  line-height: 1.62;
}

.contact-page {
  display: grid;
  gap: 16px;
  padding-bottom: 54px;
}

.contact-hero,
.contact-card {
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--soft-shadow);
}

.contact-hero {
  padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(135deg, #fffdf6, #e4faef 56%, #ffe6ef);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.contact-card {
  padding: clamp(16px, 3vw, 22px);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-field {
  display: grid;
  gap: 7px;
}

.contact-field span,
.contact-guide h2 {
  color: var(--charcoal);
  font-weight: 950;
}

.contact-field em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 750;
}

.business-page {
  display: grid;
  gap: 16px;
  padding-bottom: 54px;
}

.business-card {
  padding: clamp(16px, 3vw, 22px);
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--soft-shadow);
}

.business-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.business-list div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 2px solid rgba(47, 41, 36, 0.16);
  border-radius: 12px;
  background: #fffaf1;
}

.business-list dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 950;
}

.business-list dd {
  margin: 0;
  color: var(--charcoal);
  font-weight: 900;
  line-height: 1.45;
  word-break: keep-all;
}

.business-list a {
  color: inherit;
}

.contact-textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.55;
}

.contact-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.5;
}

.contact-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--peach);
}

.contact-submit {
  justify-self: start;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-guide {
  display: grid;
  gap: 10px;
  background: #fffaf1;
}

.contact-guide h2 {
  margin: 0;
  font-size: 1.05rem;
}

.admin-page {
  padding-bottom: 64px;
}

.admin-login-card,
.admin-panel,
.admin-metric-card {
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--soft-shadow);
}

.admin-login-card {
  width: min(100%, 540px);
  margin: 72px auto 0;
  padding: 22px;
}

.admin-login-card .screen-title {
  margin-bottom: 10px;
}

.admin-error {
  margin: 14px 0;
  padding: 12px;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: #ffe0db;
  color: var(--peach-deep);
  font-weight: 900;
}

.admin-hero {
  align-items: center;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-metric-card {
  min-height: 120px;
  padding: 14px;
}

.admin-metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
}

.admin-metric-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.admin-metric-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

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

.admin-panel {
  padding: 16px;
  overflow: hidden;
}

.admin-quality-panel {
  margin-bottom: 14px;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.admin-panel-head p,
.admin-panel-head span {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-quality-note {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 2px dashed rgba(47, 41, 36, 0.32);
  border-radius: 12px;
  background: var(--yellow-soft);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.55;
}

.admin-quality-summary,
.admin-quality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-quality-card,
.admin-quality-category {
  border: 2px solid rgba(47, 41, 36, 0.18);
  border-radius: 14px;
  background: rgba(255, 250, 238, 0.78);
}

.admin-quality-card {
  padding: 13px;
}

.admin-quality-card span,
.admin-quality-score span,
.admin-quality-mini span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.admin-quality-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
}

.admin-quality-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.38;
}

.admin-version-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}

.admin-quality-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
}

.admin-quality-category h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-quality-category p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.admin-quality-score {
  min-width: 112px;
  text-align: right;
}

.admin-quality-score strong {
  display: block;
  margin: 4px 0 5px;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.admin-quality-mini {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-quality-mini span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--white);
}

.admin-quality-subhead {
  margin: 16px 0 8px;
}

.admin-bars {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 8px;
  min-height: 170px;
  align-items: end;
}

.admin-bar-item {
  display: grid;
  gap: 5px;
  justify-items: center;
  min-width: 0;
}

.admin-bar-track {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: end;
  border: 2px solid var(--charcoal);
  border-radius: 999px 999px 6px 6px;
  background: var(--yellow-soft);
  overflow: hidden;
}

.admin-bar-track span {
  width: 100%;
  display: block;
  background: linear-gradient(180deg, var(--mint), var(--sky));
  border-top: 2px solid rgba(47, 41, 36, 0.2);
}

.admin-bar-item b {
  font-size: 0.8rem;
}

.admin-bar-item small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.admin-quality-table {
  min-width: 860px;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: left;
}

.admin-table td {
  padding: 10px;
  border-top: 2px solid rgba(47, 41, 36, 0.14);
  border-bottom: 2px solid rgba(47, 41, 36, 0.14);
  background: rgba(255, 250, 238, 0.8);
  vertical-align: middle;
}

.admin-table td:first-child {
  border-left: 2px solid rgba(47, 41, 36, 0.14);
  border-radius: 10px 0 0 10px;
}

.admin-table td:last-child {
  border-right: 2px solid rgba(47, 41, 36, 0.14);
  border-radius: 0 10px 10px 0;
}

.admin-table b,
.admin-table span {
  display: block;
}

.admin-table td > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  margin: 2px 4px 2px 0;
  padding: 4px 8px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--white);
  color: var(--charcoal) !important;
  font-size: 0.76rem !important;
  font-weight: 950 !important;
  line-height: 1;
}

.admin-badge.mint {
  background: var(--mint-soft);
}

.admin-badge.sky {
  background: var(--sky-soft);
}

.admin-badge.yellow {
  background: var(--yellow-soft);
}

.admin-badge.pink {
  background: var(--pink-soft);
}

.personal-profile-page {
  display: grid;
  gap: 14px;
}

.profile-report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 16px;
  align-items: stretch;
}

.profile-report-hero,
.profile-snapshot,
.profile-card {
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.94);
  box-shadow: var(--soft-shadow);
}

.profile-report-hero {
  padding: clamp(18px, 3vw, 26px);
  background: linear-gradient(135deg, #fffdf6, #fff0e9 58%, #e5f7ff);
}

.profile-mood-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.profile-mood-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border: 2px solid rgba(47, 41, 36, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 238, 0.9);
  color: #5a5149;
  font-size: 0.82rem;
  font-weight: 950;
}

.profile-mood-strip b {
  font-size: 1rem;
  line-height: 1;
}

.profile-snapshot {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  background: #fffaf1;
}

.profile-creature-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 2px solid rgba(47, 41, 36, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--creature-accent), transparent 64%) 0 16%, transparent 17%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), color-mix(in srgb, var(--creature-bg), white 32%));
}

.profile-creature-card .chem-character {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.profile-creature-card .creature-emoji {
  font-size: 1.82rem;
}

.profile-creature-card span:not(.chem-character):not(.creature-emoji):not(.creature-spark) {
  display: block;
  color: #8a6f64;
  font-size: 0.74rem;
  font-weight: 950;
}

.profile-creature-card b {
  display: block;
  margin-top: 2px;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
}

.profile-snapshot .profile-creature-card p {
  margin-top: 4px;
  overflow: visible;
  color: #5a5149;
  font-size: 0.83rem;
  line-height: 1.42;
}

.profile-snapshot strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
}

.profile-title-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(47, 41, 36, 0.18);
  border-radius: 999px;
  background: var(--sky-soft);
  font-size: 1rem;
}

.profile-snapshot p {
  margin: 0;
  color: #5b514a;
  line-height: 1.58;
  font-weight: 700;
}

.profile-score-stack {
  display: grid;
  gap: 8px;
}

.profile-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(70px, 0.55fr) 42px;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 2px 3px 0 rgba(47, 41, 36, 0.08);
}

.profile-score-row span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  color: #5c4d45;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-score-row span i {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--ivory-deep);
  font-style: normal;
  line-height: 1;
}

.profile-score-bar {
  height: 9px;
  border: 1px solid rgba(47, 41, 36, 0.32);
  border-radius: 999px;
  background: rgba(255, 247, 232, 0.86);
  overflow: hidden;
}

.profile-score-bar em {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--peach), var(--yellow), var(--mint));
}

.profile-score-row b {
  justify-self: end;
  color: var(--peach-deep);
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.profile-card-grid,
.profile-detail-grid {
  display: grid;
  gap: 12px;
}

.profile-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-card {
  min-height: 190px;
  padding: 16px;
}

.profile-card:nth-child(1) {
  background: #fff9ef;
}

.profile-card:nth-child(2) {
  background: var(--pink-soft);
}

.profile-card:nth-child(3) {
  background: var(--mint-soft);
}

.profile-card:nth-child(4) {
  background: var(--sky-soft);
}

.profile-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-card-head span {
  min-width: 42px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 5px 8px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--yellow-soft);
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: 0.9rem;
}

.profile-card-head b {
  min-width: 0;
  overflow: hidden;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: 1.04rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-head strong {
  color: var(--peach-deep);
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.profile-card p {
  margin: 0;
  color: #524c54;
  line-height: 1.58;
  font-weight: 700;
}

.profile-deep-dive {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.profile-deep-main,
.profile-deep-card,
.profile-manual-card {
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--soft-shadow);
}

.profile-deep-main {
  grid-column: 1 / -1;
  padding: clamp(18px, 3vw, 26px);
  background: linear-gradient(135deg, #fffdf6, #e4faef 56%, #ffe6ef);
}

.profile-deep-main h2 {
  margin: 0 0 10px;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 400;
  line-height: 1.15;
}

.profile-deep-main p,
.profile-deep-card p,
.profile-manual-card p {
  margin: 0;
  color: #524c54;
  font-weight: 760;
  line-height: 1.66;
}

.profile-deep-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.profile-deep-card span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 6px 10px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 950;
}

.profile-deep-card span i {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(47, 41, 36, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.profile-deep-card h3 {
  margin: 0;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.25;
}

.profile-deep-card em {
  display: block;
  padding-top: 10px;
  border-top: 2px dashed rgba(47, 41, 36, 0.24);
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.55;
}

.profile-manual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.profile-manual-card {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 16px;
  background: #fffaf1;
}

.profile-manual-card b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.25;
}

.profile-manual-card b span {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(47, 41, 36, 0.18);
  border-radius: 999px;
  background: var(--white);
  font-size: 1rem;
  line-height: 1;
}

.link-box {
  width: 100%;
  min-width: 0;
  max-width: 360px;
  justify-self: end;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: #fffaf1;
}

.link-box code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #62564e;
}

.field {
  width: 100%;
  min-height: 46px;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: var(--white);
  color: var(--charcoal);
}

.field-hint {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(36, 36, 44, 0.42);
}

.modal-panel {
  width: min(100%, 480px);
  padding: 20px;
}

.modal-panel h2 {
  margin: 0;
  font-family: "Jua", "IBM Plex Sans KR", sans-serif;
  font-weight: 400;
  font-size: 1.45rem;
}

.modal-panel p {
  color: var(--muted);
  line-height: 1.58;
}

.form-stack {
  display: grid;
  gap: 10px;
}

.loading-screen {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  text-align: center;
}

.loading-box {
  width: min(100%, 540px);
  padding: 28px;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.loading-dots {
  display: inline-flex;
  gap: 6px;
  margin-top: 16px;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--peach);
  animation: dot 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.16s;
  background: var(--yellow);
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.32s;
  background: var(--mint);
}

.empty-state {
  padding: 28px;
  border: 2px dashed #9c805a;
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 254, 250, 0.7);
}

.empty-state.compact {
  padding: 16px;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  max-width: min(92vw, 420px);
  padding: 12px 14px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: var(--charcoal);
  color: white;
  font-weight: 850;
  box-shadow: var(--shadow);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.hide {
  display: none !important;
}

@keyframes tailPulse {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(-0.5deg);
  }
}

@keyframes dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.52;
  }
  40% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero,
  .invite-layout,
  .contact-layout,
  .landing-insight-panel,
  .profile-report-hero,
  .result-hero,
  .pair-nature-scene,
  .result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
  }

  .hero-visual {
    min-height: auto;
  }

  .invite-card {
    position: static;
    width: 100%;
    max-width: 100%;
  }

  .screen-head {
    grid-template-columns: 1fr;
  }

  .profile-band {
    grid-template-columns: 1fr;
  }

  .notification-banner {
    grid-template-columns: 1fr;
  }

  .notification-banner .button-row {
    justify-content: flex-start;
  }

  .link-box {
    max-width: none;
    justify-self: stretch;
  }

  .profile-card-grid,
  .profile-manual-grid,
  .profile-detail-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-quality-summary,
  .admin-quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav {
    width: min(100% - 24px, var(--content));
    min-height: 56px;
  }

  .brand span:last-child {
    display: none;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .page {
    width: min(100% - 24px, var(--content));
  }

  .business-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .nav-actions .btn {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .hero {
    gap: 16px;
    padding-top: 18px;
  }

  .hero h1,
  .screen-title {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .lead {
    margin-top: 12px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-actions .btn-secondary {
    display: none;
  }

  .admin-login-card {
    margin-top: 28px;
  }

  .admin-grid,
  .admin-metrics-grid,
  .admin-quality-summary,
  .admin-quality-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-quality-category {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-quality-score {
    text-align: left;
  }

  .admin-bars {
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .admin-bar-item {
    min-width: 34px;
  }

  .trust-strip {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .trust-chip {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    min-height: 30px;
    font-size: 0.8rem;
  }

  .trust-chip:last-child {
    flex-basis: 100%;
  }

  .ranking-stats-strip {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .ranking-stats-strip .trust-chip,
  .ranking-stats-strip .trust-chip:last-child {
    min-width: 0;
    justify-content: center;
    flex: initial;
    flex-basis: auto;
    padding: 7px 5px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .hero-visual {
    min-height: auto;
    display: block;
  }

  .floating-note {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 0;
  }

  .landing-rank-card {
    order: -1;
    width: 100%;
    margin: 0 0 12px;
  }

  .landing-rank-card .mini-rank-list {
    max-height: 340px;
    overflow: auto;
    padding-right: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .rank-card-head {
    align-items: center;
  }

  .peek-band,
  .profile-card-grid,
  .profile-deep-dive,
  .profile-manual-grid,
  .profile-detail-grid,
  .stats-grid,
  .score-grid,
  .pair-science-grid,
  .pair-deep-grid {
    grid-template-columns: 1fr;
  }

  .peek-band {
    margin-bottom: 28px;
  }

  .screen {
    padding-top: 24px;
  }

  .screen-head {
    gap: 12px;
  }

  .screen-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .toolbar {
    align-items: flex-start;
  }

  .segmented {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    border-radius: var(--radius);
    -webkit-overflow-scrolling: touch;
  }

  .segmented button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .ranking-item {
    grid-template-columns: 42px 38px minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
  }

  .score-pills {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 92px;
  }

  .score-pill {
    min-width: 70px;
    padding: 7px 8px;
    font-size: 0.78rem;
  }

  .ranking-item-clickable::after {
    position: static;
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 92px;
    opacity: 1;
    transform: none;
  }

  .profile-band .link-box {
    display: none;
  }

  .result-main {
    padding: 18px;
  }

  .pair-title {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .profile-score-row {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .profile-score-bar {
    grid-column: 1 / -1;
  }

  .pair-science-head {
    display: grid;
  }

  .pair-science-head > span {
    justify-self: flex-start;
  }

  .pair-science-card {
    min-height: 0;
  }

  .result-copy {
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .big-score {
    min-height: 128px;
    padding: 16px;
  }

  .pair-nature-scene {
    padding: 12px;
  }

  .pair-scene-stage {
    min-height: 270px;
  }

  .scene-character {
    bottom: 36px;
    width: 42%;
  }

  .scene-owner {
    left: 5%;
  }

  .scene-participant {
    right: 5%;
  }

  .chem-character.scene {
    width: 62px;
    height: 62px;
    border-radius: 21px;
  }

  .chem-character.scene .creature-emoji {
    font-size: 1.95rem;
  }

  .scene-interaction {
    bottom: 106px;
  }

  .scene-interaction span {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }

  .scene-magic {
    left: 18%;
    right: 18%;
    top: 64px;
  }

  .scene-fireflies {
    inset: 62px 24px 92px;
  }

  .pair-scene-copy {
    padding: 14px;
  }

  .pair-miniroom-scene .pair-scene-stage {
    min-height: 292px;
    border-radius: 16px;
  }

  .pair-miniroom-scene .pair-scene-stage::before {
    inset: 12px 12px auto;
    height: 132px;
  }

  .pair-miniroom-scene .pair-scene-stage::after {
    inset: auto 6% 12px;
    height: 138px;
  }

  .pair-miniroom-scene .scene-depth-back {
    left: 8%;
    right: 8%;
    top: 38px;
    height: 86px;
  }

  .pair-miniroom-scene .scene-depth-back::before {
    left: 16px;
    top: 17px;
    width: 48px;
    height: 34px;
  }

  .pair-miniroom-scene .scene-depth-back::after {
    right: 18px;
    bottom: 14px;
    width: 72px;
  }

  .pair-miniroom-scene .scene-depth-mid {
    left: 8%;
    right: 8%;
    bottom: 38px;
    height: 112px;
  }

  .pair-miniroom-scene .scene-path {
    left: 24%;
    right: 24%;
    bottom: 62px;
    height: 62px;
  }

  .pair-miniroom-scene.scene-bridge .scene-path {
    left: 18%;
    right: 18%;
    bottom: 66px;
    height: 48px;
  }

  .pair-miniroom-scene .scene-sky {
    inset: 16px 18px auto;
    font-size: 0.98rem;
  }

  .pair-miniroom-scene .scene-sky span,
  .pair-miniroom-scene .scene-magic span,
  .pair-miniroom-scene .scene-fireflies span,
  .pair-miniroom-scene .scene-props span {
    min-width: 24px;
    min-height: 24px;
    border-radius: 8px;
  }

  .pair-miniroom-scene .scene-bookmark {
    left: 12px;
    top: 12px;
    width: 48px;
    height: 24px;
    font-size: 0.74rem;
  }

  .pair-miniroom-scene .scene-magic {
    left: 16%;
    right: 16%;
    top: 70px;
  }

  .pair-miniroom-scene .scene-fireflies {
    inset: 68px 18px 92px;
  }

  .pair-miniroom-scene .scene-landmark {
    top: 50%;
    font-size: 3.25rem;
  }

  .pair-miniroom-scene .scene-props {
    inset: auto 18px 45px;
    font-size: 1rem;
  }

  .pair-miniroom-scene .scene-props span:nth-child(2) {
    margin-bottom: 34px;
  }

  .pair-miniroom-scene .scene-props span:nth-child(3) {
    margin-bottom: 12px;
  }

  .pair-miniroom-scene .scene-props span:nth-child(4) {
    margin-bottom: 44px;
  }

  .pair-miniroom-scene .scene-props span:nth-child(5) {
    margin-bottom: 18px;
  }

  .pair-miniroom-scene .scene-character {
    bottom: 42px;
    width: 42%;
  }

  .pair-miniroom-scene .scene-owner,
  .pair-miniroom-scene.scene-picnic .scene-owner,
  .pair-miniroom-scene.scene-stream .scene-owner,
  .pair-miniroom-scene.scene-garden .scene-owner {
    left: 4%;
  }

  .pair-miniroom-scene .scene-participant,
  .pair-miniroom-scene.scene-picnic .scene-participant,
  .pair-miniroom-scene.scene-stream .scene-participant,
  .pair-miniroom-scene.scene-garden .scene-participant {
    right: 4%;
  }

  .pair-miniroom-scene .chem-character.scene {
    width: 58px;
    height: 58px;
    border-radius: 15px;
  }

  .pair-miniroom-scene .scene-interaction {
    bottom: 112px;
  }

  .pair-miniroom-scene .scene-interaction span {
    width: 46px;
    height: 40px;
    font-size: 1.2rem;
  }

  .pair-miniroom-scene .scene-interaction::before,
  .pair-miniroom-scene .scene-interaction::after {
    width: 42px;
  }

  .share-card {
    display: none;
  }

  .result-grid {
    gap: 10px;
  }

  .mobile-result-actions {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(232, 220, 201, 0.9);
    border-radius: 999px;
    background: rgba(255, 247, 232, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
  }

  .mobile-result-actions .btn {
    min-height: 44px;
    padding: 10px 12px;
  }

  .page.screen:has(.mobile-result-actions) {
    padding-bottom: 112px;
  }

  .doctor-row {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .doctor-avatar {
    width: 70px;
    height: 70px;
  }

  .choice {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .choice-mood {
    grid-column: 2;
  }

  .survey-actions,
  .hero-actions,
  .button-row {
    min-width: 0;
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    min-width: 0;
    width: 100%;
  }

  .bar-row {
    grid-template-columns: 116px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .link-box {
    min-width: 0;
  }
}

/* Minihome skin: retro room-like web UI, without using third-party brand assets. */
:root {
  --ivory: #fff1dc;
  --ivory-deep: #f1cfaa;
  --peach: #ff806f;
  --peach-deep: #db5d51;
  --sky: #68c8f0;
  --sky-soft: #e3f8ff;
  --mint: #92e0bf;
  --mint-soft: #e8fbf0;
  --yellow: #ffd75e;
  --yellow-soft: #fff0a8;
  --pink-soft: #ffe7f0;
  --white: #fffef8;
  --shadow: 5px 5px 0 rgba(36, 32, 29, 0.92);
  --soft-shadow: 3px 3px 0 rgba(36, 32, 29, 0.82);
  --radius: 10px;
}

body {
  background:
    radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.9) 0 2px, transparent 2.5px),
    radial-gradient(circle at 82% 12%, rgba(255, 128, 111, 0.18) 0 92px, transparent 94px),
    radial-gradient(circle at 12% 86%, rgba(255, 215, 94, 0.26) 0 86px, transparent 88px),
    radial-gradient(circle at 48% 8%, rgba(255, 170, 103, 0.12) 0 112px, transparent 114px),
    linear-gradient(rgba(96, 66, 42, 0.048) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 66, 42, 0.048) 1px, transparent 1px),
    linear-gradient(180deg, #fff0d6 0%, #fff8eb 46%, #ffe5cf 100%);
  background-size: 40px 40px, auto, auto, auto, 28px 28px, 28px 28px, auto;
}

.site-header {
  border-bottom: 3px solid var(--charcoal);
  background:
    linear-gradient(180deg, #fffdf6 0 48%, #ffe8c7 48% 100%);
  box-shadow: 0 4px 0 rgba(36, 32, 29, 0.16);
}

.nav {
  min-height: 70px;
}

.brand {
  padding: 7px 10px 7px 7px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: #fffef8;
  box-shadow: 3px 3px 0 #9ddcf6;
}

.brand-mark {
  border-radius: 50%;
  background: #fffef8;
  box-shadow: 2px 2px 0 var(--sky);
}

.hero,
.page.screen,
.survey-wrap {
  position: relative;
  border: 3px solid var(--charcoal);
  border-radius: 18px;
  background:
    linear-gradient(#ffe3b8 0 34px, transparent 34px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7), transparent 26% 74%, rgba(255, 255, 255, 0.5)),
    radial-gradient(circle at 22% 17%, rgba(255, 201, 109, 0.24) 0 48px, transparent 50px),
    linear-gradient(180deg, rgba(255, 254, 248, 0.97), rgba(255, 241, 223, 0.95));
  box-shadow: 7px 7px 0 rgba(36, 32, 29, 0.9);
  overflow: hidden;
}

.hero {
  min-height: auto;
  margin: 26px 0 36px;
  padding: clamp(58px, 6vw, 76px) clamp(18px, 4vw, 34px) clamp(22px, 4vw, 34px);
}

.page.screen {
  margin-top: 26px;
  margin-bottom: 36px;
  padding: clamp(58px, 6vw, 76px) clamp(16px, 3vw, 26px) clamp(20px, 4vw, 34px);
}

.survey-wrap {
  margin-top: 26px;
  margin-bottom: 36px;
  padding: clamp(58px, 6vw, 76px) clamp(16px, 3vw, 26px) clamp(20px, 4vw, 34px);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  display: flex;
  align-items: center;
  padding-left: 46px;
  border-bottom: 3px solid var(--charcoal);
  background:
    radial-gradient(circle at 15px 50%, #ff806f 0 5px, transparent 5.5px),
    radial-gradient(circle at 29px 50%, #ffd75e 0 5px, transparent 5.5px),
    radial-gradient(circle at 43px 50%, #92e0bf 0 5px, transparent 5.5px),
    linear-gradient(180deg, #ffdca9, #fff2cf);
  color: #4b5960;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
}

.eyebrow,
.trust-chip,
.metric-chip,
.rank-count,
.relationship-type,
.category-label,
.pair-science-head > span,
.profile-mood-strip span,
.result-mood-strip span,
.profile-deep-card span,
.legal-effective {
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 54%),
    #fff8d8;
  box-shadow: 2px 2px 0 rgba(36, 32, 29, 0.74);
}

.hero h1 span {
  color: #e06257;
  text-decoration-style: wavy;
  text-decoration-thickness: 0.12em;
}

.lead,
.screen-subtitle,
.result-copy,
.pair-science-lead,
.profile-deep-main p,
.profile-deep-card p,
.profile-manual-card p {
  color: #4f5660;
}

.landing-rank-card,
.invite-card,
.profile-band,
.result-main,
.result-section,
.question-card,
.doctor-result-card,
.share-card,
.modal-panel,
.legal-hero,
.legal-card,
.contact-hero,
.contact-card,
.admin-login-card,
.admin-panel,
.admin-metric-card,
.profile-report-hero,
.profile-snapshot,
.profile-card,
.profile-deep-main,
.profile-deep-card,
.profile-manual-card,
.loading-box {
  border: 3px solid var(--charcoal);
  border-radius: 14px;
  background:
    linear-gradient(#fff8d8 0 28px, transparent 28px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 238, 0.95));
  box-shadow: 5px 5px 0 rgba(36, 32, 29, 0.82);
}

.invite-card::before,
.landing-rank-card::before,
.modal-panel::before,
.page.screen::before,
.survey-wrap::before,
.profile-band::before,
.profile-report-hero::before,
.result-main::before,
.question-card::before {
  content: none;
  display: none;
}

.result-main,
.question-card,
.profile-report-hero {
  position: relative;
  overflow: hidden;
}

.result-main > *,
.question-card > *,
.profile-report-hero > * {
  position: relative;
  z-index: 1;
}

.signal-card,
.mini-rank-row,
.ranking-item,
.stat,
.choice,
.insight-list li,
.question-list li,
.pair-science-card,
.profile-score-row,
.profile-creature-card,
.notification-banner,
.notification-item,
.empty-state,
.link-box,
.field,
.segmented {
  border-width: 3px;
  border-radius: 12px;
  box-shadow: 3px 3px 0 rgba(36, 32, 29, 0.72);
}

.signal-card,
.mini-rank-row,
.ranking-item,
.choice,
.insight-list li,
.question-list li,
.profile-score-row,
.notification-item,
.empty-state {
  background:
    repeating-linear-gradient(0deg, rgba(104, 200, 240, 0.05) 0 1px, transparent 1px 18px),
    #fffef8;
}

.landing-insight-panel,
.pair-science-report,
.notification-banner,
.profile-deep-main,
.contact-hero,
.legal-hero {
  border: 3px solid var(--charcoal);
  border-radius: 14px;
  background:
    linear-gradient(#dff7ff 0 30px, transparent 30px),
    linear-gradient(135deg, rgba(255, 254, 248, 0.98), rgba(232, 251, 240, 0.94) 58%, rgba(255, 231, 240, 0.9));
  box-shadow: 5px 5px 0 rgba(36, 32, 29, 0.82);
}

.landing-insight-panel {
  padding-top: clamp(42px, 4vw, 52px);
}

.btn,
.icon-btn,
.rank-page-btn,
.segmented button {
  border-width: 3px;
  border-radius: 10px;
  box-shadow: 3px 3px 0 rgba(36, 32, 29, 0.88);
}

.btn:hover,
.signal-card:hover,
.signal-card.active,
.choice:hover,
.ranking-item-clickable:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(36, 32, 29, 0.88);
}

.btn-primary,
.btn-kakao,
.rank-page-btn.active,
.segmented button.active {
  color: #251816;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 52%),
    var(--peach);
}

.btn-secondary,
.rank-page-btn,
.icon-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), transparent 54%),
    #fffef8;
}

.btn-kakao {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 52%),
    #fee500;
}

.btn-mint {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 54%),
    var(--mint);
}

.btn-sky {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 54%),
    var(--sky);
}

.progress-track,
.bar-bg,
.profile-score-bar {
  border-width: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(36, 32, 29, 0.1) 0 1px, transparent 1px 12px),
    #fffef8;
}

.progress-bar,
.bar-fill,
.profile-score-bar em {
  background: linear-gradient(90deg, #ff806f 0 28%, #ffd75e 28% 56%, #92e0bf 56% 78%, #68c8f0 78% 100%);
}

.doctor-avatar {
  border-width: 3px;
  border-radius: 18px;
  background: #fffef8;
  box-shadow: 3px 3px 0 #9ddcf6;
}

.speech {
  border-width: 3px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 55%),
    #fff8d8;
  box-shadow: 3px 3px 0 rgba(36, 32, 29, 0.72);
}

.speech::before {
  border-left-width: 3px;
  border-bottom-width: 3px;
  background: #fff8d8;
}

.screen-head,
.toolbar,
.rank-card-head,
.pair-science-head,
.profile-card-head {
  border-bottom: 2px dashed rgba(36, 32, 29, 0.24);
  padding-bottom: 12px;
}

.score-pill,
.rank-badge,
.mini-rank-number,
.choice-index,
.category-emoji,
.profile-title-icon,
.science-card-icon,
.section-emoji,
.score-icon,
.signal-toggle {
  border-width: 2px;
  border-radius: 10px;
  box-shadow: 2px 2px 0 rgba(36, 32, 29, 0.55);
}

.rank-badge,
.mini-rank-number {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 52%),
    var(--yellow-soft);
}

.big-score {
  border-width: 3px;
  border-radius: 12px;
  background:
    linear-gradient(#fff8d8 0 24px, transparent 24px),
    #fffef8;
  box-shadow: 3px 3px 0 rgba(36, 32, 29, 0.72);
}

.big-score.romance {
  background:
    linear-gradient(#ffe7f0 0 24px, transparent 24px),
    #fff6f4;
}

.link-box code,
.field {
  font-family: "IBM Plex Sans KR", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.site-footer {
  color: #4f5960;
}

.site-footer div {
  padding: 8px 12px;
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  background: rgba(255, 254, 248, 0.72);
  box-shadow: 2px 2px 0 rgba(36, 32, 29, 0.42);
}

@media (max-width: 900px) {
  .hero,
  .page.screen,
  .survey-wrap {
    margin-top: 16px;
    border-radius: 14px;
  }
}

@media (max-width: 680px) {
  .hero,
  .page.screen,
  .survey-wrap {
    padding-top: 52px;
    box-shadow: 4px 4px 0 rgba(36, 32, 29, 0.88);
  }

  .hero::before {
    height: 30px;
    padding-left: 42px;
    font-size: 0.66rem;
  }

  .brand {
    padding-right: 7px;
  }

  .site-footer div {
    flex-wrap: wrap;
    border-radius: 14px;
  }

  .app-shell:has(.survey-wrap) .site-footer {
    display: none;
  }

  .survey-wrap {
    width: min(100% - 16px, var(--content));
    margin-top: 8px;
    margin-bottom: 0;
    padding: 36px 10px 8px;
    border-radius: 12px;
  }

  .survey-wrap::before {
    height: 26px;
  }

  .survey-wrap .progress-top {
    gap: 6px;
    margin-bottom: 8px;
  }

  .survey-wrap .progress-meta {
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .survey-wrap .progress-track {
    height: 10px;
    border-width: 2px;
  }

  .survey-wrap .question-card {
    padding: 10px;
    border-width: 2px;
    border-radius: 11px;
    box-shadow: 3px 3px 0 rgba(36, 32, 29, 0.72);
  }

  .survey-wrap .doctor-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 8px;
  }

  .survey-wrap .doctor-avatar {
    width: 42px;
    height: 42px;
    border-width: 2px;
    border-radius: 13px;
  }

  .survey-wrap .speech {
    padding: 7px 9px;
    border-width: 2px;
    font-size: 0.77rem;
    line-height: 1.26;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .survey-wrap .speech::before {
    left: -6px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-left-width: 2px;
    border-bottom-width: 2px;
  }

  .survey-wrap .question-kicker {
    gap: 6px;
    margin-bottom: 6px;
  }

  .survey-wrap .category-label {
    min-height: 24px;
    padding: 4px 8px;
    border-width: 2px;
    font-size: 0.7rem;
  }

  .survey-wrap .metric-chip {
    display: none;
  }

  .survey-wrap .question-text {
    margin-bottom: 9px;
    font-size: clamp(1.12rem, 6.1vw, 1.46rem);
    line-height: 1.22;
  }

  .survey-wrap .choices {
    gap: 6px;
  }

  .survey-wrap .choice {
    min-height: 40px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 9px;
    border-width: 2px;
    border-radius: 10px;
  }

  .survey-wrap .choice-index {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 0.74rem;
  }

  .survey-wrap .choice-label {
    font-size: 0.9rem;
    line-height: 1.22;
  }

  .survey-wrap .choice-mood {
    display: none;
  }

  .survey-wrap .survey-actions {
    flex-direction: row;
    gap: 8px;
    margin-top: 10px;
  }

  .survey-wrap .survey-actions .btn {
    width: auto;
    flex: 1 1 0;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}
