body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, #fff 45%, var(--bg)) 0, transparent 60%),
    radial-gradient(circle, color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.6px) 0 0 / 14px 14px,
    var(--bg);
  background-attachment: fixed;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 3px solid var(--edge);
  box-shadow: var(--shadow);
}

.pill:empty {
  display: none;
}

.pill i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.25;
}

.conn {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.conn.off::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bad);
  animation: pulse 1s infinite;
}

.app {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px 16px calc(env(safe-area-inset-bottom) + 20px);
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 20px 0;
}

.muted {
  color: var(--muted);
}

.logo {
  max-height: 96px;
  max-width: 80%;
  object-fit: contain;
  margin-bottom: 6px;
}

.logo.hero {
  width: min(88%, 380px);
  max-height: 210px;
  max-width: none;
  margin: 0 0 4px;
  filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--text) 22%, transparent));
  animation: pop 0.6s ease both;
}

h1,
h2,
p {
  margin: 0;
}

.h1 {
  font-size: clamp(30px, 9vw, 42px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h1.quest {
  font-size: clamp(54px, 17vw, 82px);
  line-height: 0.92;
  margin-bottom: 10px;
}

.sub {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--muted);
  text-wrap: balance;
}

.sub.hand {
  font-size: 34px;
  line-height: 1;
  color: var(--text);
  transform: rotate(-4deg);
}

.eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.youare {
  margin-top: 16px;
  padding: 16px 26px;
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
  border: 3px solid var(--edge);
  box-shadow: var(--shadow);
  animation: rise 0.4s ease both;
}

.youare small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.8;
  margin-bottom: 2px;
}

.linkbtn {
  margin-top: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- escolha de time ---------- */

.pick {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.teambtn {
  position: relative;
  width: 100%;
  min-height: 88px;
  border-radius: 24px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--edge);
  box-shadow: 0 6px 0 var(--edge), var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.2s;
  animation: rise 0.35s ease both;
}

.teambtn:nth-child(2) {
  animation-delay: 0.05s;
}

.teambtn:nth-child(3) {
  animation-delay: 0.1s;
}

.teambtn:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--edge);
}

.teambtn.busy {
  opacity: 0.6;
}

.cancel {
  margin-top: 10px;
  padding: 12px;
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
}

/* ---------- pergunta ---------- */

.qhead {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0 14px;
}

.qtitle {
  font-size: 16px;
  font-weight: 900;
}

.qtext {
  font-size: clamp(19px, 5.4vw, 23px);
  line-height: 1.3;
  font-weight: 800;
  text-wrap: pretty;
}

.timer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.timer .track {
  flex: 1;
  height: 16px;
  border-radius: 99px;
  background: var(--surface);
  border: 3px solid var(--edge);
  overflow: hidden;
}

.timer .bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  background: var(--accent);
}

.timer .sec {
  min-width: 52px;
  text-align: right;
  font-size: 30px;
  font-weight: 900;
}

.timer.urgent .bar {
  background: var(--bad);
}

.opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 3px solid transparent;
  box-shadow: var(--shadow);
  font-size: 16.5px;
  line-height: 1.38;
  font-weight: 700;
  transition: transform 0.1s ease, opacity 0.2s, border-color 0.2s, background 0.2s;
}

.opt .l {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 19px;
  color: var(--surface);
  background: var(--text);
}

.opt .t {
  padding-top: 8px;
}

.opts.big .opt {
  min-height: 96px;
  align-items: center;
  font-size: 28px;
  font-weight: 900;
}

.opts.big .opt .t {
  padding-top: 0;
}

.opt:not(:disabled):active {
  transform: scale(0.985);
}

.opts.locked .opt {
  opacity: 0.6;
}

.opt.sel {
  opacity: 1 !important;
  border-color: var(--edge);
  background: color-mix(in srgb, var(--team, var(--accent)) 30%, var(--surface));
}

.opt.sel .l {
  background: var(--team, var(--accent));
  color: var(--team-ink, #fff);
  box-shadow: inset 0 0 0 3px var(--edge);
}

.status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  animation: rise 0.3s ease both;
}

.status.ok {
  background: var(--ok);
  color: #fff;
}

.status.bad {
  background: var(--bad);
  color: #fff;
}

.lead {
  font-size: 40vw;
  font-weight: 900;
  line-height: 1;
  animation: pop 0.5s ease both;
}

/* ---------- resultado ---------- */

.verdict {
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  padding: 16px 0 6px;
  animation: pop 0.45s ease both;
}

.verdict.ok {
  color: var(--ok);
}

.verdict.bad {
  color: var(--bad);
}

.answer {
  margin: 8px 0 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.answer b {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.expl {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--muted);
}

.bars {
  margin-top: 16px;
  padding: 14px 16px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bars h3 {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.brow {
  display: grid;
  grid-template-columns: 30px 1fr 48px;
  gap: 10px;
  align-items: center;
  font-weight: 900;
}

.brow .track {
  height: 18px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--text) 9%, transparent);
  overflow: hidden;
}

.brow .fill {
  height: 100%;
  border-radius: 9px;
  width: 0;
  box-shadow: inset 0 0 0 2px var(--edge);
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brow.right .l::after {
  content: ' ✓';
  color: var(--ok);
}

.brow .p {
  text-align: right;
}

.gain {
  margin-top: 16px;
  text-align: center;
  font-size: 19px;
  font-weight: 900;
}

.rank {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 16px 0 0;
  padding: 0;
}

.rank li {
  list-style: none;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 21px;
  border: 3px solid var(--edge);
  animation: rise 0.4s ease both;
}

.rank li .pos {
  font-size: 16px;
  opacity: 0.85;
}

.rank li.mine {
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--edge);
}

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  margin: 0 auto;
  max-width: 520px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.3);
  transform: translateY(160%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s;
  z-index: 20;
}

.toast.show {
  transform: none;
  visibility: visible;
}

.preview-tag {
  position: fixed;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: var(--text);
  color: var(--bg);
  opacity: 0.85;
  z-index: 30;
}
