.pharmacy-hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(24px,6vw,90px); padding-block: clamp(24px,7vw,100px); }
.place { color: var(--green); font-weight: 700; }
.pharmacy-hero h1 { font-size: clamp(44px,7vw,96px); line-height: 1.25; letter-spacing: -.045em; margin-block: .2em; }
.lead { color: var(--dim); max-width: 42ch; line-height: 2; }
.home-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.cta, .gamecard { text-decoration: none; }
.pharmacy-mark { display: grid; place-items: center; aspect-ratio: 1.18; background: #252a29; border: 1px solid #424a41; border-radius: 24px; }
.pharmacy-mark img { width: 64%; height: auto; }
.catalog-title { margin: 1.2em 0 .7em; }
.cardbody h2 { font-size: 21px; }
#resume:not([hidden]) { display: inline-block; margin-top: 24px; color: var(--green); }
@media(max-width:660px) {
  .pharmacy-hero { grid-template-columns: 1fr; }
  .pharmacy-mark { aspect-ratio: 2; }
  .pharmacy-mark img { max-height: 160px; object-fit: contain; }
}

.arcade-library { max-width:74rem; margin:auto; padding-block:clamp(1.3rem,4vw,3.5rem) 3rem; }
.arcade-library [hidden] { display:none !important; }
.library-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-bottom:1.5rem; }
.library-heading h1 { font-size:clamp(2.15rem,5vw,4rem); letter-spacing:-.055em; line-height:1.3; margin:0; }
.library-heading #resume { margin:0; }
.library-filters { display:flex; align-items:end; flex-wrap:wrap; gap:1.25rem 2rem; padding:1rem clamp(.8rem,2vw,1.4rem); border-block:1px solid var(--edge); background:var(--panel); }
.library-filters fieldset { border:0; padding:0; margin:0; min-width:0; }
.library-filters legend,.theme-choice { font-weight:600; font-size:.82rem; color:var(--dim); }
.type-choices { display:flex; flex-wrap:wrap; gap:3px; margin-top:.35rem; }
.type-choices label { position:relative; cursor:pointer; }
.type-choices input { position:absolute; opacity:0; width:1px; height:1px; }
.type-choices span { display:grid; place-items:center; padding:.25rem .95rem; border-radius:5px; min-height:44px; }
.type-choices input:checked + span { background:var(--green); color:#182820; font-weight:750; }
.type-choices input:focus-visible + span,.library-filters select:focus-visible,.shelf-tile:focus-visible,.library-status button:focus-visible { outline:3px solid var(--green); outline-offset:3px; }
.theme-choice { display:grid; gap:.35rem; min-width:min(15rem,100%); margin-inline-start:auto; }
.theme-choice select { width:100%; min-width:0; max-width:26rem; text-overflow:ellipsis; font:inherit; font-size:.94rem; min-height:44px; border:1px solid var(--edge); color:var(--ink); background:var(--bg); padding:.3rem .55rem; border-radius:5px; }
.library-status { display:flex; align-items:center; justify-content:space-between; min-height:2.7rem; color:var(--dim); font-size:.85rem; }
.library-status button { min-height:44px; background:none; border:0; color:var(--green); font:inherit; cursor:pointer; }
.arcade-library section { margin-bottom:2.1rem; }
.arcade-library section h2 { display:flex; align-items:center; gap:.85rem; margin:0 0 .7rem; font-size:1.15rem; }
.arcade-library section h2:after { content:""; height:1px; background:var(--edge); flex:1; }
.shelf-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap:.75rem; }
.shelf-leads { grid-template-columns:repeat(2,minmax(0,1fr)); }
.shelf-tile { display:grid; grid-template-columns:4.6rem 1fr auto; align-items:center; gap:.85rem; background:var(--panel); border:1px solid var(--edge); border-radius:9px; color:inherit; text-decoration:none; padding:.75rem; min-width:0; }
.shelf-tile:hover { border-color:var(--green); }
.shelf-cover { position:relative; border-radius:4px; overflow:hidden; background:#393546; height:5.1rem; isolation:isolate; }
.shelf-cover img { display:block; width:100%; height:100%; object-fit:cover; image-rendering:pixelated; }
.shelf-cover .mode-emblem { position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); }
.shelf-kind { color:var(--green); font-size:.77rem; font-weight:650; }
.shelf-info h3 { margin:.1rem 0; font-size:1.13rem; line-height:1.5; }
.shelf-info p { color:var(--dim); margin:0; font-size:.84rem; line-height:1.7; }
.shelf-arrow { color:var(--green); }
.shelf-feature { display:grid; grid-template-columns:1fr auto; gap:0; overflow:hidden; padding:0; }
.shelf-feature .shelf-cover { grid-column:1/-1; width:100%; height:clamp(7rem,12vw,10.5rem); border-radius:0; }
.shelf-feature .shelf-cover img { object-position:center 54%; }
.shelf-feature .mode-emblem { inset: auto 1.15rem .65rem auto; transform:none; box-shadow:4px 4px 0 #29252c; }
.shelf-feature .shelf-info { padding:.85rem 1.15rem 1.05rem; }
.shelf-feature h3 { font-size:clamp(1.35rem,2vw,1.7rem); }
.shelf-feature .shelf-arrow { margin-inline-end:1.15rem; font-size:1.3rem; }
.arcade-library [data-empty] { background:var(--panel); padding:2rem 1rem; text-align:center; border:1px dashed var(--edge); }
@media(max-width:600px) {
  .library-filters { gap:.7rem; }
  .theme-choice { width:100%; grid-template-columns:minmax(0,1fr); }
  .shelf-leads { grid-template-columns:1fr; }
  .shelf-feature { grid-template-columns:6rem 1fr auto; }
  .shelf-feature .shelf-cover { grid-column:auto; height:100%; min-height:7.4rem; }
  .shelf-feature .mode-emblem { inset:50% auto auto 50%; transform:translate(-50%,-50%); }
  .shelf-feature .shelf-info { padding:.7rem; }
  .type-choices span { padding-inline:.7rem; }
}
