/* =============================================================================
   Dice Roller 3D Studio — Below-The-Fold Lazy-Loaded Showcase & Footer Stylesheet
   Consistent 2-Font Separation:
     1. TITLE FONT: Cinzel (var(--font-game-title))
     2. BODY FONT:  Outfit (var(--font-game-body))
   ============================================================================= */

/* --- Miravill Web Portal Footer --- */
#web-portal-footer {
  width: 100%;
  background: #18110a;
  border-top: 1px solid rgba(255, 215, 0, 0.12);
  padding: 44px 32px;
  box-sizing: border-box;
  color: #c4beaf;
  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;
}

/* Left Column */
.footer-col-left {
  text-align: left;
}

.footer-col-left h4 {
  font-family: var(--font-game-title);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.5px;
  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;
}

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

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

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

.dice-brand-text {
  font-family: var(--font-game-title);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #f0f0f5;
}

.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-dot {
  margin: 0 6px;
  color: #55555e;
}

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

.footer-version-tag {
  margin-top: 6px;
  font-family: var(--font-game-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #6d7285;
}

/* Right Column: Store Badges */
.footer-col-right {
  display: flex;
  justify-content: flex-end;
}

.store-badge-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* =============================================================================
   ASO & Landing Page Content Section
   ============================================================================= */
.aso-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  box-sizing: border-box;
}

/* Hero Section */
.aso-hero {
  text-align: center;
  margin-bottom: 64px;
}

.aso-tag {
  display: inline-block;
  font-family: var(--font-game-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dice-gold);
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.25);
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.aso-title {
  font-family: var(--font-game-title);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin: 0 0 16px 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.aso-subtitle {
  font-family: var(--font-game-body);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 400;
  color: #b0b4c8;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}

.hl-gold { color: var(--dice-gold); font-weight: 700; }
.hl-blue { color: var(--dice-blue); font-weight: 700; }
.hl-green { color: var(--dice-green); font-weight: 700; }
.hl-red { color: var(--dice-red); font-weight: 700; }
.hl-orange { color: var(--dice-orange); font-weight: 700; }

.aso-section-title {
  font-family: var(--font-game-title);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #ffffff;
  text-align: center;
  margin: 0 0 12px 0;
}

.aso-section-intro {
  font-family: var(--font-game-body);
  text-align: center;
  color: #9da1b5;
  font-size: 16px;
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto 48px auto;
  line-height: 1.55;
}

/* =============================================================================
   Game Modes Showcase
   ============================================================================= */
.aso-modes-showcase {
  margin-bottom: 80px;
}

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

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

.mode-showcase-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.mode-card-preview {
  position: relative;
  width: 320px;
  min-width: 320px;
  background: #1c140c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
}

.mode-preview-img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}

.mode-status-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: var(--font-game-title);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 215, 0, 0.16);
  color: var(--dice-gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.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-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dice-gold);
  margin-bottom: 6px;
}

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

.mode-title {
  font-family: var(--font-game-title);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  margin: 0;
}

.mode-subtitle {
  font-family: var(--font-game-title);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #cbb896;
}

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

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

.mode-spec-pill {
  font-size: 12px;
  font-weight: 600;
  color: #cfd2e3;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

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

.mode-callout {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid var(--dice-border-subtle);
}

.mode-callout-title {
  font-family: var(--font-game-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-callout p {
  font-family: var(--font-game-body);
  font-size: 13px;
  font-weight: 400;
  color: #a0a2b0;
  line-height: 1.5;
  margin: 0;
}

/* Card Themes */
.mode-card-standard .mode-status-tag { background: rgba(255, 215, 0, 0.16); color: var(--dice-gold); border-color: rgba(255, 215, 0, 0.35); }
.mode-card-baucua .mode-status-tag { background: rgba(230, 57, 70, 0.16); color: #ff6b7a; border-color: rgba(230, 57, 70, 0.35); }
.mode-card-tray .mode-status-tag { background: rgba(0, 136, 255, 0.16); color: #66b5ff; border-color: rgba(0, 136, 255, 0.35); }

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

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

.aso-card {
  background: var(--dice-surface-card);
  border: 1px solid var(--dice-border-subtle);
  border-radius: 20px;
  padding: 30px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.aso-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

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

.icon-gold { background: rgba(255, 215, 0, 0.12); color: var(--dice-gold); }
.icon-red { background: rgba(230, 57, 70, 0.12); color: var(--dice-red); }
.icon-blue { background: rgba(0, 136, 255, 0.12); color: var(--dice-blue); }
.icon-green { background: rgba(16, 185, 129, 0.12); color: var(--dice-green); }

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

.aso-card h3 {
  font-family: var(--font-game-title);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.aso-card p {
  font-family: var(--font-game-body);
  font-size: 14px;
  font-weight: 400;
  color: #9da1b5;
  line-height: 1.55;
  margin: 0;
}

/* =============================================================================
   Rules & Guides Section
   ============================================================================= */
.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(--dice-surface-card);
  border: 1px solid var(--dice-border-subtle);
  border-radius: 18px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

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

.aso-step-badge {
  font-family: var(--font-game-title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dice-gold);
}

.aso-step-num {
  font-family: var(--font-game-title);
  font-size: 32px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
}

.aso-step-card h4 {
  font-family: var(--font-game-title);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.aso-step-card p {
  font-family: var(--font-game-body);
  font-size: 13px;
  font-weight: 400;
  color: #9da1b5;
  line-height: 1.55;
  margin: 0;
}

/* =============================================================================
   FAQ Accordion Section
   ============================================================================= */
.aso-faq {
  margin-bottom: 40px;
}

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

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

.aso-faq-item[open] {
  border-color: rgba(255, 215, 0, 0.3);
}

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

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

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

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

.aso-faq-a {
  padding: 0 22px 18px 22px;
  font-family: var(--font-game-body);
  font-size: 14px;
  font-weight: 400;
  color: #a0a2b5;
  line-height: 1.6;
}

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

/* =============================================================================
   Responsive Design
   ============================================================================= */
@media (max-width: 900px) {
  .mode-showcase-card {
    flex-direction: column;
  }
  .mode-card-preview {
    width: 100%;
    min-width: unset;
    padding: 30px;
  }
  .mode-card-content {
    padding: 28px 24px;
  }
  .mode-callout-boxes {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .footer-col-left, .footer-col-right {
    text-align: center;
    justify-content: center;
  }
  .store-badge-container {
    align-items: center;
  }
}
