/* ============================================================
   localcop.dev v2 :: anti-design law-enforcement dev tool
   ============================================================ */

:root {
    --bg:            #f0f0e8;
    --sidebar-dark:  #1a1a2a;
    --aurora-1:      #1a7a4a;
    --aurora-2:      #4a2a8a;
    --aurora-3:      #1a5a8a;
    --alert-red:     #e03030;
    --alert-amber:   #e0a030;
    --text-dark:     #0a0a0a;
    --text-light:    #e0e0e8;
    --siren-blue:    #2040e0;

    --aurora-grad: linear-gradient(135deg, var(--aurora-1) 0%, var(--aurora-2) 50%, var(--aurora-3) 100%);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text-dark);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ----------------------------------------------------------------
   SHELL
---------------------------------------------------------------- */
.precinct-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* ----------------------------------------------------------------
   SIDEBAR :: precinct filing cabinet
---------------------------------------------------------------- */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--sidebar-dark);
    color: var(--text-light);
    padding: 26px 18px 22px;
    box-shadow:
        2px 0 0 #000,
        6px 0 0 var(--aurora-2),
        12px 0 32px rgba(10, 10, 10, 0.55),
        24px 0 60px rgba(74, 42, 138, 0.25);
    overflow-y: auto;
    z-index: 5;
}

.sidebar-tape {
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
    background: var(--alert-amber);
    color: #1a1a2a;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 9px;
    letter-spacing: 0.15em;
    padding: 4px 0;
    transform: rotate(-1.5deg);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    border-top: 2px solid #0a0a0a;
    border-bottom: 2px solid #0a0a0a;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}

.badge-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 28px;
    padding-top: 8px;
}

.badge {
    position: relative;
    width: 56px;
    height: 64px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 0 #000);
}

.badge-shield {
    position: absolute;
    inset: 0;
    background: var(--aurora-grad);
    clip-path: polygon(50% 0%, 100% 18%, 100% 65%, 50% 100%, 0% 65%, 0% 18%);
    border: 2px solid #000;
}

.badge-star {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    background: var(--bg);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.badge-ring {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 4px;
    background: var(--alert-red);
    border: 1.5px solid #000;
}

.badge-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.badge-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--alert-amber);
}

.badge-name {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 26px;
    color: var(--text-light);
    margin-top: 2px;
    letter-spacing: -0.02em;
}

/* sidebar sections ------------------------------------------------ */
.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--aurora-1);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(224, 224, 232, 0.18);
}

/* case tabs */
.case-tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.case-tab {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 11px 14px 11px 18px;
    background: rgba(224, 224, 232, 0.04);
    border: 1px solid rgba(224, 224, 232, 0.1);
    color: var(--text-light);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-align: left;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
    transition: background 220ms ease, transform 220ms ease;
}

.case-tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 220ms ease;
}

.case-tab:hover {
    background: rgba(26, 122, 74, 0.18);
    transform: translateX(2px);
}

.case-tab.active {
    background: rgba(74, 42, 138, 0.32);
}

.case-tab.active::before {
    background: var(--aurora-grad);
}

.tab-num {
    color: var(--aurora-1);
    font-weight: 700;
}

.tab-name {
    font-weight: 600;
}

.tab-count {
    background: var(--alert-red);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 2px;
    font-weight: 700;
    border: 1px solid #000;
    box-shadow: 1.5px 1.5px 0 #000;
}

.case-tab[data-filter="style"] .tab-count   { background: var(--aurora-3); }
.case-tab[data-filter="security"] .tab-count{ background: var(--alert-red); }
.case-tab[data-filter="deps"] .tab-count    { background: var(--alert-amber); color: #1a1a2a; }
.case-tab[data-filter="syntax"] .tab-count  { background: var(--aurora-1); }
.case-tab[data-filter="all"] .tab-count     { background: var(--aurora-2); }

/* ledger */
.ledger-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

.ledger-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 4px;
    border-bottom: 1px dotted rgba(224, 224, 232, 0.15);
    color: rgba(224, 224, 232, 0.75);
}

.ledger-list li b {
    color: var(--alert-amber);
    font-weight: 600;
}

/* sidebar footer */
.sidebar-footer {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    padding-top: 12px;
    border-top: 1px dashed rgba(224, 224, 232, 0.2);
}

.rank-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.rank-pip {
    width: 18px;
    height: 5px;
    background: var(--alert-amber);
    border: 1px solid #000;
}

.rank-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: rgba(224, 224, 232, 0.7);
}

/* ----------------------------------------------------------------
   MAIN BOARD
---------------------------------------------------------------- */
.board {
    position: relative;
    padding: 64px 6vw 40px;
    overflow: hidden;
}

.tape-overlay {
    pointer-events: none;
    position: absolute;
    inset: 0;
    opacity: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent 0,
        transparent 38px,
        rgba(26, 122, 74, 0.12) 38px,
        rgba(26, 122, 74, 0.12) 56px,
        transparent 56px,
        transparent 94px,
        rgba(74, 42, 138, 0.10) 94px,
        rgba(74, 42, 138, 0.10) 112px,
        transparent 112px,
        transparent 150px,
        rgba(26, 90, 138, 0.10) 150px,
        rgba(26, 90, 138, 0.10) 168px
    );
    transition: opacity 600ms ease;
    z-index: 0;
}

.tape-overlay.lit {
    opacity: 1;
}

.board > * {
    position: relative;
    z-index: 1;
}

/* ----------------------------------------------------------------
   HERO
---------------------------------------------------------------- */
.hero {
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 8px double #0a0a0a;
}

.hero-stamp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.2em;
    padding: 6px 14px;
    background: var(--alert-red);
    color: #fff;
    border: 2px solid #0a0a0a;
    transform: rotate(-2deg);
    box-shadow: 4px 4px 0 #0a0a0a;
    margin-bottom: 30px;
    margin-left: 8px;
}

.hero-stamp .stamp-edge {
    color: #ffe7d6;
}

.hero-title {
    position: relative;
    margin: 0 0 28px;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--text-dark);
    overflow: visible;
    margin-left: -3vw;
    width: 122%;
}

.word-localcop {
    display: inline-block;
    font-size: clamp(72px, 16vw, 240px);
    background: var(--aurora-grad);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        4px 4px 0 rgba(10, 10, 10, 0.9),
        8px 8px 0 var(--alert-red);
    transform: skew(-2deg);
}

.word-dev {
    display: inline-block;
    font-size: clamp(28px, 4vw, 56px);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--alert-amber);
    padding: 4px 10px;
    border: 2px solid #0a0a0a;
    transform: rotate(-90deg) translateX(0);
    transform-origin: 0 0;
    margin-left: 18px;
    margin-top: -10px;
    vertical-align: top;
    transition: transform 700ms cubic-bezier(0.7, -0.4, 0.3, 1.4);
}

.word-dev.spun {
    transform: rotate(-90deg) translateX(0);
}

.hero-tag {
    max-width: 720px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.55;
    color: rgba(10, 10, 10, 0.85);
    margin: 0 0 36px;
    padding: 14px 18px;
    background: #fff;
    border: 1.5px solid #0a0a0a;
    box-shadow: 5px 5px 0 var(--aurora-2);
    transform: rotate(-0.6deg);
}

.hero-tag em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    color: var(--alert-red);
    background: rgba(224, 48, 48, 0.08);
    padding: 0 4px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}

.meta-block {
    background: var(--sidebar-dark);
    color: var(--text-light);
    padding: 10px 16px;
    border: 2px solid #0a0a0a;
    box-shadow: 3px 3px 0 #0a0a0a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
}

.meta-block.tilt-r { transform: rotate(1.4deg); }
.meta-block.tilt-l { transform: rotate(-2.2deg); margin-top: 12px; }

.meta-k {
    display: block;
    font-size: 9px;
    letter-spacing: 0.22em;
    color: var(--alert-amber);
    margin-bottom: 4px;
}

.meta-v {
    color: var(--text-light);
    font-weight: 500;
}

.run-btn {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 38px 18px 26px;
    background: transparent;
    border: 2.5px solid #0a0a0a;
    cursor: pointer;
    overflow: hidden;
    transform: skew(-4deg);
    box-shadow: 7px 7px 0 var(--alert-red);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.run-btn:hover {
    transform: skew(-4deg) translate(-2px, -2px);
    box-shadow: 9px 9px 0 var(--alert-red);
}

.run-btn:active {
    transform: skew(-4deg) translate(2px, 2px);
    box-shadow: 4px 4px 0 var(--alert-red);
}

.run-bg {
    position: absolute;
    inset: 0;
    background: var(--aurora-grad);
    opacity: 0.92;
    z-index: 0;
}

.run-label,
.run-cmd {
    position: relative;
    z-index: 1;
    transform: skew(4deg);
}

.run-label {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.04em;
    color: #fff;
}

.run-cmd {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
}

/* ----------------------------------------------------------------
   VIOLATIONS / EVIDENCE BOARD
---------------------------------------------------------------- */
.violations {
    margin-bottom: 70px;
}

.section-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
}

.section-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(34px, 5vw, 64px);
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.section-title i {
    font-style: italic;
    font-weight: 700;
    color: var(--aurora-2);
}

.section-rule {
    height: 6px;
    background: repeating-linear-gradient(90deg,
        var(--alert-amber) 0 12px,
        #0a0a0a 12px 24px);
    border-top: 1.5px solid #0a0a0a;
    border-bottom: 1.5px solid #0a0a0a;
}

.section-marker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    background: var(--text-dark);
    color: var(--alert-amber);
    padding: 6px 10px;
    border: 1.5px solid #0a0a0a;
    transform: rotate(2deg);
    white-space: nowrap;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    perspective: 1400px;
}

/* ----------------------------------------------------------------
   VIOLATION CARD :: mugshot
---------------------------------------------------------------- */
.violation {
    --tilt: 0deg;
    --shift-x: 0px;
    --shift-y: 0px;
    --offset: 0px;

    position: relative;
    background: #fff;
    border: 2px solid #0a0a0a;
    box-shadow: 6px 6px 0 #0a0a0a, 12px 12px 0 rgba(74, 42, 138, 0.25);
    transform: translate(var(--shift-x), var(--shift-y)) rotate(var(--tilt));
    margin-top: var(--offset);
    transform-style: preserve-3d;
    transition: transform 380ms cubic-bezier(0.2, 0.8, 0.3, 1.05),
                box-shadow 380ms ease,
                opacity 420ms ease;
    will-change: transform;
}

.violation::after {
    content: '';
    position: absolute;
    inset: -2px;
    pointer-events: none;
    background: repeating-linear-gradient(
        45deg,
        transparent 0 16px,
        rgba(224, 48, 48, 0.05) 16px 22px
    );
    opacity: 0;
    transition: opacity 320ms ease;
}

.violation:hover {
    transform: translate(var(--shift-x), calc(var(--shift-y) - 8px))
               rotate(calc(var(--tilt) * 0.4))
               rotateX(6deg) rotateY(-3deg);
    box-shadow: 10px 14px 0 #0a0a0a, 22px 24px 36px rgba(26, 26, 42, 0.45);
}

.violation:hover::after {
    opacity: 1;
}

/* hidden state (filter) */
.violation.is-filtered {
    display: none;
}

/* mugshot header */
.v-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--sidebar-dark);
    color: var(--text-light);
    padding: 10px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    border-bottom: 2px solid #0a0a0a;
}

.v-id {
    color: var(--alert-amber);
    font-weight: 700;
}

.v-cat {
    color: var(--aurora-1);
    font-weight: 600;
}

/* photo / code area */
.v-photo {
    position: relative;
    background: var(--sidebar-dark);
    color: var(--text-light);
    padding: 18px 16px 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 6px solid #0a0a0a;
    overflow: hidden;
}

.v-photo::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 36px;
    background:
        repeating-linear-gradient(0deg, transparent 0 18px, rgba(224, 224, 232, 0.06) 18px 19px);
    border-right: 1px solid rgba(224, 224, 232, 0.18);
}

.v-photo pre {
    margin: 0 0 0 28px;
    padding: 0;
    color: var(--text-light);
    white-space: pre-wrap;
    word-break: break-word;
}

.v-photo .lineno {
    color: rgba(224, 224, 232, 0.45);
    user-select: none;
    margin-right: 10px;
}

.v-photo .key   { color: var(--aurora-1); }
.v-photo .str   { color: var(--alert-amber); }
.v-photo .num   { color: var(--aurora-3); }
.v-photo .com   { color: rgba(224, 224, 232, 0.45); font-style: italic; }
.v-photo .err   {
    background: rgba(224, 48, 48, 0.18);
    color: #ffd0d0;
    padding: 0 2px;
    border-bottom: 2px wavy var(--alert-red);
    transition: background 240ms ease;
}

.violation:hover .v-photo .err {
    background: var(--alert-red);
    color: #fff;
}

/* magnifying glass */
.v-magnify {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 22px;
    height: 22px;
    border: 2.5px solid var(--alert-amber);
    border-radius: 50%;
    transform: scale(0.4) rotate(-30deg);
    opacity: 0;
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.3, 1.4),
                opacity 280ms ease;
}

.v-magnify::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -3px;
    width: 9px;
    height: 2.5px;
    background: var(--alert-amber);
    transform: rotate(45deg);
    transform-origin: 0 50%;
}

.violation:hover .v-magnify {
    transform: scale(1) rotate(8deg);
    opacity: 1;
}

/* description / file area */
.v-desc {
    padding: 16px 16px 14px;
}

.v-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
}

.v-rule .pill {
    padding: 2px 7px;
    background: var(--bg);
    border: 1.5px solid #0a0a0a;
    color: var(--text-dark);
    font-weight: 700;
}

.v-msg {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.25;
    color: var(--text-dark);
    margin: 0 0 10px;
}

.v-file {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(10, 10, 10, 0.7);
}

.v-file::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--aurora-2);
    border: 1.5px solid #0a0a0a;
}

/* severity strip */
.v-sev {
    position: absolute;
    top: 10px;
    left: -6px;
    padding: 4px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: #fff;
    border: 2px solid #0a0a0a;
    transform: rotate(-3deg);
    box-shadow: 2px 2px 0 #0a0a0a;
    z-index: 2;
}

.v-sev.sev-high  { background: var(--alert-red); }
.v-sev.sev-mid   { background: var(--alert-amber); color: #1a1a2a; }
.v-sev.sev-low   { background: var(--aurora-1); }
.v-sev.sev-info  { background: var(--aurora-3); }

/* card resolved */
.violation.resolved {
    opacity: 0.55;
}

.violation.resolved .v-msg::after {
    content: ' [RESOLVED]';
    color: var(--aurora-1);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
}

.violation.resolved::before {
    content: 'CLEARED';
    position: absolute;
    top: 38px;
    right: -14px;
    padding: 6px 14px;
    background: var(--aurora-1);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.2em;
    border: 2px solid #0a0a0a;
    transform: rotate(14deg);
    z-index: 3;
    box-shadow: 3px 3px 0 #0a0a0a;
}

/* entry animations -- different per card */
.violation.enter-slide   { animation: entrySlide   520ms cubic-bezier(0.2, 0.8, 0.3, 1.05) both; }
.violation.enter-fade    { animation: entryFade    520ms ease both; }
.violation.enter-scale   { animation: entryScale   520ms cubic-bezier(0.2, 0.8, 0.3, 1.4) both; }
.violation.enter-tilt    { animation: entryTilt    540ms cubic-bezier(0.2, 0.8, 0.3, 1.2) both; }
.violation.enter-drop    { animation: entryDrop    560ms cubic-bezier(0.2, 0.8, 0.3, 1.05) both; }

@keyframes entrySlide {
    from { opacity: 0; transform: translate(-40px, 0) rotate(var(--tilt)); }
    to   { opacity: 1; transform: translate(var(--shift-x), var(--shift-y)) rotate(var(--tilt)); }
}
@keyframes entryFade {
    from { opacity: 0; transform: translate(var(--shift-x), calc(var(--shift-y) + 18px)) rotate(var(--tilt)); }
    to   { opacity: 1; transform: translate(var(--shift-x), var(--shift-y)) rotate(var(--tilt)); }
}
@keyframes entryScale {
    from { opacity: 0; transform: translate(var(--shift-x), var(--shift-y)) rotate(var(--tilt)) scale(0.6); }
    to   { opacity: 1; transform: translate(var(--shift-x), var(--shift-y)) rotate(var(--tilt)) scale(1); }
}
@keyframes entryTilt {
    from { opacity: 0; transform: translate(var(--shift-x), var(--shift-y)) rotate(calc(var(--tilt) - 16deg)); }
    to   { opacity: 1; transform: translate(var(--shift-x), var(--shift-y)) rotate(var(--tilt)); }
}
@keyframes entryDrop {
    from { opacity: 0; transform: translate(var(--shift-x), -28px) rotate(calc(var(--tilt) + 6deg)); }
    to   { opacity: 1; transform: translate(var(--shift-x), var(--shift-y)) rotate(var(--tilt)); }
}

/* ----------------------------------------------------------------
   VERDICT FOOTER
---------------------------------------------------------------- */
.verdict {
    position: relative;
    padding: 32px 0 0;
    border-top: 4px solid #0a0a0a;
}

.verdict-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 26px;
    background: #fff;
    padding: 22px 24px;
    border: 2px solid #0a0a0a;
    box-shadow: 6px 6px 0 var(--aurora-3);
}

.siren {
    position: relative;
    width: 64px;
    height: 64px;
}

.siren-glow {
    position: absolute;
    inset: -10px;
    background: conic-gradient(from 0deg,
        var(--siren-blue) 0deg,
        var(--alert-red) 90deg,
        var(--siren-blue) 180deg,
        var(--alert-red) 270deg,
        var(--siren-blue) 360deg);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.85;
    animation: sirenSpin 2s linear infinite;
}

.siren-core {
    position: absolute;
    inset: 6px;
    background: conic-gradient(from 0deg,
        var(--siren-blue),
        var(--alert-red),
        var(--siren-blue),
        var(--alert-red),
        var(--siren-blue));
    border-radius: 50%;
    border: 3px solid #0a0a0a;
    box-shadow: inset 0 0 0 4px #fff;
    animation: sirenSpin 2s linear infinite reverse;
}

@keyframes sirenSpin {
    to { transform: rotate(360deg); }
}

.siren.cleared .siren-glow,
.siren.cleared .siren-core {
    animation-play-state: paused;
    background: var(--aurora-1);
    filter: none;
    opacity: 1;
}

.siren.cleared .siren-glow {
    opacity: 0.4;
    filter: blur(6px);
}

.verdict-text {
    display: flex;
    flex-direction: column;
}

.verdict-line {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.05;
    color: var(--text-dark);
}

.verdict-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: rgba(10, 10, 10, 0.6);
    margin-top: 4px;
}

.verdict-stamp {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.18em;
    color: var(--alert-red);
    border: 3px solid var(--alert-red);
    padding: 8px 14px;
    transform: rotate(-6deg);
    background: rgba(224, 48, 48, 0.06);
}

.verdict-stamp.closed {
    color: var(--aurora-1);
    border-color: var(--aurora-1);
    background: rgba(26, 122, 74, 0.08);
}

.bottom-tape {
    margin-top: 20px;
    background: #0a0a0a;
    color: var(--alert-amber);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.3em;
    padding: 8px 0;
    text-align: center;
    transform: rotate(0.4deg);
    border-top: 2px solid var(--alert-red);
    border-bottom: 2px solid var(--alert-red);
    overflow: hidden;
}

/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 900px) {
    .precinct-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
        box-shadow:
            0 2px 0 #000,
            0 6px 0 var(--aurora-2),
            0 12px 24px rgba(10, 10, 10, 0.45);
    }

    .sidebar-footer {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 18px;
    }

    .board {
        padding: 50px 6vw 30px;
    }

    .word-localcop {
        font-size: clamp(56px, 18vw, 110px);
    }

    .verdict-row {
        grid-template-columns: auto 1fr;
    }

    .verdict-stamp {
        grid-column: 1 / -1;
        justify-self: start;
        margin-top: 4px;
    }
}

@media (max-width: 520px) {
    .hero-meta {
        flex-direction: column;
    }

    .meta-block.tilt-r,
    .meta-block.tilt-l {
        transform: none;
    }

    .section-head {
        grid-template-columns: 1fr;
    }

    .section-rule {
        display: none;
    }
}
