/* lumibot.si Batch 18: Care Corner, Care Journal, Buddy care extras, After-Dark set, Hero Reveal, Star Map Pieces, Crew Roles,
   Wonder Moments, Lore & Star Glyphs. Kid look = bright, rounded, huge buttons. Sleek look (html.lx-pg) = darker, flat, calm. */
.b18-pop .lg-modal-in { max-width: 680px; }
.b18-box h2 { margin-bottom: 6px; }
.b18-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 12px 0; }
.b18-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px; border-radius: 20px; border: 3px solid color-mix(in srgb, var(--g, #9fd8ff) 70%, transparent); background: color-mix(in srgb, var(--g, #9fd8ff) 18%, rgba(10, 12, 30, .85)); color: #fff; font: inherit; font-size: 17px; text-align: center; cursor: pointer; min-height: 120px; }
.b18-tile img { width: 100%; max-width: 140px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 12px; }
.b18-tile b { font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.b18-tile small { font-size: 14px; opacity: .9; }
.b18-tile.dim { opacity: .6; }
.b18-tile.on { box-shadow: 0 0 0 4px #ffe27a, 0 0 24px rgba(255, 226, 122, .5); }
.b18-tile:focus-visible, .b18-chip:focus-visible { outline: 4px solid #ffe27a; outline-offset: 2px; }
.b18-big { font-size: 40px; line-height: 1; }
.b18-hearts { color: #ffb3d9; font-weight: 800; }
.b18-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; align-items: center; }
.b18-chip { min-height: 48px; padding: 8px 16px; border-radius: 999px; border: 2px solid color-mix(in srgb, var(--g, #9fb4ff) 70%, transparent); background: rgba(20, 24, 50, .85); color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.b18-chip.on { background: linear-gradient(135deg, #ffe9a8, #ffc46b); color: #2a1a00; border-color: #ffd36b; }
.b18-sw { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: -3px; margin-right: 6px; border: 2px solid #fff; }
.b18-bubble { margin: 12px 0; padding: 14px 18px; border-radius: 22px; background: #fff8e0; color: #2a1a00; font-size: 19px; font-weight: 800; position: relative; }
.b18-bubble::before { content: ""; position: absolute; left: 28px; top: -10px; border: 10px solid transparent; border-top: 0; border-bottom-color: #fff8e0; }
.b18-skyname { display: block; width: 100%; height: auto; margin: 10px 0; border-radius: 18px; }
.b18-sky { display: block; width: 100%; height: auto; border-radius: 18px; cursor: crosshair; margin: 8px 0; touch-action: manipulation; }
.b18-astar { cursor: pointer; }
.b18-astar circle { filter: drop-shadow(0 0 2px #fff); }
.b18-con { width: 100%; max-width: 140px; height: auto; border-radius: 12px; }
.b18-con.big { max-width: 260px; }
.b18-con .b18-cl line { stroke: #ffe9a8; stroke-width: 1.6; stroke-linecap: round; opacity: var(--glow, .3); filter: drop-shadow(0 0 2px #ffe27a); }
.b18-con circle { fill: #fff; }
.b18-csheet { text-align: center; }
.b18-csheet .b3-row { justify-content: center; }
.b18-cimg { max-height: 38vh; max-width: 70%; border-radius: 16px; box-shadow: 0 0 30px color-mix(in srgb, var(--g, #9fd8ff) 60%, transparent); }
.b18-bigstar { width: 110px; height: 110px; filter: drop-shadow(0 0 12px #fff6c8); }
.b18-hop { animation: b18hop .6s ease; }
@keyframes b18hop { 30% { transform: translateY(-14px) rotate(-3deg); } 60% { transform: translateY(0) rotate(2deg); } }
.b18-acts .lg-btn { min-width: 130px; }
/* journal */
.b18-journal { list-style: none; display: grid; gap: 10px; margin: 14px 0; }
.b18-journal li { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 18px; background: rgba(16, 18, 40, .85); border: 2px solid rgba(255, 226, 122, .25); }
.b18-journal li b { display: block; font-size: 18px; }
.b18-journal li small { opacity: .8; }
.b18-ji { font-size: 30px; flex: 0 0 auto; }
/* buddy care */
.bd-who.b18-little svg { scale: .8; }
.bd-who.b18-grown svg { scale: 1.08; filter: drop-shadow(0 0 14px #ffe27a); }
.b18-stage { position: absolute; left: 6px; bottom: 4px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 246, 200, .95); color: #2a1a00; font-weight: 900; font-size: 15px; }
.b18-play .b18-field { position: relative; height: min(52vh, 380px); border-radius: 22px; overflow: hidden; background: radial-gradient(ellipse at 50% 70%, #24307a, #070a1f 75%); }
.b18-fstar { position: absolute; left: var(--x); top: var(--y); width: 64px; height: 64px; border: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 246, 200, .35), transparent 70%); font-size: 36px; color: #ffe27a; cursor: pointer; animation: b18float 3.2s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -.8s); }
.b18-fstar.got { opacity: 0; transform: scale(1.8); transition: opacity .4s, transform .4s; pointer-events: none; }
.b18-field.still .b18-fstar { animation: none; }
@keyframes b18float { from { transform: translate(0, 0); } to { transform: translate(14px, -18px); } }
.b18-pbud { position: absolute; left: 50%; bottom: 0; width: 120px; transform: translateX(-50%); }
.b18-pbud svg { width: 100%; height: auto; }
.b18-portrait { display: block; width: 100%; height: auto; border-radius: 16px; }
.b18-pic { margin: 0; }
.b18-pic figcaption { font-size: 14px; text-align: center; opacity: .9; margin-top: 4px; }
.b18-pprev { max-width: 420px; margin: 0 auto 10px; }
/* night + garden */
.b18-ggn { margin: 8px 0; font-weight: 800; }
html.lx-night .gg-scene.sky-night .gg-fly { box-shadow: 0 0 18px 8px rgba(255, 240, 140, .75); }
html.lx-night .gg-scene.sky-night .gg-shrooms i { filter: brightness(1.35) drop-shadow(0 0 14px rgba(120, 220, 255, .9)); }
.b18-ob { margin-top: 10px; font-weight: 700; }
/* hero reveal */
.lg-spot.b18-hero .lg-spot-card { position: relative; z-index: 3; }
.b18-hero-fx { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.b18-hero-dark { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(10, 12, 40, .35), rgba(0, 0, 0, .88) 70%); animation: b18dark .6s ease both; }
.b18-hero-build i { position: absolute; left: 50%; top: 45%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #fff6c8; box-shadow: 0 0 12px 4px #ffe27a; animation: b18in .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d); }
.b18-hero-pose { position: absolute; left: 50%; top: 44%; height: min(78vh, 720px); width: auto; transform: translate(-50%, -50%) scale(1.1); opacity: .5; filter: drop-shadow(0 0 40px rgba(255, 226, 122, .7)) blur(.5px); animation: b18pose 1.4s ease .6s both; }
@keyframes b18dark { from { opacity: 0; } to { opacity: 1; } }
@keyframes b18in { from { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; } 60% { opacity: 1; } to { transform: translate(0, 0) scale(1.4); opacity: 0; } }
@keyframes b18pose { from { opacity: 0; transform: translate(-50%, -40%) scale(.85); } to { opacity: .5; transform: translate(-50%, -50%) scale(1.1); } }
.lg-spot.b18-still .b18-hero-dark, .lg-spot.b18-still .b18-hero-pose { animation: none; }
.lg-spot.b18-still .b18-hero-build { display: none; }
/* map pieces + chest */
.b18-map4 { display: grid; grid-template-columns: repeat(2, 72px); gap: 4px; margin: 10px 0; }
.b18-piece { width: 72px; height: 56px; border-radius: 8px; background: rgba(255, 255, 255, .08); border: 2px dashed rgba(255, 255, 255, .3); }
.b18-piece.on { background: linear-gradient(135deg, #f3d9a0, #c99b52); border: 2px solid #8a6a3a; }
.b18-cpz { width: 100%; max-width: 420px; display: block; margin: 0 auto; background: #070a1f; border-radius: 16px; }
.b18-cst { cursor: pointer; }
.b18-cst circle { fill: #2a3570; stroke: #ffe27a; stroke-width: 1.2; }
.b18-cst text { fill: #fff; pointer-events: none; }
.b18-cst.on circle { fill: #ffe27a; }
.b18-cst.on text { fill: #2a1a00; }
.b18-cpz line { stroke: #ffe27a; stroke-width: 1.4; stroke-linecap: round; }
.b18-wig { animation: b18wig .4s ease; }
@keyframes b18wig { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
/* crew */
.b18-jacket { width: 80px; height: 80px; }
/* wonders */
.b18-wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.b18-wonder { margin: 0; }
.b18-wstage { position: relative; }
.b18-wsvg { display: block; width: 100%; height: auto; border-radius: 14px; }
.b18-stampw { position: absolute; right: 10px; top: 10px; padding: 4px 12px; border-radius: 999px; background: #c8ffd8; color: #0b2a14; font-weight: 900; transform: rotate(6deg); }
.b18-wfact { font-size: 18px; font-weight: 700; margin: 8px 0; }
.b18-wsvg g { transform-box: view-box; transform-origin: 100px 60px; }
.b18-wsvg.play .wa { animation: b18wa 2.4s ease both; } .b18-wsvg.play .wb { animation: b18wb 2.4s ease both; }
@keyframes b18wa { to { transform: translateX(18px) rotate(-8deg); } } @keyframes b18wb { to { transform: translateX(-18px) rotate(8deg); } }
.b18-wsvg.play .wsp { animation: b18tw .6s ease 4 alternate; }
@keyframes b18tw { to { opacity: .2; } }
.b18-wsvg.play .wrot { animation: b18spin .5s linear 5; } .b18-wsvg.play .wrot2 { transform-origin: 104px 60px; animation: b18spin 2.4s ease; } .b18-wsvg.play .wrot3 { animation: b18spin 2.4s ease; }
@keyframes b18spin { to { transform: rotate(360deg); } }
.b18-wsvg.play .wcm { animation: b18cm 2.4s ease both; } @keyframes b18cm { from { transform: translateX(-40px); } to { transform: translateX(10px); } }
.b18-wsvg.play .wgrow { animation: b18gr 2.4s ease both; } @keyframes b18gr { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.b18-wsvg.play .wbeam { animation: b18beam 2.4s linear both; } @keyframes b18beam { to { transform: translateX(134px); } }
.b18-wsvg.play .wmet { animation: b18met 1.2s ease 2 both; } @keyframes b18met { from { transform: translate(40px, -30px); opacity: 0; } 40% { opacity: 1; } to { transform: translate(-20px, 14px); opacity: 0; } }
html.lx-calm .b18-wsvg.play *, html.lx-calm .b18-wsvg.play { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .b18-wsvg.play *, .b18-fstar, .b18-hop, .b18-hero-build i { animation: none !important; } }
/* lore + glyphs */
.b18-lg { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; }
.b18-glyph { width: 46px; height: 46px; }
.b18-glyph.sm { width: 24px; height: 24px; }
.b18-glyph .gl line { stroke: #ffe9a8; stroke-width: 4; stroke-linecap: round; }
.b18-glyph circle { fill: #fff; }
.b18-lore.read { border-style: solid; }
.b18-key { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.b18-key span, .b18-msg span { display: flex; flex-direction: column; align-items: center; padding: 6px; border-radius: 12px; background: rgba(10, 12, 30, .8); }
.b18-key b, .b18-msg b { font-size: 20px; }
.b18-msg { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.b18-msg span.now { box-shadow: 0 0 0 3px #ffe27a, 0 0 18px rgba(255, 226, 122, .6); }
.b18-lcard { padding: 16px; border-radius: 22px; border: 3px solid var(--g, #e2d6ff); background: color-mix(in srgb, var(--g, #e2d6ff) 14%, rgba(10, 12, 30, .9)); }
.b18-letter { min-width: 80px; font-size: 26px !important; }
/* Sleek look: calm, flat, one accent */
html.lx-pg .b18-tile, html.lx-pg .b18-chip, html.lx-pg .b18-journal li, html.lx-pg .b18-lcard { border-radius: 10px; border-width: 1px; background: rgba(14, 14, 20, .9); border-color: #2f2f3a; }
html.lx-pg .b18-chip.on { background: #e8e8ee; color: #111; border-color: #e8e8ee; }
html.lx-pg .b18-bubble { background: #1b1b24; color: #f4f4f6; border-radius: 10px; font-weight: 600; }
html.lx-pg .b18-bubble::before { border-bottom-color: #1b1b24; }
html.lx-pg .b18-stage, html.lx-pg .b18-stampw { background: #e8e8ee; color: #111; border-radius: 6px; transform: none; }
html.lx-pg .b18-tile.on { box-shadow: 0 0 0 2px #e8e8ee; }
html.lx-pg .b18-fstar { color: #e8e8ee; }
/* Smooth Cheers (Sleek look): calm glows instead of big bursts */
html.lx-pg.b18-cheers .lg-burst i { width: 4px !important; height: 4px !important; border-radius: 50% !important; background: #e8e8ee !important; box-shadow: 0 0 8px rgba(255, 255, 255, .7); animation-duration: 1.8s !important; }
html.lx-pg.b18-cheers .lg-burst i:nth-child(3n) { display: none; }
html.lx-pg.b18-cheers .lg-spot-beam { opacity: .35; animation-duration: 2.4s; }
html.lx-pg.b18-cheers .lg-spot-banner { letter-spacing: .08em; text-transform: uppercase; font-size: 22px; background: none; color: #f4f4f6; text-shadow: 0 0 18px rgba(255, 255, 255, .5); }
html.lx-pg.b18-cheers .b18-hero-build i { background: #e8e8ee; box-shadow: 0 0 8px 2px rgba(255, 255, 255, .6); }
@media (max-width: 520px) { .b18-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b18-tile { font-size: 16px; } .b18-acts .lg-btn { min-width: 0; flex: 1 1 40%; } }
