/* Adaptation of the organizer's MIT-licensed prototype. See LICENSE.txt. */
:root { --red: #9c2444; --red-dark: #791a34; --red-wash: #f8eaf0; --ink3: #5d626f; }
body { background: radial-gradient(ellipse at 50% 18%, #f3f5f8, #cbd0db); }
.phone { height: min(844px, calc(100dvh - 46px)); }
.home { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.contest-home { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: white; background: var(--red); font-size: 21px; }
.contest-label { font-size: .8rem; font-weight: 650; color: var(--ink2); }
.ico { min-width: 40px; min-height: 44px; }
.face .ph.demo-avatar { display: grid; place-items: center; background: #ffffff29; color: #fff; font-size: 7cqw; font-weight: 700; }
.face .live:empty { display: none; }
.oav { background-color: var(--red-wash); }
.contest-links { display: flex; flex-wrap: wrap; gap: 7px; padding: 9px 12px; }
.contest-links a { color: var(--red-dark); padding: 6px; font-size: .86rem; }
.contest-turn .body, .contest-turn .row { font-size: 1rem; line-height: 1.45; }
.contest-turn .row { gap: 8px; }
.contest-turn .row span { flex: 1; }
.contest-turn .row b { flex: 1; }
.contest-turn .tt { font-weight: 730; }
.contest-turn .actions { display: grid; gap: 7px; }
.contest-turn .btn { height: auto; min-height: 46px; padding: 9px 12px; }
.contest-turn .src a { color: var(--red-dark); }
.contest-context { margin: 0; padding: 11px 15px 0; font-size: .85rem; font-weight: 650; color: var(--red-dark); }
.phone.chatting .contest-label { display: none; }
.phone.chatting .chat { padding-bottom: 12px; }
.sheet:not(.on) { visibility: hidden; pointer-events: none; }
.found-top { height: max(env(safe-area-inset-top), 6px); flex: none; }
@media (min-width: 521px) { .found-top { height: 50px; } }
.found-id .nav .back { min-height: 44px; }
.found-id .body { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.found-id h1 { font-size: clamp(1.65rem, 5vw, 2rem); margin: 4px 0 15px; line-height: 1.15; letter-spacing: -.025em; }
.found-id h2 { font-size: 1.1rem; margin: 0; line-height: 1.3; }
.found-id p { margin: 0; line-height: 1.45; }
.found-kicker { color: var(--ink2); font-size: .875rem; }
.found-status { display: grid; gap: 9px; background: var(--surface); border-radius: 17px; padding: 14px; margin: 0 0 12px; border: 1px solid var(--hair); }
.found-document { display: grid; gap: 3px; border-radius: 15px; padding: 13px 15px; margin-bottom: 12px; color: white; background: linear-gradient(125deg,#143b58,#236769); }
.found-document strong { font-size: 1.12rem; }
.found-document span { font-size: .865rem; }
.found-pill { width: fit-content; padding: 4px 8px; border-radius: 6px; font-size: .9rem; font-weight: 700; }
.found-pill.warn { color: #774900; background: var(--warn-wash); }
.found-pill.ok { color: #17542e; background: var(--ok-wash); }
.found-next { padding: 10px; background: var(--bg); border-radius: 8px; font-size: .95rem; }
.found-actions { display: grid; gap: 8px; margin-top: 12px; }
.found-button { display: block; min-height: 46px; width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--hair); background: var(--surface); color: var(--ink); font-weight: 650; text-align: left; }
.found-button:hover { background: var(--red-wash); }
.found-button.primary { background: var(--red); border-color: var(--red); color: white; }
.found-button.primary:hover { background: var(--red-dark); }
.found-source { display: inline-block; padding: 12px 0 5px; font-size: .875rem; color: var(--red-dark); }
@media (max-width: 520px) {
  body { background: var(--bg); }
  .phone { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
}
@media (max-width: 355px) {
  .contest-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
