/* K-pop Idol Position Test — same mood as other tests (white page, #3A2A22 outlines, gothic titles) */
.page-idol { --pink: #F7A8C8; --ink: #3A2A22; }

/* ② Upload */
.idol-upload { text-align: center; }
.idol-up__title { margin: 12px 0 4px; font-family: var(--f-hand); font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.idol-up__sub { margin: 0 0 18px; color: var(--muted); }
.idol-up__box { position: relative; display: flex; align-items: center; justify-content: center; width: min(300px, 82%); aspect-ratio: 1; margin: 0 auto; border: 3px dashed #C9BEB6; border-radius: 24px; background: #FFF6FA; cursor: pointer; overflow: hidden; }
.idol-up__box.has-photo { border-style: solid; border-color: var(--ink); background: #FFFFFF; }
.idol-up__box.is-busy::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.6); }
.idol-up__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #8A7A72; font-size: 15px; }
.idol-up__empty svg { width: 44px; height: 44px; }
.idol-up__prev { width: 100%; height: 100%; object-fit: cover; }
.idol-up__change { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 0 10px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.idol-up__err { margin: 6px 0 0; color: #C62828; font-weight: 700; font-size: 14px; }
.idol-up__lock { display: flex; align-items: flex-start; justify-content: center; gap: 6px; max-width: 320px; margin: 14px auto 0; font-size: 13px; color: #5A4A42; line-height: 1.45; text-align: left; }
.idol-up__lock svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.idol-up__fine { max-width: 320px; margin: 4px auto 18px; padding-left: 22px; font-size: 11.5px; color: #8A7A72; line-height: 1.4; text-align: left; }
.idol-up__ok:disabled { opacity: .45; cursor: not-allowed; }
.idol-up__skip { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: #6E5D55; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ③ Loading */
.idol-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; }
.idol-load__art { position: relative; width: 170px; height: 170px; margin-bottom: 18px; }
.idol-load__mascot { width: 100%; height: 100%; object-fit: contain; animation: idol-bounce .6s ease-in-out infinite alternate; }
.idol-load__mic { position: absolute; right: -10px; top: 26px; width: 64px; height: 64px; transform: rotate(18deg); animation: idol-bounce .6s ease-in-out infinite alternate-reverse; }
@keyframes idol-bounce { from { transform: translateY(0); } to { transform: translateY(-14px); } }
.idol-load__msg { min-height: 1.5em; margin: 0 0 14px; font-family: var(--f-hand); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.idol-load__bar { width: min(260px, 70%); height: 10px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: #FFFFFF; }
.idol-load__bar span { display: block; width: 0; height: 100%; background: var(--pink); transition: width linear; }
@media (prefers-reduced-motion: reduce) { .idol-load__mascot, .idol-load__mic { animation: none; } }

/* ④ Result */
.idol-card { padding: 22px 18px 18px; text-align: center; background: #FFFFFF; border: 2.5px solid var(--ink); border-radius: var(--r-lg); }
.idol-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--pink); font-family: var(--f-hand); font-weight: 800; font-size: 15px; letter-spacing: .08em; }
.idol-badge__icon { letter-spacing: 0; font-size: 18px; }
.idol-title { margin: 0; font-family: var(--f-hand); font-weight: 800; font-size: 30px; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.idol-ko { margin: 10px 0 16px; font-family: "Gaegu", "Noto Sans KR", sans-serif; font-weight: 700; font-size: 24px; color: var(--pos-ink); transform: rotate(-4deg); }
.idol-photo { position: relative; width: min(280px, 80%); aspect-ratio: 4 / 5; margin: 0 auto; border: 3px solid var(--ink); border-radius: 24px; overflow: hidden; background: #F2EEEB; }
.idol-photo img { width: 100%; height: 100%; object-fit: cover; }
.idol-photo--mascot { background: #FBE3EE; }
.idol-photo--mascot img { object-fit: contain; padding: 14%; }
.idol-photo--mascot .idol-photo__mic { position: absolute; right: 8%; top: 10%; width: 26%; height: auto; padding: 0; transform: rotate(16deg); }
.idol-bubble { position: relative; display: inline-block; max-width: 92%; margin: 18px auto 0; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 18px; background: #FFFFFF; font-weight: 700; font-size: 16px; line-height: 1.4; }
.idol-bubble::before { content: ""; position: absolute; left: 50%; top: -10px; width: 16px; height: 16px; margin-left: -8px; background: #FFFFFF; border-left: 2px solid var(--ink); border-top: 2px solid var(--ink); transform: rotate(45deg); }
.idol-note { margin: 12px 0 0; font-size: 12px; color: #8A7A72; }

.idol-share { margin: 18px 0 0; text-align: center; }
.idol-share__title { margin: 0 0 10px; font-weight: 700; }
.idol-share__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.idol-share__btn { min-height: 48px; padding: 6px 4px; font-size: 14px; }
.idol-share__btn--share { background: #161616; color: #FFFFFF; border-color: #161616; }

.idol-sec { margin: 18px 0 0; padding: 18px; background: #FFFFFF; border: 2px solid var(--ink); border-radius: var(--r-lg); }
.idol-sec__h { margin: 0 0 8px; font-family: var(--f-hand); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.idol-sec__sub { margin: -4px 0 12px; color: var(--muted); font-size: 14px; }
.idol-desc p { margin: 0; line-height: 1.6; }
.idol-ad { margin: 32px 0; }
.idol-stat { margin: 12px 0 0; }
.idol-stat__top { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.idol-stat__top b { color: var(--pos-ink); }
.idol-stat__bar { height: 12px; margin-top: 5px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: #F4EFEC; }
.idol-stat__bar span { display: block; height: 100%; background: var(--pos); }

.idol-duos { display: grid; gap: 12px; margin: 18px 0 0; }
@media (min-width: 440px) { .idol-duos { grid-template-columns: 1fr 1fr; } }
.idol-duo { padding: 14px 16px; border: 2px solid var(--ink); border-radius: var(--r-md); background: #FFFFFF; }
.idol-duo--best { background: #F2FBF5; }
.idol-duo--chaotic { background: #FFF5EE; }
.idol-duo__label { margin: 0; font-size: 13px; font-weight: 700; color: #6E5D55; }
.idol-duo__who { margin: 4px 0; font-family: var(--f-hand); font-weight: 800; font-size: 19px; }
.idol-duo__why { margin: 0; font-size: 14.5px; line-height: 1.5; }

.idol-lineup__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; margin: 8px 0 12px; }
.idol-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.idol-slot__icon { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border: 2.5px dashed #C9BEB6; border-radius: 50%; color: #B5A9A1; font-size: 24px; font-weight: 700; }
.idol-slot.is-me .idol-slot__icon { border: 3px solid var(--ink); background: var(--c); color: inherit; font-size: 28px; }
.idol-slot__name { font-size: 12.5px; font-weight: 700; color: #8A7A72; }
.idol-slot.is-me .idol-slot__name { color: var(--ink); }
.idol-lineup__text { margin: 0; font-size: 14.5px; line-height: 1.5; text-align: center; }

.idol-ex { margin: 10px 0 0; padding: 12px 14px; border: 2px solid #E7E0DA; border-radius: var(--r-md); }
.idol-ex.is-me { border: 3px solid var(--c); background: color-mix(in srgb, var(--c) 8%, #FFFFFF); }
.idol-ex__name { margin: 0 0 4px; font-weight: 800; }
.idol-ex__text { margin: 0; font-size: 14.5px; line-height: 1.55; }
.idol-ex__note { margin: 12px 0 0; font-size: 12px; color: #8A7A72; }

.idol-bottom { margin: 22px 0 0; display: grid; gap: 10px; }
.idol-try { min-height: 48px; }
.idol-up__empty[hidden], .idol-up__prev[hidden] { display: none; }
.idol-up__prev { position: absolute; inset: 0; }

/* loading: notes / lightstick / heart bouncing in turn */
.idol-load__art { display: flex; align-items: flex-end; justify-content: center; gap: 14px; width: auto; height: 120px; }
.idol-load__icon { width: 72px; height: 72px; animation: idol-bounce .55s ease-in-out infinite alternate; }
.idol-load__icon--1 { width: 92px; height: 92px; animation-delay: .18s; }
.idol-load__icon--2 { animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .idol-load__icon { animation: none; } }

/* find your duo */
.idol-find { text-align: center; }
.idol-find__icons { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 10px; }
.idol-find__me, .idol-find__q { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; font-size: 28px; }
.idol-find__me { border: 3px solid var(--ink); background: var(--pos); }
.idol-find__q { border: 2.5px dashed #C9BEB6; color: #B5A9A1; font-weight: 800; font-family: var(--f-hand); }
.idol-find__plus { font-weight: 800; font-size: 22px; color: #8A7A72; }
.idol-find__text { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; }

/* duo check (friend's link) */
.idol-check { margin: 14px 0 0; text-align: center; background: #FFF7FB; }
.idol-check--best { background: #F2FBF5; } .idol-check--chaotic { background: #FFF5EE; }
.idol-check__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 10px; }
.idol-check__who { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.idol-check__icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border: 3px solid var(--ink); border-radius: 50%; background: var(--c); font-size: 26px; }
.idol-check__name { font-size: 13px; font-weight: 700; }
.idol-check__label { margin: 0 0 4px; font-family: var(--f-hand); font-weight: 800; font-size: 22px; }
.idol-check__why { margin: 0; font-size: 14.5px; line-height: 1.5; }

/* Profile-cut photo: arch frame on a soft light panel, serif position name over the photo */
.idol-stage { position: relative; margin: 0 auto; padding: 22px 0 18px; border-radius: 20px;
  background: linear-gradient(120deg, #F1F0EE 0%, #FBFAF9 38%, #ECEBE8 39%, #F6F5F3 62%, #EAE9E6 100%); }
.idol-photo--arch { width: min(250px, 72%); border: 0; border-radius: 999px 999px 0 0 / 46% 46% 0 0; box-shadow: 0 12px 24px -14px rgba(46,33,27,.45); }
.idol-photo--arch.idol-photo--mascot { background: #FBE3EE; }
.idol-photo__name { position: absolute; left: 0; right: 0; bottom: 6%; margin: 0; padding: 0 6%; text-align: center; font-family: "DM Serif Display", Georgia, "Times New Roman", serif; font-size: 38px; line-height: 1; color: #2E2A28; text-shadow: 0 1px 0 rgba(255,255,255,.6), 0 0 18px rgba(255,255,255,.75); }
.idol-photo--arch { border-radius: 50% 50% 0 0 / 40% 40% 0 0; container-type: inline-size; }
.idol-photo__name { bottom: 5%; font-size: 15cqw; white-space: nowrap; }
.idol-photo--mascot img { padding: 14% 14% 24%; }
.idol-explain.fold { padding: 0 14px; } .idol-explain.fold[open] { padding-bottom: 14px; }
