/* 集卡相册：皮面封皮 + 纸页 + 贴角 + 像素边框（沿用 pixel.css 的木色/奶油色） */
#screen-album { padding: 8px 0 28px; }
.alb-book { max-width: 560px; margin: 0 auto; padding: 14px 12px 14px; background: #6b3f22; border: 4px solid var(--px-wood-dark, #5c3a1e);
  box-shadow: inset 0 0 0 3px #8a5a33, inset 0 0 0 5px #4a2d16, 5px 5px 0 rgba(60, 35, 15, .4); font-family: var(--px-font, sans-serif);
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.06) 0 4px, transparent 4px 8px); position: relative; }
.alb-book::before { content: ""; position: absolute; inset: 8px; border: 2px dashed #d9b27a; opacity: .55; pointer-events: none; }
.alb-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; position: relative; }
.alb-title { margin: 0; text-align: center; font-weight: 400; font-size: 22px; letter-spacing: 3px; color: #f2c14e; text-shadow: 2px 2px 0 #4a2d16; }
.alb-count { color: #fff6dc; font-size: 13px; background: #4a2d16; padding: 3px 8px; border: 2px solid #d9b27a; white-space: nowrap; }
.alb-back { flex: none; padding: 6px 10px; }
.alb-tools { margin: 10px 0 8px; color: #fff6dc; font-size: 13px; position: relative; }
.alb-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; max-width: 100%; }
.alb-tab { flex: none; appearance: none; -webkit-appearance: none; border-radius: 0; font: inherit; font-size: 12px; padding: 5px 8px; white-space: nowrap; cursor: pointer;
  background: #4a2d16; color: #fff6dc; border: 2px solid #d9b27a; box-shadow: 2px 2px 0 rgba(0,0,0,.35); }
.alb-tab.on { background: #f2c14e; color: #4a2d16; border-color: #fff6dc; }
.alb-paper { background: var(--px-cream, #fff6dc); border: 4px solid #3b2410; padding: 10px 8px; position: relative;
  box-shadow: inset 0 0 0 2px #e8d5a6; background-image: linear-gradient(rgba(138,90,51,.08) 1px, transparent 1px); background-size: 100% 16px; }
.alb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.alb-cell { appearance: none; -webkit-appearance: none; background: transparent; border: 0; padding: 0; margin: 0; text-align: center; font: inherit; color: #5c3a1e; cursor: pointer; min-width: 0; }
.alb-cell.lock { cursor: default; }
.alb-pic { position: relative; aspect-ratio: 3 / 4; background: #f6f1e7; border: 3px solid #5c3a1e; box-shadow: 2px 2px 0 rgba(60,35,15,.35); overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
/* 贴角：四个角用三角形压住照片 */
.alb-pic::before, .alb-pic::after { content: ""; position: absolute; width: 14px; height: 14px; z-index: 2; background: #c0553b; }
.alb-pic::before { left: 0; top: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.alb-pic::after { right: 0; bottom: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.alb-pic .endcard-cv { border: 0; box-shadow: none; width: 100%; height: 100%; object-fit: contain; }
.alb-cell.lock .alb-pic { background: #b9b2a2; background-image: repeating-conic-gradient(#aaa394 0 25%, #bcb5a6 0 50%); background-size: 8px 8px; border-color: #7d7667; filter: grayscale(1); }
.alb-cell.lock .alb-pic::before, .alb-cell.lock .alb-pic::after { background: #8d8677; }
.alb-q { font-size: 34px; color: #6e6859; text-shadow: 2px 2px 0 rgba(255,255,255,.35); }
.alb-no { margin-top: 5px; font-size: 11px; letter-spacing: 0; line-height: 1.25; }
.alb-name { font-size: 12px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.alb-cell.lock .alb-no, .alb-cell.lock .alb-name { color: #8d8677; }
.alb-empty { grid-column: 1 / -1; text-align: center; color: #8a5a33; }
.alb-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 12px; color: #fff6dc; position: relative; }
.alb-pager .px-arrow { width: 44px; height: 34px; font-size: 14px; }
.alb-pager .px-arrow:disabled { opacity: .4; cursor: default; }
.alb-big { position: fixed; inset: 0; z-index: 50; background: rgba(35, 20, 8, .82); display: flex; align-items: center; justify-content: center; padding: 12px; overflow: auto; }
.alb-big[hidden] { display: none; }
.alb-big-in { width: 100%; max-width: 500px; background: var(--px-cream, #fff6dc); border: 4px solid #3b2410; padding: 10px; box-shadow: inset 0 0 0 2px #e8d5a6, 5px 5px 0 rgba(0,0,0,.4); max-height: 100%; overflow: auto; }
.alb-big-body .endcard-cv { width: 100%; height: auto; }
.alb-big-info { margin: 8px 0; text-align: center; font-size: 13px; color: #5c3a1e; }
.alb-big-act { display: flex; gap: 10px; }
.alb-big-act .btn { flex: 1; }
/* 旧版人生：没有像素场景，用旧结局的图标做封面 */
.alb-pic.alb-old { background: #efe3c2; }
.alb-oico { font-size: 44px; line-height: 1; }
.alb-oldbig { text-align: center; padding: 18px 10px; background: #efe3c2; border: 3px solid #5c3a1e; }
.alb-oldbig .alb-oico { font-size: 72px; }
.alb-oname { margin: 10px 0 6px; font-size: 20px; color: #4a2d16; }
.alb-odesc { margin: 0; font-size: 14px; line-height: 1.6; color: #5c3a1e; }
.alb-big-act .btn[hidden] { display: none; }
/* 结局页「已收入相册」 */
.end-albumnote { margin: 6px auto 10px; text-align: center; font-size: 13px; color: #8a5a33; }
