:root {
    --adpt-cyan: #18aeea;
    --adpt-blue: #0076a8;
}

html.adpt-preloading,
html.adpt-preloading body,
html.adpt-leaving,
html.adpt-leaving body {
    overflow: hidden;
}

.adpt-loader {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    background: var(--adpt-canvas, #fff);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity var(--adpt-fade, 300ms) ease, visibility var(--adpt-fade, 300ms) ease;
    contain: layout paint style;
}

/* On a click transition we want the white canvas to cover immediately. */
.adpt-loader.adpt-covering {
    transition-duration: var(--adpt-cover, 170ms);
}

.adpt-loader.adpt-hidden,
.adpt-loader.adpt-exiting {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.adpt-stage {
    width: min(440px, 84vw);
    display: grid;
    justify-items: center;
    gap: 18px;
    transform: translateY(-1.5vh);
}

.adpt-logo {
    position: relative;
    width: min(var(--adpt-logo-width, 270px), 72vw);
    aspect-ratio: 331 / 240;
    isolation: isolate;
}

.adpt-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.adpt-logo__ghost {
    opacity: .10;
    filter: grayscale(.35) brightness(1.16);
}

.adpt-logo__reveal {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
    animation: adpt-logo-loop var(--adpt-cycle, 1250ms) linear infinite;
    animation-delay: var(--adpt-phase-delay, 0ms);
}

.adpt-logo__reveal img {
    filter: saturate(1.02) contrast(1.015) drop-shadow(0 1px 1px rgba(0,0,0,.04));
}

.adpt-logo__outline {
    position: absolute;
    inset: 0;
    opacity: 0;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: adpt-outline-loop var(--adpt-cycle, 1250ms) linear infinite;
    animation-delay: var(--adpt-phase-delay, 0ms);
}

.adpt-logo__outline img {
    filter:
        brightness(4.4)
        grayscale(1)
        drop-shadow(1px 0 0 rgba(255,255,255,.92))
        drop-shadow(-1px 0 0 rgba(255,255,255,.92))
        drop-shadow(0 1px 0 rgba(130,220,255,.62))
        drop-shadow(0 -1px 0 rgba(255,255,255,.92))
        drop-shadow(0 0 6px rgba(62,190,239,.42));
}

.adpt-logo__mask {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: var(--adpt-mask-url);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: var(--adpt-mask-url);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.adpt-light-beam {
    position: absolute;
    top: -22%;
    bottom: -22%;
    left: -34%;
    width: 31%;
    transform: skewX(-8deg);
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(129,222,255,.08) 22%,
        rgba(67,196,242,.36) 39%,
        rgba(255,255,255,.99) 50%,
        rgba(119,219,255,.44) 61%,
        rgba(255,255,255,0) 100%
    );
    filter: blur(.55px) drop-shadow(0 0 5px rgba(48,191,240,.85)) drop-shadow(0 0 10px rgba(255,255,255,.94));
    animation: adpt-beam-loop var(--adpt-cycle, 1250ms) linear infinite;
    animation-delay: var(--adpt-phase-delay, 0ms);
}

.adpt-light-core {
    position: absolute;
    top: -14%;
    bottom: -14%;
    left: -19%;
    width: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 0 5px rgba(255,255,255,.98), 0 0 12px rgba(34,185,239,.82), 0 0 20px rgba(34,185,239,.26);
    animation: adpt-core-loop var(--adpt-cycle, 1250ms) linear infinite;
    animation-delay: var(--adpt-phase-delay, 0ms);
}

.adpt-progress {
    position: relative;
    width: clamp(120px, 14vw, 170px);
    height: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(28,89,118,.11);
}

.adpt-progress__runner {
    position: absolute;
    inset-block: 0;
    left: -38%;
    width: 38%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(0,118,168,0), rgba(24,174,234,.72) 45%, rgba(255,255,255,.98) 72%, rgba(24,174,234,.25));
    box-shadow: 0 0 6px rgba(24,174,234,.28);
    animation: adpt-progress-run var(--adpt-cycle, 1250ms) linear infinite;
    animation-delay: var(--adpt-phase-delay, 0ms);
}

@keyframes adpt-logo-loop {
    0%   { clip-path: inset(0 100% 0 0); opacity: .18; }
    6%   { opacity: .55; }
    18%  { opacity: .88; }
    48%  { clip-path: inset(0 32% 0 0); opacity: 1; }
    82%  { clip-path: inset(0 0 0 0); opacity: 1; }
    100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes adpt-outline-loop {
    0%   { opacity: 0; filter: blur(1px); }
    10%  { opacity: .18; }
    26%  { opacity: .34; }
    56%  { opacity: .12; }
    84%  { opacity: 0; filter: blur(.2px); }
    100% { opacity: 0; filter: blur(0); }
}

@keyframes adpt-beam-loop {
    0%   { left: -34%; opacity: 0; }
    8%   { opacity: .92; }
    22%  { opacity: 1; }
    78%  { opacity: 1; }
    92%  { opacity: .72; }
    100% { left: 106%; opacity: 0; }
}

@keyframes adpt-core-loop {
    0%   { left: -19%; opacity: 0; }
    10%  { opacity: 1; }
    82%  { opacity: 1; }
    100% { left: 106%; opacity: 0; }
}

@keyframes adpt-progress-run {
    0%   { left: -38%; opacity: .35; }
    50%  { opacity: 1; }
    100% { left: 100%; opacity: .35; }
}

@media (max-width: 640px) {
    .adpt-stage { gap: 14px; }
    .adpt-logo { width: min(var(--adpt-logo-width, 250px), 68vw); }
}

@media (prefers-reduced-motion: reduce) {
    .adpt-logo__ghost { opacity: 1; filter: none; }
    .adpt-logo__reveal,
    .adpt-logo__outline,
    .adpt-light-beam,
    .adpt-light-core,
    .adpt-progress__runner { animation: none !important; }
    .adpt-logo__reveal { clip-path: none; opacity: 1; }
    .adpt-logo__outline,
    .adpt-light-beam,
    .adpt-light-core { display: none; }
}
