html.newyear { --t-main: 0, 229, 255; --t-alt: 255, 64, 200; --t-third: 255, 214, 102; }

html.newyear {
    --cyber-blue: #00e5ff;
    --electric-blue: #00a8c6;
    --deep-blue: #0a0818;
    --darker-blue: #05040d;
    --neon-cyan: #ff40c8;
    --purple-accent: #ffd666;
    --glow-cyan: rgba(0,229,255,.45);
    --glow-blue: rgba(181,23,42,.35);
    --glow-purple: rgba(255,64,200,.35);
    --card-border-hover: rgba(0,229,255,.5);
}

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

html.newyear nav {
    background: rgba(3,5,10,.72);
}

html.newyear nav.scrolled {
    background: rgba(3,5,10,.92);
    border-bottom-color: rgba(0,229,255,.18);
}

html.newyear .cursor-glow {
    background: radial-gradient(circle, rgba(0,229,255,.05), transparent 70%);
}

html.newyear .section-divider {
    background: linear-gradient(90deg, transparent, rgba(0,229,255,.25), transparent);
}

html.newyear .nav-back:hover {
    background: rgba(0,229,255,.1);
    border-color: rgba(0,229,255,.4);
}

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

html.newyear .btn-secondary:hover {
    background: rgba(0,229,255,.08);
    border-color: rgba(0,229,255,.4);
}

html.newyear .btn-ghost:hover {
    border-color: rgba(0,229,255,.35);
    background: rgba(0,229,255,.08);
}

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

html.newyear .code-output .copy-btn {
    background: rgba(0,229,255,.1);
    border: 1px solid rgba(0,229,255,.3);
}

html.newyear .badge-cyan {
    border-color: rgba(0,229,255,0.3);
    background: rgba(0,229,255,0.1);
}

html.newyear .badge-purple {
    border-color: rgba(255,64,200,0.3);
    background: rgba(255,64,200,0.1);
}

html.newyear footer {
    background: linear-gradient(180deg, transparent 0%, rgba(3,5,10,.9) 60%);
}

html.newyear ::-webkit-scrollbar-thumb {
    background: rgba(0,229,255,0.3);
}

html.newyear ::-webkit-scrollbar-thumb:hover {
    background: rgba(0,229,255,0.55);
}

html.newyear ::selection {
    background: rgba(0,229,255,0.3);
}

html.newyear .cmdk-trigger:hover {
    border-color: rgba(0,229,255,.4);
    background: rgba(0,229,255,.06);
}

html.newyear .cmdk-item.active,
html.newyear .cmdk-item:hover {
    background: rgba(0,229,255,.1);
}

html.newyear .toast-global {
    border: 1px solid rgba(0,229,255,.3);
}

html.newyear .tool-pin:hover {
    border-color: rgba(0,229,255,.4);
}

html.newyear .strip-chip:hover {
    border-color: rgba(0,229,255,.4);
    background: rgba(0,229,255,.08);
}

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

html.newyear .tool-row:hover .tool-row-icon {
    border-color: rgba(0,229,255,.4);
    background: rgba(0,229,255,.08);
}

html.newyear .wip-icon {
    background: rgba(0,229,255,.1);
    border: 1px solid rgba(0,229,255,.3);
}

html.newyear .terminal {
    background: rgba(3,5,10,.85);
}

html.newyear .format-btn:hover {
    border-color: rgba(0,229,255,.4);
    background: rgba(0,229,255,.08);
}

html.newyear .output-tab.active {
    border-color: rgba(0,229,255,.45);
    background: rgba(0,229,255,.1);
}

html.newyear .cmd-item {
    border: 1px solid rgba(0,229,255,0.14);
}

html.newyear .cmd-item:hover {
    border-color: rgba(0,229,255,0.35);
}

html.newyear .quick-row button:hover {
    border-color: rgba(0,229,255,.4);
    background: rgba(0,229,255,.08);
}

html.newyear .tile:hover {
    border-color: rgba(0,229,255,.4);
}

html.newyear .tile.highlight {
    border-color: rgba(0,229,255,.35);
    background: rgba(0,229,255,.06);
}

html.newyear .out-tab.active {
    border-color: rgba(0,229,255,.45);
    background: rgba(0,229,255,.1);
}

html.newyear .page-badge {
    background: rgba(0,229,255,0.1);
}

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

html.newyear .type-btn {
    border: 2px solid rgba(0,229,255,0.3);
}

html.newyear .size-btn {
    border: 2px solid rgba(0,229,255,0.3);
}

html.newyear .inv-description {
    border-left: 2px solid rgba(0,229,255,0.3);
}

html.newyear .slot-container {
    border: 2px solid rgba(0,229,255,0.2);
}

html.newyear .slot-CONTAINER {
    background: rgba(0,229,255,0.05);
    border-color: rgba(0,229,255,0.15);
}

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

html.newyear .slot-CRAFTING {
    background: rgba(255,64,200,0.08);
    border-color: rgba(255,64,200,0.2);
    color: rgba(255,64,200,0.6);
}

html.newyear .slot-CRAFTING.selected {
    background: rgba(255,64,200,0.3);
    box-shadow: 0 0 15px rgba(255,64,200,0.4);
}

html.newyear .slot-QUICKBAR {
    background: rgba(255,214,102,0.06);
    border-color: rgba(255,214,102,0.2);
    color: rgba(255,214,102,0.5);
}

html.newyear .slot-QUICKBAR.selected {
    background: rgba(255,214,102,0.3);
    box-shadow: 0 0 15px rgba(255,214,102,0.4);
}

html.newyear .quick-btn {
    border: 2px solid rgba(0,229,255,0.3);
}

html.newyear .results-section {
    background: rgba(0,229,255,0.03);
    border: 2px solid rgba(0,229,255,0.2);
}

html.newyear .result-item {
    border-bottom: 1px solid rgba(0,229,255,0.1);
}

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

html.newyear .info-panel {
    background: rgba(0,229,255,0.03);
    border: 2px solid rgba(0,229,255,0.2);
}

html.newyear .shape {
    border: 2px solid rgba(0,229,255,0.15);
}

html.newyear {
    --row-hover: rgba(0,229,255, 0.06);
    --border-normal: rgba(0,229,255, 0.22);
}

html.newyear .page-badge {
    background: rgba(0,229,255,0.09);
}

html.newyear .stats-row {
    background: rgba(0,229,255,0.03);
}

html.newyear .search-wrapper .search-input {
    background: rgba(0,229,255,0.05);
}

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

html.newyear .filter-btn {
    background: rgba(0,229,255,0.06);
}

html.newyear .filter-btn.cat-tools.active {
    box-shadow: 0 0 14px rgba(255,64,200,0.4);
}

html.newyear .version-select,
html.newyear .sort-select {
    background: rgba(0,229,255,0.05);
}

html.newyear .dev-panel {
    border: 2px solid rgba(255,64,200,0.35);
}

html.newyear .dev-tab {
    background: rgba(255,64,200,0.1);
    border: 1px solid rgba(255,64,200,0.3);
}

html.newyear .dev-tab.active,
html.newyear .dev-tab:hover {
    background: rgba(255,64,200,0.3);
}

html.newyear .items-table thead tr {
    background: rgba(0,229,255,0.1);
}

html.newyear .items-table tbody tr:hover {
    border-color: rgba(0,229,255,0.2);
}

html.newyear .byte-badge {
    background: rgba(0,229,255,0.09);
    border: 1px solid rgba(0,229,255,0.25);
}

html.newyear .cat-pill.tools {
    border-color: rgba(255,64,200,0.3);
    background: rgba(255,64,200,0.07);
}

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

html.newyear .detail-field {
    background: rgba(0,229,255,0.05);
}

html.newyear .detail-wiki-btn {
    background: rgba(0,229,255,0.1);
}

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

html.newyear .link-btn.featured {
    border-color: rgba(0,229,255,.35);
    background: linear-gradient(135deg, rgba(0,229,255,.12), rgba(255,214,102,.05));
}

html.newyear .share-row button:hover,
html.newyear .share-row a:hover {
    border-color: rgba(0,229,255,.45);
    background: rgba(0,229,255,.08);
}

html.newyear .node-item {
    border: 1px solid rgba(0,229,255,0.14);
}

html.newyear .node-item:hover {
    border-color: rgba(0,229,255,0.35);
}

html.newyear .node-default.def-op {
    border-color: rgba(255,64,200,0.3);
    background: rgba(255,64,200,0.07);
}

html.newyear .player-head {
    border-bottom: 1px solid rgba(0,229,255,0.12);
}

html.newyear .player-avatar {
    border: 2px solid rgba(0,229,255,0.3);
}

html.newyear .skin-preview {
    border: 1px solid rgba(0,229,255,0.12);
}

html.newyear .uuid-item {
    border: 1px solid rgba(0,229,255,0.12);
}

html.newyear .uuid-copy {
    border: 1px solid rgba(0,229,255,0.3);
}

html.newyear .spinner {
    border: 2px solid rgba(0,229,255,0.2);
}

html.newyear .cape-box {
    border: 1px solid rgba(0,229,255,0.12);
}

html.newyear .cape-face {
    border: 2px solid rgba(0,229,255,0.3);
}

html.newyear .cape-empty {
    border: 2px dashed rgba(0,229,255,0.25);
}

html.newyear .page-badge {
    background: rgba(0,229,255, 0.1);
}

html.newyear .section-card {
    border: 2px solid rgba(0,229,255, 0.2);
}

html.newyear .calc-input {
    background: rgba(0,229,255, 0.05);
    border: 2px solid rgba(0,229,255, 0.3);
}

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

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

html.newyear .code-output {
    border: 2px solid rgba(0,229,255, 0.3);
}

html.newyear .download-btn:hover {
    box-shadow: 0 0 20px rgba(255,64,200, 0.6);
}

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

html.newyear .calc-divider::before,
html.newyear .calc-divider::after {
    background: rgba(0,229,255,0.12);
}

html.newyear .result-item {
    border: 1px solid rgba(0,229,255,0.12);
}

html.newyear .result-item.highlight {
    border-color: rgba(0,229,255,0.35);
    background: rgba(0,229,255,0.05);
}

html.newyear .preset-btn {
    background: rgba(0,229,255,0.06);
    border: 1px solid rgba(0,229,255,0.18);
}

html.newyear .preset-btn:hover {
    background: rgba(0,229,255,0.12);
    border-color: rgba(0,229,255,0.35);
}

html.newyear .ref-table th {
    border-bottom: 1px solid rgba(0,229,255,0.15);
}

html.newyear .ref-table td {
    border-bottom: 1px solid rgba(0,229,255,0.06);
}

html.newyear .ref-table tr:hover td {
    background: rgba(0,229,255,0.03);
}

html.newyear .mode-tab.active {
    border-color: rgba(0,229,255,.45);
    background: rgba(0,229,255,.1);
}

html.newyear .mini-btn {
    background: rgba(0,229,255,.1);
    border: 1px solid rgba(0,229,255,.3);
}

html.newyear .fmt:hover {
    border-color: rgba(0,229,255,.4);
}

html.newyear .tool-btn:hover {
    border-color: rgba(0,229,255,.45);
    background: rgba(0,229,255,.08);
}

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

html.newyear .issue-line {
    background: rgba(0,229,255,.1);
    border: 1px solid rgba(0,229,255,.3);
}

html.newyear body { background: #05040d; }
html.newyear .bg-gradient::before { background: radial-gradient(circle, #00e5ff, transparent 65%); opacity: .11; }
html.newyear .bg-gradient::after { background: radial-gradient(circle, #ff40c8, transparent 65%); opacity: .11; }
html.newyear .hero-headline .accent .line-inner,
html.newyear .section-title .accent {
    background: linear-gradient(120deg, #00e5ff 10%, #ff40c8 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.season-badge {
    display: inline-block; width: fit-content; white-space: nowrap; max-width: 100%;
    margin-bottom: 1.4rem; padding: .4rem .95rem .4rem .8rem; border-radius: 8px;
    font-family: 'JetBrains Mono', monospace; font-size: .82rem; font-weight: 600; letter-spacing: 0;
    color: rgb(var(--t-main)); background: rgba(var(--t-main), .08);
    border: 1px solid rgba(var(--t-main), .3); text-shadow: 0 0 10px rgba(var(--t-main), .45);
    text-transform: none;
}
.season-badge .tk-dim { color: rgba(255, 255, 255, .45); text-shadow: none; }
.season-badge .tk-alt { color: rgb(var(--t-alt)); text-shadow: 0 0 10px rgba(var(--t-alt), .45); }
.season-badge .tk-cur { display: inline-block; width: .55em; height: 1.05em; margin-left: .1rem; vertical-align: -2px; background: rgb(var(--t-main)); animation: tk-blink 1s steps(1) infinite; }
@keyframes tk-blink { 50% { opacity: 0; } }

.tk-term {
    position: fixed; left: 1.4rem; bottom: 1.4rem; z-index: 880; width: min(330px, calc(100vw - 2.8rem));
    background: rgba(6, 6, 10, .92); border: 1px solid rgba(var(--t-main), .35); border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 30px rgba(var(--t-main), .12);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    font-family: 'JetBrains Mono', monospace; font-size: .74rem; line-height: 1.6; color: #d7dae4; overflow: hidden;
    transform: translateY(14px); opacity: 0; transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .45s ease;
}
.tk-term.show { transform: none; opacity: 1; }
.tk-term-bar { display: flex; align-items: center; gap: .4rem; padding: .45rem .7rem; border-bottom: 1px solid rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .45); font-size: .68rem; }
.tk-term-bar i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: rgba(255, 255, 255, .15); }
.tk-term-bar i:nth-child(1) { background: rgb(var(--t-main)); }
.tk-term-bar span { flex: 1; text-align: center; margin-right: 1.4rem; }
.tk-term-x { position: absolute; top: .3rem; right: .45rem; border: 0; background: none; color: rgba(255, 255, 255, .5); font: inherit; font-size: .85rem; cursor: pointer; padding: .1rem .35rem; border-radius: 4px; }
.tk-term-x:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.tk-term pre { margin: 0; padding: .6rem .8rem .75rem; white-space: pre-wrap; font: inherit; min-height: 5.6em; }
.tk-term .p { color: rgb(var(--t-main)); }
.tk-term .ok { color: rgb(var(--t-alt)); }
.tk-term .dim { color: rgba(255, 255, 255, .4); }

.tk-canvas { position: fixed; inset: 0; z-index: 997; pointer-events: none; }
.tk-canvas.back { z-index: -1; }

@media (max-width: 700px) {
    .tk-term { display: none; }
    .season-badge { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    .tk-canvas { display: none; }
    .season-badge .tk-cur { animation: none; }
}

html.newyear .nav-logo .logo-tag { color: #00e5ff; text-shadow: 0 0 6px rgba(0, 229, 255, .8), 0 0 16px rgba(255, 64, 200, .45); }

.ny-clock { display: inline-flex; gap: .3rem; margin-left: .5rem; vertical-align: middle; }
.ny-clock span { padding: .05rem .35rem; border-radius: 4px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(var(--t-main), .3); color: #eafcff; font-variant-numeric: tabular-nums; }
.ny-clock small { color: rgb(var(--t-alt)); margin-left: 1px; font-size: .85em; }

.ny-scan { position: fixed; left: 0; right: 0; top: var(--nav-height); height: 2px; z-index: 999; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .9), rgba(255, 64, 200, .9), transparent); box-shadow: 0 0 12px rgba(0, 229, 255, .6);
    background-size: 50% 100%; background-repeat: no-repeat; animation: ny-scan 4.5s linear infinite; transition: top .35s cubic-bezier(.16, 1, .3, 1); }
html.newyear nav.scrolled ~ .ny-scan { top: calc(var(--nav-height) - 14px); }
@keyframes ny-scan { from { background-position: -60% 0; } to { background-position: 160% 0; } }

@media (prefers-reduced-motion: reduce) { .ny-scan { animation: none; } }
