/* Collection shelf, bilingual labels, and drawers sized to their labels. */
.shelfbtn{min-height:64px;font-size:20px;justify-content:space-between;padding:0 16px;background:var(--paper)}
.shelfbtn b{font-weight:700}.shelfbtn span{font-size:20px;color:var(--muted)}
.csum{margin:0;font-size:22px;line-height:1.3}.csum b{font-weight:700}.csum span{color:var(--muted);font-size:20px}
.cshelf{display:flex;flex-direction:column;gap:14px}
.eraShelf{background:var(--oak);border:3px solid var(--edge);border-radius:4px;padding:8px 8px 10px;color:#f4ecd9}
.eraHead{margin:0;display:flex;justify-content:space-between;align-items:baseline;gap:8px;font:22px/1.3 Fell,Georgia,'Noto Serif TC',serif;color:var(--brass)}
.eraName{overflow-wrap:break-word;word-break:keep-all}.eraCount{font:700 20px Atkinson,sans-serif;color:#f4ecd9;white-space:nowrap}
.eraYears{margin:0 0 6px;font-size:18px;line-height:1.4;color:#eadbb8}
.shelfRow{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.shelfRow button{min-height:132px;padding:4px;border:2px solid var(--brassEdge);border-radius:3px;background:var(--paper);color:var(--ink);display:flex;flex-direction:column;align-items:stretch;gap:3px;cursor:pointer;min-width:0}
.shelfRow img{width:100%;aspect-ratio:1;min-height:96px;object-fit:cover;display:block;background:var(--board2)}
.shelfRow .nm{font-size:18px;line-height:1.3;overflow-wrap:anywhere;text-align:left}
.shelfRow .lock{background:#2a1d14;border:2px dashed var(--brassEdge);color:#eadbb8;cursor:default}
.shelfRow .lock .q{flex:1;display:grid;place-items:center;min-height:96px;font:700 44px Fell,Georgia,serif;color:var(--brass)}
.rh2{margin:8px 0 0;font-size:24px}
.rounds{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.rounds li{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;padding:8px;background:var(--paper);border-left:3px solid var(--brassEdge);font-size:18px;line-height:1.35;min-height:44px}
.rounds .rd{font-weight:700}.rounds .rs{grid-column:1/-1}.rounds .none{display:block}
/* the label sets the drawer height */
.drawer{height:auto;min-height:52px;align-items:stretch}
.plate{height:auto;min-height:42px;width:min(46%,168px);min-width:118px;padding:4px 8px;align-self:flex-start;justify-content:center}
.plate b{font:18px/1.25 Fell,Georgia,'Noto Serif TC',serif;overflow-wrap:break-word;word-break:keep-all}
.plate span{font-size:18px;line-height:1.25;overflow-wrap:anywhere}
.cabinet-fix .plate{height:auto}
.slot{align-self:center}
.hero-viewer .viewer-caption{white-space:pre-line;font-size:18px;line-height:1.4;padding:10px 16px;background:#15110ee6;pointer-events:none}
.fm-era{overflow-wrap:anywhere;line-height:1.25;font-size:19px}
html[data-huge] body{zoom:1.25}
.topbtn.aa{font-weight:700;font-size:18px}
.hero-viewer .viewer-caption{pointer-events:auto}.viewer-link{color:#f4d99a;display:inline-block;min-height:44px;line-height:44px;text-decoration:underline}
/* accessible-play floors for the chrome around the game */
.clock{font-size:18px}.topbtn{font-size:20px;line-height:1.45;padding:0 2px}.topbtn.aa{font-size:20px}.topbtn.help{font-size:22px}.kicker{font-size:18px;line-height:1.45;letter-spacing:.06em}
#fm-skip{font-size:20px;line-height:1.45}.fm-era{font-size:20px}
@media(max-width:360px){.top{padding:0 6px}.brand{font-size:20px;gap:4px}.mark{width:26px;height:26px}.clock{display:none}}
.fm-premise,.fm-era{line-height:1.5}
/* gloves, view strip, sheets */
.topbtn.gl{display:flex;align-items:center;gap:4px;min-width:48px;padding:0 6px}.topbtn.gl b{font-size:20px}
@media(max-width:430px){.clock{display:none}}
#play .views.vstrip{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:6px;padding:6px;background:var(--board);min-height:0}
#play .views.vstrip[hidden]{display:none}
#play .views.vstrip button{min-height:96px;border:2px solid var(--rule);border-bottom:2px solid var(--rule);background:var(--paper);padding:4px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;font:700 18px/1.25 Atkinson,'Noto Sans TC',sans-serif;cursor:pointer;min-width:0}
#play .views.vstrip button+button{border-left:2px solid var(--rule)}
#play .views.vstrip button.on{border:3px solid var(--ink);background:#fff}
.vt{width:100%;height:48px;display:grid;place-items:center;overflow:hidden;background:var(--board2)}.vt img{width:100%;height:100%;object-fit:cover}
.vt svg{width:28px;height:28px}.vl{text-align:center;font-size:18px;line-height:1.25}.vl .l1,.vl .l2{display:block;white-space:nowrap}
#play .views.vstrip button.locked{color:var(--muted);border-style:dashed}
#play .face-note{font-size:18px;line-height:1.45;min-height:26px;padding:6px 8px}
#play .badge{font-size:18px}
#play .help,.retrynote{font-size:18px;line-height:1.45}
#play .glove{font-size:18px;line-height:1.3;min-height:48px}
#play .mount.fading .hero-open{animation:vfade 160ms ease-in-out}
@keyframes vfade{0%,100%{opacity:1}50%{opacity:.15}}
#play .mount.bounced{animation:bounceback 450ms ease-out}
@keyframes bounceback{0%{transform:translateY(0)}30%{transform:translateY(-12px)}60%{transform:translateY(0)}80%{transform:translateY(-4px)}100%{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#play .mount.bounced{animation:none;outline:3px solid var(--ink)}}
.sheetwrap{z-index:60;align-items:end}.sheet{width:min(430px,100%);padding:14px;max-height:88dvh;overflow:auto}
.sheet h2{margin:0 0 6px;font-size:28px}.sheet p{margin:6px 0;font-size:20px;line-height:1.45}
.sheetbtns{display:flex;flex-direction:column;gap:8px;margin-top:10px}.sheetbtns .btn{min-height:52px;font-size:20px;width:100%}
.earned{display:flex;flex-wrap:wrap;gap:6px}.eg{display:inline-flex;align-items:center;gap:6px;background:var(--paper);border-left:3px solid var(--brassEdge);padding:6px 10px;font-size:18px;line-height:1.4}.eg.now{font-weight:700}
.reveal .thumb{cursor:zoom-in}
.viewer-foot{position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom);background:#15110ee6}.hero-viewer .viewer-caption{position:static}.viewer-strip{display:flex;gap:6px;padding:6px 10px;overflow-x:auto;background:#15110ecc}
.viewer-strip[hidden]{display:none}
.viewer-strip button{flex:0 0 96px;min-height:72px;border:2px solid #ffffff55;background:#15110e;color:#fff;padding:3px;display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;font:700 18px/1.2 Atkinson,'Noto Sans TC',sans-serif;min-width:0}
.viewer-strip button.on{border:3px solid #f4d99a}.viewer-strip .vt{height:40px;background:#3a2f26}.viewer-strip .locked{border-style:dashed}
.viewer-stage img.flipping{animation:card-flip 250ms ease-in-out}.viewer-stage img.fading{animation:vfade 160ms ease-in-out}

.revealcab .slot{flex-wrap:wrap}.revealcab .reveal{flex:1 1 200px;min-width:0}.revealcab .rec{overflow-wrap:anywhere}
