/* Block Blast — Stained Night Design System + Full RTL Support */
.section { padding: 44px 0; position: relative; }
.section--alt {
  background: linear-gradient(180deg, rgba(10, 18, 36, 0.72) 0%, rgba(18, 31, 61, 0.56) 50%, rgba(5, 9, 20, 0.85) 100%);
  border-top: 1px solid rgba(200, 155, 60, 0.22);
  border-bottom: 1px solid rgba(200, 155, 60, 0.22);
}
.section-head { max-width: 780px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.42rem, 2.7vw, 2.05rem); margin-bottom: 10px; }
.section-head p { margin: 0; color: var(--text-muted); }

/* Astrolabe decorative ring in Hero */
.astro-halo {
  position: absolute; top: -48px; inset-inline-end: -48px; width: 220px; height: 220px;
  pointer-events: none; opacity: 0.24; z-index: 0;
  animation: astroSpin 42s linear infinite;
}
@keyframes astroSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .astro-halo, .hero-astro-svg, .hero-beacon-sweep, .hero-beacon-radius, .hero-beacon-flare, .hero-prism-core, .hero-cube { animation: none !important; }
  .hero-cube { transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Compact buttons, Lang Switcher & Mobile Drawer */
.btn-compact { min-height: 40px; padding: 8px 14px; font-size: 0.86rem; border-radius: 10px; white-space: nowrap; }

.lang-wrap { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(20, 34, 63, 0.92); color: var(--text-main);
  border: 1.5px solid rgba(200, 155, 60, 0.65); border-radius: 10px;
  padding: 5px 6px; font-weight: 700; font-size: 0.82rem; cursor: pointer; min-height: 34px;
}
.lang-code-label { display: none; }
@media (min-width: 480px) {
  .lang-trigger { gap: 6px; padding: 6px 9px; min-height: 40px; border-radius: 11px; }
  .lang-code-label { display: inline; }
}
.lang-trigger:hover { border-color: var(--gold-hi); }
.lang-flag-svg { width: 20px; height: 14px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,0.2); }

.lang-dropdown {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: 256px;
  background: #0B1429; border: 1.5px solid var(--gold); border-radius: 14px;
  padding: 10px; box-shadow: var(--shadow-deep); z-index: 120; display: none;
}
.lang-dropdown.open { display: block; }
.lang-search {
  width: 100%; padding: 8px 10px; margin-bottom: 8px;
  background: var(--bg-deep); color: var(--text-main);
  border: 1px solid rgba(200, 155, 60, 0.45); border-radius: 8px; font-size: 0.88rem;
}
.lang-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; display: grid; gap: 4px; }
.lang-option {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 8px; color: var(--text-main); font-size: 0.9rem; font-weight: 600;
}
.lang-option:hover, .lang-option[aria-current="true"] {
  background: rgba(37, 99, 235, 0.28); color: var(--gold-hi); text-decoration: none;
}
.lang-option-left { display: inline-flex; align-items: center; gap: 8px; }
.lang-code { font-size: 0.74rem; color: var(--text-muted); text-transform: uppercase; }

.hamburger-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(20, 34, 63, 0.92); border: 1.5px solid rgba(200, 155, 60, 0.65);
  color: var(--gold-hi); cursor: pointer; flex-shrink: 0;
}
@media (min-width: 480px) { .hamburger-btn { width: 40px; height: 40px; border-radius: 11px; } }
@media (min-width: 1024px) { .hamburger-btn { display: none; } }

.mobile-drawer {
  display: none; position: fixed; inset: 78px 0 0 0; z-index: 88;
  background: rgba(5, 9, 20, 0.98); padding: 18px 16px 96px; overflow-y: auto;
}
.mobile-drawer.open { display: block; }
.mobile-drawer nav { display: grid; gap: 10px; }
.mobile-drawer a {
  padding: 12px 14px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid rgba(200, 155, 60, 0.4);
  color: var(--text-main); font-weight: 700; display: flex; align-items: center; justify-content: space-between;
}

/* Soft Language Suggestion Banner */
.lang-suggest-banner {
  display: none; background: linear-gradient(90deg, #1E3A8A, #162544);
  border-bottom: 1px solid var(--gold); padding: 10px 0; font-size: 0.9rem;
}
.lang-suggest-banner.visible { display: block; }
.lang-suggest-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.lang-suggest-actions { display: flex; gap: 8px; }
.btn-ghost {
  background: transparent; color: var(--text-muted); border: 1px solid rgba(255,255,255,0.28);
  border-radius: 8px; padding: 6px 12px; cursor: pointer; font-weight: 600; font-size: 0.84rem;
}

/* Tables (Specs & Combo Multiplier Table) */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius-md);
  border: 1.5px solid rgba(200, 155, 60, 0.55); background: var(--bg-card);
  box-shadow: var(--shadow-deep);
}
.specs-table { width: 100%; border-collapse: collapse; min-width: 540px; }
.specs-table th, .specs-table td {
  padding: 13px 16px; text-align: start; border-bottom: 1px solid rgba(200, 155, 60, 0.2);
  vertical-align: top;
}
.specs-table th {
  background: rgba(20, 34, 63, 0.95); color: var(--gold-hi);
  font-family: var(--font-display); font-size: 0.95rem;
}
.specs-table tr:last-child td { border-bottom: none; }
.specs-table td:first-child { font-weight: 700; color: #E2ECFA; }
.specs-table--2col td:first-child { width: 30%; }
.specs-table td { color: var(--text-muted); }

/* Interactive 8x8 Combo Simulator */
.sim-shell {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  background: linear-gradient(160deg, rgba(20, 34, 63, 0.96), rgba(8, 14, 27, 0.98));
  border: 2px solid var(--gold); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-deep), var(--shadow-gold);
}
@media (min-width: 860px) { .sim-shell { grid-template-columns: 360px 1fr; padding: 26px; gap: 28px; } }

.sim-board-wrap { position: relative; max-width: 360px; margin: 0 auto; width: 100%; }
.sim-board {
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); gap: 3px;
  padding: 8px; border-radius: 14px;
  background: var(--frame-lead); border: 2.5px solid var(--gold);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.9);
  aspect-ratio: 1 / 1;
}
.sim-cell {
  position: relative; background: var(--cell-empty); border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer; overflow: hidden; padding: 0;
  aspect-ratio: 1 / 1; width: 100%; height: 100%; min-width: 0; min-height: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.sim-cell:hover { border-color: rgba(248, 223, 140, 0.55); }
.sim-cell img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.sim-cell.is-target {
  box-shadow: inset 0 0 0 2px var(--gold-hi), 0 0 10px rgba(248, 223, 140, 0.55);
  background: rgba(245, 158, 11, 0.22);
}
.sim-cell.is-prism::after {
  content: ""; position: absolute; inset: 2px; border-radius: 3px;
  border: 2px solid #FFFFFF;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.55), rgba(168, 85, 247, 0.55));
}
.sim-cell.is-flash {
  transform: scale(1.08);
  box-shadow: 0 0 16px var(--gold-hi), inset 0 0 12px #FFF;
  z-index: 2;
}
.sim-cell.is-lock::before {
  content: "2"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(8, 14, 27, 0.65); color: var(--gold-hi);
  font-weight: 900; font-size: 0.72rem; border: 1.5px solid #94A3B8;
}

.sim-hud { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.sim-stat {
  background: rgba(5, 9, 20, 0.75); border: 1.5px solid rgba(200, 155, 60, 0.45);
  border-radius: 12px; padding: 10px 12px; font-variant-numeric: tabular-nums;
}
.sim-stat small { display: block; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.sim-stat strong { font-size: 1.25rem; color: var(--gold-hi); }

.sim-banner {
  min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 10px; padding: 8px 12px; margin-bottom: 14px;
  background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.45);
  color: #E0F2FE; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.03em;
}
.sim-scenarios { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sim-preset-btn {
  padding: 9px 13px; border-radius: 10px; border: 1.5px solid rgba(200, 155, 60, 0.55);
  background: var(--bg-deep); color: var(--text-main); font-weight: 700; font-size: 0.85rem; cursor: pointer;
}
.sim-preset-btn.active { background: #1E3A8A; border-color: var(--gold-hi); color: var(--gold-hi); }
.sim-desc { color: var(--text-muted); margin: 0 0 14px; min-height: 46px; font-size: 0.95rem; }
.sim-action-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sim-formula { margin-top: 12px; font-size: 0.82rem; color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; direction: ltr; text-align: start; }

/* Cards & Grids */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .cards-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 820px) { .cards-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-card); border: 1.5px solid rgba(200, 155, 60, 0.48);
  border-radius: var(--radius-md); padding: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 10px;
}
.card-badge {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.03em;
  background: rgba(200, 155, 60, 0.16); color: var(--gold-hi); border: 1px solid rgba(200, 155, 60, 0.5);
}
.card h3 { font-size: 1.14rem; margin: 0; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }
.card-meta { margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.82rem; color: var(--cyan); font-weight: 600; }

.card-media { display: flex; align-items: center; gap: 12px; }
.card-icon-box {
  width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0;
  background: var(--frame-lead); border: 1.5px solid var(--gold);
  display: grid; place-items: center; padding: 6px;
}
.card-icon-box img { width: 100%; height: 100%; object-fit: contain; }

/* Editorial prose blocks */
.prose-card {
  background: var(--bg-card); border: 1.5px solid rgba(200, 155, 60, 0.45);
  border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 14px;
}
.prose-card p { margin: 0; color: #D7E3F5; }

/* Halls strip */
.halls-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 10px; margin-top: 20px; list-style: none; padding: 0;
}
.hall-pill {
  padding: 10px 14px; border-radius: 10px;
  background: rgba(11, 19, 38, 0.85); border: 1px solid rgba(200, 155, 60, 0.35);
  color: #E2ECFA; font-size: 0.88rem; font-weight: 600;
}

/* Mechanics Tabs */
.tabs-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab-btn {
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid rgba(200, 155, 60, 0.5);
  background: rgba(11, 19, 38, 0.88); color: var(--text-muted); font-weight: 700; cursor: pointer;
}
.tab-btn[aria-selected="true"] {
  background: linear-gradient(180deg, #2563EB, #1E3A8A); color: var(--gold-hi); border-color: var(--gold-hi);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.note-box {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.45);
  color: #D1FAE5; font-size: 0.92rem;
}

/* Contextual CTA Banner */
.inline-cta {
  margin-top: 24px; padding: 16px 20px; border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.55), rgba(20, 34, 63, 0.88));
  border: 1.5px solid var(--gold);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.inline-cta p { margin: 0; font-weight: 600; color: #F1F5F9; }

/* Screenshots Gallery & Lightbox */
.gallery-controls { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.gallery-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--gold) var(--bg-deep);
}
.shot-card {
  flex: 0 0 215px; scroll-snap-align: start;
  background: var(--bg-card); border: 1.5px solid rgba(200, 155, 60, 0.52);
  border-radius: 14px; padding: 10px; cursor: pointer; text-align: start; color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.shot-card:hover { transform: translateY(-3px); border-color: var(--gold-hi); }
.shot-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.shot-card strong { display: block; color: var(--gold-hi); font-size: 0.92rem; margin-bottom: 4px; }
.shot-card span { display: block; color: var(--text-muted); font-size: 0.8rem; line-height: 1.4; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(2, 6, 16, 0.94);
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 440px; width: 100%; text-align: center; }
.lightbox-inner img { max-height: 76vh; width: auto; margin: 0 auto 12px; border-radius: 14px; border: 2px solid var(--gold); }
.lightbox-caption { color: var(--text-muted); font-size: 0.92rem; }
.lightbox-close {
  position: absolute; top: -12px; inset-inline-end: -4px; width: 42px; height: 42px;
  border-radius: 999px; background: var(--bg-surface); border: 1.5px solid var(--gold);
  color: var(--gold-hi); font-weight: 800; font-size: 1.1rem; cursor: pointer;
}
.lightbox-nav { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }

/* FAQ Accordion (H3 inside PAA button) */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1.5px solid rgba(200, 155, 60, 0.45);
  border-radius: var(--radius-md); overflow: hidden;
}
.faq-heading { margin: 0; font-size: 1.04rem; }
.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; background: transparent; border: none; text-align: start;
  color: var(--gold-hi); font-family: var(--font-display); font-size: 1.04rem; font-weight: 700; cursor: pointer;
}
.faq-chevron { transition: transform 0.2s ease; flex-shrink: 0; }
.faq-btn[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-panel { padding: 0 18px 16px; color: var(--text-muted); display: none; }
.faq-panel.open { display: block; }
.faq-panel p { margin: 0; }

/* Boss cards & subpage helpers */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 14px 0 0; margin: 0; font-size: 0.86rem; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--gold); }
.boss-card { flex-direction: row; align-items: flex-start; gap: 14px; }
.boss-portrait { width: 82px; height: 82px; border-radius: 12px; border: 1.5px solid var(--gold); background: var(--frame-lead); object-fit: contain; flex-shrink: 0; }
.rich-list { display: grid; gap: 12px; padding-inline-start: 0; list-style: none; margin: 0; }
.rich-list li {
  background: var(--bg-card); border: 1px solid rgba(200, 155, 60, 0.36);
  border-radius: 12px; padding: 14px 16px; color: var(--text-muted);
}
.rich-list strong { color: var(--gold-hi); }

/* Footer & Sticky Mobile Bar */
.site-footer {
  background: #040711; border-top: 1.5px solid rgba(200, 155, 60, 0.35);
  padding: 36px 0 28px; color: var(--text-muted); font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-col h3 { font-size: 1rem; margin-bottom: 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--gold-hi); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 16px; font-size: 0.82rem; }

.mobile-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px;
  background: rgba(5, 9, 20, 0.96); border-top: 1.5px solid var(--gold);
  backdrop-filter: blur(10px);
}
.mobile-sticky-cta .btn-stained { min-height: 44px; padding: 8px 10px; font-size: 0.88rem; }
@media (min-width: 768px) { .mobile-sticky-cta { display: none; } }
