/* ==========================================================================
   04 · CHARACTERS — studio turntable
   ========================================================================== */

.characters { padding: clamp(110px, 18vh, 200px) 0 clamp(90px, 14vh, 160px); }

.characters__head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.characters__title { margin-top: 22px; font-family: var(--f-display); font-size: var(--fs-h2); letter-spacing: -.05em; line-height: .92; max-width: 13ch; }
.characters__lead { margin-top: 22px; max-width: 52ch; color: var(--muted); font-size: var(--fs-lead); }

.studio {
    display: grid;
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr) minmax(250px, 320px);
    align-items: center;
    gap: clamp(20px, 3vw, 56px);
    margin-top: clamp(30px, 6vh, 70px);
}

/* spec sheet */
.studio__kicker { font-size: .72rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--red-hot); }
.studio__name { margin-top: 10px; font-family: var(--f-display); font-size: clamp(2rem, 3vw, 2.8rem); letter-spacing: -.045em; }
.studio__name [lang="ko"] { font-family: var(--f-kr); font-weight: 400; color: var(--red-hot); margin-right: 6px; }
.spec { margin-top: 22px; }
.spec__row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.spec__row dt { font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.spec__row dd { font-size: .92rem; font-weight: 600; line-height: 1.4; }
.palette { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.palette__chip { position: relative; }
.palette__chip i { display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 14px -6px var(--c); transition: transform .4s var(--ease-back); }
.palette__chip em { position: absolute; left: 50%; bottom: calc(100% + 8px); padding: 3px 7px; border-radius: 6px; background: var(--cream); color: var(--ink); font-style: normal; font-size: .64rem; font-weight: 800; white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); transition: .3s var(--ease-out); pointer-events: none; }
.palette__chip:hover i { transform: scale(1.18); }
.palette__chip:hover em { opacity: 1; transform: translate(-50%, 0); }

/* turntable */
.turntable {
    position: relative;
    height: min(74vh, 720px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.turntable__orb { position: absolute; left: 50%; top: 42%; width: 2px; height: 2px; }
.turntable__rings { position: absolute; left: -8%; width: 116%; bottom: 7%; overflow: visible; pointer-events: none; }
.turntable__rings ellipse { fill: none; stroke: rgba(227, 24, 45, .28); stroke-width: 1; }
.turntable__rings ellipse:first-child { fill: rgba(227, 24, 45, .06); stroke: rgba(255, 58, 76, .5); filter: drop-shadow(0 0 8px rgba(227, 24, 45, .6)); }
.turntable__ring-dash { stroke-dasharray: 3 10; stroke: rgba(244, 234, 216, .35) !important; animation: dash 24s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -520; } }

.turntable__figure { position: relative; height: 84%; aspect-ratio: 633 / 960; margin-bottom: 9%; }
.turntable__frame { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-end; opacity: 0; transform-origin: 50% 100%; }
.turntable__frame.is-active { opacity: 1; }
.turntable__frame .gamja-img, .turntable__frame img { height: 100%; width: auto; max-width: none; }
.turntable__frame img { filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .6)); }

.hotspots { position: absolute; inset: 0; transition: opacity .4s; }
.turntable.is-rotated .hotspots { opacity: 0; pointer-events: none; }
.hotspot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
}
.hotspot span { width: 12px; height: 12px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 5px rgba(227, 24, 45, .55), 0 0 18px var(--red); transition: transform .4s var(--ease-back), background-color .3s; }
.hotspot::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(255, 58, 76, .8); animation: ping 2s var(--ease-out) infinite; }
.hotspot.is-active span, .hotspot:hover span { transform: scale(1.35); background: var(--red-hot); }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.turntable__hud { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.turntable__deg b { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: -.02em; color: var(--cream); font-variant-numeric: tabular-nums; }
.turntable__hint { display: inline-flex; align-items: center; gap: 8px; }
.turntable__hint .icon { font-size: 1.2rem; color: var(--red-hot); }

/* detail lens */
.lens { position: relative; min-height: 480px; }
.lens__item { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; }
.lens__item.is-active { position: relative; opacity: 1; visibility: visible; }
.lens__glass {
    position: relative;
    width: min(250px, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 58, 76, .6), 0 0 0 10px rgba(227, 24, 45, .08), 0 30px 60px -20px rgba(227, 24, 45, .5);
}
.lens__glass::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .25), transparent 40%), radial-gradient(circle, transparent 60%, rgba(0, 0, 0, .45)); }
.lens__glass img { width: 100%; height: 100%; object-fit: cover; }
.lens__num { margin-top: 24px; font-size: .7rem; font-weight: 800; letter-spacing: .2em; color: var(--red-hot); }
.lens__title { margin-top: 10px; font-family: var(--f-display); font-size: clamp(1.6rem, 2.2vw, 2.1rem); letter-spacing: -.04em; }
.lens__title [lang="ko"] { font-family: var(--f-kr); font-weight: 400; color: var(--red-hot); }
.lens__text { margin-top: 10px; color: var(--muted); max-width: 32ch; }
.lens__dots { display: flex; gap: 8px; margin-top: 22px; }
.lens__dots button { width: 26px; height: 4px; border-radius: 4px; background: var(--line-2); transition: background-color .3s, width .4s var(--ease-out); }
.lens__dots button.is-active { width: 44px; background: var(--red-hot); box-shadow: var(--glow-sm); }

/* moods strip */
.moods { margin-top: clamp(80px, 12vh, 140px); }
.moods__head, .friends__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.moods__title, .friends__title { font-family: var(--f-display); font-size: var(--fs-h3); letter-spacing: -.04em; }
.moods__hint, .friends__hint { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.moods__strip { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; margin-top: 30px; }
.mood { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 6px 14px; border-radius: 18px; transition: background-color .35s; }
.mood:hover { background: rgba(227, 24, 45, .08); }
.mood .gamja-img { height: clamp(90px, 10vw, 150px); transform-origin: 50% 100%; }
.mood .gamja-img img { height: 100%; width: auto; }
.mood__label { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* friends */
.friends { margin-top: clamp(70px, 10vh, 120px); }
.friends__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.friend {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 20px;
    padding: 18px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(38, 31, 32, .7), rgba(16, 12, 13, .7));
    border: 1px solid var(--line);
    overflow: hidden;
    transform-style: preserve-3d;
}
.friend__silhouette { position: relative; aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(227, 24, 45, .35), rgba(20, 16, 17, .9) 70%); overflow: hidden; }
.friend__silhouette::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 3.2s var(--ease-in-out) infinite; }
.friend:nth-child(2) .friend__silhouette::after { animation-delay: .6s; }
.friend:nth-child(3) .friend__silhouette::after { animation-delay: 1.2s; }
@keyframes shimmer { 60%, 100% { transform: translateX(100%); } }
.friend__silhouette span { font-family: var(--f-display); font-weight: 800; font-size: 4.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(244, 234, 216, .5); }
.friend__lock { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(244, 234, 216, .06); font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.friend h4 { margin-top: 12px; font-family: var(--f-display); font-size: 1.5rem; letter-spacing: -.035em; }
.friend h4 [lang="ko"] { font-family: var(--f-kr); font-weight: 400; color: var(--red-hot); margin-right: 4px; }
.friend p { margin-top: 6px; font-size: .9rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .studio { grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); }
    .studio__spec { grid-column: 1 / -1; order: 3; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
    .studio__spec .studio__kicker, .studio__spec .studio__name { grid-column: 1 / -1; }
    .palette { grid-column: 1 / -1; }
    .friends__row { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .studio { grid-template-columns: 1fr; }
    .studio__spec { grid-template-columns: 1fr; }
    .turntable { height: 62svh; }
    .lens { min-height: 0; display: grid; grid-template-columns: 1fr; }
    .lens__item.is-active { display: grid; grid-template-columns: 120px 1fr; column-gap: 18px; align-items: center; }
    .lens__glass { grid-row: span 3; width: 120px; }
    .lens__num { margin-top: 0; }
    .moods__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
    .moods__strip::-webkit-scrollbar { display: none; }
    .mood { flex: 0 0 104px; scroll-snap-align: start; }
    .mood .gamja-img { height: 110px; }
    .moods__head, .friends__head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .friend { grid-template-columns: 90px 1fr; }
}
