* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.35;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  min-height: 100dvh;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
a {
  color: var(--accent-text);
}
h1 {
  font-size: 2rem;
  margin: 4px 0 0;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.35rem;
  margin: 0;
}
h3 {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.screen {
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
  padding-left: calc(18px + env(safe-area-inset-left));
  padding-right: calc(18px + env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.center {
  text-align: center;
}
.ended,
.waiting {
  justify-content: center;
}
.dim {
  color: var(--dim);
}
.small {
  font-size: 0.85rem;
}
.tiny {
  font-size: 0.72rem;
  margin-top: -14px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.between {
  justify-content: space-between;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
label.h {
  font-weight: 700;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}
.mark {
  width: 52px;
  height: 52px;
}
.mark.sm {
  width: 22px;
  height: 22px;
  vertical-align: -5px;
}
.mark.xs {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 5px;
}
.brandsm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brandlink {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  gap: 6px;
  font-weight: 800;
  text-decoration: none;
}
.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid var(--line);
  border-top-color: var(--accent-text);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  align-self: center;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(110px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 14px;
  z-index: 60;
  font-weight: 600;
  max-width: 90vw;
  text-align: center;
}
.foot a,
.legal a.inline {
  display: inline-block;
  padding: 10px 4px;
  color: var(--dim);
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 18px 60px;
  font-size: 1rem;
  line-height: 1.55;
}
.legal h1 {
  font-size: 1.8rem;
}
.legal h2 {
  font-size: 1.2rem;
  margin-top: 1.6em;
}
.legal .draft {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
}
