@import url('./ui-theme.css');

/* Public pages share the game's palette and controls without importing its layout. */
:root {
  color-scheme: only dark;
  --button-secondary-shadow: 0 3px 0 #0b1522;
}
body { background: radial-gradient(ellipse at 80% 0, #172a3e, transparent 60%), var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--font-ui); }
body::before, body::after { display: none; }
h1, h2, h3 { font-family: var(--font-ui); font-weight: 800; letter-spacing: -.035em; }
a { text-underline-offset: 4px; }
:where(a, button, input, select, summary):focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 4px; }
:where(button, input, select) { font: inherit; }
.primary-link, .challenges-page .primary {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 58px;
  padding: 14px 24px;
  font: 750 1.125rem/1.3 var(--font-ui); text-decoration: none;
}
.primary-link:hover, .challenges-page .primary:hover { filter: brightness(1.08); }
.primary-link:active, .challenges-page .primary:active { transform: translateY(2px); }
.info-page .site-header, .info-page main, .info-page footer { width: min(1000px, calc(100% - 48px)); }
.info-page .site-header { padding: 24px 0; border-bottom: 1px solid var(--border); }
.public-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 1.125rem; font-weight: 800; margin-bottom: 16px; }
.public-brand img { width: 44px; height: 44px; border-radius: 10px; }
.info-page nav { gap: 6px 12px; }
.info-page nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 8px; font-size: .9375rem; line-height: 1.4; }
.info-page nav a:hover { background: var(--panel-strong); }
.info-page main { padding: 40px 0 56px; }
.info-hero { padding: 32px; margin-bottom: 28px; border: 1px solid var(--border); border-radius: 24px; background: var(--panel); }
.info-page .eyebrow { font-size: .875rem; letter-spacing: .05em; font-weight: 700; }
.info-page h1 { font-size: clamp(2rem, 5vw, 3.5rem); max-width: 22ch; line-height: 1.1; overflow-wrap: anywhere; }
.info-page .intro { margin: 20px 0 0; font-size: 1.125rem; line-height: 1.65; max-width: 65ch; }
.info-page section { padding: 28px 0; }
.info-page section h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; max-width: 35ch; }
.info-page section p { max-width: 70ch; margin: 14px 0; }
.info-page ol { list-style: none; counter-reset: steps; padding: 0; display: grid; gap: 12px; }
.info-page li { counter-increment: steps; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.info-page li::before { content: counter(steps); display: grid; place-items: center; width: 36px; height: 36px; background: #d9a85b20; color: var(--accent-strong); border-radius: 50%; font-weight: 800; }
.faq-item { margin: 14px 0; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); }
.info-page .faq-item h3 { font-size: 1.125rem; line-height: 1.4; margin: 0; }
.info-page .faq-item p { margin: 12px 0 0; }
.info-page footer { font-size: .9375rem; }
.challenges-page .shell { background: none; border: 0; box-shadow: none; }
.challenges-page .landing-header { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.challenges-page .landing-nav > a, .challenges-page .locale-nav a, .challenge-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; }
.challenges-page .locale-nav { gap: 4px; }
.challenges-page .locale-nav a { min-width: 40px; justify-content: center; }
.challenges-page h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.challenges-page .lede { font-size: 1.0625rem; max-width: 70ch; }
.challenge-card, .challenge-filters { background: var(--panel); border: 1px solid var(--border); box-shadow: none; }
.challenge-card::before, .challenge-card::after { display: none; }
.challenge-filter-main button, .challenges-page .secondary { min-height: 48px; padding: 12px 18px; font: 700 1rem/1.3 var(--font-ui); }
.challenges-page select { min-height: 48px; padding: 10px; border: 1px solid #496078; border-radius: 10px; background: #203145; color: var(--ink); }
.challenge-filter-details summary, .challenge-clear { min-height: 44px; padding-block: 10px; }
.challenge-context, .challenge-date, .challenge-calendar-note { font-size: .9375rem; }
.challenges-page .eyebrow { font-size: .875rem; letter-spacing: .045em; }
@media (max-width: 600px) {
  .info-page .site-header, .info-page main, .info-page footer { width: calc(100% - 32px); }
  .info-page .site-header { padding: 16px 0; }
  .info-page main { padding-top: 24px; }
  .info-hero { padding: 22px 18px; border-radius: 18px; }
  .info-page .intro { font-size: 1rem; }
  .info-page .primary-link { width: 100%; }
  .info-page nav { gap: 4px 8px; }
  .info-page nav a { padding-inline: 6px; }
  .faq-item { padding: 20px 18px; }
  .challenges-page .locale-nav { margin-left: 0; }
}
