#homeView > .wrap { width: min(1220px, calc(100% - 56px)); }
.game-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: clamp(128px, 15vw, 196px);
  min-height: 42px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--muted);
}
.game-search button { display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: inherit; min-height: 34px; }
.game-search svg { width: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.game-search input { min-width: 0; width: 100%; padding: 8px 0; border: 0; background: transparent; color: var(--ink); }
html[data-theme="dark"] .wordmark,
html[data-theme="dark"] .footer-brand img:last-child { filter: invert(1); }
.browse-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(24px, 6vw, 100px);
  padding-block: clamp(18px, 5vw, 68px);
}
.browse-intro #browseTagline { margin: 0 0 9px; font-size: .9rem; font-weight: 750; color: var(--muted); }
.browse-intro h1 {
  margin: 0;
  font: 800 clamp(36px, 6vw, 80px)/1.03 var(--puzzle-display);
  letter-spacing: -.058em;
  color: var(--ink);
  text-wrap: balance;
}
.browse-description {
  max-width: 48ch;
  margin: 13px 0 0;
  color: var(--muted);
  font: 600 clamp(1rem, 1.7vw, 1.22rem)/1.55 var(--puzzle-body);
  text-wrap: pretty;
}
.browse-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-block-start: 22px; }
.browse-actions :is(.primary, .secondary) { min-height: 44px; padding: 10px 18px; }
.browse-actions .secondary { color: var(--ink); background: var(--white); }
.browse-mark { position: relative; display: grid; place-items: center; min-width: 0; isolation: isolate; }
.browse-mark::before, .browse-mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(78%, 360px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.browse-mark::after { width: min(90%, 410px); transform: translate(4%, 1%); }
.browse-mark img { display: block; width: clamp(146px, 26vw, 350px); max-width: 100%; height: auto; filter: drop-shadow(0 14px 22px #26152c20); }
.browse-link {
  border: 0;
  background: transparent;
  color: var(--puzzle-create-to);
  min-height: 44px;
  font: 800 .92rem/1 var(--puzzle-body);
  padding-inline: 6px;
}
.browse-link:hover { text-decoration: underline; text-underline-offset: 4px; }
html[data-theme="dark"] .browse-link { color: #f5a4d5; }
.browse-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  padding: 8px 4px;
  border-block: 1px solid var(--line);
}
.browse-category {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  padding-inline: 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  white-space: nowrap;
}
.browse-category[aria-pressed="true"] { border-color: var(--line); background: var(--white); }
.browse-category:hover { background: var(--soft); }
:is(#featuredGames, #giftGames, #discoveryRows) .moments-rail { --card-width: clamp(154px, 19vw, 230px); }
:is(#featuredGames, #giftGames, #discoveryRows) .cover-button { aspect-ratio: 16 / 9; border-radius: 12px; }
:is(#featuredGames, #giftGames, #discoveryRows) .cover-button img { aspect-ratio: auto; }
#featuredGames .moments-rail { grid-auto-columns: calc((100% - 44px) / 3); }
#discoveryRows .shelf-head { border-top: 1px solid var(--line); padding-top: 17px; }
.browse-walls {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 54px);
  margin-block: clamp(28px, 5vw, 60px);
  padding: clamp(22px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid #41314b;
  border-radius: 20px;
  color: #fff;
  background: radial-gradient(ellipse at 26% 90%, #40213e, transparent 65%), #191422;
}
.browse-walls h2 { margin: 6px 0 10px; font-size: clamp(30px, 4.1vw, 54px); line-height: 1.08; letter-spacing: -.055em; }
.browse-walls-copy p { margin: 0; color: #dfd3e5; font-size: clamp(.95rem, 1.5vw, 1.08rem); }
.browse-walls-copy p:first-child { color: #f1aad5; font-size: .85rem; font-weight: 750; }
.browse-walls .secondary { color: #fff; background: transparent; border-color: #ad96b8; }
.browse-wall-art { display: flex; align-items: center; justify-content: center; gap: 3%; perspective: 650px; padding: 8px 0; }
.browse-wall-art img {
  width: 25%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid #bf8ec6;
  border-radius: 11px;
  box-shadow: 0 12px 25px #05020788;
}
.browse-wall-art img:first-child { transform: rotateY(17deg); }
.browse-wall-art img:nth-child(2) { width: 33%; border-color: #65cbd6; }
.browse-wall-art img:last-child { transform: rotateY(-17deg); }
.browse-all { display: flex; justify-content: center; border-top: 1px solid var(--line); }
#kit.catalog-section { padding-block: 15px 25px; }
#kit .category-nav { margin-block: 8px 22px; }
#homeView .browse-film { min-height: 0; padding-block: 0 27px; text-align: start; display: block; }
.browse-film > details { border-block-start: 1px solid var(--line); }
.browse-film > details > summary { cursor: pointer; padding-block: 15px; color: var(--muted); font-weight: 700; }
.browse-film .experience-reel { margin-inline: auto; text-align: center; }
.catalog-sections { margin-block: 12px; border: 1px solid var(--line); border-radius: 12px; }
.catalog-sections ol { margin-block: 0; }
.catalog-sections label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
@media (max-width: 700px) {
  #homeView > .wrap { width: calc(100% - 32px); }
  .nav:has(.game-search) { height: auto; min-height: 64px; }
  .nav:has(.game-search) .nav-actions > .primary { display: none; }
  #soundLabel { display: none; }
  #soundToggle { width: 36px; height: 36px; padding: 0; }
  .game-search { width: clamp(76px, 29vw, 150px); min-height: 36px; padding-inline: 7px; gap: 4px; }
  .game-search input { font-size: .85rem; }
  .game-search svg { width: 15px; }
  .browse-intro { grid-template-columns: 1fr; gap: 18px; padding-block: 16px 22px; }
  .browse-mark img { width: min(47vw, 212px); }
  .browse-mark::before { width: min(48%, 200px); }
  .browse-mark::after { width: min(54%, 225px); }
  #featuredGames .moments-rail { grid-auto-columns: min(72vw, 316px); }
  :is(#giftGames, #discoveryRows) .moments-rail { --card-width: min(58vw, 260px); }
  .browse-walls { grid-template-columns: 1fr; }
}

.browse-all { gap: 18px; align-items: center; }
a.browse-link { display: inline-flex; align-items: center; }
.community-back { display: none !important; }
.community-route #homeView > .wrap > :not(#communityGallery):not(.footer) { display: none; }
.community-route .community-back { display: inline-flex !important; }
.community-route #communityItems { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); grid-auto-flow: row; overflow: visible; }
#communityItems .cover-button { display: block; aspect-ratio: auto; overflow: visible; background: none; }
#communityItems .cover-button img { display: block; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 12px; }
#communityItems .cover-button h3 { margin: 10px 0 4px; }
.community-source { font-size: .95rem; text-decoration: underline; color: var(--muted); }
.gallery-alias { flex-basis: 100%; }
