﻿/* Winners.razor.css — Blindside game-end modal (vertical layout).
   Complete stylesheet: safe to overwrite the previous file entirely.
   Palette: gold-on-dark, Cinzel display, teal authenticated accent,
   per-winner --accent set inline from the component. */

.win-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 5, 4, 0.74);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    animation: win-fade 160ms ease-out;
}

@keyframes win-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.win-modal {
    position: relative;
    width: min(680px, 96vw);
    max-height: 92vh;
    overflow-y: auto;
    padding: 0 0 22px;
    border-radius: 16px;
    border: 1px solid rgba(213, 166, 66, 0.4);
    background: radial-gradient(140% 60% at 50% 0%, color-mix(in srgb, var(--accent, #d5a642) 20%, transparent), transparent 62%), linear-gradient(180deg, #17140f 0%, #100e0b 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.66), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    animation: win-rise 210ms cubic-bezier(.16,.84,.44,1);
}

@keyframes win-rise {
    from {
        transform: translateY(16px) scale(.985);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

.win-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(213, 166, 66, 0.35);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: #c9bd99;
    cursor: pointer;
    font-size: 13px;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

    .win-close:hover {
        background: rgba(192, 57, 43, 0.28);
        color: #f0d9d5;
        border-color: rgba(192,57,43,.5);
    }

/* ── Banner ── */
.win-banner {
    padding: 30px 26px 20px;
    text-align: center;
}

.win-brand {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    letter-spacing: 6px;
    color: #8a7a52;
    margin-bottom: 8px;
}

.win-headline {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: clamp(34px, 6vw, 52px);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.05;
    /* winner color melts into gold */
    background: linear-gradient(90deg, var(--accent, #d5a642) 0%, #f4d98a 45%, #f4d98a 55%, var(--accent, #d5a642) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 26px color-mix(in srgb, var(--accent, #d5a642) 40%, transparent);
}

.win-subline {
    display: inline-block;
    margin-top: 10px;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    letter-spacing: 1.5px;
    color: #b9ad8e;
}

    .win-subline::before, .win-subline::after {
        content: "◆";
        margin: 0 12px;
        font-size: 9px;
        color: color-mix(in srgb, var(--accent, #d5a642) 70%, transparent);
        vertical-align: middle;
    }

/* ── Results table ── */
.win-table {
    margin: 6px 22px 0;
    border: 1px solid rgba(213, 166, 66, 0.3);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.win-thead, .win-row, .win-teamhead {
    display: grid;
    grid-template-columns: 40px 46px 1fr 76px 74px;
    align-items: center;
    column-gap: 10px;
    padding: 0 14px;
}

.win-thead {
    height: 34px;
    border-bottom: 1px solid rgba(213, 166, 66, 0.18);
}

.win-th {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #7d745e;
}

.win-th--player {
    grid-column: 2 / 4;
}

.win-th--rating {
    text-align: right;
}

.win-th--change {
    text-align: right;
}

/* team header row (2v2 only) */
.win-teamhead {
    grid-template-columns: 1fr auto;
    height: 30px;
    padding-left: 16px;
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
}

    .win-teamhead:first-child {
        border-top: none;
    }

.win-teamhead__spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--seat);
    opacity: .8;
}

.win-teamhead__label {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    letter-spacing: 1px;
    color: color-mix(in srgb, var(--seat) 55%, #e6dfcb);
}

.win-teamhead.is-winner .win-teamhead__label {
    color: #f4d98a;
}

.win-teamhead__tag {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #211c15;
    background: linear-gradient(180deg,#f4d98a,#cf9f3d);
    padding: 2px 8px;
    border-radius: 5px;
}

/* result row */
.win-row {
    height: 56px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.win-thead + .win-row, .win-teamhead + .win-row {
    border-top: none;
}

.win-row.is-winner {
    background: linear-gradient(90deg, color-mix(in srgb, var(--seat) 14%, transparent), transparent 70%);
}

.win-row.is-grouped {
    padding-left: 16px;
}

.win-row__spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--seat);
    opacity: .5;
}

.win-row__rank {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: #8a7a52;
    text-align: center;
}

.win-row.is-winner .win-row__rank {
    color: #f4d98a;
}

/* heraldic crest: shield chip + glyph */
.win-crest {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
}

.win-crest__shield {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--seat) 32%, #100e0b);
    border: 1px solid color-mix(in srgb, var(--seat) 60%, transparent);
    border-radius: 7px 7px 9px 9px / 7px 7px 14px 14px;
    clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
}

.win-crest__glyph {
    position: relative;
    font-size: 18px;
    color: color-mix(in srgb, var(--seat) 40%, #f2ecda);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}

.win-row.is-winner .win-crest__glyph {
    color: #f4d98a;
}

.win-row__name {
    font-size: 15px;
    font-weight: 600;
    color: color-mix(in srgb, var(--seat) 30%, #e6dfcb);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
}

.win-row.is-winner .win-row__name {
    color: color-mix(in srgb, var(--seat) 45%, #f4e9c8);
}

.win-row__out {
    font-size: 10px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #a2564e;
    border: 1px solid rgba(162,86,78,.4);
    border-radius: 4px;
    padding: 0 5px;
}

.win-row__rating {
    text-align: right;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: #d7cead;
}

.win-row__change {
    text-align: right;
    font-size: 15px;
    font-weight: 600;
}

    .win-row__change.up {
        color: #6fbf73;
    }

    .win-row__change.down {
        color: #cf6b5f;
    }

/* ── Actions ── */
.win-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 20px 22px 4px;
}

.win-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: .4px;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

    .win-btn i {
        font-size: 16px;
    }

    .win-btn:active {
        transform: none;
    }

.win-btn--primary {
    border: none;
    color: #201b14;
    background: linear-gradient(180deg, #f4d98a, #cf9f3d 55%, #9c7320);
    box-shadow: 0 4px 16px rgba(213,166,66,.32);
}

    .win-btn--primary:hover {
        transform: translateY(-1px);
    }

.win-btn--ghost {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(213,166,66,.4);
    color: #d5a642;
}

    .win-btn--ghost:hover {
        background: rgba(213,166,66,.1);
        border-color: rgba(213,166,66,.6);
    }

/* ── Founder bar (replaces the ad) ── */
.win-founder {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    align-items: center;
    column-gap: 18px;
    margin: 18px 22px 0;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(213, 166, 66, 0.35);
    background: radial-gradient(90% 120% at 0% 50%, rgba(85,214,208,0.08), transparent 60%), linear-gradient(180deg, rgba(213,166,66,0.06), rgba(0,0,0,0.15));
}

.win-founder__badge {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
}

    .win-founder__badge ::deep svg {
        width: 100%;
        height: 100%;
    }

.win-founder__badge-fallback {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border: 2px solid #d5a642;
    border-radius: 50%;
    color: #d5a642;
    font-size: 30px;
    box-shadow: 0 0 14px rgba(213,166,66,.35);
}

.win-founder__title {
    margin: 0 0 3px;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    letter-spacing: .5px;
    color: #f4d98a;
}

.win-founder__body {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.45;
    color: #b6ad97;
    max-width: 46ch;
}

.win-founder__perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.win-founder__perk {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #9a9078;
}

    .win-founder__perk i {
        font-size: 16px;
        color: #cf9f3d;
    }

.win-founder__perk--more {
    color: #7d745e;
    font-style: italic;
}

.win-founder__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.win-founder__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    letter-spacing: .4px;
    color: #201b14;
    background: linear-gradient(180deg, #f4d98a, #cf9f3d 55%, #9c7320);
    box-shadow: 0 4px 16px rgba(213,166,66,.35);
    transition: transform 120ms ease, box-shadow 120ms ease;
    white-space: nowrap;
}

    .win-founder__btn i {
        font-size: 16px;
    }

    .win-founder__btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 22px rgba(213,166,66,.5);
    }

.win-founder__price {
    font-size: 11px;
    letter-spacing: .4px;
    color: #8a7f66;
}

/* ── Responsive ── */
@media (max-width: 620px) {
    .win-thead {
        display: none;
    }

    .win-row, .win-teamhead {
        grid-template-columns: 34px 40px 1fr 64px 60px;
        column-gap: 8px;
        padding: 0 10px;
    }

        .win-row.is-grouped, .win-teamhead {
            padding-left: 12px;
        }

    .win-founder {
        grid-template-columns: 1fr;
        text-align: center;
        row-gap: 12px;
        justify-items: center;
    }

    .win-founder__body {
        max-width: none;
    }

    .win-founder__perks {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .win-overlay, .win-modal {
        animation: none;
    }

    .win-btn--primary:hover, .win-founder__btn:hover {
        transform: none;
    }
}







































































































.game-result-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
}

.game-result-modal {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    padding: 1.5rem;
    border: 1px solid rgba(213, 166, 66, 0.55);
    border-radius: 18px;
    background: radial-gradient( circle at 50% 0%, rgba(213, 166, 66, 0.08), transparent 35% ), linear-gradient( 180deg, #16130d 0%, #0a0907 100% );
    box-shadow: 0 0 0 1px rgba(255, 232, 160, 0.04), 0 22px 70px rgba(0, 0, 0, 0.75), 0 0 34px rgba(213, 166, 66, 0.12);
    color: #ddd3bb;
}

.game-result-modal__close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(213, 166, 66, 0.55);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #e7c979;
    cursor: pointer;
}

    .game-result-modal__close:hover {
        background: rgba(213, 166, 66, 0.1);
    }

.game-result-modal__header {
    text-align: center;
    padding: 0.25rem 3rem 1.4rem;
}

.game-result-modal__brand {
    margin-bottom: 0.6rem;
    color: #cfb974;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.42em;
}

.game-result-modal__title {
    margin: 0;
    color: #f0d98d;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 950;
    letter-spacing: 0.05em;
    text-shadow: 0 0 14px rgba(213, 166, 66, 0.25);
}

.game-result-modal__winner-color.player-color--red {
    color: #ff6259;
    text-shadow: 0 0 14px rgba(255, 70, 60, 0.5), 0 0 28px rgba(255, 70, 60, 0.18);
}

.game-result-modal__winner-color.player-color--blue {
    color: #6f9cff;
}

.game-result-modal__winner-color.player-color--white {
    color: #f4f1e5;
}

.game-result-modal__winner-color.player-color--black {
    color: #a9a39a;
}

.game-result-modal__subtitle {
    margin-top: 0.45rem;
    color: #b9ab8d;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.game-result-modal__body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
}

.game-result-modal__emblem {
    display: flex;
    align-items: center;
    justify-content: center;
}

.winner-emblem {
    position: relative;
    width: 190px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 2px solid rgba(213, 166, 66, 0.7);
    border-radius: 50%;
    background: repeating-conic-gradient( rgba(255,255,255,0.025) 0 25%, rgba(0,0,0,0.08) 0 50% ) 50% / 42px 42px, radial-gradient(circle, #201a0e, #070706 72%);
    box-shadow: inset 0 0 35px rgba(213, 166, 66, 0.1), 0 0 26px rgba(213, 166, 66, 0.16);
    overflow: hidden;
}

.winner-emblem__piece {
    position: relative;
    z-index: 2;
    color: #e8c55e;
    font-size: 6rem;
    text-shadow: 0 3px 0 #4b3410, 0 0 18px rgba(228, 185, 70, 0.4);
}

.winner-emblem__fog {
    position: absolute;
    inset: 0;
    background: radial-gradient( ellipse at 75% 45%, rgba(31, 167, 186, 0.38), transparent 30% ), radial-gradient( ellipse at 78% 65%, rgba(31, 167, 186, 0.25), transparent 34% );
    filter: blur(8px);
}

.result-table__header,
.result-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 85px 90px;
    align-items: center;
}

.result-table__header {
    padding: 0 0.8rem 0.5rem;
    color: #c3ad71;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.game-result-modal__results {
    overflow: hidden;
    border: 1px solid rgba(213, 166, 66, 0.33);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
}

.result-table__header {
    border-bottom: 1px solid rgba(213, 166, 66, 0.22);
}

.result-row {
    min-height: 54px;
    padding: 0 0.8rem;
    border-bottom: 1px solid rgba(213, 166, 66, 0.14);
}

    .result-row:last-child {
        border-bottom: 0;
    }

.result-row--winner {
    background: linear-gradient( 90deg, rgba(213, 166, 66, 0.11), transparent 65% );
}

.result-row__place {
    color: #e8cf86;
    font-size: 1.2rem;
    font-weight: 900;
}

.result-row__player {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.result-row__color {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    color: white;
}

    .result-row__color.player-color--red {
        background: #97372f;
    }

    .result-row__color.player-color--blue {
        background: #36578e;
    }

    .result-row__color.player-color--white {
        background: #dedbd2;
        color: #4f4b43;
    }

    .result-row__color.player-color--black {
        background: #383633;
    }

.result-row__name {
    overflow: hidden;
    color: #d7cdb9;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-row__elo {
    color: #d3c8af;
}

.result-row__change {
    font-weight: 900;
}

.elo-positive {
    color: #8fd85d;
}

.elo-negative {
    color: #ff6557;
}

.game-result-modal__actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.result-action {
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.78rem 1.2rem;
    border: 1px solid rgba(213, 166, 66, 0.4);
    border-radius: 8px;
    background: linear-gradient( 180deg, #25211a, #12100c );
    color: #d9ccb1;
    font-weight: 900;
    letter-spacing: 0.03em;
    cursor: pointer;
}

    .result-action:hover {
        border-color: rgba(213, 166, 66, 0.75);
        background: #2b261b;
    }

.result-action--primary {
    border-color: rgba(75, 189, 145, 0.6);
    background: linear-gradient( 180deg, rgba(24, 91, 68, 0.9), rgba(10, 49, 37, 0.95) );
    color: #d8f4df;
}

.founder-promo {
    margin-top: 1.35rem;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 210px;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(213, 166, 66, 0.52);
    border-radius: 12px;
    background: linear-gradient( 90deg, rgba(213, 166, 66, 0.08), rgba(0, 0, 0, 0.25) );
}

.founder-promo__badge img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.founder-promo__eyebrow {
    margin-bottom: 0.32rem;
    color: #e8cb75;
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: 0.09em;
}

.founder-promo__copy {
    color: #cabfa9;
    line-height: 1.35;
}

.founder-promo__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
    margin-top: 0.7rem;
}

    .founder-promo__features span {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        color: #ad9e81;
        font-size: 0.78rem;
        font-weight: 800;
    }

    .founder-promo__features i {
        color: #d8b657;
    }

.founder-promo__action {
    text-align: center;
}

.founder-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.78rem 1rem;
    border: 1px solid #e2b744;
    border-radius: 7px;
    background: linear-gradient( 180deg, #f1cc68, #b57b13 );
    color: #171007;
    font-weight: 950;
    letter-spacing: 0.035em;
    cursor: pointer;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.45), 0 0 14px rgba(213, 166, 66, 0.16);
}

    .founder-button:hover {
        filter: brightness(1.08);
    }

.founder-promo__hint {
    margin-top: 0.45rem;
    color: #978b76;
    font-size: 0.72rem;
    line-height: 1.3;
}

@media (max-width: 700px) {

    .game-result-overlay {
        padding: 0.65rem;
        align-items: flex-start;
    }

    .game-result-modal {
        margin-top: 0.5rem;
        padding: 1rem;
        border-radius: 14px;
    }

    .game-result-modal__header {
        padding-inline: 2rem;
    }

    .game-result-modal__body {
        grid-template-columns: 1fr;
    }

    .game-result-modal__emblem {
        display: none;
    }

    .result-table__header,
    .result-row {
        grid-template-columns: 34px minmax(0, 1fr) 60px 62px;
    }

    .result-row {
        padding-inline: 0.5rem;
    }

    .result-row__color {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .game-result-modal__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .result-action {
        min-width: 0;
        padding-inline: 0.5rem;
        font-size: 0.8rem;
    }

    .founder-promo {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .founder-promo__badge img {
        width: 68px;
        height: 68px;
    }

    .founder-promo__action {
        grid-column: 1 / -1;
    }

    .founder-promo__features {
        display: none;
    }
}