:root {
  --portal-bg: #0d1017;
  --portal-surface: #171b25;
  --portal-raised: #202633;
  --portal-soft: #2a3140;
  --portal-line: rgba(255, 255, 255, 0.1);
  --portal-text: #f7f9ff;
  --portal-muted: #a9b2c5;
  --portal-blue: #4da8ff;
  --portal-purple: #8b6cff;
  --portal-lime: #b8ff39;
  --portal-pink: #ff5f91;
  --portal-yellow: #ffd65a;
  --portal-cyan: #52e7ff;
  --paper: var(--portal-bg);
  --ink: var(--portal-text);
  --blue: var(--portal-blue);
  --blue-dark: #247ed3;
  --lime: var(--portal-lime);
  --coral: var(--portal-pink);
  --white: var(--portal-raised);
  --muted: var(--portal-muted);
  --line: var(--portal-line);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.36);
}

html {
  color-scheme: dark;
  background: var(--portal-bg);
}

body {
  color: var(--portal-text);
  background:
    radial-gradient(circle at 8% 4%, rgba(77, 168, 255, 0.13), transparent 27rem),
    radial-gradient(circle at 92% 25%, rgba(139, 108, 255, 0.12), transparent 30rem),
    var(--portal-bg);
  background-size: auto;
  font-family: "DM Sans", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

main {
  width: min(1320px, calc(100% - 44px));
}

.site-header {
  min-height: 76px;
  padding: 10px max(22px, calc((100% - 1420px) / 2));
  border: 0;
  border-bottom: 1px solid var(--portal-line);
  background: rgba(10, 13, 19, 0.9);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  color: var(--portal-text);
}

.brand {
  flex: 0 0 auto;
  gap: 10px;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.22rem;
  letter-spacing: -0.05em;
}

.brand img {
  display: block;
  width: 43px;
  height: 43px;
  filter: drop-shadow(0 5px 10px rgba(87, 111, 255, 0.3));
  transition: transform 160ms ease;
}

.brand:hover img {
  transform: rotate(-6deg) scale(1.06);
}

.brand-name > span {
  color: var(--portal-cyan);
}

.header-search-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(360px, 29vw);
  min-height: 44px;
  margin-left: 28px;
  padding: 9px 11px;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  background: #151a24;
  color: #8f9aae;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.header-search-link:hover {
  border-color: rgba(82, 231, 255, 0.55);
  background: #1b2130;
}

.header-search-link > span:first-child {
  font-size: 1.3rem;
}

.header-search-link > span:nth-child(2) {
  flex: 1;
  font-size: 0.86rem;
  font-weight: 600;
}

.header-search-link kbd {
  padding: 2px 7px;
  border: 1px solid var(--portal-line);
  border-radius: 5px;
  background: #252c3a;
  color: #c9d1df;
  font: 700 0.72rem/1.5 "DM Sans", sans-serif;
}

nav {
  margin-left: auto;
  gap: clamp(12px, 2vw, 26px);
  color: #c7cfde;
  font-size: 0.84rem;
}

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

nav a::after {
  bottom: 1px;
  background: var(--portal-cyan);
}

.nav-shortlist {
  min-height: 44px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(184, 255, 57, 0.45);
  border-radius: 10px;
  background: rgba(184, 255, 57, 0.1);
  box-shadow: none;
  color: var(--portal-text);
}

.nav-shortlist:hover {
  background: rgba(184, 255, 57, 0.18);
}

.nav-shortlist span {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: var(--portal-lime);
  color: #111722;
}

.skip-link {
  border-radius: 8px;
  background: var(--portal-lime);
  color: #111722;
}

.hero {
  isolation: isolate;
  grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  min-height: 670px;
  margin-top: 28px;
  padding: clamp(46px, 6vw, 82px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background:
    linear-gradient(110deg, rgba(11, 15, 23, 0.98) 0%, rgba(22, 29, 43, 0.94) 46%, rgba(39, 34, 72, 0.94) 100%);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--portal-text);
  overflow: hidden;
}

.hero::before {
  inset: auto auto -180px -140px;
  z-index: -2;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(82, 231, 255, 0.18);
  border-radius: 50%;
  opacity: 1;
  background:
    repeating-radial-gradient(circle, transparent 0 38px, rgba(82, 231, 255, 0.09) 39px 40px);
  mask-image: none;
}

.hero::after {
  right: -110px;
  bottom: -160px;
  z-index: -2;
  width: 500px;
  height: 500px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 108, 255, 0.35), transparent 68%);
  filter: blur(12px);
}

.hero-copy {
  align-self: center;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--portal-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(184, 255, 57, 0.38);
  border-radius: 7px;
  background: rgba(184, 255, 57, 0.08);
  color: var(--portal-lime);
}

.live-pill > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--portal-lime);
  box-shadow: 0 0 12px var(--portal-lime);
  animation: portal-pulse 1.7s ease-in-out infinite;
}

@keyframes portal-pulse {
  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(3rem, 5.1vw, 5.6rem);
  letter-spacing: -0.065em;
  line-height: 0.96;
  text-shadow: none;
}

.hero h1::after {
  content: "";
  display: block;
  width: 104px;
  height: 9px;
  margin-top: 23px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--portal-cyan), var(--portal-purple), var(--portal-pink));
  box-shadow: 0 0 28px rgba(82, 231, 255, 0.32);
}

.hero-deck {
  max-width: 590px;
  margin: 25px 0;
  color: #c5cedf;
  font-size: clamp(1rem, 1.5vw, 1.17rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.hero .primary-cta,
.hero-random {
  min-height: 54px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 900;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.hero .primary-cta {
  background: linear-gradient(135deg, #39bff1, #6565ff);
  box-shadow: 0 13px 28px rgba(62, 125, 255, 0.3);
  color: #fff;
}

.hero .primary-cta::before {
  display: none;
}

.hero .primary-cta:hover,
.hero-random:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(62, 125, 255, 0.38);
}

.hero-random {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--portal-text);
}

.hero-random:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-hidden {
  border-color: rgba(184, 255, 57, 0.42);
  background: rgba(184, 255, 57, 0.1);
  color: var(--portal-lime);
}

.hero-hidden:hover {
  background: rgba(184, 255, 57, 0.18);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-tags span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: #afb9cb;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-showcase {
  position: relative;
  z-index: 3;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(10, 13, 20, 0.72);
  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.42),
    16px 16px 0 rgba(82, 231, 255, 0.1);
  backdrop-filter: blur(16px);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.hero-showcase::before,
.hero-showcase::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 13px;
  transform: rotate(7deg);
}

.hero-showcase::before {
  top: -24px;
  right: 35px;
  width: 82px;
  height: 82px;
  border: 10px solid var(--portal-pink);
  opacity: 0.55;
}

.hero-showcase::after {
  bottom: -28px;
  left: -26px;
  width: 68px;
  height: 68px;
  background: var(--portal-lime);
  opacity: 0.26;
}

.showcase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 35px;
  padding: 0 4px 10px;
  color: var(--portal-muted);
  font-size: 0.68rem;
}

.showcase-bar > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--portal-text);
}

.showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--portal-pink);
  box-shadow: 0 0 11px var(--portal-pink);
}

.featured-tile {
  position: relative;
  display: block;
  min-height: 286px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: linear-gradient(135deg, #192b45, #49326e);
  color: var(--portal-text);
  text-decoration: none;
}

.featured-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Archivo Black", sans-serif;
  font-size: 5.8rem;
  color: rgba(255, 255, 255, 0.22);
}

.hero-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.featured-tile:hover .hero-thumb img {
  transform: scale(1.055);
}

.featured-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 8, 14, 0.96), rgba(5, 8, 14, 0.05) 68%),
    linear-gradient(to right, rgba(19, 31, 55, 0.35), transparent);
}

.featured-overlay {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.featured-overlay small {
  margin-bottom: 6px;
  padding: 5px 7px;
  border-radius: 5px;
  background: var(--portal-lime);
  color: #10151d;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.featured-overlay strong {
  font-family: "Archivo Black", sans-serif;
  font-size: 2.15rem;
  line-height: 1;
}

.featured-overlay > span {
  margin-top: 5px;
  color: #d1d8e6;
  font-size: 0.78rem;
  font-weight: 700;
}

.tile-play {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(7px);
}

.mini-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 9px;
}

.mini-tile {
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #181d27;
  color: var(--portal-text);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease;
}

.mini-tile:hover {
  border-color: rgba(82, 231, 255, 0.5);
  transform: translateY(-3px);
}

.mini-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.35;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(135deg, #2854aa, #8546a8);
  color: rgba(255, 255, 255, 0.34);
  font-family: "Archivo Black", sans-serif;
  font-size: 1.45rem;
}

.mini-tile > span:last-child {
  display: block;
  min-width: 0;
  padding: 8px 2px 2px;
}

.mini-tile strong,
.mini-tile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-tile strong {
  font-size: 0.72rem;
}

.mini-tile small {
  margin-top: 2px;
  color: var(--portal-muted);
  font-size: 0.61rem;
}

.trust-strip {
  right: clamp(46px, 6vw, 82px);
  bottom: 25px;
  left: clamp(46px, 6vw, 82px);
  color: #8490a5;
}

.trust-strip span::before {
  content: "◆";
  color: var(--portal-cyan);
}

.finder-section,
.results-section,
.collections-section,
.faq-section {
  padding: clamp(72px, 8vw, 112px) 0;
}

.section-heading {
  align-items: end;
  margin-bottom: 26px;
}

.section-heading .eyebrow,
.faq-section .eyebrow,
.collection-hero .eyebrow,
.editorial-section > .eyebrow,
.collection-cta .eyebrow {
  color: var(--portal-cyan);
}

.eyebrow {
  font-size: 0.68rem;
}

.section-heading h2,
.faq-section h2 {
  color: var(--portal-text);
  font-size: clamp(2.25rem, 4vw, 4rem);
  text-shadow: none;
}

.text-button {
  border-color: var(--portal-cyan);
  color: #c7d0e0;
}

.finder-panel {
  padding: clamp(20px, 3.6vw, 42px);
  border: 1px solid var(--portal-line);
  border-radius: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    var(--portal-surface);
  background-size: 32px 32px;
  box-shadow: var(--shadow);
}

.finder-panel::before {
  top: -16px;
  border: 1px solid rgba(82, 231, 255, 0.35);
  border-radius: 7px;
  background: #172639;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  color: var(--portal-cyan);
}

fieldset {
  border-bottom: 1px solid var(--portal-line);
}

legend {
  color: #e9edf6;
}

legend span {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--portal-blue), var(--portal-purple));
  box-shadow: 0 7px 16px rgba(79, 112, 255, 0.23);
}

.choice-row button {
  min-height: 48px;
  border: 1px solid var(--portal-line);
  border-radius: 9px;
  background: var(--portal-raised);
  box-shadow: none;
  color: #cbd3e0;
}

.choice-row button:hover {
  border-color: rgba(82, 231, 255, 0.45);
  background: #2a3343;
  color: #fff;
}

.choice-row button.is-active {
  border-color: var(--portal-cyan);
  background: linear-gradient(135deg, #2f9ed8, #5c5fe8);
  box-shadow: 0 8px 22px rgba(59, 134, 244, 0.22);
  color: #fff;
  transform: none;
}

.toggle-control {
  border: 1px solid var(--portal-line);
  border-radius: 11px;
  background: var(--portal-raised);
  box-shadow: none;
}

.toggle-control:hover {
  border-color: rgba(184, 255, 57, 0.35);
}

.toggle-control:has(input:checked) {
  border-color: rgba(184, 255, 57, 0.55);
  background: rgba(184, 255, 57, 0.09);
  box-shadow: inset 0 0 24px rgba(184, 255, 57, 0.035);
}

.toggle-control small {
  color: var(--portal-muted);
}

.toggle-ui {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #11151d;
}

.toggle-ui::after {
  background: #7d8799;
}

.toggle-control input:checked + .toggle-ui {
  background: var(--portal-lime);
}

.toggle-control input:checked + .toggle-ui::after {
  background: #11151d;
}

.preference-details {
  border-color: var(--portal-line);
}

.preference-details > summary {
  color: var(--portal-text);
}

.preference-details summary small {
  color: var(--portal-muted);
}

.finder-actions {
  margin-top: 17px;
}

.find-button,
.roulette-button {
  min-height: 55px;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
}

.find-button {
  background: linear-gradient(135deg, #36b8ef, #6260ed);
  box-shadow: 0 13px 30px rgba(63, 122, 255, 0.22);
}

.roulette-button {
  background: var(--portal-lime);
  color: #10151d;
}

.find-button::before {
  display: none;
}

.primary-cta:hover,
.find-button:hover,
.roulette-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 34px rgba(68, 123, 255, 0.28);
}

.results-section {
  position: relative;
}

.results-section::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -180px;
  z-index: -1;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 231, 255, 0.08), transparent 70%);
}

.search-box input {
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  background: var(--portal-surface);
  box-shadow: none;
  color: var(--portal-text);
}

.search-box input::placeholder {
  color: #778298;
}

.filter-chip,
.game-meta span,
.static-game-meta span {
  border: 1px solid var(--portal-line);
  border-radius: 6px;
  background: #262e3d;
  box-shadow: none;
  color: #bdc6d6;
}

.filter-chip {
  border-color: rgba(184, 255, 57, 0.35);
  background: rgba(184, 255, 57, 0.1);
  color: var(--portal-lime);
}

.game-grid,
.static-game-grid {
  gap: 18px;
}

.game-card,
.static-game-card {
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: var(--portal-surface);
  box-shadow: 0 15px 36px rgba(0, 0, 0, 0.23);
}

.game-card::before,
.static-game-card::before {
  display: none;
}

.game-card:hover,
.static-game-card:hover {
  border-color: rgba(82, 231, 255, 0.42);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(82, 231, 255, 0.12);
  transform: translateY(-6px);
}

.game-art,
.static-game-art {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--portal-line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #244a8e, #6b3a8a);
  background-size: 24px 24px, 24px 24px, auto;
}

.game-art::after,
.static-game-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 35%;
  background: linear-gradient(to top, rgba(12, 15, 22, 0.55), transparent);
  pointer-events: none;
}

.game-art img,
.static-game-art img {
  transition: transform 350ms ease;
}

.game-card:hover .game-art img,
.static-game-card:hover .static-game-art img {
  transform: scale(1.045);
}

.game-initials {
  color: rgba(255, 255, 255, 0.26);
}

.match-badge {
  border: 1px solid rgba(184, 255, 57, 0.48);
  border-radius: 6px;
  background: rgba(15, 21, 29, 0.86);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  color: var(--portal-lime);
  backdrop-filter: blur(7px);
}

.save-button {
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 10px;
  background: rgba(14, 18, 26, 0.76);
  box-shadow: 0 7px 19px rgba(0, 0, 0, 0.3);
  color: #fff;
  backdrop-filter: blur(8px);
}

.save-button.is-saved {
  border-color: var(--portal-pink);
  background: var(--portal-pink);
}

.game-body,
.static-game-body {
  background: var(--portal-surface);
}

.game-genre {
  border: 0;
  background: transparent;
  color: var(--portal-cyan);
}

.game-body h3,
.static-game-body h2 {
  color: var(--portal-text);
}

.game-body > p,
.static-game-body p,
.editorial-intro {
  color: var(--portal-muted);
}

.play-link {
  margin-inline: -18px;
  margin-bottom: -18px;
  border-top: 1px solid var(--portal-line);
  background: #1c222e;
  color: #e4e9f2;
}

.static-game-body .play-link {
  margin-inline: -19px;
  margin-bottom: -19px;
  padding-inline: 19px;
}

.play-link:hover {
  background: linear-gradient(90deg, #2e8fc4, #5758d9);
  color: #fff;
}

.load-more {
  border: 1px solid rgba(82, 231, 255, 0.4);
  border-radius: 10px;
  background: rgba(82, 231, 255, 0.08);
  box-shadow: none;
  color: var(--portal-cyan);
}

.empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: var(--portal-surface);
  color: var(--portal-muted);
}

.collection-grid {
  gap: 18px;
}

.collection-card {
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  color: #fff;
}

.collection-card:hover {
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.36);
  transform: translateY(-7px);
}

.collection-card::before {
  width: 150px;
  height: 150px;
  border: 28px solid currentColor;
  opacity: 0.08;
}

.collection-card::after {
  width: 190px;
  height: 190px;
  border: 32px solid currentColor;
  opacity: 0.08;
}

.collection-lime {
  background:
    radial-gradient(circle at 84% 15%, rgba(184, 255, 57, 0.35), transparent 13rem),
    linear-gradient(145deg, #1e4939, #152420);
}

.collection-blue {
  background:
    radial-gradient(circle at 84% 15%, rgba(82, 231, 255, 0.3), transparent 13rem),
    linear-gradient(145deg, #284279, #161e36);
}

.collection-coral {
  background:
    radial-gradient(circle at 84% 15%, rgba(255, 95, 145, 0.34), transparent 13rem),
    linear-gradient(145deg, #65354f, #291a27);
}

.collection-number {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.collection-link {
  color: var(--portal-cyan);
}

.more-collections a {
  color: #cbd5e5;
}

.how-section {
  padding: clamp(48px, 6vw, 76px);
  border: 1px solid var(--portal-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% 15%, rgba(139, 108, 255, 0.2), transparent 23rem),
    #141923;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.how-grid article {
  border: 1px solid var(--portal-line);
  background: rgba(255, 255, 255, 0.035);
}

.how-grid span {
  border: 0;
  background: linear-gradient(135deg, var(--portal-cyan), var(--portal-purple));
  box-shadow: 0 8px 20px rgba(83, 111, 255, 0.25);
  color: #fff;
}

.how-grid p {
  color: var(--portal-muted);
}

.faq-list details {
  border: 1px solid var(--portal-line);
  border-radius: 11px;
  background: var(--portal-surface);
  box-shadow: none;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--portal-line);
}

.faq-list details[open] {
  border-color: rgba(82, 231, 255, 0.38);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.faq-list p {
  color: var(--portal-muted);
}

footer {
  border-top: 1px solid var(--portal-line);
  background: #080b10;
}

.footer-brand::before {
  content: "";
  display: inline-block;
  width: 38px;
  height: 38px;
  margin: 0 9px 8px 0;
  background: url("lobbypick-logo.svg") center / contain no-repeat;
  vertical-align: middle;
}

.footer-brand p,
.legal {
  color: #aeb9ca;
}

footer .footer-brand span {
  color: #dce5f2;
}

footer .footer-links a {
  color: #aeb9ca;
}

footer .footer-links a:hover,
footer .footer-links a:focus-visible {
  color: #ffffff;
}

.shortlist-drawer,
.roulette-modal {
  border-color: var(--portal-line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    var(--portal-surface);
  background-size: 32px 32px;
  color: var(--portal-text);
}

.shortlist-drawer {
  box-shadow: -18px 0 60px rgba(0, 0, 0, 0.55);
}

.drawer-header,
.drawer-actions {
  border-color: var(--portal-line);
}

.drawer-game {
  border-color: var(--portal-line);
}

.drawer-game-thumb,
.roulette-result-card {
  border: 1px solid var(--portal-line);
  background: var(--portal-raised);
}

.drawer-game small {
  color: var(--portal-muted);
}

.icon-button {
  border: 1px solid var(--portal-line);
  background: var(--portal-raised);
  box-shadow: none;
  color: #fff;
}

.toast {
  border: 1px solid rgba(184, 255, 57, 0.5);
  background: #1e2e1b;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  color: var(--portal-lime);
}

.collection-hero {
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 20%, rgba(82, 231, 255, 0.18), transparent 21rem),
    linear-gradient(135deg, #141b29, #2d2651);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.collection-hero::before {
  border-color: rgba(82, 231, 255, 0.12);
}

.collection-hero h1 {
  color: #fff;
  text-shadow: none;
}

.collection-hero .hero-deck {
  color: #c2cad9;
}

.collection-summary {
  border: 1px solid rgba(184, 255, 57, 0.38);
  border-radius: 14px;
  background: rgba(184, 255, 57, 0.11);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  color: #fff;
  backdrop-filter: blur(10px);
}

.collection-summary strong {
  color: var(--portal-lime);
}

.editorial-section {
  color: var(--portal-text);
}

.collection-cta {
  border: 1px solid rgba(255, 95, 145, 0.35);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 95, 145, 0.24), transparent 18rem),
    #241824;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.legal-page {
  border: 1px solid var(--portal-line);
  background: var(--portal-surface);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.34);
}

.legal-page h1,
.legal-page h2 {
  color: var(--portal-text);
}

.legal-page p,
.legal-page li {
  color: var(--portal-muted);
}

:focus-visible {
  outline-color: var(--portal-lime);
}

@media (max-width: 1100px) {
  .header-search-link {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(410px, 1.1fr);
    gap: 34px;
    padding: 48px 38px 88px;
  }

  .hero h1 {
    font-size: clamp(3rem, 5.7vw, 4.6rem);
  }
}

@media (max-width: 900px) {
  main {
    width: min(100% - 30px, 1320px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 52px 38px 100px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-showcase {
    width: min(650px, 100%);
    margin: 0 auto;
    transform: none;
  }

  .toggle-grid,
  .game-grid,
  .collection-grid,
  .how-grid,
  .static-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 66px;
    padding-inline: 14px;
  }

  .brand img {
    width: 37px;
    height: 37px;
  }

  .brand-name {
    font-size: 1.06rem;
  }

  nav {
    gap: 0;
  }

  nav > a {
    display: none;
  }

  .nav-shortlist {
    min-height: 44px;
  }

  main {
    width: min(100% - 22px, 1320px);
  }

  .hero {
    min-height: auto;
    margin-top: 11px;
    padding: 38px 18px 105px;
    border-radius: 18px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 12vw, 3.7rem);
    line-height: 0.98;
  }

  .hero h1::after {
    width: 78px;
    height: 7px;
    margin-top: 18px;
  }

  .hero-deck {
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero .primary-cta,
  .hero-random {
    width: 100%;
  }

  .hero-tags {
    gap: 6px;
  }

  .hero-showcase {
    padding: 9px;
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  }

  .featured-tile {
    min-height: 235px;
  }

  .featured-overlay strong {
    font-size: 1.7rem;
  }

  .featured-overlay > span {
    max-width: 75%;
  }

  .mini-tile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .mini-tile {
    padding: 5px;
  }

  .mini-tile strong {
    font-size: 0.64rem;
  }

  .mini-tile small {
    display: none;
  }

  .trust-strip {
    right: 18px;
    bottom: 23px;
    left: 18px;
    font-size: 0.59rem;
  }

  .finder-section,
  .results-section,
  .collections-section,
  .faq-section {
    padding: 68px 0;
  }

  .finder-panel {
    padding: 20px 15px;
  }

  .finder-panel::before {
    right: 14px;
  }

  .choice-row button {
    flex: 1 1 calc(50% - 8px);
  }

  .toggle-grid,
  .game-grid,
  .collection-grid,
  .how-grid,
  .static-game-grid {
    grid-template-columns: 1fr;
  }

  .finder-actions {
    display: grid;
  }

  .game-art,
  .static-game-art {
    aspect-ratio: 16 / 9;
  }

  .collection-card {
    min-height: 280px;
  }

  .how-section {
    padding: 42px 18px;
  }

  .how-grid article,
  .how-grid article:last-child {
    grid-column: auto;
  }

  .collection-hero {
    margin-top: 11px;
  }

  .collection-summary {
    transform: none;
  }
}

/* Keep the newer discovery controls and card actions inside the dark portal palette. */
.discovery-tools {
  border: 1px solid var(--portal-line);
  background:
    linear-gradient(135deg, rgba(77, 168, 255, 0.08), transparent 42%),
    var(--portal-surface);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.results-toolbar .advanced-filters-toggle,
.results-toolbar .sort-control select {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: var(--portal-raised);
  color: var(--portal-text);
}

.results-toolbar .advanced-filters-toggle:hover,
.results-toolbar .advanced-filters-toggle:focus-visible,
.results-toolbar .sort-control select:hover,
.results-toolbar .sort-control select:focus-visible {
  border-color: rgba(82, 231, 255, 0.5);
  background: #252c3a;
}

.results-toolbar .sort-control > span {
  color: var(--portal-muted);
}

.discovery-tools label > span {
  color: var(--portal-muted);
}

.discovery-tools select,
.compact-check {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: var(--portal-raised);
  color: var(--portal-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.discovery-tools select:hover,
.discovery-tools select:focus,
.compact-check:hover {
  border-color: rgba(82, 231, 255, 0.5);
  background: #252c3a;
}

.discovery-tools select:focus-visible,
.compact-check:focus-within {
  outline: 3px solid rgba(82, 231, 255, 0.22);
  outline-offset: 2px;
}

.compact-check input {
  accent-color: var(--portal-cyan);
}

.game-card-actions .details-link {
  border-color: var(--portal-line);
  background: #1c2431;
  color: #dce5f4;
}

.game-card-actions .details-link:hover,
.game-card-actions .details-link:focus-visible {
  background: rgba(82, 231, 255, 0.12);
  color: var(--portal-cyan);
}

.game-details-modal {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1b2230;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.details-icon {
  border-color: rgba(255, 255, 255, 0.22);
}

.details-facts > span {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: #252d3a;
  color: #d5deed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.details-facts strong {
  color: var(--portal-cyan);
}

.details-gallery figure {
  border-color: var(--portal-line);
  background: var(--portal-surface);
}

.details-actions .play-link,
.details-guide-link {
  border-color: rgba(255, 255, 255, 0.16);
}

.details-guide-link {
  background: rgba(139, 108, 255, 0.16);
  color: #e4ddff;
}

.details-guide-link:hover,
.details-guide-link:focus-visible {
  border-color: rgba(139, 108, 255, 0.58);
  background: rgba(139, 108, 255, 0.25);
}

.recent-card button {
  border: 1px solid var(--portal-line);
  background: var(--portal-surface);
  color: var(--portal-text);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.recent-card button:hover,
.recent-card button:focus-visible {
  border-color: rgba(82, 231, 255, 0.42);
  background: var(--portal-raised);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

.recent-art {
  border-color: rgba(255, 255, 255, 0.2);
}

.recent-card small {
  color: var(--portal-cyan);
}

.recent-card b {
  color: #d0d9e8;
}

.how-section {
  color: var(--portal-text);
}

.how-section > .eyebrow {
  color: var(--portal-cyan);
}

.how-grid article {
  background: rgba(255, 255, 255, 0.055);
}

.how-grid h3 {
  color: var(--portal-text);
}

.how-grid p {
  color: #c7d1e2;
}

@media (prefers-reduced-motion: reduce) {
  .live-pill > span {
    animation: none;
  }
}
