/* ============================================================
   phlwin apk - Responsive Canvas Stylesheet
   ------------------------------------------------------------
   All custom classes and variables use the "layereefc3-" prefix.
   Mobile-first 320-430px canvas. Wider screens keep the
   centered phone canvas (no desktop-width layout).
   Palette: #7B68EE | #34495E | #DDA0DD | #FFB6C1 | #FAFAFA | #9370DB
   ============================================================ */

:root {
  --layereefc3-bg-deep: #243240;
  --layereefc3-bg: #34495E;
  --layereefc3-bg-soft: #3c5169;
  --layereefc3-bg-card: #2f4256;
  --layereefc3-bg-elevated: #384f68;
  --layereefc3-primary: #7B68EE;
  --layereefc3-primary-strong: #6a55e8;
  --layereefc3-primary-soft: #9370DB;
  --layereefc3-plum: #DDA0DD;
  --layereefc3-pink: #FFB6C1;
  --layereefc3-light: #FAFAFA;
  --layereefc3-text: #f1f3f8;
  --layereefc3-text-muted: #b9c4d4;
  --layereefc3-text-dim: #8ea0b5;
  --layereefc3-gold: #f3c969;
  --layereefc3-border: rgba(123, 104, 238, 0.28);
  --layereefc3-border-soft: rgba(221, 160, 221, 0.22);
  --layereefc3-shadow-card: 0 10px 26px rgba(15, 25, 40, 0.42);
  --layereefc3-shadow-float: 0 14px 34px rgba(15, 25, 40, 0.55);
  --layereefc3-glow: 0 0 0 2px rgba(123, 104, 238, 0.45), 0 8px 24px rgba(123, 104, 238, 0.35);
  --layereefc3-radius-s: 8px;
  --layereefc3-radius-m: 14px;
  --layereefc3-radius-l: 22px;
  --layereefc3-header-h: 60px;
  --layereefc3-bottomnav-h: 68px;
  --layereefc3-font: "Segoe UI", "Helvetica Neue", Roboto, Arial, "Noto Sans", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

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

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

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

a {
  color: var(--layereefc3-plum);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus {
  color: var(--layereefc3-pink);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.28;
  color: var(--layereefc3-light);
  font-weight: 700;
}

p {
  margin: 0 0 0.85em;
}

ul,
ol {
  margin: 0 0 0.85em;
  padding-left: 1.15em;
}

li {
  margin-bottom: 0.35em;
}

:focus-visible {
  outline: 2px solid var(--layereefc3-pink);
  outline-offset: 2px;
}

/* ---------- Phone canvas frame ---------- */
.layereefc3-app {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 15% 0%, rgba(123, 104, 238, 0.18), transparent 42%),
    radial-gradient(circle at 90% 18%, rgba(147, 112, 219, 0.16), transparent 45%),
    linear-gradient(180deg, #2e4154 0%, #2a3a4c 45%, #243240 100%);
  min-height: 100vh;
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

@media (min-width: 431px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, #2c3e52, #1a2532 60%);
  }
  .layereefc3-app {
    margin-top: 18px;
    margin-bottom: 18px;
    border-radius: 26px;
    min-height: calc(100vh - 36px);
    border: 1px solid rgba(123, 104, 238, 0.18);
  }
}

.layereefc3-no-scroll {
  overflow: hidden;
}

/* ---------- Header (asymmetric brand band) ---------- */
.layereefc3-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: linear-gradient(100deg, rgba(45, 62, 80, 0.96), rgba(54, 75, 98, 0.96));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--layereefc3-border);
  min-height: var(--layereefc3-header-h);
}

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

.layereefc3-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #fff;
}

.layereefc3-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

.layereefc3-brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--layereefc3-light);
  text-transform: lowercase;
  white-space: nowrap;
}

.layereefc3-brand-tag {
  font-size: 10.5px;
  color: var(--layereefc3-plum);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Header action group */
.layereefc3-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.layereefc3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.layereefc3-btn-primary {
  background: linear-gradient(120deg, var(--layereefc3-primary), var(--layereefc3-primary-soft));
  color: var(--layereefc3-light);
  box-shadow: 0 6px 16px rgba(123, 104, 238, 0.4);
}

.layereefc3-btn-primary:active {
  transform: translateY(1px);
}

.layereefc3-btn-ghost {
  background: rgba(221, 160, 221, 0.16);
  color: var(--layereefc3-light);
  border: 1px solid var(--layereefc3-border-soft);
}

.layereefc3-btn-ghost:active {
  transform: translateY(1px);
}

/* Menu toggle button */
.layereefc3-menu-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(123, 104, 238, 0.18);
  border: 1px solid var(--layereefc3-border);
  color: var(--layereefc3-light);
  transition: background 0.18s ease, transform 0.16s ease;
}

.layereefc3-menu-btn:active {
  transform: translateY(1px);
}

.layereefc3-menu-btn .layereefc3-menu-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* ---------- Stacked overlay menu ---------- */
.layereefc3-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 32, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease;
  z-index: 70;
}

.layereefc3-backdrop-visible {
  opacity: 1;
  visibility: visible;
}

.layereefc3-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82%, 320px);
  height: 100%;
  background: linear-gradient(180deg, #2c4054, #243240);
  border-left: 1px solid var(--layereefc3-border);
  box-shadow: var(--layereefc3-shadow-float);
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.22, 0.7, 0.25, 1);
  z-index: 80;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.layereefc3-menu-open {
  transform: translateX(0);
}

.layereefc3-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--layereefc3-border);
}

.layereefc3-menu-head img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.layereefc3-menu-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--layereefc3-light);
}

.layereefc3-menu-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--layereefc3-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.layereefc3-menu-close svg {
  width: 16px;
  height: 16px;
}

.layereefc3-menu-list {
  list-style: none;
  margin: 0;
  padding: 10px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.layereefc3-menu-list li {
  margin: 0;
}

.layereefc3-menu-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--layereefc3-text);
  background: transparent;
  transition: background 0.18s ease, transform 0.16s ease, color 0.16s ease;
}

.layereefc3-menu-link:hover,
.layereefc3-menu-link:focus {
  background: rgba(123, 104, 238, 0.18);
  color: var(--layereefc3-light);
}

.layereefc3-menu-link:active {
  transform: translateX(2px);
}

.layereefc3-menu-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--layereefc3-plum);
}

.layereefc3-menu-link small {
  display: block;
  font-size: 11px;
  color: var(--layereefc3-text-dim);
  font-weight: 400;
  margin-top: 1px;
}

.layereefc3-menu-link-current {
  background: rgba(123, 104, 238, 0.22);
  color: var(--layereefc3-light);
  box-shadow: inset 3px 0 0 var(--layereefc3-primary);
}

.layereefc3-menu-promo-row {
  margin: 6px 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ---------- Main / sections ---------- */
.layereefc3-main {
  padding: 12px 13px 0;
  padding-bottom: calc(var(--layereefc3-bottomnav-h) + 32px);
}

.layereefc3-section {
  margin-bottom: 22px;
}

.layereefc3-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  gap: 10px;
}

.layereefc3-section-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.layereefc3-section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--layereefc3-primary), var(--layereefc3-plum));
}

.layereefc3-section-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--layereefc3-plum);
  margin-bottom: 4px;
  font-weight: 700;
}

/* ---------- Hero / Carousel ---------- */
.layereefc3-hero {
  position: relative;
  border-radius: var(--layereefc3-radius-l);
  overflow: hidden;
  box-shadow: var(--layereefc3-shadow-card);
  margin-bottom: 18px;
  background: #1c2a3a;
}

.layereefc3-carousel {
  position: relative;
}

.layereefc3-carousel-track {
  position: relative;
  height: 188px;
}

.layereefc3-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #1c2a3a;
}

.layereefc3-slide-active {
  opacity: 1;
}

.layereefc3-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layereefc3-carousel-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(16, 24, 36, 0.86));
  pointer-events: none;
}

.layereefc3-carousel-eyebrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--layereefc3-gold);
  background: rgba(0, 0, 0, 0.32);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 5px;
}

.layereefc3-carousel-title {
  color: var(--layereefc3-light);
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.layereefc3-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 4;
}

.layereefc3-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.2s ease, transform 0.2s ease;
  border: 0;
  padding: 0;
}

.layereefc3-dot-active {
  background: var(--layereefc3-pink);
  transform: scale(1.3);
}

/* ---------- Hero CTA bar ---------- */
.layereefc3-cta-bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

.layereefc3-cta-large {
  min-height: 46px;
  font-size: 14px;
}

/* ---------- Intro block ---------- */
.layereefc3-intro {
  background: linear-gradient(140deg, rgba(123, 104, 238, 0.16), rgba(147, 112, 219, 0.08));
  border: 1px solid var(--layereefc3-border);
  border-radius: var(--layereefc3-radius-m);
  padding: 14px 14px;
  margin-bottom: 18px;
}

.layereefc3-intro p {
  margin: 0;
  color: var(--layereefc3-text);
  font-size: 13.5px;
}

.layereefc3-intro strong {
  color: var(--layereefc3-light);
}

/* ---------- Game category ---------- */
.layereefc3-cat {
  margin-bottom: 24px;
}

.layereefc3-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  gap: 10px;
}

.layereefc3-cat-badge {
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--layereefc3-bg);
  background: linear-gradient(120deg, var(--layereefc3-plum), var(--layereefc3-pink));
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 800;
}

.layereefc3-cat-count {
  font-size: 11.5px;
  color: var(--layereefc3-text-dim);
  font-weight: 600;
}

.layereefc3-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

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

@media (min-width: 395px) {
  .layereefc3-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.layereefc3-game-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: center;
  transition: transform 0.16s ease;
}

.layereefc3-game-tile:active {
  transform: translateY(1px);
}

.layereefc3-game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(150deg, #2a3b50, #20303f);
  border: 1px solid var(--layereefc3-border);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.32);
}

.layereefc3-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layereefc3-game-name {
  font-size: 10.5px;
  color: var(--layereefc3-text-muted);
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 25px;
}

/* ---------- Promo CTA strip ---------- */
.layereefc3-promo-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--layereefc3-primary), var(--layereefc3-primary-soft));
  color: var(--layereefc3-light);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: 0 6px 16px rgba(123, 104, 238, 0.4);
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.layereefc3-promo-cta:active {
  transform: translateY(1px);
}

.layereefc3-promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ---------- Content modules ---------- */
.layereefc3-module {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--layereefc3-border);
  border-radius: var(--layereefc3-radius-m);
  padding: 15px 15px;
  margin-bottom: 16px;
}

.layereefc3-module h2 {
  font-size: 16px;
  margin-bottom: 9px;
}

.layereefc3-module p {
  font-size: 13.5px;
  color: var(--layereefc3-text);
  margin-bottom: 0.7em;
}

.layereefc3-module ul,
.layereefc3-module ol {
  font-size: 13.5px;
  color: var(--layereefc3-text);
}

.layereefc3-module h3 {
  font-size: 14px;
  margin-top: 0.6em;
  margin-bottom: 6px;
  color: var(--layereefc3-plum);
}

.layereefc3-module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 10px;
}

.layereefc3-fact {
  background: rgba(123, 104, 238, 0.12);
  border: 1px solid var(--layereefc3-border);
  border-radius: 11px;
  padding: 10px 11px;
}

.layereefc3-fact-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--layereefc3-light);
  margin-bottom: 3px;
}

.layereefc3-fact-text {
  font-size: 12px;
  color: var(--layereefc3-text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Step list */
.layereefc3-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 8px 0 0;
}

.layereefc3-steps li {
  counter-increment: step;
  position: relative;
  padding: 6px 0 6px 36px;
  font-size: 13.5px;
  color: var(--layereefc3-text);
}

.layereefc3-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 5px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--layereefc3-primary), var(--layereefc3-primary-soft));
  color: var(--layereefc3-light);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inline link emphasis */
.layereefc3-body-link {
  color: var(--layereefc3-pink);
  font-weight: 700;
  border-bottom: 1px dashed rgba(255, 182, 193, 0.5);
}

.layereefc3-body-link:hover {
  color: var(--layereefc3-light);
}

/* ---------- Extended footer (two-column directory) ---------- */
.layereefc3-ext-footer {
  margin-top: 24px;
  border-top: 1px solid var(--layereefc3-border);
  padding-top: 18px;
}

.layereefc3-ext-brand {
  background: linear-gradient(140deg, rgba(123, 104, 238, 0.16), rgba(221, 160, 221, 0.08));
  border: 1px solid var(--layereefc3-border);
  border-radius: var(--layereefc3-radius-m);
  padding: 14px;
  margin-bottom: 16px;
}

.layereefc3-ext-brand h2 {
  font-size: 15px;
  margin-bottom: 7px;
}

.layereefc3-ext-brand p {
  font-size: 12.5px;
  color: var(--layereefc3-text-muted);
  margin: 0;
}

.layereefc3-ext-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.layereefc3-ext-promos .layereefc3-promo-cta {
  font-size: 12px;
  min-height: 40px;
  padding: 8px 10px;
  background: linear-gradient(120deg, var(--layereefc3-primary-soft), var(--layereefc3-primary));
}

.layereefc3-ext-promos .layereefc3-promo-cta:nth-child(5) {
  grid-column: span 2;
}

.layereefc3-directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.layereefc3-directory a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--layereefc3-border-soft);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--layereefc3-light);
  line-height: 1.25;
  transition: background 0.18s ease, transform 0.16s ease;
}

.layereefc3-directory a:hover,
.layereefc3-directory a:focus {
  background: rgba(123, 104, 238, 0.2);
  color: var(--layereefc3-light);
}

.layereefc3-directory a:active {
  transform: translateY(1px);
}

.layereefc3-directory a small {
  color: var(--layereefc3-text-dim);
  font-weight: 400;
  font-size: 10.5px;
}

.layereefc3-disclaimer {
  font-size: 11px;
  color: var(--layereefc3-text-dim);
  line-height: 1.5;
  border-top: 1px dashed rgba(221, 160, 221, 0.25);
  padding-top: 11px;
  margin-bottom: 14px;
}

/* ---------- Universal footer ---------- */
.layereefc3-footer {
  text-align: center;
  padding: 14px 14px calc(var(--layereefc3-bottomnav-h) + 18px);
  font-size: 11.5px;
  color: var(--layereefc3-text-dim);
  border-top: 1px solid var(--layereefc3-border);
  background: rgba(0, 0, 0, 0.18);
}

.layereefc3-footer p {
  margin: 0;
}

/* ---------- Bottom navigation (brand emphasis band) ---------- */
.layereefc3-bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: linear-gradient(180deg, rgba(54, 75, 98, 0.98), rgba(36, 50, 64, 0.99));
  border-top: 1px solid var(--layereefc3-border);
  box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.35);
  z-index: 65;
  min-height: var(--layereefc3-bottomnav-h);
  padding: 6px 4px;
}

.layereefc3-bottomnav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--layereefc3-primary), var(--layereefc3-plum), var(--layereefc3-primary), transparent);
  opacity: 0.7;
}

.layereefc3-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 2px;
  min-height: 56px;
  color: var(--layereefc3-text-muted);
  font-size: 10px;
  font-weight: 600;
  border-radius: 12px;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
  position: relative;
}

.layereefc3-nav-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.18s ease;
}

.layereefc3-nav-btn:active {
  transform: translateY(1px);
}

.layereefc3-nav-btn-current {
  color: var(--layereefc3-light);
}

.layereefc3-nav-btn-current svg {
  transform: translateY(-3px);
}

.layereefc3-nav-btn-current::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--layereefc3-primary), var(--layereefc3-pink));
}

/* Filled (active state) icon variant for current tab */
.layereefc3-nav-btn-current .layereefc3-icon-fill {
  display: block;
}

.layereefc3-nav-btn-current .layereefc3-icon-line {
  display: none;
}

.layereefc3-nav-btn .layereefc3-icon-fill {
  display: none;
}

.layereefc3-nav-btn .layereefc3-icon-line {
  display: block;
}

/* Promo nav buttons get brand tint */
.layereefc3-nav-btn-promo {
  color: var(--layereefc3-pink);
}

/* ---------- Restrained glow feedback ---------- */
.layereefc3-glow-flash {
  box-shadow: var(--layereefc3-glow) !important;
  transition: box-shadow 0.18s ease !important;
}

/* ---------- Helpers ---------- */
.layereefc3-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.layereefc3-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.layereefc3-tag {
  font-size: 10.5px;
  color: var(--layereefc3-light);
  background: rgba(147, 112, 219, 0.25);
  border: 1px solid var(--layereefc3-border-soft);
  padding: 3px 8px;
  border-radius: 999px;
}

/* ---------- Responsive tweaks inside 320-430 ---------- */
@media (max-width: 359px) {
  .layereefc3-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .layereefc3-game-name {
    font-size: 10px;
  }
  .layereefc3-header {
    padding: 8px 11px;
  }
  .layereefc3-brand-name {
    font-size: 15px;
  }
  .layereefc3-btn {
    padding: 7px 10px;
    font-size: 11.5px;
  }
}
