/* Same look as the Android app: pure black, white text, large buttons. */
:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #9a9a9a;
  --border: #2a2a2a;
  --whatsapp: #25d366;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.screen {
  display: none;
  flex-direction: column;
  min-height: 100%;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}
.screen.active { display: flex; }

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

.logo { width: 180px; height: 180px; object-fit: contain; border-radius: 24px; }
h1 { font-size: 34px; margin: 8px 0 0; }
h2 { font-size: 30px; margin: 0 0 16px; }
.muted { color: var(--muted); font-size: 17px; margin: 0; }
.small { font-size: 15px; margin: -8px 0 12px; }
.big { font-size: 22px; font-weight: 700; margin: 16px 0 0; }
.percent { font-size: 44px; font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; }
.icon { font-size: 48px; margin: 0; }
.hint { color: var(--muted); font-size: 14px; margin-top: 16px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-size: 20px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  margin-top: 12px;
}
.btn:active { opacity: 0.7; }
.btn.primary { background: #fff; color: #000; }
.btn.whatsapp { background: var(--whatsapp); color: #fff; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); font-size: 17px; font-weight: 600; }
.center .btn { max-width: 420px; }

.player {
  flex: 1;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  display: flex;
}
.player video { width: 100%; height: 100%; max-height: 62vh; object-fit: contain; }

.actions { margin-top: 8px; }

.copyright { color: var(--muted); font-size: 12px; line-height: 18px; text-align: center; margin: 0; }

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

pre {
  max-height: 160px;
  max-width: 100%;
  overflow: auto;
  direction: ltr;
  text-align: left;
  font-size: 11px;
  color: var(--muted);
  background: #111;
  border-radius: 8px;
  padding: 8px;
  white-space: pre-wrap;
}
pre:empty { display: none; }
