:root {
    --sky-top: #d6e2eb;
    --sky-mid: #b9c9d2;
    --sky-low: #8ea17a;
    --earth-dark: #41301f;
    --earth-mid: #6c4d30;
    --wood-dark: #4a2d17;
    --wood-mid: #7a4d28;
    --wood-light: #a67345;
    --paper: #efe5d0;
    --ink: #271a12;
    --shadow: 0 24px 50px rgba(28, 19, 12, 0.28);
    --shadow-strong: 0 34px 70px rgba(23, 14, 9, 0.36);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--paper);
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    background:
        radial-gradient(circle at 18% 14%, rgba(255, 243, 217, 0.78), transparent 12%),
        radial-gradient(circle at 84% 18%, rgba(255, 240, 196, 0.3), transparent 15%),
        linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 20%, var(--sky-low) 56%, #57704f 57%, #4b5a35 64%, var(--earth-mid) 84%, var(--earth-dark) 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

body::before {
    left: 0;
    right: 0;
    bottom: 0;
    height: 28vh;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(31, 19, 11, 0.3)),
        repeating-linear-gradient(95deg, rgba(80, 57, 34, 0.14) 0 18px, rgba(55, 39, 23, 0.05) 18px 42px);
}

body::after {
    left: 0;
    right: 0;
    top: 34%;
    height: 20vh;
    background:
        radial-gradient(circle at 4% 90%, #465634 0 32px, transparent 34px),
        radial-gradient(circle at 10% 90%, #4d5d38 0 36px, transparent 38px),
        radial-gradient(circle at 16% 90%, #3d4c2e 0 30px, transparent 32px),
        radial-gradient(circle at 24% 90%, #495937 0 34px, transparent 36px),
        radial-gradient(circle at 32% 90%, #415030 0 28px, transparent 30px),
        radial-gradient(circle at 40% 90%, #4d5d38 0 38px, transparent 40px),
        radial-gradient(circle at 48% 90%, #3f4c2d 0 28px, transparent 30px),
        radial-gradient(circle at 56% 90%, #495937 0 32px, transparent 34px),
        radial-gradient(circle at 64% 90%, #415030 0 30px, transparent 32px),
        radial-gradient(circle at 72% 90%, #4b5a35 0 36px, transparent 38px),
        radial-gradient(circle at 80% 90%, #40502f 0 28px, transparent 30px),
        radial-gradient(circle at 88% 90%, #4b5a35 0 34px, transparent 36px),
        radial-gradient(circle at 96% 90%, #435233 0 30px, transparent 32px);
    opacity: 0.72;
}

body.is-aiming {
    user-select: none;
}

.page-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 28px;
    max-width: 1460px;
    margin: 0 auto;
    padding: 28px 28px 250px;
}

.side-panel {
    position: sticky;
    top: 24px;
    align-self: start;
    padding: 26px 22px 30px;
    border: 1px solid rgba(242, 223, 176, 0.36);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(133, 91, 51, 0.9), rgba(72, 46, 24, 0.95)),
        repeating-linear-gradient(12deg, rgba(255, 255, 255, 0.03) 0 18px, rgba(0, 0, 0, 0.03) 18px 36px);
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.side-panel::before,
.side-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.side-panel::before {
    inset: 14px;
    border: 1px solid rgba(249, 237, 204, 0.08);
    border-radius: 16px;
}

.side-panel::after {
    left: 18px;
    right: 18px;
    bottom: 18px;
    height: 12px;
    border-radius: 999px;
    background: rgba(22, 12, 5, 0.2);
    filter: blur(8px);
}

.panel-label,
.eyebrow,
.section-kicker {
    margin: 0 0 16px;
    color: #f0d18c;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.content-shell {
    min-width: 0;
}

.quick-links {
    display: grid;
    gap: 16px;
}

.menu-target {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 18px 16px 14px;
    border-radius: 18px;
    color: var(--paper);
    text-align: left;
    text-decoration: none;
    background:
        linear-gradient(180deg, rgba(163, 108, 64, 0.78), rgba(115, 72, 40, 0.82)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 28%);
    box-shadow:
        inset 0 1px 0 rgba(255, 243, 217, 0.1),
        inset 0 -1px 0 rgba(43, 24, 9, 0.3),
        0 8px 18px rgba(36, 21, 10, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    animation: rise-in 420ms ease both;
}

.menu-target::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 12px;
    border: 1px solid rgba(249, 236, 203, 0.08);
    pointer-events: none;
}

.menu-target:hover,
.menu-target:focus-visible {
    transform: translateX(4px);
    filter: brightness(1.03);
    box-shadow:
        inset 0 1px 0 rgba(255, 243, 217, 0.14),
        inset 0 -1px 0 rgba(43, 24, 9, 0.3),
        0 14px 24px rgba(36, 21, 10, 0.28);
    outline: none;
}

.menu-target.is-hit {
    animation: target-hit 0.55s ease both;
    box-shadow:
        inset 0 0 0 2px rgba(227, 255, 196, 0.4),
        0 0 0 1px rgba(255, 238, 190, 0.26),
        0 14px 30px rgba(79, 53, 20, 0.28);
}

.menu-target-number {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fff0bc 0%, #e0b15d 42%, #9c6a2a 100%);
    color: #4b2a13;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    box-shadow:
        inset 0 2px 4px rgba(255, 248, 225, 0.5),
        inset 0 -4px 6px rgba(109, 70, 23, 0.35),
        0 8px 14px rgba(58, 34, 12, 0.24);
}

.menu-target-title {
    color: var(--paper);
    font-family: "Rockwell", "Palatino Linotype", Georgia, serif;
    font-size: clamp(1.15rem, 1.6vw, 1.72rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(29, 16, 7, 0.35);
}

.panel-meta {
    margin: 26px 6px 0;
    color: #f6ebd7;
    font-size: 1.02rem;
    line-height: 1.6;
}

.site-header {
    padding: 4px 4px 16px;
}

#site-title {
    margin: 0;
    color: var(--paper);
    font-family: "Rockwell", "Palatino Linotype", Georgia, serif;
    font-size: clamp(3.3rem, 8vw, 7.6rem);
    font-weight: 700;
    line-height: 0.96;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 0 3px 0 rgba(57, 39, 19, 0.24), 0 20px 34px rgba(23, 15, 8, 0.2);
}

.site-intro {
    max-width: 52rem;
    margin: 18px 0 0;
    color: #f5ecdd;
    font-size: 1.08rem;
    line-height: 1.65;
}

.hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
    margin-top: 26px;
}

.hero-note {
    display: inline-block;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 10px 18px rgba(29, 19, 10, 0.16);
}

.hero-note-light {
    color: #f6ecd5;
    font-size: clamp(1.15rem, 1.9vw, 1.65rem);
}

.hero-note-accent {
    color: #f0d18c;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
}

.hero-note:nth-child(1) {
    transform: rotate(-4deg);
}

.hero-note:nth-child(2) {
    transform: rotate(6deg);
}

.hero-note:nth-child(3) {
    transform: rotate(-6deg);
}

.hero-note:nth-child(4) {
    transform: rotate(5deg);
}

.page-content {
    padding: 18px 0 36px;
}

.card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(243, 230, 194, 0.16);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(91, 60, 35, 0.92), rgba(57, 37, 22, 0.97)),
        repeating-linear-gradient(9deg, rgba(255, 255, 255, 0.02) 0 14px, rgba(0, 0, 0, 0.03) 14px 28px);
    box-shadow: var(--shadow-strong);
}

.card::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(245, 233, 197, 0.07);
    border-radius: 16px;
    pointer-events: none;
}

.section-heading,
.shooting-hud,
.arena-stage,
.status-message {
    position: relative;
    z-index: 1;
}

.section-heading h2 {
    margin: 0;
    color: var(--paper);
    font-family: "Rockwell", "Palatino Linotype", Georgia, serif;
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shooting-hud {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(245, 229, 191, 0.14);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(105, 72, 44, 0.56), rgba(57, 37, 22, 0.44));
}

.hud-rule,
.hud-status,
.hud-score,
.arena-tip {
    margin: 0;
}

.hud-rule {
    color: #eedfbc;
    font-size: 0.97rem;
}

.hud-status {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hud-status[data-tone="success"] {
    color: #e7ffd2;
}

.hud-status[data-tone="danger"] {
    color: #ffd8b4;
}

.hud-status[data-tone="neutral"] {
    color: var(--paper);
}

.hud-score {
    color: #f0d18c;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hud-meter {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.hud-meter-label,
.hud-meter-readout {
    color: #f3e9d3;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hud-meter-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(28, 18, 11, 0.82), rgba(79, 53, 28, 0.8)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 12px, transparent 12px 24px);
    box-shadow:
        inset 0 1px 1px rgba(255, 240, 211, 0.08),
        inset 0 -1px 1px rgba(12, 8, 6, 0.24);
}

.hud-meter-fill {
    position: absolute;
    inset: 0;
    transform-origin: left center;
    transform: scaleX(0);
    background:
        linear-gradient(90deg, #8c2b1f 0%, #c66d2f 38%, #f0c540 72%, #fff1aa 100%);
    box-shadow: 0 0 18px rgba(240, 197, 64, 0.28);
}

.arena-stage {
    position: relative;
    min-height: 620px;
    margin-top: 22px;
    padding: 24px 24px 42px;
    border-radius: 20px;
    border: 1px solid rgba(241, 225, 188, 0.16);
    background:
        linear-gradient(180deg, rgba(220, 229, 234, 0.9) 0%, rgba(190, 206, 214, 0.94) 20%, rgba(141, 164, 128, 0.96) 42%, rgba(116, 141, 92, 0.98) 59%, rgba(120, 95, 57, 0.98) 79%, rgba(77, 56, 35, 1) 100%);
    box-shadow: inset 0 24px 38px rgba(255, 255, 255, 0.08), inset 0 -18px 30px rgba(41, 28, 18, 0.2);
}

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

.arena-stage::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 34%;
    height: 18%;
    background:
        radial-gradient(circle at 4% 100%, rgba(62, 77, 44, 0.9) 0 36px, transparent 38px),
        radial-gradient(circle at 10% 100%, rgba(74, 92, 54, 0.92) 0 44px, transparent 46px),
        radial-gradient(circle at 17% 100%, rgba(56, 70, 40, 0.9) 0 34px, transparent 36px),
        radial-gradient(circle at 25% 100%, rgba(74, 92, 54, 0.9) 0 40px, transparent 42px),
        radial-gradient(circle at 32% 100%, rgba(63, 79, 46, 0.92) 0 32px, transparent 34px),
        radial-gradient(circle at 41% 100%, rgba(76, 93, 56, 0.92) 0 46px, transparent 48px),
        radial-gradient(circle at 50% 100%, rgba(56, 70, 40, 0.92) 0 36px, transparent 38px),
        radial-gradient(circle at 60% 100%, rgba(74, 92, 54, 0.92) 0 42px, transparent 44px),
        radial-gradient(circle at 68% 100%, rgba(63, 79, 46, 0.9) 0 32px, transparent 34px),
        radial-gradient(circle at 76% 100%, rgba(74, 92, 54, 0.92) 0 40px, transparent 42px),
        radial-gradient(circle at 84% 100%, rgba(55, 69, 39, 0.92) 0 34px, transparent 36px),
        radial-gradient(circle at 92% 100%, rgba(74, 92, 54, 0.92) 0 44px, transparent 46px);
    opacity: 0.95;
    pointer-events: none;
}

.arena-stage::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 84px;
    height: 180px;
    background:
        linear-gradient(90deg, transparent 0 8%, rgba(244, 230, 202, 0.12) 8% 8.4%, transparent 8.4% 49.6%, rgba(244, 230, 202, 0.12) 49.6% 50.1%, transparent 50.1% 91.2%, rgba(244, 230, 202, 0.12) 91.2% 91.6%, transparent 91.6% 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%);
    clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
    opacity: 0.38;
    pointer-events: none;
}

.arena-tip {
    max-width: 42rem;
    color: #2d241b;
    font-size: 1rem;
    line-height: 1.65;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.arena-words {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 18px;
    margin-top: 18px;
}

.target-field {
    position: fixed;
    inset: 18px 18px 236px;
    z-index: 12;
    overflow: hidden;
    pointer-events: none;
}

.target-field::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background:
        radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.08), transparent 18%),
        radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.06), transparent 20%),
        linear-gradient(180deg, rgba(205, 210, 214, 0.08), rgba(205, 210, 214, 0) 22%),
        linear-gradient(180deg, transparent 0 14%, rgba(201, 206, 211, 0.18) 14% 14.8%, transparent 14.8% 100%),
        linear-gradient(180deg, transparent 0 15.2%, rgba(65, 68, 71, 0.14) 15.2% 16.1%, transparent 16.1% 100%);
    opacity: 0.55;
    pointer-events: none;
}

.target-field::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 12px;
    height: 120px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(10, 8, 6, 0.12), transparent 70%);
    filter: blur(22px);
    pointer-events: none;
}

.arena-target {
    position: absolute;
    display: grid;
    justify-items: center;
    gap: 10px;
    width: 196px;
    height: 258px;
    padding: 0;
    border: 0;
    color: var(--ink);
    text-align: center;
    background: transparent;
    transform: rotate(var(--target-tilt, 0deg));
    transform-origin: center 30%;
    transition: filter 0.2s ease;
    will-change: left, top, transform;
    pointer-events: none;
}

.arena-target-rail,
.arena-target-carriage,
.arena-target-backboard,
.arena-target-grain,
.arena-target-rings,
.arena-target-center,
.arena-target-badge,
.arena-target-label {
    position: absolute;
}

.arena-target-rail {
    left: 50%;
    top: 12px;
    width: 166px;
    height: 14px;
    transform: translateX(-50%);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 36%),
        linear-gradient(90deg, #4f5356 0%, #9a9da0 25%, #ced1d4 50%, #8a8d90 76%, #4d4f52 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -2px 3px rgba(40, 41, 42, 0.32),
        0 6px 16px rgba(31, 21, 12, 0.22);
}

.arena-target-rail::before,
.arena-target-rail::after {
    content: "";
    position: absolute;
    top: 3px;
    width: 18px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #55595c, #96999d);
}

.arena-target-rail::before {
    left: 18px;
}

.arena-target-rail::after {
    right: 18px;
}

.arena-target-carriage {
    left: 50%;
    top: 20px;
    width: 56px;
    height: 44px;
    transform: translateX(-50%);
    border-radius: 14px 14px 12px 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 36%),
        linear-gradient(180deg, #3a3b3d 0%, #787b7e 44%, #4b4d50 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -3px 4px rgba(28, 29, 30, 0.34),
        0 8px 16px rgba(34, 24, 14, 0.24);
}

.arena-target-carriage::before,
.arena-target-carriage::after {
    content: "";
    position: absolute;
    top: -6px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 35%, #f2f3f4 0%, #adb0b3 42%, #56595c 100%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.arena-target-carriage::before {
    left: 8px;
}

.arena-target-carriage::after {
    right: 8px;
}

.arena-target-backboard {
    left: 50%;
    top: 52px;
    width: 158px;
    height: 158px;
    transform: translateX(-50%);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(180deg, #7f6136 0%, #d0ad74 18%, #ab7f4b 100%);
    box-shadow:
        inset 0 0 0 2px rgba(255, 242, 214, 0.24),
        inset 0 -8px 12px rgba(105, 74, 35, 0.3),
        0 20px 34px rgba(44, 28, 14, 0.24);
}

.arena-target-backboard::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: -18px;
    height: 20px;
    background:
        linear-gradient(90deg, transparent 0 16%, rgba(93, 96, 99, 0.92) 16% 18%, transparent 18% 82%, rgba(93, 96, 99, 0.92) 82% 84%, transparent 84% 100%);
}

.arena-target-backboard::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 16px;
    border: 1px solid rgba(255, 245, 221, 0.14);
}

.arena-target-grain {
    inset: 10px;
    border-radius: 14px;
    background:
        linear-gradient(140deg, rgba(255, 248, 228, 0.16), transparent 40%),
        repeating-linear-gradient(12deg, rgba(111, 82, 41, 0.22) 0 2px, transparent 2px 8px),
        repeating-linear-gradient(104deg, rgba(255, 240, 206, 0.08) 0 3px, rgba(173, 132, 72, 0.14) 3px 10px),
        linear-gradient(180deg, #d9bf84 0%, #ba8f58 100%);
    box-shadow:
        inset 0 10px 10px rgba(255, 248, 228, 0.12),
        inset 0 -14px 16px rgba(121, 88, 44, 0.22);
}

.arena-target-rings {
    left: 50%;
    top: 50%;
    width: 116px;
    height: 116px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    border: 4px solid rgba(235, 231, 221, 0.88);
    background:
        radial-gradient(circle, #f7d33b 0 10%, #f0c42f 10% 20%, #c7392a 20% 34%, #be3327 34% 48%, #224ea0 48% 62%, #173d80 62% 76%, #1e1d1d 76% 88%, #efede8 88% 100%);
    box-shadow:
        inset 0 0 0 3px rgba(44, 42, 40, 0.05),
        inset 0 10px 14px rgba(255, 255, 255, 0.16),
        inset 0 -10px 18px rgba(0, 0, 0, 0.18),
        0 16px 26px rgba(49, 33, 19, 0.22);
}

.arena-target:hover,
.arena-target:focus-visible {
    filter: brightness(1.04);
    outline: none;
}

.arena-target.is-hit {
    filter: brightness(1.06);
}

.arena-target.is-hit .arena-target-rings {
    animation: target-face-hit 0.58s ease both;
}

.arena-target-rings::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background:
        repeating-radial-gradient(circle, transparent 0 7px, rgba(17, 17, 17, 0.24) 7px 7.8px),
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.22), transparent 28%);
    mix-blend-mode: soft-light;
}

.arena-target-rings::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background:
        repeating-linear-gradient(32deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 8px),
        radial-gradient(circle at 66% 72%, rgba(0, 0, 0, 0.12), transparent 18%);
    opacity: 0.72;
}

.arena-target-center {
    inset: 50%;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: radial-gradient(circle, #fff3a8 0%, #e5b533 72%, #8c6218 100%);
    box-shadow: 0 0 8px rgba(255, 228, 124, 0.18);
    transform: translate(-50%, -50%);
}

.arena-target-badge {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    right: 10px;
    top: 72px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 36%),
        linear-gradient(180deg, #745115 0%, #c99f42 50%, #7a5618 100%);
    color: #3f2a09;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow:
        inset 0 1px 0 rgba(255, 246, 208, 0.48),
        inset 0 -2px 2px rgba(106, 72, 16, 0.28),
        0 10px 16px rgba(53, 35, 16, 0.18);
}

.arena-target-label {
    display: block;
    left: 50%;
    bottom: 12px;
    width: max-content;
    max-width: 176px;
    padding: 9px 12px;
    border-radius: 12px;
    color: #f3ecdf;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.28;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background:
        linear-gradient(180deg, rgba(111, 73, 38, 0.96), rgba(68, 42, 20, 0.98)),
        repeating-linear-gradient(8deg, rgba(255, 255, 255, 0.04) 0 8px, rgba(0, 0, 0, 0.04) 8px 16px);
    box-shadow:
        inset 0 1px 0 rgba(255, 239, 208, 0.16),
        0 10px 18px rgba(53, 31, 14, 0.2);
    transform: translateX(-50%);
    text-wrap: balance;
}

.arena-target.is-moving .arena-target-backboard {
    filter: saturate(1.06) brightness(1.02);
}

.arena-target.is-moving .arena-target-rail {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -2px 3px rgba(40, 41, 42, 0.32),
        0 10px 20px rgba(31, 21, 12, 0.28);
}

.arena-target.is-moving .arena-target-carriage {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -3px 4px rgba(28, 29, 30, 0.34),
        0 12px 22px rgba(34, 24, 14, 0.28);
}

.arena-word {
    display: inline-block;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.arena-word-light {
    color: rgba(48, 36, 24, 0.86);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.arena-word-accent {
    color: rgba(120, 72, 31, 0.88);
    font-size: clamp(0.96rem, 1.8vw, 1.12rem);
}

.arena-word:nth-child(1) {
    transform: rotate(-6deg);
}

.arena-word:nth-child(2) {
    transform: rotate(7deg);
}

.arena-word:nth-child(3) {
    transform: rotate(-4deg);
}

.arena-word:nth-child(4) {
    transform: rotate(6deg);
}

.status-message {
    margin: 20px 0 0;
    color: #eadbbc;
}

.site-footer {
    padding: 0 4px 24px;
    color: rgba(243, 232, 207, 0.78);
    font-size: 0.92rem;
}

code {
    font-family: Consolas, "Courier New", monospace;
}

.launcher-shell {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 0 18px 18px;
    pointer-events: none;
}

.launcher-shell::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 240px;
    background:
        linear-gradient(180deg, rgba(43, 29, 18, 0), rgba(26, 18, 12, 0.82)),
        radial-gradient(ellipse at center bottom, rgba(51, 33, 20, 0.62), transparent 62%),
        linear-gradient(180deg, transparent 0 38%, rgba(14, 10, 7, 0.18) 100%);
    pointer-events: none;
}

.launcher {
    --aim-angle: -90deg;
    --aim-length: 110px;
    --draw-distance: 0px;
    --draw-ratio: 0;
    --pull-x: 0px;
    --pull-y: 0px;
    position: relative;
    pointer-events: auto;
    max-width: 640px;
    margin: 0 auto;
    padding: 16px 24px 30px;
    border: 1px solid rgba(244, 231, 203, 0.14);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(89, 61, 37, 0.22), rgba(35, 24, 17, 0.52)),
        linear-gradient(180deg, rgba(50, 34, 22, 0.88), rgba(23, 16, 11, 0.96)),
        repeating-linear-gradient(8deg, rgba(255, 255, 255, 0.03) 0 14px, rgba(0, 0, 0, 0.03) 14px 28px);
    box-shadow:
        0 30px 54px rgba(18, 11, 7, 0.38),
        inset 0 1px 0 rgba(255, 241, 214, 0.06);
    touch-action: none;
}

.launcher::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 16px;
    border: 1px solid rgba(247, 233, 197, 0.06);
    pointer-events: none;
}

.launcher::after {
    content: "";
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(11, 8, 6, 0.28);
    filter: blur(8px);
    pointer-events: none;
}

.launcher.is-miss {
    animation: launcher-bump 0.32s ease;
}

.launcher-label {
    margin: 0;
    color: #eadfc5;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
}

.bow-rig {
    position: relative;
    width: min(430px, 100%);
    height: 240px;
    margin: 10px auto 0;
}

.bow-shadow {
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: 220px;
    height: 54px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(11, 7, 5, 0.44), transparent 68%);
    filter: blur(12px);
}

.bow-limb,
.bow-tip,
.bow-riser,
.bow-grip,
.bow-rest,
.bow-string,
.draw-nock,
.arrow-visual {
    position: absolute;
}

.bow-limb {
    left: 50%;
    width: 34px;
    height: 132px;
    border-radius: 50% 50% 24px 24px;
    background:
        linear-gradient(90deg, #24160d 0%, #5a3a20 18%, #bf8b57 48%, #693f1f 76%, #21140c 100%);
    box-shadow:
        inset 1px 0 2px rgba(255, 241, 215, 0.12),
        inset -1px 0 2px rgba(34, 19, 9, 0.34),
        0 14px 20px rgba(20, 12, 8, 0.2);
    clip-path: polygon(50% 0%, 72% 4%, 100% 18%, 86% 42%, 70% 74%, 58% 100%, 42% 100%, 30% 74%, 14% 42%, 0 18%, 28% 4%);
}

.bow-limb-top {
    top: 10px;
    transform-origin: 50% 100%;
    transform: translateX(-50%) rotate(calc(12deg + (var(--draw-ratio) * 7deg)));
}

.bow-limb-bottom {
    bottom: 10px;
    transform-origin: 50% 0%;
    transform: translateX(-50%) rotate(calc(-12deg - (var(--draw-ratio) * 7deg))) scaleY(-1);
}

.bow-tip {
    left: 50%;
    width: 10px;
    height: 22px;
    margin-left: -5px;
    border-radius: 999px;
    background: linear-gradient(180deg, #e4dfd7 0%, #a8a29b 42%, #4f4a45 100%);
    box-shadow: 0 2px 4px rgba(17, 10, 6, 0.18);
}

.bow-tip-top {
    top: 2px;
}

.bow-tip-bottom {
    bottom: 2px;
}

.bow-riser {
    left: 50%;
    top: 72px;
    width: 34px;
    height: 96px;
    transform: translateX(-50%);
    border-radius: 18px;
    background:
        linear-gradient(90deg, #1c120b 0%, #6f4626 20%, #cc9861 48%, #774822 78%, #1a110b 100%);
    box-shadow:
        inset 1px 0 3px rgba(255, 239, 211, 0.14),
        inset -2px 0 3px rgba(27, 16, 9, 0.32),
        0 12px 20px rgba(20, 12, 7, 0.22);
}

.bow-riser::before {
    content: "";
    position: absolute;
    inset: 10px 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 237, 206, 0.12);
}

.bow-grip {
    left: 50%;
    top: 102px;
    width: 24px;
    height: 46px;
    transform: translateX(-50%);
    border-radius: 14px;
    background:
        linear-gradient(90deg, #1a120d 0%, #3a2b23 28%, #6b5447 52%, #34261e 78%, #17100c 100%);
    box-shadow:
        inset 0 1px 1px rgba(255, 245, 224, 0.08),
        inset 0 -2px 3px rgba(12, 8, 6, 0.3);
}

.bow-rest {
    left: calc(50% + 10px);
    top: 118px;
    width: 18px;
    height: 6px;
    border-radius: 4px;
    background: linear-gradient(180deg, #b7bbbf 0%, #666b70 100%);
    box-shadow: 0 2px 3px rgba(18, 10, 6, 0.22);
}

.bow-string {
    left: 50%;
    top: 118px;
    height: 2px;
    width: calc(92px + (var(--draw-ratio) * 42px));
    background: linear-gradient(90deg, rgba(249, 244, 229, 0.98), rgba(218, 211, 198, 0.95));
    transform-origin: 0 50%;
    box-shadow: 0 0 6px rgba(255, 249, 236, 0.2);
}

.bow-string-top {
    transform: translate(calc(var(--pull-x) * 0.34), calc(var(--pull-y) * 0.34)) rotate(calc(-74deg - (var(--draw-ratio) * 7deg)));
}

.bow-string-bottom {
    transform: translate(calc(var(--pull-x) * 0.34), calc(var(--pull-y) * 0.34)) rotate(calc(74deg + (var(--draw-ratio) * 7deg)));
}

.draw-nock {
    left: 50%;
    top: 118px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, #d6cbc0 0%, #7a726a 100%);
    box-shadow: 0 0 8px rgba(255, 246, 224, 0.12);
    transform: translate(calc(-50% + (var(--pull-x) * 0.34)), calc(-50% + (var(--pull-y) * 0.34)));
}

.arrow-visual {
    left: 50%;
    height: 10px;
    pointer-events: none;
    transform-origin: 18px 50%;
}

.aim-arrow {
    top: 118px;
    width: var(--aim-length);
    opacity: 0.42;
    transform: translate(calc(-18px + (var(--pull-x) * 0.42)), calc(-50% + (var(--pull-y) * 0.42))) rotate(var(--aim-angle));
    transition: width 0.08s linear, transform 0.08s linear, opacity 0.08s linear;
    filter: drop-shadow(0 3px 4px rgba(19, 11, 8, 0.28));
}

body.is-aiming .aim-arrow {
    opacity: 1;
}

.arrow-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 60;
}

.trajectory-preview {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.trajectory-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 250, 235, 0.98), rgba(241, 197, 70, 0.84) 56%, rgba(154, 88, 25, 0.26) 100%);
    box-shadow:
        0 0 12px rgba(241, 197, 70, 0.32),
        0 0 2px rgba(255, 255, 255, 0.44);
}

.flying-arrow {
    position: fixed;
    top: 0;
    left: 0;
    width: 118px;
    filter: drop-shadow(0 3px 6px rgba(19, 11, 8, 0.3));
}

.arrow-nock,
.arrow-fletching,
.arrow-shaft,
.arrow-wrap,
.arrow-head {
    position: absolute;
}

.arrow-nock {
    left: 10px;
    top: 50%;
    width: 8px;
    height: 12px;
    border: 2px solid #d8d4cf;
    border-right: 0;
    border-radius: 3px 0 0 3px;
    transform: translateY(-50%);
}

.arrow-fletching {
    left: 16px;
    width: 18px;
    height: 10px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 55%),
        linear-gradient(180deg, #8b3424 0%, #c15d3d 48%, #702719 100%);
    clip-path: polygon(0 50%, 100% 0, 82% 50%, 100% 100%);
    filter: drop-shadow(0 1px 1px rgba(24, 14, 7, 0.18));
}

.arrow-fletching-top {
    top: -1px;
    transform: rotate(-12deg);
}

.arrow-fletching-bottom {
    top: 4px;
    transform: scaleY(-1) rotate(-12deg);
}

.arrow-shaft {
    left: 26px;
    right: 20px;
    top: 3px;
    height: 4px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, #4f3117 0%, #b98653 16%, #d0b089 28%, #b88756 62%, #724525 100%);
    box-shadow:
        inset 0 1px 1px rgba(255, 243, 217, 0.22),
        inset 0 -1px 1px rgba(72, 45, 22, 0.24);
}

.arrow-wrap {
    left: 36px;
    top: 1px;
    width: 12px;
    height: 8px;
    border-radius: 999px;
    background:
        repeating-linear-gradient(90deg, #acb4b9 0 2px, #5a646a 2px 4px);
}

.arrow-head {
    top: 50%;
    right: 0;
    width: 20px;
    height: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 32%),
        linear-gradient(90deg, #9fa6ac 0%, #d8dde1 48%, #788089 100%);
    clip-path: polygon(0 50%, 64% 0, 100% 50%, 64% 100%);
    transform: translateY(-50%);
    box-shadow: 0 1px 2px rgba(19, 11, 8, 0.22);
}

[hidden] {
    display: none !important;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes target-hit {
    0% {
        transform: scale(1);
    }

    32% {
        transform: scale(1.06);
    }

    70% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes target-face-hit {
    0% {
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
    }

    28% {
        transform: translate(-50%, -50%) scale(1.12);
        filter: brightness(1.08);
    }

    68% {
        transform: translate(-50%, -50%) scale(0.97);
        filter: brightness(0.98);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
    }
}

@keyframes launcher-bump {
    0%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-3px);
    }

    60% {
        transform: translateY(2px);
    }
}

@media (max-width: 1020px) {
    .page-shell {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .side-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .page-shell {
        padding: 18px 18px 240px;
    }

    #site-title {
        font-size: clamp(2.8rem, 13vw, 4.6rem);
    }

    .hero-notes,
    .arena-words {
        gap: 10px 14px;
    }

    .menu-target {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 14px;
        padding-right: 14px;
    }

    .menu-target-number {
        width: 54px;
        height: 54px;
        font-size: 1.3rem;
    }

    .menu-target-title {
        font-size: 1.02rem;
    }

    .card {
        padding: 20px;
    }

    .hud-meter {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hud-meter-readout {
        justify-self: end;
    }

    .arena-stage {
        min-height: 620px;
        padding: 20px 18px 36px;
    }

    .target-field {
        inset: 14px 14px 220px;
    }

    .arena-target {
        width: 164px;
        height: 220px;
    }

    .arena-target-rail {
        width: 138px;
    }

    .arena-target-carriage {
        width: 48px;
    }

    .arena-target-backboard {
        top: 48px;
        width: 136px;
        height: 136px;
    }

    .arena-target-rings {
        width: 100px;
        height: 100px;
    }

    .arena-target-label {
        max-width: 148px;
        font-size: 0.66rem;
    }

    .launcher {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .bow-rig {
        height: 220px;
    }

    .aim-arrow {
        top: 110px;
    }
}
