
/* =========================================
   RAN ONLINE LEGACY - DOMINATION 3
   Official Website Theme
========================================= */

:root {
    --legacy-black: #100b09;
    --legacy-dark: #1b100d;
    --legacy-panel: #241510;
    --legacy-gold: #e8ae43;
    --legacy-orange: #f36b21;
    --legacy-red: #a91f16;
    --legacy-white: #f5ead8;
    --legacy-muted: #b9a895;
    --legacy-font-display: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    background: var(--legacy-black);
    color: var(--legacy-white);
    font-family: Tahoma, "Trebuchet MS", Arial, sans-serif;
    line-height: 1.6;
}

h1,
h2 {
    font-family: var(--legacy-font-display);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* NAVIGATION */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(16, 11, 9, 0.96);
    border-bottom: 1px solid rgba(232, 174, 67, 0.35);
    padding: 14px 0;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    color: var(--legacy-gold);
    letter-spacing: 1px;
}

.brand img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.nav-links a {
    color: var(--legacy-white);
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--legacy-gold);
}

/* HERO SECTION */

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #100b09, #24130f 55%, #100b09);
    border-bottom: 2px solid var(--legacy-gold);
}

.hero-content {
    max-width: 650px;
    padding: 80px 0;
}

.hero-logo {
    width: 105px;
    height: 105px;
    object-fit: contain;
    margin-bottom: 20px;
}

.hero-tag {
    color: var(--legacy-gold);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero h1 {
    color: var(--legacy-gold);
    font-size: clamp(34px, 5.5vw, 66px);
    line-height: 1.05;
    margin: 15px 0;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.025em;
    white-space: nowrap;
    -webkit-text-stroke: 0.5px #8f5424;
    text-shadow: 0 2px 0 #743615, 0 4px 0 #3f1b0c, 0 8px 18px #000;
}

.hero h2 {
    color: var(--legacy-white);
    font-size: clamp(18px, 3vw, 28px);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-description {
    color: #e3d2bd;
    margin: 18px 0 28px;
    max-width: 520px;
}

.prize-pool {
    color: var(--legacy-gold);
    font-size: clamp(28px, 5vw, 46px);
    font-weight: bold;
    text-shadow: 0 2px 12px #000;
}

.prize-label {
    color: var(--legacy-white);
    letter-spacing: 3px;
    font-size: 13px;
}

/* BUTTONS */

.btn-primary {
    display: inline-block;
    padding: 13px 28px;
    background: linear-gradient(
        135deg,
        var(--legacy-gold),
        var(--legacy-orange)
    );
    color: #1a0d07;
    font-weight: bold;
    border: 1px solid #ffdc87;
    margin-top: 25px;
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

/* SECTIONS */

.section {
    padding: 75px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 38px;
}

.section-heading h2 {
    color: var(--legacy-gold);
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 0 #573313, 0 5px 14px #000;
}

.section-heading p {
    color: var(--legacy-muted);
    margin-top: 8px;
}

/* EVENT INFORMATION */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background: linear-gradient(
        145deg,
        var(--legacy-panel),
        var(--legacy-dark)
    );
    border: 1px solid rgba(232, 174, 67, 0.4);
    padding: 28px;
    text-align: center;
}

.info-card h3 {
    color: var(--legacy-gold);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--legacy-muted);
}

/* FOOTER */

.footer {
    background: #090605;
    border-top: 1px solid rgba(232, 174, 67, 0.35);
    padding: 28px 0;
    text-align: center;
    color: var(--legacy-muted);
    font-size: 13px;
}

.footer a {
    color: var(--legacy-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 768px) {
    .navbar-inner {
        flex-direction: column;
    }

    .nav-links {
        justify-content: center;
        gap: 15px;
    }

    .hero {
        min-height: 550px;
        background-position: center;
    }

    .hero-content {
        text-align: center;
        margin: auto;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}


/* DOMINATION 3 EVENT OVERVIEW */

.event-overview {
    background-image:
        linear-gradient(180deg, rgba(16, 11, 9, 0.58), rgba(27, 16, 13, 0.67)),
        url("../images/domination-campus-triptych-hero.webp");
    background-position: center, center 52%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll, fixed;
}

.event-overview .info-grid {
    grid-template-columns: repeat(4, 1fr);
}

.event-overview .info-card {
    position: relative;
    overflow: hidden;
    border-top: 2px solid var(--legacy-gold);
    transition: transform 0.25s ease,
                border-color 0.25s ease;
}

.event-overview .info-card:hover {
    transform: translateY(-5px);
    border-color: var(--legacy-orange);
}

.card-value {
    color: var(--legacy-gold);
    font-size: 25px;
    font-weight: bold;
    margin: 12px 0;
}

.event-break {
    margin-top: 30px;
    padding: 24px;
    text-align: center;
    background: #170d09;
    border: 1px solid rgba(232, 174, 67, 0.4);
}

.event-break span {
    display: block;
    color: var(--legacy-orange);
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.event-break strong {
    display: block;
    color: var(--legacy-gold);
    font-size: 19px;
}

.event-break p {
    color: var(--legacy-muted);
    margin-top: 8px;
}

@media (max-width: 900px) {
    .event-overview .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .event-overview .info-grid {
        grid-template-columns: 1fr;
    }
}


/* DOMINATION 3 BATTLE SCHEDULE */

.battle-schedule {
    background-image:
        linear-gradient(180deg, rgba(16, 11, 9, 0.68), rgba(16, 11, 9, 0.76)),
        url("../images/domination-battle-schedule-background.webp");
    background-position: center, center 55%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll, fixed;
    border-top: 1px solid rgba(255, 213, 128, 0.22);
    border-bottom: 1px solid rgba(255, 213, 128, 0.2);
}

.schedule-group {
    margin-top: 35px;
}

.schedule-month {
    color: var(--legacy-gold);
    font-size: 23px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(232, 174, 67, 0.4);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.match-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 13px 8px;
    background: linear-gradient(145deg, #593821, #3b2518 58%, #2e1c13);
    border: 1px solid rgba(244, 199, 112, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 237, 191, 0.12), 0 8px 22px rgba(0, 0, 0, 0.28);
    transition: 0.25s ease;
}

.match-card:hover {
    transform: translateY(-4px);
    border-color: var(--legacy-orange);
}

.match-card span {
    color: #ffd37b;
    font-size: 12px;
    letter-spacing: 2px;
}

.match-card strong {
    color: var(--legacy-gold);
    font-size: 23px;
    margin: 3px 0;
}

.match-card small {
    color: var(--legacy-white);
    letter-spacing: 2px;
}

.match-card em {
    color: #edc989;
    font-size: 11px;
    margin-top: 5px;
    font-style: normal;
}

.schedule-break {
    margin: 45px 0;
    padding: 28px;
    text-align: center;
    background: #1b100d;
    border: 1px solid var(--legacy-red);
}

.schedule-break span {
    color: var(--legacy-orange);
    letter-spacing: 3px;
    font-size: 12px;
}

.schedule-break strong {
    display: block;
    color: var(--legacy-gold);
    font-size: 20px;
    margin: 10px 0;
}

.schedule-break p {
    color: var(--legacy-muted);
}

.final-match {
    border: 1px solid var(--legacy-orange);
    background: linear-gradient(145deg, #35130d, #1b100d);
}

.final-match em {
    color: var(--legacy-gold);
    font-weight: bold;
}

@media (max-width: 1000px) {
    .schedule-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .schedule-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .schedule-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .match-card {
        gap: 3px;
        padding: 10px 6px;
    }

    .match-card span {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .match-card strong {
        font-size: 19px;
        margin: 2px 0;
    }

    .match-card small {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .battle-schedule .match-card .match-time {
        font-size: 9px;
        letter-spacing: 0.2px;
        margin-top: 4px;
        padding: 4px 4px;
    }

    .match-card em {
        font-size: 9px;
        margin-top: 3px;
    }
}

@media (max-width: 350px) {
    .schedule-grid {
        grid-template-columns: 1fr;
    }
}

/* OFFICIAL MATCH TIME */

.match-card .match-time {
    color: #ffe4a7;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 7px;
    padding: 4px 7px;
    background: rgba(255, 211, 123, 0.14);
    border: 1px solid rgba(255, 211, 123, 0.52);
}


/* OFFICIAL GUILD LEADERBOARD */

.leaderboard-section {
    background-image:
        linear-gradient(180deg, rgba(27, 16, 13, 0.60), rgba(16, 11, 9, 0.70)),
        url("../images/campus-war-background-v2.webp");
    background-position: center, center 52%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll, fixed;
}

.leaderboard-notice {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 24px;
    margin-bottom: 25px;
    background: #241510;
    border-left: 3px solid var(--legacy-gold);
}

.leaderboard-notice strong {
    color: var(--legacy-gold);
    letter-spacing: 2px;
    font-size: 13px;
}

.leaderboard-notice span {
    color: var(--legacy-muted);
    font-size: 13px;
}

.leaderboard-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(232, 174, 67, 0.35);
}

.leaderboard-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    text-align: center;
}

.leaderboard-table th {
    padding: 19px 14px;
    color: var(--legacy-gold);
    background: #241510;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(232, 174, 67, 0.4);
}

.leaderboard-table td {
    padding: 20px 14px;
    color: var(--legacy-white);
    border-bottom: 1px solid rgba(232, 174, 67, 0.15);
}

.empty-row td {
    padding: 55px 15px;
    color: var(--legacy-gold);
    font-weight: bold;
    letter-spacing: 2px;
}

.empty-row small {
    display: block;
    color: var(--legacy-muted);
    font-weight: normal;
    letter-spacing: 0;
    margin-top: 10px;
}

.leaderboard-footer {
    text-align: center;
    color: var(--legacy-muted);
    font-size: 13px;
    margin-top: 22px;
}


/* TEMPORARY GUILD IDENTITIES */

.guild-cell {
    text-align: left !important;
}

.guild-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 190px;
}

.guild-emblem {
    width: 48px;
    height: 48px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        145deg,
        #352016,
        #140b08
    );

    border: 1px solid #b77a25;
    border-radius: 10px;

    color: var(--legacy-gold);
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;

    box-shadow:
        inset 0 0 12px rgba(232, 174, 67, 0.12),
        0 0 8px rgba(232, 174, 67, 0.08);
}

.guild-identity span {
    color: var(--legacy-white);
    font-weight: bold;
    letter-spacing: 0.5px;
}


/* SHARED WEBSITE LAYOUT */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #100b09;
    border-bottom: 1px solid rgba(232, 174, 67, 0.35);
    padding: 12px 3%;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.38);
}

.nav-container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--legacy-gold);
    font-weight: bold;
    letter-spacing: 1px;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(22px, 3.5vw, 48px);
}

.main-nav a {
    color: var(--legacy-white);
    text-decoration: none;
    font-size: 14px;
}

.main-nav a:hover {
    color: var(--legacy-gold);
}

.site-footer {
    background: #100b09;
    border-top: 1px solid rgba(232, 174, 67, 0.35);
    padding: 30px 15px;
    text-align: center;
    color: var(--legacy-muted);
}

.site-footer p {
    color: var(--legacy-gold);
    font-weight: bold;
    letter-spacing: 2px;
}

.site-footer span,
.site-footer small {
    display: block;
    margin-top: 8px;
}

.site-footer a {
    display: inline-block;
    margin-top: 8px;
    color: var(--legacy-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer a:hover {
    color: var(--legacy-gold);
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 150px;
    }

    .nav-container {
        flex-direction: column;
    }

    .main-nav {
        justify-content: center;
        gap: 15px;
    }
}


/* =====================================
   GUILD PROFILE PAGE
===================================== */

.guild-profile-section {
    min-height: 100vh;
    padding: 55px 4%;
    background:
        radial-gradient(
            ellipse at top left,
            rgba(130, 55, 15, 0.15),
            transparent 55%
        ),
        #100b09;
}

.guild-profile-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 35px;
    color: var(--legacy-gold);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
}

.back-link:hover {
    color: #ffffff;
}

.guild-profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 35px;
    background: linear-gradient(
        120deg,
        #29170f,
        #160e0b
    );
    border: 1px solid rgba(232, 174, 67, 0.4);
    margin-bottom: 25px;
}

.guild-profile-emblem {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        circle,
        #49301a,
        #100b09
    );
    border: 2px solid #b77a25;
    border-radius: 12px;
    color: var(--legacy-gold);
    font-size: 32px;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(232, 174, 67, 0.12);
}

.guild-profile-emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.guild-profile-info h1 {
    margin: 10px 0;
    color: var(--legacy-gold);
    font-size: clamp(26px, 4vw, 42px);
}

.guild-status {
    display: inline-block;
    padding: 7px 12px;
    background: rgba(232, 174, 67, 0.1);
    border: 1px solid rgba(232, 174, 67, 0.3);
    color: var(--legacy-gold);
    font-size: 12px;
    letter-spacing: 1px;
}

.guild-profile-notice {
    padding: 22px 25px;
    margin-bottom: 55px;
    background: #241510;
    border-left: 3px solid var(--legacy-gold);
}

.guild-profile-notice strong {
    color: var(--legacy-gold);
    letter-spacing: 2px;
    font-size: 13px;
}

.guild-profile-notice p {
    color: var(--legacy-muted);
    margin-bottom: 0;
    line-height: 1.7;
}

.guild-profile-section .section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.guild-profile-section .section-heading h2 {
    color: var(--legacy-gold);
    font-size: 28px;
}

.guild-profile-section .section-heading p {
    color: var(--legacy-muted);
}

.guild-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 60px;
}

.guild-stat-card {
    padding: 25px 15px;
    text-align: center;
    background: linear-gradient(
        145deg,
        #29170f,
        #160e0b
    );
    border: 1px solid rgba(232, 174, 67, 0.3);
}

.guild-stat-card span {
    display: block;
    min-height: 32px;
    color: var(--legacy-muted);
    font-size: 11px;
    letter-spacing: 1px;
}

.guild-stat-card strong {
    display: block;
    margin-top: 12px;
    color: var(--legacy-gold);
    font-size: 30px;
}

.guild-record-section {
    margin-bottom: 30px;
    padding: 30px;
    background: #1c110d;
    border: 1px solid rgba(232, 174, 67, 0.25);
}

.guild-record-section h2 {
    color: var(--legacy-gold);
    font-size: 21px;
    letter-spacing: 1px;
}

.guild-record-section p {
    color: var(--legacy-muted);
    line-height: 1.7;
}

.record-placeholder {
    margin-top: 20px;
    padding: 30px 15px;
    text-align: center;
    color: var(--legacy-gold);
    background: #100b09;
    border: 1px dashed rgba(232, 174, 67, 0.35);
    font-size: 12px;
    letter-spacing: 1.5px;
}

/* RESPONSIVE GUILD PROFILE */

@media (max-width: 900px) {
    .guild-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .guild-profile-section {
        padding: 35px 18px;
    }

    .guild-profile-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }

    .guild-profile-emblem {
        width: 95px;
        height: 95px;
    }

    .guild-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .guild-stat-card {
        padding: 20px 10px;
    }

    .guild-record-section {
        padding: 22px 18px;
    }
}


/* CLICKABLE GUILD PROFILE LINKS */

.guild-identity a {
    color: var(--legacy-white);
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.guild-identity a:hover {
    color: var(--legacy-gold);
}


/* GUILD MATCH RECORDS TABLE */

.record-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.record-badge {
    padding: 8px 12px;
    border: 1px solid rgba(232, 174, 67, 0.4);
    color: var(--legacy-gold);
    font-size: 10px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.record-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(232, 174, 67, 0.25);
}

.record-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    text-align: center;
}

.record-table th {
    padding: 16px 12px;
    background: #29170f;
    color: var(--legacy-gold);
    font-size: 11px;
    letter-spacing: 1px;
}

.record-table td {
    padding: 15px 12px;
    color: var(--legacy-white);
    font-size: 13px;
    border-top: 1px solid rgba(232, 174, 67, 0.12);
}

.record-table tbody tr:hover:not(.break-row) {
    background: rgba(232, 174, 67, 0.06);
}

.multiplier-double {
    color: var(--legacy-gold);
    font-weight: bold;
}

.break-row td {
    background: #29170f;
    color: #e58b38;
    font-size: 11px;
    letter-spacing: 2px;
    padding: 13px;
}

.final-match-row td {
    border-top: 1px solid rgba(232, 174, 67, 0.5);
    background: rgba(232, 174, 67, 0.07);
}

.record-note {
    margin-top: 18px;
    color: var(--legacy-muted);
    font-size: 12px;
    line-height: 1.6;
}


/* EXPANDABLE MATCH SCORING */

.match-detail {
    margin-top: 15px;
    background: #160e0b;
    border: 1px solid rgba(232, 174, 67, 0.3);
}

.match-detail summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 22px;
    cursor: pointer;
    list-style: none;
}

.match-detail summary::-webkit-details-marker {
    display: none;
}

.match-detail summary:hover {
    background: rgba(232, 174, 67, 0.06);
}

.match-summary-info,
.match-summary-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-summary-info strong {
    color: var(--legacy-gold);
    font-size: 17px;
}

.match-summary-info span,
.expand-label {
    color: var(--legacy-muted);
    font-size: 11px;
}

.match-summary-right {
    align-items: flex-end;
}

.match-detail[open] .expand-label {
    color: var(--legacy-gold);
}

.match-detail-content {
    padding: 25px;
    border-top: 1px solid rgba(232, 174, 67, 0.25);
}

.match-detail-content h3 {
    color: var(--legacy-gold);
    font-size: 15px;
    letter-spacing: 1px;
    margin: 25px 0 15px;
}

.match-detail-content h3:first-child {
    margin-top: 0;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.breakdown-table th {
    color: var(--legacy-gold);
    background: #29170f;
    font-size: 11px;
    padding: 13px;
}

.breakdown-table td {
    color: var(--legacy-white);
    padding: 13px;
    border-bottom: 1px solid rgba(232, 174, 67, 0.12);
    font-size: 13px;
}

.match-calculation {
    background: #241510;
    border: 1px solid rgba(232, 174, 67, 0.25);
    padding: 18px;
}

.match-calculation > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    color: var(--legacy-muted);
    border-bottom: 1px solid rgba(232, 174, 67, 0.12);
}

.match-calculation strong {
    color: var(--legacy-white);
}

.match-calculation .calculation-total {
    border-bottom: none;
    margin-top: 8px;
    color: var(--legacy-gold);
    font-weight: bold;
}

.calculation-total strong {
    color: var(--legacy-gold);
    font-size: 22px;
}

@media (max-width: 600px) {
    .match-detail summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .match-summary-right {
        align-items: flex-start;
    }

    .match-detail-content {
        padding: 15px;
        overflow-x: auto;
    }

    .breakdown-table {
        min-width: 450px;
    }
}


/* MATCH RECORD INTERACTION */

.match-instructions {
    margin: 20px 0;
    padding: 16px 18px;
    border: 1px solid #59401f;
    border-left: 3px solid #e9a12b;
    background: rgba(48, 27, 17, 0.65);
}

.match-instructions strong {
    display: block;
    color: #f5ae36;
    font-size: 12px;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.match-instructions p {
    margin: 0;
    color: #c8b8a6;
    font-size: 13px;
    line-height: 1.7;
}

.match-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid #76501e;
    background: rgba(230, 155, 42, 0.08);
    color: #f5ae36;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.match-toggle:hover,
.match-toggle[aria-expanded="true"] {
    background: #e9a12b;
    color: #1b100b;
}

.toggle-indicator {
    font-size: 13px;
}

.match-expanded-row[hidden] {
    display: none !important;
}

.match-expanded-row > td {
    padding: 16px !important;
    background: #160d09;
    border-bottom: 1px solid #59401f;
}

.expanded-match-panel {
    border: 1px solid #59401f;
    background: #1d110c;
    padding: 22px;
}

.expanded-match-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #59401f;
}

.expanded-match-heading strong {
    color: #f5ae36;
    font-size: 14px;
}

.expanded-match-heading span {
    color: #f5ae36;
    font-size: 12px;
    font-weight: 700;
}

.expanded-match-panel .match-detail-content {
    padding: 0;
}

.expanded-match-panel .breakdown-table {
    width: 100%;
    margin-bottom: 24px;
}

.expanded-match-panel .match-calculation {
    margin-top: 12px;
}

@media (max-width: 700px) {
    .match-instructions {
        padding: 13px;
    }

    .match-expanded-row > td {
        padding: 8px !important;
    }

    .expanded-match-panel {
        padding: 13px;
    }

    .expanded-match-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .expanded-match-panel .breakdown-table {
        min-width: 480px;
    }
}


/* GUILD PROFILE CINEMATIC BACKGROUND */

.guild-profile-section {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(
            rgba(16, 11, 9, 0.93),
            rgba(16, 11, 9, 0.96)
        ),
        url("../images/roadmap-master-reference.webp")
        center top / cover fixed no-repeat;
}

.guild-profile-section > .container {
    position: relative;
    z-index: 1;
}

.guild-record-section {
    width: 100%;
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(28, 17, 13, 0.94);
    border: 1px solid rgba(232, 174, 67, 0.3);
}

@media (max-width: 768px) {
    .guild-profile-section {
        background-attachment: scroll;
    }

    .guild-record-section {
        padding: 20px 14px;
    }
}


/* =========================================
   RAN ONLINE LEGACY - ADMIN DASHBOARD
========================================= */

.admin-dashboard-section {
    min-height: 100vh;
    padding: 70px 0;
    background:
        linear-gradient(
            rgba(12, 9, 8, 0.94),
            rgba(12, 9, 8, 0.97)
        ),
        url("../images/roadmap-master-reference.webp")
        center / cover fixed no-repeat;
}

.admin-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(232, 174, 67, 0.3);
}

.admin-eyebrow {
    color: #e8ae43;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.admin-dashboard-header h1 {
    color: #f5d28a;
    font-size: 32px;
    font-weight: 800;
    margin: 10px 0;
}

.admin-dashboard-header p {
    color: #b9aaa0;
}

.admin-user-info {
    min-width: 190px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    color: #b9aaa0;
    font-size: 13px;
}

.admin-user-info strong {
    color: #f5d28a;
    font-size: 17px;
}

.admin-user-info form {
    margin-top: 10px;
}

.admin-dashboard-notice {
    padding: 22px 25px;
    margin-bottom: 30px;
    background: rgba(65, 35, 20, 0.55);
    border: 1px solid rgba(232, 174, 67, 0.35);
    border-left: 4px solid #d88732;
}

.admin-dashboard-notice strong {
    color: #f5d28a;
    letter-spacing: 1px;
}

.admin-dashboard-notice p {
    color: #c6b8ad;
    margin-top: 8px;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.admin-dashboard-card {
    min-height: 190px;
    padding: 28px;
    background: rgba(28, 18, 14, 0.94);
    border: 1px solid rgba(232, 174, 67, 0.25);
    border-radius: 6px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.admin-dashboard-card:hover {
    border-color: #d99a3d;
    transform: translateY(-4px);
}

.admin-dashboard-card h3 {
    color: #f0c36e;
    font-size: 17px;
    margin-bottom: 15px;
}

.admin-dashboard-card p {
    color: #b9aaa0;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.admin-dashboard-card span {
    color: #d88732;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 900px) {
    .admin-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .admin-dashboard-section {
        padding: 40px 0;
        background-attachment: scroll;
    }

    .admin-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-dashboard-header h1 {
        font-size: 25px;
    }

    .admin-user-info {
        align-items: flex-start;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-card {
        min-height: auto;
    }
}


/* =========================================
   GUILD REGISTRATION PAGE
========================================= */

.registration-page {
    min-height: 100vh;
    padding: 70px 20px 100px;
    background:
        linear-gradient(rgba(8, 9, 13, 0.94), rgba(8, 9, 13, 0.98)),
        url("../images/roadmap-master-reference.webp") center top / cover fixed;
}

.registration-hero {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.registration-eyebrow {
    color: #d99a45;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.registration-hero h1 {
    margin: 18px 0;
    color: #f1c477;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: 2px;
}

.registration-hero > p {
    max-width: 650px;
    margin: 0 auto;
    color: #b8b8b8;
    line-height: 1.8;
}

.registration-hero > p strong {
    color: #e9b45e;
}

.registration-notice {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.registration-notice span {
    padding: 9px 16px;
    border: 1px solid rgba(213, 157, 76, 0.35);
    border-radius: 4px;
    background: rgba(213, 157, 76, 0.07);
    color: #e5b66f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.registration-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.registration-card {
    margin-bottom: 22px;
    padding: 30px;
    border: 1px solid rgba(202, 157, 91, 0.18);
    border-radius: 8px;
    background: rgba(17, 18, 23, 0.94);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.registration-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.registration-section-heading > span {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(219, 164, 86, 0.5);
    border-radius: 5px;
    background: rgba(219, 164, 86, 0.09);
    color: #e5b66f;
    font-size: 14px;
    font-weight: 800;
}

.registration-section-heading h2 {
    margin: 2px 0 7px;
    color: #eac17e;
    font-size: 17px;
    letter-spacing: 1px;
}

.registration-section-heading p {
    margin: 0;
    color: #929292;
    font-size: 13px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 23px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: #dedede;
    font-size: 13px;
    font-weight: 700;
}

.form-group label > span {
    color: #d98b58;
}

.form-group label small {
    color: #999;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #34343b;
    border-radius: 5px;
    outline: none;
    background: #101116;
    color: #f1f1f1;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #bd8747;
}

.form-group input[type="file"] {
    padding: 11px;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 13px;
    border: none;
    border-radius: 3px;
    background: #a66e32;
    color: #fff;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    line-height: 1.6;
}

.form-group > small {
    display: block;
    margin-top: 8px;
    color: #888;
    font-size: 11px;
}

.registration-helper {
    margin: 15px 0 0;
    color: #999;
    font-size: 12px;
    line-height: 1.7;
}

.character-id-guide {
    border-color: rgba(199, 146, 69, 0.3);
}

.character-id-guide ol {
    margin: 0;
    padding-left: 22px;
    color: #c5c5c5;
    font-size: 13px;
    line-height: 2.2;
}

.character-id-guide li {
    padding-left: 5px;
}

.character-id-warning {
    margin-top: 22px;
    padding: 15px 17px;
    border-left: 3px solid #bd8747;
    border-radius: 3px;
    background: rgba(189, 135, 71, 0.09);
    color: #d0c2ad;
    font-size: 12px;
    line-height: 1.7;
}

.character-id-warning strong {
    color: #e9b45e;
}

.agreement-option {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    color: #bdbdbd;
    font-size: 13px;
    line-height: 1.8;
    cursor: pointer;
}

.agreement-option input {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 3px;
    accent-color: #bd8747;
    cursor: pointer;
}

.registration-submit {
    padding: 20px 0;
    text-align: center;
}

.registration-submit button {
    width: 100%;
    max-width: 420px;
    padding: 17px 25px;
    border: 1px solid #d3a15e;
    border-radius: 4px;
    background: linear-gradient(135deg, #a66e32, #c18c49);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: 0.2s ease;
}

.registration-submit button:hover {
    background: linear-gradient(135deg, #bd8747, #d6a65f);
    transform: translateY(-2px);
}

.registration-submit p {
    margin-top: 15px;
    color: #858585;
    font-size: 11px;
}

.registration-messages {
    margin-bottom: 20px;
}

.registration-message {
    margin-bottom: 10px;
    padding: 14px 17px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.6;
}

.registration-message.success {
    border: 1px solid rgba(91, 170, 115, 0.4);
    background: rgba(55, 125, 76, 0.12);
    color: #a7d8b5;
}

.registration-message.error {
    border: 1px solid rgba(210, 100, 85, 0.4);
    background: rgba(160, 55, 45, 0.12);
    color: #e6a49a;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 600px) {
    .registration-page {
        padding: 45px 14px 65px;
    }

    .registration-hero {
        margin-bottom: 32px;
    }

    .registration-hero h1 {
        font-size: 31px;
    }

    .registration-card {
        padding: 21px 17px;
    }

    .registration-section-heading {
        gap: 12px;
    }

    .registration-section-heading h2 {
        font-size: 15px;
    }

    .registration-notice {
        gap: 8px;
    }

    .registration-notice span {
        font-size: 10px;
    }

    .registration-submit button {
        font-size: 12px;
    }
}

/* =========================================
   GUILD REGISTRATION PAGE
========================================= */

.registration-page {
    min-height: 100vh;
    padding: 70px 20px 100px;
    background:
        linear-gradient(rgba(8, 9, 13, 0.94), rgba(8, 9, 13, 0.98)),
        url("../images/roadmap-master-reference.webp") center top / cover fixed;
}

.registration-hero {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.registration-eyebrow {
    color: #d99a45;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.registration-hero h1 {
    margin: 18px 0;
    color: #f1c477;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: 2px;
}

.registration-hero > p {
    max-width: 650px;
    margin: 0 auto;
    color: #b8b8b8;
    line-height: 1.8;
}

.registration-hero > p strong {
    color: #e9b45e;
}

.registration-notice {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.registration-notice span {
    padding: 9px 16px;
    border: 1px solid rgba(213, 157, 76, 0.35);
    border-radius: 4px;
    background: rgba(213, 157, 76, 0.07);
    color: #e5b66f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.registration-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.registration-card {
    margin-bottom: 22px;
    padding: 30px;
    border: 1px solid rgba(202, 157, 91, 0.18);
    border-radius: 8px;
    background: rgba(17, 18, 23, 0.94);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.registration-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.registration-section-heading > span {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(219, 164, 86, 0.5);
    border-radius: 5px;
    background: rgba(219, 164, 86, 0.09);
    color: #e5b66f;
    font-size: 14px;
    font-weight: 800;
}

.registration-section-heading h2 {
    margin: 2px 0 7px;
    color: #eac17e;
    font-size: 17px;
    letter-spacing: 1px;
}

.registration-section-heading p {
    margin: 0;
    color: #929292;
    font-size: 13px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 23px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: #dedede;
    font-size: 13px;
    font-weight: 700;
}

.form-group label > span {
    color: #d98b58;
}

.form-group label small {
    color: #999;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #34343b;
    border-radius: 5px;
    outline: none;
    background: #101116;
    color: #f1f1f1;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #bd8747;
}

.form-group input[type="file"] {
    padding: 11px;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 13px;
    border: none;
    border-radius: 3px;
    background: #a66e32;
    color: #fff;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    line-height: 1.6;
}

.form-group > small {
    display: block;
    margin-top: 8px;
    color: #888;
    font-size: 11px;
}

.registration-helper {
    margin: 15px 0 0;
    color: #999;
    font-size: 12px;
    line-height: 1.7;
}

.character-id-guide {
    border-color: rgba(199, 146, 69, 0.3);
}

.character-id-guide ol {
    margin: 0;
    padding-left: 22px;
    color: #c5c5c5;
    font-size: 13px;
    line-height: 2.2;
}

.character-id-guide li {
    padding-left: 5px;
}

.character-id-warning {
    margin-top: 22px;
    padding: 15px 17px;
    border-left: 3px solid #bd8747;
    border-radius: 3px;
    background: rgba(189, 135, 71, 0.09);
    color: #d0c2ad;
    font-size: 12px;
    line-height: 1.7;
}

.character-id-warning strong {
    color: #e9b45e;
}

.agreement-option {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    color: #bdbdbd;
    font-size: 13px;
    line-height: 1.8;
    cursor: pointer;
}

.agreement-option input {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 3px;
    accent-color: #bd8747;
    cursor: pointer;
}

.registration-submit {
    padding: 20px 0;
    text-align: center;
}

.registration-submit button {
    width: 100%;
    max-width: 420px;
    padding: 17px 25px;
    border: 1px solid #d3a15e;
    border-radius: 4px;
    background: linear-gradient(135deg, #a66e32, #c18c49);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: 0.2s ease;
}

.registration-submit button:hover {
    background: linear-gradient(135deg, #bd8747, #d6a65f);
    transform: translateY(-2px);
}

.registration-submit p {
    margin-top: 15px;
    color: #858585;
    font-size: 11px;
}

.registration-messages {
    margin-bottom: 20px;
}

.registration-message {
    margin-bottom: 10px;
    padding: 14px 17px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.6;
}

.registration-message.success {
    border: 1px solid rgba(91, 170, 115, 0.4);
    background: rgba(55, 125, 76, 0.12);
    color: #a7d8b5;
}

.registration-message.error {
    border: 1px solid rgba(210, 100, 85, 0.4);
    background: rgba(160, 55, 45, 0.12);
    color: #e6a49a;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 600px) {
    .registration-page {
        padding: 45px 14px 65px;
    }

    .registration-hero {
        margin-bottom: 32px;
    }

    .registration-hero h1 {
        font-size: 31px;
    }

    .registration-card {
        padding: 21px 17px;
    }

    .registration-section-heading {
        gap: 12px;
    }

    .registration-section-heading h2 {
        font-size: 15px;
    }

    .registration-notice {
        gap: 8px;
    }

    .registration-notice span {
        font-size: 10px;
    }

    .registration-submit button {
        font-size: 12px;
    }
}


/* =========================================
   ADMIN GUILD APPLICATION MANAGEMENT
========================================= */

.admin-registrations-page {
    min-height: 100vh;
    padding: 55px 20px 90px;
    background:
        linear-gradient(rgba(8, 9, 13, 0.95), rgba(8, 9, 13, 0.98)),
        url("../images/roadmap-master-reference.webp") center top / cover fixed;
}

.admin-registrations-header {
    max-width: 1150px;
    margin: 0 auto 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-eyebrow {
    color: #d6a15e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.admin-registrations-header h1 {
    margin: 12px 0;
    color: #eac17e;
    font-size: clamp(27px, 4vw, 38px);
    letter-spacing: 1.5px;
}

.admin-registrations-header p {
    color: #999;
    font-size: 13px;
}

.admin-back-link {
    padding: 11px 17px;
    border: 1px solid rgba(213, 157, 76, 0.4);
    border-radius: 4px;
    color: #e5b66f;
    font-size: 12px;
    text-decoration: none;
}

.admin-back-link:hover {
    background: rgba(213, 157, 76, 0.1);
}

.admin-application-section {
    max-width: 1150px;
    margin: 0 auto 45px;
}

.admin-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(213, 157, 76, 0.25);
}

.admin-section-title h2 {
    color: #eac17e;
    font-size: 17px;
    letter-spacing: 1px;
}

.admin-section-title > span {
    color: #d6a15e;
    font-size: 12px;
}

.admin-application-card,
.admin-reviewed-card {
    margin-bottom: 20px;
    padding: 25px;
    border: 1px solid rgba(202, 157, 91, 0.2);
    border-radius: 7px;
    background: rgba(17, 18, 23, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.admin-application-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-guild-identity,
.admin-reviewed-identity {
    display: flex;
    align-items: center;
    gap: 17px;
}

.admin-guild-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    border: 1px solid rgba(213, 157, 76, 0.3);
    border-radius: 5px;
    background: #0c0d11;
}

.admin-guild-identity h3,
.admin-reviewed-identity h3 {
    margin: 0 0 8px;
    color: #f0d19c;
    font-size: 19px;
}

.admin-guild-identity p,
.admin-reviewed-identity p {
    margin: 7px 0 0;
    color: #858585;
    font-size: 11px;
}

.application-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
}

.application-status.pending {
    background: rgba(213, 157, 76, 0.12);
    color: #e8b968;
}

.application-status.approved {
    background: rgba(80, 160, 100, 0.12);
    color: #8dc99c;
}

.application-status.rejected {
    background: rgba(190, 75, 65, 0.12);
    color: #e29a91;
}

.admin-submission-date {
    text-align: right;
}

.admin-submission-date span {
    display: block;
    margin-bottom: 7px;
    color: #858585;
    font-size: 10px;
    letter-spacing: 1px;
}

.admin-submission-date strong {
    color: #c5b9a7;
    font-size: 12px;
}

.admin-guild-description {
    margin-top: 25px;
    padding: 17px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.025);
}

.admin-guild-description h4,
.admin-character-info h4 {
    margin: 0 0 10px;
    color: #d6a15e;
    font-size: 11px;
    letter-spacing: 1px;
}

.admin-guild-description p {
    margin: 0;
    color: #aaa;
    font-size: 13px;
    line-height: 1.7;
}

.admin-character-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 22px;
}

.admin-character-info {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.025);
}

.admin-character-info p {
    margin: 0 0 8px;
    color: #e1e1e1;
    font-size: 14px;
    font-weight: 700;
}

.admin-character-info small {
    color: #999;
    font-size: 11px;
}

.admin-review-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-review-actions form {
    min-width: 0;
}

.admin-review-actions textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 75px;
    padding: 12px;
    border: 1px solid #34343b;
    border-radius: 4px;
    outline: none;
    background: #101116;
    color: #eee;
    font-family: inherit;
    font-size: 12px;
    resize: vertical;
}

.admin-review-actions textarea:focus {
    border-color: #bd8747;
}

.admin-review-actions button {
    width: 100%;
    margin-top: 12px;
    padding: 13px;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    cursor: pointer;
}

.admin-approve-button {
    background: #477b50;
}

.admin-approve-button:hover {
    background: #579361;
}

.admin-reject-button {
    background: #883f3a;
}

.admin-reject-button:hover {
    background: #a54e47;
}

.admin-empty-state {
    padding: 40px 20px;
    border: 1px dashed rgba(213, 157, 76, 0.25);
    border-radius: 6px;
    background: rgba(17, 18, 23, 0.8);
    text-align: center;
}

.admin-empty-state h3 {
    color: #d6a15e;
    font-size: 14px;
}

.admin-empty-state p {
    color: #888;
    font-size: 12px;
}

.admin-reviewed-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
    gap: 25px;
}

.admin-reviewed-details {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-reviewed-details p {
    margin: 0 0 12px;
    color: #aaa;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.admin-reviewed-details strong {
    color: #d6a15e;
}

@media (max-width: 700px) {
    .admin-registrations-page {
        padding: 35px 14px 60px;
    }

    .admin-registrations-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-character-grid,
    .admin-review-actions,
    .admin-reviewed-card {
        grid-template-columns: 1fr;
    }

    .admin-reviewed-details {
        padding: 18px 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .admin-submission-date {
        text-align: left;
    }

    .admin-application-card,
    .admin-reviewed-card {
        padding: 18px;
    }
}


/* =========================================
   REGISTRATION SUCCESS PAGE
========================================= */

.registration-success {
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.success-container {
    width: 100%;
    max-width: 650px;
    padding: 40px;
    text-align: center;
    background: rgba(12, 15, 22, 0.96);
    border: 1px solid rgba(214, 145, 54, 0.35);
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.success-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid #c9974a;
    border-radius: 50%;
    color: #e4b765;
    font-size: 34px;
    font-weight: bold;
}

.success-container h1 {
    margin-bottom: 15px;
    color: #e4b765;
    font-size: 28px;
    letter-spacing: 2px;
}

.success-message {
    color: #c4c4c4;
    line-height: 1.7;
}

.application-reference {
    margin: 30px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.reference-label,
.code-label {
    display: block;
    margin-bottom: 10px;
    color: #b7a17d;
    font-size: 12px;
    letter-spacing: 1.5px;
}

.application-reference strong {
    color: #ffffff;
    font-size: 24px;
}

.registration-code-card {
    margin-top: 25px;
    padding: 25px;
    background: rgba(214, 145, 54, 0.07);
    border: 1px solid rgba(214, 145, 54, 0.45);
    border-radius: 10px;
}

.registration-code {
    margin: 20px 0;
    color: #f0c36c;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 3px;
    overflow-wrap: anywhere;
}

.copy-code-button,
.return-home-button {
    display: inline-block;
    padding: 13px 22px;
    border: none;
    border-radius: 5px;
    background: #b77a32;
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.copy-code-button:hover,
.return-home-button:hover {
    background: #d19548;
}

.code-warning {
    margin-top: 22px;
    color: #e5b86d;
    font-size: 14px;
    line-height: 1.7;
}

.code-reminder {
    margin-top: 12px;
    color: #999999;
    font-size: 12px;
    line-height: 1.6;
}

.resubmission-notice {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid rgba(214, 145, 54, 0.4);
    border-radius: 8px;
    color: #e4b765;
}

.resubmission-notice p {
    margin-top: 10px;
    color: #c4c4c4;
}

.success-footer {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Private self-service status lookup for guild applicants */
.status-container {
    max-width: 720px;
}

.status-result {
    margin-bottom: 22px;
    text-align: center;
}

.status-result-label {
    color: #b7a17d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.status-result h2 {
    margin: 8px 0 14px;
    color: #f0d19c;
    font-size: 25px;
}

.status-result > p:not(.status-result-label):not(.status-submitted) {
    max-width: 510px;
    margin: 18px auto 0;
    color: #c4c4c4;
    line-height: 1.7;
}

.status-result .application-status {
    margin-top: 3px;
}

.status-review-reason {
    max-width: 560px;
    margin: 22px auto 0;
    padding: 17px 20px;
    border: 1px solid rgba(210, 100, 85, 0.35);
    border-left: 3px solid #c46658;
    border-radius: 5px;
    background: rgba(160, 55, 45, 0.08);
    text-align: left;
}

.status-review-reason h3 {
    margin-bottom: 8px;
    color: #e6a49a;
    font-size: 11px;
    letter-spacing: 1px;
}

.status-review-reason p {
    margin: 0;
    color: #ded0c7;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.status-submitted {
    margin-top: 22px;
    color: #999;
    font-size: 12px;
}

.status-action {
    margin-top: 18px;
}

.status-form {
    margin-bottom: 15px;
}

.status-help {
    max-width: 650px;
    margin: 0 auto;
    color: #929292;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

@media (max-width: 600px) {
    .success-container {
        padding: 25px 18px;
    }

    .success-container h1 {
        font-size: 22px;
    }

    .registration-code {
        font-size: 23px;
        letter-spacing: 2px;
    }
}


/* =========================================
   RESUBMISSION AGREEMENT CHECKBOX
========================================= */

.agreement-group label {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
    line-height: 1.6;
    cursor: pointer;
}

.agreement-group input[type="checkbox"] {
    display: inline-block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    padding: 0;
    accent-color: #b77a32;
}


/* =========================================
   ADMIN REGISTRATION CODE RECOVERY
========================================= */

.admin-code-recovery {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(214, 145, 54, 0.2);
}

.admin-recovery-button {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid rgba(214, 145, 54, 0.65);
    border-radius: 5px;
    background: rgba(183, 122, 50, 0.12);
    color: #e4b765;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.7px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-recovery-button:hover {
    background: #b77a32;
    color: #ffffff;
}

.admin-code-recovery small {
    display: block;
    margin-top: 9px;
    color: #999999;
    font-size: 11px;
    line-height: 1.5;
}

/* Community stream directory and review queue */
.live-stream-list { display: grid; gap: 12px; }
.live-stream-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; padding: 16px; border: 1px solid rgba(226, 172, 72, .45); background: rgba(18, 13, 12, .76); }
.live-stream-details { display: grid; gap: 5px; }
.live-stream-details strong { color: #f0b545; }
.live-stream-details span { color: #e1d4c2; }
.live-stream-item a, .live-stream-review-card a { color: #ffd16a; font-weight: 700; }
.live-stream-watch-link { grid-column: 2; }
.live-stream-form select { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 42px 12px 15px; appearance: none; border: 1px solid #34343b; border-radius: 5px; outline: none; background-color: #101116; background-image: linear-gradient(45deg, transparent 50%, #e5b66f 50%), linear-gradient(135deg, #e5b66f 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; color: #f1f1f1; font: inherit; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.live-stream-form select:focus-visible { border-color: #bd8747; box-shadow: 0 0 0 3px rgba(189, 135, 71, .2); }
.live-stream-form select option { background: #17130f; color: #f1f1f1; }
.live-stream-form select:disabled { color: #999; cursor: not-allowed; }
.live-stream-form button:disabled { opacity: .55; cursor: not-allowed; }
.live-stream-review-card { margin-bottom: 16px; }
.live-stream-review-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.live-stream-review-actions button { cursor: pointer; }
.live-stream-review-actions .btn-secondary { padding: 10px 16px; color: #f2d9d1; border: 1px solid #9a5447; background: #3a1e1b; font: inherit; font-weight: 700; }
.stream-view-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.stream-view-tabs a { padding: 11px 15px; border: 1px solid rgba(226, 172, 72, .42); color: #e9d5b3; text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .07em; }
.stream-view-tabs a[aria-current="page"] { border-color: #eab249; background: linear-gradient(135deg, #74441f, #3e2316); color: #fff1ce; box-shadow: inset 0 0 0 1px rgba(255, 209, 106, .16); }
.stream-date-filter { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 18px; }
.stream-date-filter .form-group { margin: 0; }
.stream-date-filter .copy-code-button { min-height: 48px; }
.stream-status-badge { width: fit-content; padding: 5px 8px; border: 1px solid rgba(235, 178, 73, .5); color: #f1c477 !important; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.stream-hosting-note { margin-top: 18px; color: #a99c8d; font-size: 12px; line-height: 1.6; }
.stream-rights-confirmation { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; color: #d9cbb9; font-size: 12px; line-height: 1.6; }
.stream-rights-confirmation input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: #cf9645; }
.stream-verification-code { margin: 4px 0 16px; padding: 14px 16px; border: 1px solid rgba(226, 172, 72, .65); background: rgba(87, 52, 22, .48); color: #f4dfbb; line-height: 1.6; }
.stream-verification-code strong { color: #ffd16a; font-size: 18px; letter-spacing: .08em; }
.stream-verification-code p { margin: 6px 0 0; }
@media (max-width: 600px) { .live-stream-item { grid-template-columns: 1fr; } .live-stream-watch-link { grid-column: 1; } }
@media (max-width: 600px) { .stream-date-filter { grid-template-columns: 1fr; } .stream-view-tabs a { flex: 1 1 100%; text-align: center; } }

/* Classic fantasy MMO display treatment and event roadmap poster */
.brand,
.nav-links,
.btn-primary,
.prize-label,
.match-card span,
.match-card small {
    font-family: inherit;
}

.navbar {
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.72), 0 4px 18px rgba(0, 0, 0, 0.42);
}

.nav-links a {
    text-shadow: 1px 1px 0 #000;
}

.hero h2 {
    font-weight: 700;
    text-shadow: 0 2px 8px #000;
}

.info-card,
.match-card,
.leaderboard-table-wrapper {
    box-shadow: inset 0 0 0 1px rgba(255, 220, 135, 0.08), 0 8px 24px rgba(0, 0, 0, 0.28);
}

#results {
    background-image:
        linear-gradient(180deg, rgba(16, 11, 9, 0.22), rgba(16, 11, 9, 0.43)),
        url("../images/domination-match-results-background.webp");
    background-position: center, center 58%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll, scroll;
}

.hero-roadmap-poster {
    max-width: 1160px;
    margin: 0 auto;
    padding: 8px;
    background: linear-gradient(145deg, #f4d88f, #9c5e22 24%, #28150d 52%, #d79535 78%, #ffe5a5);
    border: 1px solid #f6d583;
    box-shadow: 0 0 0 4px #1a0f0a, 0 0 0 5px rgba(232, 174, 67, 0.66), 0 22px 60px rgba(0, 0, 0, 0.62);
}

.hero-roadmap-poster a,
.hero-roadmap-poster img {
    display: block;
    width: 100%;
}

.hero-roadmap-poster img {
    height: auto;
}

.hero.roadmap-hero {
    min-height: 0;
    display: block;
    padding: 24px 0 28px;
    background: radial-gradient(ellipse at 50% 0%, rgba(105, 53, 24, 0.34), rgba(17, 11, 9, 0.97) 70%), #100b09;
}

.roadmap-hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    max-width: 1160px;
    margin: 22px auto 0;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(35, 21, 15, 0.96), rgba(13, 10, 9, 0.96));
    border: 1px solid rgba(232, 174, 67, 0.38);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.roadmap-hero-copy .hero-tag {
    margin: 0 0 5px;
    font-size: 10px;
    letter-spacing: 2.4px;
}

.roadmap-hero-copy h1 {
    margin: 0;
    color: var(--legacy-gold);
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.08;
}

.roadmap-hero-copy > p:last-child {
    margin: 7px 0 0;
    color: #e3d2bd;
    font-size: 14px;
}

.roadmap-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.roadmap-battle-guide {
    position: fixed;
    right: clamp(14px, 2vw, 30px);
    bottom: clamp(12px, 2vh, 24px);
    z-index: 950;
    display: flex;
    width: min(475px, calc(100vw - 32px));
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0;
    isolation: isolate;
    pointer-events: none;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.58));
}

.guide-message-panel {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    margin-bottom: 28px;
    padding: 15px 16px 14px;
    border: 1px solid rgba(241, 193, 91, 0.7);
    background: linear-gradient(145deg, rgba(40, 24, 17, 0.98), rgba(12, 9, 8, 0.97));
    box-shadow: inset 0 0 24px rgba(232, 174, 67, 0.08), 0 8px 22px rgba(0, 0, 0, 0.46);
    pointer-events: auto;
}

.guide-message-panel::after {
    position: absolute;
    right: -9px;
    bottom: 45px;
    width: 16px;
    height: 16px;
    border-top: 1px solid rgba(241, 193, 91, 0.7);
    border-right: 1px solid rgba(241, 193, 91, 0.7);
    background: #1c120e;
    content: "";
    transform: rotate(45deg);
}

.guide-message-header > button {
    pointer-events: auto;
}

.guide-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 18px;
}

.guide-kicker {
    color: #f1c15b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.guide-next-tip {
    margin-left: auto;
    padding: 5px 8px;
    border: 1px solid rgba(232, 174, 67, 0.42);
    background: rgba(232, 174, 67, 0.08);
    color: #eed7a1;
    font: inherit;
    font-size: 9px;
    letter-spacing: 0.8px;
    cursor: pointer;
}

.guide-minimize {
    position: absolute;
    top: 54px;
    right: 8px;
    z-index: 4;
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    padding: 0 0 3px;
    border: 1px solid rgba(241, 193, 91, 0.76);
    border-radius: 50%;
    background: rgba(18, 11, 8, 0.9);
    color: #ffe3a0;
    font: inherit;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.guide-minimize:hover,
.guide-minimize:focus-visible { background: #623819; color: #fff0c8; outline: 2px solid rgba(241, 193, 91, 0.82); outline-offset: 2px; }

.guide-next-tip:hover,
.guide-next-tip:focus-visible {
    border-color: #f1c15b;
    color: #fff2ce;
    outline: 2px solid rgba(241, 193, 91, 0.46);
    outline-offset: 2px;
}

.guide-voice-mark {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 12px;
}

.guide-voice-mark i {
    display: block;
    width: 2px;
    height: 4px;
    border-radius: 2px;
    background: #f36b21;
    transform: scaleY(0.55);
    transform-origin: center;
}

.guide-voice-mark i:nth-child(2) { height: 9px; }
.guide-voice-mark i:nth-child(3) { height: 6px; }

.motion-enabled .guide-voice-mark i { animation: guide-talk 760ms ease-in-out infinite; animation-play-state: paused; }
.motion-enabled .guide-voice-mark i:nth-child(2) { animation-delay: 100ms; }
.motion-enabled .guide-voice-mark i:nth-child(3) { animation-delay: 210ms; }
.motion-enabled .roadmap-battle-guide.is-speaking .guide-voice-mark i { animation-play-state: running; }

.guide-message {
    min-height: 44px;
    margin: 9px 0 12px;
    color: #f3e6d2;
    font-size: 14px;
    line-height: 1.5;
}

.guide-chat-transcript {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 176px;
    margin: 8px 0 11px;
    padding: 2px 4px 4px 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(241, 193, 91, 0.65) rgba(8, 7, 6, 0.5);
    scrollbar-width: thin;
}
.guide-chat-transcript[hidden] { display: none; }

.guide-chat-question,
.guide-chat-answer {
    max-width: 94%;
    margin: 0;
    padding: 7px 9px;
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.guide-chat-question {
    align-self: flex-end;
    border: 1px solid rgba(241, 193, 91, 0.32);
    background: rgba(104, 57, 24, 0.62);
    color: #ffe8b4;
}

.guide-chat-answer {
    align-self: flex-start;
    border: 1px solid rgba(255, 232, 180, 0.13);
    background: rgba(7, 6, 5, 0.48);
    color: #f3e6d2;
}

.guide-chat-answer p { margin: 0; }
.guide-chat-links { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.guide-chat-links a {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 7px;
    border: 1px solid rgba(241, 193, 91, 0.52);
    background: rgba(232, 174, 67, 0.12);
    color: #ffda8a;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.45px;
    text-decoration: none;
}
.guide-chat-links a:hover,
.guide-chat-links a:focus-visible { border-color: #f1c15b; background: rgba(232, 174, 67, 0.24); color: #fff4d6; }

.guide-question-form {
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin: 0 0 5px;
}

.guide-question-form input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 8px 9px;
    border: 1px solid rgba(241, 193, 91, 0.42);
    border-radius: 0;
    outline: none;
    background: rgba(7, 6, 5, 0.78);
    color: #f5ead8;
    font: inherit;
    font-size: 10px;
}

.guide-question-form input::placeholder { color: #b7a78e; opacity: 1; }
.guide-question-form input:focus { border-color: #f1c15b; box-shadow: 0 0 0 2px rgba(241, 193, 91, 0.16); }

.guide-question-form button {
    flex: 0 0 auto;
    min-width: 48px;
    padding: 0 9px;
    border: 1px solid #e9a33b;
    border-radius: 0;
    background: linear-gradient(135deg, #f1c15b, #c66d22);
    color: #1c100a;
    font: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    cursor: pointer;
}

.guide-question-form button:hover,
.guide-question-form button:focus-visible { background: #ffe29b; outline: 2px solid rgba(241, 193, 91, 0.55); outline-offset: 2px; }

.guide-question-hint {
    margin: 0 0 9px;
    color: #b9a895;
    font-size: 8px;
    line-height: 1.4;
}

.guide-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.guide-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.guide-shortcuts a {
    padding: 6px 8px;
    border: 1px solid rgba(213, 160, 68, 0.35);
    background: rgba(8, 7, 6, 0.56);
    color: #f1c15b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.guide-shortcuts a:hover,
.guide-shortcuts a:focus-visible {
    border-color: #f1c15b;
    background: rgba(243, 107, 33, 0.16);
    color: #fff0c8;
    outline: 2px solid rgba(241, 193, 91, 0.45);
    outline-offset: 2px;
}

.guide-character-wrap {
    position: relative;
    display: flex;
    flex: 0 0 198px;
    align-items: flex-end;
    justify-content: center;
    height: 302px;
    margin-left: -7px;
    overflow: visible;
    pointer-events: none;
}
.guide-character-wrap .guide-minimize { top: 54px; right: 8px; }

.guide-character-aura {
    position: absolute;
    right: 2px;
    bottom: 6px;
    left: 2px;
    height: 116px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(243, 107, 33, 0.38), rgba(232, 174, 67, 0.12) 42%, transparent 72%);
    filter: blur(3px);
    opacity: 0.58;
}

.guide-character {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.62));
    transform-origin: center bottom;
}

.motion-enabled .guide-character {
    animation: guide-idle 4.2s ease-in-out infinite;
}

.motion-enabled .guide-character-aura {
    animation: guide-aura 3.8s ease-in-out infinite alternate;
}

.guide-reopen {
    display: none;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: 11px;
    width: auto;
    max-width: calc(100vw - 28px);
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f1c15b;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: none;
}

.guide-avatar {
    position: relative;
    display: block;
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    border: 3px solid #f1c15b;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 25%, #55311f, #110b08 72%);
    overflow: hidden;
    box-shadow: 0 0 0 3px rgba(13, 8, 6, 0.84), 0 0 22px rgba(243, 107, 33, 0.36), inset 0 0 0 1px rgba(255, 235, 185, 0.34);
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.guide-avatar::after {
    position: absolute;
    right: 5px;
    bottom: 7px;
    width: 8px;
    height: 8px;
    border: 2px solid #1b100d;
    border-radius: 50%;
    background: #f1c15b;
    box-shadow: 0 0 10px rgba(241, 193, 91, 0.78);
    content: "";
}

.guide-avatar-image {
    position: absolute;
    top: -2px;
    left: 50%;
    width: 270px !important;
    max-width: none;
    height: auto !important;
    object-fit: initial;
    transform: translateX(-50%);
}

.guide-speech-bubble {
    position: relative;
    display: block;
    padding: 11px 14px 10px;
    border: 1px solid rgba(241, 193, 91, 0.82);
    background: linear-gradient(145deg, rgba(48, 28, 18, 0.97), rgba(14, 10, 8, 0.97));
    color: #ffe1a0;
    text-align: left;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.46), inset 0 0 18px rgba(232, 174, 67, 0.08);
}

.guide-speech-bubble::before {
    position: absolute;
    top: 50%;
    right: -7px;
    width: 12px;
    height: 12px;
    border-top: 1px solid rgba(241, 193, 91, 0.82);
    border-right: 1px solid rgba(241, 193, 91, 0.82);
    background: #26170f;
    content: "";
    transform: translateY(-50%) rotate(45deg);
}

.guide-speech-bubble strong,
.guide-speech-bubble small { display: block; position: relative; }
.guide-speech-bubble strong { font-size: 11px; letter-spacing: 1.1px; }
.guide-speech-bubble small { margin-top: 4px; color: #ead9bf; font-size: 8px; letter-spacing: 0.6px; }

.guide-reopen:hover .guide-avatar,
.guide-reopen:focus-visible .guide-avatar { box-shadow: 0 0 0 3px rgba(13, 8, 6, 0.84), 0 0 28px rgba(243, 107, 33, 0.65); transform: translateY(-2px); }
.guide-reopen:hover .guide-speech-bubble,
.guide-reopen:focus-visible .guide-speech-bubble { background: linear-gradient(145deg, #54311d, #1b100b); }
.guide-reopen:focus-visible { outline: 2px solid #f1c15b; outline-offset: 5px; }

.motion-enabled .guide-avatar-image { animation: npc-portrait-idle 4s ease-in-out infinite; }
@keyframes npc-portrait-idle {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-3px); }
}

.roadmap-battle-guide.is-minimized .guide-message-panel,
.roadmap-battle-guide.is-minimized .guide-character-wrap { display: none; }
.roadmap-battle-guide.is-minimized .guide-reopen { display: inline-flex; }
.roadmap-battle-guide.is-minimized { width: max-content; max-width: calc(100vw - 28px); }

.motion-enabled .roadmap-battle-guide:not(.is-minimized) {
    animation: guide-enter 620ms 260ms cubic-bezier(0.2, 0.72, 0.24, 1) both;
}

.motion-enabled .roadmap-battle-guide.is-speaking .guide-character { animation: guide-speaking 720ms ease-in-out; }

@media (max-width: 640px) {
    .roadmap-battle-guide {
        right: 10px;
        bottom: 10px;
        display: block;
        width: min(390px, calc(100vw - 20px));
    }

    .roadmap-battle-guide.is-minimized { width: max-content; max-width: calc(100vw - 20px); }
    .guide-reopen { gap: 9px; max-width: calc(100vw - 20px); }
    .guide-avatar { flex-basis: 66px; width: 66px; height: 66px; }
    .guide-avatar-image { width: 230px !important; }
    .guide-speech-bubble { padding: 9px 11px 8px; }
    .guide-speech-bubble strong { font-size: 10px; }
    .guide-speech-bubble small { font-size: 7px; }

    .guide-message-panel { width: 100%; margin: 0; padding: 12px 94px 12px 12px; }
    .guide-message-panel::after { display: none; }
    .guide-character-wrap { position: absolute; right: 0; bottom: 0; width: 88px; height: 132px; margin: 0; }
    .guide-message-header { max-width: calc(100% - 0px); flex-wrap: wrap; gap: 5px; }
    .guide-voice-mark { display: none; }
    .guide-message { min-height: 38px; margin: 7px 0 9px; font-size: 12px; }
    .guide-chat-transcript { max-height: 124px; margin: 6px 0 8px; }
    .guide-chat-question, .guide-chat-answer { padding: 6px 7px; font-size: 10px; }
    .guide-chat-links a { min-height: 24px; font-size: 7px; }
    .guide-question-form { gap: 4px; }
    .guide-question-form input { min-height: 33px; padding: 7px; font-size: 9px; }
    .guide-question-form button { min-width: 42px; padding-inline: 6px; font-size: 8px; }
    .guide-question-hint { margin-bottom: 7px; font-size: 7px; }
    .guide-shortcuts { gap: 4px; }
    .guide-shortcuts a { padding: 5px 3px; font-size: 7px; text-align: center; }
    .guide-next-tip { margin-left: 0; padding: 4px 6px; }
    .guide-character-wrap .guide-minimize { top: 30px; right: 4px; width: 26px; height: 26px; font-size: 19px; }
}

@media (max-width: 380px) {
    .guide-reopen { gap: 8px; }
    .guide-avatar { flex-basis: 58px; width: 58px; height: 58px; }
    .guide-avatar-image { width: 205px !important; }
    .guide-speech-bubble { padding: 8px 9px 7px; }
    .guide-speech-bubble strong { font-size: 9px; }
    .guide-speech-bubble small { font-size: 6px; letter-spacing: 0.35px; }
    .guide-message-panel { padding: 10px 86px 10px 10px; }
    .guide-character-wrap { width: 80px; height: 120px; }
    .guide-message-header { gap: 5px; }
    .guide-kicker { font-size: 9px; letter-spacing: 1px; }
    .guide-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-shortcuts a { padding-inline: 2px; font-size: 7px; text-align: center; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 22px;
    border-top: 1px solid rgba(232, 174, 67, 0.34);
    border-bottom: 1px solid rgba(232, 174, 67, 0.34);
    width: fit-content;
    max-width: 100%;
    background: rgba(12, 7, 5, 0.42);
}

.hero-facts div {
    display: flex;
    flex-direction: column;
    min-width: 140px;
    padding: 10px 18px;
}

.hero-facts div + div {
    border-left: 1px solid rgba(232, 174, 67, 0.24);
}

.hero-facts strong {
    color: var(--legacy-gold);
    font-size: 16px;
    letter-spacing: 1px;
}

.hero-facts span {
    color: #e3d2bd;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero .btn-primary {
    margin-right: 8px;
}

.hero .hero-register,
.nav-links .nav-register {
    background: linear-gradient(135deg, #f2c35d, #d89129);
    border-color: #ffe09a;
    color: #211107;
}

.nav-links .nav-register {
    padding: 9px 14px;
    border: 1px solid #eac06a;
    font-weight: 700;
}

.nav-links .nav-register span {
    padding-left: 5px;
}

@media (max-width: 768px) {
    .hero.roadmap-hero {
        padding: 14px 0 18px;
    }

    .hero-roadmap-poster {
        padding: 4px;
    }

    .roadmap-hero-footer {
        margin-top: 14px;
        padding: 16px;
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .roadmap-hero-copy {
        text-align: center;
    }

    .roadmap-hero-actions {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .roadmap-hero-actions .btn-primary {
        flex: 1 1 180px;
        text-align: center;
    }

    .hero-facts {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .hero-facts div {
        min-width: 110px;
        padding: 9px 12px;
    }

    .nav-links .nav-register {
        padding: 7px 10px;
    }
}

@media (max-width: 420px) {
    .hero-facts {
        width: 100%;
        justify-content: center;
    }

    .hero-facts div {
        min-width: 0;
        flex: 1;
        padding: 9px 6px;
    }

    .hero-facts span {
        font-size: 8px;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 700px) {
    .event-overview,
    .leaderboard-section,
    .battle-schedule,
    #results {
        background-attachment: scroll, scroll;
        background-position: center, center;
    }

}
.match-results-grid {
    display: grid;
    gap: 1.5rem;
}

.match-result-card {
    overflow: hidden;
    border: 1px solid rgba(201, 157, 79, 0.32);
    border-radius: 10px;
    background: rgba(14, 18, 21, 0.88);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.match-result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(201, 157, 79, 0.2);
}

.match-result-heading span {
    color: #d8b56f;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

.match-result-heading h3 {
    margin: 0.25rem 0 0;
}

.match-result-heading small {
    color: #d8b56f;
    white-space: nowrap;
}

.match-result-card .leaderboard-table-wrapper {
    border: 0;
    border-radius: 0;
}

.match-result-card .leaderboard-table {
    min-width: 680px;
}

.match-result-card .leaderboard-table a {
    color: inherit;
    text-decoration: none;
}

.match-result-card .leaderboard-table a:hover {
    color: #e6c47e;
}

@media (max-width: 600px) {
    .match-result-heading {
        padding: 0.9rem;
    }
}

.scoring-match-picker,
.scoring-sheet {
    padding: 1.25rem;
    border: 1px solid rgba(232, 174, 67, 0.28);
    border-radius: 10px;
    background: rgba(27, 16, 13, 0.94);
}

.scoring-match-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.scoring-match-picker select,
.scoring-sheet select,
.scoring-sheet input,
.scoring-sheet textarea,
.scoring-sheet output {
    min-height: 42px;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(232, 174, 67, 0.35);
    border-radius: 5px;
    background: #160f0c;
    color: var(--legacy-white);
    font: inherit;
}

.scoring-sheet textarea {
    resize: vertical;
}

.scoring-sheet output {
    display: flex;
    align-items: center;
    color: var(--legacy-gold);
}

.scoring-sheet-list {
    display: grid;
    gap: 1.25rem;
}

.scoring-sheet-title,
.scoring-sheet-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.penalty-entry-form > p,
.penalty-record-card > p {
    margin: 0.5rem 0 1rem;
    color: var(--legacy-muted);
}

.penalty-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.penalty-entry-grid label,
.penalty-review-form label {
    display: grid;
    gap: 0.4rem;
    color: var(--legacy-muted);
    font-size: 0.9rem;
}

.penalty-entry-grid .penalty-description {
    grid-column: 1 / -1;
}

.penalty-records {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.penalty-review-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.disqualification-confirm {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.75rem 0;
    color: var(--legacy-muted);
}

.disqualification-confirm input {
    min-height: auto;
    margin-top: 0.35rem;
}

.penalty-evidence {
    overflow-wrap: anywhere;
}

.correction-history-table .leaderboard-table {
    min-width: 1120px;
}

.correction-history-table td:nth-child(7) {
    min-width: 260px;
    white-space: normal;
}

.correction-history-limit {
    margin-top: 0.75rem;
    color: var(--legacy-muted);
}

.match-history-link {
    margin: 1rem 0;
    color: var(--legacy-gold);
}

.match-edit-card {
    margin-bottom: 1rem;
}

.match-edit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.match-edit-grid label {
    display: grid;
    gap: 0.4rem;
    color: var(--legacy-muted);
    font-size: 0.9rem;
}

.match-edit-grid .match-edit-reason {
    grid-column: span 2;
}

.event-rules-link {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--legacy-gold);
    font-weight: 700;
}

.rules-hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background-image:
        linear-gradient(180deg, rgba(16, 11, 9, 0.54), rgba(16, 11, 9, 0.72)),
        url("../images/domination-event-guide-background.webp");
    background-position: center, center 48%;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(232, 174, 67, 0.35);
}

.rules-content-section {
    background-image:
        linear-gradient(180deg, rgba(16, 11, 9, 0.70), rgba(16, 11, 9, 0.82)),
        url("../images/domination-event-guide-background.webp");
    background-position: center, center 58%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll, fixed;
}

.rules-hero h1 {
    margin: 0.5rem 0 0;
    color: var(--legacy-gold);
    font-size: clamp(2.5rem, 7vw, 5rem);
}

.rules-hero h2 {
    margin: 0 0 0.75rem;
}

.rules-prize-callout {
    display: grid;
    justify-items: center;
    gap: 0.2rem;
    margin: 1.6rem auto;
}

.rules-prize-callout span,
.rules-prize-callout small {
    color: var(--legacy-muted);
}

.rules-prize-callout strong {
    color: var(--legacy-gold);
    font-size: clamp(2rem, 6vw, 3.4rem);
}

.rules-prize-placements {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.rules-prize-placements span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 9px;
  border: 1px solid rgba(221, 177, 87, .3);
  border-radius: 6px;
  color: #e9d6a9;
  font-size: .78rem;
}

.rules-prize-placements b {
  color: #f3c75e;
  font-size: 1.05rem;
}

.violation-report-page {
    max-width: 940px;
}

.report-intro {
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.violation-report-form {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.75rem);
    border: 1px solid rgba(232, 174, 67, .24);
    border-radius: 10px;
    background: rgba(20, 15, 13, .94);
}

.report-fieldset {
    min-width: 0;
    margin: 0;
    padding: 1.1rem;
    border: 1px solid rgba(232, 174, 67, .2);
    border-radius: 7px;
}

.report-fieldset legend {
    padding: 0 .55rem;
    color: var(--legacy-gold);
    font-weight: 700;
    letter-spacing: .05em;
}

.report-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.report-fields label {
    display: grid;
    align-content: start;
    gap: .45rem;
    color: #e8dcc9;
    font-size: .92rem;
    font-weight: 600;
}

.report-fields input,
.report-fields select,
.report-fields textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: .72rem .8rem;
    border: 1px solid rgba(220, 180, 99, .42);
    border-radius: 5px;
    outline: none;
    background: #171311;
    color: #f5eee5;
    font: inherit;
    font-weight: 400;
}

.report-fields textarea {
    min-height: 140px;
    resize: vertical;
}

.report-fields input:focus,
.report-fields select:focus,
.report-fields textarea:focus {
    border-color: var(--legacy-gold);
    box-shadow: 0 0 0 3px rgba(232, 174, 67, .15);
}

.report-fields small {
    color: var(--legacy-muted);
    font-size: .82rem;
    font-weight: 400;
}

.report-field-wide {
    grid-column: 1 / -1;
}

.report-privacy-note {
    margin: 0;
    padding: .8rem 1rem;
    border-left: 3px solid var(--legacy-gold);
    background: rgba(232, 174, 67, .07);
    color: var(--legacy-muted);
}

.violation-report-form > .btn-primary {
    justify-self: start;
}

.flash-messages { padding-top: 12px; }
.flash-message { margin: 6px 0; padding: 12px 16px; border: 1px solid #8f7136; border-radius: 5px; background: #1d1910; color: #f3d98f; }
.flash-error { border-color: #9b4a40; background: #241311; color: #ffc2b8; }

@media (max-width: 700px) {
  .rules-prize-placements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-fields { grid-template-columns: 1fr; }
  .report-field-wide { grid-column: auto; }
  .rules-hero,
  .rules-content-section { background-attachment: scroll, scroll; }
}

.rules-content {
    display: grid;
    gap: 1.25rem;
    max-width: 1000px;
}

.public-roster-list {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.25rem;
}

.recording-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: .75rem;
  margin: 1rem 0 1.5rem;
}

.recording-summary > div {
  display: grid;
  gap: .35rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(198, 162, 82, .28);
  border-radius: 8px;
  background: rgba(12, 16, 20, .78);
}

.recording-summary span {
  color: #c6a252;
  font-size: .7rem;
  letter-spacing: .08em;
}

.recording-summary strong {
  color: #f4eee2;
  font-size: 1.35rem;
}

.public-roster-list li {
  break-inside: avoid;
  margin: 0 0 .45rem;
  color: var(--text-muted, #c1c9d4);
}

@media (max-width: 640px) {
  .public-roster-list { columns: 1; }
}

.rules-intro,
.rules-panel {
    padding: clamp(1.1rem, 3vw, 1.75rem);
    border: 1px solid rgba(232, 174, 67, 0.22);
    border-radius: 10px;
    background: rgba(27, 16, 13, 0.88);
}

.rules-intro h2,
.rules-panel h2 {
    margin: 0 0 0.7rem;
    color: var(--legacy-gold);
}

.rules-panel p,
.rules-panel li,
.rules-intro p {
    color: #e4d8c8;
}

.rules-panel p + p,
.rules-panel ul + p,
.rules-panel ol + p {
    margin-top: 1rem;
}

.rules-panel ul,
.rules-panel ol {
    padding-left: 1.35rem;
}

.rules-panel li + li {
    margin-top: 0.45rem;
}

.rules-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid rgba(232, 174, 67, 0.2);
    border-radius: 7px;
}

.rules-table {
    width: 100%;
    border-collapse: collapse;
}

.rules-table th,
.rules-table td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid rgba(232, 174, 67, 0.12);
    text-align: left;
}

.rules-table th {
    color: var(--legacy-gold);
    background: rgba(232, 174, 67, 0.07);
}

.rules-table td:last-child {
    color: #f1d99f;
    white-space: nowrap;
}

.rules-table .rules-total td {
    border-bottom: 0;
    font-weight: 700;
}

.rules-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-left: 3px solid var(--legacy-gold);
    background: rgba(232, 174, 67, 0.07);
}

.rules-highlight strong {
    color: var(--legacy-gold);
    font-size: 1.5rem;
    white-space: nowrap;
}

.rules-highlight span,
.rules-note,
.rules-footer-note {
    color: var(--legacy-muted) !important;
}

.rules-footer-note {
    text-align: center;
}

.scoring-sheet-title h2 {
    margin: 0;
}

.report-record-card {
    margin: 18px 0;
}

.scoring-sheet-title p {
    color: var(--legacy-muted);
}

.scoring-checkpoints {
    display: grid;
    grid-template-columns: repeat(6, minmax(100px, 1fr));
    gap: 0.75rem;
    margin: 1.2rem 0;
    padding: 1rem;
    border: 1px solid rgba(232, 174, 67, 0.2);
}

.scoring-checkpoints legend {
    padding: 0 0.5rem;
    color: var(--legacy-gold);
}

.scoring-checkpoints label,
.scoring-secondary-fields label,
.scoring-reason {
    display: grid;
    gap: 0.4rem;
    color: var(--legacy-muted);
    font-size: 0.9rem;
}

.scoring-secondary-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 1rem;
}

.scoring-reason {
    margin-top: 1rem;
}

.scoring-sheet-actions {
    justify-content: flex-end;
    margin-top: 1rem;
}

.scoring-confirm-button {
    background: linear-gradient(135deg, #9a631c, #d7a340);
}

@media (max-width: 760px) {
    .scoring-checkpoints {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
    }

    .scoring-match-picker,
    .scoring-sheet-title,
    .scoring-sheet-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .scoring-secondary-fields {
        grid-template-columns: 1fr;
    }

    .penalty-entry-grid {
        grid-template-columns: 1fr;
    }

    .match-edit-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .match-edit-grid .match-edit-reason {
        grid-column: 1 / -1;
    }

    .rules-highlight {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.4rem;
    }
}

@media (max-width: 600px) {
    html {
        scroll-padding-top: 154px;
    }

    .site-header {
        padding: 7px 12px 0;
    }

    .nav-container {
        align-items: stretch;
        gap: 0;
    }

    .brand {
        align-self: center;
        gap: 8px;
        font-size: 13px;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .main-nav {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 10px;
        padding: 8px 0 10px;
    }

    .main-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 4px 2px;
    }
}

/* RAN ONLINE LEGACY MOTION */
.motion-enabled .roadmap-hero .hero-roadmap-poster {
    animation: roadmap-arrival 720ms cubic-bezier(0.2, 0.72, 0.24, 1) both;
}

.motion-enabled .roadmap-hero .roadmap-hero-footer {
    animation: roadmap-copy-arrival 560ms 120ms cubic-bezier(0.2, 0.72, 0.24, 1) both;
}

.roadmap-hero,
.event-overview,
.leaderboard-section,
.battle-schedule,
#results {
    position: relative;
    isolation: isolate;
}

.roadmap-hero > .container,
.event-overview > .container,
.leaderboard-section > .container,
.battle-schedule > .container,
#results > .container {
    position: relative;
    z-index: 1;
}

.roadmap-hero::before,
.event-overview::before,
.leaderboard-section::before,
.battle-schedule::before,
#results::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background:
        radial-gradient(ellipse at 18% 38%, rgba(232, 174, 67, 0.13), transparent 40%),
        radial-gradient(ellipse at 82% 64%, rgba(169, 31, 22, 0.12), transparent 42%);
    content: "";
    opacity: 0.72;
    pointer-events: none;
}

.event-overview::after,
.leaderboard-section::after,
.battle-schedule::after,
#results::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-image:
        radial-gradient(circle at 8% 24%, rgba(255, 211, 123, 0.85) 0 1px, transparent 2px),
        radial-gradient(circle at 19% 78%, rgba(243, 107, 33, 0.7) 0 1px, transparent 2px),
        radial-gradient(circle at 35% 43%, rgba(255, 232, 173, 0.75) 0 1px, transparent 2px),
        radial-gradient(circle at 54% 88%, rgba(232, 174, 67, 0.8) 0 1px, transparent 2px),
        radial-gradient(circle at 73% 19%, rgba(255, 211, 123, 0.75) 0 1px, transparent 2px),
        radial-gradient(circle at 91% 61%, rgba(243, 107, 33, 0.75) 0 1px, transparent 2px);
    content: "";
    opacity: 0.24;
    pointer-events: none;
    transform: translate3d(0, 10px, 0);
}

.motion-enabled .roadmap-hero::before,
.motion-enabled .event-overview::before,
.motion-enabled .leaderboard-section::before,
.motion-enabled .battle-schedule::before,
.motion-enabled #results::before {
    animation: battlefield-aura-drift 22s ease-in-out infinite alternate;
}

.motion-enabled .event-overview::after,
.motion-enabled .leaderboard-section::after,
.motion-enabled .battle-schedule::after,
.motion-enabled #results::after {
    animation: battlefield-embers 17s ease-in-out infinite alternate;
}

.hero-roadmap-poster {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero-roadmap-poster::after {
    position: absolute;
    z-index: 2;
    inset: 8px;
    width: 40%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 225, 151, 0.04) 34%,
        rgba(255, 226, 157, 0.28) 50%,
        rgba(241, 106, 33, 0.1) 58%,
        transparent 100%
    );
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translateX(-150%) skewX(-16deg);
}

.motion-enabled .hero-roadmap-poster::after {
    animation: legacy-energy-sweep 13s 1.1s ease-in-out infinite;
}

.section-heading h2 {
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: min(112px, 42vw);
    height: 2px;
    background: linear-gradient(90deg, transparent, #a91f16 18%, #ffd77c 50%, #a91f16 82%, transparent);
    box-shadow: 0 0 10px rgba(232, 174, 67, 0.45);
    content: "";
    opacity: 0;
    transform: translateX(-50%) scaleX(0.15);
    transform-origin: center;
}

.motion-enabled [data-motion-state="revealed"].section-heading h2::after {
    animation: battle-line-ignite 640ms 120ms cubic-bezier(0.18, 0.72, 0.24, 1) both;
}

.event-overview .info-card,
.match-card {
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.event-overview .info-card::after,
.match-card::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff0bd 38%, #f36b21 62%, transparent);
    box-shadow: 0 0 10px rgba(243, 107, 33, 0.65);
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translateX(-140%) skewX(-18deg);
}

.match-card {
    position: relative;
    overflow: hidden;
}

.event-overview .info-card:hover,
.event-overview .info-card:focus-within,
.match-card:hover,
.match-card:focus-within {
    box-shadow:
        inset 0 0 18px rgba(243, 107, 33, 0.1),
        0 0 18px rgba(232, 174, 67, 0.19),
        0 10px 26px rgba(0, 0, 0, 0.38);
}

.event-overview .info-card:hover::after,
.event-overview .info-card:focus-within::after,
.match-card:hover::after,
.match-card:focus-within::after {
    animation: legacy-skill-slash 620ms cubic-bezier(0.2, 0.72, 0.24, 1) both;
}

.motion-enabled [data-motion-state="waiting"] {
    opacity: 0;
    translate: 0 18px;
    scale: 0.985;
    transition: opacity 560ms ease-out, translate 560ms cubic-bezier(0.2, 0.72, 0.24, 1), scale 560ms cubic-bezier(0.2, 0.72, 0.24, 1);
    transition-delay: var(--motion-delay, 0ms);
}

.motion-enabled [data-motion-state="revealed"] {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    transition: opacity 560ms ease-out, translate 560ms cubic-bezier(0.2, 0.72, 0.24, 1), scale 560ms cubic-bezier(0.2, 0.72, 0.24, 1);
    transition-delay: var(--motion-delay, 0ms);
}

.site-header .brand img {
    transition: transform 260ms ease, filter 260ms ease;
}

.site-header .brand:hover img,
.site-header .brand:focus-visible img {
    transform: rotate(-5deg) scale(1.06);
    filter: drop-shadow(0 0 8px rgba(232, 174, 67, 0.45));
}

.main-nav a {
    position: relative;
    transition: color 180ms ease, text-shadow 180ms ease;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--legacy-gold), transparent);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 220ms ease-out;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    text-shadow: 0 0 12px rgba(232, 174, 67, 0.45);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
}

.hero-roadmap-poster img {
    transition: filter 320ms ease;
}

.hero-roadmap-poster a:hover img,
.hero-roadmap-poster a:focus-visible img {
    filter: brightness(1.045) saturate(1.04);
}

.btn-primary,
.copy-code-button {
    transition: transform 200ms ease, filter 200ms ease, box-shadow 200ms ease;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.copy-code-button:hover,
.copy-code-button:focus-visible {
    filter: brightness(1.08);
    box-shadow: 0 7px 20px rgba(243, 107, 33, 0.2);
}

@supports (animation-timeline: view()) {
    .motion-enabled .roadmap-hero .hero-roadmap-poster {
        view-timeline-name: --roadmap-poster;
        view-timeline-axis: block;
    }

    .motion-enabled .roadmap-hero .hero-roadmap-poster img {
        animation: roadmap-scroll-depth auto linear both;
        animation-timeline: --roadmap-poster;
        animation-range: entry 0% exit 100%;
    }
}

@keyframes roadmap-arrival {
    from { opacity: 0; transform: translateY(16px) scale(0.992); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes roadmap-copy-arrival {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes roadmap-scroll-depth {
    from { transform: scale(1); }
    to { transform: scale(1.075); }
}

@keyframes legacy-energy-sweep {
    0%, 73% { opacity: 0; transform: translateX(-150%) skewX(-16deg); }
    77% { opacity: 0.82; }
    89% { opacity: 0.48; transform: translateX(340%) skewX(-16deg); }
    94%, 100% { opacity: 0; transform: translateX(340%) skewX(-16deg); }
}

@keyframes battlefield-aura-drift {
    from { opacity: 0.62; }
    to { opacity: 0.8; }
}

@keyframes battlefield-embers {
    from { opacity: 0.16; transform: translate3d(0, 10px, 0); }
    to { opacity: 0.3; transform: translate3d(0, -10px, 0); }
}

@keyframes legacy-skill-slash {
    0% { opacity: 0; transform: translateX(-140%) skewX(-18deg); }
    18% { opacity: 1; }
    100% { opacity: 0; transform: translateX(290%) skewX(-18deg); }
}

@keyframes battle-line-ignite {
    0% { opacity: 0; transform: translateX(-50%) scaleX(0.15); }
    55% { opacity: 1; transform: translateX(-50%) scaleX(1.12); }
    100% { opacity: 0.78; transform: translateX(-50%) scaleX(1); }
}

@keyframes guide-idle {
    0%, 100% { transform: translateY(0) rotate(-0.5deg); }
    50% { transform: translateY(-6px) rotate(0.5deg); }
}

@keyframes guide-speaking {
    0%, 100% { transform: translateY(-4px) rotate(0.3deg); }
    35% { transform: translateY(-12px) rotate(-0.7deg); }
    68% { transform: translateY(-6px) rotate(0.6deg); }
}

@keyframes guide-enter {
    from { opacity: 0; transform: translate(18px, 24px) scale(0.96); }
    to { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes guide-aura {
    from { opacity: 0.36; transform: scale(0.92); }
    to { opacity: 0.72; transform: scale(1.06); }
}

@keyframes guide-talk {
    0%, 100% { transform: scaleY(0.55); }
    50% { transform: scaleY(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    [data-motion-state="waiting"] {
        opacity: 1 !important;
        translate: none !important;
        scale: none !important;
    }
}

.cap-race-hero {
    padding: clamp(58px, 9vw, 104px) 0 54px;
    border-bottom: 1px solid rgba(232, 174, 67, 0.35);
    background:
        linear-gradient(90deg, rgba(12, 8, 7, 0.94), rgba(24, 13, 9, 0.78)),
        url("../images/domination-campus-triptych-hero.webp") center 46% / cover no-repeat;
}

.cap-race-hero h1 {
    margin: 8px 0;
    color: var(--legacy-gold);
    font-size: clamp(36px, 6vw, 68px);
    letter-spacing: 0.06em;
}

.cap-race-lead { max-width: 680px; color: #f3e6d2; font-size: clamp(16px, 2vw, 21px); }
.cap-race-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 860px; margin-top: 30px; }
.cap-race-facts article,
.cap-race-standings {
    padding: 18px 20px;
    border: 1px solid rgba(232, 174, 67, 0.4);
    background: rgba(13, 9, 7, 0.82);
}
.cap-race-facts span,
.cap-race-pool-split span { display: block; color: #d5ad67; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; }
.cap-race-facts strong { display: block; margin-top: 8px; color: #fff0c8; font-size: clamp(18px, 2.7vw, 28px); }
.cap-race-status-note { max-width: 860px; margin: 18px 0 0; color: #e9d5b3; font-size: 13px; }
.cap-race-facts small { display: block; margin-top: 5px; color: #cfb99a; font-size: 11px; }
.cap-race-details { background: linear-gradient(180deg, #17100d, #0d0b0a); }
.cap-race-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cap-race-card { padding: 22px; }
.cap-race-card ul { margin: 14px 0 0; padding-left: 22px; color: #e4d4c0; line-height: 1.75; }
.cap-race-card > p { color: #d7c4ad; font-size: 13px; line-height: 1.7; }
.cap-race-pool-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.cap-race-pool-split > div { padding: 14px; border: 1px solid rgba(232, 174, 67, 0.32); background: rgba(8, 7, 6, 0.46); }
.cap-race-pool-split strong { display: block; margin-top: 6px; color: var(--legacy-gold); font-size: 24px; }
.cap-race-claim { grid-column: 1 / -1; }
.cap-race-claim .btn-primary { margin: 8px 0 0; text-decoration: none; }
.cap-race-standings { margin-top: 24px; }
.cap-race-standings h2 { margin: 4px 0 10px; color: var(--legacy-gold); }
.cap-race-standings p { color: #dfcfbb; font-size: 13px; line-height: 1.7; }
.cap-race-standings .cap-race-source-note { margin-bottom: 0; color: #c2aa8c; font-size: 11px; }
.cap-race-award-list { display: grid; gap: 7px; margin: 14px 0; }
.cap-race-award-list > div { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 11px; border: 1px solid rgba(232, 174, 67, 0.22); background: rgba(8, 7, 6, 0.35); }
.cap-race-award-list strong { flex: 0 0 auto; color: #f1c15b; font-size: 11px; }
.cap-race-award-list span { color: #e4d4c0; font-size: 11px; text-align: right; }
.cap-race-categories { display: grid; gap: 24px; margin-top: 22px; }
.cap-race-category { padding: clamp(16px, 2.5vw, 26px); border: 1px solid rgba(232, 174, 67, 0.38); background: linear-gradient(145deg, rgba(33, 21, 15, 0.95), rgba(13, 10, 9, 0.96)); }
.cap-race-category-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 16px; }
.cap-race-category-heading h3 { margin: 3px 0 0; color: #f1c15b; font-size: clamp(20px, 3vw, 30px); }
.cap-race-slot-summary { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 7px; text-align: right; }
.cap-race-slot-summary strong { color: #fff0c8; font-size: 20px; }
.cap-race-slot-summary span { color: #c9b79d; font-size: 10px; }
.cap-race-slot-summary b { grid-column: 1 / -1; color: #eeb657; font-size: 11px; font-weight: 700; }
.cap-race-overall-winner { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; padding: 13px 16px; border: 1px solid rgba(241, 193, 91, 0.48); background: linear-gradient(110deg, rgba(92, 55, 22, 0.62), rgba(14, 10, 8, 0.78)); }
.cap-race-overall-winner span { display: block; color: #eac36f; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; }
.cap-race-overall-winner strong { display: block; margin-top: 5px; color: #fff0c8; font-size: 18px; }
.cap-race-overall-winner p { margin: 0; color: #f3ddaa; font-size: 11px; text-align: right; }
.cap-race-class-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cap-race-class-card { min-width: 0; padding: 14px; border: 1px solid rgba(232, 174, 67, 0.25); background: rgba(8, 7, 6, 0.53); }
.cap-race-class-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.cap-race-class-card h4 { margin: 0; color: #f1c15b; font-size: 16px; }
.cap-race-class-card header span { color: #c9b79d; font-size: 9px; text-align: right; }
.cap-race-class-card ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cap-race-class-card li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 34px; padding: 5px 7px; border: 1px solid rgba(232, 174, 67, 0.12); background: rgba(255, 255, 255, 0.025); }
.cap-race-class-card li.is-open { border-style: dashed; color: #a99c8d; }
.cap-race-rank { color: #e8b24c; font-size: 11px; font-weight: 800; text-align: center; }
.cap-race-player { overflow: hidden; color: #efe2d0; font-size: 11px; text-overflow: ellipsis; }
.cap-race-class-card li.is-open .cap-race-player { color: #b9a895; letter-spacing: 0.05em; }
.cap-race-reward { color: #d7b66f; font-size: 10px; white-space: nowrap; }
.cap-race-class-card > small { display: block; margin-top: 8px; color: #a99c8d; font-size: 9px; line-height: 1.4; }

@media (max-width: 700px) {
    .cap-race-facts { grid-template-columns: 1fr; gap: 8px; }
    .cap-race-facts article { padding: 12px 14px; }
    .cap-race-grid { grid-template-columns: 1fr; }
    .cap-race-claim { grid-column: auto; }
    .cap-race-card { padding: 16px; }
    .cap-race-category-heading, .cap-race-overall-winner { align-items: flex-start; flex-direction: column; }
    .cap-race-slot-summary { text-align: left; }
    .cap-race-overall-winner p { text-align: left; }
    .cap-race-class-grid { grid-template-columns: 1fr; }
}

/* Event selection is the portal home; event pages use their own direct navigation. */
.portal-header-note { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: #edc46d; font-size: 10px; font-weight: 800; letter-spacing: 0.16em; }
.portal-header-note small { color: #a99a87; font-size: 8px; letter-spacing: 0.13em; }
.main-nav.event-nav { display: grid; flex: 1 1 auto; min-width: 0; grid-template-columns: repeat(6, max-content); justify-content: center; align-content: center; align-items: center; gap: 4px clamp(9px, 1.05vw, 15px); }
.main-nav.event-nav a { justify-self: center; padding: 5px 2px; color: #f0e4d2; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.main-nav.event-nav a.nav-all-events { padding: 8px 11px; border: 1px solid rgba(232, 174, 67, 0.4); background: rgba(232, 174, 67, 0.08); color: #f1cf8a; font-size: 12px; }
.main-nav.event-nav a.nav-current-event { padding: 9px 13px; border: 1px solid #ffdc8c; background: linear-gradient(135deg, #f2c25e, #d89432); box-shadow: 0 3px 12px rgba(216, 148, 50, 0.28), inset 0 1px rgba(255, 255, 255, 0.28); color: #21130b; font-size: 14px; font-weight: 900; letter-spacing: 0.025em; }
.main-nav.event-nav a.nav-all-events::after,
.main-nav.event-nav a.nav-current-event::after { display: none; }
.main-nav.event-nav a.nav-current-event:hover,
.main-nav.event-nav a.nav-current-event:focus-visible { background: linear-gradient(135deg, #ffdc82, #e9a942); color: #1c1008; text-shadow: none; }
.main-nav.cap-race-page-nav { display: flex; flex-wrap: wrap; gap: 5px clamp(12px, 1.5vw, 22px); }

.event-selector {
    min-height: calc(100vh - 150px);
    padding: clamp(30px, 5vh, 58px) clamp(16px, 3vw, 42px) clamp(36px, 6vh, 64px);
    background:
        linear-gradient(180deg, rgba(8, 7, 6, 0.86), rgba(12, 8, 7, 0.92)),
        url("../images/domination-campus-triptych-hero.webp") center 44% / cover no-repeat;
}

.event-selector-inner { max-width: 1360px; margin: 0 auto; }
.event-selector-heading { margin: 0 auto clamp(24px, 4vh, 40px); text-align: center; }
.event-selector-heading .hero-tag { margin-bottom: 8px; }
.event-selector-heading h1 { margin: 0; color: #f0bd58; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 5vw, 58px); line-height: 1.08; text-transform: uppercase; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.55); }
.event-selector-heading > p:last-child { margin: 11px 0 0; color: #d4c2a9; font-size: clamp(13px, 1.5vw, 17px); }
.event-selector-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 22px); }
.event-selector-card {
    position: relative;
    display: flex;
    min-height: clamp(220px, 27vh, 300px);
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(18px, 2.3vw, 30px);
    border: 1px solid rgba(237, 188, 87, 0.52);
    background-color: #17100c;
    background-position: center;
    background-size: cover;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34), inset 0 0 38px rgba(0, 0, 0, 0.36);
    color: #f5eadb;
    text-decoration: none;
    isolation: isolate;
}

.event-selector-card::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(9, 7, 6, 0.94), rgba(11, 8, 7, 0.68) 56%, rgba(10, 7, 6, 0.34)); content: ""; transition: background 220ms ease; }
.event-selector-card::after { position: absolute; z-index: -1; inset: 0; border: 1px solid rgba(255, 226, 157, 0.1); content: ""; pointer-events: none; }
.event-selector-cap-race { background-image: url("../images/domination-campus-hero.webp"); }
.event-selector-domination { background-image: url("../images/campus-war-background-v2.webp"); }
.event-selector-tyranny { background-image: url("../images/domination-match-results-background.webp"); }
.event-selector-conquerors { background-image: url("../images/domination-market-hero.webp"); }
.event-selector-status { align-self: flex-start; padding: 7px 10px; border: 1px solid rgba(241, 193, 91, 0.55); background: rgba(12, 9, 7, 0.78); color: #f0c86f; font-size: 9px; font-weight: 800; letter-spacing: 0.13em; }
.event-selector-copy { max-width: 560px; }
.event-selector-number { color: #cba96b; font-size: 9px; font-weight: 800; letter-spacing: 0.2em; }
.event-selector-copy h2 { margin: 5px 0 8px; color: #fff2d1; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 3vw, 38px); line-height: 1.04; text-transform: uppercase; text-shadow: 0 3px 12px rgba(0, 0, 0, 0.68); }
.event-selector-copy p { max-width: 450px; margin: 0 0 10px; color: #ddcfbd; font-size: 12px; line-height: 1.55; }
.event-selector-copy time { display: block; color: #f2d18a; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.event-selector-prize { display: flex; width: fit-content; align-items: baseline; gap: 9px; margin-top: 9px; padding: 5px 9px; border-left: 2px solid #f0bd58; background: linear-gradient(90deg, rgba(125, 68, 22, 0.6), rgba(31, 17, 11, 0.35)); }
.event-selector-prize span { color: #f2cd7a; font-size: 8px; font-weight: 900; letter-spacing: 0.12em; }
.event-selector-prize strong { color: #fff0c8; font-size: 17px; line-height: 1; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65); }
.event-selector-action { display: inline-flex; align-items: center; gap: 9px; margin-top: 17px; color: #ffd16f; font-size: 10px; font-weight: 900; letter-spacing: 0.13em; }
.event-selector-action b { font-size: 17px; line-height: 0.8; }
a.event-selector-card:hover,
a.event-selector-card:focus-visible { border-color: #f4c766; box-shadow: 0 18px 38px rgba(0, 0, 0, 0.48), 0 0 0 2px rgba(241, 193, 91, 0.15); outline: none; transform: translateY(-2px); }
a.event-selector-card:hover::before,
a.event-selector-card:focus-visible::before { background: linear-gradient(90deg, rgba(9, 7, 6, 0.89), rgba(11, 8, 7, 0.58) 56%, rgba(10, 7, 6, 0.18)); }
.event-selector-card.is-coming-soon { border-color: rgba(182, 152, 101, 0.34); filter: saturate(0.74); }
.event-selector-card.is-coming-soon .event-selector-status { border-color: rgba(182, 152, 101, 0.34); color: #d0ba93; }
.event-selector-card.is-coming-soon .event-selector-action { color: #c7b69b; }

@media (max-width: 768px) {
    .main-nav.event-nav { flex: 0 0 auto; grid-template-columns: repeat(6, max-content); justify-content: center; gap: 3px 10px; }
    .main-nav.event-nav a { padding: 5px 2px; font-size: 13px; }
    .main-nav.event-nav a.nav-current-event { padding: 7px 11px; font-size: 13px; }
    .main-nav.event-nav a.nav-all-events { padding: 6px 9px; }
    .portal-header-note { align-items: center; margin: 0 0 7px; }
    .event-selector { min-height: auto; }
    .event-selector-grid { grid-template-columns: 1fr; }
    .event-selector-card { min-height: 230px; }
}

@media (max-width: 620px) {
    .main-nav.event-nav { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px clamp(5px, 2vw, 10px); }
    .main-nav.event-nav a { max-width: 100%; padding: 5px 1px; font-size: 11px; line-height: 1.15; text-align: center; white-space: normal; }
    .main-nav.event-nav a.nav-all-events { padding: 5px 3px; font-size: 11px; }
    .main-nav.event-nav a.nav-current-event { padding: 6px 4px; font-size: 11px; }
    .main-nav.event-nav.cap-race-page-nav { display: grid; width: auto; grid-template-columns: repeat(3, max-content); }
}

@media (max-width: 420px) {
    .event-selector-heading h1 { font-size: 32px; }
    .event-selector-card { min-height: 215px; }
    .event-selector-copy h2 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
    .event-selector-card,
    .event-selector-card::before { transition: none; }
}

.portal-announcements-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(237, 188, 87, 0.52);
    color: #edc46d;
    font-size: 13px;
    letter-spacing: normal;
    text-decoration: none;
}

.portal-announcements-link:hover,
.portal-announcements-link:focus-visible {
    background: #302011;
    color: #ffe1a0;
    outline: 2px solid #edc46d;
    outline-offset: 2px;
}

.npc-support-link {
    position: fixed;
    z-index: 900;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 5px 12px 5px 5px;
    border: 1px solid #d3a854;
    border-radius: 8px;
    background: #1a110b;
    color: #ffe1a0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.npc-support-link img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
}

.npc-support-link:hover,
.npc-support-link:focus-visible {
    background: #302011;
    outline: 2px solid #edc46d;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .portal-home-header {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .portal-home-header .nav-container {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .portal-home-header .portal-header-note {
        flex: 0 0 auto;
        align-items: flex-end;
        margin: 0;
    }
}

.rules-content { grid-template-columns: minmax(0, 1fr); }
