@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

/* ==========================================================
   RESET / BASE
   ========================================================== */

html,
body,
div,
span,
p,
img,
button {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

html,
body {
    width: 160px;
    height: 600px;
    overflow: hidden;
    background: #fff;
}

body {
    position: relative;
    font-family: "Montserrat", Arial, sans-serif;
    line-height: 1;
}

img {
    display: block;
    border: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
}

/* ==========================================================
   MAIN CONTAINER / STAGE
   ========================================================== */

#mainContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 600px;
    overflow: hidden;
    background: #fff;
}

/* Replaces the old inline-SVG border. */
#mainContainer::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #000;
    pointer-events: none;
    z-index: 1000;
}

.start-invisible {
    visibility: hidden;
}

#stage,
#artwork {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 310px;
    overflow: hidden;
}

#stage {
    z-index: 1;
}

#artwork {
    pointer-events: none;
}

.stage-layer,
.panel-art {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 310px;
}

.svg-art {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 600px;
    max-width: none;
    pointer-events: none;
}

/* ==========================================================
   COMPOSITE SVG + EXTERNAL RASTER LAYERS

   Same GAM-safe structure as the 300x250: raster assets that
   Illustrator linked from inside exported SVGs are loaded as
   regular HTML images and stacked with the vector SVG.
   ========================================================== */

.asset-stack {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 600px;
    max-width: none;
    pointer-events: none;
}

.asset-vector {
    z-index: 2;
}

.linked-raster {
    position: absolute;
    display: block;
    max-width: none;
    pointer-events: none;
    z-index: 1;
}

/* Original Illustrator placement from logo2.svg. */
.logo2-shadow {
    left: 0;
    top: 0;
    width: 160px;
    height: 359px;
}

/* Original Illustrator placement from product.svg:
   translate(-85 7) scale(.5) on a 600x260 source. */
.product-raster {
    left: -85px;
    top: 7px;
    width: 300px;
    height: 130px;
    z-index: 3;
}

.p5-t-shadow {
    left: 0;
    top: 0;
    width: 160px;
    height: 239px;
}

/* Original Illustrator placement from p5_quote.svg. */
.p5-quote-raster {
    left: 0;
    top: 25.92px;
    width: 90px;
    height: 70px;
}

.p5-name-shadow {
    left: 0;
    top: 0;
    width: 160px;
    height: 270px;
}

.p6-t-shadow {
    left: 0;
    top: 0;
    width: 160px;
    height: 311px;
}

.p6-logo-glow {
    left: 0;
    top: 0;
    width: 160px;
    height: 230px;
}

/* ==========================================================
   CLOUDS / BACKGROUND
   ========================================================== */

#clouds1,
#clouds2 {
    overflow: hidden;
}

.cloud-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 170px;
    height: 310px;
    max-width: none;
    pointer-events: none;
}

/* ==========================================================
   PANEL 2 CLOCK
   ========================================================== */

#p2_icon {
    overflow: visible;
}

#p2_icon_arrows,
#p2_icon_hour,
#p2_icon_minute {
    transform-origin: 80px 87.47px;
}

/* ==========================================================
   PANEL 3 MASK
   ========================================================== */

#p3_patch_r_mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 600px;
    overflow: hidden;
    pointer-events: none;
    -webkit-clip-path: path("M18 48 V52.5 H75.98 C82.69 52.5 88.14 58.03 88.14 64.84 V106.46 C88.14 113.27 82.69 118.8 75.98 118.8 H18 V139.75 H188 V48 H18 Z");
    clip-path: path("M18 48 V52.5 H75.98 C82.69 52.5 88.14 58.03 88.14 64.84 V106.46 C88.14 113.27 82.69 118.8 75.98 118.8 H18 V139.75 H188 V48 H18 Z");
}

/* ==========================================================
   PANEL 4 CHECK REVEAL
   ========================================================== */

#check_reveal {
    position: absolute;
    top: 72px;
    left: 61px;
    width: 39px;
    height: 30px;
    overflow: hidden;
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
}

#check {
    position: absolute;
    top: -72px;
    left: -61px;
    width: 160px;
    height: 600px;
    max-width: none;
    pointer-events: none;
}

/* ==========================================================
   PANEL 5 IMAGE / OVERLAY
   ========================================================== */

#p5_img_holder {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 310px;
    overflow: hidden;
    pointer-events: none;
    isolation: isolate;
}

/* Original inline SVG placement: translate(-50) scale(.59). */
#p5_img {
    position: absolute;
    top: 0;
    left: -50px;
    width: 230.69px;
    height: 310.93px;
    max-width: none;
    pointer-events: none;
    will-change: transform;
}

#p5_overlay {
    position: absolute;
    inset: 0;
    width: 160px;
    height: 310px;
    background: linear-gradient(90deg, rgba(71, 143, 186, 0.7) 0%, rgba(71, 143, 186, 0) 57%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* ==========================================================
   PANEL 6 CTA
   ========================================================== */

#btn_holder {
    z-index: 1;
    overflow: visible;
}

#btn_back {
    position: absolute;
    left: 12px;
    top: 155px;
    width: 136px;
    height: 22px;
    border-radius: 4px;
    background: #b31983;
    pointer-events: none;
}

/* Transparent click target across the full upper creative. */
#btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 310px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
    z-index: 100;
}

#btn:focus,
#btn:focus-visible,
#btn:active {
    outline: none;
    box-shadow: none;
}

/* ==========================================================
   LIVE HTML ISI / LEGAL
   ========================================================== */

.clickable {
    cursor: pointer;
    text-decoration: underline;
}

.clickable:hover {
    text-decoration: none;
}

#links {
    position: absolute;
    top: 310px;
    left: 0;
    width: 160px;
    overflow: hidden;
    font-family: "Montserrat", Arial, sans-serif;
    font-optical-sizing: auto;
    z-index: 200;
}

#legal {
    position: absolute;
    top: 371px;
    left: 0;
    width: 160px;
    height: 228px;
    overflow-x: hidden;
    overflow-y: scroll;
    font-family: "Montserrat", Arial, sans-serif;
    font-optical-sizing: auto;
    font-size: 10px;
    z-index: 200;
}

#legal_content {
    padding-right: 1px;
    letter-spacing: 0.1px;
}

#legal::-webkit-scrollbar {
    width: 6px;
}

#legal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0);
}

#legal::-webkit-scrollbar-thumb {
    background: #000;
    border: 2px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    border-radius: 9999px;
}

#legal::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 1);
}

#links p {
    text-align: left;
    padding: 1px 0 1px 7px;
    font-size: 10px;
    line-height: 12px;
}

#legal p {
    padding: 3px 0 2px 7px;
    line-height: 11.5px;
}

.black {
    color: #000;
}

.blue {
    color: #405364;
}

.heading {
    background-color: #e5f3f9;
    text-align: left;
    text-transform: uppercase;
    font-weight: 700;
    font-style: normal;
    font-size: 11.5px;
    line-height: 15px;
    letter-spacing: 0;
}

.spec-header {
    font-size: 13.5px;
    letter-spacing: -0.1px;
}

.regular {
    font-weight: 400;
    font-style: normal;
}

.bold {
    font-weight: 600;
    font-style: normal;
}

.bolder {
    font-weight: 700;
    font-style: normal;
}

.extra-bold {
    font-weight: 800;
}

.spacer {
    padding-top: 10px;
}

@-moz-document url-prefix() {
    #legal {
        scrollbar-width: thin;
        scrollbar-color: #000 transparent;
        width: 160px;
    }

    #legal_content {
        padding-right: 0;
    }
}
