/* GamesHub Portal Design System — Obsidian Arcade & Cloud Deck */

::selection {
  background-color: var(--primary-color);
  color: #fff;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary-color) 65%, transparent);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

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

html,
body {
  margin: 0;
  color: var(--text-color);
  background-color: var(--bg-color);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: var(--font-family, "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: var(--font-size, 16px);
  color: var(--text-color);
  background-color: var(--bg-color);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -15%, color-mix(in srgb, var(--primary-color) 18%, transparent), transparent),
    radial-gradient(ellipse 60% 45% at 85% 95%, color-mix(in srgb, var(--accent-color) 12%, transparent), transparent),
    linear-gradient(to right, color-mix(in srgb, var(--text-color) 2.5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text-color) 2.5%, transparent) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-position: center;
  min-height: 100vh;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}

/* ================= NAVBAR ================= */
.navbar-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 18px 0;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 7px 8px 7px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2-color) 82%, transparent);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid color-mix(in srgb, var(--text-color) 11%, transparent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32), inset 0 1px 0 color-mix(in srgb, var(--text-color) 8%, transparent);
}

.navbar.navbar-proxy {
  border-radius: 0;
  max-width: none;
  border: 1px solid var(--border-color);
  position: relative;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text-color);
  padding: 4px 6px 4px 2px;
}

.logo {
  height: 28px;
  width: 28px;
  display: block;
  filter: drop-shadow(0 2px 8px color-mix(in srgb, var(--primary-color) 45%, transparent));
}

.navbar-title {
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.navbar-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
}

.navbar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--text-color) 70%, transparent);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.navbar-link i,
.navbar-link svg {
  font-size: 0.9rem;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.navbar-link:hover,
.navbar-link:focus-visible {
  color: var(--text-color);
  background: color-mix(in srgb, var(--text-color) 9%, transparent);
  outline: none;
}

.navbar-link[aria-current="page"] {
  color: var(--text-color);
  font-weight: 600;
  background: color-mix(in srgb, var(--primary-color) 24%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary-color) 42%, transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.nav-panic-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary-color);
  background: color-mix(in srgb, var(--text-color) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
}

.nav-panic-pill kbd {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  padding: 1px 5px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--bg-color) 70%, transparent);
  color: var(--text-color);
  border: 1px solid color-mix(in srgb, var(--text-color) 14%, transparent);
}

.nav-panic-pill:hover {
  color: #fff;
  background: #e94560;
  border-color: #e94560;
}

.nav-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 55%, var(--accent-color)));
  box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-color) 42%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--primary-color) 55%, transparent);
}

@media (max-width: 960px) {
  .navbar-title,
  .navbar-text,
  .nav-panic-pill span {
    display: none;
  }
  .navbar-link {
    padding: 9px 11px;
  }
  .navbar {
    padding-left: 12px;
  }
}

@media (max-width: 520px) {
  .navbar-container {
    padding: 10px 10px 0;
  }
  .navbar {
    gap: 4px;
    padding: 6px;
  }
  .navbar-links {
    justify-content: space-between;
  }
  .navbar-link {
    padding: 8px 8px;
  }
  .nav-panic-pill {
    display: none;
  }
  .nav-cta {
    padding: 8px 12px;
  }
}

/* ================= BUTTONS & INPUTS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary-color);
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid color-mix(in srgb, var(--primary-color) 55%, var(--border-color));
  color: var(--text-color);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color);
  color: #fff;
}

.btn.active {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.btn:not(.active):not(.btn-outline):not(.btn-danger):not(.btn-primary) {
  background: color-mix(in srgb, var(--bg-2-color) 85%, transparent);
  color: var(--text-secondary-color);
  border-color: var(--border-color);
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.btn:active {
  transform: scale(0.97);
}

.input {
  padding: 10px 14px;
  background: color-mix(in srgb, var(--bg-color) 75%, var(--bg-2-color));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-color);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent);
}

/* ================= HOME LAYOUT & MESSAGE CAROUSEL ================= */
.container {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
  justify-content: center;
  flex-direction: column;
  padding: 36px 20px 28px;
  z-index: 2;
}

.centered-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  z-index: 2;
  margin-top: 28px;
  padding: 0 18px;
  width: 100%;
}

.hero-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 980px;
  margin-bottom: 22px;
  animation: heroEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-color) 28%, transparent);
  margin-bottom: 14px;
}

.carousel-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.carousel-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: clamp(3.1rem, 5.2vw, 4.1rem);
}

#rng-text {
  font-family: var(--font-display, "Syne", "Outfit", sans-serif);
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  padding: 4px 12px;
  background: linear-gradient(130deg, var(--text-color) 15%, var(--primary-color) 62%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin: 0;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), filter 0.28s ease;
  will-change: transform, opacity;
}

#rng-text.is-switching {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  filter: blur(4px);
}

.carousel-sub {
  margin-top: 8px;
  font-size: 0.94rem;
  color: var(--text-secondary-color);
  max-width: 540px;
  min-height: 1.45em;
  transition: opacity 0.24s ease;
}

.carousel-sub.is-switching {
  opacity: 0;
}

.carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2-color) 72%, transparent);
  border: 1px solid var(--border-color);
}

.carousel-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary-color);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.78rem;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  color: var(--text-color);
  background: color-mix(in srgb, var(--text-color) 10%, transparent);
  outline: none;
}

.carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: color-mix(in srgb, var(--text-color) 22%, transparent);
  cursor: pointer;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  background: color-mix(in srgb, var(--text-color) 48%, transparent);
  outline: none;
}

.carousel-dot[aria-selected="true"] {
  width: 24px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* ================= OMNIBOX SEARCH BAR ================= */
.search-container {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg-2-color) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 100%;
  max-width: 660px;
  height: 58px;
  border-radius: 18px;
  padding: 0 8px 0 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  border: 1px solid color-mix(in srgb, var(--text-color) 13%, transparent);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 color-mix(in srgb, var(--text-color) 7%, transparent);
}

.search-container #proxy-form {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
}

.search-container .search {
  width: 100%;
  height: 52px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
  border: none;
  color: var(--text-color);
  outline: none;
}

.search-container input {
  width: 100%;
}

.search-container:focus-within {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 22%, transparent), 0 18px 46px rgba(0, 0, 0, 0.38);
}

.search-container .search::placeholder {
  color: var(--text-placeholder-color);
  opacity: 1;
}

.search-container > i,
.search-container .search-lead-icon {
  color: var(--primary-color);
  margin-right: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-kbd {
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--text-secondary-color);
  background: color-mix(in srgb, var(--text-color) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-color) 11%, transparent);
  pointer-events: none;
  flex-shrink: 0;
}

.search-go-btn {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 60%, var(--accent-color)));
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.search-go-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .search-kbd {
    display: none;
  }
  .search-container {
    height: 54px;
    padding-left: 14px;
  }
}

/* ================= CLOUD GAMING LAUNCHPAD & BENTO LINKS ================= */
.home-sections {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  max-width: 960px;
  margin-top: 28px;
}

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

.shortcuts-label,
.section-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cloud-launchpad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.cloud-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
  background: color-mix(in srgb, var(--bg-2-color) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-color) 11%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  font-family: inherit;
  color: var(--text-color);
}

.cloud-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cloud-card.gfn::before {
  background: radial-gradient(circle at 0% 50%, #76b900, transparent 70%);
}

.cloud-card.luna::before {
  background: radial-gradient(circle at 0% 50%, #a855f7, transparent 70%);
}

.cloud-card.xbox::before {
  background: radial-gradient(circle at 0% 50%, #107c10, transparent 70%);
}

.cloud-card.android::before {
  background: radial-gradient(circle at 0% 50%, #3ddc84, transparent 70%);
}

.cloud-card:hover,
.cloud-card:focus-visible {
  transform: translateY(-3px);
  outline: none;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.cloud-card.gfn:hover,
.cloud-card.gfn:focus-visible {
  border-color: #76b900;
}

.cloud-card.luna:hover,
.cloud-card.luna:focus-visible {
  border-color: #a855f7;
}

.cloud-card.xbox:hover,
.cloud-card.xbox:focus-visible {
  border-color: #2ca243;
}

.cloud-card.android:hover,
.cloud-card.android:focus-visible {
  border-color: #3ddc84;
}

.cloud-card:hover::before {
  opacity: 0.24;
}

.cloud-badge-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}

.cloud-card.gfn .cloud-badge-icon {
  background: linear-gradient(135deg, #76b900, #3e7a00);
  box-shadow: 0 6px 18px rgba(118, 185, 0, 0.32);
}

.cloud-card.luna .cloud-badge-icon {
  background: linear-gradient(135deg, #9333ea, #6366f1);
  box-shadow: 0 6px 18px rgba(147, 51, 234, 0.35);
}

.cloud-card.xbox .cloud-badge-icon {
  background: linear-gradient(135deg, #107c10, #2ca243);
  box-shadow: 0 6px 18px rgba(16, 124, 16, 0.35);
}

.cloud-card.android .cloud-badge-icon {
  background: linear-gradient(135deg, #3ddc84, #059669);
  color: #052e16;
  box-shadow: 0 6px 18px rgba(61, 220, 132, 0.32);
}

.cloud-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.cloud-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cloud-meta strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cloud-pill {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-mono, monospace);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-color) 9%, transparent);
  color: var(--text-secondary-color);
}

.cloud-meta > span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary-color);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cloud-launch-arrow {
  color: var(--text-secondary-color);
  font-size: 0.9rem;
  transition: transform 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

.cloud-card:hover .cloud-launch-arrow {
  transform: translate(2px, -2px);
  color: var(--text-color);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 16px;
  border-radius: 18px;
  text-align: left;
  background: color-mix(in srgb, var(--bg-2-color) 76%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.quick-link:hover,
.quick-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
  outline: none;
}

.quick-link-icon,
.quick-link i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  margin-bottom: 6px;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 50%, var(--accent-color)));
}

.quick-link strong {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.quick-link span {
  font-size: 0.79rem;
  color: var(--text-secondary-color);
  line-height: 1.38;
}

.quick-link.featured {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--primary-color) 26%, var(--bg-2-color)),
    color-mix(in srgb, var(--bg-2-color) 82%, transparent)
  );
  border-color: color-mix(in srgb, var(--primary-color) 38%, transparent);
}

@media (max-width: 980px) {
  .cloud-launchpad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .cloud-launchpad {
    grid-template-columns: 1fr;
  }
  .quick-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* ================= SHORTCUT DOCK ================= */
.shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.shortcut {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 88px;
  padding: 10px 10px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-2-color) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.shortcut-add {
  background-color: transparent;
  color: var(--text-secondary-color);
  border: 1px dashed color-mix(in srgb, var(--primary-color) 55%, var(--border-color));
}

.shortcut-add:hover {
  background-color: color-mix(in srgb, var(--primary-color) 16%, transparent) !important;
  color: var(--text-color);
  border-style: solid;
}

.shortcut-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background-color: color-mix(in srgb, var(--text-color) 7%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shortcut-icon img {
  width: 62%;
  height: 62%;
  display: block;
  object-fit: contain;
}

.shortcut:hover,
.shortcut:focus-visible {
  cursor: pointer;
  transform: translateY(-2px);
  border-color: var(--primary-color);
  outline: none;
}

.shortcut-name {
  max-width: 98px;
  margin-top: 7px;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.9;
}

.shortcut-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: none;
  background: color-mix(in srgb, var(--bg-color) 80%, transparent);
  color: var(--text-secondary-color);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.shortcut:hover .shortcut-remove,
.shortcut:focus-within .shortcut-remove {
  opacity: 0.85;
}

.shortcut-remove:hover,
.shortcut-remove:focus-visible {
  opacity: 1;
  color: #fff;
  background: #e94560;
}

@media (hover: none) {
  .shortcut-remove {
    opacity: 0.75;
  }
}

/* ================= GAMES CATALOG (/science) ================= */
#games-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1160px;
  margin: 26px auto 16px;
  padding: 0 8px;
}

#games-list .game-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-2-color) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  content-visibility: auto;
  contain-intrinsic-size: 180px 195px;
}

#games-list .game-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

#games-list .game-item p {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#games-list .game-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

#games-list .game-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 11px;
  background: color-mix(in srgb, var(--bg-color) 65%, transparent);
  transition: transform 0.22s ease;
}

#games-list .game-item:hover img {
  transform: scale(1.04);
}

#games-list .game-item:focus-visible {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

/* ================= GPU-FRIENDLY AMBIENT BLOBS ================= */
#blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.gradiant,
.gradiant2,
.gradiant3 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.gradiant {
  width: 560px;
  height: 560px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, color-mix(in srgb, var(--blob-1, var(--primary-color)) 32%, transparent) 0%, transparent 70%);
  animation: blobDriftA 34s infinite alternate ease-in-out;
}

.gradiant2 {
  width: 500px;
  height: 500px;
  bottom: -140px;
  right: -100px;
  background: radial-gradient(circle, color-mix(in srgb, var(--blob-2, var(--accent-color)) 26%, transparent) 0%, transparent 70%);
  animation: blobDriftB 38s infinite alternate ease-in-out;
}

.gradiant3 {
  width: 440px;
  height: 440px;
  top: 35%;
  left: 42%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blob-3, var(--secondary-color)) 30%, transparent) 0%, transparent 70%);
  animation: blobDriftC 42s infinite alternate ease-in-out;
}

@keyframes blobDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(18vw, 14vh, 0) scale(1.12); }
}

@keyframes blobDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-16vw, -12vh, 0) scale(1.1); }
}

@keyframes blobDriftC {
  0% { transform: translate3d(0, 0, 0) scale(0.95); }
  100% { transform: translate3d(-12vw, 10vh, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .gradiant,
  .gradiant2,
  .gradiant3,
  .carousel-kicker-dot {
    animation: none !important;
  }
}

/* ================= FOOTER, AUTOCOMPLETE, TOASTS & PANIC ================= */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 20px 16px 26px;
  font-size: 0.83rem;
  color: var(--text-secondary-color);
  z-index: 2;
}

.link {
  color: var(--text-secondary-color);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.18s ease;
  font-weight: 500;
  cursor: pointer;
}

.link:hover {
  color: var(--primary-color);
}

#autocomplete {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  margin: 0 auto;
  background: color-mix(in srgb, var(--bg-2-color) 97%, #05060a);
  border: 1px solid color-mix(in srgb, var(--text-color) 15%, transparent);
  border-radius: 14px;
  width: 100%;
  max-width: 660px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 999;
  padding: 6px;
  animation: slideDown 0.16s ease;
  display: none;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.58);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

#autocomplete div {
  padding: 9px 14px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
  transition: background-color 0.12s ease, color 0.12s ease;
  font-size: 0.9rem;
  font-family: inherit;
}

#autocomplete div:hover,
#autocomplete div.is-active {
  background: var(--primary-color);
  color: #fff;
}

#particles-js {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.badge {
  background: color-mix(in srgb, var(--primary-color) 25%, var(--bg-2-color));
  border: 1px solid color-mix(in srgb, var(--primary-color) 40%, transparent);
  color: var(--text-color);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
}

.badge-container {
  display: flex;
  gap: 5px;
}

#panicBtn {
  position: fixed;
  display: none;
  left: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  padding: 8px 14px;
  outline: none;
  background-color: #e94560;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 999px;
  z-index: 1001;
  font-family: inherit;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.38);
}

#panicBtn:active {
  transform: scale(0.95);
}

@media (max-width: 960px) {
  #panicBtn {
    display: block;
  }
}

/* Native zero-dependency toast notifications */
.gh-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  max-width: min(340px, calc(100vw - 110px));
  padding: 11px 16px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--bg-2-color) 92%, #000);
  border: 1px solid color-mix(in srgb, var(--primary-color) 45%, var(--border-color));
  color: var(--text-color);
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  animation: toastIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gh-toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

option {
  color: var(--text-color);
  background: var(--bg-2-color);
  padding: 10px;
}
