/* ============================================================
   wc-game-end — final standings overlay
   ============================================================ */

wc-game-end .game-end {
    display: flex;
    flex-direction: column;
    color: #fff;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #1F1B14;
    overflow-y: auto;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

wc-game-end .game-end-inner {
    flex: 1;
    width: 100%;
    max-width: var(--frame-max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

wc-game-end .game-end-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    position: relative;
}

wc-game-end .game-end-confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

wc-game-end .game-end-pawn {
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
}

wc-game-end .game-end-title {
    font-family: var(--font-display);
    font-size: 56px;
    line-height: 1;
    letter-spacing: -0.025em;
    text-align: center;
    position: relative;
    z-index: 10;
    color: #F2EDE3;
    margin: 0;
}

wc-game-end .game-end-sub {
    font-size: 15px;
    margin-top: 12px;
    text-align: center;
    max-width: 280px;
    line-height: 1.5;
    color: rgba(242, 237, 227, 0.55);
    position: relative;
    z-index: 10;
}

wc-game-end .game-end-standings {
    margin-top: 32px;
    width: 100%;
    border-radius: var(--radius-2xl);
    padding: 14px;
    background: rgba(242, 237, 227, 0.06);
    border: 1px solid rgba(242, 237, 227, 0.1);
    position: relative;
    z-index: 10;
}

wc-game-end .standing-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
}

wc-game-end .standing-row + .standing-row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

wc-game-end .standing-rank {
    width: 18px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

wc-game-end .standing-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

wc-game-end .standing-name {
    flex: 1;
    font-size: 15px;
}

wc-game-end .standing-time {
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

wc-game-end .game-end-actions {
    display: flex;
    gap: 10px;
    padding: 12px 16px 16px;
    position: relative;
    z-index: 10;
}

wc-game-end .game-end-btn {
    height: 56px;
    border-radius: var(--radius-2xl);
    font-size: 15px;
    cursor: pointer;
    border: 0;
}

wc-game-end .game-end-btn--share {
    flex: 1;
    background: transparent;
    color: #F2EDE3;
    border: 1px solid rgba(242, 237, 227, 0.2);
}

wc-game-end .game-end-btn--again {
    flex: 2;
    background: #F2EDE3;
    color: #1F1B14;
    font-weight: 500;
}
