@import url('https://fonts.googleapis.com/css2?family=Mountains+of+Christmas:wght@700&display=swap');

html.christmas {
    --cyber-blue: #e63946;
    --electric-blue: #b5172a;
    --deep-blue: #0d1422;
    --darker-blue: #070b14;
    --neon-cyan: #2fbf71;
    --purple-accent: #f5c451;
    --glow-cyan: rgba(230,57,70,.45);
    --glow-blue: rgba(181,23,42,.35);
    --glow-purple: rgba(245,196,81,.35);
    --card-border-hover: rgba(230,57,70,.5);
}

html.christmas .grid-lines {
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(230,57,70,.05), transparent 60%);
}

html.christmas nav {
    background: rgba(7,11,20,.72);
}

html.christmas nav.scrolled {
    background: rgba(7,11,20,.92);
    border-bottom-color: rgba(230,57,70,.18);
}

html.christmas .cursor-glow {
    background: radial-gradient(circle, rgba(230,57,70,.05), transparent 70%);
}

html.christmas .section-divider {
    background: linear-gradient(90deg, transparent, rgba(230,57,70,.25), transparent);
}

html.christmas .nav-back:hover {
    background: rgba(230,57,70,.1);
    border-color: rgba(230,57,70,.4);
}

html.christmas .card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 40px rgba(230,57,70,.06);
}

html.christmas .btn-secondary:hover {
    background: rgba(230,57,70,.08);
    border-color: rgba(230,57,70,.4);
}

html.christmas .btn-ghost:hover {
    border-color: rgba(230,57,70,.35);
    background: rgba(230,57,70,.08);
}

html.christmas input[type="text"]:focus,
html.christmas input[type="number"]:focus,
html.christmas input[type="email"]:focus,
html.christmas textarea:focus,
html.christmas select:focus {
    background: rgba(230,57,70,.05);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
}

html.christmas .code-output .copy-btn {
    background: rgba(230,57,70,.1);
    border: 1px solid rgba(230,57,70,.3);
}

html.christmas .badge-cyan {
    border-color: rgba(230,57,70,0.3);
    background: rgba(230,57,70,0.1);
}

html.christmas .badge-purple {
    border-color: rgba(245,196,81,0.3);
    background: rgba(245,196,81,0.1);
}

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

html.christmas ::-webkit-scrollbar-thumb {
    background: rgba(230,57,70,0.3);
}

html.christmas ::-webkit-scrollbar-thumb:hover {
    background: rgba(230,57,70,0.55);
}

html.christmas ::selection {
    background: rgba(230,57,70,0.3);
}

html.christmas .cmdk-trigger:hover {
    border-color: rgba(230,57,70,.4);
    background: rgba(230,57,70,.06);
}

html.christmas .cmdk-item.active,
html.christmas .cmdk-item:hover {
    background: rgba(230,57,70,.1);
}

html.christmas .toast-global {
    border: 1px solid rgba(230,57,70,.3);
}

html.christmas .tool-pin:hover {
    border-color: rgba(230,57,70,.4);
}

html.christmas .strip-chip:hover {
    border-color: rgba(230,57,70,.4);
    background: rgba(230,57,70,.08);
}

html.christmas .tool-row::before {
    background: linear-gradient(90deg, rgba(230,57,70,.09), transparent 70%);
}

html.christmas .tool-row:hover .tool-row-icon {
    border-color: rgba(230,57,70,.4);
    background: rgba(230,57,70,.08);
}

html.christmas .wip-icon {
    background: rgba(230,57,70,.1);
    border: 1px solid rgba(230,57,70,.3);
}

html.christmas .terminal {
    background: rgba(7,11,20,.85);
}

html.christmas .format-btn:hover {
    border-color: rgba(230,57,70,.4);
    background: rgba(230,57,70,.08);
}

html.christmas .output-tab.active {
    border-color: rgba(230,57,70,.45);
    background: rgba(230,57,70,.1);
}

html.christmas .cmd-item {
    border: 1px solid rgba(230,57,70,0.14);
}

html.christmas .cmd-item:hover {
    border-color: rgba(230,57,70,0.35);
}

html.christmas .quick-row button:hover {
    border-color: rgba(230,57,70,.4);
    background: rgba(230,57,70,.08);
}

html.christmas .tile:hover {
    border-color: rgba(230,57,70,.4);
}

html.christmas .tile.highlight {
    border-color: rgba(230,57,70,.35);
    background: rgba(230,57,70,.06);
}

html.christmas .out-tab.active {
    border-color: rgba(230,57,70,.45);
    background: rgba(230,57,70,.1);
}

html.christmas .page-badge {
    background: rgba(230,57,70,0.1);
}

html.christmas .main-card {
    border: 2px solid rgba(230,57,70,0.2);
    box-shadow: 0 25px 70px rgba(230,57,70,0.2);
}

html.christmas .type-btn {
    border: 2px solid rgba(230,57,70,0.3);
}

html.christmas .size-btn {
    border: 2px solid rgba(230,57,70,0.3);
}

html.christmas .inv-description {
    border-left: 2px solid rgba(230,57,70,0.3);
}

html.christmas .slot-container {
    border: 2px solid rgba(230,57,70,0.2);
}

html.christmas .slot-CONTAINER {
    background: rgba(230,57,70,0.05);
    border-color: rgba(230,57,70,0.15);
}

html.christmas .slot-CONTAINER.selected {
    background: rgba(230,57,70,0.3);
    box-shadow: 0 0 15px rgba(230,57,70,0.4);
}

html.christmas .slot-CRAFTING {
    background: rgba(245,196,81,0.08);
    border-color: rgba(245,196,81,0.2);
    color: rgba(245,196,81,0.6);
}

html.christmas .slot-CRAFTING.selected {
    background: rgba(245,196,81,0.3);
    box-shadow: 0 0 15px rgba(245,196,81,0.4);
}

html.christmas .slot-QUICKBAR {
    background: rgba(47,191,113,0.06);
    border-color: rgba(47,191,113,0.2);
    color: rgba(47,191,113,0.5);
}

html.christmas .slot-QUICKBAR.selected {
    background: rgba(47,191,113,0.3);
    box-shadow: 0 0 15px rgba(47,191,113,0.4);
}

html.christmas .quick-btn {
    border: 2px solid rgba(230,57,70,0.3);
}

html.christmas .results-section {
    background: rgba(230,57,70,0.03);
    border: 2px solid rgba(230,57,70,0.2);
}

html.christmas .result-item {
    border-bottom: 1px solid rgba(230,57,70,0.1);
}

html.christmas .btn-primary:hover:not(:disabled) {
    box-shadow: 0 20px 60px rgba(230,57,70,0.6);
}

html.christmas .info-panel {
    background: rgba(230,57,70,0.03);
    border: 2px solid rgba(230,57,70,0.2);
}

html.christmas .shape {
    border: 2px solid rgba(230,57,70,0.15);
}

html.christmas {
    --row-hover: rgba(230,57,70, 0.06);
    --border-normal: rgba(230,57,70, 0.22);
}

html.christmas .page-badge {
    background: rgba(230,57,70,0.09);
}

html.christmas .stats-row {
    background: rgba(230,57,70,0.03);
}

html.christmas .search-wrapper .search-input {
    background: rgba(230,57,70,0.05);
}

html.christmas .search-wrapper .search-input:focus {
    background: rgba(230,57,70,0.09);
    box-shadow: 0 0 20px rgba(230,57,70,0.25);
}

html.christmas .filter-btn {
    background: rgba(230,57,70,0.06);
}

html.christmas .filter-btn.cat-tools.active {
    box-shadow: 0 0 14px rgba(245,196,81,0.4);
}

html.christmas .version-select,
html.christmas .sort-select {
    background: rgba(230,57,70,0.05);
}

html.christmas .dev-panel {
    border: 2px solid rgba(245,196,81,0.35);
}

html.christmas .dev-tab {
    background: rgba(245,196,81,0.1);
    border: 1px solid rgba(245,196,81,0.3);
}

html.christmas .dev-tab.active,
html.christmas .dev-tab:hover {
    background: rgba(245,196,81,0.3);
}

html.christmas .items-table thead tr {
    background: rgba(230,57,70,0.1);
}

html.christmas .items-table tbody tr:hover {
    border-color: rgba(230,57,70,0.2);
}

html.christmas .byte-badge {
    background: rgba(230,57,70,0.09);
    border: 1px solid rgba(230,57,70,0.25);
}

html.christmas .cat-pill.tools {
    border-color: rgba(245,196,81,0.3);
    background: rgba(245,196,81,0.07);
}

html.christmas .toast {
    box-shadow: 0 8px 28px rgba(230,57,70,0.45);
}

html.christmas .detail-field {
    background: rgba(230,57,70,0.05);
}

html.christmas .detail-wiki-btn {
    background: rgba(230,57,70,0.1);
}

html.christmas .tooltip-stage {
    background: radial-gradient(ellipse at 50% 40%, rgba(230,57,70,.06), transparent 70%);
}

html.christmas .link-btn.featured {
    border-color: rgba(230,57,70,.35);
    background: linear-gradient(135deg, rgba(230,57,70,.12), rgba(47,191,113,.05));
}

html.christmas .share-row button:hover,
html.christmas .share-row a:hover {
    border-color: rgba(230,57,70,.45);
    background: rgba(230,57,70,.08);
}

html.christmas .node-item {
    border: 1px solid rgba(230,57,70,0.14);
}

html.christmas .node-item:hover {
    border-color: rgba(230,57,70,0.35);
}

html.christmas .node-default.def-op {
    border-color: rgba(245,196,81,0.3);
    background: rgba(245,196,81,0.07);
}

html.christmas .player-head {
    border-bottom: 1px solid rgba(230,57,70,0.12);
}

html.christmas .player-avatar {
    border: 2px solid rgba(230,57,70,0.3);
}

html.christmas .skin-preview {
    border: 1px solid rgba(230,57,70,0.12);
}

html.christmas .uuid-item {
    border: 1px solid rgba(230,57,70,0.12);
}

html.christmas .uuid-copy {
    border: 1px solid rgba(230,57,70,0.3);
}

html.christmas .spinner {
    border: 2px solid rgba(230,57,70,0.2);
}

html.christmas .cape-box {
    border: 1px solid rgba(230,57,70,0.12);
}

html.christmas .cape-face {
    border: 2px solid rgba(230,57,70,0.3);
}

html.christmas .cape-empty {
    border: 2px dashed rgba(230,57,70,0.25);
}

html.christmas .page-badge {
    background: rgba(230,57,70, 0.1);
}

html.christmas .section-card {
    border: 2px solid rgba(230,57,70, 0.2);
}

html.christmas .calc-input {
    background: rgba(230,57,70, 0.05);
    border: 2px solid rgba(230,57,70, 0.3);
}

html.christmas .calc-input:focus {
    background: rgba(230,57,70, 0.1);
    box-shadow: 0 0 20px rgba(230,57,70, 0.3);
}

html.christmas .btn-primary:hover {
    box-shadow: 0 15px 50px rgba(230,57,70, 0.6);
}

html.christmas .code-output {
    border: 2px solid rgba(230,57,70, 0.3);
}

html.christmas .download-btn:hover {
    box-shadow: 0 0 20px rgba(245,196,81, 0.6);
}

html.christmas .toast {
    box-shadow: 0 10px 30px rgba(230,57,70, 0.4);
}

html.christmas .calc-divider::before,
html.christmas .calc-divider::after {
    background: rgba(230,57,70,0.12);
}

html.christmas .result-item {
    border: 1px solid rgba(230,57,70,0.12);
}

html.christmas .result-item.highlight {
    border-color: rgba(230,57,70,0.35);
    background: rgba(230,57,70,0.05);
}

html.christmas .preset-btn {
    background: rgba(230,57,70,0.06);
    border: 1px solid rgba(230,57,70,0.18);
}

html.christmas .preset-btn:hover {
    background: rgba(230,57,70,0.12);
    border-color: rgba(230,57,70,0.35);
}

html.christmas .ref-table th {
    border-bottom: 1px solid rgba(230,57,70,0.15);
}

html.christmas .ref-table td {
    border-bottom: 1px solid rgba(230,57,70,0.06);
}

html.christmas .ref-table tr:hover td {
    background: rgba(230,57,70,0.03);
}

html.christmas .mode-tab.active {
    border-color: rgba(230,57,70,.45);
    background: rgba(230,57,70,.1);
}

html.christmas .mini-btn {
    background: rgba(230,57,70,.1);
    border: 1px solid rgba(230,57,70,.3);
}

html.christmas .fmt:hover {
    border-color: rgba(230,57,70,.4);
}

html.christmas .tool-btn:hover {
    border-color: rgba(230,57,70,.45);
    background: rgba(230,57,70,.08);
}

html.christmas .editor:focus-within {
    box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
}

html.christmas .issue-line {
    background: rgba(230,57,70,.1);
    border: 1px solid rgba(230,57,70,.3);
}

html.christmas body { background: #070b14; }

html.christmas .bg-gradient::before { background: radial-gradient(circle, #e63946, transparent 65%); opacity: .16; }
html.christmas .bg-gradient::after { background: radial-gradient(circle, #2fbf71, transparent 65%); opacity: .16; }

html.christmas .hero-headline .accent .line-inner,
html.christmas .section-title .accent {
    background: linear-gradient(120deg, #ff4d5a 10%, #f5c451 50%, #2fbf71 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

html.christmas .nav-logo .logo-tag { position: relative; color: #ff4d5a; text-shadow: 0 0 8px rgba(230,57,70,.6); }
.xm-hat {
    position: absolute; left: -7px; top: -15px; width: 26px; height: 22px;
    transform: rotate(-18deg); pointer-events: none;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.4));
}

.xm-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    margin-bottom: 1.4rem; padding: .35rem 1rem .35rem .75rem;
    font-family: 'Mountains of Christmas', 'Space Grotesk', cursive; font-weight: 700; font-size: 1.3rem; letter-spacing: .5px;
    color: #ffe7a3; background: rgba(230,57,70,.1);
    border: 1px solid rgba(245,196,81,.35); border-radius: 999px;
    text-shadow: 0 0 10px rgba(245,196,81,.45);
    width: fit-content;
}
.xm-badge svg { width: 22px; height: 22px; }

.xm-snowcap {
    position: fixed; top: calc(var(--nav-height) - 2px); left: 0; right: 0; height: 18px;
    z-index: 999; pointer-events: none;
    transition: top .35s cubic-bezier(.16,1,.3,1);
}
.xm-snowcap svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }

.xm-lights {
    position: fixed; top: calc(var(--nav-height) - 4px); left: 0; right: 0; height: 46px;
    z-index: 1000; pointer-events: none;
    transition: top .35s cubic-bezier(.16,1,.3,1);
}
html.christmas nav.scrolled ~ .xm-snowcap { top: calc(var(--nav-height) - 16px); }
html.christmas nav.scrolled ~ .xm-lights { top: calc(var(--nav-height) - 18px); }
.xm-lights svg.xm-wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xm-bulb {
    position: absolute; width: 11px; height: 17px; margin-left: -5.5px;
    pointer-events: auto; cursor: pointer;
    transform-origin: 50% 0; transform: rotate(var(--rot, 0deg));
}
.xm-bulb::before {
    content: ''; position: absolute; left: 2px; top: 0; width: 7px; height: 5px;
    background: linear-gradient(#4b5563, #1f2937); border-radius: 2px;
}
.xm-bulb::after {
    content: ''; position: absolute; left: 0; top: 4px; width: 11px; height: 13px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    background: radial-gradient(circle at 40% 35%, #fff 0 12%, var(--c) 45%, var(--c2) 100%);
    box-shadow: 0 0 8px 2px var(--g), 0 0 18px 4px var(--g2);
    animation: xm-twinkle var(--tw, 2.4s) ease-in-out var(--td, 0s) infinite;
    transition: transform .2s, box-shadow .2s;
}
.xm-bulb.pop { animation: xm-swing 1.1s ease-out; }
.xm-bulb.pop::after { transform: scale(1.35); box-shadow: 0 0 14px 5px var(--g), 0 0 34px 10px var(--g2); animation: none; }
@keyframes xm-twinkle {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: .55; filter: brightness(.7); }
}
@keyframes xm-swing {
    0% { transform: rotate(var(--rot, 0deg)); }
    20% { transform: rotate(calc(var(--rot, 0deg) + 28deg)); }
    45% { transform: rotate(calc(var(--rot, 0deg) - 18deg)); }
    70% { transform: rotate(calc(var(--rot, 0deg) + 8deg)); }
    100% { transform: rotate(var(--rot, 0deg)); }
}

.xm-ornament {
    position: fixed; top: var(--nav-height); right: 8%; z-index: 998;
    width: 34px; display: flex; flex-direction: column; align-items: center; pointer-events: none;
}
.xm-ornament-thread {
    width: 1px; height: 0; background: linear-gradient(rgba(245,196,81,.2), rgba(245,196,81,.8));
    animation: xm-drop 2.2s cubic-bezier(.3,1.3,.5,1) .6s forwards;
}
@keyframes xm-drop { to { height: 84px; } }
.xm-ornament-ball {
    pointer-events: auto; cursor: pointer; width: 34px; height: 40px;
    transform-origin: 50% -84px; animation: xm-sway 5s ease-in-out infinite;
}
.xm-ornament-ball svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 10px rgba(230,57,70,.45)); }
.xm-ornament-ball.spin { animation: xm-jingle 1.4s cubic-bezier(.2,.8,.3,1); }
.xm-ornament-ball.spin svg { animation: xm-spin 1.4s cubic-bezier(.2,.8,.3,1); }
@keyframes xm-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes xm-jingle {
    0% { transform: rotate(0); } 15% { transform: rotate(22deg); } 35% { transform: rotate(-16deg); }
    55% { transform: rotate(10deg); } 75% { transform: rotate(-5deg); } 100% { transform: rotate(0); }
}
@keyframes xm-spin { from { transform: rotateY(0); } to { transform: rotateY(720deg); } }

.xm-snow { position: fixed; inset: 0; z-index: 997; pointer-events: none; }

.xm-ground {
    position: fixed; left: 0; right: 0; bottom: 0; height: 70px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 30% 60px at 15% 100%, rgba(235,242,255,.10), transparent 70%),
        radial-gradient(ellipse 35% 70px at 55% 100%, rgba(235,242,255,.09), transparent 70%),
        radial-gradient(ellipse 30% 55px at 90% 100%, rgba(235,242,255,.10), transparent 70%);
}

@media (max-width: 700px) {
    .xm-ornament { right: 18px; transform: scale(.8); transform-origin: top center; }
}
@media (prefers-reduced-motion: reduce) {
    .xm-snow { display: none; }
    .xm-ornament-thread { animation: none; height: 84px; }
    .xm-ornament-ball, .xm-bulb::after { animation: none; }
}
