.host-hero,.host-shelf {
  --host-surface:var(--quay-panel,var(--panel,#17323d));
  --host-line:var(--quay-line,var(--hair,#55707a));
  --host-ink:var(--ink,var(--quay-paper,#f1eee1));
  --host-title:var(--display,var(--quay-serif,Georgia));
}
.host-hero {
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);
  align-items:stretch;
  margin-block:clamp(1rem,3vw,2.4rem);
  min-height:clamp(340px,38vw,610px);
  border:1px solid var(--host-line);
  background:var(--host-surface);
  color:var(--host-ink);
  overflow:hidden;
}
.host-hero-copy {
  align-self:center;
  padding:clamp(1.3rem,5vw,4.6rem);
  min-width:0;
}
.host-hero h1 {
  margin:0 0 .45em;
  font:700 clamp(2.5rem,5.25vw,5.35rem)/.99 var(--host-title),Georgia,serif;
  letter-spacing:-.043em;
  text-wrap:balance;
}
.host-hero-copy p {
  font-size:clamp(1.01rem,1.65vw,1.2rem);
  max-width:32ch;
}
.host-hero-copy .actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.65rem 1rem;
  margin-top:1.55rem;
}
.host-hero .host-primary {
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:.55rem .95rem;
  font-weight:730;
  text-decoration:none;
  background:var(--accent);
  color:var(--button,#152730);
}
.host-portrait {
  position:relative;
  margin:0;
  background:var(--quay-water,var(--bg,#182b35));
  isolation:isolate;
  min-width:0;
}
.host-portrait img {
  width:100%; height:100%; min-height:280px;
  object-fit:cover; object-position:55% 43%; display:block;
}
.host-portrait figcaption {
  position:absolute;
  right:0; bottom:0; left:0;
  padding:clamp(.65rem,2.5vw,1.4rem) clamp(.85rem,3vw,1.7rem);
  display:flex; flex-wrap:wrap; align-items:baseline; gap:.3rem .8rem;
  color:#fff9eb;
  background:linear-gradient(0deg,#121721f0,#121721ce 70%,transparent);
  font-size:.94rem;
}
.host-portrait figcaption strong {
  font-family:var(--host-title),Georgia,serif;
  font-size:clamp(1.2rem,2.4vw,1.8rem);
}
.host-library-link { display:flex; align-items:center; gap:.4rem 1.3rem; flex-wrap:wrap; margin-block:1.5rem .3rem; }
.host-library-link > a { font-weight:700; }
.host-library-link .arcade-types { margin:0; }
.host-shelf { margin-block:clamp(1.75rem,4vw,4rem); }
.host-shelf > header {
  display:flex; align-items:baseline; justify-content:space-between; gap:.5rem 1.3rem; flex-wrap:wrap;
  border-block-end:1px solid var(--host-line); margin-bottom:.8rem; padding-bottom:.55rem;
}
.host-shelf h2 { margin:0; font-size:clamp(1.6rem,3.8vw,2.75rem); }
.host-shelf > header a { font-size:.94rem; }
.host-shelf .quay-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(.55rem,1.6vw,1.1rem); }
.host-shelf .quay-card { min-width:0; border:1px solid var(--host-line); background:var(--host-surface); color:var(--host-ink); }
.host-shelf .quay-card img { height:auto; aspect-ratio:1.72; object-fit:cover; }
.host-shelf .quay-card-content p,.host-shelf .quay-card-content small { color:inherit; }
.studio-credit {
  display:flex; align-items:baseline; flex-wrap:wrap; gap:.2rem .55rem;
  margin:.28rem 0 .5rem; line-height:1.24; font-size:.82rem;
}
.studio-credit .return-rate {
  padding:.15rem .3rem;
  font-weight:720; font-variant-numeric:tabular-nums;
  border:1px solid currentColor; border-radius:.18rem;
  white-space:nowrap; color:var(--accent,currentColor);
}
.pool-classic-hero .studio-credit { color:#fff9eb; }
.pool-classic-hero .return-rate { color:#fff1cf; }
.quay-machine-name .studio-credit { margin:.15rem 0; }
.catalog-summary {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:.35rem .7rem; margin-block:.45rem; font-size:.86rem;
}
.rtp-note summary { cursor:pointer; padding:.45rem .15rem; }
.rtp-note p { max-width:50ch; margin:.2rem 0 .5rem; }
.quay .catalog-shuffle,.catalog-shuffle {
  background:transparent; color:inherit; border:1px solid var(--quay-line,var(--hair));
  min-height:38px; padding:.4rem .65rem;
}
@media (max-width:680px) {
  .host-hero { grid-template-columns:minmax(0,1fr); }
  .host-hero h1 { font-size:clamp(2.35rem,9vw,4rem); }
  .host-hero-copy .actions { margin-top:.9rem; }
  .host-portrait { order:-1; }
  .host-portrait img { height:auto; min-height:0; aspect-ratio:1.35; }
  .host-shelf .quay-cards,.quay .host-shelf .quay-cards {
    grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(155px,48%);
    overflow-x:auto; scroll-snap-type:x proximity; padding-bottom:.45rem;
  }
  .host-shelf .quay-card { scroll-snap-align:start; }
  .host-shelf .quay-card-content { padding:.65rem; }
  .host-shelf .quay-card-content p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
}
