html {
    font-size: 18px;
}

body {
    background-color: #0B0C10;
    color: #C5C6C7;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.012em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.font-header {
    letter-spacing: 0.045em;
    line-height: 1.25;
}

.font-body {
    line-height: 1.72;
    font-weight: 500;
}

.font-mono {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.text-\[10px\] {
    font-size: 12px !important;
    letter-spacing: 0.08em;
}

.text-\[11px\] {
    font-size: 13px !important;
    line-height: 1.45;
}

.text-\[15px\] {
    font-size: 16.5px !important;
    line-height: 1.65;
}

.hud-border {
    position: relative;
    border: 1px solid rgba(0, 240, 255, 0.3);
    background: rgba(18, 20, 28, 0.85);
    backdrop-filter: blur(8px);
}

.hud-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #00F0FF;
    border-left: 2px solid #00F0FF;
}

.hud-border::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid #FF0055;
    border-right: 2px solid #FF0055;
}

.hud-btn {
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.2s ease-in-out;
}

.hud-btn-pink {
    background: linear-gradient(135deg, rgba(255,0,85,0.2) 0%, rgba(255,0,85,0.8) 100%);
    border: 1px solid #FF0055;
    color: #FFFFFF;
}

.hud-btn-pink:hover {
    box-shadow: 0 0 15px rgba(255,0,85,0.6);
    transform: translateY(-2px);
}

.hud-btn-cyan {
    background: linear-gradient(135deg, rgba(0,240,255,0.15) 0%, rgba(0,240,255,0.6) 100%);
    border: 1px solid #00F0FF;
    color: #00F0FF;
}

.hud-btn-cyan:hover {
    background: #00F0FF;
    color: #0B0C10;
    box-shadow: 0 0 15px rgba(0,240,255,0.8);
}

.glitch-hover:hover {
    animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.scanline {
    width: 100%;
    height: 100px;
    z-index: 99;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 240, 255, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.7;
    position: fixed;
    bottom: 100%;
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { top: -100px; }
    100% { top: 100%; }
}

.mark {
    display: block;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid rgba(0, 240, 255, 0.45);
    background: #0B0C10;
}

.topic-pip {
    display: block;
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    background: #00F0FF;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.65);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0B0C10;
}

::-webkit-scrollbar-thumb {
    background: #00F0FF;
}

.ledger-foot {
    background: #1A0C12;
    color: #F6EBDD;
}

.ledger-alert {
    background: #F25C2A;
    color: #1A0C12;
}

.ledger-link {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(242, 92, 42, 0.35);
}

.ledger-link:hover .ledger-name {
    color: #F25C2A;
}

.license-row {
    display: grid;
    gap: 0.15rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(246, 235, 221, 0.12);
}

@media (max-width: 767px) {
    .sticky.top-0 {
        padding: 0.3rem 0.7rem;
        font-size: 11px;
        line-height: 1.3;
    }

    .sticky.top-0 > div {
        gap: 0.2rem;
    }

    .sticky.top-0 .text-\[10px\] {
        font-size: 10px !important;
        letter-spacing: 0.06em;
    }

    .sticky.top-0 .text-\[11px\] {
        font-size: 11px !important;
        line-height: 1.25;
        column-gap: 0.65rem;
    }

    header > div {
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
        gap: 0.4rem;
    }

    header a.flex > div > p {
        display: none;
    }

    header .w-10.h-10 {
        width: 2rem;
        height: 2rem;
    }

    header .w-10.h-10 span {
        font-size: 0.95rem;
    }

    header .font-header {
        font-size: 0.95rem;
        letter-spacing: 0.03em;
    }

    header nav {
        gap: 0.25rem;
    }

    header nav a {
        padding: 0.22rem 0.42rem;
        font-size: 10px;
        letter-spacing: 0.03em;
    }

    main.max-w-7xl {
        padding-top: 1rem;
        padding-bottom: 1.25rem;
    }
}

.cookie-bar {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 120;
    max-width: 46rem;
    margin: 0 auto;
    background: rgba(18, 20, 28, 0.96);
    border: 1px solid rgba(0, 240, 255, 0.45);
    padding: 0.8rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.cookie-bar p {
    flex: 1 1 16rem;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #C5C6C7;
}

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 130;
    background: rgba(11, 12, 16, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.age-panel {
    width: 100%;
    max-width: 26rem;
    background: #12141c;
    border: 1px solid rgba(0, 240, 255, 0.45);
    padding: 1.4rem 1.3rem 1.2rem;
}

.field {
    width: 100%;
    background: #0B0C10;
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: #F6EBDD;
    padding: 0.65rem 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
}

.field:focus {
    outline: 1px solid #00F0FF;
}

.past-tag {
    display: inline-block;
    margin-right: 0.45rem;
    padding: 0.05rem 0.35rem;
    border: 1px solid #F25C2A;
    color: #F25C2A;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
}
