/* ============================================================================
   에겐·테토 테스트 (/egenteto/) — 전용 스타일
   ----------------------------------------------------------------------------
   이 페이지는 공용 다크 레이어(lib/theme.php)에서 제외돼 있어 여기 있는 것이 전부다.
   배경(오로라+격자)만 jjam_theme_backdrop_style() 로 사이트와 같은 것을 받는다.

   값은 사이트 표준(/liar/ 키트)과 같고, 나란히 놓인 /mbti/ 와 같은 모양이다:
     반경  카드 24 · 버튼 16 · 줄/타일 14 · 칩 알약
     표면  패널 그라디언트 + 보라 헤어라인 링 + 깊은 그림자
     주 버튼  브랜드 채움(보라→청록) + 어두운 굵은 글자 + 보라 번짐 · 비활성은 같은 채움 반투명
   두 성향 색: 에겐 #ff8fb1(카드 위 8.5:1) · 테토 #22d3ee(10:1). 색만으로 가르지 않게 이름·위치를 늘 함께 쓴다.
   글자 대비: 본문 #ece9ff(15:1) · 보조 #b9b3d8(9:1) · 흐림 #9995b5(6.3:1).
   ========================================================================= */

:root {
    --et-bg: #0a0a12;
    --et-bg-2: #12101f;
    --et-surface: #161425;
    --et-surface-2: #1c1930;
    --et-surface-3: #262041;
    --et-ink: #ece9ff;
    --et-ink-soft: #b9b3d8;
    --et-ink-faint: #9995b5;
    --et-violet: #7c5cff;
    --et-violet-soft: #a894ff;
    --et-cyan: #22d3ee;
    --et-amber: #ffc971;
    --et-lime: #8ef58a;
    --et-egen: #ff8fb1;
    --et-teto: #22d3ee;
    --et-on-fill: #0a0a12;
    --et-brand: linear-gradient(135deg, #a894ff 0%, #22d3ee 100%);
    --et-panel: linear-gradient(180deg, var(--et-surface) 0%, var(--et-bg-2) 100%);
    --et-ring: inset 0 0 0 1px rgba(236, 233, 255, .08), inset 0 1px 0 rgba(236, 233, 255, .10);
    --et-shadow: 0 20px 44px -22px rgba(0, 0, 0, .9);
    --et-glow: 0 12px 30px -14px rgba(124, 92, 255, .95);
    --et-glow-hover: 0 16px 34px -12px rgba(124, 92, 255, 1);
    --et-r-card: 24px;
    --et-r-btn: 16px;
    --et-r-row: 14px;
    --et-font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', sans-serif;
    --et-ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { background-color: var(--et-bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    color: var(--et-ink);
    font-family: var(--et-font);
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

[hidden] { display: none !important; }

/* Fluent 3D 이모지 그림 — 글자 이모지 자리에 글자 크기만큼(lib/fluent_emoji.php, 2026-11-23) */
.fe { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.18em; object-fit: contain; }

a { color: var(--et-violet-soft); }

.et-skip {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--et-surface); color: var(--et-ink); padding: 10px 16px; border-radius: 10px;
}
.et-skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--et-cyan); outline-offset: 3px; border-radius: 6px; }

/* 읽기 프로그램에만 들리는 글자 */
.et-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.c-egen { color: var(--et-egen); }
.c-teto { color: var(--et-teto); }

/* ── 뼈대 ─────────────────────────────────────────────────────────── */
.et-shell {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: calc(64px + env(safe-area-inset-top, 0px)) 16px 32px;
    outline: none;
}
.et-view { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.et-view.enter { animation: etIn .38s var(--et-ease) both; }
@keyframes etIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 시작 상태: 공유받은 결과·유형 주소면 소개·둘러보기를 그리기 전부터 숨긴다(깜빡임 방지) */
body[data-start="result"] #viewIntro, body[data-start="type"] #viewIntro,
body[data-start="result"] #viewGallery, body[data-start="type"] #viewGallery { display: none; }

.et-card {
    background: var(--et-panel);
    border-radius: var(--et-r-card);
    box-shadow: var(--et-ring), var(--et-shadow);
    padding: 22px 20px;
}
.et-h2 { margin: 0 0 12px; font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; display: flex; gap: 8px; align-items: center; }
.et-sub { margin: -4px 0 14px; color: var(--et-ink-soft); font-size: .92rem; }
.et-note { margin: 4px 4px 0; color: var(--et-ink-faint); font-size: .8rem; text-align: center; }
.et-fine { margin: 10px 0 0; color: var(--et-ink-faint); font-size: .8rem; }

/* ── 버튼 ─────────────────────────────────────────────────────────── */
.et-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; border-radius: var(--et-r-btn);
    padding: 16px 18px; font: inherit; font-size: .98rem; font-weight: 800; line-height: 1.2;
    text-decoration: none; cursor: pointer; color: var(--et-ink);
    transition: transform .15s var(--et-ease), box-shadow .2s, background-color .2s, filter .2s, opacity .2s;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.et-btn:active { transform: translateY(1px) scale(.99); }
.et-btn-primary { background: var(--et-brand); color: var(--et-on-fill); box-shadow: var(--et-glow); }
.et-btn-primary:hover { box-shadow: var(--et-glow-hover); filter: brightness(1.04); }
/* 성별을 고르기 전: /liar/ 처럼 같은 채움을 반투명으로. 누르면 안내가 뜨도록 클릭은 받는다. */
.et-btn-primary[aria-disabled="true"] { opacity: .5; box-shadow: none; filter: none; }
.et-btn-primary[aria-disabled="true"]:active { transform: none; }
.et-btn-ghost { background: transparent; box-shadow: var(--et-ring); color: var(--et-ink); }
.et-btn-ghost:hover { background: rgba(168, 148, 255, .08); }
.et-btn-kakao { background: #FEE500; color: #191600; }
.et-btn-kakao:hover { filter: brightness(.97); }
.et-btn-soft { background: var(--et-surface-3); box-shadow: var(--et-ring); }
.et-btn-soft:hover { background: #2d2650; }
.et-btn-lg { width: 100%; font-size: 1.05rem; padding: 18px 20px; }
.et-btn-sm { padding: 10px 14px; font-size: .88rem; border-radius: 12px; }
.et-row2 { display: grid; grid-template-columns: 1fr; gap: 8px; }
.et-row2:has(> :not([hidden]) + :not([hidden])) { grid-template-columns: 1fr 1fr; }
.et-icon-btn {
    width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 12px; cursor: pointer;
    background: transparent; box-shadow: var(--et-ring); color: var(--et-ink-soft); font-size: 1rem;
}
.et-icon-btn:hover { color: var(--et-ink); background: rgba(255, 255, 255, .05); }

/* ── 소개 ─────────────────────────────────────────────────────────── */
.et-hero {
    position: relative; text-align: center;
    background: var(--et-panel); border-radius: var(--et-r-card); box-shadow: var(--et-ring), var(--et-shadow);
    padding: 26px 20px 20px; overflow: hidden;
}
.et-hero::before {   /* 카드 위쪽 양옆에 번지는 두 빛 — 왼쪽 에겐, 오른쪽 테토 */
    content: ''; position: absolute; inset: -45% -25% auto; height: 75%;
    background:
        radial-gradient(closest-side at 30% 50%, rgba(255, 143, 177, .26), transparent 70%),
        radial-gradient(closest-side at 70% 50%, rgba(34, 211, 238, .22), transparent 70%);
    pointer-events: none;
}
.et-versus { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; margin: 2px auto 16px; }
.et-orb {
    width: 76px; height: 76px; display: grid; place-items: center; font-size: 2.2rem; border-radius: 26px;
    background: var(--et-surface-2); animation: etFloat 4.4s ease-in-out infinite;
}
.et-orb.egen { box-shadow: inset 0 0 0 1px rgba(255, 143, 177, .45), 0 14px 34px -14px rgba(255, 143, 177, .9); }
.et-orb.teto { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .45), 0 14px 34px -14px rgba(34, 211, 238, .9); animation-delay: -2.2s; }
@keyframes etFloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
.et-vs { font-size: .95rem; font-weight: 900; letter-spacing: .1em; color: var(--et-ink-soft); }

.et-kicker { position: relative; margin: 0 0 6px; color: var(--et-violet-soft); font-size: .82rem; font-weight: 800; letter-spacing: .02em; }
.et-title { position: relative; margin: 0 0 10px; font-size: clamp(1.7rem, 7.4vw, 2.2rem); font-weight: 900; line-height: 1.25; letter-spacing: -.02em; }
.et-lead { position: relative; margin: 0 auto 14px; max-width: 30em; color: var(--et-ink-soft); font-size: .98rem; }
.et-pills { position: relative; list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.et-pills li {   /* 좌우 여백 8 — 390 폭에서 네 개가 한 줄에 들어간다(10 이면 3+1 로 꺾였다) */
    padding: 5px 8px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--et-ink); white-space: nowrap;
    background: rgba(168, 148, 255, .10); box-shadow: inset 0 0 0 1px rgba(168, 148, 255, .22);
}

/* 성별 고르기 — 진짜 라디오(화살표 키·읽기 프로그램 그대로)를 카드 모양으로 */
.et-gender { position: relative; border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.et-gender-legend { display: block; width: 100%; padding: 0; margin: 0 0 10px; text-align: center; font-size: .94rem; font-weight: 800; color: var(--et-ink); }
.et-gender-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.et-gender-opt {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 96px; padding: 14px 10px; border-radius: var(--et-r-row); cursor: pointer;
    background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(236, 233, 255, .12);
    transition: background-color .15s, box-shadow .15s, transform .12s var(--et-ease);
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.et-gender-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.et-gender-opt .e { font-size: 2rem; line-height: 1.15; }
.et-gender-opt .l { font-size: 1.02rem; font-weight: 900; }
.et-gender-opt:hover { background: rgba(168, 148, 255, .08); box-shadow: inset 0 0 0 1px rgba(168, 148, 255, .45); }
.et-gender-opt:active { transform: scale(.98); }
.et-gender-opt.on {
    background: linear-gradient(135deg, rgba(168, 148, 255, .22), rgba(34, 211, 238, .14));
    box-shadow: inset 0 0 0 2px var(--et-violet-soft), 0 10px 26px -16px rgba(124, 92, 255, .9);
}
.et-gender-opt.on::after {
    content: '✓'; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; display: grid; place-items: center;
    border-radius: 50%; font-size: .75rem; font-weight: 900; color: var(--et-on-fill); background: var(--et-brand);
}
.et-gender-opt:has(input:focus-visible) { outline: 2px solid var(--et-cyan); outline-offset: 3px; }
.et-gender-hint { margin: 8px 0 0; color: var(--et-amber); font-size: .86rem; font-weight: 700; }
.et-gender-hint:empty { margin: 0; }
.et-gender.nudge .et-gender-row { animation: etNudge .42s var(--et-ease); }
@keyframes etNudge { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

.et-hero .et-btn-lg { margin-bottom: 8px; position: relative; }
.et-hero .et-row2 { position: relative; }

/* 에겐·테토 설명 */
.et-side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.et-side-box { padding: 14px 12px; border-radius: var(--et-r-row); }
.et-side-box.egen { background: rgba(255, 143, 177, .07); box-shadow: inset 0 0 0 1px rgba(255, 143, 177, .30); }
.et-side-box.teto { background: rgba(34, 211, 238, .06); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .30); }
.et-side-name { margin: 0; font-size: 1.05rem; font-weight: 900; }
.et-side-box.egen .et-side-name { color: var(--et-egen); }
.et-side-box.teto .et-side-name { color: var(--et-teto); }
.et-side-kw { margin: 2px 0 6px; font-size: .8rem; font-weight: 800; color: var(--et-ink); }
.et-side-desc { margin: 0; font-size: .86rem; color: var(--et-ink-soft); line-height: 1.5; }

/* ── 문항 ─────────────────────────────────────────────────────────── */
.et-quiz-top { display: flex; align-items: center; gap: 12px; }
.et-progress-wrap { flex: 1; min-width: 0; }
.et-progress-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .86rem; font-weight: 800; color: var(--et-ink-soft); font-variant-numeric: tabular-nums; }
.et-chip { padding: 4px 10px; border-radius: 999px; background: rgba(168, 148, 255, .12); box-shadow: inset 0 0 0 1px rgba(168, 148, 255, .25); color: var(--et-ink); font-size: .8rem; white-space: nowrap; }
.et-progress { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.et-progress-fill { display: block; height: 100%; width: 100%; background: var(--et-brand); transform-origin: left center; transform: scaleX(0); transition: transform .35s var(--et-ease); border-radius: inherit; }

.et-qcard { padding: 26px 20px 20px; transition: box-shadow .3s; }
.et-qcard.final { box-shadow: var(--et-ring), inset 0 0 0 1px rgba(255, 201, 113, .38), 0 0 46px -14px rgba(255, 201, 113, .5), var(--et-shadow); }
.et-qcard.swap { animation: etSwap .32s var(--et-ease) both; }
.et-qcard.swap-back { animation: etSwapBack .32s var(--et-ease) both; }
@keyframes etSwap { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes etSwapBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.et-qnum { margin: 0 0 6px; font-size: .82rem; font-weight: 900; letter-spacing: .06em; color: var(--et-violet-soft); }
.et-final {
    display: inline-flex; gap: 6px; align-items: center; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px;
    font-size: .8rem; font-weight: 900; color: var(--et-amber);
    background: rgba(255, 201, 113, .10); box-shadow: inset 0 0 0 1px rgba(255, 201, 113, .36);
}
.et-qtext { margin: 0 0 20px; font-size: clamp(1.18rem, 4.9vw, 1.36rem); font-weight: 800; line-height: 1.5; letter-spacing: -.01em; outline: none; min-height: 3em; }
.et-answers { display: flex; flex-direction: column; gap: 10px; }
.et-ans {
    display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
    min-height: 68px; padding: 14px 16px; border: 0; border-radius: var(--et-r-row); cursor: pointer;
    font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.45; color: var(--et-ink);
    background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(236, 233, 255, .10);
    transition: background-color .15s, box-shadow .15s, transform .12s var(--et-ease);
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.et-ans:hover { background: rgba(168, 148, 255, .10); box-shadow: inset 0 0 0 1px rgba(168, 148, 255, .45); }
.et-ans:active { transform: scale(.99); }
.et-ans .k {
    flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 11px;
    font-size: .9rem; font-weight: 900; color: var(--et-ink-soft);
    background: var(--et-surface-2); box-shadow: inset 0 0 0 1px rgba(236, 233, 255, .14);
}
.et-ans .l { flex: 1; min-width: 0; }
.et-ans[aria-pressed="true"] {
    background: linear-gradient(135deg, rgba(168, 148, 255, .22), rgba(34, 211, 238, .16));
    box-shadow: inset 0 0 0 2px var(--et-violet-soft), 0 10px 26px -16px rgba(124, 92, 255, .9);
}
.et-ans[aria-pressed="true"] .k { color: var(--et-on-fill); background: var(--et-brand); box-shadow: none; }

.et-quiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.et-kbd-hint { color: var(--et-ink-faint); font-size: .78rem; }
.et-kbd-hint kbd { font: inherit; font-weight: 800; padding: 1px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(236, 233, 255, .2); color: var(--et-ink-soft); }
@media (hover: none) { .et-kbd-hint { display: none; } }

/* ── 분석 중: 저울이 양쪽으로 기우뚱 ─────────────────────────────── */
.et-loading { align-items: center; justify-content: center; text-align: center; min-height: 52vh; }
.et-scale { position: relative; width: 190px; height: 112px; margin-bottom: 18px; }
.et-scale-beam {
    position: absolute; left: 14px; right: 14px; top: 46px; height: 6px; border-radius: 999px;
    background: var(--et-brand); transform-origin: 50% 50%; animation: etTilt 1.6s ease-in-out infinite;
}
.et-scale-beam span {
    position: absolute; top: -50px; width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.55rem;
    border-radius: 16px; background: var(--et-surface-2);
}
.et-scale-beam .egen { left: -10px; box-shadow: inset 0 0 0 1px rgba(255, 143, 177, .5); }
.et-scale-beam .teto { right: -10px; box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .5); }
.et-scale-post { position: absolute; left: 50%; top: 49px; width: 6px; height: 56px; margin-left: -3px; border-radius: 3px; background: rgba(236, 233, 255, .2); }
.et-scale-post::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 72px; height: 8px; margin-left: -36px; border-radius: 999px; background: rgba(236, 233, 255, .14); }
@keyframes etTilt { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
.et-loading-title { margin: 0; font-size: 1.15rem; font-weight: 900; }
.et-loading-sub { margin: 4px 0 0; color: var(--et-ink-soft); font-size: .92rem; }

/* ── 결과 ─────────────────────────────────────────────────────────── */
.et-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; border-radius: var(--et-r-row);
    background: rgba(255, 201, 113, .10); box-shadow: inset 0 0 0 1px rgba(255, 201, 113, .32);
    font-size: .92rem; font-weight: 700;
}
.et-banner .et-btn { flex: 0 0 auto; white-space: nowrap; }

.et-result-hero { position: relative; text-align: center; padding: 28px 20px 22px; overflow: hidden; }
.et-result-hero::before {
    content: ''; position: absolute; left: 50%; top: -30%; width: 120%; height: 80%; transform: translateX(-50%);
    background: radial-gradient(closest-side, var(--hero-glow), transparent 72%);
    pointer-events: none;
}
.et-result-hero.side-egen { --hero-glow: rgba(255, 143, 177, .30); --hero-ring: rgba(255, 143, 177, .14); --hero-shadow: rgba(255, 143, 177, .8); }
.et-result-hero.side-teto { --hero-glow: rgba(34, 211, 238, .26); --hero-ring: rgba(34, 211, 238, .12); --hero-shadow: rgba(34, 211, 238, .75); }
.et-result-label { position: relative; margin: 0 0 10px; color: var(--et-ink-soft); font-size: .88rem; font-weight: 800; }
.et-result-emoji {
    position: relative; width: 92px; height: 92px; margin: 0 auto 14px; display: grid; place-items: center;
    font-size: 3rem; border-radius: 28px; background: var(--et-surface-2);
    box-shadow: var(--et-ring), 0 0 0 6px var(--hero-ring), 0 18px 40px -18px var(--hero-shadow);
    animation: etPop .55s var(--et-ease) both;
}
@keyframes etPop { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.et-result-title {
    position: relative; margin: 0 0 8px; font-size: clamp(1.4rem, 6.2vw, 1.75rem); font-weight: 900; line-height: 1.35;
    letter-spacing: -.02em; outline: none; animation: etRise .5s .08s var(--et-ease) both;
}
.et-result-title .nm { white-space: nowrap; }
.side-egen .et-result-title .nm { color: var(--et-egen); }
.side-teto .et-result-title .nm { color: var(--et-teto); }
@keyframes etRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.et-tagline { position: relative; margin: 0; color: var(--et-ink-soft); font-size: .98rem; }
.et-type-chip {
    position: relative; display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; padding: 6px 14px; border-radius: 999px;
    font-size: .86rem; font-weight: 900; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(236, 233, 255, .16);
    font-variant-numeric: tabular-nums;
}

/* 에겐력 vs 테토력 게이지 */
.et-gauge-nums { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 10px; }
.et-gauge-nums > div { display: flex; flex-direction: column; gap: 2px; }
.et-gauge-nums .teto { align-items: flex-end; text-align: right; }
.et-gauge-nums .lab { font-size: .86rem; font-weight: 800; color: var(--et-ink-soft); }
.et-gauge-nums b { font-size: 1.9rem; font-weight: 900; line-height: 1.1; color: var(--et-ink-faint); font-variant-numeric: tabular-nums; }
.et-gauge-nums .egen.win b { color: var(--et-egen); }
.et-gauge-nums .teto.win b { color: var(--et-teto); }
.et-gauge { position: relative; display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .07); }
.et-gauge i { display: block; height: 100%; width: 50%; transition: width .9s var(--et-ease); }
/* 바깥은 옅게, 두 색이 만나는 가운데 쪽은 진하게 — 경계가 또렷하게 보인다 */
.et-gauge i.egen { background: linear-gradient(90deg, #ffb3c9, #ff8fb1); }
.et-gauge i.teto { background: linear-gradient(90deg, #22d3ee, #67e8f9); }
.et-gauge::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: rgba(10, 10, 18, .9); }
.et-gauge-sent { margin: 12px 0 0; color: var(--et-ink-soft); font-size: .92rem; }

/* 연애할 때 특징 */
.et-summary { margin: 0 0 14px; color: var(--et-ink-soft); font-size: .96rem; }
.et-traits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.et-traits li {
    display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--et-r-row);
    background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(236, 233, 255, .08);
}
.et-traits .e { flex: 0 0 40px; height: 40px; display: grid; place-items: center; font-size: 1.3rem; border-radius: 12px; background: var(--et-surface-2); }
.et-traits b { display: block; font-size: .98rem; font-weight: 900; margin-bottom: 2px; }
.et-traits p { margin: 0; color: var(--et-ink-soft); font-size: .92rem; line-height: 1.55; }

/* 찰떡궁합 */
.et-match {
    display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--et-r-row); text-decoration: none; color: var(--et-ink);
    transition: background-color .15s, box-shadow .15s, transform .15s var(--et-ease);
}
.et-match.side-egen { background: rgba(255, 143, 177, .07); box-shadow: inset 0 0 0 1px rgba(255, 143, 177, .40); }
.et-match.side-teto { background: rgba(34, 211, 238, .06); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .40); }
.et-match:hover { transform: translateY(-2px); }
.et-match .e { flex: 0 0 56px; height: 56px; display: grid; place-items: center; font-size: 2rem; border-radius: 16px; background: var(--et-surface-2); }
.et-match .txt { display: flex; flex-direction: column; min-width: 0; }
.et-match small { color: var(--et-ink-faint); font-size: .78rem; font-weight: 800; }
.et-match b { font-size: 1.15rem; font-weight: 900; }
.et-match .mt { color: var(--et-ink-soft); font-size: .84rem; line-height: 1.4; }
.et-match .go { margin-left: auto; padding-left: 4px; color: var(--et-ink-faint); font-weight: 900; font-size: 1.2rem; }
.et-match-why { margin: 12px 0 0; color: var(--et-ink); font-size: .95rem; }

/* 비율 구간별 이름 */
.et-tiers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.et-tiers li {
    position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: var(--et-r-row);
    background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(236, 233, 255, .07);
}
.et-tiers .tier { font-size: .78rem; font-weight: 900; color: var(--et-ink-faint); }
.et-tiers .tier small { font-size: inherit; font-weight: 700; }
.et-tiers b { font-size: .95rem; font-weight: 800; }
.et-tiers li.on { padding-right: 52px; background: linear-gradient(135deg, rgba(168, 148, 255, .16), rgba(34, 211, 238, .10)); box-shadow: inset 0 0 0 2px var(--et-violet-soft); }
.et-tiers li.on .tier { color: var(--et-ink-soft); }
.et-tiers .me {
    position: absolute; top: 50%; right: 12px; transform: translateY(-50%); font-size: .72rem; font-weight: 900;
    padding: 3px 9px; border-radius: 999px; color: var(--et-on-fill); background: var(--et-brand);
}

/* 공유 */
.et-share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.et-share-grid .wide { grid-column: 1 / -1; }

/* 다른 테스트 */
.et-more { display: flex; flex-direction: column; gap: 8px; }
.et-more-item {
    display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--et-r-row); text-decoration: none; color: var(--et-ink);
    background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(236, 233, 255, .10); transition: background-color .15s, box-shadow .15s;
}
.et-more-item:hover { background: rgba(168, 148, 255, .10); box-shadow: inset 0 0 0 1px rgba(168, 148, 255, .45); }
.et-more-item .e { font-size: 1.6rem; flex: 0 0 auto; }
.et-more-item b { display: block; font-size: .95rem; font-weight: 900; }
.et-more-item small { display: block; color: var(--et-ink-soft); font-size: .8rem; line-height: 1.4; }
.et-more-item .go { margin-left: auto; color: var(--et-ink-faint); font-weight: 900; }

/* ── 4유형 둘러보기 ───────────────────────────────────────────────── */
.et-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.et-type-tile {
    position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px;
    border-radius: var(--et-r-row); text-decoration: none; color: var(--et-ink);
    background: rgba(255, 255, 255, .035);
    transition: transform .15s var(--et-ease), background-color .15s;
}
.et-type-tile.side-egen { box-shadow: inset 0 0 0 1px rgba(255, 143, 177, .32); }
.et-type-tile.side-teto { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .32); }
.et-type-tile:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .06); }
.et-type-emoji { font-size: 1.8rem; line-height: 1.2; }
.et-type-name { font-size: 1.02rem; font-weight: 900; }
.et-type-tile.side-egen .et-type-name { color: var(--et-egen); }
.et-type-tile.side-teto .et-type-name { color: var(--et-teto); }
.et-type-tag { color: var(--et-ink-soft); font-size: .8rem; line-height: 1.4; }
.et-type-tile.mine::after {
    content: '내 유형'; position: absolute; top: 10px; right: 10px; font-size: .68rem; font-weight: 900;
    padding: 2px 7px; border-radius: 999px; color: var(--et-on-fill); background: var(--et-brand);
}

/* ── 알림 ─────────────────────────────────────────────────────────── */
.et-toast {
    position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 2000;
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    max-width: min(92vw, 420px); padding: 12px 16px; border-radius: 14px; text-align: center;
    background: #241f3d; color: var(--et-ink); font-size: .92rem; font-weight: 700;
    box-shadow: var(--et-ring), 0 18px 40px -18px rgba(0, 0, 0, .9);
    transition: opacity .25s, transform .25s var(--et-ease);
}
.et-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── 폰 폭 ────────────────────────────────────────────────────────── */
/* 지난 결과가 있으면 처음 화면 버튼이 두 칸이 된다. 400 폭 이하에서는 「🔁 내 결과 테토녀」가 한 칸에
   들어가지 않아 두 줄로 꺾이니 한 줄씩 쌓는다(결과 화면의 두 칸은 375 에서도 한 줄이라 처음 화면만). */
@media (max-width: 400px) {
    .et-hero .et-row2:has(> :not([hidden]) + :not([hidden])) { grid-template-columns: 1fr; }
}
/* 정보 알약 넷은 380 폭부터 한 줄에 들어간다 — 그보다 좁으면 3+1 대신 2+2 */
@media (max-width: 379px) {
    .et-pills { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; }
}

/* ── 아주 좁은 폰(320px) ─────────────────────────────────────────── */
@media (max-width: 360px) {
    .et-shell { padding-left: 12px; padding-right: 12px; }
    body .jjseo { padding-left: 12px; padding-right: 12px; }   /* 아래 「안내 · 진행 방법」 막대도 셸 여백에 맞춘다 */
    .et-card, .et-hero { padding-left: 16px; padding-right: 16px; }
    .et-orb { width: 64px; height: 64px; font-size: 1.85rem; border-radius: 22px; }
    .et-gender-opt { min-height: 88px; }
    .et-side-grid { grid-template-columns: 1fr; }
    .et-ans { gap: 12px; padding: 12px 14px; }
    .et-gauge-nums b { font-size: 1.6rem; }
    /* 두 칸 버튼이 두 줄로 꺾이지 않게 — 한 줄씩 쌓고 공유 버튼은 여백을 줄인다 */
    .et-row2, .et-row2:has(> :not([hidden]) + :not([hidden])) { grid-template-columns: 1fr; }
    .et-share-grid .et-btn { font-size: .9rem; padding: 14px 8px; white-space: nowrap; }
    .et-banner { font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
    .et-orb, .et-scale-beam { animation: none; }
    .et-view.enter, .et-qcard.swap, .et-qcard.swap-back, .et-result-emoji, .et-result-title, .et-gender.nudge .et-gender-row { animation: none; }
    .et-gauge i, .et-progress-fill { transition: none; }
}

/* ── 다른 테스트 링크(2026-11-23 SEO 점검 — 서버에서 그린다) ─────────── */
.et-more-list { display: flex; flex-direction: column; gap: 8px; }
.et-more-link {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--et-r-row); text-decoration: none; color: var(--et-ink);
    background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(236, 233, 255, .10); transition: transform .15s var(--et-ease), background-color .15s;
}
.et-more-link:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .06); }
.et-more-link .e { flex: 0 0 40px; height: 40px; display: grid; place-items: center; font-size: 1.4rem; border-radius: 12px; background: var(--et-surface-2); }
.et-more-link .txt { display: flex; flex-direction: column; min-width: 0; }
.et-more-link b { font-size: 1rem; font-weight: 900; }
.et-more-link .mt { color: var(--et-ink-soft); font-size: .84rem; line-height: 1.4; }
.et-more-link .go { margin-left: auto; padding-left: 4px; color: var(--et-ink-faint); font-weight: 900; font-size: 1.1rem; }
