/* lumibot.si Batch 14: Star Captains, Pack Party, Showcase, Hum Lab, Sketchbook, Storybook, Pip & Me, Star Pass.
   Kid look = bright, rounded, huge buttons. Sleek look (html.lx-pg) = darker, flat, one accent, no emoji. */
.b14-pop .lg-modal-in { max-width: 640px; }
.b14-wide .lg-modal-in { max-width: 920px; }
.b14-pvbar { display: grid; gap: 8px; margin: 10px 0; }
.b14-stamp { display: inline-block; margin: 2px 6px 2px 0; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 15px; background: linear-gradient(135deg, #ffe9a8, #ffc46b); color: #2a1a00; }
.b14-stamp.encore { background: linear-gradient(135deg, #cfe6ff, #9fc8ff); color: #0b1a33; }
.b14-stamp.starburst { background: linear-gradient(135deg, #ffd1f0, #ff9fd8); color: #330a24; }
.b14-stamp.supernova { background: linear-gradient(135deg, #fff, #ffe27a 40%, #ff9f6b); color: #331300; }
.b14-stamp.sb { background: linear-gradient(135deg, #fff6c8, #e8d38a); color: #2e2a10; }
dialog.pv[data-b14-fr="starburst"] .pc { box-shadow: 0 0 0 4px #ff9fd8, 0 0 40px rgba(255, 159, 216, .6); }
dialog.pv[data-b14-fr="supernova"] .pc { box-shadow: 0 0 0 4px #ffe27a, 0 0 60px rgba(255, 200, 107, .8); }
dialog.pv.b14-babyon .pc img { filter: saturate(1.15) brightness(1.06); }
.b14-scrrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.b14-scr { height: 26px; width: auto; max-width: 100%; }
.b14-scr.big { height: 44px; }
/* step inside */
.b14-step { position: relative; height: min(70vh, 560px); border-radius: 22px; overflow: hidden; background: radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--g) 45%, #06071a), #04040c 75%); --x: 0; --y: 0; }
.b14-st-sky { position: absolute; inset: -10%; background-image: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 20%, #fff, transparent), radial-gradient(2px 2px at 40% 80%, #cfe6ff, transparent), radial-gradient(1px 1px at 85% 65%, #fff, transparent), radial-gradient(1.5px 1.5px at 10% 70%, #ffe9a8, transparent); background-size: 220px 220px; transform: translate(calc(var(--x) * -20px), calc(var(--y) * -20px)); }
.b14-st-glow { position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--g) 70%, transparent), transparent 70%); filter: blur(20px); transform: translate(calc(var(--x) * -10px), calc(var(--y) * -10px)); }
.b14-st-bg, .b14-st-fg { position: absolute; left: 50%; top: 50%; height: 86%; width: auto; transform: translate(calc(-50% + var(--x) * 18px), calc(-50% + var(--y) * 18px)); border-radius: 18px; }
.b14-st-bg { opacity: .55; filter: blur(1px) saturate(1.2); height: 92%; transform: translate(calc(-50% + var(--x) * -12px), calc(-50% + var(--y) * -12px)); }
.b14-st-fg { transform: translate(calc(-50% + var(--x) * 36px), calc(-50% + var(--y) * 36px)) scale(1.04); filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .6)); }
.b14-st-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-weight: 700; text-align: center; }
.b14-step.still .b14-st-sky, .b14-step.still .b14-st-fg, .b14-step.still .b14-st-bg { transition: none; }
/* flipbook + sketch */
.b14-flip-pg { display: grid; place-items: center; min-height: 300px; perspective: 900px; }
.b14-flip-pg img { max-height: 46vh; border-radius: 16px; animation: b14flip .5s ease; }
@keyframes b14flip { from { transform: rotateY(-70deg); opacity: .3; } to { transform: none; opacity: 1; } }
.b14-sk-pad { display: grid; place-items: center; padding: 14px; border-radius: 18px; background: #fdf8ec; }
.b14-sk-pad img { max-height: 42vh; border-radius: 12px; transition: filter .5s ease; }
.b14-sk-pad[data-st="0"] img { filter: grayscale(1) contrast(3) brightness(1.6) opacity(.35); }
.b14-sk-pad[data-st="1"] img { filter: grayscale(1) contrast(2.2) brightness(1.3) opacity(.6); }
.b14-sk-pad[data-st="2"] img { filter: grayscale(.6) contrast(1.4) brightness(1.1); }
.b14-sk-pad[data-st="3"] img { filter: none; }
/* storybook */
.b14-sb { display: grid; gap: 10px; padding: 12px; border-radius: 20px; background: linear-gradient(160deg, #fff8e0, #f3e2b0); color: #2e2410; border: 3px solid #e8c96b; }
.b14-sb-main img { width: 100%; max-height: 40vh; object-fit: contain; border-radius: 14px; background: color-mix(in srgb, var(--g) 30%, #0b0b1a); }
.b14-sb-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.b14-sb-pan { display: grid; gap: 4px; padding: 6px; border-radius: 12px; border: 2px solid #e8c96b; background: #fffaf0; color: #2e2410; font: inherit; cursor: zoom-in; transition: transform .25s ease; }
.b14-sb-pan img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.b14-sb-pan small { font-size: 14px; line-height: 1.3; }
.b14-sb-pan.zoomed { grid-column: 1 / -1; cursor: zoom-out; }
.b14-sb figcaption { text-align: center; font-size: 18px; }
.b14-sbgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.b14-sil { display: grid; place-items: center; min-height: 160px; border-radius: 18px; border: 3px dashed rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .7); text-align: center; padding: 10px; }
.b14-sil img { width: 80px; filter: brightness(0) opacity(.35); }
/* peek */
.b14-peek-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0; }
.b14-back { width: 92px; height: 128px; border-radius: 14px; border: 3px solid #ffe27a; background: radial-gradient(circle at 50% 40%, #3a2a7a, #120c2e); color: #ffe27a; font-size: 36px; cursor: pointer; }
.b14-back:hover, .b14-back:focus-visible { transform: translateY(-4px) rotate(-2deg); }
.b14-peek-got { text-align: center; }
.b14-peek-got img { width: 150px; border-radius: 12px; }
/* surprises */
.b14-sur { position: fixed; z-index: 60; top: 18vh; left: -90px; min-width: 76px; min-height: 76px; border: 0; border-radius: 999px; background: radial-gradient(circle, rgba(255, 233, 168, .9), rgba(255, 196, 107, .3) 60%, transparent 70%); font-size: 40px; cursor: pointer; display: grid; place-items: center; animation: b14fly 11s linear forwards; }
.b14-sur small { font-size: 13px; font-weight: 800; color: #2a1a00; }
.b14-sur-sneeze, .b14-sur-wave { animation: b14bob 9s ease-in-out forwards; left: auto; right: 16px; top: auto; bottom: 120px; }
@keyframes b14fly { from { transform: translateX(0) translateY(0); } to { transform: translateX(calc(100vw + 180px)) translateY(18vh); } }
@keyframes b14bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.b14-sur.still { animation: none; left: auto; right: 16px; top: auto; bottom: 120px; box-shadow: 0 0 0 4px rgba(255, 233, 168, .5); }
/* home */
.b14-home .b14-hs { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.b14-hsb { min-width: 110px; min-height: 84px; border-radius: 22px; border: 3px solid #ffd36b; background: rgba(255, 211, 107, .12); color: inherit; font: inherit; font-weight: 800; display: grid; place-items: center; cursor: pointer; }
.b14-hsb span { font-size: 32px; }
.b14-hsb.next { box-shadow: 0 0 0 4px rgba(255, 211, 107, .45); }
.b14-hsb.on { background: #ffd36b; color: #2a1a00; transform: scale(.96); }
.b14-hw { margin: 10px 0; padding: 10px 14px; border-radius: 16px; background: color-mix(in srgb, var(--g) 22%, transparent); border: 2px solid color-mix(in srgb, var(--g) 60%, transparent); }
.b14-memo { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.b14-memo img { width: 80px; border-radius: 10px; }
/* Star Captains */
.cp-board { display: grid; gap: 10px; padding: 12px; border-radius: 22px; background: linear-gradient(180deg, rgba(40, 20, 70, .55), rgba(10, 20, 50, .55)); border: 2px solid rgba(255, 255, 255, .12); transition: box-shadow .4s; }
.cp-board.shine { box-shadow: 0 0 0 4px #ffe27a, 0 0 50px rgba(255, 226, 122, .7); }
.cp-board.fr-grump0 { border-color: #9fffd8; } .cp-board.fr-grump1 { border-color: #ffd36b; } .cp-board.fr-grump2 { border-color: #ffb3e6; } .cp-board.fr-grump3 { border-color: #fff; }
.cp-side { display: grid; gap: 8px; }
.cp-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 120px; }
.cp-cap { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 2px solid rgba(255, 255, 255, .15); }
.cp-cap[data-cp-tgt] { cursor: pointer; border-color: #ff9fd8; box-shadow: 0 0 0 3px rgba(255, 159, 216, .4); }
.cp-cap b { display: block; font-size: 18px; } .cp-cap small { display: block; opacity: .85; }
.cp-capic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; background: rgba(255, 255, 255, .1); overflow: hidden; flex: none; }
.cp-capic img { width: 100%; height: 100%; object-fit: cover; }
.cp-hearts i { font-style: normal; font-size: 22px; margin-right: 2px; }
.cp-card { position: relative; width: 104px; min-height: 140px; padding: 4px 4px 6px; border-radius: 14px; border: 3px solid color-mix(in srgb, var(--g) 70%, #fff); background: color-mix(in srgb, var(--g) 25%, #0c0c1c); color: #fff; font: inherit; cursor: pointer; display: grid; align-content: start; gap: 2px; text-align: center; }
.cp-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.cp-card .cp-nm { font-size: 12px; line-height: 1.15; }
.cp-card .cp-pow, .cp-card .cp-ch, .cp-card .cp-cost { position: absolute; font-size: 13px; font-weight: 900; padding: 1px 6px; border-radius: 999px; background: rgba(0, 0, 0, .7); }
.cp-pow { left: 2px; top: 2px; } .cp-ch { right: 2px; top: 2px; } .cp-cost { left: 2px; bottom: 30px; background: #ffd36b !important; color: #2a1a00; }
.cp-free { position: absolute; right: 2px; bottom: 30px; font-size: 12px; font-weight: 900; background: #9fffd8; color: #0e3326; border-radius: 999px; padding: 1px 6px; }
.cp-card:disabled { opacity: .55; cursor: default; }
.cp-card.used { filter: grayscale(.6); }
.cp-card.sel { transform: translateY(-8px); box-shadow: 0 0 0 4px #ffe27a; }
.cp-card.tgt { box-shadow: 0 0 0 4px #ff9fd8; }
.cp-card.hint { box-shadow: 0 0 0 4px rgba(159, 255, 216, .8); }
.cp-card.chs { transform: translateY(-8px); box-shadow: 0 0 0 4px #9fd8ff; }
.cp-hand { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 16px; background: rgba(0, 0, 0, .25); min-height: 150px; }
.cp-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cp-pips { display: inline-flex; gap: 4px; vertical-align: middle; }
.cp-pips i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #ffd36b; }
.cp-pips i.on { background: #ffd36b; box-shadow: 0 0 8px #ffd36b; }
.cp-ln { margin-left: 4px; }
.cp-meta, .cp-empty, .cp-nest { opacity: .9; font-size: 15px; }
.cp-log { min-height: 1.6em; text-align: center; font-weight: 700; }
.cp-def, .cp-over, .cp-mk { padding: 12px; border-radius: 18px; background: rgba(255, 211, 107, .12); border: 2px solid #ffd36b; }
.cp-tip { padding: 10px 12px; border-radius: 14px; background: rgba(159, 255, 216, .12); border: 2px solid #9fffd8; }
.cp-grump { font-size: 64px; position: relative; } .cp-grump span { position: absolute; right: -6px; bottom: 0; font-size: 32px; }
.cp-caps, .cp-halves { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0; }
.cp-capb, .cp-half { display: grid; gap: 2px; place-items: center; text-align: center; min-height: 100px; padding: 8px; border-radius: 16px; border: 3px solid color-mix(in srgb, var(--g, #9fd8ff) 60%, transparent); background: color-mix(in srgb, var(--g, #9fd8ff) 14%, transparent); color: inherit; font: inherit; cursor: pointer; }
.cp-capb span, .cp-half span { font-size: 30px; } .cp-capb img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.cp-capb.on, .cp-half.on { border-color: #ffe27a; box-shadow: 0 0 0 3px rgba(255, 226, 122, .5); }
.cp-how li { margin: 6px 0 6px 22px; } .cp-shelf { list-style: none; display: grid; gap: 8px; } .cp-shelf li { padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
/* Pack Party, Showcase, Hum Lab, Star Pass, Pip & Me shared */
.b14-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.b14-tile { display: grid; gap: 4px; place-items: center; text-align: center; padding: 10px; border-radius: 18px; border: 3px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; cursor: pointer; min-height: 96px; }
.b14-tile.on, .b14-tile[aria-pressed="true"] { border-color: #ffe27a; box-shadow: 0 0 0 3px rgba(255, 226, 122, .45); }
.b14-tile img { width: 100%; max-width: 130px; border-radius: 10px; }
.b14-tile .big { font-size: 34px; }
.b14-code { font-size: clamp(26px, 6vw, 44px); font-weight: 900; letter-spacing: .06em; text-align: center; padding: 10px; border-radius: 16px; background: #fff7d6; color: #2a1a00; word-break: break-word; }
.b14-pp-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.b14-pp-kid { padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 2px solid rgba(255, 255, 255, .15); }
.b14-pp-kid.turn { border-color: #ffe27a; box-shadow: 0 0 0 3px rgba(255, 226, 122, .4); }
.b14-pp-pulls { display: flex; flex-wrap: wrap; gap: 4px; } .b14-pp-pulls img { width: 46px; border-radius: 6px; }
.b14-cheers { display: flex; flex-wrap: wrap; gap: 6px; }
.b14-cheers button { font-size: 28px; min-width: 64px; min-height: 64px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: inherit; cursor: pointer; }
.b14-av { font-size: 28px; }
.b14-canvas { width: 100%; max-width: 720px; aspect-ratio: 16 / 9; border-radius: 18px; background: #05060b; display: block; margin: 0 auto; }
.b14-hum-stage { position: relative; min-height: 220px; border-radius: 22px; background: radial-gradient(ellipse at 50% 50%, rgba(80, 60, 160, .5), rgba(5, 6, 20, .8)); display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; padding: 16px; overflow: hidden; }
.b14-hum-stage .b14-tile { width: 140px; background: rgba(0, 0, 0, .35); }
.b14-ripple { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; border: 3px solid var(--rc, #ffe27a); animation: b14rip 1.4s ease-out forwards; pointer-events: none; }
@keyframes b14rip { to { transform: scale(14); opacity: 0; } }
.b14-hum-stage.ripple .b14-tile { animation: b14wig .4s ease 2; }
@keyframes b14wig { 50% { transform: rotate(3deg) scale(1.04); } }
.b14-pass { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.b14-pass li { list-style: none; padding: 10px; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .15); }
.b14-pass li.ready { border-color: #ffe27a; background: rgba(255, 226, 122, .14); }
.b14-pass li.done { opacity: .7; }
.b14-meter { height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.b14-meter i { display: block; height: 100%; background: linear-gradient(90deg, #ffd36b, #ffb3e6); }
.b14-egg { display: grid; place-items: center; width: 110px; height: 130px; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; background: radial-gradient(circle at 40% 35%, #fff, color-mix(in srgb, var(--g) 60%, #fff) 60%, var(--g)); color: #1a1030; font-weight: 800; font-size: 14px; border: 0; cursor: pointer; }
.b14-egg.warm { box-shadow: 0 0 30px var(--g); }
.b14-crest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 420px; }
.b14-crest span { padding: 8px; border-radius: 14px; text-align: center; background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .15); font-weight: 700; }
.b14-crest span.on { border-color: #ffe27a; background: rgba(255, 226, 122, .18); box-shadow: 0 0 14px rgba(255, 226, 122, .5); }
.b14-pathrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.b14-acc { position: absolute; font-size: 22px; pointer-events: none; }
/* Sleek */
html.lx-pg .b14-stamp, html.lx-pg .cp-free { background: #7cc4ff; color: #0b1020; border-radius: 6px; }
html.lx-pg .b14-hsb, html.lx-pg .cp-capb, html.lx-pg .cp-half, html.lx-pg .b14-tile, html.lx-pg .b14-pass li, html.lx-pg .b14-pp-kid, html.lx-pg .cp-cap, html.lx-pg .b14-crest span { border-radius: 8px; border: 1px solid #2c2f36; background: #15171c; min-height: 44px; font-size: 15px; }
html.lx-pg .b14-hsb.on, html.lx-pg .cp-capb.on, html.lx-pg .cp-half.on, html.lx-pg .b14-tile.on, html.lx-pg .b14-tile[aria-pressed="true"], html.lx-pg .b14-pass li.ready, html.lx-pg .b14-crest span.on { border-color: #7cc4ff; background: #182433; color: inherit; box-shadow: none; }
html.lx-pg .b14-hsb span, html.lx-pg .cp-capb span, html.lx-pg .cp-half span, html.lx-pg .b14-tile .big { font-size: 15px; }
html.lx-pg .cp-board, html.lx-pg .cp-hand, html.lx-pg .cp-def, html.lx-pg .cp-over, html.lx-pg .cp-mk, html.lx-pg .cp-tip, html.lx-pg .b14-hw, html.lx-pg .b14-memo, html.lx-pg .b14-hum-stage { border-radius: 8px; background: #111318; border: 1px solid #2c2f36; }
html.lx-pg .cp-card { border-radius: 8px; border-width: 1px; background: #15171c; width: 96px; }
html.lx-pg .cp-card.sel, html.lx-pg .cp-card.tgt, html.lx-pg .cp-card.chs, html.lx-pg .cp-card.hint { box-shadow: 0 0 0 2px #7cc4ff; }
html.lx-pg .cp-pips i { border-color: #7cc4ff; } html.lx-pg .cp-pips i.on { background: #7cc4ff; box-shadow: none; }
html.lx-pg .b14-sb { background: #15171c; color: inherit; border: 1px solid #2c2f36; border-radius: 8px; }
html.lx-pg .b14-sb-pan { background: #111318; color: inherit; border: 1px solid #2c2f36; border-radius: 6px; }
html.lx-pg .b14-code { background: #182433; color: #e8f2ff; border-radius: 8px; }
html.lx-pg .b14-back { border-radius: 8px; border-width: 1px; border-color: #7cc4ff; background: #182433; color: #7cc4ff; }
html.lx-pg .b14-meter i { background: #7cc4ff; }
html.lx-pg .b14-sur { background: radial-gradient(circle, rgba(124, 196, 255, .6), transparent 70%); }
@media (prefers-reduced-motion: reduce) { .b14-sur { animation: none; left: auto; right: 16px; top: auto; bottom: 120px; } .b14-flip-pg img, .b14-ripple, .b14-hum-stage.ripple .b14-tile { animation: none; } .b14-ripple { display: none; } }
