/* Banay OS boot splash, shared by every company (Dom, 2026-10-20; redesigned 2026-10-21). The company's colour, logo and name come
   from /tenant/splash.json (inlined into index.html). The logo is the hero: an ivory plate (deep plate for light logos on clear
   backgrounds, wide plate for wide logos) with a soft halo, four trade tools underneath (hammer, saw, level, tape measure), the name,
   a gold sweep and a quiet "Powered by Banay OS" line. Pure CSS/SVG, transform/opacity only (60 fps), one ~1.6 s choreography that
   then idles softly. Timing rules live in src/main.tsx: at least ~0.3 s, never more than 4 s. Reduced motion: a still, branded frame. */
.bsp { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  --c: #12319F; --d: #081C63; --g: #2447E0; --ivory: #FFFCF5; --gold: #E3C58C; --ease: cubic-bezier(.2,.8,.2,1);
  background: radial-gradient(120% 85% at 50% 38%, var(--g) 0%, var(--c) 42%, var(--d) 100%); color: var(--ivory);
  font: 500 15px/1.2 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; overflow: hidden; contain: strict;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); transition: opacity .36s var(--ease); -webkit-user-select: none; user-select: none; }
.bsp.bsp-preview { position: absolute; z-index: auto; border-radius: inherit; }
.bsp.out { opacity: 0; pointer-events: none; }
.bsp::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(38% 28% at 50% 41%, rgba(255,252,245,.12), transparent 70%); animation: bspBreath 3.6s ease-in-out infinite; pointer-events: none; }
.bsp::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45; background: radial-gradient(140% 100% at 50% 120%, rgba(0,0,0,.28), transparent 60%); }
.bsp-stage { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; transform: translateY(-4%); }
.bsp-mark { position: relative; width: 248px; height: 150px; display: flex; align-items: center; justify-content: center; }
.bsp-halo { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 26%, transparent) 0%, rgba(255,252,245,.10) 34%, transparent 66%); opacity: 0;
  animation: bspHalo .9s .15s var(--ease) forwards, bspGlow 3.2s 1.1s ease-in-out infinite; }
.bsp-plate { position: relative; z-index: 2; width: 128px; height: 128px; border-radius: 34px; background: var(--ivory); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 0 rgba(255,255,255,.75) inset, 0 0 0 1px rgba(255,252,245,.22), 0 24px 48px -16px rgba(0,0,0,.5), 0 0 60px -10px color-mix(in srgb, var(--gold) 40%, transparent);
  animation: bspPlateIn .7s var(--ease) both; }
.bsp-plate.wide { width: 216px; height: 112px; border-radius: 28px; }
.bsp-plate.white { background: #FFFFFF; }
.bsp-plate.tall { width: 112px; height: 140px; }
.bsp-plate.dark { background: linear-gradient(160deg, color-mix(in srgb, var(--d) 70%, #000) 0%, var(--d) 100%); box-shadow: 0 0 0 1px rgba(255,252,245,.28), 0 24px 48px -16px rgba(0,0,0,.55), 0 0 60px -10px color-mix(in srgb, var(--gold) 45%, transparent); }
.bsp-plate img { max-width: 76%; max-height: 76%; object-fit: contain; display: block; image-rendering: auto; }
.bsp-plate.wide img { max-width: 84%; max-height: 70%; }
.bsp-plate.fit-snug img { max-width: 64%; max-height: 64%; }
.bsp-plate.fit-large img { max-width: 88%; max-height: 88%; }
.bsp-mono { font-weight: 600; font-size: 44px; letter-spacing: .04em; color: var(--c); line-height: 1; }
.bsp-mono.one { font-size: 54px; }
.bsp-plate.mono { background: linear-gradient(160deg, #FFFCF5 0%, #F3EBDD 100%); }
.bsp-plate.mono::after { content: ""; position: absolute; inset: 10px; border-radius: 25px; border: 1px solid color-mix(in srgb, var(--c) 26%, transparent); }
.bsp-plate.product { width: 132px; height: 132px; background: transparent; box-shadow: none; }
.bsp-plate.product img { max-width: 100%; max-height: 100%; filter: drop-shadow(0 12px 30px rgba(2,10,36,.38)); }
/* tools */
.bsp-tools { display: flex; gap: 22px; margin: 26px 0 0; color: var(--ivory); }
.bsp-tool { width: 30px; height: 30px; opacity: 0; transform: translateY(8px); animation: bspToolIn .55s calc(.38s + var(--i) * .09s) var(--ease) forwards; }
.bsp-tool svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 3px 8px rgba(0,0,0,.25)); }
.bsp-tool .au { color: var(--gold); stroke: var(--gold); }
.bsp-tool path.au[fill="currentColor"] { fill: var(--gold); }
.bsp-ham .mv { transform-origin: 12px 21px; animation: bspTap 1.6s .95s cubic-bezier(.5,0,.4,1) infinite; }
.bsp-saw .mv { animation: bspSaw 1.6s 1.05s ease-in-out infinite; }
.bsp-lvl .bub { animation: bspBubble 1.6s 1.1s var(--ease) infinite; }
.bsp-tape .blade { transform-origin: 13.8px 15.4px; transform: scaleX(.25); animation: bspTape 1.6s 1.15s var(--ease) infinite; }
.bsp-name { max-width: min(86vw, 520px); margin-top: 22px; text-align: center; font-weight: 600; font-size: 20px; letter-spacing: .26em; text-indent: .26em; text-transform: uppercase; line-height: 1.35;
  text-wrap: balance; animation: bspWord .8s .2s var(--ease) both; text-shadow: 0 2px 18px rgba(0,0,0,.2); }
.bsp-name.long { font-size: 16px; letter-spacing: .18em; text-indent: .18em; }
.bsp-name.product { margin-top: 18px; font-size: 22px; letter-spacing: .32em; text-indent: .32em; }
.bsp-name.product b { font-weight: 300; }
.bsp-line { position: relative; width: 76px; height: 1px; margin-top: 16px; background: rgba(255,252,245,.2); overflow: hidden; border-radius: 1px; display: block; }
.bsp-line::before { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: bspSweep 1.6s .35s ease-in-out infinite; }
.bsp-tag { margin-top: 16px; font-size: 13px; font-weight: 400; letter-spacing: .08em; color: rgba(255,252,245,.74); font-style: italic; animation: bspIn .7s .55s ease-out both; }
.bsp-powered { position: absolute; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,252,245,.5); animation: bspIn .7s .7s ease-out both; }
.bsp-powered img { width: 13px; height: 13px; opacity: .7; }
.bsp-powered b { font-weight: 600; color: rgba(255,252,245,.7); letter-spacing: .18em; }
.bsp-preview .bsp-powered { bottom: 18px; }
.bsp-skip { position: absolute; top: calc(18px + env(safe-area-inset-top)); right: 18px; font-size: 12px; color: rgba(255,252,245,.5); background: none; border: 0; padding: 8px; cursor: pointer; }
.bsp-preview .bsp-mark { transform: scale(.86); }
.bsp-preview .bsp-tools { gap: 18px; margin-top: 18px; }
@media (max-width: 380px) { .bsp-mark { transform: scale(.88); } .bsp-name { font-size: 17px; } .bsp-tools { gap: 18px; } }
@media (min-width: 900px) { .bsp:not(.bsp-preview) .bsp-mark { transform: scale(1.14); } .bsp:not(.bsp-preview) .bsp-tools { margin-top: 34px; gap: 26px; } .bsp:not(.bsp-preview) .bsp-name { font-size: 23px; margin-top: 26px; } }
@keyframes bspPlateIn { from { opacity: 0; transform: scale(.88) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bspHalo { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes bspGlow { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .78; transform: scale(1.05); } }
@keyframes bspToolIn { to { opacity: .9; transform: none; } }
@keyframes bspTap { 0%, 100% { transform: rotate(0); } 18% { transform: rotate(-22deg); } 30% { transform: rotate(6deg); } 36% { transform: rotate(0); } }
@keyframes bspSaw { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.6px); } 50% { transform: translateX(1.6px); } 75% { transform: translateX(-.8px); } }
@keyframes bspBubble { 0%, 100% { transform: translateX(-2.2px); } 45%, 70% { transform: translateX(0); } }
@keyframes bspTape { 0%, 100% { transform: scaleX(.25); } 40%, 65% { transform: scaleX(1); } }
@keyframes bspIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bspWord { from { opacity: 0; letter-spacing: .42em; } to { opacity: 1; } }
@keyframes bspSweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes bspBreath { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.bsp.still *, .bsp.still::before, .bsp.still *::before { animation: none !important; transition: none !important; }
.bsp.still .bsp-tool { opacity: .9; transform: none; } .bsp.still .bsp-halo { opacity: 1; } .bsp.still .bsp-tape .blade { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .bsp, .bsp *, .bsp::before, .bsp *::before { animation: none !important; transition: none !important; }
  .bsp .bsp-tool { opacity: .9; transform: none; } .bsp .bsp-halo { opacity: 1; } .bsp .bsp-tape .blade { transform: none; }
}

/* Light theme splash (user picked Light, or Match my phone in light): ivory field, brand color for text/strokes. Same company branding. */
html[data-theme="light"] .bsp { background: radial-gradient(120% 85% at 50% 38%, #FFFFFF 0%, #FBF8F2 45%, color-mix(in srgb, var(--c) 10%, #F3EEE4) 100%); color: var(--d); }
html[data-theme="light"] .bsp::before { background: radial-gradient(38% 28% at 50% 41%, color-mix(in srgb, var(--c) 10%, transparent), transparent 70%); }
html[data-theme="light"] .bsp::after { opacity: .18; }
html[data-theme="light"] .bsp-tools { color: var(--d); }
html[data-theme="light"] .bsp-line { background: color-mix(in srgb, var(--d) 18%, transparent); }
html[data-theme="light"] .bsp-tag { color: color-mix(in srgb, var(--d) 78%, #fff); }
html[data-theme="light"] .bsp-powered { color: color-mix(in srgb, var(--d) 62%, #fff); }
html[data-theme="light"] .bsp-powered b { color: color-mix(in srgb, var(--d) 80%, #fff); }
html[data-theme="light"] .bsp-skip { color: color-mix(in srgb, var(--d) 62%, #fff); }
html[data-theme="light"] .bsp-plate { box-shadow: 0 0 0 1px color-mix(in srgb, var(--d) 14%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--d) 45%, transparent); }
