/* EducaPalavras visual refresh 2026-11-05
   Presentation-only layer: no changes to routes, game state or interaction handlers. */

:root {
  --ep-content-max: 1180px;
  --ep-focus: #ffe066;
  --ep-card-border: rgba(255,255,255,.24);
  --ep-card-bg: rgba(8, 35, 55, .28);
  --ep-card-bg-strong: rgba(8, 35, 55, .44);
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(255,255,255,.16), transparent 22rem),
    radial-gradient(circle at 92% 86%, rgba(255,210,75,.18), transparent 28rem),
    linear-gradient(145deg, var(--bg-1), var(--bg-2) 58%, var(--bg-3));
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(7, 29, 46, .46);
}

.site-nav { max-width: var(--ep-content-max); }
.brand-copy { min-width: 0; }
.brand-copy strong {
  display: block;
  font-family: "Baloo 2", cursive;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
}
.brand-copy small { font-size: .68rem; opacity: .76; line-height: 1.2; }

.site-nav .btn {
  min-height: 42px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.site-nav .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.site-nav .btn:active { transform: translateY(0) scale(.98); }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ep-focus) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(255,224,102,.22) !important;
}

.playground-card,
.sidebar-card,
.dashboard-card,
.form-card {
  border-color: var(--ep-card-border);
  background: var(--ep-card-bg);
  box-shadow: 0 18px 48px rgba(4, 21, 34, .22);
}

.lead-copy,
.wc-desc,
.landing-step p,
.mod-subtitle { line-height: 1.55; }

/* Give module and geography cards one shared visual language. */
.mod-card,
.geo-card,
.body-card,
.landing-world-card {
  border: 1px solid var(--ep-card-border);
  box-shadow: 0 12px 30px rgba(4,21,34,.18), inset 0 1px 0 rgba(255,255,255,.16);
}
.mod-card:hover,
.geo-card:hover,
.body-card:hover,
.landing-world-card:hover {
  box-shadow: 0 18px 38px rgba(4,21,34,.28), inset 0 1px 0 rgba(255,255,255,.24);
}

/* Keep action controls easy to tap on touch screens. */
.btn,
.word-chip,
.mod-cat-btn,
.alpha-filter-btn,
.tab-chip,
.mod-practice-option { min-height: 44px; }

.site-footer {
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(7, 29, 46, .38);
}
.site-footer p { color: rgba(247,251,255,.82); line-height: 1.45; }
.footer-note { color: rgba(247,251,255,.68) !important; }

@media (max-width: 820px) {
  .site-header { padding-block: .65rem !important; }
  .site-nav { gap: .65rem !important; }
  .site-nav > .d-flex { width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap !important; padding-bottom: .15rem; scrollbar-width: thin; }
  .site-nav > .d-flex .btn { flex: 0 0 auto; font-size: .82rem; }
  .display-title { font-size: clamp(2.35rem, 11vw, 3.8rem); }
  .playground-card, .sidebar-card, .dashboard-card, .form-card { padding: 1.25rem; border-radius: 1.35rem; }
}

@media (max-width: 576px) {
  .site-nav { align-items: flex-start !important; }
  .brand img { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 1.02rem; }
  .brand-copy small { font-size: .6rem; }
  .hero-shell, .auth-shell, .dashboard-shell { padding-inline: .5rem; }
  .eyebrow, .sentence-tag { font-size: .72rem; letter-spacing: .05em; }
  .site-footer .container { align-items: flex-start !important; flex-direction: column; }
  .site-footer p { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .btn, .mod-card, .geo-card, .body-card, .landing-world-card { border: 2px solid ButtonText; }
}
