/* ===== Гравці (мобільні + ноутбуки) ===== */
.play #app { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); min-height: 100vh; display: flex; flex-direction: column; gap: 16px; }

.p-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.p-team { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; background: var(--surface); border: 1px solid var(--line); padding: 7px 8px 7px 12px; border-radius: 99px; cursor: pointer; max-width: 55%; }
.p-team span.nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.p-tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 13px; }
.p-tabs button { flex: 1; background: transparent; border: 0; color: var(--muted); font: 700 13px var(--font); padding: 9px 6px; border-radius: 9px; cursor: pointer; }
.p-tabs button.on { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset; }

/* Вхід */
.p-join { margin: auto 0; display: flex; flex-direction: column; gap: 22px; padding: 12px 0 40px; }
.p-join h1 { font-size: 30px; line-height: 1.1; }
.p-join h1 em { color: var(--accent); font-style: normal; }
.p-pin { font-family: var(--display); letter-spacing: 0.4em; text-align: center; font-size: 26px !important; }

/* Очікування */
.p-wait { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.p-owl { width: 86px; height: 86px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(145deg, #2a2c31, #141518); box-shadow: 0 0 0 1px var(--line-2) inset, 0 20px 50px -18px rgba(232, 176, 74, 0.45); animation: float 4s ease-in-out infinite; }
.p-owl svg { width: 54px; height: 54px; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* Питання */
.p-qhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.p-qtext { font-size: 18px; line-height: 1.5; font-weight: 600; white-space: pre-wrap; }
.p-qcard { display: flex; flex-direction: column; gap: 16px; }
.p-timerbar { height: 4px; background: rgba(255, 255, 255, 0.06); border-radius: 4px; overflow: hidden; }
.p-timerbar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: background 0.3s; }

.p-answer { display: flex; flex-direction: column; gap: 12px; position: sticky; bottom: 12px; }
.p-answer.card { border-color: rgba(232, 176, 74, 0.28); background: linear-gradient(180deg, rgba(232, 176, 74, 0.06), transparent 50%), var(--surface); }
.p-answer textarea { min-height: 64px; font-size: 17px; font-weight: 600; }
.p-sent { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ok); font-weight: 700; }
.p-sent.pending { color: var(--accent); }

.p-verdict { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; font-weight: 700; }
.p-verdict.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid rgba(69, 212, 154, 0.3); }
.p-verdict.bad { background: var(--bad-soft); color: var(--bad); border: 1px solid rgba(255, 100, 100, 0.3); }
.p-verdict.wait { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.p-verdict .ic { font-size: 22px; width: 28px; text-align: center; }

.p-ans-card { border-color: rgba(232, 176, 74, 0.35); background: linear-gradient(160deg, rgba(232, 176, 74, 0.12), transparent 60%), var(--surface); }
.p-ans-card .ans { font-family: var(--display); font-size: 24px; color: var(--accent-2); line-height: 1.2; margin: 6px 0 10px; }

/* Таблиця / історія */
.p-list { display: flex; flex-direction: column; gap: 8px; }
.p-lrow { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.p-lrow.me { border-color: rgba(232, 176, 74, 0.5); background: linear-gradient(90deg, rgba(232, 176, 74, 0.1), transparent), var(--surface); }
.p-lrow .pl { font-family: var(--display); color: var(--muted); font-size: 14px; }
.p-lrow .sc { font-family: var(--display); font-size: 18px; }
.p-hrow { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }

.p-timer-wrap { display: flex; align-items: center; gap: 14px; }
.p-sheet { position: fixed; inset: auto 0 0 0; background: var(--surface); border-top: 1px solid var(--line-2); border-radius: 20px 20px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); z-index: 70; animation: fadeIn 0.2s; max-width: 760px; margin: 0 auto; }
.p-sheet-back { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 69; }
.p-code { font-family: var(--display); font-size: 34px; letter-spacing: 0.3em; color: var(--accent); }
