/* JUSTICE WISE GH - design system. All colours come from tokens so every page re-themes instantly. */
:root {
  --scale: 1; --r: 16px; --r-sm: 10px; --maxw: 1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html[data-theme="dark-gold"], html:not([data-theme]) {
  --bg: #0a1020; --bg2: #0e1730; --surface: #121b36; --surface2: #19244a; --text: #f1f3f9; --muted: #aab4cf;
  --accent: #d4af37; --accent2: #f0d36b; --accent-ink: #17120a; --accent-text: #e6c250; --border: rgba(255,255,255,.11);
  --good: #52d6a0; --bad: #ff8f8f; --focus: #f0d36b; --shadow: 0 10px 30px rgba(0,0,0,.35); --glow: 0 0 0 rgba(0,0,0,0);
  --hero: radial-gradient(1200px 500px at 85% -10%, rgba(212,175,55,.20), transparent 60%), linear-gradient(160deg, #0f1a3a, #0a1020 70%);
  --av-bg1: #2a3868; --av-bg2: #0f1632; color-scheme: dark;
}
html[data-theme="white"] {
  --bg: #f5f6fa; --bg2: #eceff6; --surface: #ffffff; --surface2: #f1f3f9; --text: #0f172a; --muted: #46516b;
  --accent: #c79a14; --accent2: #e0b93b; --accent-ink: #1a1400; --accent-text: #765600; --border: rgba(15,23,42,.14);
  --good: #0b7a4f; --bad: #b42323; --focus: #1a3fbf; --shadow: 0 8px 24px rgba(15,23,42,.10); --glow: 0 0 0 rgba(0,0,0,0);
  --hero: radial-gradient(900px 420px at 90% -20%, rgba(199,154,20,.22), transparent 60%), linear-gradient(160deg, #ffffff, #eef1f8 80%);
  --av-bg1: #fff3c9; --av-bg2: #e3c25a; color-scheme: light;
}
html[data-theme="neon"] {
  --bg: #05050f; --bg2: #0a0a1c; --surface: #0f0f26; --surface2: #181838; --text: #f4f4ff; --muted: #b6b6de;
  --accent: #22e6ff; --accent2: #ff3ea5; --accent-ink: #021016; --accent-text: #5cf0ff; --border: rgba(92,240,255,.28);
  --good: #5dffb0; --bad: #ff7aa8; --focus: #ff3ea5; --shadow: 0 0 24px rgba(34,230,255,.12); --glow: 0 0 18px rgba(34,230,255,.45);
  --hero: radial-gradient(900px 480px at 90% -10%, rgba(255,62,165,.28), transparent 60%), radial-gradient(800px 400px at 0% 0%, rgba(34,230,255,.20), transparent 60%), #05050f;
  --av-bg1: #3b1c6b; --av-bg2: #080820; color-scheme: dark;
}
html[data-theme="gold"] {
  --bg: #f4e7b8; --bg2: #eed98d; --surface: #fbf1cf; --surface2: #f6e3a0; --text: #1c1403; --muted: #4a3a0c;
  --accent: #0f1c3f; --accent2: #1d2f63; --accent-ink: #ffffff; --accent-text: #5c4300; --border: rgba(60,40,0,.28);
  --good: #0b6b44; --bad: #a21d1d; --focus: #0f1c3f; --shadow: 0 8px 22px rgba(92,67,0,.20); --glow: 0 0 0 rgba(0,0,0,0);
  --hero: radial-gradient(900px 420px at 88% -20%, rgba(255,255,255,.45), transparent 60%), linear-gradient(160deg, #f7ecc4, #e9d07a 85%);
  --av-bg1: #fff1b8; --av-bg2: #d6ac3a; color-scheme: light;
}

* { box-sizing: border-box; }
html { font-size: calc(16px * var(--scale)); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.6; min-height: 100vh; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(1.9rem, 4vw + .6rem, 3rem); } h2 { font-size: 1.5rem; } h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; } a { color: var(--accent-text); } a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; }
.gold { color: var(--accent-text); }

/* Shell */
.app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.08rem; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--accent-ink); box-shadow: var(--glow); }
.brand small { display: block; font-family: var(--sans); font-weight: 500; font-size: .66rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: -2px; }
.spacer { flex: 1; }
.iconbtn { position: relative; display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.1rem; text-decoration: none; }
.iconbtn:hover { border-color: var(--accent); }
.count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent2); color: var(--accent-ink); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.sidebar { display: none; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a[aria-current="page"] { background: var(--surface2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.nav .ico { width: 1.5rem; text-align: center; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(6, 1fr); background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0 .45rem; font-size: .7rem; color: var(--muted); text-decoration: none; min-height: 56px; justify-content: center; }
.tabbar a[aria-current="page"] { color: var(--accent-text); font-weight: 700; }
.tabbar .ico { font-size: 1.25rem; line-height: 1; }
main { padding: 1.1rem 1rem 6rem; max-width: var(--maxw); width: 100%; margin: 0 auto; outline: none; }
.banner { margin: 0 0 1rem; padding: .7rem 1rem; border-radius: var(--r-sm); background: var(--surface2); border: 1px solid var(--border); font-size: .92rem; }
.banner.warn { border-color: var(--accent); }
@media (min-width: 960px) {
  .app { grid-template-columns: 272px minmax(0, 1fr); }
  .sidebar { display: block; position: sticky; top: 0; align-self: start; height: 100vh; overflow: auto; padding: 1rem .8rem; border-right: 1px solid var(--border); background: var(--bg2); }
  .sidebar .brand { padding: .4rem .6rem 1rem; }
  .tabbar { display: none; } main { padding-bottom: 3rem; }
  .topbar .brand { display: none; }
}

/* Components */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.card.link { display: block; color: inherit; text-decoration: none; transition: transform .18s, border-color .18s; }
.card.link:hover { transform: translateY(-2px); border-color: var(--accent); }
.grid { display: grid; gap: 1rem; } .g2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .g3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } .g4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--accent-ink); border-color: transparent; box-shadow: var(--glow); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.sm { min-height: 36px; padding: .3rem .8rem; font-size: .9rem; } .btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; font-size: .8rem; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); }
.chip.gold { color: var(--accent-text); border-color: var(--accent); }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.filters button { min-height: 40px; padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
.progress { height: 10px; background: var(--surface2); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; transition: width .5s; }
.ring-bg { fill: none; stroke: var(--surface2); stroke-width: 8; } .ring-fg { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; transition: stroke-dasharray .6s; } .ring-text { fill: var(--text); font: 700 17px var(--sans); }
.kpi { text-align: center; } .kpi b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--accent-text); line-height: 1.1; } .kpi span { color: var(--muted); font-size: .85rem; }
.hero { background: var(--hero); border: 1px solid var(--border); border-radius: 24px; padding: clamp(1.4rem, 4vw, 3rem); margin-bottom: 1.25rem; position: relative; overflow: hidden; }
.hero h1 { max-width: 16ch; } .hero p.lead { font-size: 1.15rem; max-width: 56ch; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--accent-text); font-weight: 700; margin-bottom: .6rem; }
.pagehead { margin-bottom: 1.1rem; } .pagehead p { color: var(--muted); max-width: 70ch; margin: 0; }
.prose { max-width: 70ch; font-size: 1.04rem; } .prose p { margin-bottom: 1.05em; }
.prose-wide { max-width: 70ch; }
details { border: 1px solid var(--border); border-radius: var(--r-sm); padding: .6rem .9rem; background: var(--surface); } details + details { margin-top: .6rem; } summary { cursor: pointer; font-weight: 600; min-height: 32px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; } th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; } th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.empty { text-align: center; padding: 2.2rem 1rem; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--r); } .empty .big { font-size: 2.2rem; }
.loader { display: grid; place-items: center; padding: 3rem; } .spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--surface2); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { border: 1px solid var(--bad); background: var(--surface); border-radius: var(--r); padding: 1rem; }

/* Forms */
label { font-weight: 600; display: block; margin-bottom: .3rem; }
input[type=text], input[type=search], input[type=time], select, textarea { width: 100%; min-height: 44px; padding: .55rem .8rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
textarea { min-height: 96px; resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--accent); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; } .check input { margin-top: .2rem; flex: none; }
.field { margin-bottom: 1rem; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.switch:last-child { border-bottom: 0; }

/* Lessons & quiz */
.lessoncard h3 { margin-bottom: .25rem; } .lessoncard .meta { display: flex; gap: .4rem; flex-wrap: wrap; margin: .4rem 0 .7rem; }
.done-mark { color: var(--good); font-weight: 700; }
.provision { display: flex; gap: .6rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid var(--border); } .provision b { min-width: 7.5rem; color: var(--accent-text); }
.callout { border-left: 4px solid var(--accent); background: var(--surface2); padding: .8rem 1rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.sourcebox { border: 1px dashed var(--accent); border-radius: var(--r-sm); padding: .7rem 1rem; background: var(--surface); font-size: .92rem; }
.opt { display: flex; gap: .7rem; width: 100%; text-align: left; padding: .8rem 1rem; margin-bottom: .6rem; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; min-height: 52px; align-items: center; }
.opt:hover:not([disabled]) { border-color: var(--accent); } .opt[disabled] { cursor: default; }
.opt.right { border-color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--surface)); } .opt.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--surface)); }
.opt .k { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); font-weight: 700; font-size: .85rem; }
.feedback { margin-top: .8rem; padding: .8rem 1rem; border-radius: var(--r-sm); background: var(--surface2); border: 1px solid var(--border); }
.feedback.good b { color: var(--good); } .feedback.bad b { color: var(--bad); }
.scorebig { font-family: var(--serif); font-size: 3rem; color: var(--accent-text); }
.rank { font-family: var(--serif); font-size: 1.4rem; color: var(--accent-text); min-width: 2rem; }
.medal { font-size: 2rem; } .locked { filter: grayscale(1); opacity: .55; }
.badge-card { text-align: center; } .badge-card .medal { display: block; margin-bottom: .3rem; }

/* Avatar creator */
.avatar { display: block; border-radius: 50%; overflow: hidden; } .avatar.sq { border-radius: 24px; }
.stage { display: grid; place-items: center; padding: 1rem; background: var(--surface2); border-radius: var(--r); border: 1px solid var(--border); position: sticky; top: 70px; }
.creator { display: grid; gap: 1rem; } @media (min-width: 820px) { .creator { grid-template-columns: 300px 1fr; align-items: start; } }
.swatches { display: flex; gap: .5rem; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; box-shadow: 0 0 0 1px var(--border); }
.swatch[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.optbtn { min-height: 40px; padding: .3rem .8rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.optbtn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; border-color: transparent; }
.optbtn[aria-disabled="true"] { opacity: .55; border-style: dashed; }

/* Themes */
.themes { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.themecard { text-align: left; padding: .7rem; border-radius: var(--r); border: 2px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.themecard[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.preview { height: 74px; border-radius: 10px; display: flex; gap: 6px; padding: 8px; margin-bottom: .5rem; border: 1px solid rgba(128,128,128,.3); }
.preview i { flex: 1; border-radius: 6px; }
.tick { float: right; color: var(--accent-text); font-weight: 700; }

/* Notifications */
.notif { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: start; padding: .9rem 1rem; } .notif.unread { border-color: var(--accent); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent2); margin-top: .5rem; } .dot.off { background: transparent; border: 1px solid var(--border); }

/* Constitution */
.chapter { display: grid; grid-template-columns: 3rem 1fr auto; gap: .7rem; align-items: center; padding: .7rem 1rem; }
.chnum { font-family: var(--serif); font-size: 1.3rem; color: var(--accent-text); text-align: center; }
.textblock { padding: .8rem 1rem; border-left: 3px solid var(--accent); background: var(--surface); margin-bottom: .6rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; white-space: pre-wrap; overflow-wrap: anywhere; }

footer.site { border-top: 1px solid var(--border); margin-top: 3rem; padding: 1.6rem 0 0; color: var(--muted); font-size: .9rem; }
footer.site nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }

/* Toasts, dialog, celebration */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; z-index: 60; display: grid; gap: .5rem; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 960px) { #toasts { bottom: 24px; } }
.toast { pointer-events: auto; background: var(--surface2); color: var(--text); border: 1px solid var(--accent); border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--shadow), var(--glow); animation: pop .28s ease-out; }
@keyframes pop { from { transform: translateY(10px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--accent); border-radius: 18px; padding: 1.3rem; max-width: min(92vw, 480px); box-shadow: var(--shadow); } dialog::backdrop { background: rgba(0,0,0,.55); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .9; } }
.fade { animation: fade .3s ease-out; } @keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } .confetti { display: none; } }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html[data-motion="reduce"] .confetti { display: none; }
@media print { .sidebar, .topbar, .tabbar, #toasts { display: none !important; } }

.texthead { margin: 1.2rem 0 .5rem; font-size: 1.05rem; color: var(--accent-text); letter-spacing: .02em; }
.arthead { font-weight: 700; margin-bottom: .3rem; }

/* ======================= I AM A MINI LAWYER: lobby, briefing and the 3D courtroom ======================= */
.minilawyer { margin: 0 0 1.5rem; border-color: var(--accent); background: linear-gradient(135deg, var(--surface), var(--surface2)); }
.ml-ico { font-size: 2.6rem; }
.rolecard { display: flex; gap: 1rem; align-items: center; }
.roleav { flex: none; width: 84px; height: 84px; border-radius: 16px; background: var(--surface2); overflow: hidden; }
.stack { display: grid; gap: .7rem; }
.reclist { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .4rem; }
.reclist li { padding: .5rem .7rem; border-radius: 10px; background: var(--surface2); border-left: 4px solid var(--accent); font-size: .92rem; }
.reclist li.b { border-left-color: #ff3ea5; } .reclist li.a { border-left-color: #22e6ff; }
.reclist .dots { color: var(--accent); letter-spacing: 1px; font-size: .7rem; }
.tally { display: flex; height: 30px; border-radius: 99px; overflow: hidden; border: 1px solid var(--border); margin: .6rem 0; font-size: .78rem; font-weight: 700; }
.tally .ta { background: #0e7490; color: #fff; padding: .35rem .6rem; white-space: nowrap; overflow: hidden; } .tally .tb { background: #be185d; color: #fff; padding: .35rem .6rem; white-space: nowrap; overflow: hidden; text-align: right; }
.transcript { max-height: 40vh; overflow: auto; font-size: .9rem; } .transcript p { margin: .3rem 0; }

@property --ry { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --rx { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --tx { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --ty { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --tz { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --cz { syntax: '<length>'; inherits: true; initial-value: 0px; }

body:has(.cr) .tabbar, body:has(.cr) .topbar, body:has(.cr) footer.site { display: none; }
.cr { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #07080f; color: #f1f3f9; }
.cr-hud { flex-wrap: wrap; display: flex; align-items: center; gap: .35rem; padding: calc(.4rem + env(safe-area-inset-top)) .5rem .4rem; background: linear-gradient(#000a, transparent); flex: none; z-index: 3; }
.cr-hud .iconbtn { min-width: 38px; height: 38px; background: #ffffff18; color: #fff; border-color: #ffffff30; font-size: 1rem; }
.cr-title { order: 9; flex: 1 0 100%; min-width: 0; line-height: 1.15; display: flex; gap: .5rem; align-items: baseline; } .cr-score { margin-left: auto; } .cr-title b { display: block; flex: 0 1 auto; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cr-title small { color: #c8d0e8; font-size: .72rem; }
.cr-score { background: #ffffff18; color: #fff; border-color: #ffffff30; }
.cr-stage { position: relative; flex: 1; min-height: 130px; overflow: hidden; touch-action: none; cursor: grab; background: radial-gradient(ellipse at 50% 30%, #3a2a1a, #120d08 70%); }
.cr-stage.gavel { animation: crshake .5s; }
@keyframes crshake { 0%,100% { transform: none; } 15% { transform: translateY(5px); } 35% { transform: translateY(-3px); } 55% { transform: translateY(3px); } 75% { transform: translateY(-1px); } }
.persp { position: absolute; inset: 0; perspective: 820px; perspective-origin: 50% 40%; }
.world { position: absolute; left: 50%; top: 52%; width: 0; height: 0; transform-style: preserve-3d;
  transform: translateZ(var(--cz)) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(var(--tx), var(--ty), var(--tz));
  transition: --ry 1.1s cubic-bezier(.3,.7,.2,1), --rx 1.1s cubic-bezier(.3,.7,.2,1), --tx 1.1s cubic-bezier(.3,.7,.2,1), --ty 1.1s cubic-bezier(.3,.7,.2,1), --tz 1.1s cubic-bezier(.3,.7,.2,1), --cz 1.1s cubic-bezier(.3,.7,.2,1); }
.world.drag { transition: none; }
.world > * { position: absolute; transform-style: preserve-3d; }
.floor { width: 1600px; height: 1000px; left: -800px; top: 120px; transform-origin: 50% 0; transform: translateZ(-420px) rotateX(90deg); background:
  repeating-linear-gradient(90deg, #0003 0 2px, transparent 2px 70px), repeating-linear-gradient(0deg, #0003 0 2px, transparent 2px 70px), linear-gradient(#6b4a2b, #3a2614); }
.wall { background: linear-gradient(#5b3d22, #2a1a0d); }
.wall.back { width: 1400px; height: 480px; left: -700px; top: -360px; transform: translateZ(-420px); background:
  repeating-linear-gradient(90deg, #0004 0 3px, transparent 3px 110px), linear-gradient(#6a4727, #2c1b0d); display: grid; place-items: center; }
.crest { font-size: 120px; color: #d4af37; text-shadow: 0 0 30px #d4af3788; margin-top: -100px; }
.cr-motto { position: absolute; top: 250px; font: 700 20px/1 Georgia, serif; letter-spacing: .5em; color: #d4af37bb; }
.wall.left, .wall.right { width: 900px; height: 480px; top: -360px; }
.wall.left { left: -700px; transform-origin: 0 50%; transform: translateZ(-420px) rotateY(-90deg); }
.wall.right { left: 700px; transform-origin: 0 50%; transform: translateZ(-420px) rotateY(-90deg); background: linear-gradient(#4a3019, #22150a); }
.ceil { width: 1400px; height: 900px; left: -700px; top: -360px; transform-origin: 50% 0; transform: translateZ(480px) rotateX(-90deg); background: #1b120a; }
.lamp { width: 90px; height: 90px; left: -45px; top: -45px; border-radius: 50%; background: radial-gradient(#fff6c8, #ffd36b88 40%, transparent 70%); }
.b { --w: 100px; --h: 50px; --d: 40px; width: var(--w); height: var(--h); left: calc(var(--w) / -2); top: 0; transform-style: preserve-3d; }
.b > i { position: absolute; display: block; backface-visibility: hidden; }
.b .f { width: var(--w); height: var(--h); transform: translateZ(calc(var(--d) / 2)); background: linear-gradient(#a9753f, #7a4f27); box-shadow: inset 0 0 0 3px #0003; }
.b .k { width: var(--w); height: var(--h); transform: translateZ(calc(var(--d) / -2)) rotateY(180deg); background: #4a2f16; }
.b .t { width: var(--w); height: var(--d); top: calc(var(--d) / -2); transform: rotateX(90deg); background: linear-gradient(#c58d52, #a9753f); }
.b .l { width: var(--d); height: var(--h); left: calc(var(--d) / -2); transform: rotateY(-90deg); background: #6a4423; }
.b .r { width: var(--d); height: var(--h); right: calc(var(--d) / -2); transform: rotateY(90deg); background: #6a4423; }
.b.bench .f { background: repeating-linear-gradient(90deg, #0003 0 2px, transparent 2px 38px), linear-gradient(#9c6a36, #6a4423); }
.b.plat .f, .b.plat .t { background: #4a3019; } .b.rail .f { background: linear-gradient(#8a5a2d, #5e3c1d); }
.vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 55%, #000a 100%); }
.flash { position: absolute; inset: 0; pointer-events: none; }
.cr-hint { position: absolute; left: 50%; top: 92px; white-space: nowrap; font-size: .75rem; transform: translateX(-50%); padding: .3rem .8rem; border-radius: 99px; background: #000a; color: #fff; transition: opacity .6s; pointer-events: none; z-index: 4; }
.cr-ui { flex: none; max-height: 56vh; overflow: auto; padding: .75rem .9rem calc(.8rem + env(safe-area-inset-bottom)); background: linear-gradient(#10162b, #0a0e1d); border-top: 2px solid var(--accent, #d4af37); z-index: 3; }
.cr-speaker { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; } .cr-speaker small { color: #aab4cf; }
.pill { display: inline-block; padding: .15rem .65rem; border-radius: 99px; background: #26325c; font-weight: 700; font-size: .85rem; }
.pill.me { background: var(--accent, #d4af37); color: #111; } .pill.narr { background: #3a3f55; } .pill.good { background: #14804a; } .pill.mid { background: #9a6b0c; } .pill.bad { background: #a3262a; }
.cr-text { font-size: 1.02rem; line-height: 1.5; } .cr-text.narr { font-style: italic; color: #d0d8f0; } .cr-text.prompt { font-weight: 600; }
.cr-text.tipbox { background: #ffffff12; border-radius: 10px; padding: .6rem .75rem; }
.cr-chips { display: grid; gap: .3rem; margin-top: .5rem; } .rchip { font-size: .82rem; padding: .35rem .6rem; border-radius: 10px; background: #ffffff14; border-left: 4px solid var(--accent, #d4af37); }
.rchip.a { border-left-color: #22e6ff; } .rchip.b { border-left-color: #ff3ea5; }
.cr-actions { display: grid; gap: .5rem; margin-top: .7rem; }
.cr-opt { justify-content: flex-start; text-align: left; align-items: flex-start; gap: .7rem; padding: .65rem .8rem; background: #1b2650; color: #fff; border-color: #ffffff30; line-height: 1.35; font-weight: 500; }
.cr-opt .n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent, #d4af37); color: #111; font-weight: 800; font-size: .8rem; }
.cr-skip { background: transparent; color: #c8d0e8; border-color: #ffffff22; }
.cr-end { position: absolute; inset: 0; z-index: 8; overflow: auto; background: #070a16f2; } .cr-endin { max-width: 640px; margin: 0 auto; padding: calc(1.2rem + env(safe-area-inset-top)) 1rem 1rem; }
.cr-end .card, .cr-end .callout { color: var(--text); }
.rank { display: inline-block; padding: .3rem 1rem; border-radius: 99px; background: var(--accent, #d4af37); color: #111; font-weight: 800; }
.skill { display: grid; grid-template-columns: 8.5rem 1fr 3rem; align-items: center; gap: .6rem; margin: .4rem 0; font-size: .9rem; }
.callout.good { border-color: #14804a; }
@media (min-width: 900px) { .cr { left: 240px; } }
@media (prefers-reduced-motion: reduce) { .world { transition: none; } .actor.talk .bust, .cr-stage.gavel { animation: none; } }
:root[data-motion="reduce"] .world { transition: none; } :root[data-motion="reduce"] .actor.talk .bust, :root[data-motion="reduce"] .cr-stage.gavel { animation: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- full-body characters, walking witnesses, courtroom furniture ---- */
@property --ax { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --ay { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --az { syntax: '<length>'; inherits: false; initial-value: 0px; }
.actor { width: 112px; height: 250px; left: -56px; top: -250px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; pointer-events: none;
  transform: translate3d(var(--ax), var(--ay), var(--az)) rotateY(calc(var(--ry) * -1)) rotateX(calc(var(--rx) * -1)); transform-origin: 50% 100%;
  transition: --ax 1.4s ease-in-out, --az 1.4s ease-in-out, --ay 1.4s ease-in-out; }
.actor .fig { line-height: 0; filter: drop-shadow(0 5px 5px #0008); transition: filter .3s; }
.actor .fig svg { display: block; }
.actor .tag { order: -1; margin-bottom: 3px; white-space: nowrap; font: 700 9px/1 var(--sans, sans-serif); padding: 3px 7px; border-radius: 99px; background: #000b; color: #fff; }
.actor.me .tag { background: var(--accent, #d4af37); color: #111; }
.actor.crowd { width: 66px; height: 140px; left: -33px; top: -140px; } .actor.crowd .tag { display: none; } .actor.crowd .fig { filter: brightness(.7); }
.actor.talk .fig { filter: drop-shadow(0 0 12px #ffd36bcc); animation: crtalk .5s ease-in-out infinite alternate; }
.actor.talk .arm.r { animation: crarm .55s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 5%; }
.actor.walking .fig { animation: crwalk .38s ease-in-out infinite alternate; }
@keyframes crtalk { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes crarm { from { transform: rotate(0deg); } to { transform: rotate(-24deg); } }
@keyframes crwalk { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-6px) rotate(1.5deg); } }
.door { width: 84px; height: 190px; margin-left: -42px; top: 0; background: linear-gradient(#3b2412, #24150a); border: 4px solid #6a4423; border-radius: 4px 4px 0 0; }
.b.wood .f, .b.wood .t { background: linear-gradient(#a9753f, #7a4f27); } .b.slab .f, .b.slab .t, .b.slab .k { background: #b88347; } .b.chair .f { background: linear-gradient(#5a2f1b, #3a1d10); } .b.chair .k, .b.chair .l, .b.chair .r, .b.chair .t { background: #2b150b; }
.b.bench2 .f, .b.bench2 .t { background: #7a5430; }
.lockedcard { opacity: .78; border-style: dashed; } .locklist { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .4rem; }
.cr-title { order: 9; }

.bighero { font-size: clamp(2rem, 7.5vw, 3.4rem); line-height: 1.08; font-weight: 900; letter-spacing: -.02em; }
.bighero .gold { color: var(--accent); }
.hero .lead b { color: var(--text); }

/* ---- online views, tour ---- */
.podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;align-items:end;margin:1rem 0}
.pod{border:1px solid #8885;border-radius:14px;padding:.8rem .4rem;text-align:center;background:var(--surface);overflow-wrap:anywhere}
.pod.p1{padding-block:1.4rem;border-color:#d4af37;box-shadow:0 0 22px #d4af3755}
.pod .medal{font-size:1.8rem;display:block}
tr.me{background:#d4af3722}
.chatbox{border:1px solid #8885;border-radius:14px;padding:.6rem;height:min(52vh,420px);overflow-y:auto;display:flex;flex-direction:column;gap:.5rem}
.msg{max-width:85%;padding:.5rem .7rem;border-radius:12px;background:var(--surface2);overflow-wrap:anywhere}
.msg.mine{align-self:flex-end;background:#d4af3733}
.msg .mh{font-size:.75rem;opacity:.75;display:flex;gap:.5rem;justify-content:space-between}
.chatform{display:flex;gap:.5rem;margin-top:.6rem}.chatform input{flex:1;min-width:0}
.courtmap{height:360px;border-radius:14px;overflow:hidden;border:1px solid #8885;margin:.8rem 0}
.schem{width:100%;max-height:420px;border-radius:14px;border:1px solid #8885}
.tour{position:fixed;inset:0;z-index:9999;background:#000a;display:flex;align-items:flex-end;justify-content:center;padding:1rem}
.tourcard{width:min(520px,100%);background:var(--surface);color:var(--text);border:2px solid #d4af37;border-radius:18px;padding:1.1rem 1.2rem;box-shadow:0 10px 40px #000a;margin-bottom:env(safe-area-inset-bottom,0)}
.tourcard h2{margin:.2rem 0 .4rem}.tourstep{font-size:.8rem;color:#d4af37;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.tourdots{display:flex;gap:5px;margin:.6rem 0}.tourdots i{width:8px;height:8px;border-radius:50%;background:#8886}.tourdots i.on{background:#d4af37}
.tourcard .row{display:flex;gap:.5rem;align-items:center}.tourcard .spacer{flex:1}
.courtcard{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.8rem;align-items:center}
.courtart{border-radius:8px;display:block}

/* ---- Who Will Win This Case? / support ---- */
.gamehero{border:1px solid #d4af3766;border-radius:18px;padding:1.2rem;margin-bottom:1rem;background:linear-gradient(135deg,#d4af3722,#ff3ea522 60%,#22e6ff18)}
.gamehero h1{margin:.2rem 0 .4rem}
.gcase{text-align:left;display:flex;flex-direction:column;gap:.3rem;cursor:pointer}
.gcase[aria-pressed=true]{outline:3px solid #d4af37;box-shadow:0 0 18px #d4af3766}
.gemoji{font-size:2rem;line-height:1}
.gamehead{display:flex;gap:.8rem;align-items:center;margin:.6rem 0 1rem}.gamehead h1{margin:0;font-size:1.5rem}
.gcode{letter-spacing:.15em;color:#d4af37}
.gcodebig{font-size:2.4rem;font-weight:800;letter-spacing:.3em;text-align:center;padding:.6rem;border:2px dashed #d4af37;border-radius:14px;margin:.6rem 0;color:#d4af37}
.gseats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.6rem}
.gseat{border:1px dashed #8886;border-radius:12px;padding:.6rem;text-align:center;overflow-wrap:anywhere}.gseat.on{border-style:solid;border-color:#d4af37;background:#d4af3718}
.gscore{display:flex;justify-content:space-between;align-items:center;text-align:center;gap:.5rem;border:1px solid #8885;border-radius:14px;padding:.6rem .9rem;margin-bottom:.8rem;font-size:1.1rem}
.gsay{font-size:1.1rem;margin:.3rem 0 0}
.gcards{display:grid;gap:.6rem;margin:.6rem 0 1rem}
.gcard{display:flex;flex-direction:column;gap:.4rem;text-align:left;width:100%;padding:.8rem 1rem;border-radius:14px;border:2px solid #8886;background:var(--surface2);color:var(--text);font:inherit;overflow-wrap:anywhere}
button.gcard{cursor:pointer}button.gcard[aria-pressed=true]{border-color:#d4af37;box-shadow:0 0 16px #d4af3777;background:#d4af3722}
.gtag{align-self:flex-start;font-size:.8rem;font-weight:700;padding:.1rem .5rem;border-radius:999px;border:1px solid #8886}.gtag.s3{background:#1f6f3a33}.gtag.s1{background:#c9a22733}.gtag.s0{background:#a3262a33}
.gbanner{text-align:center;border-color:#d4af37;background:linear-gradient(135deg,#d4af3722,transparent)}.gbanner.big h2{font-size:1.8rem}
.supportcard{border:2px solid #d4af37;background:linear-gradient(135deg,#d4af3718,transparent)}
.paylist{display:flex;flex-direction:column;gap:.7rem;margin:.6rem 0}.pay{border:1px solid #8885;border-radius:12px;padding:.7rem}.paynum{font-size:1.5rem;font-weight:800;letter-spacing:.06em}
.asklog{border:1px solid #8885;border-radius:14px;padding:.7rem;height:min(50vh,440px);overflow-y:auto;display:flex;flex-direction:column;gap:.6rem;margin:.8rem 0}
.amsg{display:flex}.amsg.me{justify-content:flex-end}.abub{max-width:88%;padding:.6rem .8rem;border-radius:14px;background:var(--surface2);overflow-wrap:anywhere}
.amsg.me .abub{background:#d4af3733}.alinks{margin:.5rem 0 0;padding-left:1.1rem}.asub{display:flex;gap:.5rem;align-items:center;margin-top:.5rem;flex-wrap:wrap}
.askform{display:flex;gap:.5rem;margin:.6rem 0}.askform input{flex:1;min-width:0}
/* ---- eagle helper ---- */
.eagle{position:fixed;z-index:950;touch-action:none;user-select:none;-webkit-user-select:none;transition:left .25s ease,top .25s ease,width .2s,height .2s}
.eagle.dragging{transition:none;filter:drop-shadow(0 8px 14px #0008)}
.eagle[hidden]{display:none}
.eaglebtn{all:unset;display:block;width:100%;height:100%;cursor:grab;touch-action:none;filter:drop-shadow(0 4px 8px #0006);animation:eagbob 3.2s ease-in-out infinite}
.eagle.dragging .eaglebtn{cursor:grabbing;animation:none}
.eaglebtn:focus-visible{outline:3px solid #22e6ff;outline-offset:4px;border-radius:50%}
.eaglebtn svg{width:100%;height:100%;display:block;pointer-events:none}
@keyframes eagbob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
[data-motion=reduce] .eaglebtn{animation:none}
@media (prefers-reduced-motion:reduce){.eaglebtn{animation:none}}
.eaglepanel{position:fixed;z-index:960;background:var(--surface);color:var(--text);border:2px solid #d4af37;border-radius:16px;padding:.8rem;box-shadow:0 10px 36px #000a;max-height:70vh;overflow:auto}
.eaglepanel[hidden]{display:none}
.epHead{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}
.epForm{display:flex;gap:.4rem}.epForm input{flex:1;min-width:0}
.epRes{margin-top:.6rem;font-size:.95rem}.epRes ul{padding-left:1.1rem;margin:.4rem 0 0}
.epChips{margin-top:.5rem}
.eaglebtn .eyes{transform-box:fill-box;transform-origin:center;animation:eagblink 5s infinite}
.eaglebtn .wingR{transform-box:fill-box;transform-origin:20% 90%;animation:eagwave 6s ease-in-out infinite}
.eaglebtn .sp1,.eaglebtn .sp2{transform-box:fill-box;transform-origin:center;animation:eagtwinkle 2.4s ease-in-out infinite}.eaglebtn .sp2{animation-delay:1.1s}
.eagle.open .eaglebtn .eyes{animation:none;transform:scaleY(.35)}
@keyframes eagblink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
@keyframes eagwave{0%,80%,100%{transform:rotate(0)}85%{transform:rotate(-16deg)}90%{transform:rotate(6deg)}95%{transform:rotate(-12deg)}}
@keyframes eagtwinkle{0%,100%{opacity:.25;transform:scale(.7)}50%{opacity:1;transform:scale(1.15)}}
[data-motion=reduce] .eaglebtn .eyes,[data-motion=reduce] .eaglebtn .wingR,[data-motion=reduce] .eaglebtn .sp1,[data-motion=reduce] .eaglebtn .sp2{animation:none}
@media (prefers-reduced-motion:reduce){.eaglebtn .eyes,.eaglebtn .wingR,.eaglebtn .sp1,.eaglebtn .sp2{animation:none}}
/* ---- eagle-guided tour ---- */
body.touring #eagle,body.touring #eaglepanel{display:none!important}
.tour{background:#0008;align-items:flex-end}
.tourwrap{display:flex;align-items:flex-end;gap:.4rem;width:min(560px,100%);margin-bottom:env(safe-area-inset-bottom,0)}
.toureagle{flex:none;width:96px;height:96px;margin-bottom:.2rem;animation:eagbob 3s ease-in-out infinite;filter:drop-shadow(0 4px 8px #0008)}
.toureagle.alt{transform:scaleX(1)}
.toureagle svg{width:100%;height:100%;display:block}
.toureagle .eyes{transform-box:fill-box;transform-origin:center;animation:eagblink 5s infinite}
.toureagle .wingR{transform-box:fill-box;transform-origin:20% 90%;animation:eagwave 3s ease-in-out infinite}
.toureagle .sp1,.toureagle .sp2{transform-box:fill-box;transform-origin:center;animation:eagtwinkle 2.4s ease-in-out infinite}
.tourwrap .tourcard{position:relative;flex:1;min-width:0;margin-bottom:0}
.tourwrap .tourcard::before{content:"";position:absolute;left:-10px;bottom:34px;width:18px;height:18px;background:var(--surface);border-left:2px solid #d4af37;border-bottom:2px solid #d4af37;transform:rotate(45deg)}
.tourring{position:fixed;z-index:10000;border:3px solid #ffd447;border-radius:16px;box-shadow:0 0 0 9999px #0000,0 0 18px 4px #ffd447aa;pointer-events:none;animation:tourpulse 1.4s ease-in-out infinite}
@keyframes tourpulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.04);opacity:.75}}
[data-motion=reduce] .toureagle,[data-motion=reduce] .toureagle *,[data-motion=reduce] .tourring{animation:none!important}
@media (prefers-reduced-motion:reduce){.toureagle,.toureagle *,.tourring{animation:none!important}}
@media (max-width:420px){.toureagle{width:72px;height:72px}}

/* ===== Blahbbie robo-dog (alive: blinking, scanning eyes, twitching ears, breathing, blinking lights) ===== */
:root{--lx:0;--ly:0}
.eaglebtn .rAura,.toureagle .rAura{animation:rpulse 3s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
.eaglebtn .rBreath,.toureagle .rBreath{transform-box:fill-box;transform-origin:50% 100%;animation:rbreath 3.4s ease-in-out infinite}
.eaglebtn .rHead,.toureagle .rHead{transform-box:fill-box;transform-origin:50% 100%;animation:rtilt 7s ease-in-out infinite}
.eaglebtn .rEarL,.toureagle .rEarL{transform-box:fill-box;transform-origin:85% 95%;animation:rearL 6s ease-in-out infinite}
.eaglebtn .rEarR,.toureagle .rEarR{transform-box:fill-box;transform-origin:15% 95%;animation:rearR 8s ease-in-out infinite}
.eaglebtn .rEye,.toureagle .rEye{transform-box:fill-box;transform-origin:center;animation:rblink 4.6s infinite}
.eaglebtn .rPupil,.toureagle .rPupil{transform:translate(calc(var(--lx)*3.2px),calc(var(--ly)*3px));transition:transform .25s ease-out}
.eaglebtn .rRing,.toureagle .rRing{transform-box:fill-box;transform-origin:center;animation:rspin 6s linear infinite}
.eaglebtn .rLed,.toureagle .rLed{animation:rled 1.6s ease-in-out infinite}
.eaglebtn .rLed.l2,.toureagle .rLed.l2{animation-delay:.5s}.eaglebtn .rLed.l3,.toureagle .rLed.l3{animation-delay:1s}
.eaglebtn .rLed2,.toureagle .rLed2{animation:rled 2.2s ease-in-out infinite}
.eaglebtn .rMouth,.toureagle .rMouth{transform-box:fill-box;transform-origin:center}
body.speaking .eaglebtn .rMouth,body.speaking .toureagle .rMouth{animation:rtalk .28s ease-in-out infinite}
body.speaking .eaglebtn .rRing,body.speaking .toureagle .rRing{animation-duration:1.4s}
.eagle:hover .rEarL,.eagle:hover .rEarR{animation:rperk .5s ease-out forwards}
.eaglebtn .sp1,.eaglebtn .sp2,.toureagle .sp1,.toureagle .sp2{transform-box:fill-box;transform-origin:center;animation:eagtwinkle 2.4s ease-in-out infinite}
@keyframes rpulse{0%,100%{opacity:.55;transform:scale(.96)}50%{opacity:1;transform:scale(1.04)}}
@keyframes rbreath{0%,100%{transform:scale(1)}50%{transform:scale(1.025,1.04)}}
@keyframes rtilt{0%,40%,100%{transform:rotate(0)}50%,60%{transform:rotate(-5deg)}80%,88%{transform:rotate(4deg)}}
@keyframes rearL{0%,86%,100%{transform:rotate(0)}90%{transform:rotate(-14deg)}94%{transform:rotate(4deg)}}
@keyframes rearR{0%,72%,100%{transform:rotate(0)}76%{transform:rotate(12deg)}80%{transform:rotate(-3deg)}}
@keyframes rperk{to{transform:rotate(0) translateY(-3px)}}
@keyframes rblink{0%,93%,100%{transform:scaleY(1)}96%{transform:scaleY(.08)}}
@keyframes rspin{to{transform:rotate(360deg)}}
@keyframes rled{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes rtalk{0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.9)}}
[data-motion=reduce] .eaglebtn *,[data-motion=reduce] .toureagle *{animation:none!important}
@media (prefers-reduced-motion:reduce){.eaglebtn *,.toureagle *{animation:none!important}}

/* Neon panther animation */
.eaglebtn .pAura,.toureagle .pAura{animation:ppulse 2.6s ease-in-out infinite;filter:drop-shadow(0 0 5px var(--glow,#ff9d1c))}
.eaglebtn .pBreath,.toureagle .pBreath{transform-box:fill-box;transform-origin:50% 60%;animation:pbreath 3.6s ease-in-out infinite}
.eaglebtn .pEye,.toureagle .pEye{transform-box:fill-box;transform-origin:center;animation:peye 3.2s ease-in-out infinite;mix-blend-mode:screen}
.eaglebtn .pEyes,.toureagle .pEyes{transform-box:fill-box;transform-origin:center;animation:pblink 5s infinite}
.eaglebtn .pScan,.toureagle .pScan{animation:pscan 4.5s linear infinite}
body.speaking .eaglebtn .pEye,body.speaking .toureagle .pEye{animation-duration:.7s}
@keyframes ppulse{0%,100%{opacity:.55;filter:drop-shadow(0 0 3px var(--glow,#ff9d1c))}50%{opacity:1;filter:drop-shadow(0 0 9px var(--glow,#ff9d1c))}}
@keyframes pbreath{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}
@keyframes peye{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes pblink{0%,93%,100%{transform:scaleY(1)}96%{transform:scaleY(.05)}}
@keyframes pscan{0%{transform:translateY(-14px);opacity:0}10%{opacity:.12}50%{opacity:.08}90%{opacity:0}100%{transform:translateY(124px);opacity:0}}
[data-motion=reduce] .eaglebtn *,[data-motion=reduce] .toureagle *{animation:none!important}
.lookpick{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:.6rem;margin-bottom:.8rem}
.lookpick button{all:unset;box-sizing:border-box;cursor:pointer;text-align:center;padding:.4rem;border:2px solid var(--line,#2a3558);border-radius:14px;display:grid;gap:.25rem;justify-items:center}
.lookpick button[aria-pressed=true]{border-color:var(--gold,#d4af37);box-shadow:0 0 0 2px #d4af3755}
.lookpick button:focus-visible{outline:3px solid var(--gold,#d4af37)}
.lookpick .lkpic{width:72px;height:72px;display:block}.lookpick svg{width:100%;height:100%}
.lookpick svg *{animation:none!important}
.stopsay{position:fixed;left:50%;transform:translateX(-50%);bottom:84px;z-index:10050;padding:.7rem 1.2rem;border-radius:999px;border:2px solid var(--gold,#d4af37);background:#1b2447;color:#fff;font:600 1rem/1 inherit;box-shadow:0 6px 20px #0008;cursor:pointer;animation:stopin .25s ease-out}
.stopsay[hidden]{display:none}
@keyframes stopin{from{opacity:0;transform:translateX(-50%) translateY(10px)}}
.selread{position:fixed;z-index:10040;width:118px;padding:.55rem .6rem;border-radius:999px;border:2px solid var(--gold,#d4af37);background:#1b2447;color:#fff;font:600 .9rem/1 inherit;box-shadow:0 6px 18px #0009;cursor:pointer}
.selread[hidden]{display:none}

.courtcard.withphoto{grid-template-columns:minmax(0,1fr);align-items:start}
.courtcard.withphoto .courtphoto{margin:0}.courtcard.withphoto .courtphoto img{width:100%!important;height:auto!important;aspect-ratio:3/2;max-height:240px}
