/* =====================================================================
   GPerya APK - mobile-5a0316-layers.css
   Mobile-first (320-430px) basefile stylesheet for gperya-apk.click
   Class prefix:  shell03167-
   Color palette: #C0C0C0 | #2E8B57 | #273746 | #00FF7F | #228B22
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --shell03167-bg:          #273746;
  --shell03167-bg-deep:     #1a2530;
  --shell03167-bg-soft:     #324656;
  --shell03167-card:        #2a3b4c;
  --shell03167-card-2:      #34495e;
  --shell03167-line:        #43607e;
  --shell03167-line-soft:   #38536e;
  --shell03167-fg:          #C0C0C0;
  --shell03167-fg-soft:     #9fb0c0;
  --shell03167-fg-mute:     #7a8a99;
  --shell03167-fg-bright:   #ffffff;
  --shell03167-accent:      #2E8B57;
  --shell03167-accent-2:    #00FF7F;
  --shell03167-accent-3:    #228B22;
  --shell03167-accent-soft: #1f6b41;
  --shell03167-danger:      #d8604b;
  --shell03167-gold:        #f5c451;

  --shell03167-radius-sm:   8px;
  --shell03167-radius:      14px;
  --shell03167-radius-lg:   20px;

  --shell03167-shadow-sm:   0 2px 6px rgba(0,0,0,.28);
  --shell03167-shadow:      0 6px 18px rgba(0,0,0,.32);
  --shell03167-shadow-lg:   0 14px 34px rgba(0,0,0,.42);

  --shell03167-bounce:      cubic-bezier(.34,1.56,.64,1);
  --shell03167-quick:       cubic-bezier(.2,.7,.3,1);

  --shell03167-header-h:    56px;
  --shell03167-bottomnav-h: 62px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--shell03167-bg-deep);
  color: var(--shell03167-fg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* ---------- Mobile canvas wrapper ---------- */
.shell03167-canvas {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--shell03167-bg) 0%, var(--shell03167-bg-deep) 100%);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,.5);
  overflow-x: hidden;
}

@media (min-width: 431px) {
  body { background: #0d141b; }
  .shell03167-canvas { border-left: 1px solid var(--shell03167-line-soft); border-right: 1px solid var(--shell03167-line-soft); }
}

/* ---------- Visually hidden helper ---------- */
.shell03167-vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* =====================================================================
   HEADER  (identity-style top bar with brand emphasis)
   ===================================================================== */
.shell03167-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--shell03167-header-h);
  background:
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,0)),
    linear-gradient(90deg, var(--shell03167-accent-3) 0%, var(--shell03167-bg) 55%, var(--shell03167-bg) 100%);
  border-bottom: 1px solid var(--shell03167-line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.shell03167-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.shell03167-brand-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--shell03167-accent-2);
  background: var(--shell03167-bg-deep);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0,255,127,.18);
}

.shell03167-brand-text { display: flex; flex-direction: column; min-width: 0; }
.shell03167-brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--shell03167-fg-bright);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shell03167-brand-tag {
  font-size: 10.5px;
  color: var(--shell03167-accent-2);
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.shell03167-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.shell03167-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
  transition: transform .18s var(--shell03167-bounce), background .2s var(--shell03167-quick), box-shadow .2s var(--shell03167-quick);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.shell03167-btn:active { transform: scale(.94); }

.shell03167-btn-register {
  background: linear-gradient(180deg, var(--shell03167-accent-2), var(--shell03167-accent));
  color: #06210f;
  box-shadow: 0 4px 14px rgba(0,255,127,.28), inset 0 1px 0 rgba(255,255,255,.35);
}
.shell03167-btn-register:hover { box-shadow: 0 6px 18px rgba(0,255,127,.45); }

.shell03167-btn-login {
  background: transparent;
  color: var(--shell03167-fg-bright);
  border: 1.5px solid var(--shell03167-accent);
  padding: 0 12px;
}
.shell03167-btn-login:hover { background: rgba(46,139,87,.18); }

.shell03167-menu-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--shell03167-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--shell03167-fg-bright);
  transition: background .2s var(--shell03167-quick), transform .18s var(--shell03167-bounce);
}
.shell03167-menu-toggle:hover { background: rgba(0,255,127,.12); }
.shell03167-menu-toggle:active { transform: scale(.9); }
.shell03167-menu-toggle svg { width: 20px; height: 20px; }
.shell03167-menu-toggle .shell03167-close-icon { display: none; }
.shell03167-menu-toggle.is-open .shell03167-menu-icon { display: none; }
.shell03167-menu-toggle.is-open .shell03167-close-icon { display: inline; }

/* =====================================================================
   EXPANDABLE NAV MENU
   ===================================================================== */
.shell03167-menu {
  position: fixed;
  top: var(--shell03167-header-h);
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, var(--shell03167-bg-soft) 0%, var(--shell03167-bg) 100%);
  border-bottom: 1px solid var(--shell03167-line);
  box-shadow: var(--shell03167-shadow-lg);
  padding: 10px 12px 16px;
  z-index: 55;
  visibility: hidden;
  opacity: 0;
  transition: transform .28s var(--shell03167-bounce), opacity .22s var(--shell03167-quick), visibility .22s;
  max-height: calc(100vh - var(--shell03167-header-h));
  overflow-y: auto;
}
.shell03167-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.shell03167-menu-title {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--shell03167-accent-2);
  font-weight: 700;
  margin: 8px 4px 6px;
}
.shell03167-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 6px;
}
.shell03167-menu-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  background: var(--shell03167-card);
  border: 1px solid var(--shell03167-line-soft);
  border-radius: var(--shell03167-radius-sm);
  color: var(--shell03167-fg);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: transform .16s var(--shell03167-bounce), border-color .18s, background .18s;
  min-height: 44px;
  justify-content: center;
}
.shell03167-menu-link:hover, .shell03167-menu-link:focus {
  border-color: var(--shell03167-accent-2);
  background: var(--shell03167-card-2);
  color: var(--shell03167-fg-bright);
}
.shell03167-menu-link:active { transform: scale(.93); }
.shell03167-menu-link svg { width: 22px; height: 22px; color: var(--shell03167-accent-2); }

.shell03167-menu-cta {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.shell03167-menu-cta .shell03167-btn { flex: 1; height: 40px; }

/* =====================================================================
   PAGE MAIN  (with bottom-nav safe area)
   ===================================================================== */
.shell03167-main {
  padding-bottom: calc(var(--shell03167-bottomnav-h) + 18px);
}

.shell03167-section {
  padding: 14px 12px 6px;
}
.shell03167-section + .shell03167-section { padding-top: 8px; }

.shell03167-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--shell03167-accent-2);
  font-weight: 700;
  margin-bottom: 6px;
}
.shell03167-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--shell03167-accent-2), transparent);
}

.shell03167-h1 {
  font-size: 22px;
  line-height: 1.25;
  color: var(--shell03167-fg-bright);
  font-weight: 800;
  margin: 4px 0 6px;
}
.shell03167-h2 {
  font-size: 17px;
  line-height: 1.3;
  color: var(--shell03167-fg-bright);
  font-weight: 800;
  margin: 4px 0 6px;
}
.shell03167-h3 {
  font-size: 14.5px;
  color: var(--shell03167-fg-bright);
  font-weight: 700;
  margin: 10px 0 4px;
}
.shell03167-lead {
  font-size: 13.5px;
  color: var(--shell03167-fg-soft);
  line-height: 1.6;
}
.shell03167-p {
  font-size: 13.5px;
  color: var(--shell03167-fg-soft);
  line-height: 1.65;
  margin-bottom: 8px;
}
.shell03167-p a {
  color: var(--shell03167-accent-2);
  font-weight: 600;
  border-bottom: 1px dotted rgba(0,255,127,.5);
}

/* =====================================================================
   HERO BANNER CAROUSEL
   ===================================================================== */
.shell03167-hero {
  margin: 12px 12px 4px;
  position: relative;
  border-radius: var(--shell03167-radius-lg);
  overflow: hidden;
  box-shadow: var(--shell03167-shadow);
  background: var(--shell03167-bg-deep);
}
.shell03167-hero-track {
  display: flex;
  transition: transform .45s var(--shell03167-quick);
  will-change: transform;
}
.shell03167-hero-slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 16 / 9;
}
.shell03167-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shell03167-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(39,55,70,.05) 30%, rgba(26,37,48,.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 14px;
}
.shell03167-hero-title {
  color: var(--shell03167-fg-bright);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  margin-bottom: 2px;
}
.shell03167-hero-sub {
  color: var(--shell03167-accent-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
}
.shell03167-hero-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
}
.shell03167-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.4);
  transition: background .2s, transform .18s var(--shell03167-bounce);
}
.shell03167-hero-dot.is-active {
  background: var(--shell03167-accent-2);
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(0,255,127,.6);
}

/* =====================================================================
   TRUST / STATS STRIP
   ===================================================================== */
.shell03167-strip {
  margin: 8px 12px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--shell03167-card);
  border: 1px solid var(--shell03167-line-soft);
  border-radius: var(--shell03167-radius);
  padding: 10px 6px;
}
.shell03167-strip-item {
  text-align: center;
  padding: 2px;
}
.shell03167-strip-num {
  font-size: 15px;
  color: var(--shell03167-accent-2);
  font-weight: 800;
  line-height: 1.1;
}
.shell03167-strip-label {
  font-size: 10.5px;
  color: var(--shell03167-fg-soft);
  margin-top: 2px;
}

/* =====================================================================
   GAME CATEGORY + GRID
   ===================================================================== */
.shell03167-cat {
  margin-top: 14px;
}
.shell03167-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  margin-bottom: 8px;
}
.shell03167-cat-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--shell03167-fg-bright);
}
.shell03167-cat-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  letter-spacing: .8px;
  text-transform: uppercase;
  background: rgba(0,255,127,.12);
  color: var(--shell03167-accent-2);
  border: 1px solid rgba(0,255,127,.35);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}
.shell03167-cat-link {
  font-size: 11.5px;
  color: var(--shell03167-fg-soft);
  font-weight: 600;
}
.shell03167-cat-link:hover { color: var(--shell03167-accent-2); }

.shell03167-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 12px;
}
@media (min-width: 375px) {
  .shell03167-grid { gap: 8px; }
}

.shell03167-game {
  background: var(--shell03167-card);
  border: 1px solid var(--shell03167-line-soft);
  border-radius: var(--shell03167-radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .16s var(--shell03167-bounce), border-color .18s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.shell03167-game:hover, .shell03167-game:focus {
  border-color: var(--shell03167-accent-2);
  box-shadow: 0 4px 12px rgba(0,255,127,.18);
}
.shell03167-game:active { transform: scale(.93); }
.shell03167-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(135deg, var(--shell03167-bg-soft), var(--shell03167-bg-deep));
}
.shell03167-game-name {
  font-size: 10.5px;
  color: var(--shell03167-fg);
  font-weight: 600;
  text-align: center;
  padding: 4px 3px 5px;
  line-height: 1.2;
  min-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.18));
}

/* =====================================================================
   CONTENT BLOCKS (Achievements / Security / Features / CTA / Entity)
   ===================================================================== */
.shell03167-block {
  margin: 14px 12px 0;
  background: linear-gradient(180deg, var(--shell03167-card), var(--shell03167-bg-soft));
  border: 1px solid var(--shell03167-line-soft);
  border-radius: var(--shell03167-radius);
  padding: 14px 14px 16px;
  box-shadow: var(--shell03167-shadow-sm);
}
.shell03167-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.shell03167-block-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0,255,127,.12);
  color: var(--shell03167-accent-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0,255,127,.3);
}
.shell03167-block-icon svg { width: 20px; height: 20px; }

.shell03167-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.shell03167-feat {
  background: rgba(0,0,0,.18);
  border: 1px solid var(--shell03167-line-soft);
  border-radius: var(--shell03167-radius-sm);
  padding: 10px;
}
.shell03167-feat-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--shell03167-accent-2);
  margin-bottom: 3px;
}
.shell03167-feat-desc {
  font-size: 12px;
  color: var(--shell03167-fg-soft);
  line-height: 1.5;
}

.shell03167-list {
  list-style: none;
  margin-top: 8px;
}
.shell03167-list li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 13px;
  color: var(--shell03167-fg-soft);
  line-height: 1.55;
  border-bottom: 1px dashed rgba(120,150,180,.18);
}
.shell03167-list li:last-child { border-bottom: none; }
.shell03167-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--shell03167-accent);
  transform: rotate(45deg);
}

/* Achievements progress rows */
.shell03167-ach {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.shell03167-ach-row { display: flex; flex-direction: column; gap: 4px; }
.shell03167-ach-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--shell03167-fg);
  font-weight: 600;
}
.shell03167-ach-top span:last-child { color: var(--shell03167-accent-2); }
.shell03167-ach-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.3);
  overflow: hidden;
}
.shell03167-ach-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--shell03167-accent-3), var(--shell03167-accent-2));
}

/* Entity relationship cards */
.shell03167-rel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}
.shell03167-rel-card {
  background: rgba(0,0,0,.18);
  border-left: 3px solid var(--shell03167-accent-2);
  border-radius: 6px;
  padding: 10px 12px;
}
.shell03167-rel-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--shell03167-fg-bright);
  margin-bottom: 3px;
}
.shell03167-rel-card-desc {
  font-size: 12px;
  color: var(--shell03167-fg-soft);
  line-height: 1.5;
}

/* CTA inside content */
.shell03167-cta {
  margin-top: 12px;
  background: linear-gradient(135deg, var(--shell03167-accent-3), var(--shell03167-accent));
  border-radius: var(--shell03167-radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(46,139,87,.32);
  transition: transform .18s var(--shell03167-bounce);
}
.shell03167-cta:active { transform: scale(.97); }
.shell03167-cta-text {
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  flex: 1;
}
.shell03167-cta-text small {
  display: block;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: 11px;
  margin-top: 2px;
}
.shell03167-cta-arrow {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.shell03167-cta-arrow svg { width: 16px; height: 16px; }

/* =====================================================================
   HOMEPAGE EXTENDED FOOTER  (two-column directory)
   ===================================================================== */
.shell03167-dir {
  margin: 16px 12px 4px;
  background: var(--shell03167-bg-soft);
  border: 1px solid var(--shell03167-line-soft);
  border-radius: var(--shell03167-radius);
  padding: 14px;
}
.shell03167-dir-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--shell03167-fg-bright);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.shell03167-dir-title svg { width: 16px; height: 16px; color: var(--shell03167-accent-2); }
.shell03167-dir-sub {
  font-size: 11.5px;
  color: var(--shell03167-fg-mute);
  margin-bottom: 10px;
  line-height: 1.5;
}

.shell03167-dir-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.shell03167-dir-col h4 {
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--shell03167-accent-2);
  font-weight: 700;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--shell03167-line-soft);
}
.shell03167-dir-col ul li {
  padding: 4px 0;
  font-size: 12px;
}
.shell03167-dir-col ul li a {
  color: var(--shell03167-fg-soft);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
}
.shell03167-dir-col ul li a::before {
  content: "›";
  color: var(--shell03167-accent);
  font-weight: 800;
}
.shell03167-dir-col ul li a:hover { color: var(--shell03167-accent-2); }

.shell03167-dir-promo {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.shell03167-dir-promo-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: var(--shell03167-card);
  border: 1px solid var(--shell03167-line);
  border-radius: var(--shell03167-radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--shell03167-fg-bright);
  transition: transform .16s var(--shell03167-bounce), border-color .18s, background .18s;
  min-height: 44px;
}
.shell03167-dir-promo-btn:hover { border-color: var(--shell03167-accent-2); background: var(--shell03167-card-2); }
.shell03167-dir-promo-btn:active { transform: scale(.95); }
.shell03167-dir-promo-btn svg { width: 16px; height: 16px; color: var(--shell03167-accent-2); flex-shrink: 0; }

.shell03167-dir-disclaimer {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(0,0,0,.22);
  border-left: 3px solid var(--shell03167-gold);
  border-radius: 6px;
  font-size: 11px;
  color: var(--shell03167-fg-mute);
  line-height: 1.55;
}

/* =====================================================================
   COMMON FOOTER  (brand emphasis ribbon + copyright)
   ===================================================================== */
.shell03167-footer {
  background:
    linear-gradient(180deg, var(--shell03167-bg) 0%, var(--shell03167-bg-deep) 100%);
  border-top: 2px solid var(--shell03167-accent-3);
  padding: 16px 14px calc(var(--shell03167-bottomnav-h) + 22px);
  margin-top: 16px;
}
.shell03167-footer-ribbon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(90deg, var(--shell03167-accent-3), var(--shell03167-accent-soft));
  border-radius: var(--shell03167-radius);
  margin-bottom: 12px;
}
.shell03167-footer-ribbon-img {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--shell03167-accent-2);
}
.shell03167-footer-ribbon-text {
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}
.shell03167-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 8px 0 10px;
}
.shell03167-footer-links a {
  font-size: 11.5px;
  color: var(--shell03167-fg-soft);
  padding: 3px 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.shell03167-footer-links a:hover { color: var(--shell03167-accent-2); background: rgba(0,255,127,.08); }

.shell03167-footer-copy {
  font-size: 11px;
  color: var(--shell03167-fg-mute);
  line-height: 1.6;
  padding-top: 8px;
  border-top: 1px dashed var(--shell03167-line-soft);
}
.shell03167-footer-copy strong { color: var(--shell03167-fg); }

/* =====================================================================
   MOBILE BOTTOM NAVIGATION  (5 roles, single-color icons + accent fill)
   ===================================================================== */
.shell03167-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--shell03167-bottomnav-h);
  background: linear-gradient(180deg, var(--shell03167-bg-soft), var(--shell03167-bg-deep));
  border-top: 1px solid var(--shell03167-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 70;
  box-shadow: 0 -6px 20px rgba(0,0,0,.45);
}
.shell03167-bottomnav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px 5px;
  color: var(--shell03167-fg-mute);
  font-size: 10px;
  font-weight: 600;
  transition: color .18s var(--shell03167-quick), transform .16s var(--shell03167-bounce);
  -webkit-tap-highlight-color: transparent;
}
.shell03167-bottomnav-item:active { transform: scale(.88); }
.shell03167-bottomnav-item:hover { color: var(--shell03167-fg); }
.shell03167-bottomnav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s var(--shell03167-bounce);
}
.shell03167-bottomnav-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill .2s, stroke .2s;
}
/* Active state: icon fill changes */
.shell03167-bottomnav-item.is-active {
  color: var(--shell03167-accent-2);
}
.shell03167-bottomnav-item.is-active .shell03167-bottomnav-icon svg {
  fill: rgba(0,255,127,.18);
  stroke: var(--shell03167-accent-2);
}
.shell03167-bottomnav-item.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--shell03167-accent-2);
  box-shadow: 0 0 8px rgba(0,255,127,.6);
}
/* Promo role emphasis */
.shell03167-bottomnav-item.is-promo {
  color: var(--shell03167-accent-2);
}
.shell03167-bottomnav-item.is-promo .shell03167-bottomnav-icon {
  background: linear-gradient(180deg, var(--shell03167-accent-3), var(--shell03167-accent-soft));
  border-radius: 999px;
  padding: 5px;
  width: 36px;
  height: 36px;
  margin-top: -10px;
  box-shadow: 0 4px 12px rgba(46,139,87,.45);
  border: 2px solid var(--shell03167-bg-deep);
}
.shell03167-bottomnav-item.is-promo .shell03167-bottomnav-icon svg {
  stroke: #ffffff;
  width: 18px;
  height: 18px;
}
.shell03167-bottomnav-item.is-promo.is-active .shell03167-bottomnav-icon svg {
  fill: rgba(255,255,255,.25);
}

/* =====================================================================
   UTILITIES / SCROLLERS
   ===================================================================== */
.shell03167-scroller {
  display: flex;
  gap: 8px;
  padding: 0 12px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shell03167-scroller::-webkit-scrollbar { display: none; }
.shell03167-scroller > * { scroll-snap-align: start; flex: 0 0 auto; }

.shell03167-mini-card {
  width: 140px;
  background: var(--shell03167-card);
  border: 1px solid var(--shell03167-line-soft);
  border-radius: var(--shell03167-radius-sm);
  overflow: hidden;
  transition: transform .16s var(--shell03167-bounce), border-color .18s;
}
.shell03167-mini-card:active { transform: scale(.96); }
.shell03167-mini-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.shell03167-mini-card-body { padding: 8px 10px; }
.shell03167-mini-card-title { font-size: 12px; font-weight: 700; color: var(--shell03167-fg-bright); margin-bottom: 2px; }
.shell03167-mini-card-desc { font-size: 11px; color: var(--shell03167-fg-soft); line-height: 1.4; }

/* Partner / provider logos strip */
.shell03167-providers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 12px;
  margin-top: 8px;
}
.shell03167-providers img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  padding: 4px;
  border: 1px solid var(--shell03167-line-soft);
}

/* =====================================================================
   FAQ / Q-A ROWS
   ===================================================================== */
.shell03167-qa {
  background: rgba(0,0,0,.16);
  border: 1px solid var(--shell03167-line-soft);
  border-radius: var(--shell03167-radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.shell03167-qa-q {
  font-size: 13px;
  font-weight: 700;
  color: var(--shell03167-fg-bright);
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.shell03167-qa-q::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--shell03167-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.shell03167-qa-a {
  font-size: 12.5px;
  color: var(--shell03167-fg-soft);
  line-height: 1.6;
  margin-top: 6px;
  padding-left: 24px;
}

/* =====================================================================
   RESPONSIVE FINE-TUNES (still inside 320-430px mobile canvas)
   ===================================================================== */
@media (max-width: 359px) {
  .shell03167-h1 { font-size: 19px; }
  .shell03167-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .shell03167-game-name { font-size: 9.5px; min-height: 24px; }
  .shell03167-dir-promo { grid-template-columns: 1fr; }
  .shell03167-feat-grid { grid-template-columns: 1fr; }
  .shell03167-strip { grid-template-columns: repeat(2, 1fr); }
  .shell03167-providers { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 393px) {
  .shell03167-grid { gap: 9px; }
  .shell03167-h1 { font-size: 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
