/* Conference Talk Match */

.tm [hidden] { display: none !important; }

.tm-card {
    max-width: 44rem; margin: 0 auto; padding: 1.25rem;
    background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (min-width: 640px) { .tm-card { padding: 1.75rem 2rem; } }

.tm-loading { text-align: center; padding: 2rem 0; }

/* ---- Setup ---- */
.tm-setup__title { margin-bottom: .25rem; }
.tm-field { border: 0; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tm-field legend { font-weight: 800; margin-bottom: .5rem; padding: 0; }
.tm-pill {
    display: inline-flex; align-items: center; gap: .5rem; min-height: var(--tap);
    padding: 0 1rem; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--surface);
}
.tm-pill:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.tm-pill input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; margin: 0; }
.tm-teams { display: inline-flex; align-items: center; gap: .5rem; min-height: var(--tap); }
.tm-teams select { font: inherit; min-height: 40px; padding: 0 .5rem; border-radius: var(--radius-sm); border: 2px solid var(--line); }
.tm-start { width: 100%; font-size: 1.15rem; }
@media (min-width: 640px) { .tm-start { width: auto; min-width: 12rem; } }

/* ---- Play ---- */
.tm-status {
    display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between;
    font-size: .95rem; color: var(--ink-soft); margin-bottom: .75rem;
}
.tm-streak { color: var(--accent); font-weight: 800; }
.tm-teams-line { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.tm-team.is-turn { color: var(--accent); font-weight: 800; }

.tm-timer { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 1rem; }
.tm-timer__bar { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: inherit; }
.tm-timer__bar.is-low { background: #b91c1c; }

.tm-turn { font-weight: 800; color: var(--accent); margin-bottom: .25rem; }
.tm-kind { font-weight: 700; color: var(--ink-soft); margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }
.tm-prompt { font-size: clamp(1.35rem, 4.5vw, 1.85rem); margin-bottom: .75rem; outline: none; }
.tm-prompt--speaker, .tm-prompt--session { font-style: italic; }

.tm-hint { margin-bottom: 1rem; }
.tm-hint summary { cursor: pointer; color: var(--accent); font-weight: 700; min-height: 40px; display: inline-flex; align-items: center; }
.tm-hint p { margin: .25rem 0 0; background: var(--accent-soft); padding: .5rem .75rem; border-radius: var(--radius-sm); }

.tm-choices { display: grid; gap: .6rem; }
.tm-choice {
    display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 56px; padding: .6rem 1rem;
    text-align: left; font: inherit; font-weight: 600; color: var(--ink);
    background: var(--surface); border: 2px solid var(--line); border-radius: 12px; cursor: pointer;
}
.tm-choice:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.tm-choice:disabled { cursor: default; }
.tm-choice__key {
    display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem;
    border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .9rem;
}
.tm-choice.is-correct { border-color: #15803d; background: #dcfce7; }
.tm-choice.is-correct .tm-choice__key { background: #15803d; color: #fff; }
.tm-choice.is-wrong { border-color: #b91c1c; background: #fee2e2; }
.tm-choice.is-wrong .tm-choice__key { background: #b91c1c; color: #fff; }
.tm-choice:disabled:not(.is-correct):not(.is-wrong) { opacity: .6; }

.tm-feedback:empty { display: none; }
.tm-feedback { margin-top: 1.25rem; }
.tm-result { font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.tm-result.is-correct { color: #15803d; }
.tm-result.is-wrong { color: #b91c1c; }

.tm-reveal { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; margin-bottom: 1rem; }
.tm-reveal__title { font-weight: 800; margin-bottom: .15rem; }
.tm-reveal__meta { color: var(--ink-soft); margin-bottom: .4rem; }
.tm-reveal__link { font-weight: 700; display: inline-flex; align-items: center; min-height: 40px; }
.tm-reveal__link::after { content: " ↗"; }

/* ---- Results ---- */
.tm-results { text-align: center; }
.tm-final { font-size: 3.5rem; font-weight: 800; line-height: 1; margin-bottom: .25rem; color: var(--accent); }
.tm-final span { font-size: 1.5rem; color: var(--ink-soft); }
.tm-cheer { font-size: 1.25rem; font-weight: 800; }
.tm-standings { list-style: none; padding: 0; margin: 0 auto 1rem; max-width: 18rem; text-align: left; }
.tm-standings li { display: flex; justify-content: space-between; padding: .5rem .75rem; border-bottom: 1px solid var(--line); }
.tm-standings li:first-child { font-weight: 800; color: var(--accent); }
.tm-results h3 { margin-top: 1.5rem; }
.tm-missed { list-style: none; padding: 0; margin: 0 0 1rem; text-align: left; }
.tm-missed li { display: flex; flex-direction: column; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.tm-missed a { font-weight: 700; }
.tm-share { font-size: .9rem; word-break: break-all; }
.tm-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

.tm-footnote { max-width: 44rem; margin: 1rem auto 0; font-size: .9rem; text-align: center; }

@media print { .tm-footnote { display: none; } }

/* ---- Setup extras ---- */
.tm-gamehelp { flex-basis: 100%; margin: .25rem 0 0; }
.tm-check { display: flex; align-items: center; gap: .6rem; min-height: var(--tap); font-weight: 600; cursor: pointer; margin-bottom: .5rem; }
.tm-check input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); margin: 0; }

/* ---- Session Sort ---- */
.tm-sort { max-width: 60rem; }
.tm-sort h2 { margin-bottom: 0; outline: none; }
.tm-sorthelp { font-weight: 700; color: var(--accent); margin: .5rem 0 .25rem; }
.tm-zones { display: grid; gap: .75rem; }
@media (min-width: 720px) { .tm-zones { grid-template-columns: 1fr 1fr; } }
.tm-zone { border: 2px dashed var(--line); border-radius: 14px; padding: .5rem .75rem .75rem; margin-bottom: .75rem; background: var(--bg); }
.tm-zones .tm-zone { margin-bottom: 0; }
.tm-zone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.tm-zone--tray { background: var(--surface); }
.tm-zone h3 { margin: 0 0 .4rem; font-size: 1rem; }
.tm-zone__btn {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: 44px;
    padding: 0 .5rem; border: 0; border-radius: 8px; background: transparent; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer; text-align: left;
}
.tm-zone__btn:hover:not(:disabled) { background: var(--accent-soft); }
.tm-zone__btn:disabled { cursor: default; }
.tm-zone__n { display: inline-grid; place-items: center; min-width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .9rem; }
.tm-zone ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; min-height: 2.5rem; }
.tm-zone__empty { padding: .5rem; }
.tm-sortcard {
    display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; width: 100%; padding: .55rem .8rem;
    text-align: left; font: inherit; color: var(--ink); background: var(--surface);
    border: 2px solid var(--line); border-radius: 10px; cursor: grab;
}
button.tm-sortcard:hover { border-color: var(--accent); }
.tm-sortcard.is-selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.tm-sortcard__title { font-weight: 700; }
.tm-sortcard__meta { color: var(--ink-soft); font-size: .92rem; }
.tm-sortcard__mark { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.tm-sortcard.is-correct { border-color: #15803d; background: #f0fdf4; cursor: default; }
.tm-sortcard.is-correct .tm-sortcard__mark { color: #15803d; }
.tm-sortcard.is-wrong { border-color: #b91c1c; background: #fef2f2; cursor: default; }
.tm-sortcard.is-wrong .tm-sortcard__mark { color: #b91c1c; }
.tm-sortcard__fix { font-weight: 700; font-size: .92em; }
.tm-sort .tm-actions { margin-top: 1rem; }

/* ---- Big text, for a TV or projector ---- */
.tm--big .tm-card { max-width: 72rem; font-size: 1.45rem; }
.tm--big .tm-prompt { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.tm--big .tm-choice { min-height: 84px; font-size: 1.5rem; }
.tm--big .tm-choice__key { width: 2.5rem; height: 2.5rem; font-size: 1.2rem; }
.tm--big .tm-status, .tm--big .tm-kind { font-size: 1.15rem; }
.tm--big .tm-turn { font-size: 1.6rem; }
.tm--big .tm-result { font-size: 2rem; }
.tm--big .tm-zone h3 { font-size: 1.35rem; }
