/* Last Flag Standing (/last-flag-standing): only what is the game's own - the canvas with the night sky and the ring,
   the pick field and its message. Buttons, fields, tiles and the accent come from the app kit (css/app-kit,
   docs/app-kit.md). Loaded only on this page (StylePaths). The sky is the game's own look in both themes. */

/* A focus stage (ak-stage--focus) under the bar: the canvas fills the rest of the stage. */
.lfs-canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 18rem;
    border-radius: var(--ak-radius, 12px);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* The pick: a label, then the field over the whole width. */
.lfs-pick {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

.lfs-input {
    width: 100%;
}

.lfs-input:disabled {
    opacity: 0.7;
}

.lfs-message {
    margin: 0;
    min-height: 1.4em;
    color: var(--ak-muted);
    font-size: var(--ak-fs-sm);
}

.lfs-message[data-tone="good"] {
    color: var(--ak-success);
    font-weight: 700;
}

.lfs-message[data-tone="bad"] {
    color: var(--ak-danger);
    font-weight: 600;
}

/* The eliminated countries: a small folding list, the last one out on top, a few rows high (it scrolls). */
.lfs-out {
    border: 1px solid var(--ak-border);
    border-radius: var(--ak-radius-sm, 8px);
    background: var(--ak-surface);
    font-size: var(--ak-fs-sm);
}

.lfs-out > summary {
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    font-weight: 600;
    color: var(--ak-text);
}

.lfs-out-count {
    color: var(--ak-muted);
    font-weight: 500;
}

.lfs-out-list {
    list-style: none;
    margin: 0;
    padding: 0 0.35rem 0.35rem;
    max-height: 7.5rem;
    overflow-y: auto;
}

.lfs-out-list > li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.1rem 0.25rem;
    border-radius: 4px;
    line-height: 1.35;
}

.lfs-out-list > li.is-pick {
    background: color-mix(in srgb, #ffd23f 28%, transparent);
    font-weight: 700;
}

.lfs-out-place {
    min-width: 2.6em;
    color: var(--ak-muted);
    font-variant-numeric: tabular-nums;
    text-align: end;
}

.lfs-out-flag {
    width: 16px;
    height: 16px;
    flex: none;
}

.lfs-out-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
