:root {
  --bg: #f3eeff;
  --surface: #fff;
  --ink: #2e2348;
  --inksoft: #6b6288;
  --line: #dcd3f2;
  --disabled: #e7e1f5;
  --disabledtext: #9a90b5;
  --grape: #c3aeff;
  --grapesoft: #ece4ff;
  --grapeink: #6a4fd8;
  --berry: #ff8fab;
  --berrysoft: #ffe3ec;
  --butter: #ffe58a;
  --coral: #ff9b85;
  --coralsoft: #ffe4dc;
  --coralink: #e2553d;
  --mint: #8fe3c2;
  --mintsoft: #ddf7ec;
  --mintink: #1f9d6e;
  --jua: 'Jua', sans-serif;
  --dodum: 'Gowun Dodum', sans-serif;
  --gaegu: 'Gaegu', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { font-family: var(--dodum); min-height: 100vh; min-height: 100dvh; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
img { display: block; }

.app { max-width: 430px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
.screen {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: stretch;
  padding: 52px 17px calc(32px + env(safe-area-inset-bottom));
}
.app.anim .screen { animation: fade .25s ease; }
.screen.verdict { padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.spacer { flex: 1 0 0; min-height: 16px; }

/* ---------- 공통 버튼 ---------- */
.btn {
  height: 56px; border-radius: 999px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--jua); font-size: 18px; white-space: nowrap;
  transition: transform .08s ease;
}
.btn:active:not(:disabled) { transform: translateY(2px); }
.btn-primary { background: var(--ink); color: var(--surface); box-shadow: 0 4px 0 var(--berry); }
.btn-secondary { background: var(--surface); border: 2px solid var(--ink); }
.btn:disabled { background: var(--disabled); color: var(--disabledtext); box-shadow: none; border: 0; }
.btn-sm { font-size: 16px; }

.tag {
  display: inline-flex; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line);
  font-size: 12px; color: var(--inksoft); white-space: nowrap;
}

/* ---------- S-01 시작 ---------- */
.hero {
  position: relative; height: 236px; border-radius: 32px; overflow: hidden;
  background: var(--grapesoft); border: 2px solid var(--ink);
}
.hero .podium { position: absolute; left: 0; right: 0; top: 168px; height: 66px; background: var(--grape); border-top: 2px solid var(--ink); }
.hero .sparkles { position: absolute; left: 18px; top: 12px; width: 300px; height: 120px; }
.hero .mascot { position: absolute; left: 50%; margin-left: -80px; top: 64px; width: 160px; height: 160px; }
.bubble {
  position: absolute; top: 20px; right: 14px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: 0 3px 0 var(--ink); padding: 8px 14px;
  font-family: var(--jua); font-size: 15px; white-space: nowrap;
}
.title { font-family: var(--jua); font-size: 40px; line-height: 1.2; margin-top: 24px; }
.lead { font-size: 16px; line-height: 1.5; color: var(--inksoft); margin-top: 6px; }
.label { font-family: var(--jua); font-size: 17px; }

.input {
  margin-top: 10px; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 20px;
  box-shadow: 0 4px 0 var(--grape); padding: 0 18px 0 20px; height: 60px;
}
.input input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font-family: var(--dodum); font-size: 17px; color: var(--ink);
}
.input input::placeholder { color: var(--disabledtext); }
.input .count { font-size: 13px; color: var(--inksoft); white-space: nowrap; }
.input.error { border-color: var(--coralink); box-shadow: 0 4px 0 var(--coral); }
.helper { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--inksoft); }
.helper.error { color: var(--coralink); }
.helper img { width: 16px; height: 16px; flex: none; }
.meta-tags { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }

/* 아직 만드는 중 안내 */
.beta-note {
  margin-top: 14px; padding: 12px 14px; border-radius: 18px;
  background: var(--butter); border: 2px dashed var(--ink);
  display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center;
}
.beta-title { font-family: var(--jua); font-size: 15px; grid-column: 1 / -1; }
.beta-text { font-size: 13px; line-height: 1.45; word-break: keep-all; color: var(--ink); margin-top: 3px; }
.beta-btn {
  align-self: end; padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--surface); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink);
  font-family: var(--jua); font-size: 13px;
}
.beta-btn:active { transform: translateY(2px); box-shadow: none; }

/* ---------- S-02 질문 ---------- */
.topbar { display: flex; justify-content: flex-end; }
.step-tag {
  padding: 6px 12px; border-radius: 999px; background: var(--surface);
  border: 1.5px solid var(--ink); font-family: var(--jua); font-size: 14px;
}
.progress {
  margin-top: 14px; height: 14px; border-radius: 999px; overflow: hidden;
  background: var(--surface); border: 2px solid var(--ink); position: relative;
}
.progress .fill {
  position: absolute; left: -2px; top: -2px; height: 14px; border-radius: 999px;
  background: var(--berry); border: 2px solid var(--ink); transition: width .3s ease;
}
.defendant {
  align-self: flex-start; display: inline-flex; gap: 6px; margin-top: 28px;
  padding: 6px 12px; border-radius: 999px; background: var(--butter); border: 1.5px solid var(--ink);
  font-size: 14px; max-width: 100%;
}
.defendant b { font-family: var(--jua); font-weight: 400; flex: none; }
.defendant span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-title { font-family: var(--jua); font-size: 30px; line-height: 1.25; margin-top: 14px; word-break: keep-all; }
.options { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.option {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 18px 16px 18px 20px; border-radius: 20px;
  background: var(--surface); border: 2px solid var(--line);
  font-family: var(--dodum); font-size: 17px;
  transition: background .12s ease, border-color .12s ease;
}
.option span { flex: 1; }
.option img { width: 24px; height: 24px; flex: none; }
.option.selected { background: var(--berrysoft); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.judge-hint { display: flex; align-items: flex-end; gap: 4px; }
.judge-hint .hint {
  flex: 1; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 10px 14px; font-size: 13px; line-height: 1.4; color: var(--inksoft); margin-bottom: 6px;
}
.judge-hint img { width: 80px; height: 80px; flex: none; }
.actions-row { display: flex; gap: 8px; margin-top: 12px; }
.actions-row .btn-secondary { width: 112px; flex: none; }
.actions-row .btn-primary, .actions-row .btn:disabled { flex: 1; }

/* ---------- 판결 카드 ---------- */
.card {
  --soft: var(--coralsoft); --main: var(--coral); --inkc: var(--coralink);
  position: relative; width: 100%; aspect-ratio: 343 / 429;
  display: flex; flex-direction: column; padding: 22px 22px 18px;
  background: var(--soft); border: 2.5px solid var(--ink); border-radius: 28px;
  box-shadow: 0 5px 0 var(--ink);
}
.card.innocent { --soft: var(--mintsoft); --main: var(--mint); --inkc: var(--mintink); }
.card.ban { --soft: var(--grapesoft); --main: var(--grape); --inkc: var(--grapeink); }
.card .brand { font-family: var(--jua); font-size: 14px; color: var(--inksoft); }
.card .mascot { position: absolute; right: 14px; top: 7.5px; width: 121.6px; height: 121.6px; }
.stamp {
  position: absolute; left: 22px; top: 50px; transform: rotate(-10deg);
  border: 3px solid var(--inkc); border-radius: 16px; padding: 4px;
}
.stamp div { border: 1.5px solid var(--inkc); border-radius: 12px; padding: 6px 18px; font-family: var(--jua); font-size: 30px; color: var(--inkc); line-height: normal; }
.card .vtitle { font-family: var(--jua); font-size: 28px; line-height: 1.18; margin-top: 92px; }
.crime {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  padding: 6px 12px; border-radius: 10px; background: var(--surface); border: 1.5px solid var(--ink);
  max-width: 100%;
}
.crime b { font-family: var(--jua); font-weight: 400; font-size: 13px; color: var(--inkc); flex: none; }
.crime span { font-family: var(--gaegu); font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .divider { margin-top: 10px; width: 100%; height: 1.5px; }
.card .who { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-width: 0; }
.card .who small { font-size: 13px; color: var(--inksoft); flex: none; }
.card .who strong { font-family: var(--jua); font-weight: 400; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .vtext { font-size: 14px; line-height: 1.5; margin-top: 8px; }
.gauge-label { display: flex; justify-content: space-between; font-family: var(--jua); font-size: 14px; margin-top: 10px; }
.gauge-label em { font-style: normal; color: var(--inkc); }
.gauge { display: flex; gap: 3px; margin-top: 8px; }
.gauge i { flex: 1; height: 12px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--ink); }
.gauge i.on { background: var(--main); }
.card .footer { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.card .footer b { font-family: var(--jua); font-weight: 400; font-size: 13px; }
.card .footer span { font-size: 12px; color: var(--inksoft); }

/* ---------- S-03 판결 ---------- */
.verdict .btn-primary { margin-top: 16px; }
.intent {
  margin-top: 12px; padding: 14px; border-radius: 20px;
  background: var(--surface); border: 1.5px solid var(--line);
}
.intent-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--jua); font-size: 15px; }
.recorded { display: flex; align-items: center; gap: 4px; font-family: var(--dodum); font-size: 12px; color: var(--mintink); }
.recorded img { width: 14px; height: 14px; }
.chips { display: flex; gap: 8px; margin-top: 10px; }
.chip {
  flex: 1; padding: 10px 0; border-radius: 999px; background: var(--surface); border: 2px solid var(--line);
  font-family: var(--jua); font-size: 16px; white-space: nowrap;
}
.chip.selected { background: var(--butter); border-color: var(--ink); }
.row { display: flex; gap: 8px; margin-top: 12px; }
.row .btn { flex: 1; }
.stack .row { margin-top: 0; }
.disclaimer { font-size: 11px; line-height: 1.45; color: var(--inksoft); margin-top: 16px; }

/* ---------- S-04 공유 ---------- */
.h2 { font-family: var(--jua); font-size: 28px; line-height: 1.25; }
.thumb-stage { position: relative; height: 220px; border-radius: 28px; background: var(--grapesoft); margin-top: 16px; overflow: hidden; }
.thumb {
  --soft: var(--coralsoft); --main: var(--coral); --inkc: var(--coralink);
  position: absolute; left: 50%; margin-left: -54px; top: 16px; width: 108px; height: 192px;
  transform: rotate(4deg); background: var(--soft); border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: 0 4px 0 var(--ink); overflow: hidden;
}
.thumb.innocent { --soft: var(--mintsoft); --main: var(--mint); --inkc: var(--mintink); }
.thumb.ban { --soft: var(--grapesoft); --main: var(--grape); --inkc: var(--grapeink); }
.thumb .tm { position: absolute; left: 31.6px; top: 0; width: 70.4px; height: 70.4px; }
.thumb .ts { position: absolute; left: 6px; top: 52px; transform: rotate(-10deg); border: 1.5px solid var(--inkc); border-radius: 8px; padding: 2px; }
.thumb .ts div { border: .75px solid var(--inkc); border-radius: 6px; padding: 3px 9px; font-family: var(--jua); font-size: 15px; color: var(--inkc); }
.thumb .bar { position: absolute; left: 8px; height: 10px; border-radius: 4px; }
.story-hint {
  position: absolute; right: 16px; bottom: 16px; padding: 5px 10px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--ink); font-family: var(--jua); font-size: 12px;
}
.steps { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.steps li { list-style: none; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.steps li b {
  width: 26px; height: 26px; flex: none; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--berry); border: 1.5px solid var(--ink);
  font-family: var(--jua); font-weight: 400; font-size: 14px;
}
.notice {
  display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 18px;
  background: var(--surface); border: 2px solid var(--butter);
  font-size: 12.5px; line-height: 1.5; color: var(--inksoft);
}
.notice img { width: 20px; height: 20px; flex: none; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- S-05 피드백 ---------- */
.fb-head { display: flex; align-items: center; gap: 8px; }
.fb-head > div { flex: 1; }
.fb-head .h2 { font-size: 30px; }
.fb-head p { font-size: 15px; color: var(--inksoft); margin-top: 8px; }
.fb-head img { width: 92px; height: 92px; flex: none; }
.rating { display: flex; gap: 8px; margin-top: 20px; }
.rate {
  flex: 1; height: 60px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line);
  font-family: var(--jua); font-size: 22px; color: var(--inksoft);
}
.rate.selected { background: var(--butter); border-color: var(--ink); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--inksoft); margin-top: 8px; }
.textarea {
  position: relative; margin-top: 20px; height: 150px; border-radius: 20px;
  background: var(--surface); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--grape);
}
.textarea textarea {
  width: 100%; height: 100%; resize: none; border: 0; outline: 0; background: none; border-radius: 20px;
  padding: 16px 18px 34px; font-family: var(--dodum); font-size: 15px; line-height: 1.5; color: var(--ink);
}
.textarea textarea::placeholder { color: var(--disabledtext); }
.textarea .count { position: absolute; right: 18px; bottom: 14px; font-size: 12px; color: var(--inksoft); }
.fb-note { font-size: 13px; color: var(--inksoft); margin-top: 12px; }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; left: 50%; top: calc(20px + env(safe-area-inset-top)); transform: translate(-50%, -12px); /* 아래 버튼을 가리지 않게 위쪽 */
  max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 16px;
  background: var(--ink); color: var(--surface); font-size: 14px; line-height: 1.4; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 10;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 저장용 9:16 캔버스 (화면 밖) */
.export-stage { position: fixed; left: -10000px; top: 0; width: 375px; height: 667px; background: var(--bg); display: flex; align-items: center; justify-content: center; }
/* html2canvas는 aspect-ratio·line-height:normal·말줄임을 잘 못 그려서 저장용은 고정값으로 */
.export-stage .card { flex: none; width: 343px; min-height: 429px; aspect-ratio: auto; box-shadow: none; border-bottom-width: 7.5px; } /* html2canvas가 그림자를 못 그려서 아래 테두리로 대신 */
.export-stage .card * { line-height: 1.3; }
.export-stage .card .vtitle { line-height: 1.18; }
.export-stage .card .vtext { line-height: 1.5; }
/* html2canvas가 글꼴마다 세로 위치를 다르게 잡아서, 죄목 칸은 높이를 고정하고 글자를 직접 맞춰요 */
.export-stage .card .crime { display: flex; align-items: center; height: 34px; padding: 0 12px; }
.export-stage .card .crime b, .export-stage .card .crime span { display: block; line-height: 1; position: relative; }
.export-stage .card .crime b { top: -1px; }
.export-stage .card .crime span { top: -3px; }
.export-stage .card .who strong, .export-stage .card .crime span { overflow: visible; text-overflow: clip; white-space: normal; word-break: keep-all; }

/* 길게 눌러 저장 (인앱 브라우저·iOS) */
.img-overlay {
  position: fixed; inset: 0; z-index: 20; background: rgba(46, 35, 72, .92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
}
.img-overlay p { color: #fff; font-family: var(--jua); font-size: 17px; }
.img-overlay img { max-width: 100%; max-height: calc(100% - 140px); border-radius: 12px; -webkit-touch-callout: default; }
.img-overlay .btn { max-width: 200px; }

/* ---------- 작은 휴대폰 대응 ---------- */
/* 반짝이: 좁은 화면에서 오른쪽이 잘리지 않게 비율 유지하며 줄임 */
.hero .sparkles { width: min(300px, calc(100% - 36px)); height: auto; aspect-ratio: 300 / 120; }
/* 긴 죄목은 말줄임 대신 줄바꿈 */
.crime span { white-space: normal; word-break: keep-all; }
/* 질문 화면: 이전/다음 버튼을 항상 화면 아래에 */
.screen.question .actions-row {
  position: sticky; bottom: 0; z-index: 2;
  margin: 12px -17px calc(-32px - env(safe-area-inset-bottom));
  padding: 12px 17px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(243, 238, 255, 0), var(--bg) 14px);
}

/* 키가 작은 화면 (아이폰 SE·미니 등): 여백과 크기를 줄여서 한 화면에 */
@media (max-height: 800px) {
  .screen { padding-top: 24px; }
  .hero { height: 200px; }
  .hero .podium { top: 140px; }
  .hero .mascot { width: 136px; height: 136px; margin-left: -68px; top: 56px; }
  .title { font-size: 34px; margin-top: 16px; }
  .meta-tags { margin-top: 12px; }
  .defendant { margin-top: 18px; }
  .q-title { font-size: 26px; margin-top: 10px; }
  .options { gap: 8px; margin-top: 16px; }
  .option { padding: 14px 16px 14px 18px; font-size: 16px; }
  .judge-hint img { width: 60px; height: 60px; }
  .thumb-stage { height: 180px; }
  .thumb { transform: rotate(4deg) scale(.82); transform-origin: top center; }
  .steps { margin-top: 14px; gap: 8px; }
  .fb-head img { width: 76px; height: 76px; }
}
@media (max-height: 600px) {
  .hero { height: 170px; }
  .hero .podium { top: 116px; }
  .hero .mascot { width: 116px; height: 116px; margin-left: -58px; top: 48px; }
  .bubble { font-size: 13px; padding: 6px 10px; top: 12px; }
  .title { font-size: 30px; margin-top: 12px; }
  .lead { font-size: 14px; }
  .judge-hint { display: none; }
}

/* ---------- 폴드 펼침·태블릿·PC: 앱을 가운데 카드로 ---------- */
@media (min-width: 600px) {
  body {
    display: flex; align-items: center; justify-content: center; padding: 28px 24px;
    background: var(--grapesoft) radial-gradient(circle at 1px 1px, rgba(106, 79, 216, .12) 1.5px, transparent 0) 0 0 / 22px 22px;
  }
  .app {
    width: 100%; max-width: 440px; min-height: 0; margin: 0;
    background: var(--bg); border: 2.5px solid var(--ink); border-radius: 36px;
    box-shadow: 0 6px 0 var(--ink); overflow: clip;
  }
  .screen { min-height: min(880px, calc(100vh - 62px)); min-height: min(880px, calc(100dvh - 62px)); padding-top: 36px; }
  .screen.verdict { padding-top: 20px; }
  .screen.question .actions-row { margin-bottom: -32px; padding-bottom: 20px; }
}
@media (min-width: 600px) and (max-height: 800px) {
  body { padding: 12px 24px; }
  .screen { min-height: calc(100vh - 30px); min-height: calc(100dvh - 30px); padding-top: 24px; }
}

/* ---------- 개인정보 안내 ---------- */
.link-btn { font-size: 12px; color: var(--inksoft); text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.start .link-btn { align-self: center; margin-top: 10px; }
.site-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 2px; padding-bottom: 8px; font-size: 12px; }
.site-links a { color: var(--inksoft); text-decoration: none; padding: 4px 2px; }
.site-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.privacy-overlay {
  position: fixed; inset: 0; z-index: 20; background: rgba(46, 35, 72, .6);
  display: flex; align-items: flex-end; justify-content: center;
}
.privacy-sheet {
  width: 100%; max-width: 430px; max-height: 86vh; overflow-y: auto;
  background: var(--surface); border-radius: 24px 24px 0 0; border: 2px solid var(--ink); border-bottom: 0;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
}
.privacy-sheet h3 { font-family: var(--jua); font-weight: 400; font-size: 22px; }
.privacy-sheet dl { margin-top: 14px; font-size: 14px; line-height: 1.55; }
.privacy-sheet dt { font-family: var(--jua); font-size: 15px; margin-top: 12px; }
.privacy-sheet dd { color: var(--inksoft); }
.privacy-sheet .btn { margin-top: 20px; }

/* ---------- 친구 배심원 ---------- */
.ask-note { text-align: center; font-size: 12.5px; color: var(--inksoft); margin-top: 8px; }
.jury-peek {
  margin-top: 8px; align-self: center; padding: 6px 12px; border-radius: 999px;
  background: var(--butter); border: 1.5px solid var(--ink); font-family: var(--jua); font-size: 14px;
}
.jury-kicker { font-family: var(--jua); font-size: 15px; color: var(--grapeink); margin-top: 20px; }
.jury-result .jury-kicker { margin-top: 0; }
.jury-title { font-family: var(--jua); font-size: 34px; line-height: 1.2; margin-top: 4px; }
.jury .defendant { margin-top: 10px; font-size: 16px; }
.jury-opts { margin-top: 18px; }
.option.vote { justify-content: space-between; font-family: var(--jua); font-size: 19px; border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.option.vote em { font-style: normal; font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--surface); flex: none; }
.option.vote.innocent { background: var(--mintsoft); }
.option.vote.guilty { background: var(--coralsoft); }
.option.vote.ban { background: var(--grapesoft); }
.option.vote:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.option.vote:disabled { opacity: .55; }
.jury .link-btn { align-self: center; }

.reveal {
  --soft: var(--coralsoft); --inkc: var(--coralink);
  position: relative; margin-top: 10px; padding: 18px 20px; min-height: 196px;
  background: var(--soft); border: 2.5px solid var(--ink); border-radius: 26px; box-shadow: 0 5px 0 var(--ink);
}
.reveal.innocent { --soft: var(--mintsoft); --inkc: var(--mintink); }
.reveal.ban { --soft: var(--grapesoft); --inkc: var(--grapeink); }
.reveal .mascot { position: absolute; right: 10px; top: 6px; width: 110px; height: 110px; }
.reveal .rv-label { font-family: var(--jua); font-size: 14px; color: var(--inksoft); }
.reveal .stamp { position: static; display: inline-block; margin-top: 14px; }
.app.anim .reveal .stamp { animation: slam .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes slam { from { transform: rotate(-10deg) scale(2.2); opacity: 0; } to { transform: rotate(-10deg) scale(1); opacity: 1; } }
.reveal .who { display: flex; align-items: center; gap: 8px; margin-top: 14px; min-width: 0; }
.reveal .who small { font-size: 13px; color: var(--inksoft); flex: none; }
.reveal .who strong { font-family: var(--jua); font-weight: 400; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match { margin-top: 14px; text-align: center; font-family: var(--jua); font-size: 18px; }
.match.same { color: var(--mintink); }
.match.diff { color: var(--coralink); }

.tally { margin-top: 14px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.tally-head { display: flex; justify-content: space-between; font-family: var(--jua); font-size: 15px; }
.tally-head em { font-style: normal; color: var(--inksoft); font-size: 13px; }
.tally-row { display: grid; grid-template-columns: 116px 1fr 28px; align-items: center; gap: 8px; font-size: 14px; }
.tally-row .tl { white-space: nowrap; }
.tally-row .tl small { font-size: 11px; color: var(--grapeink); }
.tally-row .tb { height: 14px; border-radius: 999px; background: var(--grapesoft); overflow: hidden; border: 1.5px solid var(--ink); }
.tally-row .tb i { display: block; height: 100%; transition: width .5s ease; }
.tally-row.innocent .tb i { background: var(--mint); }
.tally-row.guilty .tb i { background: var(--coral); }
.tally-row.ban .tb i { background: var(--grape); }
.tally-row .tc { text-align: right; font-family: var(--jua); }
.tally-row.mine .tl { font-family: var(--jua); }
.tally-wait { font-size: 13px; color: var(--inksoft); text-align: center; }
.cta-lead { text-align: center; font-family: var(--jua); font-size: 17px; margin-bottom: 10px; }

.my-cases { margin-top: 16px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); }
.mc-title { font-family: var(--jua); font-size: 14px; }
.mc-item { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 0 2px; font-size: 14px; text-align: left; }
.mc-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-item em { font-style: normal; font-family: var(--jua); color: var(--grapeink); flex: none; }
