/* OKGames App APK — native visuals stylesheet (mobile-first casino canvas) */
/* Class prefix: layer1fc9c- | CSS variables: --layer1fc9c-* */

:root {
  --layer1fc9c-bg-deep: #1A1A2E;
  --layer1fc9c-bg-soft: #21213a;
  --layer1fc9c-bg-card: #262845;
  --layer1fc9c-bg-line: #323557;
  --layer1fc9c-sky: #BAE1FF;
  --layer1fc9c-pink: #E91E63;
  --layer1fc9c-pink-deep: #b3154e;
  --layer1fc9c-lavender: #C9C9FF;
  --layer1fc9c-gold: #FFCC02;
  --layer1fc9c-text: #E6ECFF;
  --layer1fc9c-text-mute: #9AA3C7;
  --layer1fc9c-text-dim: #6E78A0;
  --layer1fc9c-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
  --layer1fc9c-radius-btn: 999px;
  --layer1fc9c-radius-card: 10px;
  --layer1fc9c-radius-tile: 12px;
  --layer1fc9c-font-display: "Montserrat", "Poppins", "Helvetica Neue", Arial, sans-serif;
  --layer1fc9c-font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --layer1fc9c-max: 430px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--layer1fc9c-font-body);
  background: var(--layer1fc9c-bg-deep);
  color: var(--layer1fc9c-text);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Centered phone canvas on wide screens */
.layer1fc9c-canvas {
  width: 100%;
  max-width: var(--layer1fc9c-max);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--layer1fc9c-bg-deep);
  position: relative;
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.45);
}

img { max-width: 100%; display: block; }

a { color: var(--layer1fc9c-sky); text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--layer1fc9c-gold);
  outline-offset: 2px;
}

.layer1fc9c-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===================== Header ===================== */
.layer1fc9c-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, #16162b 0%, #1c1c34 100%);
  border-bottom: 1px solid var(--layer1fc9c-bg-line);
  padding: 9px 14px 8px;
}

.layer1fc9c-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.layer1fc9c-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.layer1fc9c-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: radial-gradient(circle at 30% 30%, var(--layer1fc9c-pink), var(--layer1fc9c-pink-deep) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.45);
  flex-shrink: 0;
}

.layer1fc9c-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layer1fc9c-brand-name {
  font-family: var(--layer1fc9c-font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: var(--layer1fc9c-text);
  line-height: 1.05;
  white-space: nowrap;
}

.layer1fc9c-brand-name b {
  color: var(--layer1fc9c-gold);
  font-weight: 800;
}

/* Action cluster */
.layer1fc9c-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.layer1fc9c-btn {
  font-family: var(--layer1fc9c-font-display);
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: var(--layer1fc9c-radius-btn);
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.3px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.18s ease, opacity 0.18s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.layer1fc9c-btn:active { transform: translateY(1px) scale(0.98); }

.layer1fc9c-btn-login {
  background: transparent;
  color: var(--layer1fc9c-sky);
  border: 1.5px solid var(--layer1fc9c-sky);
  padding: 6px 12px;
}

.layer1fc9c-btn-register {
  background: linear-gradient(135deg, var(--layer1fc9c-gold), #ffae3b);
  color: #1A1A2E;
  box-shadow: 0 3px 12px rgba(255, 204, 2, 0.35);
}

.layer1fc9c-menu-btn {
  background: transparent;
  border: 1px solid var(--layer1fc9c-bg-line);
  color: var(--layer1fc9c-sky);
  border-radius: 9px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.layer1fc9c-menu-btn:hover { background: var(--layer1fc9c-bg-soft); }
.layer1fc9c-menu-btn svg { width: 18px; height: 18px; }

/* Expandable route panel */
.layer1fc9c-route-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s ease;
  background: #181830;
}

.layer1fc9c-route-panel.layer1fc9c-open { max-height: 560px; }

.layer1fc9c-route-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--layer1fc9c-bg-line);
  border-top: 1px solid var(--layer1fc9c-bg-line);
}

.layer1fc9c-route-link {
  background: #181830;
  padding: 12px 14px;
  color: var(--layer1fc9c-text);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: background 0.15s ease;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--layer1fc9c-font-body);
  line-height: 1.2;
  min-height: 44px;
}

.layer1fc9c-route-link:hover, .layer1fc9c-route-link:focus-visible {
  background: #20203b;
  color: var(--layer1fc9c-gold);
}

.layer1fc9c-route-tile {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--layer1fc9c-bg-card);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--layer1fc9c-lavender);
  flex-shrink: 0;
}
.layer1fc9c-route-tile svg { width: 14px; height: 14px; }

/* ===================== Hero Carousel ===================== */
.layer1fc9c-main { padding-bottom: 84px; }

.layer1fc9c-hero {
  position: relative;
  margin: 12px 12px 0;
  border-radius: var(--layer1fc9c-radius-tile);
  overflow: hidden;
  background: var(--layer1fc9c-bg-card);
  box-shadow: var(--layer1fc9c-shadow);
}

.layer1fc9c-hero-track {
  display: flex;
  transition: transform 0.5s ease;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scrollbar-width: none;
}
.layer1fc9c-hero-track::-webkit-scrollbar { display: none; }

.layer1fc9c-hero-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
  cursor: pointer;
}

.layer1fc9c-hero-slide img {
  width: 100%;
  height: 188px;
  object-fit: cover;
  display: block;
}

.layer1fc9c-hero-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.layer1fc9c-hero-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(233, 30, 99, 0.92);
  color: #fff;
  font-family: var(--layer1fc9c-font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
}

.layer1fc9c-hero-line {
  font-family: var(--layer1fc9c-font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.layer1fc9c-hero-cta {
  align-self: flex-start;
  background: var(--layer1fc9c-gold);
  color: #1A1A2E;
  font-family: var(--layer1fc9c-font-display);
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--layer1fc9c-radius-btn);
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.layer1fc9c-hero-cta:active { transform: scale(0.96); }

.layer1fc9c-hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}
.layer1fc9c-hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--layer1fc9c-bg-line);
  transition: background 0.2s ease, width 0.2s ease;
  border: none; cursor: pointer; padding: 0;
}
.layer1fc9c-hero-dot.layer1fc9c-active {
  background: var(--layer1fc9c-gold);
  width: 18px;
  border-radius: 4px;
}

/* ===================== H1 & intro ===================== */
.layer1fc9c-intro {
  padding: 18px 14px 4px;
}

.layer1fc9c-h1 {
  font-family: var(--layer1fc9c-font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.18;
  color: var(--layer1fc9c-text);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.layer1fc9c-h1 b { color: var(--layer1fc9c-gold); }

.layer1fc9c-lead {
  color: var(--layer1fc9c-text-mute);
  font-size: 14px;
  line-height: 1.55;
}

/* Quick metric strip */
.layer1fc9c-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 12px 0;
}
.layer1fc9c-metric {
  background: var(--layer1fc9c-bg-card);
  border: 1px solid var(--layer1fc9c-bg-line);
  border-radius: var(--layer1fc9c-radius-card);
  padding: 9px 8px;
  text-align: center;
}
.layer1fc9c-metric-num {
  font-family: var(--layer1fc9c-font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--layer1fc9c-gold);
  line-height: 1.1;
}
.layer1fc9c-metric-lbl {
  font-size: 10.5px;
  color: var(--layer1fc9c-text-mute);
  margin-top: 2px;
  line-height: 1.2;
}

/* ===================== Game sections ===================== */
.layer1fc9c-section {
  padding: 18px 0 0;
}

.layer1fc9c-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  margin-bottom: 10px;
}

.layer1fc9c-section-title {
  font-family: var(--layer1fc9c-font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--layer1fc9c-text);
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.layer1fc9c-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--layer1fc9c-pink);
  border-radius: 2px;
}

.layer1fc9c-section-more {
  font-size: 12px;
  color: var(--layer1fc9c-lavender);
  font-weight: 600;
}

.layer1fc9c-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 12px;
}

@media (min-width: 360px) {
  .layer1fc9c-grid { gap: 10px; }
}

.layer1fc9c-tile {
  background: var(--layer1fc9c-bg-card);
  border: 1px solid var(--layer1fc9c-bg-line);
  border-radius: var(--layer1fc9c-radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}
.layer1fc9c-tile:hover { border-color: var(--layer1fc9c-pink); }
.layer1fc9c-tile:active { transform: scale(0.97); }

.layer1fc9c-tile-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(140deg, #2c2e4f, #1f2138);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.layer1fc9c-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layer1fc9c-tile-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.layer1fc9c-tile-name {
  padding: 6px 5px 7px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--layer1fc9c-text);
  line-height: 1.2;
  background: var(--layer1fc9c-bg-card);
  min-height: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category accent variations */
.layer1fc9c-cat-fishing .layer1fc9c-section-title::before { background: #4fc3f7; }
.layer1fc9c-cat-cards .layer1fc9c-section-title::before { background: var(--layer1fc9c-lavender); }
.layer1fc9c-cat-live-casino .layer1fc9c-section-title::before { background: var(--layer1fc9c-pink); }
.layer1fc9c-cat-hot .layer1fc9c-section-title::before { background: var(--layer1fc9c-gold); }
.layer1fc9c-cat-slot .layer1fc9c-section-title::before { background: #6dffb0; }

/* ===================== Content modules ===================== */
.layer1fc9c-module {
  margin: 20px 12px 0;
  background: var(--layer1fc9c-bg-card);
  border: 1px solid var(--layer1fc9c-bg-line);
  border-radius: var(--layer1fc9c-radius-tile);
  padding: 16px 14px;
}

.layer1fc9c-module-h2 {
  font-family: var(--layer1fc9c-font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--layer1fc9c-text);
  margin-bottom: 10px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 8px;
}

.layer1fc9c-module-h2 .layer1fc9c-pill {
  background: rgba(233, 30, 99, 0.16);
  color: var(--layer1fc9c-pink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(233, 30, 99, 0.35);
}

.layer1fc9c-h3 {
  font-family: var(--layer1fc9c-font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--layer1fc9c-gold);
  margin: 14px 0 6px;
  letter-spacing: 0.2px;
}

.layer1fc9c-p {
  color: var(--layer1fc9c-text-mute);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.layer1fc9c-p strong { color: var(--layer1fc9c-text); font-weight: 700; }
.layer1fc9c-p a { color: var(--layer1fc9c-lavender); text-decoration: underline; text-underline-offset: 2px; }
.layer1fc9c-p a:hover { color: var(--layer1fc9c-gold); }

/* Metric-explanation rows */
.layer1fc9c-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--layer1fc9c-bg-line);
  align-items: start;
}
.layer1fc9c-row:last-child { border-bottom: none; }

.layer1fc9c-row-key {
  font-family: var(--layer1fc9c-font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--layer1fc9c-gold);
  line-height: 1.1;
  background: rgba(255, 204, 2, 0.1);
  border-radius: 7px;
  padding: 6px 4px;
  text-align: center;
}
.layer1fc9c-row-key small {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--layer1fc9c-text-mute);
  margin-top: 2px;
}

.layer1fc9c-row-val {
  font-size: 13px;
  color: var(--layer1fc9c-text-mute);
  line-height: 1.5;
}
.layer1fc9c-row-val strong { color: var(--layer1fc9c-text); }

/* RTP analysis list */
.layer1fc9c-list { list-style: none; padding: 0; margin: 0; }
.layer1fc9c-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 13.5px;
  color: var(--layer1fc9c-text-mute);
  line-height: 1.55;
  border-bottom: 1px dashed var(--layer1fc9c-bg-line);
}
.layer1fc9c-list li:last-child { border-bottom: none; }
.layer1fc9c-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--layer1fc9c-pink);
  border-radius: 2px;
  transform: rotate(45deg);
}
.layer1fc9c-list li strong { color: var(--layer1fc9c-text); }

/* Latest winners ticker cards */
.layer1fc9c-winners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.layer1fc9c-winner {
  background: var(--layer1fc9c-bg-soft);
  border: 1px solid var(--layer1fc9c-bg-line);
  border-radius: 8px;
  padding: 8px 9px;
}
.layer1fc9c-winner-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}
.layer1fc9c-winner-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--layer1fc9c-pink), var(--layer1fc9c-lavender));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px;
  color: #1A1A2E;
  flex-shrink: 0;
  font-family: var(--layer1fc9c-font-display);
}
.layer1fc9c-winner-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--layer1fc9c-text);
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.layer1fc9c-winner-amount {
  font-family: var(--layer1fc9c-font-display);
  font-weight: 800;
  color: var(--layer1fc9c-gold);
  font-size: 14px;
  line-height: 1;
}
.layer1fc9c-winner-meta {
  font-size: 10.5px;
  color: var(--layer1fc9c-text-dim);
  line-height: 1.2;
}

/* FAQ */
.layer1fc9c-faq { border-top: 1px solid var(--layer1fc9c-bg-line); }
.layer1fc9c-faq-item { border-bottom: 1px solid var(--layer1fc9c-bg-line); }
.layer1fc9c-faq-q {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 12px 0;
  font-family: var(--layer1fc9c-font-body);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--layer1fc9c-text);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.35;
}
.layer1fc9c-faq-q span:first-child::before {
  content: "Q";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--layer1fc9c-pink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 5px;
  text-align: center;
  line-height: 18px;
  margin-right: 7px;
  font-family: var(--layer1fc9c-font-display);
}
.layer1fc9c-faq-toggle {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--layer1fc9c-lavender);
  transition: transform 0.2s ease;
}
.layer1fc9c-faq-item.layer1fc9c-open .layer1fc9c-faq-toggle { transform: rotate(45deg); }

.layer1fc9c-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.26s ease;
  color: var(--layer1fc9c-text-mute);
  font-size: 13px;
  line-height: 1.55;
}
.layer1fc9c-faq-item.layer1fc9c-open .layer1fc9c-faq-a { max-height: 280px; }
.layer1fc9c-faq-a-inner { padding: 0 0 12px 25px; }

/* CTA block */
.layer1fc9c-cta {
  margin: 22px 12px 0;
  background: linear-gradient(135deg, #2a1244 0%, #18223e 100%);
  border: 1px solid var(--layer1fc9c-bg-line);
  border-radius: var(--layer1fc9c-radius-tile);
  padding: 18px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.layer1fc9c-cta::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(255,204,2,0.18), transparent 70%);
  border-radius: 50%;
}
.layer1fc9c-cta-h {
  font-family: var(--layer1fc9c-font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--layer1fc9c-gold);
  margin-bottom: 6px;
  position: relative;
}
.layer1fc9c-cta-p {
  color: var(--layer1fc9c-text);
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.5;
  position: relative;
}
.layer1fc9c-cta-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.layer1fc9c-btn-promo {
  background: linear-gradient(135deg, var(--layer1fc9c-pink), var(--layer1fc9c-pink-deep));
  color: #fff;
  padding: 10px 18px;
  font-size: 13.5px;
  box-shadow: 0 4px 14px rgba(233,30,99,0.4);
}

.layer1fc9c-btn-gold {
  background: linear-gradient(135deg, var(--layer1fc9c-gold), #ffae3b);
  color: #1A1A2E;
  padding: 10px 18px;
  font-size: 13.5px;
  box-shadow: 0 4px 14px rgba(255,204,2,0.32);
}

.layer1fc9c-btn-outline {
  background: transparent;
  color: var(--layer1fc9c-sky);
  border: 1.5px solid var(--layer1fc9c-sky);
  padding: 8.5px 16px;
  font-size: 13.5px;
}

/* Step summary */
.layer1fc9c-steps {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.layer1fc9c-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  background: var(--layer1fc9c-bg-soft);
  border: 1px solid var(--layer1fc9c-bg-line);
  border-radius: 8px;
  padding: 10px 11px;
}
.layer1fc9c-step-num {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--layer1fc9c-gold), var(--layer1fc9c-pink));
  color: #1A1A2E;
  font-family: var(--layer1fc9c-font-display);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.layer1fc9c-step-body strong {
  display: block;
  font-size: 13px;
  color: var(--layer1fc9c-text);
  font-weight: 700;
  margin-bottom: 2px;
}
.layer1fc9c-step-body span {
  font-size: 12.5px;
  color: var(--layer1fc9c-text-mute);
  line-height: 1.45;
}

/* Mobile app download block */
.layer1fc9c-app {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 4px;
}
.layer1fc9c-app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: var(--layer1fc9c-bg-soft);
  border: 1px solid var(--layer1fc9c-bg-line);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 0.18s ease;
  min-height: 56px;
}
.layer1fc9c-app-row:hover { border-color: var(--layer1fc9c-gold); }
.layer1fc9c-app-row:active { transform: scale(0.99); }
.layer1fc9c-app-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--layer1fc9c-bg-card);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--layer1fc9c-lavender);
  flex-shrink: 0;
}
.layer1fc9c-app-icon svg { width: 20px; height: 20px; }
.layer1fc9c-app-info { flex: 1; min-width: 0; }
.layer1fc9c-app-title {
  font-family: var(--layer1fc9c-font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--layer1fc9c-text);
  line-height: 1.2;
}
.layer1fc9c-app-sub {
  font-size: 11.5px;
  color: var(--layer1fc9c-text-mute);
  margin-top: 2px;
  line-height: 1.3;
}
.layer1fc9c-app-arrow {
  width: 22px; height: 22px;
  color: var(--layer1fc9c-gold);
  flex-shrink: 0;
}

/* ===================== Extended footer ===================== */
.layer1fc9c-extended {
  margin: 22px 12px 0;
  background: var(--layer1fc9c-bg-card);
  border: 1px solid var(--layer1fc9c-bg-line);
  border-radius: var(--layer1fc9c-radius-tile);
  padding: 16px 14px;
}

.layer1fc9c-ext-block { margin-bottom: 16px; }
.layer1fc9c-ext-block:last-child { margin-bottom: 0; }

.layer1fc9c-ext-h {
  font-family: var(--layer1fc9c-font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--layer1fc9c-gold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--layer1fc9c-bg-line);
}

.layer1fc9c-brand-blurb {
  font-size: 12.5px;
  color: var(--layer1fc9c-text-mute);
  line-height: 1.55;
}

/* Horizontal shortcut chips */
.layer1fc9c-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.layer1fc9c-chip {
  background: var(--layer1fc9c-bg-soft);
  border: 1px solid var(--layer1fc9c-bg-line);
  color: var(--layer1fc9c-text);
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: var(--layer1fc9c-radius-btn);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  min-height: 32px;
  font-family: var(--layer1fc9c-font-body);
}
.layer1fc9c-chip:hover { background: #2a2c4d; color: var(--layer1fc9c-gold); border-color: var(--layer1fc9c-gold); }
.layer1fc9c-chip.layer1fc9c-chip-promo {
  background: linear-gradient(135deg, rgba(233,30,99,0.18), rgba(255,204,2,0.12));
  border-color: rgba(233,30,99,0.4);
  color: var(--layer1fc9c-gold);
}

/* Directory grid */
.layer1fc9c-dir-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--layer1fc9c-bg-line);
  border: 1px solid var(--layer1fc9c-bg-line);
  border-radius: 8px;
  overflow: hidden;
}
.layer1fc9c-dir-link {
  background: var(--layer1fc9c-bg-card);
  padding: 9px 11px;
  font-size: 12px;
  color: var(--layer1fc9c-text);
  font-weight: 500;
  display: block;
  transition: background 0.15s ease;
  line-height: 1.3;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.layer1fc9c-dir-link:hover { background: #2a2c4d; color: var(--layer1fc9c-gold); }
.layer1fc9c-dir-link svg { width: 13px; height: 13px; color: var(--layer1fc9c-lavender); flex-shrink: 0; }

/* Disclaimer */
.layer1fc9c-disclaimer {
  font-size: 11.5px;
  color: var(--layer1fc9c-text-dim);
  line-height: 1.5;
  padding: 10px;
  background: rgba(255,204,2,0.06);
  border: 1px solid rgba(255,204,2,0.18);
  border-radius: 7px;
}
.layer1fc9c-disclaimer strong { color: var(--layer1fc9c-gold); }

/* ===================== Common footer ===================== */
.layer1fc9c-footer {
  padding: 22px 14px 14px;
  border-top: 1px solid var(--layer1fc9c-bg-line);
  background: #16162b;
  margin-top: 22px;
}

.layer1fc9c-footer-copy {
  text-align: center;
  font-size: 11.5px;
  color: var(--layer1fc9c-text-dim);
  line-height: 1.55;
}
.layer1fc9c-footer-copy b { color: var(--layer1fc9c-lavender); font-weight: 600; }

/* ===================== Bottom Nav ===================== */
.layer1fc9c-bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--layer1fc9c-max);
  background: rgba(22, 22, 43, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--layer1fc9c-bg-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 90;
  padding: 4px 0 max(4px, env(safe-area-inset-bottom));
}

.layer1fc9c-nav-item {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px 4px;
  color: var(--layer1fc9c-text-dim);
  font-size: 9.5px;
  font-weight: 600;
  font-family: var(--layer1fc9c-font-body);
  text-decoration: none;
  position: relative;
  min-height: 50px;
  transition: color 0.18s ease;
}

.layer1fc9c-nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--layer1fc9c-gold);
  border-radius: 0 0 4px 4px;
  transition: width 0.2s ease;
}
.layer1fc9c-nav-item.layer1fc9c-active::before { width: 26px; }
.layer1fc9c-nav-item.layer1fc9c-active { color: var(--layer1fc9c-gold); }
.layer1fc9c-nav-item:active { transform: scale(0.94); }

.layer1fc9c-nav-icon {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--layer1fc9c-bg-card);
  margin-bottom: 1px;
  transition: background 0.18s ease;
}
.layer1fc9c-nav-item.layer1fc9c-active .layer1fc9c-nav-icon { background: rgba(255,204,2,0.16); }
.layer1fc9c-nav-icon svg { width: 17px; height: 17px; }

.layer1fc9c-nav-item-promo .layer1fc9c-nav-icon {
  background: linear-gradient(135deg, var(--layer1fc9c-pink), var(--layer1fc9c-pink-deep));
  color: #fff;
}
.layer1fc9c-nav-item-promo .layer1fc9c-nav-icon svg { color: #fff; }
.layer1fc9c-nav-item-promo.layer1fc9c-active .layer1fc9c-nav-icon { background: linear-gradient(135deg, var(--layer1fc9c-gold), var(--layer1fc9c-pink)); }

.layer1fc9c-nav-label { line-height: 1.1; text-align: center; max-width: 56px; }

/* Stagger fade-in (restrained) */
@keyframes layer1fc9c-fadeup {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.layer1fc9c-fade { animation: layer1fc9c-fadeup 0.5s ease both; }

/* Wide-screen wrapper centers the phone canvas */
@media (min-width: 480px) {
  body { background: #0c0c1c; }
  .layer1fc9c-canvas {
    border-left: 1px solid #2a2c4d;
    border-right: 1px solid #2a2c4d;
  }
}

/* Larger phones get a slightly denser game grid */
@media (min-width: 393px) {
  .layer1fc9c-grid { grid-template-columns: repeat(4, 1fr); gap: 11px; }
  .layer1fc9c-tile-name { font-size: 11px; }
  .layer1fc9c-hero-slide img { height: 210px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
