/* ============================================================
   shell.css — shared chrome + content styles
   Used by: game.html, about.html, donations.html
   (index.html and privacy.html keep their own inline styles.)
   Values mirror index.html so the new pages match the main site.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { width: 100%; background: #0d1b2a; font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif; color: #c8d6e0; overflow-x: hidden; }
a { color: #5a9fd4; text-decoration: none; transition: color 0.2s; }
a:hover { color: #8ac4f0; }

/* === NAV BAR === */
.site-nav { position: sticky; top: 0; z-index: 1000; background: #070d18; border-bottom: 1px solid #1a2a40; height: 56px; display: flex; align-items: center; padding: 0 20px; user-select: none; }
.nav-inner { max-width: 1200px; width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; text-decoration: none; }
.nav-logo-kite { width: 26px; height: 26px; position: relative; }
.nav-logo-kite::before { content: ''; position: absolute; width: 18px; height: 18px; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg); background: linear-gradient(135deg, #cc2200 0%, #cc2200 50%, #f0a030 50%, #f0a030 100%); border-radius: 2px; }
.nav-logo-kite::after { content: ''; position: absolute; bottom: -2px; left: 50%; width: 1px; height: 10px; background: linear-gradient(to bottom, #f0a030, transparent); transform: translateX(-50%); }
.nav-logo-text { font-family: 'Fraunces', Georgia, serif; font-size: 16px; font-weight: 700; color: #e8e0d4; letter-spacing: 0.5px; }
.nav-logo-text span { color: #f0a030; }
.nav-tabs { display: flex; align-items: center; height: 100%; gap: 0; }
.nav-tab { display: flex; align-items: center; height: 100%; padding: 0 20px; font-size: 14px; font-weight: 500; color: #7a9bb8; letter-spacing: 0.3px; cursor: pointer; position: relative; transition: color 0.2s; border: none; background: none; font-family: inherit; white-space: nowrap; text-decoration: none; }
.nav-tab:hover { color: #c8d6e0; }
.nav-tab.active { color: #e8e0d4; }
.nav-tab.active::after { content: ''; position: absolute; bottom: 0; left: 20px; right: 20px; height: 2px; background: #f0a030; border-radius: 1px 1px 0 0; }

/* === HAMBURGER === */
.nav-hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; width: 40px; height: 40px; cursor: pointer; border: none; background: none; padding: 0; gap: 5px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #7a9bb8; border-radius: 1px; transition: transform 0.3s, opacity 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer { display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0; background: rgba(7, 13, 24, 0.97); z-index: 999; flex-direction: column; padding: 20px; gap: 4px; }
.nav-drawer.open { display: flex; }
.nav-drawer-item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; font-size: 16px; font-weight: 500; color: #7a9bb8; cursor: pointer; border-radius: 10px; transition: background 0.2s, color 0.2s; border: none; background: none; font-family: inherit; width: 100%; text-align: left; text-decoration: none; }
.nav-drawer-item:hover { background: #111b2e; color: #c8d6e0; }
.nav-drawer-item.active { background: #111b2e; color: #e8e0d4; border-left: 3px solid #f0a030; }
.nav-drawer-item svg { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.7; }

/* === LANGUAGE SELECTOR === */
.nav-lang { position: relative; margin-right: 8px; }
.nav-lang-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 500; transition: all 0.2s; white-space: nowrap; }
.nav-lang-btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,200,50,0.5); }
.nav-lang-btn svg { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }
.nav-lang-btn .lang-label { letter-spacing: 0.3px; }
.nav-lang-dropdown { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; background: rgba(15,10,30,0.97); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 1100; }
.nav-lang-dropdown.open { display: block; animation: langSlide 0.2s ease-out; }
@keyframes langSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.nav-lang-dropdown-title { padding: 10px 14px 6px; font-size: 11px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-lang-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid rgba(255,255,255,0.04); }
.nav-lang-option:last-child { border-bottom: none; }
.nav-lang-option:hover { background: rgba(255,255,255,0.06); }
.nav-lang-option.active { background: rgba(255,200,50,0.1); }
.nav-lang-option.active .lang-native { color: #ffd54f; }
.nav-lang-option .lang-check { width: 18px; text-align: center; font-size: 14px; color: #ffd54f; }
.nav-lang-option .lang-native { font-size: 15px; color: #fff; flex: 1; }
.nav-lang-option .lang-english { font-size: 12px; color: rgba(255,255,255,0.4); }
.nav-lang-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1099; }
.nav-lang-overlay.open { display: block; }
@media (max-width: 700px) { .nav-tabs { display: none; } .nav-hamburger { display: flex; } .nav-lang .lang-label { display: none; } .nav-lang-btn { padding: 0; width: 40px; justify-content: center; } .nav-lang-dropdown { left: auto; right: -60px; } }

/* === CONTENT LAYOUT WITH SIDEBAR ADS === */
.content-layout { display: grid; grid-template-columns: 160px 1fr 160px; min-height: calc(100vh - 56px); }
.content-ad-left, .content-ad-right { display: flex; align-items: flex-start; justify-content: center; padding-top: 40px; position: sticky; top: 56px; height: calc(100vh - 56px); background: #0a1628; overflow: hidden; }
.content-ad-left { border-right: 1px solid #1a2a40; }
.content-ad-right { border-left: 1px solid #1a2a40; }
.content-ad-left .ad-fallback span, .content-ad-right .ad-fallback span { writing-mode: vertical-lr; }
@media (max-width: 960px) { .content-layout { grid-template-columns: 1fr; } .content-ad-left, .content-ad-right { display: none; } }
.ad-slot { display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.ad-slot ins { display: block; }
.ad-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; opacity: 0.06; user-select: none; pointer-events: none; }
.ad-fallback span { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #fff; writing-mode: vertical-lr; text-orientation: mixed; }

/* === PAGE CONTENT === */
.page-content { background: #0a0f1a; min-height: calc(100vh - 56px); }
.content-wrapper { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.content-section { padding: 64px 0; border-bottom: 1px solid #1a2a4020; }
.content-section:last-child { border-bottom: none; }
.section-eyebrow { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: #f0a030; font-weight: 600; margin-bottom: 16px; }
.section-title { font-family: 'Fraunces', Georgia, serif; font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: #e8e0d4; line-height: 1.2; margin-bottom: 24px; }
.section-subtitle { font-family: 'Fraunces', Georgia, serif; font-size: clamp(20px, 3vw, 28px); font-weight: 600; color: #d0c4b4; line-height: 1.3; margin-top: 40px; margin-bottom: 16px; }
.section-text { font-size: 16px; line-height: 1.75; color: #94a8b8; max-width: 720px; }
.section-text + .section-text { margin-top: 16px; }
.section-text a { color: #5a9fd4; text-decoration: underline; text-decoration-color: #5a9fd430; text-underline-offset: 3px; }
.section-text a:hover { text-decoration-color: #5a9fd4; }

/* === FOOTER === */
.site-footer { background: #060b14; border-top: 1px solid #1a2a4040; padding: 48px 24px 32px; }
.footer-inner { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.footer-brand h3 { font-family: 'Fraunces', Georgia, serif; font-size: 18px; color: #e8e0d4; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; color: #5a7a94; line-height: 1.6; max-width: 320px; }
.footer-links { display: flex; gap: 40px; }
.footer-col h4 { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #f0a030; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14px; color: #7a9bb8; text-decoration: none; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: #e8e0d4; }
.footer-bottom { max-width: 960px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid #1a2a4030; text-align: center; font-size: 12px; color: #3a5a74; }

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .content-section { padding: 48px 0; }
  .section-title { font-size: 26px; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 24px; }
}
