/*
 * BookCoin Asset Shop — single-source v1 design
 *
 * This file intentionally owns the complete asset shop surface. It replaces
 * the former layered experiment blocks: one scene, one collection panel, one
 * mobile drawer, and one growth passport layout.
 */

.bookclub-app .shop-screen {
  --shop-ink: #3b2b22;
  --shop-muted: #7b654c;
  --shop-paper: #fff8e6;
  --shop-paper-strong: #fffdf5;
  --shop-line: #d9c59b;
  --shop-gold: #c99a45;
  --shop-green: #315b46;
  --shop-coral: #c96645;
  min-width: 0;
  color: var(--shop-ink);
}

.bookclub-app .shop-screen *,
.bookclub-app .shop-screen *::before,
.bookclub-app .shop-screen *::after { box-sizing: border-box; }

/* Desktop preview board: scene left, collection panel right. */
.bookclub-app .asset-world-shell {
  display: grid;
  grid-template-columns: minmax(360px, .44fr) minmax(0, .56fr);
  gap: 16px;
  min-width: 0;
  min-height: 700px;
  padding: 12px;
  background: #6d4b36;
  border: 3px solid #3b2b22;
  border-radius: 18px;
  box-shadow: 0 10px 0 rgba(55, 38, 26, .2);
}
.bookclub-app .asset-scene-toggle { display: none; }

.bookclub-app .asset-world-stage {
  position: relative;
  min-width: 0;
  min-height: 675px;
  overflow: hidden;
  isolation: isolate;
  background-color: #d7bb7f;
  background-image: linear-gradient(90deg, rgba(41, 34, 22, .28), rgba(255, 236, 181, .04)), url('../assets/world/v1-reading-cabin-hub-v1.png?v=20260930-hub2');
  background-position: center;
  background-size: cover;
  border: 2px solid #2f2c24;
  border-radius: 12px;
}
.bookclub-app .asset-world-stage::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 42, 35, .26), transparent 30%, rgba(31, 25, 18, .18));
  content: '';
  pointer-events: none;
}
.bookclub-app .asset-world-stage-header {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 18px 20px 0;
  color: #fff5d7;
  text-shadow: 0 2px 2px rgba(35, 27, 19, .56);
}
.bookclub-app .asset-world-kicker {
  display: block;
  color: #f6d994;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.bookclub-app .asset-world-stage-header h2 {
  margin: 3px 0 2px;
  color: #fff7de;
  font: 900 clamp(28px, 3vw, 42px)/1.04 Georgia, 'Songti SC', serif;
}
.bookclub-app .asset-world-stage-header p { margin: 0; color: #f5e9c6; font-size: 12px; font-weight: 700; }
.bookclub-app .asset-world-wallet {
  display: grid;
  grid-template-columns: 26px auto;
  align-items: center;
  column-gap: 5px;
  min-width: 112px;
  padding: 8px 10px;
  color: #4b301d;
  background: #fff2c9;
  border: 2px solid #5b412b;
  border-radius: 12px;
  box-shadow: 3px 3px 0 rgba(45, 31, 20, .3);
  text-shadow: none;
}
.bookclub-app .asset-world-wallet img { width: 25px; height: 25px; grid-row: span 2; }
.bookclub-app .asset-world-wallet strong { font-size: 20px; line-height: 1; }
.bookclub-app .asset-world-wallet span { color: #86602d; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.bookclub-app .asset-world-story-card {
  position: relative;
  z-index: 5;
  width: min(300px, 68%);
  margin: 20px 0 0 22px;
  padding: 12px 15px;
  color: #4d3525;
  background: rgba(255, 233, 178, .9);
  border: 2px solid #6c4a32;
  border-radius: 5px;
  box-shadow: 4px 4px 0 rgba(54, 37, 23, .28);
  transform: rotate(-1.2deg);
}
.bookclub-app .asset-world-story-card strong,
.bookclub-app .asset-world-story-card span { display: block; }
.bookclub-app .asset-world-story-card strong { font: 900 18px/1.15 Georgia, 'Songti SC', serif; }
.bookclub-app .asset-world-story-card span { margin-top: 5px; color: #72533d; font-size: 11px; line-height: 1.45; }
.bookclub-app .asset-world-stage-character {
  position: absolute;
  z-index: 4;
  left: 28%;
  bottom: 18px;
  width: min(390px, 58%);
  min-width: 230px;
  filter: drop-shadow(0 12px 5px rgba(34, 28, 20, .34));
}
.bookclub-app .asset-world-stage-character canvas { display: block; width: 100%; height: auto; min-height: 390px; }
.bookclub-app .asset-world-stage-character #shopCharacterPreview { background: transparent; border: 0; }
.bookclub-app .asset-world-character-label {
  display: grid;
  gap: 3px;
  width: max-content;
  max-width: 100%;
  margin: -4px auto 0;
  padding: 7px 12px;
  color: #4d3927;
  background: rgba(255, 242, 204, .93);
  border: 1px solid #6c4a32;
  border-radius: 999px;
  box-shadow: 2px 2px 0 rgba(54, 37, 23, .25);
  text-align: center;
}
.bookclub-app .asset-world-character-label strong,
.bookclub-app .asset-world-character-label span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bookclub-app .asset-world-character-label strong { font-size: 11px; }
.bookclub-app .asset-world-character-label span { color: #806244; font-size: 10px; }
.bookclub-app .asset-world-collection {
  position: absolute;
  z-index: 6;
  right: 16px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  width: 148px;
  max-height: 220px;
  overflow: auto;
  padding: 9px;
  color: #5d432d;
  background: rgba(255, 244, 212, .93);
  border: 1px solid #80603e;
  border-radius: 10px;
  box-shadow: 3px 3px 0 rgba(47, 35, 24, .22);
}
.bookclub-app .asset-world-collection:empty { display: none; }
.bookclub-app .asset-world-collection .shop-equipment-slot {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 4px 5px;
  background: rgba(255,255,255,.4);
  border: 1px solid rgba(117, 82, 48, .22);
  border-radius: 7px;
  font-size: 9px;
}
.bookclub-app .asset-world-collection .shop-equipment-slot b { color: #9b6334; font-size: 9px; }
.bookclub-app .asset-world-collection .shop-equipment-slot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bookclub-app .asset-world-open-button {
  position: absolute;
  z-index: 8;
  left: 20px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 14px;
  color: #fff9e9;
  background: #bd6748;
  border: 2px solid #482e24;
  border-radius: 9px;
  box-shadow: 3px 3px 0 rgba(53, 34, 24, .35);
  cursor: pointer;
  font-weight: 900;
}
.bookclub-app .asset-world-open-button:hover,
.bookclub-app .asset-world-open-button:focus-visible { background: #d47b53; transform: translateY(-1px); }
.bookclub-app .asset-world-open-button span { font-size: 18px; }

/* Collection panel: the side rail and card grid are one intentional layout. */
.bookclub-app .asset-store-drawer-inline {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 675px;
  max-height: 675px;
  overflow: hidden;
  gap: 10px;
  padding: 18px;
  background: var(--shop-paper);
  border: 2px solid #bfa36f;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.bookclub-app .asset-store-heading { grid-column: 1 / -1; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.bookclub-app .asset-store-heading h3 { margin: 2px 0 1px; color: #4a3225; font: 900 28px/1.1 Georgia, 'Songti SC', serif; }
.bookclub-app .asset-store-heading p { margin: 0; color: var(--shop-muted); font-size: 11px; }
.bookclub-app .asset-store-count { min-width: 42px; padding: 5px 8px; color: #7a4a31; background: #f4dfae; border: 1px solid #d5b87a; border-radius: 999px; text-align: center; font-size: 11px; font-weight: 900; }
.bookclub-app .asset-store-categories {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0 8px 0 0;
  border-right: 1px solid #e0cfa5;
}
.bookclub-app .asset-store-categories button {
  display: grid;
  min-width: 0;
  min-height: 46px;
  place-items: center;
  gap: 4px;
  padding: 6px 2px;
  color: #765d43;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}
.bookclub-app .asset-store-categories button span { color: #aa6b42; font-size: 18px; line-height: 1; }
.bookclub-app .asset-store-categories button:hover,
.bookclub-app .asset-store-categories button.is-active { color: #fff9ea; background: var(--shop-coral); border-color: #93472f; box-shadow: 0 2px 0 rgba(90, 46, 31, .2); }
.bookclub-app .asset-store-categories button.is-active span { color: #ffe6a4; }
.bookclub-app .asset-shop-compat-toolbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bookclub-app .asset-store-drawer-inline .shop-status { grid-column: 2; grid-row: 2; align-self: start; min-height: 17px; margin: 0; padding: 0 0 0 2px; color: var(--shop-muted); font-size: 10px; }
.bookclub-app .asset-store-drawer-inline .shop-catalog {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(164px, auto);
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 24px 2px 8px 0;
}
.bookclub-app .shop-item-card {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(112px, 42%) minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
  min-height: 164px;
  align-content: start;
  gap: 6px 10px;
  overflow: hidden;
  padding: 7px;
  color: var(--shop-ink);
  background: var(--shop-paper-strong);
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  box-shadow: 0 3px 0 rgba(102, 77, 42, .08);
  cursor: pointer;
}
.bookclub-app .shop-item-card:hover,
.bookclub-app .shop-item-card:focus-visible { border-color: var(--shop-coral); box-shadow: 0 0 0 2px rgba(181, 95, 65, .18); outline: none; }
.bookclub-app .shop-item-media {
  display: grid;
  grid-column: 1;
  grid-row: 1 / 6;
  min-width: 0;
  min-height: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-self: start;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(160deg, #f7edcf, #e6d09e);
  border: 1px solid #e0cda4;
  border-radius: 8px;
}
.bookclub-app .shop-item-art { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; min-width: 0; min-height: 0; object-fit: contain; background: transparent; border: 0; }
.bookclub-app .shop-item-info { grid-column: 2; grid-row: 1; min-width: 0; overflow: hidden; }
.bookclub-app .shop-item-category { color: #9a7042; font-size: 9px; font-weight: 800; overflow-wrap: anywhere; }
.bookclub-app .shop-item-title { color: #4a3324; font-size: 13px; font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; word-break: break-word; }
.bookclub-app .shop-item-description,
.bookclub-app .shop-item-feature { display: none; }
.bookclub-app .shop-item-price { grid-column: 2; grid-row: 2; color: #8c5b1e; font-size: 13px; font-weight: 900; overflow-wrap: anywhere; }
.bookclub-app .shop-item-affordability { grid-column: 2; grid-row: 3; min-height: 15px; font-size: 10px; font-weight: 800; }
.bookclub-app .shop-item-gap { color: #9a5a3d; }
.bookclub-app .shop-item-ready { color: #47774c; }
.bookclub-app .shop-item-owned { grid-column: 2; grid-row: 4; color: #47774c; font-size: 10px; font-weight: 800; }
.bookclub-app .shop-item-actions { grid-column: 2; grid-row: 5; display: flex; flex-wrap: wrap; align-items: stretch; gap: 5px; min-width: 0; }
.bookclub-app .shop-item-actions > button,
.bookclub-app .shop-item-actions > input { flex: 1 1 100%; min-width: 0; max-width: 100%; min-height: 34px; }
.bookclub-app .shop-item-actions > button { overflow: hidden; padding: 5px; text-overflow: ellipsis; white-space: nowrap; }
.bookclub-app .shop-load-more { grid-column: 1 / -1; min-height: 42px; color: #7b4e2d; background: #f7e6b9; border: 1px dashed #bd8e56; border-radius: 9px; cursor: pointer; font-weight: 900; }
.bookclub-app .asset-inventory-drawer { grid-column: 1 / -1; grid-row: 3; min-width: 0; margin-top: 4px; border-top: 1px solid #e0cfa5; }
.bookclub-app .asset-inventory-drawer summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0 4px; color: #5f412b; cursor: pointer; font-weight: 900; list-style: none; }
.bookclub-app .asset-inventory-drawer summary::-webkit-details-marker { display: none; }
.bookclub-app .asset-inventory-drawer summary::after { content: '＋'; color: #af6c42; font-size: 17px; }
.bookclub-app .asset-inventory-drawer[open] summary::after { content: '−'; }
.bookclub-app .asset-inventory-drawer summary small { margin-left: auto; color: #927b5e; font-size: 10px; font-weight: 600; }
.bookclub-app .shop-inventory { display: grid; gap: 8px; padding-bottom: 3px; }
.bookclub-app .shop-inventory-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 10px 12px; background: #fffdf6; border: 1px solid #dfd0ad; border-radius: 9px; }
.bookclub-app .shop-inventory-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bookclub-app .shop-inventory-name { min-width: 0; color: var(--shop-ink); font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.bookclub-app .shop-inventory-meta { color: var(--shop-muted); font-size: 11px; overflow-wrap: anywhere; }
.bookclub-app .shop-inventory-row button { min-height: 36px; white-space: nowrap; }
.bookclub-app .shop-empty { grid-column: 1 / -1; padding: 16px; color: var(--shop-muted); background: var(--shop-paper); border: 1px dashed var(--shop-line); border-radius: 9px; text-align: center; }

/* Unified mobile drawer. The inline panel is removed from the desktop board;
   AppDrawer reuses the exact same nodes on phones. */
.bookclub-app .app-drawer-body > .asset-store-drawer-inline { display: block; min-height: 0; padding: 0; overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.bookclub-app .app-drawer-body > .asset-store-drawer-inline .asset-store-heading { display: none; }

/* Growth passport is part of the same asset-shop design system. */
.bookclub-app .shop-growth-passport { min-width: 0; margin-top: 18px; padding: 16px; background: rgba(255, 247, 223, .76); border: 1px solid #d2b982; border-radius: 14px; overflow: hidden; }
.bookclub-app .shop-growth-passport-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 0 4px 8px; }
.bookclub-app .shop-growth-passport-heading h2 { margin: 3px 0 0; color: #493225; font: 900 clamp(28px, 3.2vw, 40px)/1.1 Georgia, 'Songti SC', serif; }
.bookclub-app .shop-growth-passport-heading > span { max-width: 42%; color: #856c4e; font-size: 10px; line-height: 1.35; text-align: right; }
.bookclub-app .shop-growth-passport .character-growth-panel { display: block; margin: 0; padding: 18px; background: #fffaf0; border: 1px solid #d6c39d; box-shadow: none; }
.bookclub-app .shop-growth-passport .character-growth-hero { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.bookclub-app .shop-growth-passport .character-growth-art { grid-column: 1; grid-row: 1; width: 100%; min-height: 360px; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(160deg, #f8edcf, #e2c58f); border: 1px solid #c9aa72; border-radius: 14px; }
.bookclub-app .shop-growth-passport .character-growth-copy { grid-column: 2; grid-row: 1; display: grid; align-content: center; min-width: 0; }
.bookclub-app .shop-growth-passport .character-growth-copy h2 { font-size: clamp(26px, 3vw, 38px); }
.bookclub-app .shop-growth-passport .character-growth-copy p { max-width: none; line-height: 1.65; }
.bookclub-app .shop-growth-passport .character-growth-meta { display: grid; gap: 12px; margin-top: 18px; }
.bookclub-app .shop-growth-passport .growth-passport-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.bookclub-app .shop-growth-passport .growth-passport-stats span { min-width: 0; padding: 7px 10px; color: #6e4b26; background: #f5e8c9; border: 1px solid rgba(126,83,32,.18); font-size: 11px; font-weight: 800; }
.bookclub-app .shop-growth-passport .growth-passport-assets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bookclub-app .shop-growth-passport .growth-passport-assets span { display: grid; min-width: 0; gap: 4px; padding: 9px; color: #5f4b36; background: #fff8e8; border: 1px solid #dfcda5; border-radius: 9px; font-size: 10px; overflow-wrap: anywhere; }
.bookclub-app .shop-growth-passport .growth-passport-assets b { color: #8b632d; font-size: 9px; }

/* Asset detail drawer. */
.bookclub-app .asset-preview-drawer[hidden] { display: none; }
.bookclub-app .asset-preview-drawer { position: fixed; z-index: 80; inset: 0; }
.bookclub-app .asset-preview-scrim { position: absolute; inset: 0; background: rgba(30,24,20,.38); }
.bookclub-app .asset-preview-panel { position: absolute; top: 0; right: 0; display: grid; grid-template-rows: auto minmax(260px,1fr) auto auto; gap: 12px; width: min(440px,94vw); height: 100%; overflow-y: auto; padding: 18px; background: #fff8e8; border-left: 3px solid #6c4a35; box-shadow: -10px 0 28px rgba(44,31,19,.2); }
.bookclub-app .asset-preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bookclub-app .asset-preview-heading h3 { margin: 4px 0 0; color: #3d2b20; font: 900 24px/1.1 Georgia, 'Times New Roman', serif; }
.bookclub-app .asset-preview-panel canvas { width: 100%; min-height: 280px; background: #e8d7b4; border: 1px solid #c1a36d; border-radius: 12px; }
.bookclub-app .asset-preview-copy { display: grid; gap: 7px; color: #5f4b36; }
.bookclub-app .asset-preview-copy > span { color: #8b632d; font-size: 12px; font-weight: 900; }
.bookclub-app .asset-preview-copy p { margin: 0; line-height: 1.5; }
.bookclub-app .asset-preview-copy dl { display: grid; gap: 7px; margin: 0; }
.bookclub-app .asset-preview-copy dl div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 8px; background: rgba(255,255,255,.58); border: 1px solid #dfcda5; border-radius: 7px; }
.bookclub-app .asset-preview-copy dt { color: #8b632d; font-size: 11px; font-weight: 900; }
.bookclub-app .asset-preview-copy dd { margin: 0; font-size: 11px; line-height: 1.45; }
.bookclub-app .asset-preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Mobile HUD and header proportions belong to the clean shop/presentation sheet so the preview
   board and its mobile counterpart share the same proportions. */
.bookclub-app .header-profile-stack { min-width: 112px; }
.bookclub-app .header-profile-stack .user-pill { width: 74px; height: 74px; min-width: 74px; }
.bookclub-app .header-profile-stack .avatar-pixel-sm { width: 58px; height: 58px; flex-basis: 58px; }
.bookclub-app .header-avatar-growth { width: 112px; }
@media (max-width: 760px) {
  .bookclub-app .pixel-header { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "brand controls" "stats stats"; min-height: 110px; gap: 8px 9px; padding: 9px 10px 10px; }
  .bookclub-app .header-left { display: contents; }
  .bookclub-app .brand-lockup { grid-area: brand; display: flex; min-width: 0; gap: 7px; }
  .bookclub-app .brand { max-width: min(190px,calc(100vw - 178px)); overflow: hidden; font-size: clamp(16px,4.4vw,20px); line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
  .bookclub-app .header-right { grid-area: controls; display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 5px; }
  .bookclub-app .header-profile-stack { min-width: 100px; }
  .bookclub-app .header-profile-stack .user-pill { width: 70px; height: 70px; min-width: 70px; }
  .bookclub-app .header-profile-stack .avatar-pixel-sm { width: 56px; height: 56px; flex-basis: 56px; }
  .bookclub-app .header-avatar-growth { width: 100px; }
  .bookclub-app .user-stats-row { grid-area: stats; display: flex; width: 100%; min-width: 0; align-items: center; gap: 8px; }
  .bookclub-app .coin-badge-button { flex: 1 1 180px; min-width: 0; max-width: 220px; min-height: 34px; padding-inline: 9px; }
  .bookclub-app .streak-badge { display: inline-flex; min-height: 34px; align-items: center; }
}
@media (max-width: 390px) {
  .bookclub-app .pixel-header { min-height: 106px; }
  .bookclub-app .brand { max-width: 178px; font-size: 16px; }
  .bookclub-app .brand-kicker { display: none; }
  .bookclub-app .header-profile-stack { min-width: 92px; }
  .bookclub-app .header-profile-stack .user-pill { width: 66px; height: 66px; min-width: 66px; }
  .bookclub-app .header-profile-stack .avatar-pixel-sm { width: 52px; height: 52px; flex-basis: 52px; }
  .bookclub-app .header-avatar-growth { width: 92px; font-size: 7px; }
  .bookclub-app .coin-badge-button { flex-basis: 150px; max-width: 180px; font-size: 9px; }
}

@media (max-width: 760px) {
  .bookclub-app .asset-world-shell { display: flex; flex-direction: column; gap: 9px; min-height: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .bookclub-app .asset-scene-toggle { display: block; order: 2; width: 100%; min-height: 44px; padding: 8px 12px; color: #fff9ea; background: #315b46; border: 1px solid #234936; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 900; }
  .bookclub-app .asset-world-stage { display: none; order: 3; }
  .bookclub-app #tab-shop.is-scene-open .asset-world-stage { display: block; }
  .bookclub-app .asset-world-shell > .asset-store-drawer-inline { display: block; order: 1; min-height: 0; max-height: none; overflow: visible; padding: 14px 10px; }
  .bookclub-app .asset-store-drawer-inline .asset-store-heading { display: flex; }
  .bookclub-app .asset-store-drawer-inline .asset-store-heading h3 { font-size: 26px; }
  .bookclub-app .asset-store-drawer-inline .asset-store-categories { display: flex; gap: 3px; margin: 12px 0 9px; padding: 0 0 8px; overflow-x: auto; border: 0; border-bottom: 1px solid #e0cfa5; scrollbar-width: none; }
  .bookclub-app .asset-store-drawer-inline .asset-store-categories button { flex: 0 0 48px; min-height: 45px; font-size: 9px; }
  .bookclub-app .asset-store-drawer-inline .shop-status { display: block; margin: 0 0 8px; padding: 0; }
  .bookclub-app .asset-store-drawer-inline .shop-catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: auto; gap: 8px; max-height: none; overflow: visible; padding: 0; }
  .bookclub-app .asset-store-drawer-inline .shop-item-card { grid-template-columns: minmax(0,1fr); grid-template-rows: 112px auto auto auto auto auto; min-height: 225px; padding: 6px; }
  .bookclub-app .asset-store-drawer-inline .shop-item-media { grid-column: 1; grid-row: 1; min-height: 112px; }
  .bookclub-app .asset-store-drawer-inline .shop-item-info { grid-column: 1; grid-row: 2; }
  .bookclub-app .asset-store-drawer-inline .shop-item-price { grid-column: 1; grid-row: 3; }
  .bookclub-app .asset-store-drawer-inline .shop-item-affordability { grid-column: 1; grid-row: 4; }
  .bookclub-app .asset-store-drawer-inline .shop-item-owned { grid-column: 1; grid-row: 5; }
  .bookclub-app .asset-store-drawer-inline .shop-item-actions { grid-column: 1; grid-row: 6; }
  .bookclub-app .asset-store-drawer-inline .asset-inventory-drawer { margin-top: 14px; }
  .bookclub-app .asset-world-stage { min-height: 560px; padding-bottom: 138px; border-radius: 15px; }
  .bookclub-app .asset-world-stage-header { padding: 15px 14px 0; }
  .bookclub-app .asset-world-stage-header h2 { font-size: 28px; }
  .bookclub-app .asset-world-wallet { min-width: 92px; padding: 6px 7px; }
  .bookclub-app .asset-world-wallet strong { font-size: 16px; }
  .bookclub-app .asset-world-story-card { width: 64%; margin: 16px 0 0 13px; padding: 9px 10px; }
  .bookclub-app .asset-world-story-card strong { font-size: 14px; }
  .bookclub-app .asset-world-story-card span { font-size: 9px; }
  .bookclub-app .asset-world-stage-character { left: 12%; bottom: 128px; width: 76%; min-width: 0; }
  .bookclub-app .asset-world-stage-character canvas { min-height: 320px; }
  .bookclub-app .asset-world-collection { right: 10px; bottom: calc(72px + env(safe-area-inset-bottom,0px)); width: 126px; max-height: 160px; }
  .bookclub-app .asset-world-open-button { right: 146px; bottom: calc(72px + env(safe-area-inset-bottom,0px)); left: 12px; min-height: 42px; justify-content: center; padding: 8px; white-space: nowrap; }
  .bookclub-app .app-drawer-body > .asset-store-drawer-inline { display: block; min-height: 0; padding: 0; overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .bookclub-app .app-drawer-body > .asset-store-drawer-inline .asset-store-heading { display: none; }
  .bookclub-app .app-drawer-body > .asset-store-drawer-inline .asset-store-categories { display: grid; grid-template-columns: repeat(7,minmax(48px,1fr)); grid-auto-flow: column; grid-auto-columns: minmax(48px,1fr); grid-column: auto; grid-row: auto; gap: 3px; margin: 12px 0 10px; padding: 0 0 10px; overflow-x: auto; overflow-y: hidden; border: 0; border-bottom: 1px solid #e0cfa5; }
  .bookclub-app .app-drawer-body > .asset-store-drawer-inline .asset-store-categories button { min-height: 47px; font-size: 9px; }
  .bookclub-app .app-drawer-body > .asset-store-drawer-inline .shop-status { display: block; margin: 0 0 8px; padding: 0; }
  .bookclub-app .app-drawer-body > .asset-store-drawer-inline .shop-catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: auto; grid-column: auto; grid-row: auto; gap: 8px; max-height: none; overflow: visible; padding: 0; }
  .bookclub-app .app-drawer-body > .asset-store-drawer-inline .shop-item-card { grid-template-columns: minmax(0,1fr); grid-template-rows: 104px auto auto auto auto auto; min-height: 210px; padding: 6px; }
  .bookclub-app .app-drawer-body > .asset-store-drawer-inline .shop-item-media { grid-column: 1; grid-row: 1; min-height: 104px; }
  .bookclub-app .app-drawer-body > .asset-store-drawer-inline .shop-item-info { grid-column: 1; grid-row: 2; }
  .bookclub-app .app-drawer-body > .asset-store-drawer-inline .shop-item-price { grid-column: 1; grid-row: 3; }
  .bookclub-app .app-drawer-body > .asset-store-drawer-inline .shop-item-affordability { grid-column: 1; grid-row: 4; }
  .bookclub-app .app-drawer-body > .asset-store-drawer-inline .shop-item-owned { grid-column: 1; grid-row: 5; }
  .bookclub-app .app-drawer-body > .asset-store-drawer-inline .shop-item-actions { grid-column: 1; grid-row: 6; }
  .bookclub-app .shop-growth-passport { margin-top: 18px; padding: 10px; }
  .bookclub-app .shop-growth-passport-heading { display: grid; gap: 3px; align-items: start; }
  .bookclub-app .shop-growth-passport-heading h2 { font-size: 30px; }
  .bookclub-app .shop-growth-passport-heading > span { max-width: none; text-align: left; }
  .bookclub-app .shop-growth-passport .character-growth-panel { padding: 10px; }
  .bookclub-app .shop-growth-passport .character-growth-hero { grid-template-columns: minmax(120px,38%) minmax(0,1fr); gap: 10px; }
  .bookclub-app .shop-growth-passport .character-growth-art { grid-column: 1; grid-row: 1; width: 100%; min-height: 210px; margin: 0; }
  .bookclub-app .shop-growth-passport .character-growth-copy { grid-column: 2; grid-row: 1; align-content: start; }
  .bookclub-app .shop-growth-passport .character-growth-copy h2 { font-size: 18px; }
  .bookclub-app .shop-growth-passport .character-growth-copy p { font-size: 10px; }
  .bookclub-app .shop-growth-passport .character-growth-meta { margin-top: 7px; gap: 6px; }
  .bookclub-app .shop-growth-passport .growth-passport-assets { gap: 4px; }
  .bookclub-app .shop-growth-passport .growth-passport-assets span { padding: 5px; font-size: 9px; }
  .bookclub-app .shop-growth-passport .growth-passport-assets { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 360px) {
  .bookclub-app .asset-world-collection { width: 120px; }
  .bookclub-app .asset-world-open-button { right: 138px; font-size: 10px; }
}

/* Standalone preview-board mode. The asset page intentionally leaves the
   legacy lobby chrome behind; it is a focused collection surface with its
   own back control and the mobile dock as the only global navigation. */
.bookclub-app.shop-tab-active .pixel-header,
.bookclub-app.shop-tab-active .music-bar,
.bookclub-app.shop-tab-active .office-viewport,
.bookclub-app.shop-tab-active .daily-atelier,
.bookclub-app.shop-tab-active > .page-container > .tab-bar { display: none !important; }
.bookclub-app.shop-tab-active .page-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.bookclub-app.shop-tab-active #tab-shop {
  display: block !important;
  min-height: 100vh;
  padding: 18px clamp(10px, 3vw, 42px) 112px;
  background-color: #e8d4a8;
  background-image: linear-gradient(rgba(243,231,200,.68), rgba(232,212,168,.82)), url('../assets/world/v1-reading-cabin-hub-v1.png?v=20260930-hub2');
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}
.bookclub-app .shop-board-utility {
  display: flex;
  width: min(1440px, 100%);
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto 12px;
  padding: 0 4px;
  color: #705436;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bookclub-app .shop-board-back {
  min-height: 38px;
  padding: 7px 12px;
  color: #fff9ea;
  background: #315b46;
  border: 1px solid #234936;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}
.bookclub-app .shop-board-back:hover,
.bookclub-app .shop-board-back:focus-visible { background: #3f7358; }
.bookclub-app .shop-board-utility-title { color: #70491d; }
.bookclub-app .shop-board-utility-note { color: #9a7042; }
.bookclub-app.shop-tab-active .asset-world-shell,
.bookclub-app.shop-tab-active .shop-growth-passport { width: min(1440px, 100%); margin-inline: auto; }

@media (max-width: 760px) {
  .bookclub-app.shop-tab-active #tab-shop { padding: 10px 7px 96px; background-attachment: scroll; }
  .bookclub-app .shop-board-utility { display: none; }
  .bookclub-app .shop-board-back { grid-row: span 2; min-height: 38px; padding-inline: 10px; font-size: 10px; }
  .bookclub-app .shop-board-utility-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bookclub-app .shop-board-utility-note { grid-column: 2; font-size: 8px; }
}

/* The shop is a scrollable board, not a sticky-header dashboard. Keep the
   header above the board while this tab is active so it cannot cover the
   passport or create a second visual hierarchy in the middle of the page. */
.bookclub-app.shop-tab-active .pixel-header { position: relative; top: auto; }

/* Compact passport controls replace the old full roster on the shop tab. */
.bookclub-app .shop-growth-passport .character-growth-roster {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.bookclub-app .passport-compact-progress,
.bookclub-app .passport-character-switch,
.bookclub-app .passport-next-goal,
.bookclub-app .passport-more-details {
  min-width: 0;
  padding: 12px;
  background: #fff5d9;
  border: 1px solid #dfcda5;
  border-radius: 10px;
}
.bookclub-app .passport-compact-progress-heading,
.bookclub-app .passport-character-switch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.bookclub-app .passport-compact-progress-heading { color: #70491d; font-size: 12px; font-weight: 800; }
.bookclub-app .passport-compact-progress-heading strong { margin-left: auto; color: #4e8058; }
.bookclub-app .passport-xp-track { display: block; height: 12px; margin: 10px 0 8px; overflow: hidden; background: #e7d9b4; border: 1px solid #c8b483; border-radius: 999px; }
.bookclub-app .passport-xp-track i { display: block; height: 100%; background: linear-gradient(90deg, #5e936b, #dfad52, #c96848); border-radius: inherit; }
.bookclub-app .passport-compact-stats { display: flex; flex-wrap: wrap; gap: 7px; }
.bookclub-app .passport-compact-stats span { padding: 5px 8px; color: #6e4b26; background: #f5e8c9; border: 1px solid rgba(126,83,32,.18); font-size: 10px; font-weight: 800; }
.bookclub-app .passport-character-switch label { color: #604c38; font-size: 12px; font-weight: 800; }
.bookclub-app .passport-character-switch select { min-width: 0; width: 100%; }
.bookclub-app .passport-character-switch button { min-height: 44px; white-space: nowrap; }
.bookclub-app .passport-next-goal { display: flex; justify-content: space-between; gap: 10px; color: #6e4b26; font-size: 11px; line-height: 1.5; }
.bookclub-app .passport-next-goal small { color: #8b775d; }
.bookclub-app .passport-more-details summary { color: #6e4b26; cursor: pointer; font-size: 12px; font-weight: 800; }
.bookclub-app .passport-more-details p { margin: 8px 0 0; color: #786855; font-size: 11px; line-height: 1.55; }
@media (max-width: 760px) {
  .bookclub-app .passport-compact-progress-heading,
  .bookclub-app .passport-character-switch { grid-template-columns: 1fr; align-items: stretch; gap: 7px; }
  .bookclub-app .passport-compact-progress-heading strong { margin-left: 0; }
  .bookclub-app .passport-character-switch button { width: 100%; }
  .bookclub-app .passport-next-goal { display: grid; gap: 4px; }
}

/* Square media windows must win over drawer row heights on every viewport. */
.bookclub-app .shop-item-media,
.bookclub-app .asset-store-drawer-inline .shop-item-media,
.bookclub-app .app-drawer-body > .asset-store-drawer-inline .shop-item-media {
  height: auto; min-height: 0; aspect-ratio: 1; align-self: start;
}
.bookclub-app .shop-item-media > img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.bookclub-app .shop-growth-passport .character-growth-art {
  background: linear-gradient(rgba(255,248,228,.12), rgba(255,248,228,.2)), url('../assets/world/v1-reading-cabin-hub-v1.png?v=20260930-hub2') center / cover;
  min-height: 0; aspect-ratio: 4 / 5; border-radius: 18px;
}
.bookclub-app .shop-growth-passport .character-growth-art canvas { width: 100%; height: 100%; object-fit: contain; }
.bookclub-app .shop-growth-passport .character-growth-art div[role="status"] { font: 600 14px/1.5 Georgia, 'Songti SC', serif; color: #493225; padding: 12px; background: #fff8e8; }
.bookclub-app .shop-growth-passport [hidden] { display: none !important; }
.bookclub-app .passport-hero-progress { display: grid; gap: 7px; color: #315b46; }
.bookclub-app .passport-hero-progress strong { font: 700 24px/1.3 Georgia, 'Songti SC', serif; }
.bookclub-app .passport-hero-progress > span,
.bookclub-app .passport-hero-progress small { padding: 0; border: 0; background: transparent; color: #685437; font-size: 12px; }
.bookclub-app .passport-hero-progress .passport-xp-track { margin: 0; }
.showcase-equipment-slot { min-width: 0; margin: 0; padding: 7px; border: 1px solid #dfcda5; border-radius: 10px; background: #fff8e8; }
.showcase-asset-window { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; background: #f1e5cb; border-radius: 7px; }
.showcase-asset-window canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.showcase-asset-status { position: absolute; inset: auto 4px 4px; text-align: center; color: #604c38; background: #fff8e8; font-size: 11px; }
.showcase-asset-status[hidden] { display: none; }
.showcase-asset-empty { color: #756349; font-size: 12px; }
.showcase-equipment-slot figcaption { display: grid; gap: 3px; margin-top: 6px; overflow-wrap: anywhere; color: #5f4b36; font-size: 12px; }
.bookclub-app .shop-growth-passport .growth-passport-assets figcaption span { display: block; padding: 0; background: none; border: none; border-radius: 0; font-size: 12px; }
.bookclub-character-showcase { display: grid; grid-template-columns: minmax(140px, 240px) minmax(0, 1fr); gap: 20px; padding: 18px; color: #493225; background: #fffaf0; border: 1px solid #d6c39d; border-radius: 16px; }
.showcase-character-window { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: url('../assets/world/v1-reading-cabin-hub-v1.png?v=20260930-hub2') center / cover; }
.showcase-character-window > img,
.showcase-character-window > canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.showcase-character-details { min-width: 0; }
.showcase-character-details h3 { margin: 0; font: 700 26px/1.3 Georgia, 'Songti SC', serif; }
.bookclub-character-showcase .growth-passport-assets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) {
  .bookclub-app .asset-store-drawer-inline .shop-item-card,
  .bookclub-app .app-drawer-body > .asset-store-drawer-inline .shop-item-card { grid-template-rows: auto auto auto auto auto auto; }
  .bookclub-app .shop-growth-passport .character-growth-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bookclub-app .shop-growth-passport .character-growth-art { grid-column: 1; grid-row: 1; width: min(240px, 100%); justify-self: center; min-height: 0; }
  .bookclub-app .shop-growth-passport .character-growth-copy { grid-column: 1; grid-row: 2; }
  .bookclub-app .shop-growth-passport .character-growth-copy p { font-size: 13px; }
  .bookclub-app .shop-growth-passport .growth-passport-assets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bookclub-character-showcase { grid-template-columns: minmax(0, 1fr); }
  .showcase-character-window { width: min(240px, 100%); justify-self: center; }
  .bookclub-character-showcase .growth-passport-assets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
