/* Ono Courtroom — shared design system */
:root {
  --ink: #090b10; --ink2: #10131b; --ink3: #171b26; --ink4: #212736;
  --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --text: #eef0f5; --dim: #98a2b3; --faint: #667085;
  --paper: #efe7d6; --paper2: #e3d9c3; --pink: #1b1810;
  --amber: #f2b441; --amber2: #b9810f; --amberbg: rgba(242,180,65,.12);
  --ice: #5ab9ff; --ice2: #1f78c4; --icebg: rgba(90,185,255,.12);
  --red: #ff5c4d; --green: #43d49a; --violet: #a78bfa;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { background: var(--ink); color: var(--text); font-family: var(--sans); overflow-x: hidden; touch-action: manipulation; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .4; cursor: not-allowed; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.serif { font-family: var(--serif); }
.hide { display: none !important; }
.dim { color: var(--dim); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .55em 1.1em; border-radius: 10px; background: var(--ink4); border: 1px solid var(--line2); font-weight: 600; transition: transform .12s var(--ease), background .15s, border-color .15s; user-select: none; }
.btn:hover { background: #2a3144; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--amber); color: #1b1300; border-color: transparent; }
.btn.primary:hover { background: #ffc65a; }
.btn.ice { background: var(--ice); color: #00213a; border-color: transparent; }
.btn.danger { background: rgba(255,92,77,.14); color: #ff9a90; border-color: rgba(255,92,77,.4); }
.btn.ghost { background: transparent; border-color: var(--line2); }
.btn.big { min-height: 56px; font-size: 1.1em; padding: .6em 1.4em; border-radius: 12px; }
.btn.sm { min-height: 36px; padding: .3em .8em; font-size: .9em; border-radius: 8px; }

/* chips and dots */
.chip { display: inline-flex; align-items: center; gap: .5em; padding: .3em .8em; border-radius: 999px; background: var(--ink3); border: 1px solid var(--line); font-size: .85em; }
.dot { width: .65em; height: .65em; border-radius: 50%; background: var(--faint); flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 0 4px rgba(67,212,154,.18); }
.dot.warn { background: var(--amber); }
.dot.off { background: var(--red); }

/* offline banner */
#net { position: fixed; left: 50%; top: 10px; transform: translate(-50%, -80px); z-index: 99; background: #3a1410; color: #ffb4aa; border: 1px solid rgba(255,92,77,.5); padding: .5em 1.1em; border-radius: 999px; font-weight: 600; transition: transform .3s var(--ease); }
#net.show { transform: translate(-50%, 0); }

/* animations */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes stamp { 0% { transform: scale(2.6) rotate(-14deg); opacity: 0; } 55% { transform: scale(.94) rotate(-6deg); opacity: 1; } 100% { transform: scale(1) rotate(-6deg); opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes glow { 0%,100% { box-shadow: 0 0 0 0 var(--glow, rgba(242,180,65,.55)); } 50% { box-shadow: 0 0 0 14px rgba(0,0,0,0); } }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(220%); } }
@keyframes shake { 0%,100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes wipe { to { transform: scaleX(0); } }
@keyframes tick { 0% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* paper (case-file) surfaces */
.paper { background: var(--paper); color: var(--pink); border-radius: 6px; position: relative; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 40px rgba(0,0,0,.45); }
.paper::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.018) 0 2px, transparent 2px 4px); }
.stampmark { position: absolute; font-family: var(--mono); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #c63a2b; border: .2em solid #c63a2b; padding: .1em .6em; border-radius: 6px; transform: rotate(-6deg); opacity: .85; mix-blend-mode: multiply; }

/* art (svg exhibits) */
.art { width: 100%; height: auto; display: block; }
.art text { font-family: var(--mono); }
.recon { font-family: var(--mono); font-size: .7em; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
