*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #04070a; font-size: 14px; line-height: 1.5; }
button { cursor: pointer; font-family: inherit; font-size: 14px; }
input, textarea { font-family: inherit; font-size: 14px; }

/* ══════════════════════════════════════════════════════════════════════════
   PUBLIC MARKETING SITE (unauthenticated) — B18 logo: cyan to purple on black
   ══════════════════════════════════════════════════════════════════════════ */
.pub-site {
  --pg: #5cc8f2;          /* B18 cyan */
  --pg-violet: #7b4de8;   /* B18 purple (gradients) */
  --pg-soft: #9ae3f7;
  --pg-deep: #0a1020;
  --pg-ink: #04070a;
  --pub-text: #dfe9f7;
  --pub-heading: #f0f6ff;
  --pub-muted: #9fb2d4;
  --pub-soft-text: #bfd6f2;
  --pub-faint: #5f6f9a;
  --pub-nav-bg: rgba(4, 7, 10, 0.82);
  --pub-input-bg: rgba(8, 12, 26, 0.8);
  --pub-tile-end: rgba(4, 7, 10, 0.9);
  --pub-on-accent: #04101c;
  --pub-err: #ffb3b3;
  background: var(--pg-ink);
  color: var(--pub-text);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}
/* Light theme: follows Windows/macOS "light" mode, or the nav toggle (pubtheme.js). */
.pub-site.pub-light {
  --pg: #2470d6;          /* B18 blue, darker for contrast on white */
  --pg-soft: #4a8cf0;
  --pg-ink: #f6f8fd;
  --pub-text: #1a2140;
  --pub-heading: #0f1530;
  --pub-muted: #4a5878;
  --pub-soft-text: #2c3a5c;
  --pub-faint: #7a87a6;
  --pub-nav-bg: rgba(255, 255, 255, 0.86);
  --pub-input-bg: #ffffff;
  --pub-tile-end: rgba(246, 248, 253, 0.9);
  --pub-on-accent: #ffffff;
  --pub-err: #b42318;
}
.pub-site.pub-light .pub-charge { filter: none; }
.pub-site.pub-light .pub-hero-logo { filter: drop-shadow(0 6px 24px rgba(36, 112, 214, 0.18)); }
.pub-site.pub-light .pub-card:hover { box-shadow: 0 12px 40px rgba(15, 21, 48, 0.12); }
.pub-theme-btn {
  background: transparent; border: 1px solid rgba(92, 200, 242, 0.35); border-radius: 8px;
  width: 34px; height: 34px; font-size: 16px; line-height: 1; cursor: pointer; color: var(--pub-text);
}
.pub-theme-btn:hover { background: rgba(92, 200, 242, 0.12); }
.pub-site a:not(.pub-btn) { color: var(--pg); text-decoration: none; }
.pub-site a:not(.pub-btn):hover { color: var(--pg-soft); }
.pub-site a.pub-btn { text-decoration: none; }

/* Public site uses normal document scrolling, not the portal's fixed flex shell */

/* Nav */
.pub-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px;
  background: var(--pub-nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 200, 242, 0.15);
}
.pub-nav-logo { height: 42px; display: block; }
.pub-nav-links { display: flex; align-items: center; gap: 22px; }
.pub-nav-link { color: var(--pub-muted); font-size: 14px; font-weight: 500; }
.pub-nav-link:hover { color: var(--pg); }

/* Hero */
.pub-hero {
  position: relative; text-align: center;
  padding: 64px 24px 80px; max-width: 880px; margin: 0 auto;
}
.pub-hero-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 620px; height: 620px; max-width: 120vw;
  background: radial-gradient(circle, rgba(92,200,242,0.20) 0%, rgba(123,77,232,0.08) 38%, transparent 68%);
  pointer-events: none; z-index: 0;
}
.pub-hero-logo {
  position: relative; z-index: 1; width: 230px; max-width: 64vw;
  filter: drop-shadow(0 0 40px rgba(92, 200, 242, 0.35));
  margin-bottom: 18px;
}
.pub-hero-kicker {
  position: relative; z-index: 1;
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 12px;
  color: var(--pg); font-weight: 700; margin-bottom: 14px;
}
.pub-hero-title {
  position: relative; z-index: 1;
  font-size: clamp(32px, 6vw, 56px); line-height: 1.08; font-weight: 800;
  color: var(--pub-heading); margin: 0 0 18px; letter-spacing: -0.02em;
}
.pub-charge {
  color: var(--pg);
  background: linear-gradient(90deg, var(--pg), var(--pg-violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  /* Glow via filter: a text-shadow would show through the transparent gradient fill. */
  filter: drop-shadow(0 0 14px rgba(92, 200, 242, 0.45));
}
.pub-hero-sub {
  position: relative; z-index: 1;
  font-size: clamp(15px, 2.2vw, 19px); line-height: 1.6; color: var(--pub-muted);
  max-width: 620px; margin: 0 auto 28px;
}
.pub-hero-actions { position: relative; z-index: 1; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pub-btn {
  display: inline-block; border-radius: 10px; padding: 13px 26px;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.15s; border: 1px solid transparent;
}
.pub-btn-primary {
  background: var(--pg); color: var(--pub-on-accent);
  box-shadow: 0 0 24px rgba(92, 200, 242, 0.35);
}
.pub-btn-primary:hover { background: var(--pg-soft); color: var(--pub-on-accent); box-shadow: 0 0 34px rgba(92, 200, 242, 0.55); }
.pub-btn-ghost { background: transparent; color: var(--pg); border-color: rgba(92, 200, 242, 0.45); }
.pub-btn-ghost:hover { background: rgba(92, 200, 242, 0.1); color: var(--pg-soft); }
.pub-coming-pill {
  position: relative; z-index: 1; display: inline-block; margin-top: 30px;
  font-size: 13px; font-weight: 600; color: var(--pub-soft-text);
  background: rgba(92, 200, 242, 0.08); border: 1px solid rgba(92, 200, 242, 0.25);
  border-radius: 999px; padding: 8px 18px;
}

/* Sections */
.pub-section { max-width: 1040px; margin: 0 auto; padding: 70px 24px; }
.pub-section-alt { background: linear-gradient(180deg, transparent, rgba(92,200,242,0.03), transparent); }
.pub-section-title {
  text-align: center; font-size: clamp(26px, 4vw, 36px); font-weight: 800;
  color: var(--pub-heading); margin: 0 0 12px; letter-spacing: -0.01em;
}
.pub-section-lead { text-align: center; color: var(--pub-muted); font-size: 16px; line-height: 1.6; max-width: 640px; margin: 0 auto 40px; }

.pub-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pub-card {
  background: linear-gradient(160deg, rgba(92,200,242,0.06), rgba(92,200,242,0.01));
  border: 1px solid rgba(92, 200, 242, 0.16); border-radius: 16px; padding: 28px 24px;
  transition: all 0.2s;
}
.pub-card:hover { border-color: rgba(92,200,242,0.4); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.pub-card-icon { font-size: 30px; line-height: 0; margin-bottom: 14px; }
.pub-card-title { font-size: 18px; font-weight: 700; color: var(--pub-heading); margin-bottom: 8px; }
.pub-card-text { font-size: 14px; line-height: 1.6; color: var(--pub-muted); }

/* Lineup */
/* Featured title (Grid Blitz) */
.pub-feature { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.pub-feature-art {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 6px; padding: 14px; border: 2px solid transparent; border-radius: 18px; aspect-ratio: 1;
  background: linear-gradient(#10102a, #10102a) padding-box,
              linear-gradient(135deg, #3fd5ff, #3b82f6 55%, #8b5cf6) border-box;
  box-shadow: 0 0 30px rgba(80, 120, 255, 0.25);
}
.pub-feature-art span {
  border-radius: 24%; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.4);
}
/* Dark-core ⚡ charge tile, as in the game */
.pub-feature-art .pub-charge-tile {
  display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden;
  font-size: clamp(12px, 1.8vw, 20px); line-height: 1;
  background: radial-gradient(circle at 50% 45%, #3a3170 0%, #14143a 60%, #0c0c26 100%);
  border: 3px solid #38bdf8;
  box-shadow: 0 0 0 1.5px #fff35c, 0 0 16px rgba(255,225,77,0.75);
}
/* The real game board (a picture captured from the game, 2026-10-28) */
.pub-feature-shot {
  display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 6%;
  box-shadow: 0 0 34px rgba(80, 120, 255, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.pub-feature-shot.pub-feature-tall { aspect-ratio: 660 / 900; border-radius: 4%; }
.pub-app-icon { display: block; width: 72px; height: 72px; border-radius: 22%; margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.pub-feature-title { text-align: left; margin-bottom: 10px; }
.pub-feature-text { color: var(--pub-muted); font-size: 16px; line-height: 1.65; margin: 0 0 14px; }
.pub-feature-list { color: var(--pub-soft-text); font-size: 15px; line-height: 1.8; margin: 0 0 16px; padding-left: 20px; }
.pub-feature-soon { font-size: 13px; font-weight: 700; color: var(--pg); letter-spacing: 0.04em; margin-bottom: 18px; }
.pub-feature-actions { justify-content: flex-start; }
.pub-contact-direct { text-align: center; color: var(--pub-muted); font-size: 15px; margin: -8px 0 24px; }
@media (max-width: 760px) {
  .pub-feature { grid-template-columns: 1fr; gap: 24px; }
  .pub-feature-art, .pub-feature-shot { max-width: 300px; margin: 0 auto; }
}
.pub-lineup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pub-game-tile {
  position: relative; aspect-ratio: 16 / 10; border-radius: 14px;
  background:
    repeating-linear-gradient(45deg, rgba(92,200,242,0.04) 0 12px, transparent 12px 24px),
    radial-gradient(circle at 50% 40%, rgba(92,200,242,0.10), var(--pub-tile-end));
  border: 1px dashed rgba(92, 200, 242, 0.28);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s;
}
.pub-game-tile:hover { border-color: rgba(92,200,242,0.55); box-shadow: inset 0 0 40px rgba(92,200,242,0.08); }
.pub-game-lock { font-size: 26px; opacity: 0.85; }
.pub-game-soon { font-size: 13px; font-weight: 700; color: var(--pg); letter-spacing: 0.04em; }
.pub-game-no { font-size: 11px; color: var(--pub-faint); letter-spacing: 0.2em; text-transform: uppercase; }
.pub-lineup-note { text-align: center; margin-top: 28px; color: var(--pub-muted); font-size: 15px; }

/* Contact form */
.pub-contact-form { max-width: 640px; margin: 0 auto; }
.pub-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pub-form-group { margin-bottom: 16px; }
.pub-label { display: block; font-size: 13px; font-weight: 600; color: var(--pub-soft-text); margin-bottom: 6px; }
.pub-input {
  width: 100%; background: var(--pub-input-bg); border: 1px solid rgba(92, 200, 242, 0.22);
  border-radius: 10px; padding: 12px 14px; font-size: 15px; color: var(--pub-heading);
  transition: border-color 0.15s, box-shadow 0.15s; box-sizing: border-box; font-family: inherit;
}
.pub-input::placeholder { color: var(--pub-faint); }
.pub-input:focus { outline: none; border-color: var(--pg); box-shadow: 0 0 0 3px rgba(92, 200, 242, 0.15); }
.pub-textarea { resize: vertical; min-height: 120px; }
.pub-c-status { display: none; margin-bottom: 16px; font-size: 14px; padding: 12px 14px; border-radius: 10px; }
.pub-c-ok { background: rgba(92,200,242,0.1); border: 1px solid rgba(92,200,242,0.35); color: var(--pub-soft-text); }
.pub-c-err { background: rgba(255,90,90,0.1); border: 1px solid rgba(255,90,90,0.35); color: var(--pub-err); }

/* Footer */
.pub-footer { border-top: 1px solid rgba(92, 200, 242, 0.14); padding: 36px 24px 56px; max-width: 1040px; margin: 40px auto 0; }
.pub-footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.pub-footer-logo { height: 40px; opacity: 0.95; }
.pub-footer-note { font-size: 11px; color: var(--pub-faint); font-style: italic; margin-top: 6px; }
.pub-legal { color: var(--pub-faint); font-size: 12px; line-height: 1.7; max-width: 820px; }
.pub-legal p { margin: 0 0 12px; }
.pub-legal-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--pub-faint); }

@media (max-width: 760px) {
  .pub-nav { padding: 10px 16px; }
  .pub-nav-links { gap: 14px; }
  .pub-nav-link { display: none; }
  .pub-cards, .pub-lineup, .pub-form-row { grid-template-columns: 1fr; }
}


/* Social links (pubtheme.js) */
.ion-social { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; }
.ion-social-lead { font-size: 13px; font-weight: 600; color: var(--pub-faint); margin-right: 2px; }
.ion-social-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; opacity: 0.85; border: 1px solid rgba(92, 200, 242, 0.25); }
.ion-social-link:hover, .ion-social-link:focus-visible { opacity: 1; border-color: rgba(92, 200, 242, 0.7); }
.pub-feature-actions + .ion-social, [data-social] .ion-social { margin-top: 16px; }
