/* lumibot.si Batch 19: Star Doors, back bar, and site-wide tidy-up (48px taps, larger small text).
   Kid look = bright, rounded, huge buttons. Sleek look (html.lx-pg) = darker, flat, calm. */
.b19-i { margin-right: 8px; font-size: 1.15em; line-height: 1; }
.b19-doorbox { margin: 0 0 20px; padding: 18px 16px; border-radius: 26px; background: rgba(14, 16, 44, .72); border: 3px solid rgba(255, 226, 122, .55); color: #fff; }
.b19-home { max-width: 1100px; margin: 18px auto 22px; }
.b19-h2, .b19-sh2 { margin: 0 0 4px; font-size: 26px; font-weight: 900; line-height: 1.2; }
.b19-lead { margin: 0 0 12px; font-size: 17px; line-height: 1.4; color: #ece6ff; }
.b19-doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 900px) { .b19-doors { grid-template-columns: repeat(4, 1fr); } }
.b19-door { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 118px; padding: 12px 10px; border-radius: 22px; border: 3px solid var(--c); background: color-mix(in srgb, var(--c) 22%, rgba(12, 14, 36, .9)); color: #fff; font: inherit; text-align: center; cursor: pointer; }
.b19-door .b19-i { margin: 0; font-size: 40px; }
.b19-door b { font-size: 19px; font-weight: 900; line-height: 1.15; }
.b19-door small { font-size: 15px; color: #f0ecff; line-height: 1.25; }
.b19-door:hover { transform: translateY(-2px); }
.b19-door:focus-visible, .b19-link:focus-visible, .b19-btn:focus-visible, .b19-x:focus-visible { outline: 4px solid #ffe27a; outline-offset: 3px; }
html.b19-lock { overflow: hidden; }
.b19-sheet { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; justify-content: center; background: rgba(4, 4, 18, .66); padding: 0; }
.b19-sheet-in { position: relative; width: 100%; max-width: 760px; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; padding: 22px 16px 26px; border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #23205a, #141238); color: #fff; box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); }
@media (min-width: 800px) { .b19-sheet { align-items: center; } .b19-sheet-in { border-radius: 28px; } }
.b19-x { position: absolute; top: 12px; right: 12px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 24px; cursor: pointer; }
.b19-sh2 { padding-right: 60px; }
.b19-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.b19-link { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px; border-radius: 18px; border: 3px solid var(--c); background: color-mix(in srgb, var(--c) 16%, rgba(255, 255, 255, .06)); color: #fff; text-decoration: none; }
.b19-link .b19-i { font-size: 30px; margin: 0; }
.b19-link span { display: flex; flex-direction: column; }
.b19-link b { font-size: 19px; font-weight: 900; line-height: 1.2; }
.b19-link small { font-size: 15px; color: #ece6ff; }
.b19-link.here { box-shadow: 0 0 0 4px #ffe27a; }
.b19-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.b19-back { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1100px; margin: 26px auto 18px; padding: 16px 12px; box-sizing: border-box; }
.b19-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 10px 20px; border-radius: 999px; border: 3px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .92); color: #2a1f5c; font: inherit; font-size: 18px; font-weight: 900; text-decoration: none; cursor: pointer; }
.b19-gold { background: linear-gradient(180deg, #ffe89a, #ffc94a); border-color: #ffd36b; color: #3a2400; }
@media (max-width: 520px) { .b19-doors { grid-template-columns: 1fr 1fr; } .b19-door { min-height: 112px; } .b19-back .b19-btn { flex: 1 1 100%; } .b19-links { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .b19-door:hover { transform: none; } }
html.lx-calm .b19-door:hover { transform: none; }
/* Sleek look */
html.lx-pg .b19-doorbox { background: rgba(16, 16, 22, .9); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; }
html.lx-pg .b19-door { border: 1px solid rgba(255, 255, 255, .16); border-left: 4px solid var(--c); background: linear-gradient(160deg, rgba(40, 40, 52, .92), rgba(18, 18, 26, .92)); border-radius: 12px; min-height: 110px; }
html.lx-pg .b19-door b { font-size: 18px; letter-spacing: .01em; }
html.lx-pg .b19-door small { color: #b9c0d0; }
html.lx-pg .b19-sheet-in { background: #121219; border: 1px solid rgba(255, 255, 255, .14); }
html.lx-pg .b19-link { border: 1px solid rgba(255, 255, 255, .14); border-left: 4px solid var(--c); background: rgba(255, 255, 255, .04); border-radius: 10px; }
html.lx-pg .b19-link small, html.lx-pg .b19-lead { color: #b9c0d0; }
html.lx-pg .b19-btn { background: rgba(255, 255, 255, .06); color: #e8ecf5; border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; }
html.lx-pg .b19-gold { background: #5ee0ff; color: #061018; border-color: #5ee0ff; }
html.lx-pg .b19-door:hover { transform: none; border-color: rgba(255, 255, 255, .3); }

/* ---------- site-wide tidy-up: tap targets of at least 48px ---------- */
.lg-nav a.lg-hi { min-width: 48px; justify-content: center; }
footer a { display: inline-block; min-height: 48px; line-height: 48px; padding: 0 8px; }
footer small a { line-height: 48px; }
body > header > a, header > a { min-height: 48px; }
.b12-paths a { display: flex !important; align-items: center; min-height: 52px; }
.cp-home { display: inline-flex !important; align-items: center; min-height: 48px; }
.pm-x { min-width: 48px; min-height: 48px; }
.pm-add, .pm-sp { min-height: 48px; display: inline-flex; align-items: center; }
#dustBtn.dust, .featured .pill { min-height: 48px; }
.jp-close, .hello-close { min-width: 48px; min-height: 48px; }
.credit-btn { min-height: 48px; }
input[type=range] { min-height: 48px; }
details > summary { min-height: 48px; padding-top: 12px; padding-bottom: 12px; box-sizing: border-box; cursor: pointer; }
.lg-btn, .lg-tab { min-height: 48px; }
/* small things placed on pictures keep their spot; an invisible ring makes them at least 48px to tap */
.rm-it, .l9-lamp, .sm-star { overflow: visible; } .sm-star { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.rm-it::after, .l9-lamp::after, .sm-star::after { content: ''; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%; }

/* ---------- larger small text (not the tiny print inside card art) ---------- */
main small:not(.pc *):not(.lg-card *):not(.b18-tile *), .lg-small, .lg-page small:not(.pc *):not(.lg-card *) { font-size: max(.92em, 14px); }
.bk-ring-open b { font-size: 34px; }

/* ---------- Pip & Lumi's Build Diary (/diary/) ---------- */
.b19-dy-h1 { font-size: clamp(30px, 7vw, 46px); line-height: 1.15; margin: 8px 0 10px; }
.b19-dy-lead { font-size: 20px; }
.b19-dy-ctl { align-items: center; margin: 14px 0 18px; }
.b19-dy-count { font-size: 18px; font-weight: 800; opacity: .9; }
.b19-dy-list { display: grid; gap: 22px; }
.b19-dy { background: rgba(255, 255, 255, .1); border: 3px solid rgba(255, 255, 255, .35); border-radius: 26px; padding: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); scroll-margin-top: 80px; }
.b19-dy-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.b19-dy-chip { display: inline-block; padding: 6px 16px; border-radius: 999px; background: #c9b3ff; color: #241650; font-weight: 900; font-size: 18px; }
.b19-dy-when { font-size: 16px; font-weight: 700; opacity: .85; }
.b19-dy-title { font-size: clamp(24px, 5.5vw, 32px); margin: 10px 0 12px; line-height: 1.2; }
.b19-dy-body { display: grid; gap: 16px; }
.b19-dy-shot { width: 100%; max-width: 300px; height: auto; aspect-ratio: 412 / 800; object-fit: cover; object-position: top; border-radius: 18px; border: 3px solid rgba(255, 255, 255, .55); justify-self: center; background: rgba(0, 0, 0, .2); }
.b19-dy-text { font-size: 19px; line-height: 1.55; margin: 0 0 12px; }
.b19-dy-h3 { font-size: 18px; margin: 6px 0 8px; }
.b19-dy-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.b19-dy-links .b19-btn { min-height: 52px; font-size: 17px; padding: 8px 16px; }
.b19-dy-next { font-size: 18px; line-height: 1.5; margin: 0; padding: 12px 14px; border-radius: 16px; background: rgba(255, 226, 122, .16); border: 2px dashed rgba(255, 226, 122, .6); }
@media (min-width: 760px) { .b19-dy-body { grid-template-columns: 240px 1fr; align-items: start; } .b19-dy-shot { max-width: 240px; } }
.b19-diary-btn { margin-top: 6px; }
html.lx-pg .b19-dy { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; box-shadow: none; }
html.lx-pg .b19-dy-chip { background: rgba(255, 255, 255, .1); color: #e8ecf5; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; }
html.lx-pg .b19-dy-shot { border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); }
html.lx-pg .b19-dy-next { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; }

/* Pip Pulls: the Lens bar sits in one slim row above the tab bar, so it never covers the binder or hides under the tabs */
#app > .b19-back { flex-wrap: nowrap; gap: 8px; margin: 0; max-width: none; padding: 6px 10px calc(72px + env(safe-area-inset-bottom, 0px)); flex: 0 0 auto; }
#app > .b19-back .b19-btn { flex: 1 1 0; min-height: 54px; margin: 0; padding: 6px 10px; font-size: 16px; white-space: nowrap; }
#app > .b19-back a[href="/"], #app > .b19-back [data-b19-g] { display: none; }
