@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap');

html.halloween {
    --cyber-blue: #ff8a1f;
    --electric-blue: #e2570a;
    --deep-blue: #170f1d;
    --darker-blue: #0b070e;
    --neon-cyan: #a3e635;
    --purple-accent: #a855f7;
    --glow-cyan: rgba(255,138,31,.45);
    --glow-blue: rgba(226,87,10,.35);
    --glow-purple: rgba(168,85,247,.35);
    --card-border-hover: rgba(255,138,31,.5);
}

html.halloween .grid-lines {
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,138,31,.05), transparent 60%);
}

html.halloween nav {
    background: rgba(11,7,14,.72);
}

html.halloween nav.scrolled {
    background: rgba(11,7,14,.92);
    border-bottom-color: rgba(255,138,31,.18);
}

html.halloween .cursor-glow {
    background: radial-gradient(circle, rgba(255,138,31,.05), transparent 70%);
}

html.halloween .section-divider {
    background: linear-gradient(90deg, transparent, rgba(255,138,31,.25), transparent);
}

html.halloween .nav-back:hover {
    background: rgba(255,138,31,.1);
    border-color: rgba(255,138,31,.4);
}

html.halloween .card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 40px rgba(255,138,31,.06);
}

html.halloween .btn-secondary:hover {
    background: rgba(255,138,31,.08);
    border-color: rgba(255,138,31,.4);
}

html.halloween .btn-ghost:hover {
    border-color: rgba(255,138,31,.35);
    background: rgba(255,138,31,.08);
}

html.halloween input[type="text"]:focus,
html.halloween input[type="number"]:focus,
html.halloween input[type="email"]:focus,
html.halloween textarea:focus,
html.halloween select:focus {
    background: rgba(255,138,31,.05);
    box-shadow: 0 0 0 3px rgba(255,138,31,0.12);
}

html.halloween .code-output .copy-btn {
    background: rgba(255,138,31,.1);
    border: 1px solid rgba(255,138,31,.3);
}

html.halloween .badge-cyan {
    border-color: rgba(255,138,31,0.3);
    background: rgba(255,138,31,0.1);
}

html.halloween .badge-purple {
    border-color: rgba(168,85,247,0.3);
    background: rgba(168,85,247,0.1);
}

html.halloween footer {
    background: linear-gradient(180deg, transparent 0%, rgba(11,7,14,.9) 60%);
}

html.halloween ::-webkit-scrollbar-thumb {
    background: rgba(255,138,31,0.3);
}

html.halloween ::-webkit-scrollbar-thumb:hover {
    background: rgba(255,138,31,0.55);
}

html.halloween ::selection {
    background: rgba(255,138,31,0.3);
}

html.halloween .cmdk-trigger:hover {
    border-color: rgba(255,138,31,.4);
    background: rgba(255,138,31,.06);
}

html.halloween .cmdk-item.active,
html.halloween .cmdk-item:hover {
    background: rgba(255,138,31,.1);
}

html.halloween .toast-global {
    border: 1px solid rgba(255,138,31,.3);
}

html.halloween .tool-pin:hover {
    border-color: rgba(255,138,31,.4);
}

html.halloween .strip-chip:hover {
    border-color: rgba(255,138,31,.4);
    background: rgba(255,138,31,.08);
}

html.halloween .tool-row::before {
    background: linear-gradient(90deg, rgba(255,138,31,.09), transparent 70%);
}

html.halloween .tool-row:hover .tool-row-icon {
    border-color: rgba(255,138,31,.4);
    background: rgba(255,138,31,.08);
}

html.halloween .wip-icon {
    background: rgba(255,138,31,.1);
    border: 1px solid rgba(255,138,31,.3);
}

html.halloween .terminal {
    background: rgba(11,7,14,.85);
}

html.halloween .format-btn:hover {
    border-color: rgba(255,138,31,.4);
    background: rgba(255,138,31,.08);
}

html.halloween .output-tab.active {
    border-color: rgba(255,138,31,.45);
    background: rgba(255,138,31,.1);
}

html.halloween .cmd-item {
    border: 1px solid rgba(255,138,31,0.14);
}

html.halloween .cmd-item:hover {
    border-color: rgba(255,138,31,0.35);
}

html.halloween .quick-row button:hover {
    border-color: rgba(255,138,31,.4);
    background: rgba(255,138,31,.08);
}

html.halloween .tile:hover {
    border-color: rgba(255,138,31,.4);
}

html.halloween .tile.highlight {
    border-color: rgba(255,138,31,.35);
    background: rgba(255,138,31,.06);
}

html.halloween .out-tab.active {
    border-color: rgba(255,138,31,.45);
    background: rgba(255,138,31,.1);
}

html.halloween .page-badge {
    background: rgba(255,138,31,0.1);
}

html.halloween .main-card {
    border: 2px solid rgba(255,138,31,0.2);
    box-shadow: 0 25px 70px rgba(255,138,31,0.2);
}

html.halloween .type-btn {
    border: 2px solid rgba(255,138,31,0.3);
}

html.halloween .size-btn {
    border: 2px solid rgba(255,138,31,0.3);
}

html.halloween .inv-description {
    border-left: 2px solid rgba(255,138,31,0.3);
}

html.halloween .slot-container {
    border: 2px solid rgba(255,138,31,0.2);
}

html.halloween .slot-CONTAINER {
    background: rgba(255,138,31,0.05);
    border-color: rgba(255,138,31,0.15);
}

html.halloween .slot-CONTAINER.selected {
    background: rgba(255,138,31,0.3);
    box-shadow: 0 0 15px rgba(255,138,31,0.4);
}

html.halloween .slot-CRAFTING {
    background: rgba(168,85,247,0.08);
    border-color: rgba(168,85,247,0.2);
    color: rgba(168,85,247,0.6);
}

html.halloween .slot-CRAFTING.selected {
    background: rgba(168,85,247,0.3);
    box-shadow: 0 0 15px rgba(168,85,247,0.4);
}

html.halloween .slot-QUICKBAR {
    background: rgba(163,230,53,0.06);
    border-color: rgba(163,230,53,0.2);
    color: rgba(163,230,53,0.5);
}

html.halloween .slot-QUICKBAR.selected {
    background: rgba(163,230,53,0.3);
    box-shadow: 0 0 15px rgba(163,230,53,0.4);
}

html.halloween .quick-btn {
    border: 2px solid rgba(255,138,31,0.3);
}

html.halloween .results-section {
    background: rgba(255,138,31,0.03);
    border: 2px solid rgba(255,138,31,0.2);
}

html.halloween .result-item {
    border-bottom: 1px solid rgba(255,138,31,0.1);
}

html.halloween .btn-primary:hover:not(:disabled) {
    box-shadow: 0 20px 60px rgba(255,138,31,0.6);
}

html.halloween .info-panel {
    background: rgba(255,138,31,0.03);
    border: 2px solid rgba(255,138,31,0.2);
}

html.halloween .shape {
    border: 2px solid rgba(255,138,31,0.15);
}

html.halloween {
    --row-hover: rgba(255,138,31, 0.06);
    --border-normal: rgba(255,138,31, 0.22);
}

html.halloween .page-badge {
    background: rgba(255,138,31,0.09);
}

html.halloween .stats-row {
    background: rgba(255,138,31,0.03);
}

html.halloween .search-wrapper .search-input {
    background: rgba(255,138,31,0.05);
}

html.halloween .search-wrapper .search-input:focus {
    background: rgba(255,138,31,0.09);
    box-shadow: 0 0 20px rgba(255,138,31,0.25);
}

html.halloween .filter-btn {
    background: rgba(255,138,31,0.06);
}

html.halloween .filter-btn.cat-tools.active {
    box-shadow: 0 0 14px rgba(168,85,247,0.4);
}

html.halloween .version-select,
html.halloween .sort-select {
    background: rgba(255,138,31,0.05);
}

html.halloween .dev-panel {
    border: 2px solid rgba(168,85,247,0.35);
}

html.halloween .dev-tab {
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.3);
}

html.halloween .dev-tab.active,
html.halloween .dev-tab:hover {
    background: rgba(168,85,247,0.3);
}

html.halloween .items-table thead tr {
    background: rgba(255,138,31,0.1);
}

html.halloween .items-table tbody tr:hover {
    border-color: rgba(255,138,31,0.2);
}

html.halloween .byte-badge {
    background: rgba(255,138,31,0.09);
    border: 1px solid rgba(255,138,31,0.25);
}

html.halloween .cat-pill.tools {
    border-color: rgba(168,85,247,0.3);
    background: rgba(168,85,247,0.07);
}

html.halloween .toast {
    box-shadow: 0 8px 28px rgba(255,138,31,0.45);
}

html.halloween .detail-field {
    background: rgba(255,138,31,0.05);
}

html.halloween .detail-wiki-btn {
    background: rgba(255,138,31,0.1);
}

html.halloween .tooltip-stage {
    background: radial-gradient(ellipse at 50% 40%, rgba(255,138,31,.06), transparent 70%);
}

html.halloween .link-btn.featured {
    border-color: rgba(255,138,31,.35);
    background: linear-gradient(135deg, rgba(255,138,31,.12), rgba(163,230,53,.05));
}

html.halloween .share-row button:hover,
html.halloween .share-row a:hover {
    border-color: rgba(255,138,31,.45);
    background: rgba(255,138,31,.08);
}

html.halloween .node-item {
    border: 1px solid rgba(255,138,31,0.14);
}

html.halloween .node-item:hover {
    border-color: rgba(255,138,31,0.35);
}

html.halloween .node-default.def-op {
    border-color: rgba(168,85,247,0.3);
    background: rgba(168,85,247,0.07);
}

html.halloween .player-head {
    border-bottom: 1px solid rgba(255,138,31,0.12);
}

html.halloween .player-avatar {
    border: 2px solid rgba(255,138,31,0.3);
}

html.halloween .skin-preview {
    border: 1px solid rgba(255,138,31,0.12);
}

html.halloween .uuid-item {
    border: 1px solid rgba(255,138,31,0.12);
}

html.halloween .uuid-copy {
    border: 1px solid rgba(255,138,31,0.3);
}

html.halloween .spinner {
    border: 2px solid rgba(255,138,31,0.2);
}

html.halloween .cape-box {
    border: 1px solid rgba(255,138,31,0.12);
}

html.halloween .cape-face {
    border: 2px solid rgba(255,138,31,0.3);
}

html.halloween .cape-empty {
    border: 2px dashed rgba(255,138,31,0.25);
}

html.halloween .page-badge {
    background: rgba(255,138,31, 0.1);
}

html.halloween .section-card {
    border: 2px solid rgba(255,138,31, 0.2);
}

html.halloween .calc-input {
    background: rgba(255,138,31, 0.05);
    border: 2px solid rgba(255,138,31, 0.3);
}

html.halloween .calc-input:focus {
    background: rgba(255,138,31, 0.1);
    box-shadow: 0 0 20px rgba(255,138,31, 0.3);
}

html.halloween .btn-primary:hover {
    box-shadow: 0 15px 50px rgba(255,138,31, 0.6);
}

html.halloween .code-output {
    border: 2px solid rgba(255,138,31, 0.3);
}

html.halloween .download-btn:hover {
    box-shadow: 0 0 20px rgba(168,85,247, 0.6);
}

html.halloween .toast {
    box-shadow: 0 10px 30px rgba(255,138,31, 0.4);
}

html.halloween .calc-divider::before,
html.halloween .calc-divider::after {
    background: rgba(255,138,31,0.12);
}

html.halloween .result-item {
    border: 1px solid rgba(255,138,31,0.12);
}

html.halloween .result-item.highlight {
    border-color: rgba(255,138,31,0.35);
    background: rgba(255,138,31,0.05);
}

html.halloween .preset-btn {
    background: rgba(255,138,31,0.06);
    border: 1px solid rgba(255,138,31,0.18);
}

html.halloween .preset-btn:hover {
    background: rgba(255,138,31,0.12);
    border-color: rgba(255,138,31,0.35);
}

html.halloween .ref-table th {
    border-bottom: 1px solid rgba(255,138,31,0.15);
}

html.halloween .ref-table td {
    border-bottom: 1px solid rgba(255,138,31,0.06);
}

html.halloween .ref-table tr:hover td {
    background: rgba(255,138,31,0.03);
}

html.halloween .mode-tab.active {
    border-color: rgba(255,138,31,.45);
    background: rgba(255,138,31,.1);
}

html.halloween .mini-btn {
    background: rgba(255,138,31,.1);
    border: 1px solid rgba(255,138,31,.3);
}

html.halloween .fmt:hover {
    border-color: rgba(255,138,31,.4);
}

html.halloween .tool-btn:hover {
    border-color: rgba(255,138,31,.45);
    background: rgba(255,138,31,.08);
}

html.halloween .editor:focus-within {
    box-shadow: 0 0 0 3px rgba(255,138,31,0.12);
}

html.halloween .issue-line {
    background: rgba(255,138,31,.1);
    border: 1px solid rgba(255,138,31,.3);
}

html.halloween body { background: #0b070e; }

html.halloween .bg-gradient::before { background: radial-gradient(circle, #ff8a1f, transparent 65%); opacity: .2; }
html.halloween .bg-gradient::after { background: radial-gradient(circle, #a855f7, transparent 65%); opacity: .24; }

html.halloween .hero-headline .accent .line-inner,
html.halloween .section-title .accent {
    background: linear-gradient(120deg, #ff8a1f 10%, #ffb347 45%, #a855f7 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

html.halloween .nav-logo .logo-tag {
    color: #ff8a1f;
    text-shadow: 0 0 6px rgba(255,138,31,.75), 0 0 16px rgba(255,90,0,.45);
    animation: hw-candle 3.2s infinite;
}
@keyframes hw-candle {
    0%, 100% { opacity: 1; }
    8% { opacity: .78; }
    10% { opacity: 1; }
    46% { opacity: .9; }
    48% { opacity: 1; }
    71% { opacity: .82; }
    73% { opacity: 1; }
}

.hw-pumpkin { width: 26px; height: 26px; margin-left: .15rem; flex: 0 0 auto; filter: drop-shadow(0 0 6px rgba(255,138,31,.55)); }
.hw-pumpkin .hw-face { animation: hw-face 2.6s infinite; }
@keyframes hw-face {
    0%, 100% { fill: #ffd166; }
    30% { fill: #ffb347; }
    32% { fill: #ffe39a; }
    60% { fill: #ffc04d; }
}

.hw-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    margin-bottom: 1.4rem; padding: .35rem 1rem .35rem .8rem;
    font-family: 'Creepster', 'Space Grotesk', cursive; font-size: 1.15rem; letter-spacing: 1.5px;
    color: #ffb347; background: rgba(255,138,31,.08);
    border: 1px solid rgba(255,138,31,.3); border-radius: 999px;
    text-shadow: 0 0 10px rgba(255,138,31,.5);
    width: fit-content;
}
.hw-badge svg { width: 22px; height: 22px; }

.hw-web {
    position: absolute; top: var(--nav-height); left: 0; z-index: 2;
    width: 190px; height: 190px; pointer-events: none; opacity: .28;
}
.hw-web.right { left: auto; right: 0; transform: scaleX(-1); width: 130px; height: 130px; opacity: .2; }

.hw-spider {
    position: fixed; top: var(--nav-height); right: 8%; z-index: 999;
    width: 36px; display: flex; flex-direction: column; align-items: center;
    pointer-events: none;
}
.hw-spider-thread {
    width: 1px; height: 0; background: linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.35));
    animation: hw-drop 2.4s cubic-bezier(.3,1.3,.5,1) .8s forwards;
}
.hw-spider-body {
    pointer-events: auto; cursor: pointer;
    width: 36px; height: 36px; transform-origin: 50% -60px;
    animation: hw-swing 4.5s ease-in-out infinite;
}
.hw-spider-body svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 1.5px rgba(200,170,255,.7)) drop-shadow(0 0 6px rgba(168,85,247,.4)); }
.hw-spider.up .hw-spider-thread { animation: none; height: 6px; transition: height .35s cubic-bezier(.5,0,.6,1); }
@keyframes hw-drop { to { height: 96px; } }
@keyframes hw-swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.hw-spider-body.hw-angry { animation: hw-angry .5s ease-in-out; }
.hw-spider-body.hw-angry svg { filter: drop-shadow(0 0 2px rgba(255,59,59,.9)) drop-shadow(0 0 12px rgba(255,59,59,.6)); }
@keyframes hw-angry {
    0%, 100% { transform: rotate(0) scale(1); }
    15% { transform: rotate(-14deg) scale(1.18); }
    35% { transform: rotate(12deg) scale(1.18); }
    55% { transform: rotate(-9deg) scale(1.12); }
    75% { transform: rotate(6deg) scale(1.06); }
}
.hw-spider-bubble {
    position: absolute; bottom: -6px; right: calc(100% + 8px);
    padding: .35rem .65rem; border-radius: 10px 10px 2px 10px;
    background: rgba(20,12,26,.92); border: 1px solid rgba(255,138,31,.45);
    color: #ffb36b; font-family: 'JetBrains Mono', monospace; font-size: .72rem;
    white-space: nowrap; box-shadow: 0 0 14px rgba(255,138,31,.2);
    opacity: 0; transform: translateY(4px) scale(.9); transform-origin: right bottom;
    transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.hw-spider-bubble.show { opacity: 1; transform: translateY(0) scale(1); }
.hw-baby {
    position: fixed; width: 20px; height: 20px; z-index: 999; pointer-events: none;
}
.hw-baby svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 1.5px rgba(220,190,255,.9)) drop-shadow(0 0 6px rgba(255,138,31,.55)); }
.hw-spider-body .leg { animation: hw-legs 1.6s ease-in-out infinite; transform-origin: 18px 18px; }
.hw-spider-body .leg.r { animation-delay: -.8s; }
@keyframes hw-legs { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(4deg); } }

.hw-bats { position: fixed; inset: 0; z-index: 998; pointer-events: none; overflow: hidden; }
.hw-bat {
    position: absolute; left: 0; top: 0; width: 56px; height: 28px;
    transform-origin: 50% 50%; will-change: transform;
}
.hw-bat svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 1.5px rgba(255,170,90,.9)) drop-shadow(0 0 8px rgba(255,138,31,.45)); transition: filter .2s; }
.hw-bat .wing { transform-box: fill-box; animation: hw-flap .22s ease-in-out infinite alternate; }
.hw-bat .wing.l { transform-origin: 100% 40%; }
.hw-bat .wing.r { transform-origin: 0% 40%; animation-name: hw-flap-r; }
.hw-bat.panic .wing { animation-duration: .085s; }
.hw-bat.panic svg { filter: drop-shadow(0 0 2px rgba(255,190,110,1)) drop-shadow(0 0 12px rgba(255,138,31,.75)); }
@keyframes hw-flap { 0% { transform: scaleY(1) rotate(0deg); } 100% { transform: scaleY(.45) rotate(-8deg); } }
@keyframes hw-flap-r { 0% { transform: scaleY(1) rotate(0deg); } 100% { transform: scaleY(.45) rotate(8deg); } }

.hw-fog { position: fixed; left: 0; right: 0; bottom: 0; height: 38vh; z-index: -1; pointer-events: none; overflow: hidden; }
.hw-fog::before, .hw-fog::after {
    content: ''; position: absolute; bottom: -12vh; left: -25%; width: 150%; height: 46vh;
    background:
        radial-gradient(ellipse 22% 55% at 15% 70%, rgba(168,140,200,.16), transparent 70%),
        radial-gradient(ellipse 26% 50% at 45% 80%, rgba(140,120,170,.14), transparent 70%),
        radial-gradient(ellipse 24% 60% at 75% 75%, rgba(170,150,200,.15), transparent 70%);
    filter: blur(18px);
    animation: hw-fog 38s ease-in-out infinite alternate;
}
.hw-fog::after { animation-duration: 52s; animation-direction: alternate-reverse; opacity: .8; bottom: -16vh; }
@keyframes hw-fog { from { transform: translateX(-8%); } to { transform: translateX(8%); } }

.hw-moon {
    position: absolute; top: calc(var(--nav-height) + 40px); right: 16%; z-index: -1;
    width: 130px; height: 130px; border-radius: 50%; pointer-events: none;
    background:
        radial-gradient(circle at 34% 30%, rgba(0,0,0,.08) 0 9%, transparent 10%),
        radial-gradient(circle at 62% 58%, rgba(0,0,0,.07) 0 13%, transparent 14%),
        radial-gradient(circle at 40% 70%, rgba(0,0,0,.06) 0 6%, transparent 7%),
        radial-gradient(circle at 70% 32%, rgba(0,0,0,.05) 0 5%, transparent 6%),
        radial-gradient(circle at 40% 38%, #fff8dc, #f5d98a 55%, #e0b25a 100%);
    box-shadow: 0 0 40px 10px rgba(255,214,130,.25), 0 0 120px 40px rgba(255,170,60,.12);
    opacity: .85;
    animation: hw-moon 9s ease-in-out infinite alternate;
}
@keyframes hw-moon { from { transform: translateY(0); } to { transform: translateY(8px); } }
@media (max-width: 700px) { .hw-moon { width: 64px; height: 64px; right: 64px; top: calc(var(--nav-height) + 14px); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .hw-moon { animation: none; } }

@media (max-width: 700px) {
    .hw-web { width: 120px; height: 120px; }
    .hw-web.right { display: none; }
    .hw-spider { right: 18px; transform: scale(.8); transform-origin: top center; }
}
@media (prefers-reduced-motion: reduce) {
    .hw-bats, .hw-fog::before, .hw-fog::after { display: none; }
    .hw-spider-thread { animation: none; height: 96px; }
    .hw-spider-body, .hw-spider-body .leg, .hw-pumpkin .hw-face, html.halloween .nav-logo .logo-tag { animation: none; }
}
