/* ---------- Discover: spotlight and staff picks ---------- */

.shell { padding-top: clamp(14px, 1.75vw, 27px); }
.feature { display: grid; grid-template-columns: minmax(0, 1.74fr) minmax(0, 1fr); gap: clamp(14px, 1.65vw, 26px); }
.feature:has(.feature__picks[hidden]) { grid-template-columns: minmax(0, 1fr); }
.feature__lead, .feature__picks { display: flex; flex-direction: column; min-width: 0; }

.spotlight {
  --world-base: #1e3528; --shade: 14, 33, 23; --accent: var(--lime); --ink: #f6f7ec;
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(290px, 24.5vw, 392px); border-radius: 17px;
  background: var(--world-base); color: var(--ink);
}
.spotlight::before {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(var(--shade)) 3%, rgba(var(--shade), .97) 20%, rgba(var(--shade), .8) 32%, rgba(var(--shade), .12) 56%, transparent 74%),
    linear-gradient(0deg, rgba(var(--shade), .5), transparent 38%);
}
.spotlight::after { content: ""; position: absolute; z-index: 4; inset: 0; border: 1px solid #f1f6db23; border-radius: inherit; pointer-events: none; }
.spotlight__picture { display: contents; }
.spotlight__art { position: absolute; inset: 0 0 0 auto; width: 78%; height: 100%; object-position: var(--cover-hero-focus, var(--cover-focus, 50% 45%)); }
.spotlight .cover--icon img { height: 50%; max-height: 170px; }
.spotlight__kicker {
  position: absolute; z-index: 3; top: clamp(16px, 1.7vw, 25px); left: clamp(18px, 2.4vw, 38px);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 650; letter-spacing: .065em; text-transform: uppercase;
}
.checker {
  width: 16px; height: 12px; color: var(--accent);
  background: conic-gradient(currentColor 0 25%, transparent 0 50%, currentColor 0 75%, transparent 0) 0 0 / 8px 8px;
  transform: skewX(-11deg);
}
.spotlight__copy { position: absolute; z-index: 3; left: clamp(18px, 2.4vw, 38px); bottom: clamp(20px, 2.3vw, 35px); max-width: 58%; }
.spotlight__copy h1 { font: 600 clamp(50px, 5.2vw, 85px)/.82 var(--display-font); letter-spacing: -.035em; }
.spotlight__copy h1 span { display: block; text-transform: uppercase; }
.spotlight__copy h1 em { display: block; margin-left: -.03em; color: var(--accent); font: italic 500 .86em/.95 Georgia, "Times New Roman", serif; letter-spacing: -.06em; }
.spotlight__copy h1.is-whole { font: 700 clamp(36px, 3.6vw, 60px)/1.02 var(--ui-font); letter-spacing: -.04em; }
.spotlight__copy h1.is-whole span { text-transform: none; }
.spotlight__hook { max-width: 30ch; margin-top: 10px; font-size: clamp(13px, 1.1vw, 17px); line-height: 1.3; opacity: .92; }
.spotlight__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.spotlight__meta { font-size: 12px; font-weight: 600; opacity: .75; }
.spotlight--empty .spotlight__copy { max-width: 80%; }
.spotlight--loading { background: radial-gradient(ellipse at 88% 20%, #31523a, #192d21 68%); }
.spotlight--loading .spotlight__hook::before {
  content: ""; display: inline-block; width: .6em; height: .6em; margin-right: 7px; border-radius: 50%;
  background: var(--accent); animation: catalog-pulse 1.4s ease-in-out infinite alternate;
}
@keyframes catalog-pulse { to { opacity: .35; } }
#catalog-retry { margin-top: 12px; pointer-events: auto; }
.search-open:disabled { opacity: .55; cursor: default; }
@media (prefers-reduced-motion: reduce) { .spotlight--loading .spotlight__hook::before { animation: none; } }
/* The whole card opens the game's details; the copy lets clicks through except on its buttons */
.spotlight__link { position: absolute; z-index: 2; inset: 0; border-radius: inherit; }
.spotlight__link:focus-visible { outline-offset: -4px; }
.spotlight__copy, .spotlight__kicker { pointer-events: none; }
.spotlight__actions { pointer-events: auto; }

.feature__selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.feature__selector button {
  display: flex; align-items: center; gap: clamp(7px, .8vw, 12px); min-width: 0; min-height: 47px; padding: 5px 9px;
  border: 1px solid transparent; border-radius: 8px; background: #1b201d; color: #c5ccc4;
  text-align: left; font: 570 clamp(12px, 1vw, 15px)/1.12 var(--ui-font);
}
.feature__selector button:hover { border-color: #3d463f; }
.feature__selector [aria-pressed="true"] { border-color: #859674; background: #2a3329; color: #f4f6ed; }
.feature__selector span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.feature__selector .selector__thumb { flex: none; width: 40px; height: 33px; overflow: hidden; border-radius: 5px; }

.feature__picks h2 { margin-bottom: 10px; font-size: clamp(22px, 1.9vw, 32px); font-weight: 700; line-height: 1.1; letter-spacing: -.05em; }
.picks { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.08fr 1fr; gap: 10px; min-height: 0; }
.picks[data-count="1"] .reco, .picks[data-count="2"] .reco { grid-column: span 2; }
.reco { position: relative; isolation: isolate; display: block; overflow: hidden; min-width: 0; min-height: 120px; border-radius: 12px; background: #27332e; color: #fff; }
.reco--wide { grid-column: span 2; }
.reco__link { display: block; position: absolute; inset: 0; color: inherit; }
.reco__link:focus-visible { outline-offset: -4px; }
.reco__art { position: absolute; inset: 0; transition: transform .24s ease; }
.reco::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(0deg, #0a1111c4, transparent 56%); }
.reco__copy { position: absolute; z-index: 3; left: clamp(11px, 1.1vw, 19px); right: 44px; bottom: clamp(10px, .9vw, 16px); }
.reco__copy small { display: block; margin-bottom: 3px; color: #fff7ed; font-size: 11px; font-weight: 650; }
.reco__copy strong { display: block; font-size: clamp(16px, 1.6vw, 28px); font-weight: 700; line-height: 1.05; letter-spacing: -.045em; }
.reco__go {
  position: absolute; z-index: 3; right: 12px; bottom: 12px; display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid #e0ecd95c; border-radius: 50%; background: #102019bb;
}
.reco__go svg.icon { width: 14px; height: 14px; }
.reco:hover, .tile__link:hover { box-shadow: 0 0 0 2px #abedac; }
.reco:hover .reco__art, a.tile__link:hover .tile__art { transform: scale(1.035); }

/* How it works: the design's "ways to play" row */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.how__item {
  display: flex; align-items: center; gap: 12px; min-width: 0; min-height: clamp(58px, 4.75vw, 77px); padding: 8px 16px;
  border: 1px solid var(--mode-edge); border-radius: 10px; background: var(--mode-bg); color: var(--mode-text);
}
.how__item--play { --mode-bg: #213128; --mode-edge: #3a4c3d; --mode-text: #e0efca; }
.how__item--app { --mode-bg: #352a21; --mode-edge: #524032; --mode-text: #ffdfb6; }
.how__item--keep { --mode-bg: #2c293a; --mode-edge: #474157; --mode-text: #e6d7ff; }
.how__item i[data-icon] { width: 22px; height: 22px; }
.how__item strong { display: block; font-size: clamp(14px, 1.16vw, 18px); font-weight: 680; line-height: 1.15; letter-spacing: -.025em; }
.how__item small { display: block; margin-top: 2px; font-size: 12.5px; opacity: .78; }

/* ---------- Library ---------- */

.section { margin-top: clamp(28px, 2.6vw, 44px); scroll-margin-top: 8px; }
.section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-bottom: 12px; }
.section__head h2 { font-size: clamp(26px, 2.2vw, 37px); font-weight: 700; line-height: 1.1; letter-spacing: -.052em; }
.section__head h2:focus { outline: none; }
.filters { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters--wrap { flex-wrap: wrap; overflow: visible; }
.filters button {
  flex: none; min-height: 32px; padding: 0 13px; border: 1px solid #373d39; border-radius: 18px;
  color: #bec6bf; font-size: 13px; font-weight: 620; white-space: nowrap;
}
.filters button:hover { border-color: #859c87; }
.filters button[aria-pressed="true"] { border-color: #e6ede2; background: #e6ede2; color: #162118; }

.game-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(92px, 9.15vw, 156px); grid-auto-flow: row dense; gap: 9px; }
.game-grid--mixed > .tile:first-child { grid-column: span 2; grid-row: span 2; }
.list-more {
  display: block; min-height: 44px; margin: 16px auto 0; padding: 8px 20px; border: 1px solid var(--rule);
  border-radius: 10px; background: var(--panel); font-size: 14px; font-weight: 650;
}
.list-more:hover { border-color: var(--faint); background: var(--panel-hi); }
.tile { position: relative; min-width: 0; min-height: 0; }
.tile__link { position: relative; isolation: isolate; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 10px; background: #252b27; }
.tile { position: relative; }
.preview-eye { display: none; }
@media (any-pointer: coarse), (hover: none) {
  .preview-eye {
    position: absolute; z-index: 4; top: 0; left: 0; display: grid; place-items: center;
    width: 44px; height: 44px; border: 0; padding: 0; background: transparent; color: white;
  }
  .preview-eye .icon { width: 29px; height: 29px; padding: 5px; border-radius: 50%; background: #101611df; border: 1px solid #ffffff63; }
}
#card-preview {
  position: fixed; inset: 0; margin: auto; padding: 0; width: min(94vw, 440px);
  max-height: 90dvh; overflow: auto; color: #f5f7f1; background: #131916; border: 1px solid #465147; border-radius: 18px;
}
.clip-view { display: grid; gap: 13px; padding: 16px; }
.clip-view__head { display: flex; align-items: center; justify-content: space-between; }
.clip-view__head small { color: #b5c8ad; font-size: 12px; }
.clip-view__head h2 { margin: 2px 0 0; font-size: 22px; }
.clip-view video { width: 100%; max-height: 56dvh; min-height: 100px; background: #090c0a; border-radius: 10px; }
.clip-view .play-cta { justify-self: start; }
.tile__art { position: absolute; inset: 0; transition: transform .24s ease; }
.tile__link::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(0deg, #0a1111c9, transparent 58%); }
.tile__info { position: absolute; z-index: 3; left: 10px; right: 8px; bottom: 8px; }
.tile__title { display: block; font-size: clamp(13px, 1vw, 18px); font-weight: 690; line-height: 1.12; letter-spacing: -.025em; text-shadow: 0 1px 4px #0008; }
.tile__genre { display: none; margin-top: 4px; color: #e8ede6; font-size: 12px; }
.game-grid--mixed > .tile:first-child .tile__info { left: 16px; bottom: 15px; }
.game-grid--mixed > .tile:first-child .tile__title { font-size: clamp(22px, 2.1vw, 36px); letter-spacing: -.04em; }
.game-grid--mixed > .tile:first-child .tile__genre { display: block; }
.tile--soon .tile__link:hover { box-shadow: none; }
.tile--soon .tile__art { filter: grayscale(.7) brightness(.7); }
.tile__badge { position: absolute; z-index: 3; top: 8px; right: 8px; padding: 4px 9px; border-radius: 20px; background: #111b15d9; color: #dfe7dc; font-size: 11px; font-weight: 650; }
.empty { padding: 28px; border: 1px dashed #3b443e; border-radius: 12px; color: var(--muted); text-align: center; }

/* ---------- Get Zymix band ---------- */

.get-band {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) auto; align-items: center; gap: clamp(18px, 2.4vw, 40px);
  margin-top: clamp(32px, 3vw, 52px); padding: clamp(20px, 2.4vw, 36px);
  border: 1px solid var(--rule); border-radius: 16px; background: linear-gradient(135deg, #1a221d, #161a19 60%);
}
.get-band__mark { width: 44px; height: 44px; border-radius: 12px; }
.get-band__copy h2 { margin-top: 14px; font-size: clamp(30px, 3vw, 48px); font-weight: 700; line-height: 1; letter-spacing: -.055em; }
.get-band__copy p { max-width: 36ch; margin-top: 10px; color: var(--muted); font-size: 15px; }
.get-band__label { margin: 22px 0 10px; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }

.get-band__art { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(190px, 17vw, 260px); }
.get-band__cover { position: relative; overflow: hidden; border-radius: 10px; background: #252b27; }
.get-band__cover:first-child { grid-row: span 2; }
.get-band__cover::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(0deg, #0a1111b3, transparent 50%); }
.get-band__cover small { position: absolute; z-index: 2; left: 10px; right: 8px; bottom: 8px; font-size: 12px; font-weight: 680; text-shadow: 0 1px 4px #000a; }
.get-band__scan { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 164px; text-align: center; }
.get-band__scan strong { display: block; font-size: 14px; }
.get-band__scan p { margin-top: 2px; color: var(--muted); font-size: 12px; }

@media (max-width: 1100px) {
  .get-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .get-band__scan { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; width: auto; text-align: left; }
  .get-band__scan .handoff__qr { width: 104px; }
}

/* ---------- Phones: Discover ---------- */

@media (max-width: 1100px) {
  .feature { grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); }
  .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: clamp(90px, 11vw, 128px); }
  .reco__copy small { display: none; }
}
@media (max-width: 760px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .spotlight { height: clamp(240px, 64vw, 330px); border-radius: 12px; }
  .spotlight__art { width: 86%; object-position: var(--cover-focus, 50% 45%); }
  .spotlight__kicker { top: 15px; left: 16px; }
  .spotlight__copy { left: 16px; bottom: 16px; max-width: 66%; }
  .spotlight__copy h1 { font-size: clamp(40px, 11.5vw, 62px); }
  .spotlight__copy h1.is-whole { font-size: clamp(30px, 8.5vw, 44px); }
  .spotlight__hook { font-size: 14px; }
  .spotlight__meta { display: none; }
  .feature__picks { margin-top: 22px; }
  .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; gap: 8px; }
  .picks .reco, .picks[data-count] .reco { grid-column: auto; min-height: 0; aspect-ratio: 1.17; }
  .reco__copy { left: 9px; right: 8px; bottom: 8px; }
  .reco__copy strong { font-size: 15px; letter-spacing: -.03em; }
  .reco__go { display: none; }
  .how { gap: 6px; }
  .how__item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; }
  .how__item strong { font-size: 13px; }
  .how__item small { display: none; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(100px, 29vw, 150px); gap: 8px; }
  .get-band { grid-template-columns: minmax(0, 1fr); }
  .get-band__art { order: -1; height: 200px; }
}

/* Search: the design's "Find a game" */
.search {
  width: min(600px, calc(100vw - 24px)); max-width: none; height: min(720px, calc(100dvh - 48px)); max-height: none;
  margin: 24px auto auto; overflow: hidden;
  border: 1px solid #444f47; border-radius: 16px; background: #151917; box-shadow: 0 24px 80px #000a;
}
.search[open] { display: flex; flex-direction: column; }
.search__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; }
.search__head h2 { font-size: 26px; font-weight: 700; letter-spacing: -.05em; }
.search__body { flex: 1; min-height: 0; overflow: auto; padding: 4px 16px 18px; }
.search__field {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 10px 0 12px;
  border: 1px solid #576458; border-radius: 12px; background: #101412;
}
.search__field:focus-within { border-color: var(--soft-green); box-shadow: 0 0 0 3px #abf4a52b; }
.search__field > i[data-icon] { color: var(--muted); }
.search__field input { flex: 1; min-width: 0; height: 48px; border: 0; outline: none; background: transparent; font-size: 16px; }
.search__field input::-webkit-search-cancel-button { display: none; }
.search__clear { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #2d352e; }
.search__clear i[data-icon] { width: 15px; height: 15px; }
.search .filters { margin-top: 12px; }
.search__results { margin-top: 18px; }
.search__count { margin-bottom: 8px; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.search__empty { padding: 26px 0; color: var(--muted); text-align: center; }
.list-games { display: grid; gap: 4px; }
.list-game { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px; border-radius: 10px; }
a.list-game:hover { background: #222a24; }
.list-game--soon { opacity: .7; }
.list-game__art { position: relative; display: block; width: 72px; height: 48px; overflow: hidden; border-radius: 7px; background: #252b27; }
.list-game__text strong { display: block; font-size: 15px; font-weight: 650; }
.list-game__text small { display: block; overflow: hidden; color: var(--muted); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.list-game__play { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid #455246; border-radius: 20px; font-size: 13px; font-weight: 650; }
.list-game__play svg.icon { width: 12px; height: 12px; }
.list-game__soon { color: var(--muted); font-size: 12px; font-weight: 600; }
.list-game__go { display: grid; place-items: center; width: 28px; color: var(--muted); }
.list-game__go svg.icon { width: 16px; height: 16px; }
@media (max-width: 599px) {
  .search { width: 100%; height: 100dvh; margin: 0; padding-top: env(safe-area-inset-top); border: 0; border-radius: 0; }
}
