/* =============================================================================
   Rubik 3D Studio — Below-The-Fold Lazy-Loaded Showcase & Footer Stylesheet
   Loaded dynamically on first scroll / interaction to keep initial paint ultra-fast
   ============================================================================= */

/* --- Miravill Web Portal Footer --- */
#web-portal-footer {
  width: 100%;
  background: #101014;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 32px;
  box-sizing: border-box;
  color: #a0a0a8;
  font-family: var(--font-game-body);
}

.footer-container {
  max-width: 1200px;
  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-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.6px;
  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;
}

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

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

.rubik-brand-text,
.miravill-brand-text {
  font-size: 16px;
  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-copyright-text strong {
  color: #a0a0a8;
}

.footer-version-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #72727c;
}

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

.store-badge-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.store-badge-link {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
  border-radius: 6px;
}

.store-badge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.store-badge-disabled {
  opacity: 0.38;
  filter: grayscale(80%);
  cursor: not-allowed;
  user-select: none;
}

.store-badge-disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

.store-badge-link img {
  display: block;
  width: 135px;
  height: 40px;
}

/* Responsive Stacking */
@media (max-width: 820px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }
  .footer-col-left {
    text-align: center;
  }
  .footer-col-right {
    justify-content: center;
  }
  .store-badge-container {
    justify-content: center;
  }
}


/* =============================================================================
   ASO & Game Showcase Landing Content
   Strictly utilizes the game's body font (Outfit) & number font (Rajdhani)
   Vibrantly styled in the official 6 Rubik face colors (WCA BOY Palette)
   ============================================================================= */
.aso-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 68px 24px 56px 24px;
  box-sizing: border-box;
  font-family: var(--font-game-body);
  color: #e0e0ea;
}

/* Color Highlight Utility Classes */
.hl-gold   { color: var(--rubik-gold); font-weight: 700; }
.hl-yellow { color: var(--rubik-yellow); font-weight: 700; }
.hl-orange { color: var(--rubik-orange); font-weight: 700; }
.hl-green  { color: var(--rubik-green); font-weight: 700; }
.hl-blue   { color: var(--rubik-blue); font-weight: 700; }
.hl-red    { color: var(--rubik-red); font-weight: 700; }

.aso-hero {
  text-align: center;
  margin-bottom: 64px;
}

.aso-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--rubik-gold);
  background: rgba(255, 215, 71, 0.08);
  border: 1.5px solid rgba(255, 215, 71, 0.4);
  padding: 6px 18px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 0 16px rgba(255, 215, 71, 0.2);
}

.aso-title {
  font-size: var(--font-game-hero);
  font-weight: 900;
  letter-spacing: 0.5px;
  margin: 0 0 18px 0;
  line-height: 1.22;
  background: linear-gradient(135deg, #ffffff 0%, #ffe600 55%, #ff9900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(255, 215, 71, 0.2));
}

.aso-subtitle {
  font-size: var(--font-game-subtitle);
  line-height: 1.7;
  color: #c0c0d4;
  max-width: 860px;
  margin: 0 auto;
}

.aso-section-title {
  font-size: var(--font-game-title);
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin: 0 0 40px 0;
  letter-spacing: 0.6px;
  position: relative;
  padding-bottom: 16px;
}

.aso-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--rubik-orange) 0%, var(--rubik-yellow) 33%, var(--rubik-green) 66%, var(--rubik-blue) 100%);
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.4);
}

/* =============================================================================
   Game Modes Showcase Section
   Exhibits the 3 official playable modes: Standard 3x3, Penrose, Sudoku Cube
   Strictly follows existing dark sapphire cards, Outfit typography, and Rubik colors
   ============================================================================= */
.aso-modes-showcase {
  margin-bottom: 84px;
}

.aso-section-intro {
  text-align: center;
  font-size: calc(var(--font-game-min) * 1.05);
  line-height: 1.65;
  color: #a4a4ba;
  max-width: 780px;
  margin: -24px auto 44px auto;
}

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

.mode-showcase-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  background: linear-gradient(180deg, #161826 0%, #0e0f18 100%);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.mode-showcase-card:hover {
  transform: translateY(-4px);
}

/* Card Preview Visual Frame */
.mode-card-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0%, rgba(6, 7, 12, 0.95) 100%);
  overflow: hidden;
}

.mode-preview-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.75));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}

.mode-showcase-card:hover .mode-preview-img {
  transform: scale(1.05) rotate(1deg);
}

.mode-status-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: var(--font-game-body);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
}

/* Card Content Details */
.mode-card-content {
  padding: 32px 36px 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.mode-badge {
  display: inline-block;
  font-family: var(--font-game-body);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 12px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

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

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

.mode-subtitle {
  font-size: var(--font-game-subtitle);
  font-weight: 600;
  color: #8c8ca0;
}

.mode-desc {
  font-size: var(--font-game-min);
  line-height: 1.65;
  color: #b8b8cc;
  margin: 0 0 20px 0;
}

/* Mode Specs Chips Grid */
.mode-specs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

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

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

/* Callout Boxes (Rules & Parity) */
.mode-callout-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mode-callout {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.55;
}

.mode-callout-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-callout p {
  margin: 0;
  color: #b0b0c4;
}

/* Color Theming: Standard (Tournament Gold / Amber) */
.mode-card-standard {
  border: 1.5px solid rgba(255, 215, 0, 0.35);
}
.mode-card-standard:hover {
  border-color: rgba(255, 215, 0, 0.75);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 28px rgba(255, 215, 0, 0.18);
}
.mode-card-standard .mode-card-preview {
  border-right: 1px solid rgba(255, 215, 0, 0.15);
}
.mode-card-standard .mode-status-tag {
  background: rgba(255, 215, 0, 0.18);
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: #ffe047;
}
.mode-card-standard .mode-badge {
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd747;
}
.mode-card-standard .mode-callout-rules {
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.2);
}
.mode-card-standard .mode-callout-rules .mode-callout-title {
  color: #ffd747;
}
.mode-card-standard .mode-callout-special {
  background: rgba(255, 107, 0, 0.06);
  border: 1px solid rgba(255, 107, 0, 0.2);
}
.mode-card-standard .mode-callout-special .mode-callout-title {
  color: #ff944d;
}

/* Color Theming: Penrose (Emerald / Orange Shape-Mod) */
.mode-card-penrose {
  border: 1.5px solid rgba(0, 209, 61, 0.35);
}
.mode-card-penrose:hover {
  border-color: rgba(0, 209, 61, 0.75);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 28px rgba(0, 209, 61, 0.18);
}
.mode-card-penrose .mode-card-preview {
  border-right: 1px solid rgba(0, 209, 61, 0.15);
}
.mode-card-penrose .mode-status-tag {
  background: rgba(0, 209, 61, 0.18);
  border: 1px solid rgba(0, 209, 61, 0.45);
  color: #39e873;
}
.mode-card-penrose .mode-badge {
  background: rgba(0, 209, 61, 0.12);
  border: 1px solid rgba(0, 209, 61, 0.35);
  color: #00e676;
}
.mode-card-penrose .mode-callout-rules {
  background: rgba(0, 209, 61, 0.06);
  border: 1px solid rgba(0, 209, 61, 0.2);
}
.mode-card-penrose .mode-callout-rules .mode-callout-title {
  color: #39e873;
}
.mode-card-penrose .mode-callout-special {
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.28);
}
.mode-card-penrose .mode-callout-special .mode-callout-title {
  color: #ffca28;
}

/* Color Theming: Sudoku (Sapphire Blue / Diamond White) */
.mode-card-sudoku {
  border: 1.5px solid rgba(0, 107, 250, 0.35);
}
.mode-card-sudoku:hover {
  border-color: rgba(0, 107, 250, 0.75);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 28px rgba(0, 107, 250, 0.18);
}
.mode-card-sudoku .mode-card-preview {
  border-right: 1px solid rgba(0, 107, 250, 0.15);
}
.mode-card-sudoku .mode-status-tag {
  background: rgba(0, 107, 250, 0.18);
  border: 1px solid rgba(0, 107, 250, 0.45);
  color: #60a5fa;
}
.mode-card-sudoku .mode-badge {
  background: rgba(0, 107, 250, 0.12);
  border: 1px solid rgba(0, 107, 250, 0.35);
  color: #549dff;
}
.mode-card-sudoku .mode-callout-rules {
  background: rgba(0, 107, 250, 0.06);
  border: 1px solid rgba(0, 107, 250, 0.2);
}
.mode-card-sudoku .mode-callout-rules .mode-callout-title {
  color: #60a5fa;
}
.mode-card-sudoku .mode-callout-special {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.mode-card-sudoku .mode-callout-special .mode-callout-title {
  color: #cbd5e1;
}

/* Responsive Stacking for Showcase Cards */
@media (max-width: 900px) {
  .mode-showcase-card {
    grid-template-columns: 1fr;
  }
  .mode-card-preview {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px 20px;
  }
  .mode-card-content {
    padding: 28px 24px;
  }
  .mode-callout-boxes {
    grid-template-columns: 1fr;
  }
}

/* Features Grid */
.aso-features {
  margin-bottom: 72px;
}

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

.aso-card {
  background: linear-gradient(180deg, #181826 0%, #101018 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 22px;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.aso-card-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.25s ease;
}

.aso-card:hover .aso-card-icon-wrapper {
  transform: scale(1.08);
}

.aso-card-icon {
  font-size: 30px;
  line-height: 1;
}

.aso-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px 0;
  letter-spacing: 0.3px;
}

.aso-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #a4a4b8;
  margin: 0;
}

/* Feature Card Themes - Official 6 Rubik Colors with Normal Uniform Border */
.aso-card-orange {
  border: 1px solid rgba(255, 107, 0, 0.35);
}
.aso-card-orange .icon-orange {
  background: radial-gradient(circle, rgba(255, 107, 0, 0.24) 0%, rgba(255, 107, 0, 0.06) 100%);
  border: 1.5px solid rgba(255, 107, 0, 0.5);
  box-shadow: 0 0 18px rgba(255, 107, 0, 0.25);
}
.aso-card-orange h3 {
  color: #ff944d;
}
.aso-card-orange:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 0, 0.8);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 0, 0.2);
}

.aso-card-green {
  border: 1px solid rgba(0, 209, 61, 0.35);
}
.aso-card-green .icon-green {
  background: radial-gradient(circle, rgba(0, 209, 61, 0.24) 0%, rgba(0, 209, 61, 0.06) 100%);
  border: 1.5px solid rgba(0, 209, 61, 0.5);
  box-shadow: 0 0 18px rgba(0, 209, 61, 0.25);
}
.aso-card-green h3 {
  color: #39e873;
}
.aso-card-green:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 209, 61, 0.8);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 209, 61, 0.2);
}

.aso-card-blue {
  border: 1px solid rgba(0, 107, 250, 0.35);
}
.aso-card-blue .icon-blue {
  background: radial-gradient(circle, rgba(0, 107, 250, 0.24) 0%, rgba(0, 107, 250, 0.06) 100%);
  border: 1.5px solid rgba(0, 107, 250, 0.5);
  box-shadow: 0 0 18px rgba(0, 107, 250, 0.25);
}
.aso-card-blue h3 {
  color: #549dff;
}
.aso-card-blue:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 107, 250, 0.8);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 107, 250, 0.2);
}

.aso-card-yellow {
  border: 1px solid rgba(255, 230, 0, 0.35);
}
.aso-card-yellow .icon-yellow {
  background: radial-gradient(circle, rgba(255, 230, 0, 0.24) 0%, rgba(255, 230, 0, 0.06) 100%);
  border: 1.5px solid rgba(255, 230, 0, 0.5);
  box-shadow: 0 0 18px rgba(255, 230, 0, 0.25);
}
.aso-card-yellow h3 {
  color: var(--rubik-yellow);
}
.aso-card-yellow:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 230, 0, 0.8);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 230, 0, 0.2);
}

/* How to Solve Guide (CFOP Method) */
.aso-guide {
  margin-bottom: 72px;
}

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

.aso-step-card {
  background: #141420;
  border-radius: 16px;
  padding: 24px 20px;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.aso-step-badge {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 3px 10px;
  border-radius: 8px;
  text-transform: uppercase;
}

.aso-step-num {
  font-size: 32px;
  font-weight: 800;
  display: block;
  font-family: var(--font-game-num);
  line-height: 1;
}

.aso-step-card h4 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 10px 0;
  letter-spacing: 0.2px;
}

.aso-step-card p {
  font-size: 13px;
  line-height: 1.55;
  color: #a0a0b2;
  margin: 0;
}

/* CFOP Step Card Themes - Normal Uniform Border */
.aso-step-white {
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.aso-step-white .aso-step-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.aso-step-white .aso-step-num {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
}
.aso-step-white h4 {
  color: #ffffff;
}
.aso-step-white:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.15);
}

.aso-step-green {
  border: 1px solid rgba(0, 209, 61, 0.35);
}
.aso-step-green .aso-step-badge {
  background: rgba(0, 209, 61, 0.12);
  color: var(--rubik-green);
  border: 1px solid rgba(0, 209, 61, 0.35);
}
.aso-step-green .aso-step-num {
  color: var(--rubik-green);
  text-shadow: 0 0 16px rgba(0, 209, 61, 0.45);
}
.aso-step-green h4 {
  color: #39e873;
}
.aso-step-green:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 209, 61, 0.8);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 209, 61, 0.15);
}

.aso-step-yellow {
  border: 1px solid rgba(255, 230, 0, 0.35);
}
.aso-step-yellow .aso-step-badge {
  background: rgba(255, 230, 0, 0.12);
  color: var(--rubik-yellow);
  border: 1px solid rgba(255, 230, 0, 0.35);
}
.aso-step-yellow .aso-step-num {
  color: var(--rubik-yellow);
  text-shadow: 0 0 16px rgba(255, 230, 0, 0.45);
}
.aso-step-yellow h4 {
  color: var(--rubik-yellow);
}
.aso-step-yellow:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 230, 0, 0.8);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 230, 0, 0.15);
}

.aso-step-blue {
  border: 1px solid rgba(0, 107, 250, 0.35);
}
.aso-step-blue .aso-step-badge {
  background: rgba(0, 107, 250, 0.12);
  color: var(--rubik-blue);
  border: 1px solid rgba(0, 107, 250, 0.35);
}
.aso-step-blue .aso-step-num {
  color: var(--rubik-blue);
  text-shadow: 0 0 16px rgba(0, 107, 250, 0.45);
}
.aso-step-blue h4 {
  color: #549dff;
}
.aso-step-blue:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 107, 250, 0.8);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 107, 250, 0.15);
}

/* FAQ Section */
.aso-faq {
  margin-bottom: 64px;
}

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

.aso-faq-item {
  background: #141420;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.aso-faq-q {
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: color 0.2s ease;
}

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

.aso-faq-q::after {
  content: "▾";
  font-size: 18px;
  font-weight: 800;
  transition: transform 0.25s ease;
}

.aso-faq-item[open] .aso-faq-q::after {
  transform: rotate(-180deg);
}

.aso-faq-a {
  padding: 0 22px 20px 22px;
  font-size: 14px;
  line-height: 1.65;
  color: #a8a8ba;
}

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

/* FAQ Item Themes in Game Palette with Normal Uniform Border */
.faq-yellow {
  border: 1px solid rgba(255, 230, 0, 0.35);
}
.faq-yellow .aso-faq-q::after {
  color: var(--rubik-yellow);
}
.faq-yellow:hover {
  border-color: rgba(255, 230, 0, 0.7);
}
.faq-yellow[open] {
  border-color: rgba(255, 230, 0, 0.85);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 230, 0, 0.12);
}

.faq-orange {
  border: 1px solid rgba(255, 107, 0, 0.35);
}
.faq-orange .aso-faq-q::after {
  color: var(--rubik-orange);
}
.faq-orange:hover {
  border-color: rgba(255, 107, 0, 0.7);
}
.faq-orange[open] {
  border-color: rgba(255, 107, 0, 0.85);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 107, 0, 0.12);
}

.faq-green {
  border: 1px solid rgba(0, 209, 61, 0.35);
}
.faq-green .aso-faq-q::after {
  color: var(--rubik-green);
}
.faq-green:hover {
  border-color: rgba(0, 209, 61, 0.7);
}
.faq-green[open] {
  border-color: rgba(0, 209, 61, 0.85);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 209, 61, 0.12);
}

.faq-blue {
  border: 1px solid rgba(0, 107, 250, 0.35);
}
.faq-blue .aso-faq-q::after {
  color: var(--rubik-blue);
}
.faq-blue:hover {
  border-color: rgba(0, 107, 250, 0.7);
}
.faq-blue[open] {
  border-color: rgba(0, 107, 250, 0.85);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 107, 250, 0.12);
}

@media (max-width: 768px) {
  .aso-title {
    font-size: var(--font-game-hero);
  }
  .aso-subtitle {
    font-size: var(--font-game-subtitle);
  }
  .aso-section-title {
    font-size: var(--font-game-title);
  }
}


/* =============================================================================
   Game Sub-Bar & Dark/Light Theme Mode Controls
   ============================================================================= */
.game-sub-bar {
  display: none !important; /* Temporarily disabled while testing Light Mode */
  width: 100%;
  background: #101017;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-game-body);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.sub-bar-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sub-bar-hint {
  font-size: 13px;
  color: #8b8b98;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1c1c28;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f0f0f5;
  font-family: var(--font-game-body);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.theme-toggle-btn:hover {
  background: #28283a;
  border-color: rgba(255, 215, 71, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.theme-icon-sun, .theme-icon-moon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


body.theme-light .aso-container {
  background: #f8fafc;
}

body.theme-light .aso-title {
  color: #0f172a;
}

body.theme-light .aso-subtitle {
  color: #475569;
}

body.theme-light .aso-section-title {
  color: #0f172a;
}

body.theme-light .aso-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

body.theme-light .aso-card h3 {
  color: #0f172a;
}

body.theme-light .aso-card p {
  color: #475569;
}

body.theme-light .aso-step-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

body.theme-light .aso-step-card h4 {
  color: #0f172a;
}

body.theme-light .aso-step-card p {
  color: #475569;
}

body.theme-light .aso-faq-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

body.theme-light .aso-faq-q {
  color: #0f172a;
}

body.theme-light .aso-faq-a p {
  color: #475569;
}

body.theme-light #web-portal-footer {
  background: #f1f5f9;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

body.theme-light .footer-col-title {
  color: #0f172a;
}

body.theme-light .footer-links li a {
  color: #475569;
}

body.theme-light .footer-links li a:hover {
  color: #0f172a;
}

body.theme-light .rubik-brand-text,
body.theme-light .miravill-brand-text {
  color: #0f172a;
}

body.theme-light .footer-legal-row {
  color: #64748b;
}

body.theme-light .footer-legal-row a {
  color: #475569;
}

body.theme-light .footer-legal-row a:hover {
  color: #0f172a;
}

body.theme-light .footer-copyright-text {
  color: #64748b;
}

