/* ==========================================================================
   CWI Brasil — br.css
   Tokens copied verbatim from the main site (styles.css — tokens are law).
   Page/layout styles below compose them; no token values re-declared here.
   Dependency-free. System fonts. Zero runtime CDN calls. No trackers.
   ========================================================================== */

:root {
  --cwi-bg:            #121212;
  --cwi-bg-deep:       #0b0b0b;
  --cwi-surface:       #181818;
  --cwi-surface-raised:#282828;
  --cwi-border:        #2a2a2a;
  --cwi-text:          #ffffff;
  --cwi-text-sub:      #b3b3b3;
  --cwi-text-faint:    #6a6a6a;
  --cwi-accent:        #1db954;
  --cwi-accent-hover:  #1ed760;
  --cwi-danger:        #e91429;
  --cwi-warn:          #f59e0b;
  --cwi-brand-grad-a:  #7c3aed;
  --cwi-brand-grad-b:  #0ea5e9;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --text-display: clamp(2.5rem, 8vw, 5rem);
  --text-h1:      clamp(1.75rem, 4vw, 2.5rem);
  --text-h2:      1.5rem;
  --text-h3:      1.125rem;
  --text-body:    1rem;
  --text-small:   0.875rem;
  --text-tiny:    0.75rem;
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --pad-page: clamp(16px, 4vw, 48px);
  --radius-sm: 4px;  --radius-md: 8px; --radius-lg: 16px; --radius-pill: 999px;
  --shadow-card: 0 8px 24px rgba(0,0,0,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cwi-bg); color: var(--cwi-text);
  font-family: var(--font-sans); font-size: var(--text-body); line-height: 1.5;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-4); color: var(--cwi-text-sub); }
:focus-visible { outline: 2px solid var(--cwi-accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2); min-height: 40px; padding: 0 var(--space-5);
  border-radius: var(--radius-pill); font-size: var(--text-small); font-weight: 700;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: scale(1.04); }
.btn--primary { background: var(--cwi-accent); color: #000; }
.btn--primary:hover { background: var(--cwi-accent-hover); }
.btn--secondary { background: transparent; color: var(--cwi-text); border-color: var(--cwi-text-sub); }
.btn--tertiary { background: transparent; color: var(--cwi-text-sub); padding: 0 var(--space-3); }
.btn--tertiary:hover { color: var(--cwi-text); transform: none; }

.badge {
  display: inline-block; font-size: var(--text-tiny); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; line-height: 1;
  padding: 5px 8px; border-radius: var(--radius-sm); white-space: nowrap;
}
.badge--live    { background: var(--cwi-accent); color: #000; }
.badge--sample  { background: var(--cwi-warn);   color: #000; }
.badge--draft   { background: #535353;           color: #fff; }
.badge--planned { background: transparent;       color: var(--cwi-text-sub); border: 1px solid var(--cwi-border); }
.badge--new     { background: #fff;              color: #000; }
.badge-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }

/* ===== top navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,11,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cwi-border);
}
.navbar .bar {
  max-width: 1400px; margin: 0 auto; padding: 0 var(--pad-page);
  height: 64px; display: flex; align-items: center; gap: var(--space-4);
}
.brand { display: flex; align-items: center; gap: var(--space-3); font-weight: 800; font-size: var(--text-small); letter-spacing: .04em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.brand:hover { text-decoration: none; }
.brand .br-tag { font-size: var(--text-tiny); color: var(--cwi-text-faint); font-weight: 600; }
.nav-links { display: none; align-items: center; gap: var(--space-1); margin-left: var(--space-4); }
.nav-links a {
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
  color: var(--cwi-text-sub); font-size: var(--text-small); font-weight: 600;
}
.nav-links a:hover { color: var(--cwi-text); background: var(--cwi-surface); text-decoration: none; }
.nav-links a.active { color: #0a0a0a; background: #d9b36c; font-weight: 700; }
.lang-switch { margin-left: auto; display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-small); font-weight: 700; }
.lang-switch a { color: var(--cwi-text-faint); padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); }
.lang-switch a:hover { color: var(--cwi-text); text-decoration: none; }
.lang-switch a[aria-current="true"] { color: #000; background: var(--cwi-accent); }
.lang-switch .sep { color: var(--cwi-border); }
.menu-btn { display: inline-flex; margin-left: var(--space-2); background: none; border: 1px solid var(--cwi-border);
  border-radius: var(--radius-md); color: var(--cwi-text); width: 40px; height: 40px;
  align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; fill: currentColor; }
.mobile-menu { display: none; border-top: 1px solid var(--cwi-border); padding: var(--space-3) var(--pad-page) var(--space-5); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: var(--space-3) 0; font-size: var(--text-h3); font-weight: 700;
  color: var(--cwi-text-sub); border-bottom: 1px solid var(--cwi-border); }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--cwi-text); text-decoration: none; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* ===== page shell ===== */
.page { max-width: 1400px; margin: 0 auto; padding: var(--pad-page); }
.page section { margin: var(--space-7) 0; }
.page section:first-child { margin-top: 0; }

.hero { border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 64px);
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(124,58,237,.55), rgba(14,165,233,.35)), #0b0b0b; }
.hero .eyebrow { font-size: var(--text-tiny); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: #e6e6e6; margin-bottom: var(--space-2); }
.hero h1 { font-size: var(--text-display); font-weight: 900; letter-spacing: -.02em; }
.hero p.lede { max-width: 72ch; color: #d9d9d9; font-size: 1.125rem; }
.hero p.locale { margin-top: .5rem; color: #9fd8a8; font-size: .95rem; font-weight: 600; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-5); }
.chip { font-size: var(--text-small); background: rgba(255,255,255,.14); padding: 4px 12px;
  border-radius: var(--radius-pill); color: #fff; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.sec-head h2 { font-size: var(--text-h2); }
.sec-head a.more { font-size: var(--text-small); font-weight: 700; color: var(--cwi-text-sub); }
.sec-head a.more:hover { color: var(--cwi-text); }
@media (max-width: 480px) { .sec-head { flex-direction: column; align-items: flex-start; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-4); }
.card { background: var(--cwi-surface); border-radius: var(--radius-md); padding: var(--space-4);
  position: relative; transition: background-color .15s ease; display: block; }
.card:hover { background: var(--cwi-surface-raised); text-decoration: none; }
.card .art { aspect-ratio: 1; border-radius: var(--radius-md); margin-bottom: var(--space-3);
  overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--cwi-brand-grad-a), var(--cwi-brand-grad-b)); }
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card .monogram { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 800; color: rgba(255,255,255,.85); letter-spacing: -.02em; }
.card h3 { font-size: var(--text-h3); margin-bottom: 2px; }
.card .sub { font-size: var(--text-small); color: var(--cwi-text-sub); margin-bottom: var(--space-2); }

.panel { background: var(--cwi-surface); border: 1px solid var(--cwi-border);
  border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); }
.panel h2 { margin-bottom: var(--space-3); }
.notice { border: 1px dashed var(--cwi-border); border-radius: var(--radius-md);
  padding: var(--space-4); color: var(--cwi-text-sub); font-size: var(--text-small); }
.view-meta { font-size: var(--text-small); color: var(--cwi-text-sub); }

/* ===== forms ===== */
.form-grid { display: grid; gap: var(--space-4); max-width: 720px; }
.field label { display: block; font-size: var(--text-small); font-weight: 700; margin-bottom: var(--space-2); }
.field .req { color: var(--cwi-accent); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  width: 100%; background: var(--cwi-bg-deep); border: 1px solid var(--cwi-border);
  border-radius: var(--radius-md); color: var(--cwi-text);
  font: inherit; font-size: var(--text-body); padding: var(--space-3) var(--space-4);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cwi-accent); outline: none;
}
.field .hint { font-size: var(--text-tiny); color: var(--cwi-text-faint); margin-top: var(--space-1); }
.field .err { font-size: var(--text-small); color: var(--cwi-danger); margin-top: var(--space-1); display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--cwi-danger); }
.field.invalid .err { display: block; }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-small); color: var(--cwi-text-sub); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cwi-accent); flex: 0 0 auto; }
.check a { color: var(--cwi-text); text-decoration: underline; }
.type-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.type-tabs button {
  border: 1px solid var(--cwi-border); background: var(--cwi-surface); color: var(--cwi-text-sub);
  border-radius: var(--radius-pill); padding: var(--space-2) var(--space-4);
  font: inherit; font-size: var(--text-small); font-weight: 700; cursor: pointer;
}
.type-tabs button[aria-selected="true"] { background: var(--cwi-accent); border-color: var(--cwi-accent); color: #000; }
.type-tabs button:hover { color: var(--cwi-text); }
.form-status { border-radius: var(--radius-md); padding: var(--space-4); font-size: var(--text-small); display: none; }
.form-status.ok { display: block; background: rgba(29,185,84,.12); border: 1px solid var(--cwi-accent); color: var(--cwi-text); }
.form-status.bad { display: block; background: rgba(233,20,41,.1); border: 1px solid var(--cwi-danger); color: var(--cwi-text); }
/* honeypot — never visible, never focusable */
.hp-field { position: absolute !important; left: -9999px !important; top: auto !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* ===== livestream ===== */
.stream-stage { background: #000; border: 1px solid var(--cwi-border); border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; }
.stream-stage iframe { width: 100%; height: 100%; border: 0; }
.stream-soon { text-align: center; padding: var(--space-6); color: var(--cwi-text-sub); }
.stream-soon .pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--cwi-warn);
  display: inline-block; margin-bottom: var(--space-3); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .stream-soon .pulse { animation: none; } }

/* ===== footer ===== */
.footer { border-top: 1px solid var(--cwi-border); margin-top: var(--space-8); }
.footer .inner { max-width: 1400px; margin: 0 auto; padding: var(--space-6) var(--pad-page) var(--space-5); }
.footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-5); margin-bottom: var(--space-6); }
.footer h4 { font-size: var(--text-tiny); text-transform: uppercase; letter-spacing: .08em;
  color: var(--cwi-text-faint); margin-bottom: var(--space-3); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: var(--space-2); }
.footer a { color: var(--cwi-text-sub); font-size: var(--text-small); }
.footer a:hover { color: var(--cwi-text); }
.footer .legal { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  padding-top: var(--space-4); border-top: 1px solid var(--cwi-border);
  font-size: var(--text-small); color: var(--cwi-text-faint); }
.footer .fbrand { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4);
  font-weight: 800; font-size: var(--text-small); }
.footer .fbrand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.footer .lang-switch { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== games ===== */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.game-card { background: var(--cwi-surface); border: 1px solid var(--cwi-border); border-radius: var(--radius-lg);
  padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.game-card:hover { border-color: #d9b36c; text-decoration: none; }
.game-card .g-art { aspect-ratio: 16/9; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(124,58,237,.5), rgba(14,165,233,.3)), #0b0b0b;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; font-weight: 800; color: #d9b36c; letter-spacing: .04em; }
.game-card h3 { font-size: var(--text-h2); }
.game-card p { color: var(--cwi-text-sub); font-size: var(--text-small); flex: 1; margin: 0; }
.game-card .g-actions { display: flex; gap: var(--space-3); align-items: center; margin-top: var(--space-2); }
