/* Prize rounds on the arcade home (core/prizeCard.js): a card per round between the top row and the shelf, and the
   round's terms in the key menu's dialog (keymenu.css `.keys`). Tokens (--card, --heading, --lead-ink…) are home.css's. */

.prizes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.prizes[hidden] {
    display: none;
}
.prizes > h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading);
    padding-left: 4px;
}
.prize-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}
@media (min-width: 1100px) {
    .prize-list:has(> .prize + .prize) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

.prize {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 16px;
    padding: 16px;
    border-radius: 12px;
    background: var(--card);
}
@media (min-width: 760px) {
    .prize {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        padding: 20px;
    }
}
.prize-cup {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--card-2);
    color: var(--heading);
}
.prize-cup svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.prize--live .prize-cup,
.prize--won .prize-cup {
    background: var(--a);
    color: #1b273a;
}
.prize-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.prize-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lead-ink);
}
.prize-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--heading);
}
.prize-text,
.prize-line {
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.6;
    color: var(--text);
}
.prize-text {
    color: var(--dim);
}
.prize-line strong {
    font-weight: 700;
    color: var(--heading);
}
.prize-side {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
@media (min-width: 760px) {
    .prize-side {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
    }
}
.prize-when {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dim);
    white-space: nowrap;
}
.prize-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.prize-actions .btn {
    min-height: 0;
    padding: 9px 14px;
}

/* ---- The terms: the key menu's dialog, narrower, the list scrolling inside it ---- */
.terms .keys-card {
    width: min(680px, 100%);
    height: auto;
    max-height: 100%;
}
.terms-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin: 0;
    padding: 16px 20px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.65;
    color: var(--text);
}
.terms-body:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}
.terms-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: none;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
}
