/* =============================================================================
   Brick Game 9999 Studio — Below-The-Fold Lazy-Loaded Showcase & Footer Stylesheet
   Loaded dynamically on first scroll / interaction to keep initial paint ultra-fast
   Single Studio Font Authority: Outfit
   ============================================================================= */

.aso-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  box-sizing: border-box;
}

.aso-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px;
}

.aso-tag {
  display: inline-block;
  font-family: var(--font-game-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #00d285;
  background: rgba(0, 210, 133, 0.12);
  border: 1px solid rgba(0, 210, 133, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.aso-title {
  font-family: var(--font-game-display);
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.35;
}

.aso-subtitle {
  font-size: clamp(14px, 1.8vw, 17px);
  color: #a0a2b0;
  line-height: 1.6;
  margin: 0;
}

.hl-gold { color: #ffd747; font-weight: 700; }
.hl-emerald { color: #00d285; font-weight: 700; }

/* =============================================================================
   ASO Modes Showcase Section (2-Column Rich Cards)
   ============================================================================= */
.aso-modes-showcase {
  margin-bottom: 80px;
}

.aso-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-game-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-emerald);
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-game-display);
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.35;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.modes-showcase-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mode-showcase-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mode-showcase-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 230, 118, 0.45);
  box-shadow: 0 12px 36px rgba(0, 230, 118, 0.15);
}

.mode-card-preview {
  position: relative;
  width: 320px;
  min-width: 320px;
  background: radial-gradient(circle at center, #0f3024 0%, #061811 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
}

.mode-status-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-game-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 230, 118, 0.35);
  text-transform: uppercase;
}

.mode-preview-img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.mode-showcase-card:hover .mode-preview-img {
  transform: scale(1.04);
}

.mode-card-content {
  flex: 1;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mode-card-header {
  margin-bottom: 14px;
}

.mode-badge {
  display: inline-block;
  font-family: var(--font-game-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.mode-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.mode-title {
  font-family: var(--font-game-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0;
}

.mode-subtitle {
  font-family: var(--font-game-body);
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.mode-desc {
  font-family: var(--font-game-body);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.mode-specs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.mode-spec-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 230, 118, 0.2);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.spec-icon {
  font-size: 14px;
}

.mode-callout-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mode-callout {
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 230, 118, 0.04);
  border: 1px solid rgba(0, 230, 118, 0.12);
}

.mode-callout-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-callout p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* =============================================================================
   Key Features Grid
   ============================================================================= */
.aso-features {
  margin-bottom: 80px;
}

.aso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.aso-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.aso-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 230, 118, 0.4);
}

.aso-card-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-emerald {
  background: rgba(0, 230, 118, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.icon-gold {
  background: rgba(255, 183, 3, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.35);
}

.icon-ruby {
  background: rgba(255, 42, 85, 0.12);
  color: var(--accent-ruby);
  border: 1px solid rgba(255, 42, 85, 0.35);
}

.icon-cyan {
  background: rgba(0, 210, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.35);
}

.aso-card-icon {
  font-size: 24px;
}

.aso-card h3 {
  font-family: var(--font-game-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.aso-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* =============================================================================
   How to Play Guide (4-Step Grid)
   ============================================================================= */
.aso-guide {
  margin-bottom: 80px;
}

.aso-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.aso-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 24px;
}

.aso-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.aso-step-badge {
  font-family: var(--font-game-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-gold);
}

.aso-step-num {
  font-family: var(--font-game-num);
  font-size: 22px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
}

.aso-step-card h4 {
  font-family: var(--font-game-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.aso-step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* =============================================================================
   Frequently Asked Questions (Interactive Accordion)
   ============================================================================= */
.aso-faq {
  margin-bottom: 80px;
}

.aso-faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aso-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.aso-faq-item[open] {
  border-color: rgba(0, 230, 118, 0.45);
}

.aso-faq-q {
  padding: 18px 24px;
  font-family: var(--font-game-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.4;
}

.aso-faq-q::-webkit-details-marker {
  display: none;
}

.aso-faq-q::after {
  content: "+";
  font-family: var(--font-game-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-emerald);
  transition: transform 0.2s ease;
}

.aso-faq-item[open] .aso-faq-q::after {
  content: "−";
}

.aso-faq-a {
  padding: 0 24px 20px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.aso-faq-a p {
  margin: 0;
}

/* =============================================================================
   Call to Action Banner
   ============================================================================= */
.cta-banner {
  text-align: center;
  background: radial-gradient(circle at center, rgba(0, 230, 118, 0.14) 0%, rgba(6, 24, 17, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 56px 32px;
  margin-bottom: 60px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.cta-title {
  font-family: var(--font-game-display);
  font-size: clamp(1.4rem, 2.5vw, 2.0rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.35;
}

.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

/* =============================================================================
   Web Portal Footer (3-Column Miravill Standard)
   ============================================================================= */
#web-portal-footer {
  width: 100%;
  background: #04120c;
  border-top: 1px solid var(--border-subtle);
  padding: 44px 32px;
  box-sizing: border-box;
  color: var(--text-secondary);
  font-family: var(--font-game-body);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-col {
  flex: 1;
}

.footer-col-left {
  text-align: left;
}

.footer-col-left h4 {
  font-family: var(--font-game-body);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.2px;
  margin: 0 0 14px 0;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li a {
  color: #9e9ea6;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}

.footer-links li a:hover {
  color: #ffffff;
}

.footer-col-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-brand-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  vertical-align: middle;
}

.footer-brand-title {
  font-family: var(--font-game-body);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #f0fdf4;
}

.footer-legal-row {
  font-size: 12px;
  color: #82828c;
  margin-bottom: 6px;
}

.footer-legal-row a {
  color: #9e9ea6;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-legal-row a:hover {
  color: #ffffff;
}

.footer-copyright {
  font-size: 12px;
  color: #686872;
}

.footer-version-tag {
  margin-top: 6px;
  font-family: var(--font-game-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #4f5365;
}

.footer-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.store-badge-status-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #a0a2b0;
  margin-top: 4px;
}

.store-badge-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
}

/* =============================================================================
   Responsive Layout Rules
   ============================================================================= */
@media (max-width: 960px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .mode-showcase-card {
    flex-direction: column;
  }
  .mode-card-preview {
    width: 100%;
    min-width: 100%;
    height: 240px;
    padding: 20px;
  }
  .mode-card-content {
    padding: 24px;
  }
  .mode-callout-boxes {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .footer-col-left {
    text-align: center;
  }
  .footer-col-right {
    align-items: center;
  }
  .header-notice-pill {
    display: none;
  }
}

@media (max-width: 580px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .retro-console-housing {
    padding: 16px 14px 22px;
  }
  .lcd-display-screen {
    grid-template-columns: 1fr 75px;
    gap: 8px;
    padding: 8px;
  }
  .btn-rotate-action {
    width: 62px;
    height: 62px;
  }
}
