/* The brief before a run: the game as its own hero, the objective, the controls, the pickers. */
/* ---- Brief ---- */
.brief-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
}
.brief-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    /* Sits in the middle of whatever height the panel has, not pinned to its top */
    margin: auto 0;
}
/* The game itself is the hero of its own brief. The preview scales the games'
   360×225 view to COVER this box (core/preview.js), so a box of any other shape
   crops the game — a wide panel used to show a letterbox slice with the board
   cut off top and bottom. The height is the cap; the width follows from it, so
   the box is always the game's own shape, centred in whatever panel it is in. */
.brief-art {
    --a: var(--accent);
    --art-h: 44vh;
    position: relative;
    flex: none;
    aspect-ratio: 8 / 5;
    width: min(100%, calc(var(--art-h) * 8 / 5));
    align-self: center;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-bottom: 2px solid var(--a);
    background: var(--screen);
}
.brief-art canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.brief-text {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    min-width: 0;
}
@media (min-width: 640px) {
    .brief-text {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 28px;
        align-items: start;
    }
}
.brief-copy h2 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    margin: 4px 0 10px;
}
.objective {
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.55;
    color: var(--text);
}
.brief-how {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 2px;
}
/* "How to play" and, for a game with combos or a cast, the way to all of them (core/keyMenu.js) */
.brief-how-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.brief-how-head .btn-ghost {
    color: var(--text);
}
.brief-how-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
}
.controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 14px;
    align-items: center;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dim);
    margin: 0;
}
.controls dt {
    justify-self: start;
}
.controls dd {
    margin: 0;
}
/* Two seats: the action, then each player's key */
.controls-duo {
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dim);
}
.controls-duo th {
    text-align: left;
    font-weight: 500;
    color: var(--text);
    padding: 0 14px 6px 0;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.controls-duo td {
    padding: 4px 14px 4px 0;
    vertical-align: middle;
}
/* The pickers: rows of pills, the chosen one filled with the game's accent */
.pickers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.seats {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.seats button {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dim);
    background: transparent;
    border: 0;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
}
.seats button[aria-checked='true'] {
    background: var(--a, var(--brand));
    color: #fff;
}
.seats button:focus-visible {
    outline: 2px solid var(--a, var(--brand));
    outline-offset: 2px;
}
/* "Start at": a game with saved levels may have ten of them, so this group wraps and says what it picks */
.seats--from {
    flex-wrap: wrap;
    align-items: center;
    max-width: 100%;
    border-radius: 16px;
}
.seats-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dim);
    padding: 0 6px 0 10px;
}
.brief-stats {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--dim);
}
.brief-stats strong {
    color: var(--text);
    font-weight: 500;
}
.brief-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
}

/* The phone pad's rows (core/pad.js padHints), in the pad's own pictures */
.pad-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 26px;
    height: 26px;
    padding: 0 4px;
    border-radius: 6px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line-strong);
}
.pad-chip svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pad-chip--a,
.pad-chip--b {
    width: 26px;
    padding: 0;
    border-radius: 50%;
}
.pad-chip--a {
    color: #fff;
    background: linear-gradient(160deg, #1fd0b3, #056f88);
    border-color: rgba(215, 243, 132, 0.4);
}
