/* ============================================================
   618crash.info — Design System
   Theme: Midnight Navy + Rocket Orange (Space/Aviation)
   Fonts: Space Grotesk (headings) + Noto Sans Myanmar (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Noto+Sans+Myanmar:wght@400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Noto Sans Myanmar', 'Space Grotesk', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #e2e8f4;
  background: #070b1f;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Noto Sans Myanmar', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  overflow-wrap: anywhere;
}

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  /* Colors — Midnight Navy */
  --navy-900: #070b1f;
  --navy-800: #0c1130;
  --navy-700: #111740;
  --navy-600: #171e52;
  --navy-500: #1e2664;
  --navy-400: #273078;
  --navy-300: #3a4a9a;

  /* Colors — Rocket Orange */
  --orange-500: #ff6b2b;
  --orange-400: #ff8f5e;
  --orange-300: #ffaa88;
  --orange-600: #e85a1a;
  --orange-700: #c44a14;

  /* Accent */
  --sky-400: #4fc3f7;
  --sky-500: #29b6f6;
  --gold-400: #ffd54f;
  --gold-500: #ffca28;
  --success: #66bb6a;
  --warning: #ffa726;
  --danger: #ef5350;

  /* Neutrals */
  --white: #ffffff;
  --light: #f0f4ff;
  --muted: #8a96b8;
  --dim: #5a6488;

  /* Surfaces */
  --surface-1: #111740;
  --surface-2: #171e52;
  --surface-3: #1e2664;
  --surface-border: rgba(79, 195, 247, 0.12);
  --surface-border-hover: rgba(79, 195, 247, 0.28);

  /* Typography Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-md:   1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing Scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-pill: 9999px;

  /* Layout */
  --container-max: 1120px;
  --header-height: 64px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ── Focus & Accessibility ───────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--sky-400);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--orange-500);
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}
@media (min-width: 768px) {
  .container { padding-left: var(--space-6); padding-right: var(--space-6); }
}

/* ── Site Header ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 31, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  height: var(--header-height);
}
.site-header .container {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: var(--space-4);
}

/* ── Brand ────────────────────────────────────────────────── */
.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.brand::before {
  content: '▲';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: 1;
}
.brand:hover { color: var(--orange-400); }
.brand:focus-visible { outline-color: var(--orange-400); }

/* ── Site Nav ─────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}
.site-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-nav a:hover { color: var(--light); background: var(--surface-3); }
.site-nav a:focus-visible { outline-color: var(--sky-400); }
.site-nav a[aria-current="page"] {
  color: var(--orange-400);
  background: rgba(255, 107, 43, 0.1);
}

/* ── Nav Toggle (Hamburger) ───────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--surface-border);
  color: var(--light);
  cursor: pointer;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--surface-3); color: var(--white); }
.nav-toggle::before {
  content: '';
  display: block;
  width: 20px;
  height: 14px;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle::before,
.nav-toggle::before::before,
.nav-toggle::before::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.nav-toggle::before { top: 3px; }
.nav-toggle::before::before { top: -6px; }
.nav-toggle::before::after { top: 6px; }
.nav-toggle[aria-expanded="true"]::before {
  background: transparent;
}
.nav-toggle[aria-expanded="true"]::before::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle[aria-expanded="true"]::before::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ── Lang Switch ──────────────────────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}
.lang-switch a {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.lang-switch a:hover { color: var(--light); border-color: var(--surface-border); }
.lang-switch a.active {
  color: var(--orange-400);
  border-color: var(--orange-500);
  background: rgba(255, 107, 43, 0.08);
}

/* ── Mobile Nav (≤860px) ──────────────────────────────────── */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(7, 11, 31, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--surface-border);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-2);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
  }
  .site-header.nav-open .site-nav {
    max-height: 400px;
    padding: var(--space-2);
  }
  .site-nav a {
    justify-content: flex-start;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-md);
  }
  .lang-switch {
    padding: var(--space-2) var(--space-4) var(--space-3);
    justify-content: flex-start;
  }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: var(--space-16) var(--space-4) var(--space-12);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 107, 43, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(79, 195, 247, 0.06) 0%, transparent 50%),
    var(--navy-900);
}
.hero h1 {
  font-size: clamp(var(--text-3xl), 6vw, var(--text-6xl));
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-4);
  line-height: 1.1;
}
.hero h1 .accent { color: var(--orange-400); }
.hero .lead {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--sky-400);
  background: rgba(79, 195, 247, 0.08);
  border: 1px solid rgba(79, 195, 247, 0.2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-6);
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ── Game Section ─────────────────────────────────────────── */
.game-section {
  padding: var(--space-12) var(--space-4);
  background:
    radial-gradient(ellipse 60% 50% at 20% 100%, rgba(255, 107, 43, 0.06) 0%, transparent 50%),
    var(--navy-800);
}
#game-root {
  width: 100%;
  min-height: 420px;
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}
#game-root::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ── Breadcrumbs ──────────────────────────────────────────── */
.breadcrumbs {
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--dim);
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.breadcrumbs a:hover { color: var(--orange-400); }
.breadcrumbs + .content { padding-top: 0; }

/* ── Content (Article Typography) ─────────────────────────── */
.content {
  padding: var(--space-8) var(--space-4);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.content h2 {
  font-size: var(--text-3xl);
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--surface-border);
}
.content h3 {
  font-size: var(--text-2xl);
  margin: var(--space-8) 0 var(--space-3);
  color: var(--orange-400);
}
.content h4 {
  font-size: var(--text-xl);
  margin: var(--space-6) 0 var(--space-2);
}
.content p {
  margin: 0 0 var(--space-5);
  color: var(--light);
}
.content p.lead {
  font-size: var(--text-lg);
  color: var(--muted);
}
.content ul, .content ol {
  margin: 0 0 var(--space-5);
  padding-left: var(--space-6);
}
.content li {
  margin-bottom: var(--space-2);
  color: var(--light);
}
.content li::marker { color: var(--orange-400); }
.content strong { color: var(--white); font-weight: 600; }
.content a {
  color: var(--sky-400);
  text-decoration: underline;
  text-decoration-color: rgba(79, 195, 247, 0.3);
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}
.content a:hover {
  color: var(--sky-500);
  text-decoration-color: var(--sky-400);
}
.content blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-5);
  background: var(--surface-2);
  border-left: 3px solid var(--orange-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-style: italic;
}
.content hr {
  border: none;
  height: 1px;
  background: var(--surface-border);
  margin: var(--space-8) 0;
}

/* ── Table Wrap & Tables ──────────────────────────────────── */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: var(--space-6) 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
}
.table-wrap table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.table-wrap th,
.table-wrap td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--surface-border);
}
.table-wrap th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--surface-2);
}
.table-wrap td { color: var(--light); }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:hover td { background: rgba(79, 195, 247, 0.04); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq {
  padding: var(--space-8) var(--space-4);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.faq h2 {
  font-size: var(--text-3xl);
  margin: 0 0 var(--space-8);
  text-align: center;
}
.faq details {
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.faq details:hover { border-color: var(--surface-border-hover); }
.faq details[open] { border-color: var(--orange-500); }
.faq summary {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--light);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 44px;
  transition: color var(--transition-fast);
}
.faq summary:hover { color: var(--orange-400); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--orange-500);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--transition-base);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details[open] summary {
  color: var(--orange-400);
  border-bottom: 1px solid var(--surface-border);
}
.faq details > :not(summary) {
  padding: var(--space-4) var(--space-5);
  color: var(--muted);
  line-height: 1.7;
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta {
  margin: var(--space-8) var(--space-4);
  padding: var(--space-8) var(--space-6);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(255, 107, 43, 0.15) 0%, transparent 60%),
    var(--surface-2);
  border: 1px solid rgba(255, 107, 43, 0.25);
  border-radius: var(--radius-xl);
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.cta h2 {
  font-size: var(--text-3xl);
  margin: 0 0 var(--space-3);
}
.cta p {
  color: var(--muted);
  margin: 0 0 var(--space-6);
  font-size: var(--text-lg);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-md);
  font-weight: 600;
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
  min-width: 48px;
  transition: all var(--transition-fast);
}
.btn {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white);
  border-color: var(--orange-500);
  box-shadow: 0 4px 16px rgba(255, 107, 43, 0.3);
}
.btn:hover {
  background: linear-gradient(135deg, var(--orange-400), var(--orange-500));
  border-color: var(--orange-400);
  box-shadow: 0 6px 24px rgba(255, 107, 43, 0.4);
  transform: translateY(-1px);
  color: var(--white);
}
.btn:active { transform: translateY(0); }
.btn-secondary {
  background: transparent;
  color: var(--sky-400);
  border-color: var(--sky-400);
}
.btn-secondary:hover {
  background: rgba(79, 195, 247, 0.08);
  color: var(--sky-500);
  border-color: var(--sky-500);
  transform: translateY(-1px);
}

/* ── Card Grid ────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  padding: var(--space-8) var(--space-4);
  max-width: var(--container-max);
  margin: 0 auto;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 160px;
}
.card:hover {
  border-color: var(--orange-500);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255, 107, 43, 0.12);
  color: inherit;
}
.card:focus-visible {
  outline-color: var(--orange-400);
  transform: none;
}
.card h3 {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-2);
  color: var(--white);
  line-height: 1.3;
}
.card p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  flex: 1;
}
.card .card-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--orange-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

/* ── Notice ───────────────────────────────────────────────── */
.notice {
  margin: var(--space-8) var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: rgba(255, 167, 38, 0.06);
  border: 1px solid rgba(255, 167, 38, 0.2);
  border-radius: var(--radius-md);
  color: var(--warning);
  font-size: var(--text-sm);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.notice strong { color: var(--gold-400); }

/* ── Site Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--navy-800);
  border-top: 1px solid var(--surface-border);
  padding: var(--space-12) var(--space-4) var(--space-6);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
}
.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 var(--space-3);
}
.footer-brand::before {
  content: '▲';
  margin-right: var(--space-2);
  color: var(--orange-500);
}
.footer-desc {
  font-size: var(--text-sm);
  color: var(--dim);
  line-height: 1.7;
  max-width: 320px;
  margin: 0 0 var(--space-4);
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-links li { margin: 0; }
.footer-links a {
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
  padding: var(--space-1) 0;
  display: inline-block;
  transition: color var(--transition-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-links a:hover { color: var(--orange-400); }
.footer-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--light);
  margin: 0 0 var(--space-4);
}
.footer-bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--dim);
  margin: 0;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* ── Footer Responsive ────────────────────────────────────── */
@media (max-width: 640px) {
  .site-footer .container {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero { animation: none; }
  .badge::before { animation: none; opacity: 1; }
}

/* ── Utility ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* game polish */
#game-root button{min-height:44px;min-width:44px;touch-action:manipulation}
#game-root{overflow:hidden;max-width:100%}
/* header polish (QA): brand + language switch + hamburger must fit 320px */
.site-header .container{min-width:0}
@media (max-width:860px){
 .site-header .container{display:flex;align-items:center;flex-wrap:nowrap;gap:8px}
 .site-header .brand{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .site-header .lang-switch{flex:0 0 auto;display:flex;gap:4px;margin:0}
 .site-header .lang-switch a{padding:6px 8px;font-size:12px;line-height:1.2;min-height:32px;display:inline-flex;align-items:center}
 .site-header .nav-toggle{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin-left:0}
}
@media (max-width:480px){ .site-header .brand small{display:none} }
.site-footer .footer-links a,.site-footer a{display:inline-flex;align-items:center;min-height:40px}
.site-header .brand{min-height:44px;display:inline-flex;align-items:center}
.footer-links{list-style:none;padding:0;margin:0}
.hero{padding-left:clamp(16px,4vw,32px);padding-right:clamp(16px,4vw,32px)}
html,body{overflow-x:clip}
/* Myanmar script: KAT fonts may lack it (font linked in <head>) */
html[lang=my] body,html[lang=my] h1,html[lang=my] h2,html[lang=my] h3,html[lang=my] .brand,html[lang=my] button,html[lang=my] .btn,.lang-switch a[lang=my]{font-family:'Noto Sans Myanmar','Myanmar Text','Padauk',sans-serif}
html[lang=my] body{line-height:1.8}
