/* Телефон участника: крупно, одно действие на экран. */
body { min-height: 100svh; font-size: 18px; line-height: 1.35; -webkit-text-size-adjust: 100%; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-size: 14px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.anon { background: var(--panel); padding: 2px 10px; border-radius: 99px; }
.net { display: none; background: var(--bad); color: #fff; font-weight: 700; padding: 8px 16px; font-size: 15px; }
.net.is-off { display: block; }
main { padding: 18px 16px 40px; max-width: 560px; margin: 0 auto; }
h1 { font-size: 23px; line-height: 1.2; margin: 6px 0 12px; font-weight: 800; }
h2 { font-size: 19px; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.hint { color: var(--muted); font-size: 16px; font-weight: 600; }
.q { display: flex; flex-direction: column; gap: 12px; }
textarea, input, select { font: inherit; font-size: 19px; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
[data-theme="dark"] textarea, [data-theme="dark"] input, [data-theme="dark"] select { color: #101317; }
textarea:focus, input:focus, select:focus { outline: 3px solid var(--accent2); outline-offset: 1px; border-color: var(--accent2); }
.left { font-size: 14px; color: var(--muted); text-align: right; margin-top: -6px; }
.go { appearance: none; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 20px; padding: 16px; min-height: 56px; cursor: pointer; }
.go:disabled { opacity: .5; }
.go.ghost { background: var(--panel); color: var(--ink); }
.err { color: var(--bad); font-weight: 700; font-size: 16px; min-height: 0; }
.err:empty { display: none; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { appearance: none; text-align: left; border: 2px solid var(--line); background: var(--paper); color: #101317; border-radius: 14px; padding: 15px 16px; font-size: 18px; font-weight: 700; min-height: 56px; cursor: pointer; }
.opt[aria-checked="true"] { border-color: var(--accent2); background: var(--accent2-soft); box-shadow: inset 0 0 0 2px var(--accent2); }
[data-theme="dark"] .opt[aria-checked="true"] { color: var(--ink); }
.opt-multi { display: flex; align-items: center; gap: 12px; }
.opt-multi::before { content: ''; flex: 0 0 24px; height: 24px; border: 2px solid var(--line); border-radius: 6px; background: var(--paper); }
.opt-multi[aria-checked="true"]::before { content: '✓'; display: grid; place-items: center; border-color: var(--accent2); background: var(--accent2); color: #fff; font-size: 16px; }
.num { display: flex; align-items: center; gap: 10px; }
.num input { font-size: 30px; font-weight: 800; text-align: center; }
.unit { font-size: 22px; font-weight: 800; color: var(--muted); min-width: 2ch; white-space: nowrap; }
.date { display: flex; gap: 10px; }
.date select { flex: 1; font-size: 20px; }
.qtimer { font-size: 20px; font-weight: 800; color: var(--accent2); }
.qtimer.is-over { color: var(--bad); }
.wait, .done { text-align: center; padding-top: 12vh; }
.wait h1, .done h1 { font-size: 28px; }
.wait p, .done p { font-size: 18px; color: var(--muted); font-weight: 600; }
.eye { width: 76px; height: 46px; margin: 0 auto 18px; border: 6px solid var(--accent2); border-radius: 50% / 50%; position: relative; }
.eye::after { content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--accent2); animation: look 3s ease-in-out infinite; }
@keyframes look { 30% { transform: translateX(-12px); } 60% { transform: translateX(12px); } }
.tick { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%; background: var(--good); color: #fff; font-size: 58px; font-weight: 800; display: grid; place-items: center; animation: pop .5s ease-out; }
.done p { font-size: 22px; color: var(--ink); font-weight: 800; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.1); } }
.task { border: 2px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.task p { margin: 0; }
.task-done { color: var(--good); font-weight: 800; }
.hw { gap: 16px; }

/* Мосты на телефоне */
.bridges { gap: 10px; }
.br-phone-map { margin: 0 -10px; touch-action: manipulation; }
.br-phone-map .kmap { border-radius: 12px; }
.br-phone-map .km-label { font-size: 40px; }
.br-phone-map.pick-start .km-label { fill: var(--accent2); }
.br-status { font-size: 18px; font-weight: 800; min-height: 3.2em; }
a.go { display: block; text-align: center; text-decoration: none; }
.src-link { margin-top: 18px; font-size: 17px; }

/* «Угадай магнит» (задание 22): квадратный стол на всю ширину, три кнопки цвета */
.pend-board { display: block; width: 100%; height: auto; aspect-ratio: 1; touch-action: manipulation; cursor: crosshair; margin: 4px 0 12px; }
.pend-table { fill: var(--panel); stroke: var(--line); stroke-width: 6; }
.pend-mag { stroke: var(--ink); stroke-width: 5; }
.pend-trail { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.pend-ball { fill: var(--muted); stroke: var(--ink); stroke-width: 5; }
.pend-start { fill: var(--bg); stroke: var(--ink); stroke-width: 6; }
.pend-start.is-done { stroke-width: 7; }
.pend-old { stroke: var(--bg); stroke-width: 4; opacity: .9; }
.pend-old.is-miss { stroke: var(--ink); stroke-dasharray: 6 5; }
.pend-status { font-size: 20px; font-weight: 800; min-height: 1.4em; margin-bottom: 10px; }
.pend-status.is-ok { color: var(--good); }
.pend-status.is-miss { color: var(--bad); }
.pend-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.pend-pick { font: inherit; font-weight: 800; font-size: 17px; padding: 14px 4px; border-radius: 14px; border: 3px solid var(--c); background: var(--panel); color: var(--ink); }
.pend-pick:not(:disabled) { background: var(--c); color: #fff; }
.pend-pick:disabled { opacity: .55; }
.pend-pick.is-picked { opacity: 1; outline: 4px solid var(--ink); outline-offset: 2px; }
.pend-score { margin-top: 8px; }

/* Графический ключ (задание 25): сетка 3 × 3 как подсказка */
.grid-hint { display: block; width: 46%; max-width: 180px; margin: 4px auto 14px; }
.grid-hint circle { fill: var(--ink); opacity: .75; }
