

@font-face {
    font-family: 'Baseball Club';
    src: url('/Fonts/Baseball_Club_Solid.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'Charles Wright';
    src: url('/Fonts/CharlesWright-Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'Batica';
    src: url('/Fonts/BaticaSans-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Archivo';
    src: url('/Fonts/ArchivoNarrow-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}



input[type="checkbox"]:checked {
    background-color: #C99A6B !important; 
    border-color: #C99A6B !important; 
}

h1,   h4, h5 {
    font-family: 'Baseball Club', sans-serif;
}

h2, h3 {
    color: #e8bd5e;
    font-family: 'Baseball Club', sans-serif;
}

html, body {
    font-family: 'Archivo', sans-serif;
    background-color: #2f1201;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    min-height: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
} 

.div-row-main {
    display: flex; 
    justify-content: center;
    gap: 20px;
}

.div-row-main > div {
    flex: 1;
}

.site-background {
    min-height: 100vh;
    background-image: url('/Images/background.jpg');
    background-repeat: repeat;
}

.main-window {
    width: 75%;
    max-width: 1400px;
    /*min-width: 800px;*/
    min-height: 100vh;
    margin: 0 auto;
    background-color: #2f1201;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}


.home-logo {
    width: 66%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #b45f06;
    border-color: #a84d00;
}

    .btn-primary:hover {
        color: #fff;
        background-color: #e07800;
        border-color: #a8Ddd0;
    }

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.admin-text {
    background-color: #404040;
    color: #c9f60c
}

.saved-text-good {
    color: #65f342;
    font-weight: bold
}

.saved-text-bad {
    color: #e50000;
    font-weight: bold
}

.weekly-instructions {
    font-family: "Batica", serif;
    display: none;
    visibility: hidden
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.util-select,
.util-select option {
    background-color: #323222;
    color: #f0f0f0;
    border: 1px solid #666666;
    border-radius: 4px;
}

.pick-locked {
    font-family: 'Batica', sans-serif;
    font-size: 0.8rem; 
}

.pick-statline {
    font-family: 'Baseball Club', sans-serif; 
}

.form-select,
.form-select option {
    font-family: 'Batica', sans-serif;
    background-color: #a96b42;
    color: #f0f0f0;
    border: 1px solid #666666;
    border-radius: 4px;
    width: fit-content;
    max-width: 500px;
}

    .form-select:disabled {
        color: #fafafa;
        background-color: #3b3b3b;
        border-color: #444;
        opacity: 1;
    }

    .blazor-error-boundary {
        background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
        padding: 1rem 1rem 1rem 3.7rem;
        color: white;
    }

        .blazor-error-boundary::after {
            content: "An error has occurred."
        }

    .darker-border-checkbox.form-check-input {
        border-color: #929292;
    }

    .form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
        color: var(--bs-secondary-color);
        text-align: end;
    }

    .form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
        text-align: start;
    }

    .freebie-checkbox {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .freebie-badge {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 14px;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        cursor: pointer;
        user-select: none;
        transition: all 0.15s ease;
    }
    /* Available, but not selected */
    .freebie-available {
        opacity: 0.65;
        border: 1px solid currentColor;
    }
        /* Mouse over available */
        .freebie-available:hover {
            opacity: 1;
            transform: scale(1.05);
        }
    /* Selected */
    .freebie-selected {
        opacity: 1;
        border: 1px solid currentColor;
        box-shadow: 0 0 8px currentColor;
    }
    /* Not enough tokens */
    .freebie-disabled {
        opacity: 0.25;
        cursor: not-allowed;
        border: 1px solid currentColor;
    }
    /* Already used */
    .freebie-used {
        opacity: 0.30;
        cursor: not-allowed;
        border: 1px dashed currentColor;
    }

    .freebie-checkbox {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .freebie-ticket {
        width: 45px;
        height: auto;
        cursor: pointer;
    }

    .freebie-checkbox:disabled + label .freebie-ticket {
        cursor: not-allowed;
    }


    .boost-checkbox {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .boost-badge {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 14px;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        cursor: pointer;
        user-select: none;
        transition: all 0.15s ease;
    }
    /* Available, but not selected */
    .boost-available {
        opacity: 0.65;
        border: 1px solid currentColor;
    }
        /* Mouse over available */
        .boost-available:hover {
            opacity: 1;
            transform: scale(1.05);
        }
    /* Selected */
    .boost-selected {
        opacity: 1;
        border: 1px solid currentColor;
        box-shadow: 0 0 8px currentColor;
    }
    /* Not enough tokens */
    .boost-disabled {
        opacity: 0.25;
        cursor: not-allowed;
        border: 1px solid currentColor;
    }
    /* Already used */
    .boost-used {
        opacity: 0.30;
        cursor: not-allowed;
        border: 1px dashed currentColor;
    }

    .boost-checkbox {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .boost-ticket {
        width: 39px;
        height: auto;
        cursor: pointer;
    }

    .boost-checkbox:disabled + label .boost-ticket {
        cursor: not-allowed;
    }

    .compact-select {
        padding: 2px 6px;
        height: auto;
    }

.form-select {
    color: white;
    background-color: #b45f06;
}
/*
    .form-select option {
        color: black;
        background-color: white;
    }*/

.form-select option:disabled {
    color: #222222;
}

 
.player-selection-icons {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.player-selection-dropdown {
    flex: 1;
    min-width: 0;
    max-width: 80%;
    box-sizing: border-box;
    font-size: 13px;
}


.player-pick {
    /*    margin-bottom: 12px;*/
    /*width: 600px;*/
    margin: 2px auto;
}

.player-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; 
    gap: 6px;
}

.pick-under {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.position-section {
    width: 80%;
    margin: 0 auto;
}

.position-sections {
    display: flex;
    flex-direction: column;
}
.position-header, .position-header h3 {
    font-family: 'Baseball Club', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; 
    padding: 3px 8px;
    box-sizing: border-box;
    background-color: #b45f06;
    margin-bottom: 0px;
    color: white;
}

.position-header-name {
    font-weight: bold;
}

.position-header-points {
    font-weight: bold;
}

.sortable {
    cursor: pointer;
}

    .sortable:hover {
        background-color: #e07800;
    }

.sort-header {
    cursor: pointer;
    position: relative;
    text-align: center;
}

    .sort-header:hover {
        background-color: #e07800;
    }

.sort-indicatorb {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
}
.sort-indicator {
    display: inline-block;
    width: 16px;
    margin-left: 4px;
}

.scoreboard-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

    .scoreboard-header h2 {
        margin: 0;
        text-align: center;
        color: #D4A72C;
    }

.weekly-scoring-box {
    width: fit-content;
    margin: 20px auto;
    padding: 12px 35px;
    background-color: #4A2C1A;
    border: 2px solid #D4A72C;
    border-radius: 8px;
    color: #D4A72C; 
    text-align: center;
}

.week-nav {
    font-size: 1rem;
    text-decoration: none;
    color: #D4A72C;
    white-space: nowrap;
}

    .week-nav.previous {
        justify-self: end;
        margin-right: 30px;
    }

    .week-nav.next {
        justify-self: start;
        margin-left: 30px;
    }

    .week-nav:hover {
        text-decoration: underline;
    }

    .week-nav a {
        color: #B8860B;
        text-decoration: none;
        font-weight: bold;
    }

        .week-nav a:visited {
            color: #795548;
        }

        .week-nav a:hover {
            color: #D4A72C;
            text-decoration: underline;
        }

        .week-nav a:active {
            color: #8B4513;
        }



.weekly-score-table {
    width: 97%;
    border-collapse: collapse;
}

    .weekly-score-table tbody tr {
        border-bottom: 1px solid #b45f06;
    }
    .weekly-score-table thead {
        border-bottom: 2px solid #b45f06;
    }

    .weekly-score-table td:nth-child(1),
    .weekly-score-table td:nth-child(3),
    .weekly-score-table td:nth-child(5),
    .weekly-score-table td:nth-child(7) {
        border-right: 2px solid #b45f06; 
    }

    .weekly-score-table th,
    .weekly-score-table td {
        text-align: center;
        vertical-align: middle;
    }

.overall-score-table {
    width: 97%;
    margin: 0 auto;
    border-collapse: collapse;
}

.overall-score-table tbody tr {
    border: 1px solid #b45f06;
}

.overall-score-table thead {
    border: 2px solid #b45f06;
}
  
.overall-score-table th,
.overall-score-table td {
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid #b45f06;
}

.overall-total-highlight {
    background-color: #945001;
}

.position-total-highlight {
    background-color: #945001;
}

.position-name-highlight {
    background-color: #945001;
}

.user-name-highlight {
    background-color: #945001;
}

.power-tokens-highlight {
    background-color: #945001;
}

.week-score-highlight {
    background-color: #945001;
}

.build-info-table {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-collapse: collapse;
}

    .build-info-table th,
    .build-info-table td {
        padding: 8px 12px;
        border: 1px solid #5a4635;
        text-align: left;
    }

    .build-info-table th {
        width: 35%;
        background-color: #4A2C1A;
        color: #D4A42D;
    }

    .build-info-table td {
        color: #ddd;
    }

.no-wrap-td {
    white-space: nowrap;
}



.sparkle-change {
    animation: sparkle-change 2.5s ease-in-out;
}

@keyframes sparkle-change {
    0% {
        text-shadow: 0 0 0 transparent;
    }

    15% {
        text-shadow: 0 0 5px #fff, 0 0 10px #ffcc66, 0 0 20px #ff9900;
    }

    30% {
        text-shadow: 0 0 0 transparent;
    }

    45% {
        text-shadow: 0 0 5px #fff, 0 0 10px #ffcc66, 0 0 20px #ff9900;
    }

    60% {
        text-shadow: 0 0 0 transparent;
    }

    75% {
        text-shadow: 0 0 5px #fff, 0 0 10px #ffcc66, 0 0 20px #ff9900;
    }

    100% {
        text-shadow: 0 0 0 transparent;
    }
}


/* =========================================
   ROSTER RUSH RULES PAGE
   ========================================= */

.rules-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
    color: #f5f5f5;
}

/* -----------------------------------------
   Hero
   ----------------------------------------- */

.rules-hero {
    position: relative;
    padding: 70px 30px 65px;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient( 135deg, rgba(180, 95, 6, 0.20), rgba(0, 0, 0, 0.10) ), #171717;
    border: 1px solid rgba(180, 95, 6, 0.35);
    border-radius: 18px;
    overflow: hidden;
}

    .rules-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient( 90deg, transparent 0, transparent 48px, rgba(180, 95, 6, 0.025) 48px, rgba(180, 95, 6, 0.025) 50px );
        pointer-events: none;
    }

.rules-hero-content {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.rules-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #e89a2a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.rules-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.rules-hero-subtitle {
    margin: 0 auto 18px;
    max-width: 620px;
    color: #f0b15a;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 600;
    line-height: 1.45;
}

.rules-hero p:last-child {
    max-width: 650px;
    margin: 0 auto;
    color: #cfcfcf;
    font-size: 1rem;
    line-height: 1.7;
}

/* -----------------------------------------
   Sections
   ----------------------------------------- */

.rules-section {
    margin-bottom: 70px;
}

.rules-section-heading {
    margin-bottom: 28px;
}

    .rules-section-heading h2 {
        margin: 0 0 10px;
        color: #f3a43b;
        font-size: clamp(1.7rem, 3vw, 2.4rem);
        line-height: 1.2;
        font-weight: 800;
    }

    .rules-section-heading p {
        margin: 0;
        color: #a9a9a9;
        font-size: 1rem;
        line-height: 1.6;
    }

/* -----------------------------------------
   Shared row layout
   ----------------------------------------- */

.div-row-main {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

    .div-row-main > * {
        min-width: 0;
    }

/* -----------------------------------------
   How-to steps
   ----------------------------------------- */

.rules-steps {
    align-items: stretch;
}

.rules-step {
    flex: 1 1 0;
    padding: 26px 22px;
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 14px;
    text-align: center;
}

.rules-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #b45f06;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
}

.rules-step h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.rules-step p {
    margin: 0;
    color: #aaa;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* -----------------------------------------
   Lineup cards
   ----------------------------------------- */

.lineup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.lineup-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 14px;
    text-align: center;
}

.lineup-position {
    margin-bottom: 8px;
    color: #e89a2a;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.lineup-card strong {
    color: #fff;
    font-size: 2.6rem;
    line-height: 1;
}

.lineup-card span:last-child {
    margin-top: 10px;
    color: #aaa;
    font-size: 0.9rem;
}

/* -----------------------------------------
   Callouts
   ----------------------------------------- */

.rules-callout {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(180, 95, 6, 0.12);
    border: 1px solid rgba(180, 95, 6, 0.35);
    border-left: 4px solid #b45f06;
    border-radius: 10px;
    color: #ddd;
    line-height: 1.6;
}

    .rules-callout strong {
        color: #f0b15a;
    }

    .rules-callout span {
        color: #c0c0c0;
    }

.rules-callout-warning {
    border-left-color: #e89a2a;
    background: rgba(232, 154, 42, 0.08);
}

.rules-callout-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* -----------------------------------------
   Scoring cards
   ----------------------------------------- */

.scoring-grid {
    align-items: stretch;
}

.scoring-card {
    flex: 1 1 0;
    padding: 28px;
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 16px;
}

.boost-card {
    background: linear-gradient( 145deg, rgba(180, 95, 6, 0.14), rgba(180, 95, 6, 0.03) ), #1d1d1d;
    border-color: rgba(180, 95, 6, 0.5);
}

.scoring-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

    .scoring-card-header h3 {
        margin: 0;
        color: #fff;
        font-size: 1.25rem;
    }

.scoring-icon {
    font-size: 1.7rem;
}

.boost-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 10px;
    border-radius: 5px;
    background: #b45f06;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.scoring-rule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #333;
}

    .scoring-rule:last-child {
        border-bottom: none;
    }

    .scoring-rule div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .scoring-rule strong {
        color: #eee;
        font-size: 0.95rem;
    }

    .scoring-rule span {
        color: #999;
        font-size: 0.8rem;
    }

    .scoring-rule b {
        flex-shrink: 0;
        color: #f0b15a;
        font-size: 1.3rem;
        white-space: nowrap;
    }

/* -----------------------------------------
   Scoring examples
   ----------------------------------------- */

.example-grid {
    align-items: stretch;
}

.example-card {
    flex: 1 1 0;
    padding: 28px;
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 16px;
}

.boost-example {
    border-color: rgba(180, 95, 6, 0.5);
    background: linear-gradient( 145deg, rgba(180, 95, 6, 0.12), rgba(180, 95, 6, 0.03) ), #1d1d1d;
}

.example-card-header {
    margin-bottom: 22px;
}

.example-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #e89a2a;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.example-card h3 {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.35;
}

.example-player {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px;
    background: #252525;
    border-radius: 10px;
}

.example-player-icon {
    font-size: 1.8rem;
}

.example-player div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.example-player strong {
    color: #fff;
}

.example-player span {
    color: #aaa;
    font-size: 0.85rem;
}

.example-breakdown {
    margin-bottom: 20px;
}

    .example-breakdown div {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        padding: 10px 0;
        border-bottom: 1px solid #333;
        color: #aaa;
        font-size: 0.9rem;
    }

        .example-breakdown div:last-child {
            border-bottom: none;
        }

    .example-breakdown b {
        color: #f0b15a;
        white-space: nowrap;
    }

.example-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 2px solid #444;
}

    .example-total span {
        color: #aaa;
        font-size: 0.9rem;
    }

    .example-total strong {
        color: #f0b15a;
        font-size: 1.5rem;
    }

/* -----------------------------------------
   Powerups
   ----------------------------------------- */

.powerup-grid {
    align-items: stretch;
}

.powerup-card {
    flex: 1 1 0;
    padding: 30px;
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 16px;
}

.freebie-powerup {
    border-color: rgba(180, 95, 6, 0.5);
}

.powerup-card-icon {
    margin-bottom: 16px;
    font-size: 2.2rem;
}

.powerup-card h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.4rem;
}

.powerup-card p {
    margin: 0 0 20px;
    color: #aaa;
    line-height: 1.6;
}

.powerup-highlight {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(180, 95, 6, 0.12);
    border: 1px solid rgba(180, 95, 6, 0.3);
    border-radius: 10px;
}

    .powerup-highlight strong {
        color: #f0b15a;
        font-size: 1.05rem;
    }

    .powerup-highlight span {
        color: #bbb;
        font-size: 0.88rem;
        line-height: 1.5;
    }

.rules-list {
    margin: 0;
    padding-left: 20px;
    color: #aaa;
}

    .rules-list li {
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .rules-list strong {
        color: #ddd;
    }

/* -----------------------------------------
   Reuse example
   ----------------------------------------- */

.reuse-example {
    padding: 30px;
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 16px;
}

.reuse-example-header {
    margin-bottom: 28px;
}

    .reuse-example-header h3 {
        margin: 0;
        color: #fff;
        font-size: 1.25rem;
    }

.reuse-timeline {
    display: flex;
    align-items: center;
    gap: 18px;
}

.reuse-week {
    flex: 1 1 0;
    min-width: 0;
    padding: 18px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 12px;
}

.reuse-week-success {
    border-color: rgba(180, 95, 6, 0.6);
    background: rgba(180, 95, 6, 0.1);
}

.reuse-week-label {
    margin-bottom: 12px;
    color: #e89a2a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.reuse-week-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reuse-icon {
    font-size: 1.5rem;
}

    .reuse-icon.muted {
        opacity: 0.6;
    }

.reuse-week-content div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reuse-week-content strong {
    color: #eee;
    font-size: 0.9rem;
}

.reuse-week-content span {
    color: #999;
    font-size: 0.8rem;
    line-height: 1.4;
}

.reuse-arrow {
    flex-shrink: 0;
    color: #777;
    font-size: 1.2rem;
    font-weight: 700;
}

/* -----------------------------------------
   Leaderboards
   ----------------------------------------- */

.leaderboard-grid {
    align-items: stretch;
}

.leaderboard-card {
    flex: 1 1 0;
    padding: 28px;
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 16px;
}

.leaderboard-icon {
    margin-bottom: 14px;
    font-size: 2rem;
}

.leaderboard-card h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.25rem;
}

.leaderboard-card p {
    margin: 0;
    color: #aaa;
    line-height: 1.6;
}

/* -----------------------------------------
   Checklist
   ----------------------------------------- */

.checklist-card {
    padding: 10px 24px;
    background: #1d1d1d;
    border: 1px solid #333;
    border-radius: 16px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #333;
    color: #bbb;
    line-height: 1.5;
}

    .checklist-item:last-child {
        border-bottom: none;
    }

.checklist-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #b45f06;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
}

.checklist-item strong {
    color: #eee;
}

/* -----------------------------------------
   Footer CTA
   ----------------------------------------- */

.rules-cta {
    padding: 50px 30px;
    text-align: center;
    background: linear-gradient( 135deg, rgba(180, 95, 6, 0.18), rgba(180, 95, 6, 0.04) ), #1d1d1d;
    border: 1px solid rgba(180, 95, 6, 0.4);
    border-radius: 18px;
}

    .rules-cta h2 {
        margin: 0 0 12px;
        color: #fff;
        font-size: clamp(1.7rem, 3vw, 2.3rem);
    }

    .rules-cta p {
        max-width: 600px;
        margin: 0 auto 26px;
        color: #aaa;
        line-height: 1.6;
    }

.rules-cta-button {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 8px;
    background: #b45f06;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

    .rules-cta-button:hover {
        background: #d47a0a;
        color: #fff;
    }

/* -----------------------------------------
   Mobile
   ----------------------------------------- */

@media (max-width: 768px) {

    .rules-page {
        padding: 0 16px 40px;
    }

    .rules-hero {
        padding: 45px 22px;
        margin-bottom: 40px;
    }

    .rules-section {
        margin-bottom: 48px;
    }

    .rules-section-heading {
        margin-bottom: 22px;
    }

    .rules-steps,
    .scoring-grid,
    .example-grid,
    .powerup-grid,
    .leaderboard-grid {
        flex-direction: column;
        gap: 16px;
    }

    .rules-step,
    .scoring-card,
    .example-card,
    .powerup-card,
    .leaderboard-card {
        flex: none;
        width: 100%;
    }

    .lineup-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lineup-card {
        padding: 22px 18px;
    }

    .rules-callout {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 18px;
    }

    .reuse-example {
        padding: 22px;
    }

    .reuse-timeline {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .reuse-week {
        flex: none;
    }

    .reuse-arrow {
        text-align: center;
        transform: rotate(90deg);
    }

    .checklist-card {
        padding: 8px 18px;
    }

    .checklist-item {
        align-items: flex-start;
    }

    .rules-cta {
        padding: 40px 22px;
    }
}

.rules-cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rules-cta-button-secondary {
    background: transparent;
    border: 1px solid #b45f06;
    color: #f0b15a;
}

    .rules-cta-button-secondary:hover {
        background: rgba(180, 95, 6, 0.15);
        color: #f0b15a;
    }


@media (max-width: 900px) {
    .main-window {
        width: 100%;
        min-width: 0;
    }

    .compact-select {
        font-size: 13px; 
        width: 80%;

    }

    .position-section {
       width: 100%;
    }

    .div-row-main {
        flex-direction: column;
    }
}