    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    html {
        scroll-behavior: smooth;
        scroll-padding-top: 80px;
    }

    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #050507;
    }

    ::-webkit-scrollbar-thumb {
        background: #2a080c;
        border: 1px solid #50000a;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #66000e;
    }

    body {
        background-color: #030304;
        background-image:
            radial-gradient(circle at 50% 20%, rgba(80, 0, 15, 0.25) 0%, transparent 60%),
            radial-gradient(circle at 50% 100%, rgba(10, 0, 20, 0.8) 0%, transparent 80%),
            radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.95) 100%),
            repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.01) 0px, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 3px);
        background-attachment: fixed;
        color: #b8b8c2;
        font-family: 'Cinzel', serif;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 80px;
        padding-bottom: 3rem;
        position: relative;
        overflow-x: hidden;
    }

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('https://www.transparenttextures.com/patterns/dark-denim-3.png');
        opacity: 0.4;
        pointer-events: none;
        z-index: 1;
    }

    .topbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: rgba(8, 6, 10, 0.92);
        border-bottom: 1px solid rgba(120, 10, 20, 0.5);
        backdrop-filter: blur(8px);
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    }

    .topbar-brand {
        font-family: 'UnifrakturMaguntia', cursive;
        font-size: 1.6rem;
        color: #e6e6e6;
        text-decoration: none;
        text-shadow: 0 0 8px rgba(180, 0, 25, 0.6);
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .topbar-logo {
        width: 32px;
        height: 32px;
        object-fit: contain;
        filter: drop-shadow(0 0 6px rgba(180, 0, 25, 0.8));
        transition: transform 0.3s ease;
    }

    .topbar-brand:hover .topbar-logo {
        transform: scale(1.1) rotate(-5deg);
    }

    .topbar-nav {
        display: flex;
        gap: 1.8rem;
        list-style: none;
    }

    .topbar-nav a {
        color: #a0a0ab;
        text-decoration: none;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        transition: all 0.3s ease;
        position: relative;
    }

    .topbar-nav a:hover {
        color: #e61a2d;
        text-shadow: 0 0 8px rgba(230, 26, 45, 0.6);
    }

    .topbar-nav a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 1px;
        bottom: -4px;
        left: 0;
        background-color: #8b0000;
        transition: width 0.3s ease;
    }

    .topbar-nav a:hover::after {
        width: 100%;
    }

    .mobile-toggle {
        display: none;
        background: transparent;
        border: none;
        color: #e6e6e6;
        font-size: 1.6rem;
        cursor: pointer;
        transition: color 0.3s ease;
        outline: none;
    }

    .mobile-toggle:hover {
        color: #e61a2d;
        text-shadow: 0 0 8px rgba(230, 26, 45, 0.6);
    }

    .container {
        max-width: 950px;
        width: 100%;
        text-align: center;
        position: relative;
        z-index: 2;
        padding: 0 1rem;
    }

    header {
        margin-top: 1.5rem;
        margin-bottom: 2.5rem;
        border-bottom: 1px solid rgba(120, 10, 20, 0.4);
        padding-bottom: 2rem;
        position: relative;
    }

    header::after {
        content: "🕸️";
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        background: #030304;
        padding: 0 10px;
        font-size: 1.2rem;
        color: #660000;
    }

    h1.gothic-title {
        font-family: 'UnifrakturMaguntia', cursive;
        font-size: 3.8rem;
        color: #e6e6e6;
        letter-spacing: 3px;
        margin-bottom: 0.2rem;
        text-shadow:
            0 0 10px rgba(180, 0, 25, 0.6),
            0 0 25px rgba(100, 0, 15, 0.4),
            2px 2px 4px #000;
        animation: candleFlicker 4s infinite alternate;
    }

    p.subtitle {
        font-size: 0.85rem;
        color: #8a7a80;
        text-transform: uppercase;
        letter-spacing: 5px;
        font-weight: 700;
    }

    .notice-box {
        position: relative;
        background-color: #080305;
        border: 1px solid #3d0c13;
        border-left: 4px solid #8b0000;
        padding: 1.8rem;
        margin-bottom: 3.5rem;
        text-align: left;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
        overflow: hidden;
        z-index: 1;
    }

    .notice-box::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 200%;
        height: 100%;
        background-image: url('noticebg.png');
        background-repeat: repeat-x;
        background-size: cover;
        opacity: 0.25;
        pointer-events: none;
        z-index: -1;
        animation: moveBackground 20s linear infinite alternate;
    }

    @keyframes moveBackground {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }

    .notice-box h3 {
        font-family: 'UnifrakturMaguntia', cursive;
        color: #c91a2b;
        font-size: 1.5rem;
        letter-spacing: 1px;
        margin-bottom: 0.5rem;
        text-shadow: 0 0 8px rgba(139, 0, 0, 0.6);
        position: relative;
        z-index: 2;
    }

    .notice-box p {
        font-size: 0.88rem;
        color: #b0b0bb;
        line-height: 1.7;
        position: relative;
        z-index: 2;
    }

    .section-title {
        font-family: 'UnifrakturMaguntia', cursive;
        font-size: 2.2rem;
        letter-spacing: 3px;
        color: #d1d1d1;
        margin-bottom: 2rem;
        text-shadow: 0 0 10px rgba(100, 0, 15, 0.5);
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 2rem;
        margin-bottom: 3.5rem;
    }

    .card {
        background: rgba(12, 10, 15, 0.85);
        border: 1px solid #221518;
        padding: 2rem 1.5rem;
        position: relative;
        transition: all 0.4s ease;
        backdrop-filter: blur(2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
        text-align: center;
    }

    .card::before,
    .card::after {
        content: "";
        position: absolute;
        width: 8px;
        height: 8px;
        border: 1px solid #66000e;
        transition: all 0.4s ease;
    }

    .card::before {
        top: 3px;
        left: 3px;
        border-right: none;
        border-bottom: none;
    }

    .card::after {
        bottom: 3px;
        right: 3px;
        border-left: none;
        border-top: none;
    }

    .card:hover {
        border-color: #66000e;
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(100, 0, 15, 0.4);
        background: rgba(18, 12, 18, 0.95);
    }

    .card:hover::before,
    .card:hover::after {
        width: 18px;
        height: 18px;
        border-color: #b30015;
    }

    .avatar-placeholder {
        width: 90px;
        height: 90px;
        background: radial-gradient(circle, #20080c 0%, #0a0507 100%);
        border-radius: 50%;
        margin: 0 auto 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.5rem;
        border: 1px solid #4a0d15;
        box-shadow: 0 0 15px rgba(80, 0, 15, 0.4);
        overflow: hidden;
    }

    .avatar-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.9) contrast(1.1);
        transition: filter 0.3s ease;
    }

    .card:hover .avatar-placeholder img {
        filter: brightness(1.1) contrast(1.2);
    }

    .card h4 {
        font-size: 1.2rem;
        color: #ffffff;
        margin-bottom: 0.2rem;
        letter-spacing: 1px;
    }

    .card .role-badge {
        font-size: 0.7rem;
        color: #e61a2d;
        display: inline-block;
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: bold;
        border: 1px solid #55000a;
        padding: 2px 10px;
        background: rgba(80, 0, 15, 0.15);
    }

    .card p {
        font-size: 0.82rem;
        color: #888894;
        line-height: 1.6;
    }

    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.85);
        z-index: 200;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(5px);
    }

    .modal-content {
        background: #0d0a0e;
        border: 1px solid #4a0d15;
        max-width: 600px;
        width: 90%;
        padding: 2rem;
        box-shadow: 0 0 30px rgba(139, 0, 0, 0.4);
        position: relative;
        text-align: left;
    }

    .modal-content h2 {
        font-family: 'UnifrakturMaguntia', cursive;
        color: #c91a2b;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .modal-content p {
        font-size: 0.85rem;
        color: #a0a0ab;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .close-modal {
        position: absolute;
        top: 10px;
        right: 15px;
        color: #888;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .close-modal:hover {
        color: #c91a2b;
    }

    footer {
        margin-top: auto;
        padding-top: 2rem;
        font-size: 0.75rem;
        color: #555566;
        border-top: 1px solid rgba(80, 0, 15, 0.3);
        width: 100%;
        letter-spacing: 2px;
    }

    @keyframes candleFlicker {

        0%,
        100% {
            text-shadow:
                0 0 10px rgba(180, 0, 25, 0.6),
                0 0 25px rgba(100, 0, 15, 0.4),
                2px 2px 4px #000;
        }

        50% {
            text-shadow:
                0 0 14px rgba(220, 0, 30, 0.8),
                0 0 35px rgba(140, 0, 20, 0.6),
                2px 2px 4px #000;
        }

        75% {
            text-shadow:
                0 0 8px rgba(140, 0, 15, 0.4),
                0 0 18px rgba(80, 0, 10, 0.3),
                2px 2px 4px #000;
        }
    }

    @media (max-width: 768px) {
        h1.gothic-title {
            font-size: 2.8rem;
        }

        .topbar {
            padding: 0 1.2rem;
        }

        .mobile-toggle {
            display: block;
        }

        .topbar-nav {
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 60px;
            left: 0;
            width: 100%;
            background: rgba(8, 6, 10, 0.98);
            border-bottom: 1px solid rgba(120, 10, 20, 0.6);
            backdrop-filter: blur(12px);
            padding: 1.5rem 0;
            gap: 1.5rem;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease-in-out;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.9);
        }

        .topbar-nav.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
    }

    .visitor-counter {
        margin-bottom: 1.5rem;
        font-size: 0.78rem;
        color: #8a7a80;
        text-transform: uppercase;
        letter-spacing: 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .visitor-count {
        color: #e61a2d;
        font-weight: bold;
        font-family: 'Fira Code', monospace;
        background: rgba(80, 0, 15, 0.2);
        border: 1px solid #55000a;
        padding: 2px 8px;
        border-radius: 2px;
        text-shadow: 0 0 6px rgba(230, 26, 45, 0.6);
    }

    .floating-stack {
        position: fixed;
        bottom: 25px;
        right: 25px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        z-index: 150;
    }

    .music-bubble,
    .saweria-bubble,
    .ai-bubble,
    .tiktok-bubble {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: radial-gradient(circle, #20080c 0%, #080305 100%);
        border: 1px solid #66000e;
        color: #e6e6e6;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 0 15px rgba(180, 0, 25, 0.4), 0 4px 10px rgba(0, 0, 0, 0.9);
        transition: all 0.3s ease;
        outline: none;
    }

    .music-bubble:hover,
    .saweria-bubble:hover,
    .ai-bubble:hover,
    .tiktok-bubble:hover {
        transform: scale(1.1);
        border-color: #c91a2b;
        box-shadow: 0 0 20px rgba(220, 0, 30, 0.7);
    }

    .music-bubble.playing {
        border-color: #b30015;
        animation: bubblePulse 2s infinite alternate;
    }

    @keyframes bubblePulse {
        0% {
            box-shadow: 0 0 10px rgba(180, 0, 25, 0.4);
        }

        100% {
            box-shadow: 0 0 20px rgba(230, 26, 45, 0.8);
        }
    }

    .btn-saweria-direct {
        display: inline-block;
        width: 100%;
        text-align: center;
        background: linear-gradient(135deg, #3d0c13 0%, #100508 100%);
        color: #ffffff;
        padding: 12px;
        border: 1px solid #8b0000;
        text-decoration: none;
        font-family: 'Cinzel', serif;
        letter-spacing: 2px;
        text-transform: uppercase;
        font-size: 0.85rem;
        transition: all 0.3s ease;
        margin-top: 10px;
    }

    .btn-saweria-direct:hover {
        background: #66000e;
        box-shadow: 0 0 15px rgba(230, 26, 45, 0.6);
    }

    .table-scroll-container {
        max-height: 280px;
        overflow-y: auto;
        padding-right: 5px;
    }

    .table-scroll-container::-webkit-scrollbar {
        width: 6px;
    }

    .table-scroll-container::-webkit-scrollbar-track {
        background: #0a0507;
        border-radius: 3px;
    }

    .table-scroll-container::-webkit-scrollbar-thumb {
        background: #50000a;
        border: 1px solid #8b0000;
        border-radius: 3px;
    }

    .table-scroll-container::-webkit-scrollbar-thumb:hover {
        background: #c91a2b;
    }

    .scrollable-table thead th {
        position: sticky;
        top: 0;
        background: #0d0a0e;
        z-index: 10;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    }

    .rank-row-1 {
        background: linear-gradient(270deg, rgba(80, 0, 15, 0.4), rgba(212, 175, 55, 0.25), rgba(40, 5, 10, 0.5));
        background-size: 400% 400%;
        animation: gothicGradientMove 6s ease infinite;
        border-left: 4px solid #d4af37 !important;
        box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.15);
    }

    .rank-row-2 {
        background: linear-gradient(270deg, rgba(20, 15, 30, 0.5), rgba(192, 192, 192, 0.2), rgba(10, 8, 18, 0.6));
        background-size: 400% 400%;
        animation: gothicGradientMove 8s ease infinite;
        border-left: 4px solid #c0c0c0 !important;
        box-shadow: inset 0 0 15px rgba(192, 192, 192, 0.1);
    }

    .rank-row-3 {
        background: linear-gradient(270deg, rgba(30, 15, 8, 0.5), rgba(205, 127, 50, 0.18), rgba(12, 6, 4, 0.6));
        background-size: 400% 400%;
        animation: gothicGradientMove 10s ease infinite;
        border-left: 4px solid #cd7f32 !important;
        box-shadow: inset 0 0 15px rgba(205, 127, 50, 0.1);
    }

    @keyframes gothicGradientMove {
        0% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }

        100% {
            background-position: 0% 50%;
        }
    }

    .badge-rank-1 {
        color: #ffd700;
        font-weight: bold;
        font-family: 'Fira Code', monospace;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    }

    .badge-rank-2 {
        color: #e0e0e0;
        font-weight: bold;
        font-family: 'Fira Code', monospace;
        text-shadow: 0 0 8px rgba(224, 224, 224, 0.6);
    }

    .badge-rank-3 {
        color: #cd7f32;
        font-weight: bold;
        font-family: 'Fira Code', monospace;
        text-shadow: 0 0 8px rgba(205, 127, 50, 0.6);
    }

    .crown-icon {
        margin-right: 6px;
        display: inline-block;
        animation: floatIcon 3s ease-in-out infinite alternate;
    }

    @keyframes floatIcon {
        0% {
            transform: translateY(0);
        }

        100% {
            transform: translateY(-3px);
        }
    }

    .leaderboard-box {
        background: rgba(12, 10, 15, 0.9);
        border: 1px solid #3d0c13;
        border-left: 4px solid #8b0000;
        padding: 2rem;
        margin-bottom: 2.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        text-align: left;
    }

    .leaderboard-box h2 {
        font-family: 'UnifrakturMaguntia', cursive;
        color: #c91a2b;
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid rgba(100, 0, 15, 0.4);
        padding-bottom: 0.5rem;
    }

    .rank-table {
        width: 100%;
        border-collapse: collapse;
    }

    .rank-table th,
    .rank-table td {
        padding: 12px;
        font-size: 0.9rem;
        border-bottom: 1px solid #1a1014;
    }

    .rank-table th {
        color: #8a7a80;
        text-align: left;
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .rank-number {
        color: #e61a2d;
        font-weight: bold;
        font-family: 'Fira Code', monospace;
    }

    .amount {
        color: #d1d1d1;
        font-family: 'Fira Code', monospace;
        text-align: right;
    }

    .btn-back {
        display: inline-block;
        color: #a0a0ab;
        text-decoration: none;
        border: 1px solid #4a0d15;
        padding: 10px 20px;
        font-size: 0.8rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        transition: all 0.3s ease;
    }

    .btn-back:hover {
        background: #66000e;
        color: #fff;
    }

    #ai-chat-widget {
        position: fixed;
        bottom: 20px;
        right: 85px;
        z-index: 9999;
        font-family: 'Fira Code', monospace, sans-serif;
    }

    #ai-chat-box {
        width: 320px;
        height: 420px;
        background: #050306;
        border: 1px solid #330d13;
        border-radius: 8px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease;
        transform-origin: bottom right;
    }

    .chat-hidden {
        display: none !important;
        opacity: 0;
        transform: scale(0.8);
    }

    .chat-header {
        background: #110508;
        color: #e0d8d8;
        padding: 12px 16px;
        font-weight: bold;
        font-size: 13px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #330d13;
        font-family: 'Cinzel', serif;
        letter-spacing: 1px;
    }

    .chat-close {
        background: none;
        border: none;
        color: #888;
        font-size: 20px;
        cursor: pointer;
        line-height: 1;
    }

    .chat-close:hover {
        color: #66000e;
    }

    .chat-messages {
        flex: 1;
        padding: 12px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: #050306;
    }

    .message {
        max-width: 80%;
        padding: 9px 13px;
        border-radius: 6px;
        font-size: 12px;
        line-height: 1.4;
        word-wrap: break-word;
    }

    .message.user {
        background: #20060a;
        color: #ffffff;
        align-self: flex-end;
        border: 1px solid #66000e;
        border-bottom-right-radius: 1px;
    }

    .message.bot {
        background: #0d080a;
        color: #c9c0c3;
        align-self: flex-start;
        border: 1px solid #22080c;
        border-bottom-left-radius: 1px;
    }

    .chat-input-area {
        display: flex;
        padding: 10px;
        background: #080409;
        border-top: 1px solid #22080c;
        gap: 6px;
    }

    .chat-input-area input {
        flex: 1;
        padding: 8px 12px;
        background: #020103;
        border: 1px solid #330d13;
        border-radius: 4px;
        outline: none;
        font-size: 12px;
        color: #e0d8d8;
        font-family: 'Fira Code', monospace;
    }

    .chat-input-area input:focus {
        border-color: #66000e;
    }

    .chat-input-area button {
        padding: 8px 14px;
        background: #110508;
        color: #e0d8d8;
        border: 1px solid #330d13;
        border-radius: 4px;
        font-size: 12px;
        font-family: 'Cinzel', serif;
        cursor: pointer;
    }

    .chat-input-area button:hover {
        background: #330d13;
        border-color: #66000e;
    }

    .menu-btn {
        background: #0d080a;
        color: #c9c0c3;
        border: 1px solid #330d13;
        padding: 6px 10px;
        border-radius: 4px;
        font-size: 11px;
        font-family: 'Fira Code', monospace;
        text-align: left;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .menu-btn:hover {
        background: #20060a;
        color: #ffffff;
        border-color: #66000e;
        transform: translateX(3px);
    }

    .typing-dots span {
        animation: typingBlink 1.4s infinite both;
        font-weight: bold;
    }

    .typing-dots span:nth-of-type(1) {
        animation-delay: 0s;
    }

    .typing-dots span:nth-of-type(2) {
        animation-delay: .2s;
    }

    .typing-dots span:nth-of-type(3) {
        animation-delay: .4s;
    }

    @keyframes typingBlink {
        0% {
            opacity: .2;
        }

        20% {
            opacity: 1;
        }

        100% {
            opacity: .2;
        }
    }

    #quick-menu-container {
        margin-top: 8px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        animation: fadeInMenu 0.4s ease-out forwards;
    }

    @keyframes fadeInMenu {
        from {
            opacity: 0;
            transform: translateY(6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
