/* The naming modes' shared chrome: the "Step by step | Name it yourself"
   switcher (two links styled as one control) and the first-visit choice
   cards that stand in place of the answer row. Loaded in both modes. */

.mode-switch {
    display: inline-flex;
    margin: 4px 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    background: var(--surface);
    overflow: hidden;
}
.mode-switch a {
    padding: 7px 16px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink-2);
    text-decoration: none;
}
.mode-switch a + a { border-left: 1px solid var(--border); }
.mode-switch a:hover { color: var(--brand); }
.mode-switch a[aria-current="page"] {
    background: var(--brand);
    color: #fff;
}

/* first visit: the cards take the answer row's place */
html[data-naming-first] #guess-controls,
html[data-naming-first] #reveal-link,
html[data-naming-first] #reveal-share-row { display: none; }

.first-choice { margin: 12px 0; }
.first-choice-q { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.first-choice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.first-choice-card {
    font: inherit;
    text-align: left;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow-1);
    min-height: 44px;
}
.first-choice-card strong { display: block; font-size: 1.02rem; margin-bottom: 4px; color: var(--brand-dark); }
.first-choice-card span { color: var(--muted); font-size: 0.9rem; }
.first-choice-card:hover { border-color: var(--brand); }
.first-choice-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
