/* =====================================================================
   The Courtroom (court.html): Wall of Shame appeals, jury duty, probation
   and records. Loaded only on that page; uses the tokens in styles.css.
   - Red is the Wall of Shame, green is probation granted or served,
     yellow is "act here" (file an appeal, your summons).
   - Every grid child has min-width:0 and every gamertag wraps anywhere,
     so long tags and statements never push the page sideways.
   ===================================================================== */

.court-wrap{padding-top:28px;padding-bottom:120px;display:grid;gap:16px;min-width:0;overflow-x:clip}
.court-wrap > *{min-width:0}

/* ---------- Page head ---------- */

/* Section tabs: wrap instead of scrolling so nothing hides off the edge */
.court-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:4px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel);box-shadow:var(--shadow-1);justify-self:start;max-width:100%;scroll-margin-top:84px}
.court-tabs a{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 16px;border-radius:12px;font-weight:700;font-size:14px;color:var(--muted);text-decoration:none;white-space:nowrap;transition:background-color 160ms ease,color 160ms ease}
.court-tabs a:hover{color:var(--text);background:var(--hover)}
.court-tabs a[aria-current="page"]{background:var(--strong);color:var(--on-strong)}
.court-tabs .n{min-width:22px;height:22px;display:inline-grid;place-items:center;padding:0 6px;border-radius:var(--radius-pill);background:var(--primary);color:var(--on-primary);font-size:12px;font-variant-numeric:tabular-nums}

/* Demo notice and controls */
.demo-bar{background:var(--warn-tint);color:var(--text);border-radius:var(--radius-panel);font-size:14px}
.demo-bar summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-height:44px;padding:8px 16px;cursor:pointer;list-style:none;font-weight:500}
.demo-bar summary::-webkit-details-marker{display:none}
.demo-tag{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;background:var(--warn);color:var(--surface);border-radius:var(--radius-pill);padding:2px 9px}
.demo-open{margin-left:auto;font-weight:700;color:var(--warn);text-decoration:underline;text-underline-offset:3px}
.demo-bar[open] .demo-open{text-decoration:none}
.demo-body{display:grid;gap:10px;padding:0 16px 14px}
.demo-actions{display:flex;flex-wrap:wrap;gap:8px}
.demo-btn{justify-self:start;font-size:13px;color:var(--warn)}

.court-view{display:grid;gap:16px;min-width:0}
.court-view > *{min-width:0}
.view-title{font-family:var(--font-display);font-size:26px;line-height:34px;font-weight:800;min-width:0}
.view-title:focus{outline:none}
.lede-sm{color:var(--muted);max-width:72ch}
.court-sec .section-h{margin:0 0 10px;flex-wrap:wrap}
.court-sec .section-h .count{white-space:normal}
.countdown{white-space:nowrap}
.court-sec .disclaimer{margin-top:-4px}
.court-empty{color:var(--muted)}
.tagname{font-feature-settings:var(--tag-features);font-weight:800;overflow-wrap:anywhere;min-width:0}
.case-link{color:var(--text);text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px;min-width:0;overflow-wrap:anywhere}
.case-link:hover{text-decoration-color:currentColor}
.case-no{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;font-size:12px;font-weight:700;color:var(--faint);letter-spacing:.02em}
.hint{overflow-wrap:anywhere}

/* Game chip (the game's short code on its colour) */
.gi-chip{display:inline-grid;place-items:center;flex:none;min-width:30px;height:24px;padding:0 6px;border-radius:7px;background:var(--g,var(--g2));color:var(--g-on,#fff);font-family:var(--font-display);font-size:10px;font-weight:800;line-height:1;letter-spacing:.02em}
.gi-chip.c1,.court-title.c1{--g:var(--g1);--g-on:var(--g1-on)}
.gi-chip.c2,.court-title.c2{--g:var(--g2);--g-on:var(--g2-on)}
.gi-chip.c3,.court-title.c3{--g:var(--g3);--g-on:var(--g3-on)}
.gi-chip.c4,.court-title.c4{--g:var(--g4);--g-on:var(--g4-on)}
.gi-chip.c5,.court-title.c5{--g:var(--g5);--g-on:var(--g5-on)}

/* ---------- Docket: this week, numbers, courtrooms ---------- */
.court-top{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px}
.week{display:grid;gap:14px}
.week-head{display:flex;justify-content:space-between;align-items:center;gap:6px 16px;flex-wrap:wrap}
.week-now{display:flex;align-items:center;font-weight:700}
.week-left{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.wk-days{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.wk-day{display:grid;justify-items:center;gap:2px;padding:10px 2px;border-radius:12px;background:var(--raised);border:2px solid transparent;min-width:0}
.wk-day.sA{background:color-mix(in srgb,var(--g2) 14%,var(--surface))}
.wk-day.sB{background:color-mix(in srgb,var(--g5) 14%,var(--surface))}
.wk-day.recess{background:var(--raised);color:var(--faint)}
.wk-day.today{border-color:var(--strong)}
.wk-dow{font-size:12px;font-weight:700;color:var(--muted)}
.wk-num{font-family:var(--font-display);font-weight:700;font-size:18px;font-variant-numeric:tabular-nums}
.wk-key{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--muted)}
.wk-key span{display:inline-flex;align-items:center;gap:6px}
.wk-key span::before{content:"";width:10px;height:10px;border-radius:3px}
.wk-key .sA::before{background:color-mix(in srgb,var(--g2) 40%,var(--surface))}
.wk-key .sB::before{background:color-mix(in srgb,var(--g5) 40%,var(--surface))}
.wk-key .recess::before{background:var(--line)}
.court-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cs{display:grid;align-content:center;gap:2px;padding:12px 14px;background:var(--raised);border-radius:var(--radius-row);min-width:0}
.cs b{font-family:var(--font-display);font-size:26px;line-height:32px;font-variant-numeric:tabular-nums}
.cs span{font-size:13px;font-weight:600;color:var(--muted)}

.summons{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;padding:16px 20px;background:var(--hero);color:var(--hero-ink);border-radius:var(--radius-panel)}
.summons p{min-width:0;flex:1 1 260px}

.court-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr));gap:10px}
.court-grid > li{min-width:0;display:grid}
.court-card{display:grid;grid-template-rows:auto 1fr auto;gap:10px;padding:14px;background:var(--raised);border:1px solid transparent;border-radius:var(--radius-panel);color:var(--text);text-decoration:none;min-width:0;transition:background-color 160ms ease,border-color 160ms ease,transform 200ms var(--ease-out)}
.court-card:hover{background:var(--hover);border-color:var(--line)}
.court-card:active{transform:scale(.98)}
.cc-head{display:flex;align-items:center;gap:8px;min-width:0}
.cc-name{font-weight:700;font-size:14px;min-width:0;overflow-wrap:anywhere}
.cc-case{display:grid;gap:3px;align-content:start;min-width:0}
.cc-case.none{color:var(--faint);font-size:13px}
.cc-label{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--warn)}
.cc-votes{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.cc-bar{flex:1;height:6px;border-radius:3px;background:var(--line);overflow:hidden;min-width:40px}
.cc-bar i{display:block;height:100%;background:var(--strong);border-radius:3px}
.cc-foot{font-size:12px;color:var(--faint);padding-top:8px;border-top:1px solid var(--line)}

/* ---------- Courtroom ---------- */
.back{justify-self:start;display:inline-flex;align-items:center;min-height:32px;margin:0;color:var(--muted);text-decoration:none;font-weight:600}
.back:hover{color:var(--text)}
.court-title{display:flex;align-items:center;gap:12px;min-width:0}
.court-title .gi-chip{min-width:44px;height:36px;border-radius:10px;font-size:13px}
.court-wrap .statline{margin-top:-8px}
.trial-row,.summons-row,.prob-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,300px);gap:14px 24px;align-items:center}
.tr-who{display:grid;gap:8px;justify-items:start;min-width:0}
.tr-who > .case-link{font-size:20px;line-height:26px}
.tr-meta{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.tr-side{display:grid;gap:10px;justify-items:stretch;min-width:0}
.tr-side .btn{justify-self:start}
.tr-when{font-size:14px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.docket,.verdicts,.summons-list,.prob-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.docket-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:6px 14px;align-items:center;padding:10px 14px;background:var(--raised);border-radius:var(--radius-row)}
.dk-n{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--surface);border:1px solid var(--line);font-family:var(--font-display);font-weight:800;font-size:13px}
.dk-who,.vr-who{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;min-width:0}
.dk-when{font-size:13px;color:var(--muted);text-align:right}
.verdict-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,190px) minmax(0,110px);gap:6px 14px;align-items:center;padding:10px 14px;background:var(--raised);border-radius:var(--radius-row)}
.vr-tally,.vr-when{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.vr-when{text-align:right}
.summons-row,.prob-row{padding:14px 16px;background:var(--raised);border-radius:var(--radius-panel)}
.summons-row .tr-who > .case-link,.prob-row .tr-who > .case-link{font-size:17px;line-height:23px}

/* ---------- Case file ---------- */
.case-head{display:grid;gap:10px;justify-items:start;min-width:0}
.tag-title{display:flex;align-items:center;gap:12px;font-size:30px;line-height:38px;max-width:100%}
.tag-title .wl{width:40px;height:40px;border-radius:11px;font-size:22px}
.js .tag-title .wl i{animation:l-shake 3.6s ease 1s infinite}
.case-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,400px);gap:16px;align-items:start}
.case-file{display:grid;gap:10px;align-content:start;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card);padding:var(--pad);box-shadow:var(--shadow-1);min-width:0}
.cf-h{font-family:var(--font-display);font-size:16px;line-height:22px;font-weight:700;margin-top:12px}
.cf-h:first-child{margin-top:0}
.case-file .chips{list-style:none;margin:0;padding:0}
.case-file .chip{white-space:normal;line-height:1.3;padding-block:4px}
.cf-evidence{font-size:14px;color:var(--muted)}
.cf-quote{margin:0;padding:14px 16px;background:var(--raised);border-left:4px solid var(--control);border-radius:0 var(--radius-row) var(--radius-row) 0;font-size:15px;line-height:24px;overflow-wrap:anywhere;white-space:pre-line;max-width:70ch}
.cf-quote.plan{border-left-color:var(--ok)}
.expunged-box{display:grid;gap:8px;padding:20px;border-radius:var(--radius-panel);background:var(--ok-tint);color:var(--text)}
.expunged-box h3{font-family:var(--font-display);font-size:19px;color:var(--ok)}

.case-side{display:grid;gap:16px;min-width:0}
.side-box{display:grid;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card);padding:20px;box-shadow:var(--shadow-1);min-width:0}
.side-box h3{font-family:var(--font-display);font-size:17px;line-height:24px;font-weight:700}
.jury-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.seats{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.seat{display:grid;justify-items:center;gap:1px;padding:8px 2px;border-radius:12px;background:var(--raised);border:1.5px dashed var(--control);text-align:center;min-width:0}
.seat-n{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--surface);border:1px solid var(--line);font-family:var(--font-display);font-weight:800;font-size:11px}
.seat-who{font-size:11px;font-weight:700;overflow-wrap:anywhere}
.seat-state{font-size:10px;color:var(--faint);line-height:1.2}
.seat.voted{border-style:solid;border-color:var(--strong);background:var(--surface)}
.seat.voted .seat-n{background:var(--strong);color:var(--on-strong);border-color:transparent}
.seat.absent{opacity:.6}
.seat.you{border-color:var(--primary);background:var(--game-sel);border-style:solid}
.seat.you .seat-n{background:var(--primary);color:var(--on-primary);border-color:transparent}
.jury-note{font-size:13px;color:var(--muted)}
.jury-note .countdown{font-weight:700;color:var(--text)}
.jury-verdict{font-size:14px;padding:12px 14px;border-radius:var(--radius-row)}
.jury-verdict.ok{background:var(--ok-tint)}
.jury-verdict.ok b{color:var(--ok)}
.jury-verdict.bad{background:var(--bad-tint)}
.jury-verdict.bad b{color:var(--bad)}

/* Vote meter: grant fills from the left, keep follows; the line marks 8 of 12 */
.meter{display:grid;gap:6px}
.meter-track{position:relative;display:flex;height:12px;border-radius:6px;background:var(--line);overflow:visible}
.meter-track i{display:block;height:100%}
.meter-track i:first-child{border-radius:6px 0 0 6px}
.m-grant{background:var(--strong)}
.meter.closed .m-grant{background:var(--ok)}
.meter.closed .m-keep{background:var(--bad)}
.m-mark{position:absolute;top:-4px;bottom:-4px;width:2px;margin-left:-1px;background:var(--text);border-radius:1px}
.meter-key{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 12px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.meter-key .k-grant{color:var(--ok);font-weight:700}
.meter-key .k-keep{color:var(--bad);font-weight:700;margin-right:auto}
.meter-key .k-need{font-weight:600}

/* Ballot */
.ballot{display:grid;gap:10px;padding:14px;border-radius:var(--radius-panel);background:var(--game-sel);border:1.5px solid var(--primary)}
.ballot-title{font-weight:700;font-size:14px}
.ballot-btns{display:flex;flex-wrap:wrap;gap:8px}
.ballot-btns .btn{flex:1 1 160px;white-space:normal;text-align:center;min-height:44px;padding-block:6px}
.btn-vote.grant{background:var(--ok);color:#fff}
.btn-vote.keep{background:var(--bad);color:#fff}
:root[data-theme="dark"] .btn-vote{color:#0D1426}
.btn-vote:hover{opacity:.9}
.ballot-done{font-size:14px;padding:12px 14px;border-radius:var(--radius-row);background:var(--raised)}

/* Probation */
.prog{height:10px;border-radius:5px;background:var(--line);overflow:hidden}
.prog i{display:block;height:100%;background:var(--ok);border-radius:5px}
.probation.failed .prog i{background:var(--bad)}
.prob-line{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.strikes b{color:var(--text)}
.strikes.has b{color:var(--bad)}
.proven{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.proven li{display:grid;gap:2px;padding:8px 12px;background:var(--bad-tint);border-radius:10px;font-size:13px;overflow-wrap:anywhere}
.prob-mid{display:grid;gap:8px;min-width:0}
.prob-row{grid-template-columns:minmax(0,1fr) minmax(0,260px) auto}

/* Repeat-offender tiers */
.tier{display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:0 10px 0 4px;border-radius:var(--radius-pill);font-size:12px;font-weight:700;white-space:nowrap}
.tier b{font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;padding:2px 7px;border-radius:var(--radius-pill)}
.tier.big{min-height:28px;font-size:13px}
.tier-1{background:var(--fame-tint);color:var(--fame-ink)}
.tier-1 b{background:var(--primary);color:var(--on-primary)}
.tier-2{background:var(--warn-tint);color:var(--warn)}
.tier-2 b{background:var(--warn);color:var(--surface)}
.tier-3{background:var(--strong);color:var(--on-strong)}
.tier-3 b{background:var(--shame);color:#fff}
:root[data-theme="dark"] .tier-3 b{color:#0D1426}
.tier-key{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tk{display:grid;gap:8px;justify-items:start;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel)}
.tk p{font-size:13px;color:var(--muted)}

/* How it works */
.rules-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rule{display:grid;grid-template-columns:40px minmax(0,1fr);gap:14px;align-items:start;padding:20px}
.rule-n{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--primary);color:var(--on-primary);font-family:var(--font-display);font-weight:800}
.rule h3{font-family:var(--font-display);font-size:16px;line-height:22px;margin-bottom:4px}
.rule p{color:var(--muted);font-size:14px}
.court-empty-page{display:grid;gap:12px;justify-items:start;padding:24px 0}

/* The appeal form sits above the cookie notice */
.court .sheet{z-index:80}

/* ---------- Responsive ---------- */
@media (max-width: 1000px){
  .case-layout{grid-template-columns:minmax(0,1fr)}
  .verdict-row{grid-template-columns:minmax(0,1fr) auto;}
  .vr-when{text-align:left}
}
@media (max-width: 860px){
  .court-top{grid-template-columns:minmax(0,1fr)}
  .court-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .trial-row,.summons-row,.prob-row{grid-template-columns:minmax(0,1fr)}
  .rules-list,.tier-key{grid-template-columns:minmax(0,1fr)}
  .docket-row{grid-template-columns:36px minmax(0,1fr)}
  .dk-when{grid-column:2;text-align:left}
  .prob-row .demo-btn{justify-self:start}
}
@media (max-width: 600px){
  .court-wrap{padding-top:18px;gap:14px}
  .court-tabs{justify-self:stretch}
  .court-tabs a{flex:1 1 auto;justify-content:center;padding:0 10px}
  .court-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .court-wrap .card,.case-file{padding:16px}
  .side-box{padding:16px}
  .tag-title{font-size:24px;line-height:30px}
  .view-title{font-size:22px;line-height:30px}
  .wk-days{gap:4px}
  .wk-day{padding:8px 0}
  .wk-num{font-size:15px}
  .seats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .verdict-row{grid-template-columns:minmax(0,1fr)}
  .verdict-row .verdict{justify-self:start}
  .demo-open{margin-left:0}
}
@media (pointer: coarse){
  .court-tabs a,.back{min-height:44px}
}
@media (prefers-reduced-motion: reduce){
  .js .tag-title .wl i{animation:none}
  .court-card:active{transform:none}
}

/* =====================================================================
   Arcade courtroom (Tasks 1 and 2): the stage header with Judge Chihuahua, wooden bench
   section tabs, hard-shadow trial cards, the verdict seal and the review history.
   ===================================================================== */
.court-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,340px);align-items:end;gap:8px 24px;min-height:320px;padding:34px 34px 0;color:#fff;border:3px solid #1C1820;border-radius:24px;box-shadow:0 8px 0 #1C1820;
  background:url("img/paws-dark.svg") 0 0/180px 180px,repeating-linear-gradient(90deg,rgba(0,0,0,.14) 0 2px,transparent 2px 56px),linear-gradient(180deg,#1C1740,#2A1F5C 62%,#3B2A6B)}
.court-hero > *{min-width:0}
.court-head-text{display:grid;gap:12px;align-content:center;align-self:center;padding-bottom:34px;justify-items:start}
.court-eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#FFB3BB}
.court-hero h1{font-family:var(--font-display);font-weight:800;font-size:clamp(34px,5.4vw,58px);line-height:1.05;color:#FFD32A;text-shadow:0 3px 0 #B3172B,0 7px 0 #1C1820,0 0 26px rgba(255,211,42,.45)}
.court-hero .lede{color:#E6E2F5;font-size:16px;line-height:25px;max-width:52ch}
.court-hero .btn{min-height:48px;padding:0 26px;margin-top:4px;box-shadow:0 4px 0 #1C1820;border-color:#1C1820}
.court-hero .judge{display:block;position:relative;z-index:1;width:100%;max-width:340px;height:auto;justify-self:end;margin-bottom:-2px}
.stage{position:absolute;inset:0;z-index:-1;pointer-events:none}
.stage .floor{position:absolute;left:0;right:0;bottom:0;height:34%;background:linear-gradient(rgba(255,211,42,.22) 2px,transparent 2px) 0 0/100% 26px,linear-gradient(90deg,rgba(255,211,42,.22) 2px,transparent 2px) 0 0/54px 100%,linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.35));transform:perspective(220px) rotateX(48deg);transform-origin:bottom}
.stage .beam{position:absolute;top:0;width:230px;height:100%;background:linear-gradient(180deg,rgba(255,232,150,.32),rgba(255,232,150,0) 85%);clip-path:polygon(44% 0,56% 0,100% 100%,0 100%);transform-origin:50% 0;animation:beam 5s ease-in-out infinite}
.stage .b1{left:38%}
.stage .b2{left:62%;animation-delay:-2.4s}
.stage .lamp{position:absolute;top:0;width:4px;height:46px;background:#1C1820;transform-origin:50% 0;animation:sway 5s ease-in-out infinite}
.stage .lamp::after{content:"";position:absolute;left:-17px;bottom:-14px;width:38px;height:22px;border-radius:19px 19px 3px 3px;background:#FFD32A;border:3px solid #1C1820;box-sizing:border-box}
.stage .l1{left:calc(38% + 113px)}
.stage .l2{left:calc(62% + 113px);animation-delay:-2.4s}
@keyframes sway{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
@keyframes beam{0%,100%{opacity:.75;transform:rotate(-3deg)}50%{opacity:1;transform:rotate(3deg)}}

/* wooden bench tabs and section ribbons */
.court-tabs{background:linear-gradient(#B47A3E,#8A5A2B);border:3px solid #1C1820;box-shadow:0 5px 0 #1C1820}
.court-tabs a{color:#FFE9B0;text-shadow:0 1px 0 rgba(0,0,0,.4)}
.court-tabs a:hover{background:rgba(0,0,0,.18);color:#fff}
.court-tabs a[aria-current="page"]{background:#FFD32A;color:#121A2E;text-shadow:none;box-shadow:0 2px 0 #1C1820}
.court-sec .section-h h3{display:inline-block;padding:4px 14px;border:3px solid #1C1820;border-radius:10px;background:linear-gradient(#B47A3E,#8A5A2B);color:#FFE9B0;font-size:15px;line-height:22px;box-shadow:0 3px 0 #1C1820;transform:rotate(-1deg);text-shadow:0 1px 0 rgba(0,0,0,.4)}
.court .card{border-color:#1C1820;border-width:2px;box-shadow:0 4px 0 #1C1820}
:root[data-theme="dark"] .court .card{border-color:#0A0D18;box-shadow:0 4px 0 #0A0D18}

/* trial cards: chunky, with a hard shadow that lifts on hover */
.court-card{border:2px solid #1C1820;background:var(--surface);box-shadow:0 4px 0 #1C1820;transition:transform 160ms var(--ease-out),box-shadow 160ms var(--ease-out),background-color 160ms ease}
.court-card:hover{transform:translateY(-3px);box-shadow:0 7px 0 #1C1820;background:var(--game-sel)}
.court-card:active{transform:translateY(2px);box-shadow:0 1px 0 #1C1820}
.court-card .cc-label{display:inline-block;justify-self:start;padding:1px 8px;border-radius:var(--radius-pill);background:var(--warn);color:var(--surface)}
.case-file,.side-box{border:2px solid #1C1820;box-shadow:0 4px 0 #1C1820}
.seat{border-radius:10px;box-shadow:0 2px 0 rgba(0,0,0,.18)}

/* verdict seal, stamped onto decided cases */
.case-head{position:relative}
.case-head:has(> .seal){padding-right:144px}
.seal{position:absolute;right:6px;top:-6px;display:grid;place-content:center;gap:0;width:120px;height:120px;border-radius:50%;text-align:center;rotate:-12deg;border:4px double currentColor;color:var(--ok);background:color-mix(in srgb,currentColor 8%,var(--surface));box-shadow:0 0 0 3px var(--surface),0 4px 0 3px #1C1820;font-family:var(--font-display)}
.seal.bad{color:var(--bad)}
.seal.gold{color:var(--fame-ink)}
.seal-word{font-size:11px;line-height:16px;font-weight:800;letter-spacing:.02em}
.seal-sub{max-width:72px;margin-inline:auto;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.85}
@media (prefers-reduced-motion:no-preference){
  .seal{animation:stamp-in 520ms var(--ease-out) both 200ms}
  @keyframes stamp-in{0%{opacity:0;transform:scale(2.2) rotate(-14deg)}70%{opacity:1;transform:scale(.92)}100%{opacity:1;transform:none}}
}

/* ---------- Review history: scroll through everything before voting ---------- */
.case-main{display:grid;gap:16px;align-content:start;min-width:0}
.reviews{display:grid;gap:12px}
.reviews .section-h{margin:0}
.reviews .disclaimer{margin:0}
.rev-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px 22px;align-items:center;padding:14px;background:var(--raised);border-radius:var(--radius-panel)}
.rev-score{display:grid;justify-items:center;gap:2px;min-width:96px}
.rev-score b{font-family:var(--font-display);font-size:38px;line-height:42px;font-variant-numeric:tabular-nums}
.rev-score span:last-child{font-size:12px;color:var(--muted)}
.rev-stats{grid-column:1 / -1;list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--muted)}
.rev-stats b{color:var(--text);font-variant-numeric:tabular-nums}
.rv-stars{display:inline-block;color:var(--star);letter-spacing:1px;white-space:nowrap}
.rv-stars i{font-style:normal;color:var(--star-off)}
.rev-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px}
.rev-filters{display:flex;flex-wrap:wrap;gap:6px}
.rev-filter{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 14px;border:1.5px solid var(--control);border-radius:var(--radius-pill);background:var(--surface);font-weight:700;font-size:13px;color:var(--text)}
.rev-filter .n{min-width:22px;height:20px;display:inline-grid;place-items:center;padding:0 6px;border-radius:var(--radius-pill);background:var(--raised);font-size:11px;font-variant-numeric:tabular-nums}
.rev-filter[aria-pressed="true"]{background:var(--strong);border-color:var(--strong);color:var(--on-strong)}
.rev-filter[aria-pressed="true"] .n{background:var(--primary);color:var(--on-primary)}
.rev-tools select{width:auto;min-width:170px;min-height:36px;padding-block:4px;font-size:13px}
.rev-summary{font-size:12px;color:var(--faint)}
.rev-list{list-style:none;margin:0;padding:4px 6px 4px 0;display:grid;grid-auto-rows:max-content;align-content:start;gap:10px;max-height:520px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border-radius:var(--radius-row)}
.rev-list:focus-visible{outline:2px solid var(--ring);outline-offset:3px}
.rev{--band:var(--control);position:relative;display:grid;gap:8px;padding:12px 14px 12px 18px;background:var(--raised);border-radius:var(--radius-panel);overflow:hidden;min-width:0}
.rev::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--band)}
.rev.neg{--band:var(--bad)}
.rev.pos{--band:var(--ok)}
.rev-top{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}
.rev-by{font-weight:700;font-size:13px;overflow-wrap:anywhere}
.rev-lv{margin-left:8px;font-size:11px;font-weight:700;color:var(--faint)}
.rev-time{margin-left:auto;font-size:12px;color:var(--faint);white-space:nowrap}
.rev .chips{list-style:none;margin:0;padding:0}
.rev-text{font-size:14px;line-height:22px;overflow-wrap:anywhere}
.rev .proof-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.proof-chip{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 12px;border:1.5px solid var(--g2);border-radius:var(--radius-pill);background:color-mix(in srgb,var(--g2) 10%,var(--surface));color:var(--text);font-size:12px;font-weight:700;overflow-wrap:anywhere;max-width:100%}
.proof-chip[aria-expanded="true"]{background:var(--g2);color:var(--g2-on)}
.proof-slot:empty{display:none}
.proof-open{display:grid;gap:8px;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-row);font-size:12px;color:var(--muted)}
.proof-frame{display:grid;place-items:center;height:150px;border-radius:10px;background:repeating-linear-gradient(45deg,#1D1747 0 12px,#251C57 12px 24px);color:#FFD32A;font-size:34px}
.proof-frame.clip span{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:rgba(255,211,42,.18);border:3px solid #FFD32A;padding-left:4px;font-size:22px}

@media (max-width:860px){
  .court-hero{grid-template-columns:minmax(0,1fr);padding:26px 20px 0;min-height:0}
  .court-head-text{padding-bottom:0}
  .court-hero .judge{justify-self:center;max-width:300px;margin-top:6px}
  .rev-head{grid-template-columns:minmax(0,1fr)}
  .seal{position:static;justify-self:start;rotate:-6deg;width:108px;height:108px;margin-top:4px}
  .seal-word{font-size:10px;line-height:14px}
  .case-head:has(> .seal){padding-right:0}
}
@media (max-width:600px){
  .rev-list{max-height:440px}
  .rev-tools select{width:100%}
  .court .card{box-shadow:0 3px 0 #1C1820}
}
@media (prefers-reduced-motion:reduce){
  .stage .beam,.stage .lamp{animation:none}
  .court-card:hover{transform:none}
}
