/* Panel8 app kit - launch splash and welcome slides. Colors via --ob-* set from the site config. */
html.p8ob-lock, html.p8ob-lock body { overflow: hidden !important; }

/* splash (markup is printed at the start of <body>; inline style sets its colors) */
#p8ob-splash { position: fixed; inset: 0; z-index: 2147483647; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; transition: opacity .4s ease, transform .4s ease; padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom); }
#p8ob-splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
#p8ob-splash img { width: 104px; height: 104px; border-radius: 26px; object-fit: cover; box-shadow: 0 18px 44px rgba(0, 0, 0, .35); animation: p8ob-pop .7s cubic-bezier(.2, 1.3, .4, 1) both; }
#p8ob-splash b { font-size: 22px; letter-spacing: -.01em; animation: p8ob-rise .6s ease .25s both; }
#p8ob-splash small { font-size: 14px; opacity: .8; animation: p8ob-rise .6s ease .4s both; }
.p8ob-bar { width: 168px; height: 5px; border-radius: 99px; background: rgba(127, 127, 127, .28); overflow: hidden; margin-top: 18px; animation: p8ob-rise .6s ease .5s both; }
.p8ob-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--sp-accent, #e0451f); animation: p8ob-fill 1.5s cubic-bezier(.3, .6, .2, 1) .5s forwards; position: relative; overflow: hidden; }
.p8ob-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); transform: translateX(-100%); animation: p8ob-shine 1s ease .7s infinite; }
@keyframes p8ob-fill { to { width: 100%; } } @keyframes p8ob-shine { to { transform: translateX(100%); } }
@keyframes p8ob-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes p8ob-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* slides */
.p8ob { position: fixed; inset: 0; z-index: 2147483647; display: grid; place-items: center; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .35s ease; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.p8ob.in { opacity: 1; }
.p8ob-frame { position: relative; width: 100%; height: 100%; overflow: hidden; background: linear-gradient(170deg, var(--ob-bg, #2c0f0a), var(--ob-bg2, #4a1b12)); color: var(--ob-fg, #fff4e6); touch-action: pan-y; }
@media (min-width: 560px) and (min-height: 700px) { .p8ob-frame { width: 430px; height: min(860px, 94vh); border-radius: 34px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55); } }
.p8ob-skip { position: absolute; z-index: 5; top: calc(14px + env(safe-area-inset-top)); right: 16px; border: 0; background: rgba(127, 127, 127, .22); color: var(--ob-fg); font: 600 14px/1 system-ui, sans-serif; padding: 10px 16px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px); }
.p8ob-track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.3, .8, .25, 1); will-change: transform; }
.p8ob-slide { flex: 0 0 100%; height: 100%; display: flex; flex-direction: column; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.p8ob-art { position: relative; flex: 1 1 52%; display: grid; place-items: center; overflow: hidden; padding-top: env(safe-area-inset-top); }
.p8ob-art-tiles { flex: 0 0 auto; min-height: 0; padding: calc(70px + env(safe-area-inset-top)) 0 18px; }
.has-tiles .p8ob-copy { order: -1; padding-top: calc(70px + env(safe-area-inset-top)); } .has-tiles .p8ob-art-tiles { padding-top: 18px; }
.p8ob-photo { position: absolute; inset: 0; background-size: cover; }
.p8ob-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .15) 0%, transparent 35%, var(--ob-bg2, #4a1b12) 98%); }
.p8ob-glow { position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--ob-a, #e0451f) 0%, transparent 66%); opacity: .5; filter: blur(10px); }
.p8ob-cut { position: relative; width: 78%; max-width: 330px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .4)); }
.p8ob-row { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; padding: 0 10px; }
.p8ob-d { margin: 0; width: 38%; text-align: center; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .35)); }
.p8ob-d img { width: 100%; display: block; } .p8ob-d figcaption { font-size: 12.5px; font-weight: 700; margin-top: 4px; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.p8ob-d.d0 { transform: translateX(14%) rotate(-6deg) scale(.88); } .p8ob-d.d1 { z-index: 2; width: 44%; transform: translateY(-4%); } .p8ob-d.d2 { transform: translateX(-14%) rotate(6deg) scale(.88); }
.p8ob-icon { position: relative; width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--ob-gold, #f4c14e), var(--ob-a, #e0451f)); box-shadow: 0 24px 50px rgba(0, 0, 0, .4); }
.p8ob-icon i { position: absolute; inset: -14px; border-radius: 50%; border: 2px solid var(--ob-gold, #f4c14e); opacity: .5; } .p8ob-icon i.r2 { inset: -32px; opacity: .25; }
.p8ob-svg.big { width: 84px; height: 84px; stroke-width: 1.6; }
.p8ob-copy { padding: 6px 28px 0; text-align: center; }
.p8ob-k { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ob-gold, #f4c14e); font-weight: 700; }
.p8ob-copy h2 { font-size: 30px; line-height: 1.1; margin: 10px 0 10px; letter-spacing: -.02em; }
.p8ob-copy p { margin: 0 auto; font-size: 16.5px; line-height: 1.5; color: var(--ob-mut, #e5d3c2); max-width: 34ch; }
.p8ob-cta { display: inline-block; margin-top: 16px; color: var(--ob-gold, #f4c14e); font-weight: 700; font-size: 15.5px; text-decoration: none; }
.p8ob-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; padding: 0 22px; }
.p8ob-tile { display: flex; align-items: center; gap: 10px; background: var(--ob-card, rgba(255, 255, 255, .1)); border: 1px solid var(--ob-line, rgba(255, 255, 255, .14)); border-radius: 18px; padding: 14px 12px; color: var(--ob-fg); text-decoration: none; font-size: 15px; }
.p8ob-ti { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--ob-a, #e0451f); color: var(--ob-ai, #fff); display: grid; place-items: center; } .p8ob-ti svg { width: 21px; height: 21px; }

/* entrance */
.p8ob-slide.on .p8ob-cut, .p8ob-slide.on .p8ob-icon { animation: p8ob-pop .7s cubic-bezier(.2, 1.2, .4, 1) both; }
.p8ob-slide.on .p8ob-cut { animation: p8ob-pop .7s cubic-bezier(.2, 1.2, .4, 1) both, p8ob-float 5s ease-in-out .8s infinite; }
.p8ob-slide.on .p8ob-d { animation: p8ob-rise .7s ease both; } .p8ob-slide.on .p8ob-d.d1 { animation-delay: .1s; } .p8ob-slide.on .p8ob-d.d2 { animation-delay: .2s; }
.p8ob-slide.on .p8ob-copy > * { animation: p8ob-rise .55s ease both; } .p8ob-slide.on .p8ob-copy > :nth-child(2) { animation-delay: .08s; } .p8ob-slide.on .p8ob-copy > :nth-child(3) { animation-delay: .16s; } .p8ob-slide.on .p8ob-copy > :nth-child(4) { animation-delay: .24s; }
.p8ob-slide.on .p8ob-tile { animation: p8ob-rise .5s ease both; } .p8ob-slide.on .p8ob-tile:nth-child(2) { animation-delay: .05s; } .p8ob-slide.on .p8ob-tile:nth-child(3) { animation-delay: .1s; } .p8ob-slide.on .p8ob-tile:nth-child(4) { animation-delay: .15s; } .p8ob-slide.on .p8ob-tile:nth-child(5) { animation-delay: .2s; } .p8ob-slide.on .p8ob-tile:nth-child(6) { animation-delay: .25s; }
@keyframes p8ob-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(1.2deg); } }

/* footer controls */
.p8ob-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 22px calc(20px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--ob-bg2, #4a1b12) 55%, transparent); }
.p8ob-dots { display: flex; gap: 7px; align-items: center; }
.p8ob-dot { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(127, 127, 127, .45); cursor: pointer; transition: width .3s, background .3s; }
.p8ob-dot.on { width: 26px; background: var(--ob-a, #e0451f); }
.p8ob-next { border: 0; min-width: 132px; height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ob-a, #e0451f); color: var(--ob-ai, #fff); font: 700 17px/1 system-ui, -apple-system, sans-serif; cursor: pointer; box-shadow: 0 12px 26px rgba(0, 0, 0, .3); }
@media (max-height: 640px) { .p8ob-art { flex-basis: 44%; } .p8ob-copy h2 { font-size: 26px; } .p8ob-copy p { font-size: 15.5px; } }
@media (prefers-reduced-motion: reduce) { .p8ob *, #p8ob-splash * { animation: none !important; transition: none !important; } .p8ob-bar i { width: 100%; } }

.p8ob-slide.has-tiles { justify-content: center; gap: 6px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.has-tiles .p8ob-copy { padding-top: 0; } .has-tiles .p8ob-art-tiles { padding: 14px 0 0; }
.p8ob-tile { padding: 18px 14px; font-size: 16px; } .p8ob-ti { width: 42px; height: 42px; }

/* keep the site theme from leaking into the welcome slides */
.p8ob h2, .p8ob p, .p8ob button, .p8ob a, .p8ob figcaption { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important; text-transform: none !important; letter-spacing: normal !important; }
.p8ob .p8ob-k { text-transform: uppercase !important; letter-spacing: .18em !important; }
.p8ob h2 { letter-spacing: -.02em !important; font-weight: 800 !important; color: var(--ob-fg) !important; margin: 10px 0 !important; }
.p8ob p { color: var(--ob-mut) !important; margin: 0 auto !important; }
.p8ob .p8ob-next { color: var(--ob-ai) !important; } .p8ob .p8ob-skip { color: var(--ob-fg) !important; }

.p8ob-d img { mix-blend-mode: var(--ob-blend, normal); }
.p8ob-d { width: 41%; } .p8ob-d.d1 { width: 50%; }

.p8ob-row { padding: 0; } .p8ob-d { width: 47%; } .p8ob-d.d1 { width: 58%; } .p8ob-d.d0 { transform: translateX(22%) rotate(-7deg) scale(.9); } .p8ob-d.d2 { transform: translateX(-22%) rotate(7deg) scale(.9); }
.p8ob-d figcaption { font-size: 13px; }

.p8ob-auth { display: grid; gap: 10px; margin: 18px auto 0; max-width: 340px; }
.p8ob .p8ob-b { min-height: 52px; border-radius: 999px; font-weight: 700 !important; font-size: 16.5px; cursor: pointer; border: 2px solid var(--ob-a); background: transparent; color: var(--ob-fg); }
.p8ob .p8ob-b.pri { background: var(--ob-a); color: var(--ob-ai) !important; box-shadow: 0 12px 24px rgba(0, 0, 0, .25); }
.p8ob .p8ob-b.lnk { border: 0; min-height: 40px; text-decoration: underline; font-weight: 600 !important; color: var(--ob-mut); font-size: 15px; }
