:root {
  --ink: #eff3e9;
  --ink-soft: #bdc8bd;
  --muted: #718079;
  --deep: #071019;
  --deep-2: #0d1b25;
  --paper: #f0e6d2;
  --paper-2: #e4d4b9;
  --paper-ink: #1e2d2e;
  --line: rgba(208, 230, 215, .16);
  --line-strong: rgba(208, 230, 215, .34);
  --acid: #d5f578;
  --acid-soft: #efffb9;
  --orange: #ff8061;
  --blue: #72c7ee;
  --serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--deep); font-family: var(--sans); }
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }

.court-app { position: relative; min-height: 100vh; overflow: hidden; background: linear-gradient(142deg, #061019 0%, #0d1b25 54%, #071019 100%); }
.court-app::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 78% 12%, rgba(213,245,120,.1), transparent 25%), radial-gradient(circle at 8% 48%, rgba(114,199,238,.08), transparent 30%); }
.backdrop { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; filter: blur(7px); }
.backdrop-a { top: -14vw; right: -10vw; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(213,245,120,.13), transparent 67%); }
.backdrop-b { top: 42vh; left: -16vw; width: 45vw; height: 45vw; background: radial-gradient(circle, rgba(114,199,238,.11), transparent 69%); }
.grid-overlay { position: absolute; z-index: 0; inset: 0; pointer-events: none; opacity: .56; background-image: linear-gradient(rgba(208,230,215,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(208,230,215,.035) 1px, transparent 1px); background-size: 55px 55px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 80%); }

.topbar, .opening, .court-room, .after-court, .own-case, .footer-note { position: relative; z-index: 1; width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 86px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--acid); color: var(--acid); font: 500 11px var(--mono); letter-spacing: -.1em; transform: rotate(-7deg); }
.brand-copy { display: grid; gap: 4px; }
.brand-copy b { font: 500 11px var(--mono); letter-spacing: .13em; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.topbar-right { display: flex; align-items: center; gap: 28px; }
.court-status { color: var(--muted); font: 9px var(--mono); letter-spacing: .12em; }
.court-status i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(213,245,120,.08); animation: pulse 2s ease-in-out infinite; }
.reset-button { padding: 6px 0; color: var(--muted); background: transparent; font-size: 12px; }
.reset-button:hover { color: var(--acid); }

.opening { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); align-items: center; gap: 10%; min-height: 700px; padding: 80px 0 112px; }
.opening-copy { max-width: 620px; }
.eyebrow { margin: 0; color: var(--acid); font: 10px var(--mono); letter-spacing: .15em; }
.eyebrow span { display: inline-block; margin-right: 13px; color: var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 30px 0 29px; color: var(--ink); font: 500 clamp(56px, 7vw, 100px)/1.04 var(--serif); letter-spacing: -.12em; }
h1 em, h2 em { color: var(--acid); font-style: normal; }
.opening-lede { max-width: 455px; margin-bottom: 36px; color: var(--ink-soft); font: 15px/2 var(--serif); }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 31px; min-height: 48px; padding: 14px 16px 14px 20px; color: var(--deep); background: var(--acid); font-size: 13px; font-weight: 500; transition: transform .22s ease, background .22s ease, box-shadow .22s ease; }
.primary-button span { font-size: 17px; line-height: 1; }
.primary-button:hover { background: var(--acid-soft); box-shadow: 0 12px 32px rgba(213,245,120,.13); transform: translateY(-2px); }
.opening-note { margin: 16px 0 0; color: var(--muted); font: 10px var(--sans); }

.opening-visual { position: relative; min-height: 480px; padding: 21px 25px 17px; border: 1px solid var(--line-strong); background: rgba(9,21,29,.48); transform: rotate(2.4deg); box-shadow: 20px 27px 80px rgba(0,0,0,.25); }
.opening-visual::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(213,245,120,.1); pointer-events: none; }
.docket-line, .visual-foot, .file-topline, .sheet-topline, .bench-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 9px var(--mono); letter-spacing: .12em; }
.docket-line { position: relative; z-index: 2; }
.court-seal { position: absolute; top: 112px; right: 60px; display: grid; width: 107px; height: 107px; place-items: center; border: 1px solid var(--acid); border-radius: 50%; color: var(--acid); transform: rotate(11deg); }
.court-seal::before, .court-seal::after { content: ""; position: absolute; border-radius: 50%; }
.court-seal::before { inset: 8px; border: 1px dashed rgba(213,245,120,.46); }
.court-seal::after { width: 5px; height: 5px; top: 15px; background: var(--orange); box-shadow: 80px 65px 0 var(--blue); }
.court-seal span { font: 21px var(--mono); letter-spacing: -.1em; }
.court-seal small { color: var(--ink-soft); font: 8px/1.3 var(--mono); letter-spacing: .07em; }
.gavel { position: absolute; top: 102px; left: 40px; width: 184px; height: 170px; transform: rotate(-33deg); opacity: .9; }
.gavel-head { position: absolute; top: 12px; left: 12px; display: block; width: 116px; height: 47px; border: 1px solid var(--orange); background: linear-gradient(115deg, rgba(255,128,97,.34), rgba(255,128,97,.07)); box-shadow: 0 0 30px rgba(255,128,97,.15); }
.gavel-head::before, .gavel-head::after { content: ""; position: absolute; top: -5px; bottom: -5px; width: 14px; border: 1px solid var(--orange); }
.gavel-head::before { left: -9px; }
.gavel-head::after { right: -9px; }
.gavel-handle { position: absolute; top: 48px; left: 65px; display: block; width: 23px; height: 128px; border: 1px solid var(--orange); background: rgba(255,128,97,.12); transform: rotate(3deg); }
.opening-file { position: absolute; right: 40px; bottom: 83px; display: grid; width: 205px; min-height: 184px; padding: 18px; color: var(--paper-ink); background: var(--paper); transform: rotate(-7deg); box-shadow: 11px 15px 32px rgba(0,0,0,.24); }
.opening-file::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(30,45,46,.28); pointer-events: none; }
.opening-file span { position: relative; z-index: 1; font: 7px var(--mono); letter-spacing: .1em; }
.opening-file strong { position: relative; z-index: 1; margin-top: 28px; font: 500 31px/.9 var(--serif); letter-spacing: -.1em; }
.opening-file small { position: relative; z-index: 1; align-self: end; font: 10px/1.45 var(--sans); }
.visual-foot { position: absolute; right: 25px; bottom: 17px; left: 25px; padding-top: 16px; border-top: 1px solid var(--line); }

.court-room, .after-court, .own-case { padding: 80px 0 112px; border-top: 1px solid var(--line); scroll-margin-top: 25px; }
.is-hidden { display: none !important; }
.court-app.is-in-court { height: 100svh; overflow: hidden; }
.court-app.is-in-court .opening { display: none; }
.court-app.is-in-court .court-room { border-top: 0; }
.court-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 41px; }
h2 { margin: 22px 0 0; color: var(--ink); font: 500 clamp(38px, 5.4vw, 67px)/1.1 var(--serif); letter-spacing: -.1em; }
.case-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.progress-dot { display: block; width: 31px; height: 2px; background: var(--line-strong); transition: background .25s ease, width .25s ease; }
.progress-dot.is-active { width: 51px; background: var(--acid); }
.court-layout { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(310px, .86fr); gap: clamp(38px, 7vw, 98px); align-items: start; }

.case-file { position: relative; padding: 28px 31px 31px; color: var(--paper-ink); background: var(--paper); box-shadow: 18px 23px 55px rgba(0,0,0,.24); transform: rotate(-1deg); }
.case-file::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(30,45,46,.25); pointer-events: none; }
.case-file::after { content: ""; position: absolute; inset: 0; opacity: .11; pointer-events: none; background: repeating-linear-gradient(116deg, transparent 0 12px, rgba(30,45,46,.2) 12px 13px, transparent 13px 24px); }
.file-topline, .file-rule, .case-statement, .case-question, .exhibit-label, .exhibit-grid, .evidence-detail, .verdict-zone, .judgement-panel { position: relative; z-index: 1; }
.file-topline { color: #7a816f; }
.file-rule { height: 1px; margin: 17px 0 27px; background: rgba(30,45,46,.25); }
.case-statement { max-width: 570px; margin-bottom: 25px; color: var(--paper-ink); font: 500 clamp(26px, 4vw, 43px)/1.26 var(--serif); letter-spacing: -.08em; }
.case-question { max-width: 520px; margin-bottom: 38px; color: #627067; font: 15px/1.75 var(--serif); }
.exhibit-label, .verdict-label { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 13px; color: #6e7c70; font: 11px var(--mono); letter-spacing: .1em; }
.exhibit-label small, .verdict-label small { font: 11px var(--sans); letter-spacing: 0; }
.exhibit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.exhibit { position: relative; min-height: 91px; padding: 15px 15px 12px; border: 1px solid rgba(30,45,46,.22); color: var(--paper-ink); background: rgba(255,249,237,.42); text-align: left; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.exhibit:hover, .exhibit.is-open { border-color: var(--paper-ink); background: rgba(255,249,237,.78); transform: translateY(-2px); }
.exhibit small { display: block; margin-bottom: 9px; color: #718076; font: 10px var(--mono); letter-spacing: .12em; }
.exhibit strong { display: block; font: 500 24px var(--mono); letter-spacing: -.08em; }
.exhibit em { position: absolute; right: 13px; bottom: 13px; color: #7d8e7a; font: 10px var(--sans); font-style: normal; }
.exhibit.is-positive strong { color: #2f6f5a; }
.exhibit.is-warning strong { color: #c76643; }
.evidence-detail { min-height: 45px; margin-top: 11px; padding: 11px 13px; border-left: 2px solid #8ca694; color: #627067; background: rgba(255,249,237,.56); font: 12px/1.6 var(--sans); }
.verdict-zone { margin-top: 31px; padding-top: 23px; border-top: 1px solid rgba(30,45,46,.2); }
.verdict-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.verdict-button { min-height: 64px; padding: 11px 7px; border: 1px solid rgba(30,45,46,.29); color: var(--paper-ink); background: rgba(255,249,237,.35); font: 500 13px var(--serif); transition: background .2s ease, color .2s ease, transform .2s ease; }
.verdict-button:hover { color: var(--paper); background: var(--paper-ink); transform: translateY(-2px); }
.verdict-button:disabled { cursor: default; opacity: .7; }
.verdict-button:disabled:hover { color: var(--paper-ink); background: rgba(255,249,237,.35); transform: none; }
.judgement-panel { margin-top: 27px; padding: 19px 18px; color: var(--paper-ink); border-top: 1px solid rgba(30,45,46,.25); background: rgba(255,249,237,.55); animation: reveal .38s ease-out both; }
.judgement-panel.is-right { border-left: 3px solid #4e8e75; }
.judgement-panel.is-miss { border-left: 3px solid var(--orange); }
.judgement-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #718076; font: 9px var(--mono); letter-spacing: .12em; }
.judgement-topline strong { color: #2f6f5a; font: 500 16px var(--serif); letter-spacing: 0; }
.is-miss .judgement-topline strong { color: #c76643; }
.judgement-panel h3 { margin: 17px 0 9px; color: var(--paper-ink); font: 500 25px/1.2 var(--serif); letter-spacing: -.07em; }
.judgement-panel p { margin: 0; color: #627067; font: 12px/1.8 var(--sans); }
.lesson-line { display: flex; gap: 10px; margin-top: 15px; padding-top: 13px; border-top: 1px solid rgba(30,45,46,.16); color: #546a5c; font: 11px/1.6 var(--sans); }
.lesson-line b { color: #2f6f5a; font: 500 12px var(--serif); white-space: nowrap; }
.next-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-width: 145px; margin-top: 18px; padding: 11px 13px; color: var(--paper); background: var(--paper-ink); font-size: 11px; }
.next-button:hover { background: #385850; }

.bench { padding-top: 8px; }
.bench-head { color: var(--muted); }
.bench-orbit { position: relative; height: 280px; margin: 23px 0 16px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(circle at center, rgba(213,245,120,.09), transparent 56%); }
.orbit { position: absolute; border: 1px solid rgba(114,199,238,.2); border-radius: 50%; transform: rotate(-22deg); }
.orbit-one { inset: 34px 37px; }
.orbit-two { inset: 80px 92px; border-color: rgba(213,245,120,.25); }
.bench-mark { position: absolute; top: 50%; left: 50%; display: grid; width: 105px; height: 105px; place-items: center; border: 1px solid var(--acid); border-radius: 50%; color: var(--acid); background: rgba(7,16,25,.75); transform: translate(-50%, -50%) rotate(7deg); box-shadow: 0 0 0 8px rgba(213,245,120,.04); }
.bench-mark b { display: block; max-width: 92%; color: inherit; font: 500 38px/1.05 var(--mono); letter-spacing: -.1em; text-align: center; }
.bench-mark small { color: var(--ink-soft); font: 8px/1.3 var(--mono); letter-spacing: .09em; }
.bench-mark.is-wide b { font-size: 20px; letter-spacing: -.1em; white-space: nowrap; transform: scaleX(.82); }
.bench-constellation { position: absolute; inset: 0; }
.bench-node { position: absolute; display: grid; justify-items: center; gap: 6px; color: var(--muted); font: 8px var(--mono); letter-spacing: .1em; transition: color .25s ease, transform .25s ease; }
.bench-node:nth-child(1) { top: 14%; left: 63%; }
.bench-node:nth-child(2) { top: 55%; right: 11%; }
.bench-node:nth-child(3) { bottom: 14%; left: 25%; }
.bench-node:nth-child(4) { top: 25%; left: 12%; }
.bench-node i { display: block; width: 9px; height: 9px; border: 1px solid var(--blue); border-radius: 50%; background: var(--deep); box-shadow: 0 0 0 5px rgba(114,199,238,.07); transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.bench-node.is-active { color: var(--acid); transform: scale(1.12); }
.bench-node.is-active i { border-color: var(--acid); background: var(--acid); box-shadow: 0 0 0 7px rgba(213,245,120,.11), 0 0 21px rgba(213,245,120,.42); transform: scale(1.12); }
.bench-status { display: flex; align-items: center; gap: 9px; color: var(--acid); font: 10px var(--mono); letter-spacing: .1em; }
.status-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(213,245,120,.08); }
.bench-note { max-width: 350px; margin: 15px 0 23px; color: var(--ink-soft); font: 15px/1.8 var(--serif); }
.bench-readout { margin: 10px 0 17px; padding: 13px 15px 14px; border-left: 2px solid var(--acid); background: rgba(213,245,120,.055); animation: reveal .3s ease-out both; }
.readout-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font: 9px var(--mono); letter-spacing: .1em; }
.readout-topline span:last-child { color: var(--acid); text-align: right; }
.bench-readout h3 { margin: 11px 0 6px; color: var(--ink); font: 500 20px/1.25 var(--serif); letter-spacing: -.06em; }
.bench-readout p { max-width: 420px; margin: 0; color: var(--ink-soft); font: 12px/1.7 var(--sans); }
.readout-meaning { display: flex; align-items: start; gap: 11px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.readout-meaning strong { color: var(--acid-soft); font: 500 11px/1.45 var(--sans); }
.bench-divider { height: 1px; margin-bottom: 20px; background: var(--line); }
.bench-rule { display: grid; grid-template-columns: 70px 1fr; column-gap: 12px; margin-bottom: 17px; }
.bench-rule span { color: var(--muted); font: 8px var(--mono); letter-spacing: .1em; }
.bench-rule b { color: var(--ink-soft); font: 500 14px var(--serif); }
.bench-rule small { grid-column: 2; margin-top: 3px; color: var(--muted); font-size: 10px; }
.bench-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bench-rule { display: block; margin: 0; padding-top: 9px; border-top: 1px solid var(--line); }
.bench-rule span, .bench-rule b, .bench-rule small { display: block; }
.bench-rule span { margin-bottom: 7px; }
.bench-rule small { margin-top: 3px; line-height: 1.35; }

@media (min-width: 881px) {
  .court-app.is-in-court { position: fixed; inset: 0; width: 100%; overflow: clip; }
  .court-room { display: flex; min-height: calc(100svh - 86px); flex-direction: column; padding: 42px 0 46px; }
  .court-head { margin-bottom: 22px; }
  .court-layout { flex: 1; min-height: 0; align-items: stretch; }
  .case-file { display: flex; min-height: 0; flex-direction: column; padding: 22px 26px 23px; }
  .file-rule { margin: 11px 0 18px; }
  .case-statement { margin-bottom: 12px; font-size: clamp(25px, 2.8vw, 38px); line-height: 1.2; }
  .case-question { margin-bottom: 19px; font-size: 12px; line-height: 1.55; }
  .exhibit-label { margin-bottom: 8px; }
  .exhibit-grid { gap: 7px; }
  .exhibit { min-height: 70px; padding: 11px 13px; }
  .exhibit small { margin-bottom: 5px; }
  .exhibit strong { font-size: 18px; }
  .evidence-detail { min-height: 34px; margin-top: 8px; padding: 8px 11px; font-size: 10px; line-height: 1.45; }
  .verdict-zone { margin-top: auto; padding-top: 17px; }
  .verdict-button { min-height: 50px; padding: 8px 5px; font-size: 12px; }
  .verdict-button small { display: block; margin-top: 3px; font-size: 9px; opacity: .7; }
  .judgement-panel { margin-top: 15px; padding: 14px; }
  .judgement-panel h3 { margin: 10px 0 6px; font-size: 21px; }
  .judgement-panel p { font-size: 11px; line-height: 1.55; }
  .lesson-line { margin-top: 9px; padding-top: 9px; }
  .next-button { margin-top: 10px; padding: 9px 12px; }
  .bench { display: flex; min-height: 0; flex-direction: column; padding-top: 0; }
  .bench-orbit { height: min(31vh, 245px); min-height: 200px; margin: 18px 0 12px; }
  .bench-note { margin: 10px 0 14px; font-size: 13px; line-height: 1.5; }
  .bench-divider { margin-bottom: 11px; }
}

@media (min-width: 881px) and (max-height: 820px) {
  .court-room { padding: 20px 0 8px; }
  .court-head { margin-bottom: 10px; }
  .court-head h2 { margin-top: 10px; font-size: clamp(32px, 4vw, 48px); }
  .court-layout { gap: 50px; }
  .case-file { padding: 16px 20px 9px; }
  .file-rule { margin: 7px 0 10px; }
  .case-statement { margin-bottom: 8px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.16; }
  .case-question { margin-bottom: 11px; font-size: 13px; line-height: 1.45; }
  .exhibit-grid { gap: 6px; }
  .exhibit { min-height: 60px; padding: 9px 11px; }
  .exhibit small { margin-bottom: 3px; font-size: 9px; }
  .exhibit strong { font-size: 20px; }
  .exhibit em { right: 9px; bottom: 8px; font-size: 9px; }
  .evidence-detail { min-height: 31px; margin-top: 6px; padding: 7px 9px; font-size: 11px; line-height: 1.5; }
  .verdict-zone { padding-top: 9px; }
  .verdict-label { margin-bottom: 7px; }
  .verdict-button { min-height: 43px; padding: 6px 4px; font-size: 11px; }
  .verdict-button small { margin-top: 2px; font-size: 8px; }
  .judgement-panel { margin-top: 8px; padding: 9px 11px; }
  .judgement-panel h3 { margin: 6px 0 4px; font-size: 19px; }
  .judgement-panel p { font-size: 10px; line-height: 1.4; }
  .lesson-line { margin-top: 6px; padding-top: 6px; font-size: 10px; line-height: 1.4; }
  .lesson-line b { font-size: 11px; }
  .next-button { margin-top: 6px; padding: 7px 10px; }
  .bench-orbit { height: 165px; min-height: 165px; margin: 10px 0 7px; }
  .bench-note { margin: 6px 0 9px; font-size: 11px; }
  .bench-divider { margin-bottom: 6px; }
  .bench-rule { padding-top: 5px; }
  .bench-rule span { margin-bottom: 4px; font-size: 7px; }
  .bench-rule b { font-size: 12px; }
  .bench-rule small { font-size: 8px; }
}

.after-court { display: grid; grid-template-columns: minmax(0, .9fr) minmax(350px, .95fr); gap: 10%; align-items: center; }
.profile-intro { max-width: 515px; }
.profile-intro h2 { margin-top: 27px; }
.profile-intro > p:not(.eyebrow) { margin: 26px 0 32px; color: var(--ink-soft); font: 14px/1.9 var(--serif); }
.profile-sheet { position: relative; min-height: 367px; padding: 22px 24px 20px; color: var(--paper-ink); background: var(--paper); transform: rotate(2deg); box-shadow: 18px 22px 50px rgba(0,0,0,.27); }
.profile-sheet::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(30,45,46,.23); pointer-events: none; }
.sheet-topline, .sheet-kicker, .profile-sheet h3, .profile-stamp, .habit-list, .sheet-foot { position: relative; z-index: 1; }
.profile-stamp { display: grid; width: 84px; height: 84px; place-items: center; margin: 42px 0 17px; border: 1px solid #bb5f47; border-radius: 50%; color: #bb5f47; font: 10px/1.35 var(--serif); text-align: center; transform: rotate(-9deg); }
.sheet-kicker { margin: 0; color: #798374; font: 9px var(--mono); letter-spacing: .12em; }
.profile-sheet h3 { margin: 10px 0 19px; font: 500 30px var(--serif); letter-spacing: -.1em; }
.habit-list { display: grid; gap: 8px; }
.habit-row { display: flex; align-items: center; gap: 9px; color: #5f6f64; font: 11px var(--sans); }
.habit-row i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #4e8e75; }
.habit-row.is-watch i { background: var(--orange); }
.sheet-foot { position: absolute; right: 24px; bottom: 20px; left: 24px; display: flex; justify-content: space-between; padding-top: 13px; border-top: 1px solid rgba(30,45,46,.2); color: #798374; font: 9px var(--sans); }

.own-case { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8%; align-items: start; }
.own-case-copy { max-width: 430px; }
.own-case-copy h2 { margin-top: 25px; }
.own-case-copy > p:not(.eyebrow) { margin-top: 25px; color: var(--ink-soft); font: 14px/1.8 var(--serif); }
.own-case-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 13px; padding: 23px; border: 1px solid var(--line-strong); background: rgba(9,21,29,.38); }
.own-case-form label { display: grid; gap: 8px; color: var(--ink-soft); font-size: 11px; }
.own-case-form select, .own-case-form input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); color: var(--ink); background: rgba(13,31,41,.8); }
.own-case-form select option { color: var(--paper-ink); background: var(--paper); }
.own-case-form .primary-button { width: fit-content; min-width: 140px; }
.form-fineprint { grid-column: 1 / -1; margin: -3px 0 0; color: var(--muted); font: 10px/1.5 var(--sans); }
.own-case-result { grid-column: 1 / -1; padding: 17px; border-left: 2px solid var(--acid); color: var(--ink-soft); background: rgba(213,245,120,.06); animation: reveal .35s ease-out both; }
.own-case-result h3 { margin: 0 0 9px; color: var(--acid); font: 500 21px var(--serif); }
.own-case-result p { margin: 0; font: 12px/1.8 var(--sans); }
.own-case-result ul { margin: 12px 0 0; padding-left: 17px; color: var(--ink-soft); font: 11px/1.8 var(--sans); }

.footer-note { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0 31px; border-top: 1px solid var(--line); color: var(--muted); font: 10px/1.6 var(--sans); }
.toast { position: fixed; z-index: 10; right: 26px; bottom: 24px; max-width: calc(100% - 52px); padding: 13px 16px; border: 1px solid rgba(213,245,120,.4); color: var(--ink); background: rgba(8,21,30,.95); box-shadow: 0 15px 30px rgba(0,0,0,.3); font-size: 12px; animation: reveal .24s ease-out both; }

@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 880px) {
  .opening { grid-template-columns: 1fr; gap: 45px; padding-top: 66px; }
  .opening-visual { width: min(100%, 560px); justify-self: center; }
  .court-layout, .after-court, .own-case { grid-template-columns: 1fr; gap: 57px; }
  .bench { max-width: 590px; }
  .own-case-form { max-width: 640px; }
  .court-app.is-in-court { height: auto; min-height: 100vh; overflow: visible; }
  .court-app.is-in-court .court-room { min-height: auto; }
}

@media (max-width: 600px) {
  .topbar, .opening, .court-room, .after-court, .own-case, .footer-note { width: calc(100% - 32px); }
  .topbar { height: 70px; }
  .court-status { display: none; }
  .topbar-right { gap: 0; }
  .opening { min-height: 0; padding: 65px 0 85px; }
  h1 { margin-top: 25px; font-size: clamp(52px, 15vw, 75px); }
  .opening-lede { font-size: 14px; }
  .opening-visual { min-height: 370px; padding: 17px 16px 14px; }
  .gavel { top: 83px; left: 18px; transform: rotate(-33deg) scale(.75); transform-origin: top left; }
  .court-seal { top: 75px; right: 22px; width: 88px; height: 88px; }
  .opening-file { right: 21px; bottom: 60px; width: 181px; min-height: 154px; }
  .opening-file strong { margin-top: 20px; font-size: 28px; }
  .court-room, .after-court, .own-case { padding: 60px 0 79px; }
  .court-head { display: block; margin-bottom: 30px; }
  .case-progress { margin-top: 23px; }
  .case-file { padding: 22px 18px 23px; }
  .case-statement { font-size: 29px; }
  .case-question { font-size: 13px; }
  .exhibit-grid { gap: 7px; }
  .exhibit { min-height: 84px; padding: 12px; }
  .exhibit strong { font-size: 18px; }
  .exhibit em { display: none; }
  .verdict-grid { grid-template-columns: repeat(2, 1fr); }
  .bench-orbit { height: 240px; }
  .profile-sheet { min-height: 375px; padding: 18px; }
  .sheet-foot { right: 18px; bottom: 18px; left: 18px; }
  .own-case-form { grid-template-columns: 1fr; padding: 17px; }
  .form-fineprint { grid-column: 1; }
  .footer-note { flex-direction: column; gap: 5px; }
}

@media (max-width: 600px) {
  .court-app.is-in-court { position: fixed; inset: 0; height: 100svh; overflow: clip; }
  .court-app.is-in-court .topbar { height: 59px; }
  .court-app.is-in-court .court-room { display: flex; min-height: calc(100svh - 59px); flex-direction: column; padding: 20px 0 15px; border-top: 0; }
  .court-app.is-in-court .court-head { flex: 0 0 auto; margin-bottom: 10px; }
  .court-app.is-in-court .court-head h2 { margin-top: 10px; font-size: clamp(31px, 8.8vw, 38px); line-height: 1.05; }
  .court-app.is-in-court .case-progress { margin-top: 14px; }
  .court-app.is-in-court .court-layout { display: block; min-height: 0; }
  .court-app.is-in-court .case-file { display: flex; min-height: 0; flex-direction: column; padding: 14px 15px 15px; transform: none; }
  .court-app.is-in-court .file-rule { margin: 6px 0 10px; }
  .court-app.is-in-court .case-statement { margin-bottom: 7px; font-size: 22px; line-height: 1.12; }
  .court-app.is-in-court .case-question { margin-bottom: 10px; font-size: 11px; line-height: 1.4; }
  .court-app.is-in-court .exhibit-label { margin-bottom: 6px; font-size: 9px; }
  .court-app.is-in-court .exhibit-label small { font-size: 9px; }
  .court-app.is-in-court .exhibit-grid { gap: 5px; }
  .court-app.is-in-court .exhibit { min-height: 56px; padding: 8px 9px; }
  .court-app.is-in-court .exhibit small { margin-bottom: 3px; font-size: 9px; }
  .court-app.is-in-court .exhibit strong { font-size: 18px; }
  .court-app.is-in-court .exhibit em { right: 8px; bottom: 7px; font-size: 8px; }
  .court-app.is-in-court .evidence-detail { min-height: 28px; margin-top: 5px; padding: 6px 7px; font-size: 10.5px; line-height: 1.4; }
  .court-app.is-in-court .verdict-zone { margin-top: 11px; padding-top: 9px; }
  .court-app.is-in-court .verdict-label { margin-bottom: 6px; font-size: 8px; }
  .court-app.is-in-court .verdict-label small { font-size: 8px; }
  .court-app.is-in-court .verdict-grid { gap: 5px; }
  .court-app.is-in-court .verdict-button { min-height: 40px; padding: 5px 3px; font-size: 10px; }
  .court-app.is-in-court .verdict-button small { margin-top: 2px; font-size: 7px; }
  .court-app.is-in-court .bench { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
