/* base.css — tokens de identidade visual Tintas & Tons e reset mínimo. */

@font-face {
  font-family: "Poppins";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/Poppins-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/Poppins-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/Poppins-Bold.woff2") format("woff2");
}

:root {
  --navy: #18335f;
  --teal: #1ab3b7;
  --teal-dark: #13969b;
  --paper: #ffffff;
  --mist: #c6d3e6;
  --alert: #e8a33d;
  --danger: #d64545;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --tap: 48px; /* alvo mínimo de toque */
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  line-height: 1.4;
  color: var(--navy);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
}
h2 {
  font-size: 1.125rem;
  font-weight: 500;
}

a {
  color: var(--teal);
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  min-height: var(--tap);
  padding: 0 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--paper);
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
}
button:hover,
button:active {
  background: var(--teal-dark);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.danger {
  background: var(--danger);
}
button.ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--mist);
}

input,
select {
  min-height: var(--tap);
  width: 100%;
  padding: 0 0.875rem;
  border: 2px solid var(--mist);
  border-radius: var(--radius);
  background: var(--paper);
}
input:focus,
select:focus {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.muted {
  color: var(--mist);
}
.alert {
  color: var(--alert);
}
.danger-text {
  color: var(--danger);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Layout de página centralizada (cadastro, entrada do jogo) */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 3rem;
  gap: 1.25rem;
}
.page .logo {
  width: min(200px, 60vw);
  height: auto;
}
.card {
  width: 100%;
  max-width: 480px;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--paper);
  color: var(--navy);
  box-shadow: var(--shadow);
}
.card h1 {
  margin-bottom: 0.25rem;
}
.card p.lead {
  color: #5a6a85;
  margin-bottom: 1rem;
}
