        @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&display=swap');

        :root {
            --color-bg: #f4f6f8;
            --color-blue: #1a3a4a;
            --color-red: #b82525;
            --color-text: #1a1a1a;
            --color-subtext: #555;
            --panel-bg: #ffffff;
            --panel-border: #e3e7eb;
            --accent-glow: rgba(26, 58, 74, 0.12);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            background-color: var(--color-bg);
            font-family: 'JetBrains Mono', monospace;
            min-height: 100vh;
            width: 100vw;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            color: var(--color-text);
        }

        body.page main,
        body.page nav,
        body.page footer,
        body.page .hero,
        body.page .hero-grid {
            opacity: 0;
            transform: scale(0.98);
            transition: opacity 0.55s ease, transform 0.55s ease;
        }

        body.page.is-ready main,
        body.page.is-ready nav,
        body.page.is-ready footer,
        body.page.is-ready .hero,
        body.page.is-ready .hero-grid {
            opacity: 1;
            transform: scale(1);
        }

        body.page.is-leaving main,
        body.page.is-leaving nav,
        body.page.is-leaving footer,
        body.page.is-leaving .hero,
        body.page.is-leaving .hero-grid {
            opacity: 0;
            transform: scale(0.98);
        }

        /* --- Background Geometry (Triangles) --- */
        .corner {
            position: absolute;
            width: 10vw;
            height: 10vw;
            z-index: 2;
            opacity: 0;
        }

        .corner-tl {
            top: 0;
            left: 0;
            background-color: var(--color-blue);
            clip-path: polygon(0 0, 100% 0, 0 100%);
            animation: cornerInTL 1.1s ease-out forwards;
        }

        .corner-tr {
            top: 0;
            right: 0;
            background-color: var(--color-red);
            clip-path: polygon(0 0, 100% 0, 100% 100%);
            animation: cornerInTR 1.1s ease-out forwards;
        }

        .corner-bl {
            bottom: 0;
            left: 0;
            background-color: var(--color-red);
            clip-path: polygon(0 100%, 0 0, 100% 100%);
            animation: cornerInBL 1.1s ease-out forwards;
        }

        .corner-br {
            bottom: 0;
            right: 0;
            background-color: var(--color-blue);
            clip-path: polygon(100% 0, 100% 100%, 0 100%);
            animation: cornerInBR 1.1s ease-out forwards;
        }

        @keyframes cornerInTL {
            from { transform: translate(-18%, -18%); opacity: 0; }
            to { transform: translate(0, 0); opacity: 1; }
        }
        @keyframes cornerInTR {
            from { transform: translate(18%, -18%); opacity: 0; }
            to { transform: translate(0, 0); opacity: 1; }
        }
        @keyframes cornerInBL {
            from { transform: translate(-18%, 18%); opacity: 0; }
            to { transform: translate(0, 0); opacity: 1; }
        }
        @keyframes cornerInBR {
            from { transform: translate(18%, 18%); opacity: 0; }
            to { transform: translate(0, 0); opacity: 1; }
        }

        @keyframes cornerOutTL {
            from { transform: translate(0, 0); opacity: 1; }
            to { transform: translate(-18%, -18%); opacity: 0; }
        }
        @keyframes cornerOutTR {
            from { transform: translate(0, 0); opacity: 1; }
            to { transform: translate(18%, -18%); opacity: 0; }
        }
        @keyframes cornerOutBL {
            from { transform: translate(0, 0); opacity: 1; }
            to { transform: translate(-18%, 18%); opacity: 0; }
        }
        @keyframes cornerOutBR {
            from { transform: translate(0, 0); opacity: 1; }
            to { transform: translate(18%, 18%); opacity: 0; }
        }

        body.page.is-leaving .corner-tl { animation: cornerOutTL 0.65s ease-in forwards; }
        body.page.is-leaving .corner-tr { animation: cornerOutTR 0.65s ease-in forwards; }
        body.page.is-leaving .corner-bl { animation: cornerOutBL 0.65s ease-in forwards; }
        body.page.is-leaving .corner-br { animation: cornerOutBR 0.65s ease-in forwards; }

        /* --- Binary Background Pattern --- */
        .binary-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            overflow: hidden;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-content: center;
            pointer-events: none;
            opacity: 0.05;
            user-select: none;
        }

        .binary-bg span {
            font-family: 'JetBrains Mono', monospace;
            font-size: 1.8rem;
            font-weight: 800;
            color: #8899a6;
            line-height: 1;
            white-space: pre-wrap;
            word-break: break-all;
            text-align: center;
        }

        main {
            z-index: 10;
            width: 100%;
            max-width: 1100px;
            padding: 40px 20px 80px;
        }

        /* --- Navigation --- */
        nav ul {
            list-style: none;
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 2.5rem;
            flex-wrap: wrap;
        }

        nav a {
            text-decoration: none;
            color: var(--color-subtext);
            font-weight: 700;
            font-size: 0.8rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            transition: color 0.3s;
            display: inline-block;
        }

        nav a:hover {
            color: var(--color-blue);
        }

        nav a::before { content: "[ "; color: #bbb; }
        nav a::after { content: " ]"; color: #bbb; }

        .hero {
            display: grid;
            grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
            gap: 28px;
            align-items: center;
            margin-bottom: 2.5rem;
        }

        .hero-card {
            background: var(--panel-bg);
            border: 1px solid var(--panel-border);
            border-radius: 18px;
            padding: 28px;
            box-shadow: 0 24px 60px var(--accent-glow);
            position: relative;
            overflow: hidden;
        }

        .hero-card::after {
            content: "";
            position: absolute;
            top: -60px;
            right: -60px;
            width: 160px;
            height: 160px;
            background: radial-gradient(circle, rgba(184, 37, 37, 0.18), transparent 65%);
        }

        .hero-title {
            font-size: 2.1rem;
            font-weight: 800;
            letter-spacing: 1px;
            color: var(--color-blue);
            margin-bottom: 0.6rem;
        }

        .hero-subtitle {
            font-size: 0.95rem;
            color: var(--color-subtext);
            line-height: 1.6;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 24px;
            align-items: stretch;
        }

        .hero-grid > :nth-child(1) {
            transform: translate(10px, 10px);
        }

        .hero-grid > :nth-child(2) {
            transform: translate(0, -18px);
            z-index: 2;
        }

        .hero-grid > :nth-child(3) {
            transform: translate(-10px, 10px);
        }

        .wins-panel {
            background: var(--panel-bg);
            border: 1px solid var(--panel-border);
            border-radius: 22px;
            padding: 26px;
            display: grid;
            gap: 20px;
            position: relative;
            overflow: hidden;
        }

        .wins-panel::after {
            content: "";
            position: absolute;
            inset: -60% 20% auto auto;
            width: 220px;
            height: 220px;
            background: radial-gradient(circle, rgba(26, 58, 74, 0.12), transparent 70%);
            pointer-events: none;
        }

        .wins-row {
            display: grid;
            grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
            gap: 16px;
            align-items: center;
        }

        .wins-flag {
            width: 180px;
            max-width: 100%;
            aspect-ratio: 4 / 3;
            border-radius: 0;
            overflow: visible;
            border: none;
            display: grid;
            place-items: center;
            background: transparent;
        }

        .wins-flag img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .wins-copy {
            display: grid;
            gap: 8px;
        }

        .wins-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #7a8a9a;
        }

        .wins-value {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--color-blue);
        }

        .globe-panel {
            background: var(--panel-bg);
            border: 1px solid var(--panel-border);
            border-radius: 22px;
            padding: 26px;
            display: grid;
            gap: 20px;
            position: relative;
            overflow: hidden;
        }

        .globe-panel::after {
            content: "";
            position: absolute;
            inset: -60% 20% auto auto;
            width: 220px;
            height: 220px;
            background: radial-gradient(circle, rgba(26, 58, 74, 0.12), transparent 70%);
            pointer-events: none;
        }

        .globe-row {
            display: grid;
            grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
            gap: 16px;
            align-items: center;
        }

        .globe {
            width: 180px;
            max-width: 100%;
            aspect-ratio: 1;
            border-radius: 999px;
            overflow: hidden;
            display: grid;
            place-items: center;
            background: #102733;
        }

        .globe img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .rank-copy {
            display: grid;
            gap: 8px;
        }

        .rank-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #7a8a9a;
        }

        .rank-value {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--color-blue);
        }

        .rank-sub {
            font-size: 0.8rem;
            color: var(--color-subtext);
        }

        .country-panel {
            background: var(--panel-bg);
            border: 1px solid var(--panel-border);
            border-radius: 22px;
            padding: 26px;
            display: grid;
            gap: 20px;
            position: relative;
            overflow: hidden;
        }

        .country-panel::after {
            content: "";
            position: absolute;
            inset: -60% 20% auto auto;
            width: 220px;
            height: 220px;
            background: radial-gradient(circle, rgba(26, 58, 74, 0.12), transparent 70%);
            pointer-events: none;
        }

        .country-row {
            display: grid;
            grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
            gap: 16px;
            align-items: center;
        }

        .country-flag {
            width: 180px;
            max-width: 100%;
            aspect-ratio: 4 / 3;
            border-radius: 0;
            overflow: visible;
            border: none;
            display: grid;
            place-items: center;
            background: transparent;
        }

        .country-flag img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: 0;
        }

        .country-copy {
            display: grid;
            gap: 8px;
        }

        .country-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #7a8a9a;
        }

        .country-value {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--color-blue);
        }



        .podium-section {
            margin-top: 2.5rem;
        }

        .podium-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 0.9rem;
        }

        .podium-title {
            font-size: 0.9rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--color-subtext);
        }

        .podium-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .podium-row {
            display: grid;
            grid-template-columns: 110px minmax(0, 1fr) 150px;
            gap: 16px;
            align-items: center;
            background: var(--panel-bg);
            border: 1px solid var(--panel-border);
            border-radius: 16px;
            padding: 12px 18px;
            position: relative;
            overflow: hidden;
        }

        .podium-badge {
            display: grid;
            place-items: center;
            height: 52px;
            border-radius: 12px;
            font-size: 1.4rem;
            font-weight: 800;
            color: #0f1f29;
            background: linear-gradient(135deg, #f8d26c, #f2a93b);
            clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%, 8% 50%);
        }

        .podium-badge.place-2 {
            background: linear-gradient(135deg, #d5d8df, #9aa6b3);
        }

        .podium-badge.place-3 {
            background: linear-gradient(135deg, #e2a278, #b56b3b);
        }

        .podium-name {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--color-blue);
        }

        .podium-name a {
            color: inherit;
            text-decoration: none;
        }

        .podium-name a:hover {
            text-decoration: underline;
        }

        .podium-meta {
            font-size: 0.75rem;
            color: var(--color-subtext);
            margin-top: 0.3rem;
        }

        .podium-points {
            text-align: right;
            display: grid;
            gap: 4px;
        }

        .podium-points .rating {
            font-size: 1rem;
            font-weight: 800;
            color: var(--color-blue);
        }

        .podium-points .ctf {
            font-size: 0.75rem;
            color: var(--color-subtext);
        }

        .podium-empty {
            padding: 16px 18px;
            border: 1px dashed rgba(26, 58, 74, 0.35);
            border-radius: 12px;
            color: var(--color-subtext);
            font-size: 0.85rem;
        }

        .insight-panel {
            background: linear-gradient(135deg, rgba(26, 58, 74, 0.06), rgba(184, 37, 37, 0.05));
            border: 1px solid var(--panel-border);
            border-radius: 18px;
            padding: 20px 24px;
        }

        .insight-title {
            font-size: 0.8rem;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: #7a8a9a;
            margin-bottom: 0.8rem;
        }

        .insight-text {
            font-size: 0.9rem;
            color: var(--color-subtext);
            line-height: 1.6;
        }

        /* --- Footer --- */
        footer {
            position: absolute;
            bottom: 1.5rem;
            z-index: 10;
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: none;
            color: #777;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        @media (max-width: 900px) {
            .hero {
                grid-template-columns: 1fr;
            }
            .hero-grid {
                grid-template-columns: 1fr;
            }
            .hero-grid > :nth-child(1),
            .hero-grid > :nth-child(2),
            .hero-grid > :nth-child(3) {
                transform: none;
            }
            .globe-panel {
                order: 1;
            }
            .wins-panel {
                order: 2;
            }
            .country-panel {
                order: 3;
            }
            .globe-row {
                grid-template-columns: 100px minmax(0, 1fr);
            }
            .globe {
                width: 100px;
                justify-self: start;
            }
            .wins-row {
                grid-template-columns: 100px minmax(0, 1fr);
            }
            .wins-flag {
                width: 100px;
                justify-self: start;
            }
            .country-row {
                grid-template-columns: 100px minmax(0, 1fr);
            }
            .country-flag {
                width: 100px;
                justify-self: start;
            }
            .globe-panel,
            .wins-panel,
            .country-panel {
                padding: 20px;
            }
            .podium-row {
                grid-template-columns: 90px minmax(0, 1fr);
            }
            .podium-points {
                text-align: left;
            }
        }

        @media (max-width: 700px) {
            nav ul {
                gap: 0;
                flex-wrap: wrap;
                justify-content: center;
            }

            nav ul::before { content: "[ "; color: #bbb; margin-right: 6px; }
            nav ul::after { content: " ]"; color: #bbb; margin-left: 6px; }

            nav li::after { content: "|"; color: #bbb; margin: 0 6px; }
            nav li:last-child::after { content: ""; margin: 0; }

            nav a::before,
            nav a::after {
                content: "";
            }

            nav a { font-size: 0.7rem; }
        }

        @media (max-width: 640px) {
            .globe {
                width: 110px;
            }
            .wins-flag {
                width: 110px;
            }
            .country-flag {
                width: 110px;
            }
            .rank-value,
            .wins-value,
            .country-value {
                font-size: 1.8rem;
            }
            .podium-row {
                grid-template-columns: 1fr;
            }
            .podium-badge {
                width: 100%;
                height: 44px;
                border-radius: 10px;
                clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%);
                font-size: 1.1rem;
            }
            .podium-points {
                text-align: left;
            }
        }

        @media (max-width: 600px) {
            footer {
                left: 1.5rem;
                right: 1.5rem;
            }
            #copyright {
                white-space: pre-line;
            }
        }

        @media (max-width: 768px) {
            .corner { width: 12.5vw; height: 12.5vw; }
        }

        @media (prefers-reduced-motion: reduce) {
            body.page main,
            body.page nav,
            body.page footer,
            body.page .hero,
            body.page .hero-grid {
                transition: none;
            }

            .corner,
            body.page.is-leaving .corner-tl,
            body.page.is-leaving .corner-tr,
            body.page.is-leaving .corner-bl,
            body.page.is-leaving .corner-br {
                animation: none;
                opacity: 1;
                transform: none;
            }
        }
    
