:root {
  --wood-darkest: #1e120d;
  --wood-dark: #2b1b14;
  --wood: #4a2c1d;
  --wood-mid: #6b3f24;
  --gold: #d4a24c;
  --gold-dark: #8a6428;
  --cream: #f2e2c0;
  --paper-edge: #e3cc9b;
  --paper-line: #b59a6a;
  --ink: #2a1c14;
  --ink-muted: #6b5340;
  --red: #a8322a;
  --green: #2f6b37;
  --muted-light: #c8b38e;
  --display: Oswald, "Arial Narrow", sans-serif;
  --slab: "Zilla Slab", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wood-dark); color: var(--cream); font-family: Inter, system-ui, sans-serif; }
img { max-width: 100%; }
a { color: var(--gold); }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid #f2c14e; outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { display: inline-block; line-height: 0; }
.sprite svg { display: block; }

/* Header */
.topbar { background: var(--wood-darkest); border-bottom: 4px solid var(--wood); position: sticky; top: 0; z-index: 20; }
.topbar-in { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .06em; color: var(--gold); }
.nav { display: flex; gap: 6px; background: var(--wood-dark); border: 2px solid var(--wood); border-radius: 6px; padding: 5px; }
.nav a { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-decoration: none; color: var(--cream); padding: 10px 14px; border-radius: 4px; }
.nav a.active { background: var(--gold); color: var(--wood-dark); }

/* Hero */
.hero { background: var(--wood-darkest); border-bottom: 6px solid var(--wood-darkest); overflow: hidden; }
.hero-in { position: relative; max-width: 1847px; margin: 0 auto; }
.hero-btn { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; }
.hero-btn img { display: block; width: 100%; height: auto; }
.dock-link { position: absolute; top: 77.5%; height: 13.5%; left: 38.2%; width: 23.7%; display: block; }
.order-at { position: absolute; left: 70%; top: 30%; max-width: 28%; pointer-events: none; }
.order { background: var(--cream); color: var(--wood-dark); border: 4px solid var(--wood-darkest); box-shadow: 4px 4px 0 var(--wood-darkest); padding: 6px 14px; font-family: var(--display); font-weight: 700; font-size: clamp(14px, 2.4vw, 30px); letter-spacing: .06em; line-height: 1.15; width: max-content; max-width: 100%; animation: pop 240ms steps(4) both; }
@keyframes pop { 0% { transform: scale(.3) rotate(-8deg); opacity: 0 } 70% { transform: scale(1.15) rotate(-4deg); opacity: 1 } 100% { transform: scale(1) rotate(-4deg); opacity: 1 } }
.shake { animation: shake 340ms steps(5); }
@keyframes shake { 0% { transform: translate(0,0) } 20% { transform: translate(-7px,3px) } 40% { transform: translate(6px,-3px) } 60% { transform: translate(-4px,2px) } 80% { transform: translate(3px,-1px) } 100% { transform: translate(0,0) } }

/* Docket */
.docket { padding: 40px 0 16px; scroll-margin-top: 70px; }
.docket-bar { background: var(--cream); color: var(--ink); border: 3px solid var(--paper-line); box-shadow: 0 6px 0 var(--wood-darkest); border-radius: 4px; padding: 16px 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
.docket-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.docket-title h2 { margin: 0; font-family: var(--slab); font-weight: 700; font-size: clamp(30px, 4.5vw, 40px); letter-spacing: .02em; }
.docket-title p, .docket-meta p { margin: 0; font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.docket-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.docket-meta select { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .06em; color: var(--ink); background: var(--paper-edge); border: 2px solid var(--ink); border-radius: 4px; padding: 8px 10px; min-height: 44px; }
.row-wrap { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.arrow { flex: 0 0 auto; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--gold); background: var(--wood); color: var(--cream); font-size: 24px; font-weight: 700; line-height: 1; }
.row { flex: 1 1 auto; min-width: 0; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 4px 24px; scrollbar-width: thin; scrollbar-color: var(--wood-mid) transparent; }
.loading { margin: 0; padding: 30px 0; font-family: var(--display); letter-spacing: .08em; color: var(--muted-light); }
.card { flex: 0 0 240px; scroll-snap-align: start; cursor: pointer; text-align: left; position: relative; background: var(--cream); color: var(--ink); border: 3px solid var(--paper-line); border-radius: 4px; box-shadow: 0 6px 0 var(--wood-darkest); padding: 0; font: inherit; transition: transform 140ms ease; }
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card[aria-current="true"] { border-color: var(--red); }
.card .tab { position: absolute; top: -12px; left: 16px; width: 96px; height: 14px; background: var(--paper-edge); border: 3px solid var(--paper-line); border-bottom: 0; border-radius: 4px 4px 0 0; }
.card .meta { display: flex; justify-content: space-between; gap: 8px; padding: 14px 16px 0; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .08em; color: var(--ink-muted); }
.card .title { display: block; padding: 10px 16px 0; font-family: var(--slab); font-weight: 700; font-size: 24px; line-height: 1.05; min-height: 52px; }
.card .parties { display: block; padding: 4px 16px 0; font-size: 13px; color: var(--ink-muted); }
.card .stamp-wrap { display: flex; justify-content: center; padding: 18px 12px 22px; }

.stamp { display: inline-block; transform: rotate(-6deg); border: 4px double currentColor; font-family: var(--slab); font-weight: 700; font-size: 24px; letter-spacing: .04em; padding: 2px 12px; line-height: 1.2; white-space: nowrap; }
.stamp.stupid { color: var(--red); }
.stamp.not { color: var(--green); }
.stamp.big { border-width: 7px; font-size: clamp(34px, 8vw, 76px); line-height: 1; padding: 8px 26px; transform: rotate(-5deg); }

/* Case file */
.case { padding: 8px 0 72px; scroll-margin-top: 70px; }
.stack { position: relative; margin-top: 14px; }
.stack::before, .stack::after { content: ""; position: absolute; border-radius: 4px; }
.stack::before { inset: 10px -6px -10px 8px; background: #d8bf8c; transform: rotate(1deg); }
.stack::after { inset: 4px 4px -4px -4px; background: var(--paper-edge); transform: rotate(-.8deg); }
.file { position: relative; z-index: 1; background: var(--cream); color: var(--ink); border-radius: 4px; box-shadow: 0 10px 0 var(--wood-darkest); padding: clamp(22px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 32px 40px; }
.file-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.file-side { flex: 1 1 240px; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.file-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .08em; }
.file-head .no { border: 2px solid var(--ink); padding: 4px 10px; }
.file h2 { margin: 0; font-family: var(--slab); font-weight: 700; font-size: clamp(34px, 5.4vw, 54px); line-height: 1; }
.file .parties { margin: 8px 0 0; font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.block { display: flex; flex-direction: column; gap: 8px; }
.label { display: flex; align-items: center; gap: 12px; }
.label span { background: var(--wood); color: var(--cream); font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .1em; padding: 5px 12px; border-radius: 3px; }
.label::after { content: ""; flex: 1; height: 2px; background: var(--paper-line); }
.block p { margin: 0; font-size: 17px; line-height: 1.6; white-space: pre-line; }
.block.matter p { font-size: 18px; font-weight: 500; }
.verdict { display: flex; justify-content: center; padding: 18px 0 4px; }
.closed { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-align: center; }
.closed::before, .closed::after { content: ""; flex: 1; height: 2px; background: var(--ink); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.pager button { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .08em; color: var(--ink); background: transparent; border: 2px solid var(--ink); padding: 10px 16px; min-height: 44px; }
.pager button:disabled { opacity: .35; cursor: default; }
.pager button:not(:disabled):hover { background: var(--ink); color: var(--cream); }
.polaroid { margin: 0; background: #fbf6ec; padding: 14px 14px 12px; box-shadow: 0 6px 14px rgba(30,18,13,.35); transform: rotate(3deg); width: 260px; max-width: 100%; }
.polaroid .photo { background: var(--wood-dark); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.polaroid .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid figcaption { margin-top: 10px; font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: .1em; color: var(--ink-muted); text-align: center; text-transform: uppercase; }
.seal { width: 150px; height: 150px; border-radius: 50%; border: 4px solid #b08a4a; box-shadow: inset 0 0 0 6px var(--cream), inset 0 0 0 8px #b08a4a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transform: rotate(-10deg); opacity: .85; font-family: var(--display); font-weight: 700; letter-spacing: .18em; color: var(--gold-dark); }
.seal .t1 { font-size: 13px; } .seal .t2 { font-size: 11px; }

/* File a Motion */
.motion { border: 2px dashed var(--paper-line); border-radius: 4px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.motion-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .1em; color: var(--cream); background: #8b2e22; text-decoration: none; box-shadow: 0 4px 0 #4f1811, 0 0 0 3px var(--wood-darkest); }
.motion-btn:hover { color: var(--cream); background: var(--red); }
.motion p { margin: 0; max-width: 520px; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
button.motion-btn { border: 0; cursor: pointer; }
.motion-opts { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 6px; }
.motion-opts[hidden] { display: none; }
.motion-q { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.motion-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.motion-row a, .motion-row button { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .06em; color: var(--ink); background: transparent; border: 2px solid var(--ink); padding: 8px 14px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.motion-row a:hover, .motion-row button:hover { background: var(--ink); color: var(--cream); }

/* About */
.about { background: var(--wood); border-top: 6px solid var(--wood-darkest); padding: 64px 0; scroll-margin-top: 70px; }
.about-in { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.about-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.about-text p { margin: 0; font-size: 18px; line-height: 1.65; }
.about-text .eyebrow { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .14em; color: var(--gold); }
.about-text h2 { margin: 0; font-family: var(--slab); font-weight: 700; font-size: clamp(32px, 4.5vw, 46px); line-height: 1.05; }
.about-text .allrise { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 2.4vw, 22px); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); line-height: 1.3; }
.rules { flex: 1 1 320px; background: var(--wood-dark); border: 3px solid var(--gold); border-radius: 6px; padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; align-self: flex-start; }
.rules h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .1em; color: var(--gold); }
.rules ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; }

/* Footer */
.foot .fan { flex-basis: 100%; font-family: Inter, system-ui, sans-serif; font-weight: 400; font-size: 13px; letter-spacing: 0; color: var(--muted-light); }
.foot { background: var(--wood-darkest); border-top: 4px solid var(--wood); }
.foot-in { padding-top: 26px; padding-bottom: 26px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: .08em; color: var(--muted-light); }

@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .dock-link { left: 25.7%; width: 47.9%; }
  .order-at { left: auto; right: 3%; top: 26%; max-width: 46%; }
  .order { font-size: 18px; }
  .topbar { position: static; }
  .brand { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shake, .order, .card { animation: none; transition: none; }
}
