/**
 * [lynk_game_switcher] — game switcher strip · dark emerald theme
 */

/* ── Wrapper ─────────────────────────────────────────────── */
.lynk-game-switcher {
  width: min(100%, 760px);
  margin: 32px auto 24px;
  padding: 0 10px;
  font-family: "Quicksand", system-ui, sans-serif;
}

/* ── Label ───────────────────────────────────────────────── */
.lynk-game-switcher__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(110, 231, 183, 0.55);
  margin-bottom: 10px;
  padding-left: 2px;
}

.lynk-game-switcher__label::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 7px rgba(52, 211, 153, 1);
  flex-shrink: 0;
}

/* ── Strip ───────────────────────────────────────────────── */
.lynk-game-switcher__strip {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

/* ── Card base ───────────────────────────────────────────── */
.lynk-game-switcher__item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  text-decoration: none;
  color: rgba(209, 250, 229, 0.80);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.10),
    0 4px 20px rgba(0, 0, 0, 0.22);

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.18s ease,
    color 0.25s ease;
}

/* Shine overlay */
.lynk-game-switcher__item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

/* ── Icon ────────────────────────────────────────────────── */
.lynk-game-switcher__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.20);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.lynk-game-switcher__icon svg {
  width: 18px;
  height: 18px;
  stroke: rgba(110, 231, 183, 0.85);
  transition: stroke 0.25s ease;
}

/* ── Text ────────────────────────────────────────────────── */
.lynk-game-switcher__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.lynk-game-switcher__name {
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  color: rgba(236, 253, 245, 0.92);
}

.lynk-game-switcher__tag {
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(110, 231, 183, 0.50);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Arrow ───────────────────────────────────────────────── */
.lynk-game-switcher__arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 211, 153, 0.10);
  border: 1px solid rgba(52, 211, 153, 0.20);
  color: rgba(110, 231, 183, 0.70);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.20s ease, transform 0.20s ease;
}

.lynk-game-switcher__arrow svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  display: block;
}

/* ══ HOVER — default (emerald/tap) ═══════════════════════ */
.lynk-game-switcher__item:hover {
  background: linear-gradient(
    145deg,
    rgba(52, 211, 153, 0.15) 0%,
    rgba(16, 185, 129, 0.06) 100%
  );
  border-color: rgba(52, 211, 153, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 6px 28px rgba(52, 211, 153, 0.16),
    0 2px 8px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
  color: #ecfdf5;
}

.lynk-game-switcher__item:hover .lynk-game-switcher__icon {
  background: rgba(52, 211, 153, 0.20);
  border-color: rgba(52, 211, 153, 0.38);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.25);
  transform: scale(1.08);
}

.lynk-game-switcher__item:hover .lynk-game-switcher__icon svg {
  stroke: #6ee7b7;
}

.lynk-game-switcher__item:hover .lynk-game-switcher__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ══ TAP variant ═════════════════════════════════════════ */
.lynk-game-switcher__item.lynk-gs--tap .lynk-game-switcher__icon {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.20);
}

.lynk-game-switcher__item.lynk-gs--tap:hover {
  background: linear-gradient(
    145deg,
    rgba(52, 211, 153, 0.16) 0%,
    rgba(16, 185, 129, 0.07) 100%
  );
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 6px 28px rgba(52, 211, 153, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.22);
  color: #ecfdf5;
}

.lynk-game-switcher__item.lynk-gs--tap:hover .lynk-game-switcher__tag {
  color: rgba(110, 231, 183, 0.65);
}

.lynk-game-switcher__item.lynk-gs--tap:hover .lynk-game-switcher__arrow {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.30);
  color: rgba(110, 231, 183, 0.90);
}

/* ══ BEAT variant (purple) ═══════════════════════════════ */
.lynk-game-switcher__item.lynk-gs--beat .lynk-game-switcher__icon {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.20);
}

.lynk-game-switcher__item.lynk-gs--beat .lynk-game-switcher__icon svg {
  stroke: rgba(196, 181, 253, 0.85);
}

.lynk-game-switcher__item.lynk-gs--beat:hover {
  background: linear-gradient(
    145deg,
    rgba(168, 85, 247, 0.16) 0%,
    rgba(139, 92, 246, 0.07) 100%
  );
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 6px 28px rgba(168, 85, 247, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.22);
  color: #f5f3ff;
}

.lynk-game-switcher__item.lynk-gs--beat:hover .lynk-game-switcher__icon {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.40);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.28);
}

.lynk-game-switcher__item.lynk-gs--beat:hover .lynk-game-switcher__icon svg {
  stroke: #c4b5fd;
}

.lynk-game-switcher__item.lynk-gs--beat:hover .lynk-game-switcher__tag {
  color: rgba(196, 181, 253, 0.60);
}

.lynk-game-switcher__item.lynk-gs--beat:hover .lynk-game-switcher__arrow {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.30);
  color: rgba(196, 181, 253, 0.90);
}

/* ══ PUZZLE variant (amber) ══════════════════════════════ */
.lynk-game-switcher__item.lynk-gs--puzzle .lynk-game-switcher__icon {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.20);
}

.lynk-game-switcher__item.lynk-gs--puzzle .lynk-game-switcher__icon svg {
  stroke: rgba(253, 224, 71, 0.80);
}

.lynk-game-switcher__item.lynk-gs--puzzle:hover {
  background: linear-gradient(
    145deg,
    rgba(251, 191, 36, 0.14) 0%,
    rgba(245, 158, 11, 0.06) 100%
  );
  border-color: rgba(251, 191, 36, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 6px 28px rgba(251, 191, 36, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.22);
  color: #fef9c3;
}

.lynk-game-switcher__item.lynk-gs--puzzle:hover .lynk-game-switcher__icon {
  background: rgba(251, 191, 36, 0.20);
  border-color: rgba(251, 191, 36, 0.38);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.22);
}

.lynk-game-switcher__item.lynk-gs--puzzle:hover .lynk-game-switcher__icon svg {
  stroke: #fde047;
}

.lynk-game-switcher__item.lynk-gs--puzzle:hover .lynk-game-switcher__tag {
  color: rgba(253, 224, 71, 0.58);
}

.lynk-game-switcher__item.lynk-gs--puzzle:hover .lynk-game-switcher__arrow {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.28);
  color: rgba(253, 224, 71, 0.90);
}

/* ── Mobile ≤ 480px ──────────────────────────────────────── */
@media (max-width: 480px) {
  .lynk-game-switcher {
    padding: 0;
  }

  .lynk-game-switcher__strip {
    gap: 8px;
  }

  .lynk-game-switcher__item {
    padding: 12px 12px;
    gap: 10px;
    border-radius: 16px;
  }

  .lynk-game-switcher__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .lynk-game-switcher__icon svg {
    width: 16px;
    height: 16px;
  }

  .lynk-game-switcher__name {
    font-size: 0.78rem;
  }

  .lynk-game-switcher__tag {
    display: none;
  }

  .lynk-game-switcher__arrow {
    display: none;
  }
}

/* ── Very small ≤ 360px ──────────────────────────────────── */
@media (max-width: 360px) {
  .lynk-game-switcher__strip {
    gap: 6px;
  }

  .lynk-game-switcher__item {
    padding: 10px 8px;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
    border-radius: 14px;
  }

  .lynk-game-switcher__text {
    align-items: center;
  }

  .lynk-game-switcher__name {
    font-size: 0.70rem;
  }
}
