/* 좀비워커. 색·글꼴·크기·모션 값은 ChatGPT 디자인 사양 v1.0(outputs/2026-10-27_좀비워커-자가진단/디자인사양_챗지피티.md)을 그대로 옮겼다 */
:root {
  --bg-base: #0B0D12;
  --surface: #141821;
  --surface-raised: #1D2330;
  --border: #303849;
  --text-primary: #F5F2E9;
  --text-secondary: #A5ADBC;
  --accent: #F47B1A;
  --gold: #FFD36B;
  --danger: #E5484D;
  --arcane: #8626D3;
  --human: #4BD3AD;
  --error: #FF8C89;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-card: 0 12px 36px #00000066;
  --shadow-button: 0 6px 0 #8B330D, 0 12px 24px #00000066;
  --glow-orange: 0 0 24px #F47B1A88;
  --glow-red: 0 0 48px #E5484D99;
  --glow-gold: 0 0 32px #FFD36B77;

  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-press: cubic-bezier(.2, .8, .2, 1);
  --ease-back: cubic-bezier(.18, 1.5, .35, 1);

  --font-display: 'Black Han Sans', 'Noto Sans KR', sans-serif;
  --font-body: 'Noto Sans KR', system-ui, sans-serif;

  --gutter: 20px;
  --content-max: 480px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: linear-gradient(180deg, #0B0D12 0%, #18151A 100%) fixed;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  letter-spacing: -0.025em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* 문항별 배경 사진(ChatGPT 실사풍, assets/scenes/). 단계가 오를수록 밝아진다.
   지금 문항 사진 한 장만 그린다(투명하게 겹쳐 둔 사진도 화면 전체 합성 비용이 든다). 문항 화면이 아니거나 첫 모습이면 배경을 아예 끈다 */
.scene { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
body:not([data-view="quiz"]) .scene { display: none; }
.scene-img {
  position: absolute; inset: -12px; background: center / cover no-repeat; opacity: 0; display: none;
  transition: opacity 700ms ease-out;
}
.scene-img[data-scene="fire"] { background-image: url('/assets/scenes/fire.jpg'); }
.scene-img[data-scene="storm"] { background-image: url('/assets/scenes/storm.jpg'); }
.scene-img[data-scene="void"] { background-image: url('/assets/scenes/void.jpg'); }
.scene-img[data-scene="toxic"] { background-image: url('/assets/scenes/toxic.jpg'); }
.scene::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, #0B0D12B3 0%, #0B0D1266 30%, #0B0D1233 60%, #0B0D1299 100%);
}
body[data-view="quiz"][data-scene="fire"] .scene-img[data-scene="fire"],
body[data-view="quiz"][data-scene="storm"] .scene-img[data-scene="storm"],
body[data-view="quiz"][data-scene="void"] .scene-img[data-scene="void"],
body[data-view="quiz"][data-scene="toxic"] .scene-img[data-scene="toxic"] { display: block; opacity: var(--scene-o, .4); }
body[data-stage="0"], body[data-stage="1"] { --scene-o: .38; }
body[data-stage="2"], body[data-stage="3"] { --scene-o: .5; }
body[data-stage="4"], body[data-stage="5"] { --scene-o: .62; }
body[data-stage="6"], body[data-stage="7"] { --scene-o: .76; }
body[data-stage="8"], body[data-stage="9"], body[data-stage="10"] { --scene-o: .9; }
body[data-wreck="2"] .scene-img { animation: quake 420ms linear infinite; }

#fire { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
/* 하늘에서 떨어지는 것과 화면 유리 금. 글자 위에 그리지만 누르기는 막지 않는다 */
#chaos { position: fixed; inset: 0; z-index: 36; pointer-events: none; }
.screen-cracks { position: fixed; inset: 0; z-index: 37; pointer-events: none; overflow: hidden; }
/* 금 간 유리: ChatGPT 실사 금(assets/fx/crack.webp, 흰 금만 남긴 투명 그림)을 부딪힌 자리에 돌려 붙인다 */
.scrack-img { position: absolute; translate: -50% -50%; pointer-events: none; opacity: .8; }
/* 금 간 유리는 오래 남지 않고 서서히 옅어진다 */
.scrack { animation: crackFade 6s ease-in forwards; }
@keyframes crackFade { 0%, 50% { opacity: .8; } 100% { opacity: .15; } }
body:not([data-view="quiz"]) .screen-cracks, body:not([data-view="quiz"]) #chaos { display: none; }
/* 실제 불 영상 레이어. 감싸는 상자가 쌓임 맥락을 만들면 screen 합성이 배경과 섞이지 않아서 display: contents 로 둔다 */
.fire-video { display: contents; }
.fv {
  position: fixed; left: 0; bottom: 0; z-index: 9; pointer-events: none;
  width: 100%; height: var(--fh, 0vh); object-fit: cover; object-position: center bottom;
  mix-blend-mode: screen; opacity: 0;
  -webkit-mask-image: linear-gradient(to top, #000 62%, transparent); mask-image: linear-gradient(to top, #000 62%, transparent);
  transition: height 560ms var(--ease-out-expo), opacity 400ms ease-out;
}
.fv-wall2 { left: -20%; width: 140%; transform: scaleX(-1); filter: saturate(1.25) brightness(.9); }
.fv-tall {
  width: min(46vw, 360px);
  /* 영상 상자 테두리가 보이지 않게 좌우·위를 모두 흐리게 한다 */
  -webkit-mask-image: radial-gradient(ellipse 48% 62% at 50% 72%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 48% 62% at 50% 72%, #000 45%, transparent 100%);
}
.fv-left { left: -6vw; }
.fv-right { left: auto; right: -6vw; transform: scaleX(-1); }
.fv-sparks { top: 0; height: 100vh; -webkit-mask-image: none; mask-image: none; }
body:not([data-view="quiz"]) .fv { opacity: 0 !important; }
/* 불 영상은 1번(불) 컨셉에서만 쓴다. 나머지 문항에서는 아예 그리지 않는다(js/fire.js 도 재생을 멈춘다) */
body:not([data-scene="fire"]) .fv { display: none; }
body[data-wreck="2"] .vignette { background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 40%, #5A0F16 100%); opacity: .85; animation: redPulse 900ms ease-in-out infinite; }
@keyframes redPulse { 50% { opacity: .55; } }
@keyframes quake { 0% { transform: translate(0, 0); } 25% { transform: translate(3px, -2px); } 50% { transform: translate(-2px, 3px); } 75% { transform: translate(2px, 2px); } 100% { transform: translate(0, 0); } }
.vignette {
  position: fixed; inset: 0; z-index: 15; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 55%, #0B0D12 100%);
  opacity: .6;
}
.app {
  position: relative; z-index: 20;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter) max(20px, env(safe-area-inset-bottom));
  min-height: 100dvh;
}
@media (min-width: 600px) { .app { padding-left: 24px; padding-right: 24px; } }
.view { animation: viewIn 420ms var(--ease-out-expo) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 공통 ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding-top: 8px; }
.eyebrow { font-size: 12px; line-height: 18px; letter-spacing: .12em; color: var(--text-secondary); font-weight: 700; }
.link-btn {
  min-height: 44px; padding: 0 4px; border: 0; background: none;
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  transition: color 160ms ease-out;
}
.link-btn:hover { color: var(--gold); }
.btn-primary {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 64px; border: 1px solid #FFB45C; border-radius: var(--radius-md);
  background: linear-gradient(145deg, #F47B1A, #E96A18);
  color: #1A0B03; font-size: 20px; font-weight: 900;
  box-shadow: var(--shadow-button);
  transition: transform 180ms var(--ease-back), box-shadow 180ms var(--ease-back);
}
.btn-primary:active { transform: translateY(5px); box-shadow: 0 1px 0 #8B330D, 0 6px 12px #00000066; transition-duration: 90ms; transition-timing-function: var(--ease-press); }
.btn-ghost {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 16px; border: 1px solid #465063; border-radius: var(--radius-md);
  background: var(--surface-raised); color: var(--text-primary); font-size: 15px; font-weight: 700;
  transition: background 160ms ease-out;
}
.btn-ghost:hover { background: var(--border); }
.btn-ghost:active { transform: scale(.97); }
.btn-ghost:disabled { opacity: .55; cursor: default; }

/* ---------- 시작 ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 22px; line-height: 30px; font-weight: 900; letter-spacing: -0.04em; }

/* ---------- 문항 ---------- */
.view-quiz {
  display: flex; flex-direction: column; min-height: calc(100dvh - max(20px, env(safe-area-inset-bottom))); padding-bottom: 24px;
  /* 질문 상자·카운터·예 버튼 칸 높이와 간격. 첫 모습(평범한 설문)과 연출 모습이 같은 값으로 자리를 맞춘다 */
  --qbox-h: 130px; --lane-gap: 24px; --lane-h: 220px; --next-gap: 16px;
}
.quiz-top { display: flex; justify-content: space-between; align-items: center; height: 32px; margin-top: 20px; font-size: 12px; line-height: 18px; color: var(--text-secondary); }
.progress-label { font-weight: 700; letter-spacing: .12em; }
.total-label b { font-family: var(--font-display); font-weight: 400; font-size: 16px; color: var(--gold); font-variant-numeric: tabular-nums; }
.progress { height: 5px; margin-top: 4px; border-radius: var(--radius-pill); background: var(--border); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #F9B44A, #E77D22); transform-origin: left; transition: transform 420ms var(--ease-out-expo); }
.question-box {
  position: relative; display: flex; align-items: center; justify-content: center;
  z-index: 2; height: var(--qbox-h); margin-top: 40px; padding: 0 12px; border-radius: var(--radius-lg);
  background: #0B0D12CC; border: 1px solid transparent;
}
.question { margin: 0; font-size: 26px; line-height: 36px; font-weight: 900; text-align: center; letter-spacing: -0.04em; word-break: keep-all; }
/* 외친 횟수 카운터와 위 총점은 보여 주지 않는다(점수라는 티가 나지 않게. 결과 화면에서만 숫자를 보인다) */
.counter, .total-label { display: none !important; }
.counter { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 24px; padding: 8px 0; border-radius: var(--radius-lg); background: #0B0D1299; }
.counter-cap { font-size: 12px; line-height: 18px; color: var(--text-secondary); }
.counter-num { font-family: var(--font-display); font-weight: 400; font-size: 48px; line-height: 54px; color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px #F47B1A99; }
.counter-num[data-len="2"] { font-size: 42px; }
.counter-num[data-len="3"] { font-size: 36px; }
.counter-num[data-len="4"] { font-size: 30px; }
/* 상자에 간 금(js/chaos.js crackBox)과 조각(shatterBox) */
.box-crack { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; border-radius: inherit; }
.box-crack img { position: absolute; translate: -50% -50%; opacity: .85; }
.shard { pointer-events: none; z-index: 41; will-change: transform; }
.quiz-head { position: relative; z-index: 2; }
.counter-status { font-size: 14px; line-height: 22px; color: var(--t-hi, #FFB45C); font-weight: 700; }
/* 빛줄기가 화면 밖으로 넘쳐 가로 스크롤이 생기지 않게 화면 가장자리에서 자른다 */
html { overflow-x: clip; }
.yes-lane { position: relative; z-index: 30; display: flex; align-items: flex-start; justify-content: flex-start; height: var(--lane-h); margin-top: var(--lane-gap); }
/* 크기·자리는 js/app.js sizeYes 가 누를 때마다 정한다. 첫 모습 자리(왼쪽 위)에서 칸 가운데로 부드럽게 옮겨 간다 */
.yes-size { display: flex; transition: width 200ms ease-out, height 200ms ease-out, margin 200ms ease-out; }
.yes-wobble { flex: 1; display: flex; position: relative; --heat: 0; will-change: transform; }
/* 버튼 뒤에서 뿜어 나오는 빛줄기. 열기(--heat, js/app.js sizeYes)만큼 넓어지고 밝아진다 */
.yes-rays {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; pointer-events: none;
  width: min(150vmax, calc(140px + var(--heat) * 620px)); aspect-ratio: 1; border-radius: 50%;
  /* 회전은 js/app.js 가 rotate 로 준다. 따로 합성 층에 올려 돌릴 때 다시 그리지 않게 한다 */
  will-change: rotate;
  background:
    radial-gradient(circle, rgba(255,255,255,.95) 0%, rgb(var(--t-rgb, 255 90 46) / .55) 16%, rgb(var(--t-rgb, 255 90 46) / 0) 46%),
    repeating-conic-gradient(from 0deg, rgb(255 255 255 / 0) 0deg 7deg, rgb(var(--t-rgb, 255 90 46) / .7) 10deg 13deg, rgb(255 255 255 / 0) 16deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 14%, transparent 68%); mask: radial-gradient(circle, #000 14%, transparent 68%);
  opacity: clamp(0, calc(var(--heat) * 2.4 - .05), 1);
  transition: width 220ms ease-out, opacity 220ms ease-out;
}
/* 두 번째 빛줄기: 100번쯤부터 반대로 돌며 겹친다 */
.yes-rays-2 {
  width: min(150vmax, calc(var(--heat) * 900px));
  background: repeating-conic-gradient(from 6deg, rgb(255 255 255 / 0) 0deg 14deg, rgb(255 255 255 / .45) 16deg 18deg, rgb(255 255 255 / 0) 20deg 30deg);
  opacity: clamp(0, calc(var(--heat) * 1.6 - 1), .9);
}
/* 버튼 윗변에서 솟는 불꽃 혀. 열기가 오를수록 높아진다 */
.yes-flames {
  position: absolute; left: 2%; right: 2%; bottom: 72%; pointer-events: none;
  height: min(75vh, calc(var(--heat) * 230px)); display: flex; justify-content: space-between; align-items: flex-end;
  opacity: clamp(0, calc(var(--heat) * 4 - .25), 1); transition: height 220ms ease-out, opacity 220ms ease-out;
}
.yes-flames i {
  width: 22%; height: 100%; margin: 0 -3%; transform-origin: 50% 100%; will-change: transform;
  border-radius: 50% 50% 22% 22% / 72% 72% 28% 28%;
  background: radial-gradient(ellipse 50% 70% at 50% 92%, #FFFFFF 0%, var(--t-hi, #FFE29A) 22%, var(--t-mid, #FF5A2E) 50%, rgb(var(--t-rgb, 255 90 46) / .5) 68%, rgb(var(--t-rgb, 255 90 46) / 0) 82%);
  animation: flicker .42s ease-in-out infinite alternate;
}
.yes-flames i:nth-child(2) { height: 78%; animation-duration: .33s; animation-delay: -.1s; }
.yes-flames i:nth-child(3) { height: 115%; animation-duration: .5s; animation-delay: -.2s; }
.yes-flames i:nth-child(4) { height: 90%; animation-duration: .37s; animation-delay: -.05s; }
.yes-flames i:nth-child(5) { height: 120%; animation-duration: .45s; animation-delay: -.3s; }
.yes-flames i:nth-child(6) { height: 70%; animation-duration: .3s; animation-delay: -.15s; }
@keyframes flicker {
  0% { transform: scale(1.06, .82) skewX(-6deg); }
  50% { transform: scale(.9, 1.12) skewX(5deg); }
  100% { transform: scale(1, .94) skewX(-2deg); }
}
.yes-btn {
  flex: 1; position: relative; border: 1px solid #FFB45C; border-radius: var(--radius-lg);
  color: #1A0B03; font-weight: 700; line-height: 1.15; letter-spacing: -0.04em;
  padding: 0 12px; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 calc((1 - var(--shell, 0)) * 6px) 0 color-mix(in srgb, var(--t-lo, #8B330D) calc((1 - var(--shell, 0)) * 100%), transparent), var(--glow, 0 0 8px rgba(244,123,26,.15));
  transition: transform 180ms var(--ease-back), box-shadow 180ms var(--ease-back);
  word-break: keep-all;
}
.yes-btn[data-font="b900"] { font-weight: 900; }
.yes-btn[data-font="display"] { font-family: var(--font-display); font-weight: 400; white-space: nowrap; text-shadow: 0 2px 0 #FFF4C4; }
.next-wrap { position: relative; z-index: 30; display: flex; flex-direction: column; align-items: center; margin-top: var(--next-gap); min-height: 52px; }
/* 묶음 상자는 칸 전체 폭이라 예 버튼 위에 겹친다. 상자는 누름을 통과시키고 안의 버튼·안내만 받는다 */
.next-wrap { pointer-events: none; }
.next-wrap > * { pointer-events: auto; }
.next-hint { font-size: 12px; line-height: 18px; color: var(--text-primary); margin-bottom: 4px; padding: 2px 8px; border-radius: var(--radius-pill); background: #0B0D12CC; }
.no-btn {
  width: 160px; height: 52px; border: 1px solid #465063; border-radius: var(--radius-md);
  background: var(--surface-raised); color: var(--text-secondary); font-size: 16px; font-weight: 700;
  transition: background 160ms ease-out, width 180ms ease-out;
}
.no-btn:hover { background: var(--border); }
.no-btn:active { transform: scale(.97); }
.no-btn.is-next { background: #252B38; color: #E5E7EB; border-color: #667085; animation: fadeSwap 180ms ease-out; }
@keyframes fadeSwap { from { opacity: 0; } to { opacity: 1; } }
.next-wrap[data-level="1"] .no-btn { width: 160px; height: 52px; font-size: 15px; }
.next-wrap[data-level="2"] { align-items: center; transform: translateX(20px); }
.next-wrap[data-level="2"] .no-btn { width: 150px; height: 48px; font-size: 14px; }
.next-wrap[data-level="3"] { align-items: flex-end; padding-right: 16px; }
.next-wrap[data-level="3"] .no-btn { width: 140px; height: 46px; font-size: 14px; }
.next-wrap[data-level="4"] { align-items: flex-end; padding-right: 12px; }
.next-wrap[data-level="4"] .no-btn { width: 132px; height: 44px; font-size: 13px; }
.next-wrap[data-level="5"] { align-items: flex-end; padding-right: 8px; }
.next-wrap[data-level="5"] .no-btn { width: 124px; height: 44px; font-size: 12px; }
.next-wrap[data-dark="1"] .no-btn { background: #0B0D12E6; }
body[data-stage="10"] .next-wrap .no-btn.is-next { width: 176px; }
.fx-layer { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.ring { position: absolute; width: 200px; height: 200px; border: 3px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; will-change: transform, opacity; }
.ring[data-hot="1"] { border-color: var(--t-hi, #FFD36B); box-shadow: 0 0 18px var(--t-mid, #FF7A1A), inset 0 0 12px var(--t-mid, #FF7A1A); }
/* 40번부터 버튼에서 사방으로 튀는 '예!' */
.yes-word {
  position: fixed; z-index: 1; pointer-events: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 400; color: var(--t-word, #FFE878); will-change: transform, opacity;
  text-shadow: 0 0 2px #000, 0 2px 0 #000;
}
/* 500번부터 가끔 화면 색이 뒤집힌다 */
.invert-flash { position: fixed; inset: 0; z-index: 60; pointer-events: none; background: #fff; mix-blend-mode: difference; opacity: 0; }
/* 300번부터 글자가 빨강·파랑으로 갈라진다(--chroma, js/app.js sizeYes) */
body[data-view="quiz"] .question,
body[data-view="quiz"] .yes-btn { text-shadow: var(--chroma, 0px) 0 0 #FF2A6DCC, calc(var(--chroma, 0px) * -1) 0 0 #22D3EECC; }

/* ---------- 문항 첫 모습: 아무것도 누르기 전에는 평범한 설문 ---------- */
/* 아니오는 왼쪽, 예는 오른쪽. 처음 '예'를 누르면 아니오는 제자리에서 사라지고 '다음 문항'은 예 아래에 새로 생긴다.
   예 버튼은 그 자리(오른쪽 절반)에서 누를수록 조금씩 가운데로 옮겨 가며 커진다(js/app.js sizeYes) */
.answers { display: flex; flex-direction: column; }
.plain-no {
  position: absolute; left: 0; top: 0; z-index: 1; width: calc(50% - 6px); height: 56px;
  transition: opacity 360ms ease-out, visibility 0s linear 360ms;
}
/* 두 버튼은 첫 모습에서 모양이 똑같아야 한다(평범한 설문처럼). 크기·모서리·글자·테두리를 한 규칙으로 맞춘다 */
.plain-no, body[data-plain="1"] .yes-btn {
  border-radius: var(--radius-md); font-family: var(--font-body); font-size: 17px !important; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em;
}
.plain-no { border: 1px solid #CBD2CD; background: #FFFFFF; color: #1F2523; }
.plain-no:hover { background: #F0F2EF; }
body:not([data-plain="1"]) .plain-no { opacity: 0; visibility: hidden; pointer-events: none; }
body[data-plain="1"] .next-wrap { opacity: 0; visibility: hidden; }
/* '다음 문항'은 첫 '예' 뒤 손을 멈춰야 처음 나타난다(js/app.js armIdle) */
body[data-nextwait="1"] .next-wrap { opacity: 0; visibility: hidden; }
/* 손을 멈추면 예 버튼이 두근거리고 테두리 고리가 퍼진다. transform 은 누름 애니메이션이 쓰니 scale 로 키운다 */
.yes-btn.nudge { animation: yesNudge 1.1s ease-in-out infinite; }
.yes-btn.nudge::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none;
  border: 2px solid rgb(var(--t-rgb, 255 90 46) / .85); animation: yesNudgeRing 1.1s ease-out infinite;
}
@keyframes yesNudge { 0%, 48%, 100% { scale: 1; } 12% { scale: 1.07; } 24% { scale: .98; } 36% { scale: 1.04; } }
@keyframes yesNudgeRing { 0% { opacity: .9; scale: 1; } 60%, 100% { opacity: 0; scale: 1.1 1.5; } }
.next-wrap { transition: opacity 420ms ease-out 120ms; }
body[data-plain="1"] .yes-size { transition: none; }
body[data-plain="1"] .yes-wobble { transform: none !important; filter: none !important; }
body[data-plain="1"] .yes-rays, body[data-plain="1"] .yes-flames { display: none; }
/* 예 버튼 위에 흰 설문 버튼 껍데기를 덮어 두고, 누를 때마다 조금씩 걷어 낸다(--shell, js/app.js setCalm).
   처음 몇 번은 색만 살짝 진해진다 */
.yes-btn::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: #FFFFFF; border: 1px solid #CBD2CD; opacity: var(--shell, 0); transition: opacity 320ms ease-out;
}
#yesLabel { position: relative; z-index: 1; }
body[data-plain="1"] .yes-btn { box-shadow: 0 0 0 transparent; text-shadow: none; color: #1F2523 !important; }
body[data-dusk="0"] .yes-btn { color: #1F2523 !important; }
.yes-btn { transition: transform 180ms var(--ease-back), box-shadow 600ms ease, color 600ms ease, border-radius 300ms ease; }
/* 문항 첫 모습의 밝은 바탕. 배경 사진·불·어둠을 덮고 있다가 3번째 누름부터 조금씩 걷힌다(opacity 는 js/app.js setCalm) */
.calm-veil { position: fixed; inset: 0; z-index: 16; pointer-events: none; background: #F4F5F2; opacity: 0; transition: opacity 600ms ease-out; }
body:not([data-view="quiz"]) .calm-veil { display: none; }
#chaos { transition: opacity 600ms ease-out; }
/* 새 문항으로 넘어갈 때 한 프레임 동안 움직임을 끊어 바로 평범한 모습이 된다 */
body.zw-snap *, body.zw-snap *::before { transition: none !important; }
@media (max-height: 740px) {
  .view-quiz { --qbox-h: 108px; }
  .question-box { margin-top: 20px; }
}
/* 키가 작은 휴대폰(높이 640px 이하)은 '다음 문항' 버튼이 스크롤 없이 보이게 문항 화면 간격을 줄인다 */
@media (max-height: 640px) {
  .view-quiz { padding-bottom: 12px; --qbox-h: 96px; --lane-gap: 16px; --lane-h: 190px; --next-gap: 10px; }
  .quiz-top { margin-top: 12px; }
  .question-box { margin-top: 12px; }
}
/* 좁은 휴대폰(폭 360px 이하)은 세 줄 문항이 상자를 넘지 않게 글자를 줄인다 */
@media (max-width: 360px) {
  .question { font-size: 23px; line-height: 31px; }
}

/* ---------- 결과 ---------- */
.view-result, .view-shared { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 32px; gap: 0; }
.report-tag { margin: 0; font-size: 12px; line-height: 18px; letter-spacing: .12em; color: var(--text-secondary); font-weight: 700; }
.result-cap { margin: 16px 0 0; font-size: 22px; line-height: 30px; font-weight: 900; letter-spacing: -0.04em; }
.result-score {
  margin-top: 4px; font-family: var(--font-display); font-weight: 400; font-size: 64px; line-height: 68px;
  color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 0 32px #FFD36B77;
}
.result-score[data-len="2"] { font-size: 56px; }
.result-score[data-len="3"] { font-size: 46px; }
.result-score[data-len="4"] { font-size: 38px; }
.result-sub { margin: 4px 0 0; color: var(--text-secondary); font-size: 16px; }
.grade-card {
  position: relative; width: 100%; margin-top: 24px; padding: 24px 20px; border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #1D2330, #141821); border: 2px solid #8A6431;
  box-shadow: var(--shadow-card), var(--glow-gold);
  display: flex; flex-direction: column; align-items: center;
}
.grade-emblem { width: 144px; height: 144px; filter: drop-shadow(0 0 24px #FFD36B66); }
.grade-label { margin-top: 12px; font-size: 12px; line-height: 18px; letter-spacing: .12em; color: var(--text-secondary); }
.grade-name { margin-top: 4px; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 40px; color: var(--text-primary); letter-spacing: -0.04em; }
.grade-line { margin: 8px 0 0; font-size: 16px; line-height: 26px; color: var(--text-primary); word-break: keep-all; }
body[data-tier="human"] .grade-card { border-color: #2D7F6A; box-shadow: var(--shadow-card), 0 0 32px #4BD3AD55; }
body[data-tier="human"] .result-score { color: var(--human); text-shadow: 0 0 32px #4BD3AD77; }
.grade-halo { display: none; }
body[data-tier="eternal"] .grade-halo {
  display: block; position: absolute; top: 24px; left: 50%; width: 220px; height: 220px; margin: -38px 0 0 -110px; border-radius: 50%;
  background: conic-gradient(from 0deg, #FFD36B00, #FFD36B88, #FFF0A000, #FFD36B88, #FFD36B00); filter: blur(6px);
  animation: spin 12s linear infinite; pointer-events: none;
}
.grade-emblem { position: relative; }
body[data-tier="eternal"] .grade-card { border-color: var(--gold); box-shadow: var(--shadow-card), 0 0 48px #FFD36BAA; }
.rank-line { min-height: 22px; margin: 16px 0 0; font-size: 14px; line-height: 22px; color: var(--gold); font-weight: 700; }
.name-form { width: 100%; margin-top: 16px; text-align: left; }
.name-label { display: block; font-size: 14px; line-height: 22px; font-weight: 700; margin-bottom: 8px; }
.name-row { display: flex; gap: 8px; }
.name-row input {
  flex: 1; min-width: 0; height: 52px; padding: 0 14px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface); font-size: 16px;
  transition: border-color 160ms ease-out;
}
.name-row input:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 18px; margin: 6px 0 0; font-size: 12px; line-height: 18px; color: var(--text-secondary); }
.form-msg[data-kind="error"] { color: var(--error); }
/* ---------- 배틀 ---------- */
.btn-battle {
  width: 100%; height: 64px; margin-top: 20px; border: 2px solid #FFE29A; border-radius: var(--radius-md);
  background: linear-gradient(145deg, #FF7724, #D92A22); color: #FFF4C4;
  font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: -0.02em;
  text-shadow: 0 2px 0 #7A1414; box-shadow: 0 6px 0 #7A1414, 0 0 28px #FF5A1F88;
  transition: transform 180ms var(--ease-back), box-shadow 180ms var(--ease-back);
}
.btn-battle:active { transform: translateY(5px); box-shadow: 0 1px 0 #7A1414, 0 0 18px #FF5A1F66; transition-duration: 90ms; }
.battle-card {
  width: 100%; margin-bottom: 8px; padding: 20px 14px 16px; border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #2A1414, #141821 70%); border: 2px solid #E5484D; box-shadow: var(--shadow-card), var(--glow-red);
}
.battle-card[data-result="win"] { border-color: var(--gold); background: linear-gradient(160deg, #382711, #141821 70%); box-shadow: var(--shadow-card), var(--glow-gold); }
.battle-card[data-result="draw"] { border-color: #B9C7D6; }
.battle-tag { margin: 0; font-size: 12px; line-height: 18px; letter-spacing: .12em; font-weight: 700; color: #FFB45C; }
.battle-verdict { margin: 4px 0 14px; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 34px; letter-spacing: -0.03em; }
.battle-card[data-result="win"] .battle-verdict { color: var(--gold); }
.battle-card[data-result="lose"] .battle-verdict { color: #FF8C89; }
.battle-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.bt-side { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 12px 6px; border-radius: var(--radius-lg); background: #0B0D1299; border: 1px solid var(--border); }
.battle-card[data-result="win"] .bt-me, .battle-card[data-result="lose"] .bt-them { border-color: var(--gold); box-shadow: 0 0 18px #FFD36B44; }
.bt-who { max-width: 100%; font-size: 13px; line-height: 20px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-me .bt-who { color: var(--accent); }
.bt-emblem { width: 72px; height: 72px; margin: 6px 0; }
.bt-emblem:not([src]) { visibility: hidden; }
.bt-score { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 32px; color: var(--gold); font-variant-numeric: tabular-nums; }
.bt-score[data-len="2"] { font-size: 22px; }
.bt-score[data-len="3"] { font-size: 19px; }
.bt-score[data-len="4"] { font-size: 16px; }
.bt-grade { margin-top: 2px; font-size: 12px; line-height: 18px; font-weight: 700; word-break: keep-all; }
.bt-rank { margin-top: 2px; font-size: 11px; line-height: 16px; color: var(--text-secondary); }
.bt-vs { font-family: var(--font-display); font-size: 22px; color: #E5484D; text-shadow: 0 0 12px #E5484D99; }
.battle-gap { min-height: 18px; margin: 10px 0 0; font-size: 13px; line-height: 20px; color: var(--text-secondary); }

/* 결과 화면 버튼 위계: 채운 버튼은 '친구랑 배틀하기' 하나. 이름 등록은 테두리, 공유·저장·이동은 작은 글자 링크 */
.result-nav { width: 100%; display: flex; justify-content: space-between; margin: -24px 0 8px; }
.link-sm {
  min-height: 44px; padding: 0 2px; border: 0; background: none;
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  text-decoration: underline; text-decoration-color: #A5ADBC66; text-underline-offset: 3px;
  transition: color 160ms ease-out;
}
.result-nav .link-sm { text-decoration: none; }
.link-sm:hover { color: var(--text-primary); }
.link-sm:disabled { opacity: .55; cursor: default; }
.btn-line {
  flex: none; height: 52px; padding: 0 18px; border: 1px solid #8A6431; border-radius: var(--radius-md);
  background: transparent; color: var(--gold); font-weight: 700; font-size: 15px;
  transition: background 160ms ease-out;
}
.btn-line:hover { background: #8A643122; }
.btn-line:disabled { opacity: .55; cursor: default; }
.share-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.share-dot { color: var(--text-secondary); font-size: 13px; }
.algocare-cta {
  width: 100%; margin-top: 32px; padding: 18px 20px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); text-align: left;
}
.cta-title { margin: 0; font-size: 17px; line-height: 26px; font-weight: 700; letter-spacing: -0.03em; color: var(--text-primary); }
.cta-body { margin: 4px 0 10px; font-size: 14px; line-height: 22px; color: var(--text-secondary); }
.cta-link { display: inline-flex; align-items: center; min-height: 32px; color: var(--gold); font-size: 15px; font-weight: 700; }
.view-shared .btn-primary { margin-top: 24px; }
.view-shared .btn-ghost { width: 100%; margin-top: 8px; }

/* ---------- 랭킹 ---------- */
body[data-view="ranking"] {
  background: linear-gradient(180deg, #0B0D12E6 0%, #0B0D1299 30%, #0B0D12F2 70%), url('/assets/hall.jpg') center top / cover no-repeat fixed, #0B0D12;
}
.ranking-hero { text-align: center; padding-top: 24px; }
.ranking-crest { width: 220px; height: auto; margin: 0 auto; filter: drop-shadow(0 0 32px #FFD36B55); }
.ranking-title {
  margin: 4px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 48px; line-height: 54px; letter-spacing: -0.04em;
  background: linear-gradient(180deg, #FFF4C4, #FFD36B 50%, #B9822F); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ranking-sub { margin: 4px 0 0; font-size: 14px; line-height: 22px; color: var(--text-secondary); }
.podium { list-style: none; margin: 28px 0 0; padding: 0; display: flex; justify-content: center; align-items: flex-end; gap: 8px; }
.podium .rk-podium { flex: 1 1 0; max-width: calc((100% - 16px) / 3.1); }
.podium .rk-1 { flex-grow: 1.1; max-width: calc((100% - 16px) * 1.1 / 3.1); }
.rk-podium {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 36px 6px 12px; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-sm);
}
.rk-podium .rk-rank { font-family: var(--font-display); font-size: 22px; line-height: 1; }
.rk-podium .rk-emblem { width: 48px; height: 48px; margin: 6px 0; }
.rk-podium .rk-body { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; width: 100%; }
.rk-podium .rk-title { font-size: 11px; line-height: 16px; font-weight: 700; word-break: keep-all; }
.rk-podium .rk-name { font-size: 13px; line-height: 18px; font-weight: 900; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rk-podium .rk-grade { display: none; }
.rk-podium .rk-score { margin-top: 4px; font-size: 11px; color: var(--text-secondary); }
.rk-podium .rk-score b { font-family: var(--font-display); font-weight: 400; font-size: 18px; color: inherit; }
.rk-crown { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); }
.rk-1 { min-height: 168px; border: 2px solid #FFD36B; background: linear-gradient(155deg, #382711, #17151A 75%); box-shadow: 0 0 36px #FFD36B55; color: var(--gold); }
.rk-1 .rk-crown { width: 52px; height: 52px; top: -34px; animation: floatY 2800ms ease-in-out infinite; }
.rk-1::before {
  content: ''; position: absolute; top: -48px; left: 50%; width: 68px; height: 68px; margin-left: -34px; border-radius: 50%;
  border: 2px dashed rgba(255, 211, 107, .35); animation: spin 8s linear infinite; pointer-events: none;
}
.rk-1 .rk-score b { color: var(--gold); }
.rk-2 { min-height: 125px; border: 2px solid #B9C7D6; background: linear-gradient(155deg, #2A3340, #15181F 75%); box-shadow: 0 0 22px #AFC8E755; color: #DCE4EE; animation: shimmer 3200ms ease-in-out infinite; }
.rk-2 .rk-crown { width: 36px; height: 36px; }
.rk-3 { min-height: 108px; border: 2px solid #B67945; background: linear-gradient(155deg, #3A2618, #17151A 75%); box-shadow: 0 0 18px #DCA16C44; color: #DCA16C; animation: shimmer 3600ms ease-in-out infinite; }
.rk-3 .rk-crown { width: 32px; height: 32px; }
.rk-podium .rk-name { color: var(--text-primary); }
@keyframes floatY { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -4px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.08); } }

.guard-list, .rank-list { list-style: none; margin: 0; padding: 0; }
.guard-list { display: grid; gap: 8px; margin-top: 28px; }
.guard-list:not(:empty)::before { content: '좀비 근위대 · 4~10위'; display: block; margin-bottom: 4px; font-size: 14px; line-height: 22px; font-weight: 700; color: #E7BC72; }
.rk-guard {
  display: grid; grid-template-columns: 28px 24px 1fr auto; align-items: center; gap: 10px;
  height: 68px; padding: 0 14px; border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid #8A6431;
  transition: transform 180ms ease-out, border-color 180ms ease-out;
}
.rk-guard:hover { border-color: var(--gold); transform: translateY(-2px); }
.rk-guard .rk-rank { font-family: var(--font-display); font-size: 18px; color: var(--gold); text-align: center; }
.rk-guard .rk-emblem { width: 24px; height: 24px; }
.rk-guard .rk-body, .rk-normal .rk-body { display: flex; flex-direction: column; min-width: 0; }
.rk-guard .rk-name { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-guard .rk-grade, .rk-normal .rk-grade { font-size: 11px; line-height: 16px; color: var(--text-secondary); }
.rk-guard .rk-score { font-size: 12px; color: var(--text-secondary); }
.rk-guard .rk-score b { font-family: var(--font-display); font-weight: 400; font-size: 17px; color: #E7BC72; }
.rank-list { margin-top: 28px; }
.rank-list:not(:empty)::before { content: '일반 전우 · 11~50위'; display: block; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 22px; font-weight: 700; color: var(--text-secondary); }
.rk-normal {
  display: grid; grid-template-columns: 28px 28px 1fr auto; align-items: center; gap: 10px;
  height: 56px; padding: 0 12px; border-bottom: 1px solid var(--border); background: #141821;
}
.rk-normal:nth-child(even) { background: #191E28; }
.rk-normal .rk-rank { font-size: 14px; font-weight: 700; color: var(--text-secondary); text-align: center; }
.rk-normal .rk-emblem { width: 28px; height: 28px; }
.rk-normal .rk-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-normal .rk-score { font-size: 12px; color: var(--text-secondary); }
.rk-normal .rk-score b { font-size: 15px; font-weight: 700; color: #D7DAE0; }
.rk-guard.is-me, .rk-normal.is-me { background: #2B251F !important; border-color: var(--accent) !important; }
.rk-podium.is-me .rk-name::after { content: ' (나)'; color: var(--accent); }
.rk-normal.is-me { border: 1px solid var(--accent); }
.empty { margin: 32px 0; text-align: center; color: var(--text-secondary); }
.view-ranking .btn-primary { margin: 32px 0 16px; }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 100; transform: translateX(-50%);
  max-width: calc(100% - 40px); padding: 12px 18px; border-radius: var(--radius-md);
  background: #1D2330F2; border: 1px solid var(--gold); color: var(--text-primary); font-size: 14px; line-height: 22px;
  box-shadow: var(--shadow-card); animation: viewIn 240ms var(--ease-out-expo);
}

/* 휴대폰 '동작 줄이기'를 켜도 문항 화면 연출은 그대로 둔다(js/app.js noInvert). 다른 화면 움직임만 끈다 */
@media (prefers-reduced-motion: reduce) {
  body:not([data-view="quiz"]) *, body:not([data-view="quiz"]) *::before, body:not([data-view="quiz"]) *::after { animation: none !important; transition: none !important; }
}

/* ---------- 시작·배틀 초대: 평범하고 차분한 건강 점검처럼 보인다 ---------- */
body[data-view="start"], body[data-view="invite"] { background: #F4F5F2; color: #1F2523; }
body[data-view="start"] .vignette, body[data-view="invite"] .vignette,
body[data-plain="1"] #chaos, body[data-plain="1"] .screen-cracks { display: none; }
.calm-top { display: flex; align-items: center; justify-content: space-between; height: 56px; padding-top: 8px; }
.wordmark { font-size: 13px; line-height: 20px; font-weight: 700; letter-spacing: .18em; color: #3D4743; }
.view-start { display: flex; flex-direction: column; min-height: calc(100dvh - max(20px, env(safe-area-inset-bottom))); }
/* 홈 사진(Unsplash N5Dpfl8qcRs, 3:2로 잘라 assets/home.webp). 휴대폰에서는 글·버튼을 뺀 남은 높이를 사진이 채운다 */
.calm-photo {
  position: relative; margin: 8px 0 0; border-radius: 20px; overflow: hidden;
  flex: 1 1 0; min-height: 200px; max-height: 440px; background: #1A1D1C;
  box-shadow: 0 1px 0 #FFFFFF inset, 0 18px 40px -18px #1F252366;
}
.calm-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.calm-photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #0B0D1200 55%, #0B0D1259 100%);
}
.calm-clock {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px;
  background: #0B0D12A6; color: #F5F2E9; font-size: 12px; line-height: 1; font-weight: 500; letter-spacing: .02em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.calm-clock i { width: 6px; height: 6px; border-radius: 50%; background: #F2A33A; animation: calmBlink 2.4s ease-in-out infinite; }
@keyframes calmBlink { 50% { opacity: .25; } }
.calm-hero { margin-top: 28px; }
.calm-kicker { margin: 0; font-size: 15px; line-height: 24px; color: #5B6762; font-weight: 500; }
.calm-title { margin: 6px 0 0; font-size: 30px; line-height: 40px; font-weight: 700; letter-spacing: -0.03em; color: #1F2523; word-break: keep-all; }
.calm-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.calm-meta li {
  display: inline-flex; align-items: baseline; gap: 2px; height: 34px; padding: 0 12px; border-radius: 999px;
  background: #FFFFFF; border: 1px solid #E1E5E1; color: #5B6762; font-size: 13px; line-height: 32px; font-weight: 500;
}
.calm-meta b { color: #2F6F62; font-weight: 700; }
.calm-cta { padding-top: 28px; }
.calm-btn {
  width: 100%; height: 56px; border: 0; border-radius: 12px;
  background: #2F6F62; color: #FFFFFF; font-size: 17px; font-weight: 700;
  box-shadow: 0 10px 24px -12px #2F6F62;
  transition: background 160ms ease-out, transform 120ms ease-out;
}
.calm-btn:hover { background: #285F54; }
.calm-btn:active { transform: scale(.98); }
/* 넓은 화면은 사진 비율을 고정하고, 짧은 화면은 글 간격을 줄인다 */
@media (min-width: 600px) {
  .calm-photo { flex: none; aspect-ratio: 3 / 2; max-height: none; }
  .calm-btn { width: 240px; }
}
@media (max-height: 700px) and (max-width: 599px) {
  .calm-hero { margin-top: 20px; }
  .calm-title { font-size: 27px; line-height: 36px; }
  .calm-cta { padding-top: 20px; }
}
@media (max-width: 340px) {
  .calm-title { font-size: 26px; line-height: 35px; }
  .calm-meta li { padding: 0 10px; font-size: 12px; }
}

/* 바탕이 아직 밝은 동안(data-dusk=0, js/app.js setCalm)은 차분한 설문 색. 어두워지면 서서히 연출 색으로 바뀐다 */
body[data-view="quiz"] .question-box { transition: background-color 700ms ease, border-color 700ms ease; }
body[data-view="quiz"] .question, body[data-view="quiz"] .quiz-top { transition: color 700ms ease; }
body[data-view="quiz"] .progress { transition: background-color 700ms ease; }
body[data-view="quiz"][data-dusk="0"] .question-box { background: #FFFFFF; border-color: #E1E5E1; }
body[data-view="quiz"][data-dusk="0"] .question { color: #1F2523; }
body[data-view="quiz"][data-dusk="0"] .quiz-top { color: #5B6762; }
body[data-view="quiz"][data-dusk="0"] .progress { background: #E1E5E1; }
body[data-view="quiz"][data-dusk="0"] .progress i { background: #2F6F62; }
body[data-view="quiz"][data-dusk="0"] .no-btn { background: #FFFFFF; border-color: #CBD2CD; color: #1F2523; }
body[data-view="quiz"][data-dusk="0"] .no-btn:hover { background: #F0F2EF; }
body[data-view="quiz"][data-dusk="0"] .ring { border-color: rgb(var(--t-rgb, 255 90 46) / .55); }
.no-btn { transition: background-color 700ms ease, border-color 700ms ease, color 700ms ease, width 180ms ease-out; }

/* ---------- 3번 문항(스트레스): 뒤에서 이계 소환문이 열리고 좀비 직장인들이 지나간다(ChatGPT 이미지, assets/void/) ---------- */
.void-layer { position: fixed; inset: 0; z-index: 12; pointer-events: none; overflow: hidden; display: none; }
body[data-view="quiz"][data-scene="void"] .void-layer { display: block; }
.portal {
  position: absolute; left: 50%; top: 42%; width: min(118vw, 680px); aspect-ratio: 1; translate: -50% -50%;
  scale: var(--portal-s, 0); opacity: var(--portal-o, 0); transition: scale 420ms cubic-bezier(.2,1.4,.4,1), opacity 420ms ease-out;
}
.portal img { width: 100%; height: 100%; animation: spin 36s linear infinite; will-change: transform; }
.horde { position: absolute; inset: 0; }
.zombie { position: absolute; left: 0; will-change: transform; }
.zombie img { display: block; height: 100%; width: auto; transform-origin: 50% 100%; animation: zbob var(--zstep, .9s) ease-in-out infinite alternate; }
.zombie[data-dir="-1"] img { scale: -1 1; }
@keyframes zbob { 0% { transform: translateY(0) rotate(-1.5deg); } 100% { transform: translateY(-3%) rotate(1.5deg); } }

/* ---------- 결과: 내 위아래 순위, 배틀 링크 복사 안내, 알고케어 카드 ---------- */
.around-list { width: 100%; margin: 12px 0 0; padding: 0; list-style: none; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.around-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 8px; height: 44px; padding: 0 14px; font-size: 14px; text-align: left; background: var(--surface); }
.around-row + .around-row { border-top: 1px solid var(--border); }
.around-row.is-me { background: #2A2112; color: var(--gold); font-weight: 700; }
.around-rank { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.around-row.is-me .around-rank { color: var(--gold); }
.around-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.around-score { font-family: var(--font-display); font-weight: 400; font-size: 16px; font-variant-numeric: tabular-nums; }
.copy-guide { width: 100%; margin-top: 10px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--gold); text-align: left; display: flex; flex-direction: column; gap: 2px; }
.copy-guide strong { font-size: 15px; line-height: 22px; color: var(--gold); }
.copy-guide span { font-size: 14px; line-height: 22px; color: var(--text-primary); }
.copy-url { margin-top: 6px; height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); font-size: 13px; }
a.algocare-cta { display: block; color: inherit; text-decoration: none; transition: border-color 160ms ease-out, background 160ms ease-out; }
a.algocare-cta:hover { border-color: #8A6431; background: var(--surface-raised); }
a.algocare-cta:active { transform: scale(.99); }
a.algocare-cta .cta-title { display: block; }
a.algocare-cta .cta-body { display: block; }
