/* Approved source storefront, including native platform purchase and account surfaces. */
.lunariska-platform{--red:var(--color-red);--accent:var(--red);--storefront-line-width:1px}
.lunariska-platform .catalog-format-card .product-card-cart-button{text-transform:none}
.lunariska-platform .ef-palette-swatches button{min-height:0;padding:0}
.lunariska-platform {
    --support-orb-size: 86.02px;
    --support-orb-bottom: 20px;
    --support-orb-right: 20px;
    --support-orb-halo-spread: 34px;
}

.lunariska-platform .commerce-support-trigger--orb {
    display: block;
    isolation: isolate;
    width: var(--support-orb-size);
    height: var(--support-orb-size);
    bottom: var(--support-orb-bottom);
    right: var(--support-orb-right);
    background: transparent;
    transition: transform .22s ease;
}

.lunariska-platform .lunariska-support-halo {
    --support-halo-color: rgb(255 119 41);
    --support-halo-highlight: rgb(255 204 96);
    --support-halo-opacity: .92;
    --support-halo-radius: calc(var(--support-orb-size) * .5
        + min(var(--support-orb-right), var(--support-orb-bottom)) - 1px);
    --support-halo-mist: radial-gradient(circle closest-side,
        #000b 0 30%, #0009 46%, #0006 61%, #0003 73%, #0001 87%, transparent 100%);
    --support-halo-cloud: radial-gradient(ellipse closest-side,
        #000c 0 13%, #000a 30%, #0007 48%, #0003 67%, #0001 84%, transparent 100%);
    --support-halo-reflection: radial-gradient(ellipse closest-side,
        #0009 0 12%, #0006 32%, #0003 56%, #0001 78%, transparent 100%);
    position: fixed;
    right: calc(var(--support-orb-right) - var(--support-orb-halo-spread));
    bottom: calc(var(--support-orb-bottom) - var(--support-orb-halo-spread));
    width: calc(var(--support-orb-size) + 2 * var(--support-orb-halo-spread));
    aspect-ratio: 1;
    z-index: 979;
    background: none;
    pointer-events: none;
    /* The sampled layer opacity drops from .93 to .80 as the page brightens. */
    opacity: clamp(.31, calc(.31 + (.93 - var(--support-halo-opacity)) * 1.08), .46);
    filter: saturate(1.55);
    /* Fade the circular silhouette before it reaches the viewport edges. */
    mask-image: radial-gradient(circle var(--support-halo-radius) at center,
        #000 0 72%, #000c 82%, #0006 93%, transparent 100%);
    transition: transform .22s ease, opacity .24s ease;
}

.lunariska-platform .lunariska-support-halo::before,
.lunariska-platform .lunariska-support-halo::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0;
    /* Tint the inner edge of each colored layer before applying its mask. */
    background-image: radial-gradient(circle at center,
        rgb(0 0 0 / .25) 0 calc(var(--support-orb-size) * .5),
        transparent calc(var(--support-orb-size) * .66));
    mask-repeat: no-repeat;
    opacity: var(--support-halo-opacity);
    transition: background-color .24s ease, opacity .24s ease;
}

/* A continuous light field keeps the cloud connected as its outer lobes move. */
.lunariska-platform .lunariska-support-halo::before {
    background-color: var(--support-halo-color);
    mask-image: var(--support-halo-mist), var(--support-halo-cloud),
        var(--support-halo-cloud), var(--support-halo-cloud), var(--support-halo-cloud),
        var(--support-halo-reflection);
    mask-size: 98% 98%, 65% 45%, 43% 66%, 60% 47%, 45% 62%, 29% 33%;
    mask-position: 50% 50%, 34% 0%, 0% 42%, 50% 100%, 100% 45%, 14% 14%;
}

.lunariska-platform .lunariska-support-halo::after {
    background-color: var(--support-halo-highlight);
    mask-image: var(--support-halo-reflection), var(--support-halo-reflection),
        var(--support-halo-reflection), var(--support-halo-reflection);
    mask-size: 56% 34%, 32% 50%, 43% 31%, 32% 40%;
    mask-position: 24% 15%, 12% 42%, 54% 87%, 86% 48%;
}

@media (prefers-reduced-motion: no-preference) {
    .lunariska-platform .lunariska-support-halo::before {
        animation: lunariska-halo-cloud 8s ease-in-out infinite;
    }

    .lunariska-platform .lunariska-support-halo::after {
        animation: lunariska-halo-reflections 8s ease-in-out -.25s infinite;
    }
}

@keyframes lunariska-halo-cloud {
    23% {
        mask-size: 98% 98%, 49% 52%, 54% 43%, 68% 41%, 42% 69%, 33% 27%;
        mask-position: 50% 50%, 51% 0%, 0% 56%, 45% 100%, 100% 30%, 20% 5%;
    }

    48% {
        mask-size: 98% 98%, 69% 38%, 50% 53%, 48% 53%, 57% 44%, 27% 35%;
        mask-position: 50% 50%, 23% 0%, 0% 58%, 34% 100%, 100% 51%, 8% 24%;
    }

    74% {
        mask-size: 98% 98%, 54% 46%, 42% 56%, 68% 43%, 43% 63%, 31% 27%;
        mask-position: 50% 50%, 20% 0%, 0% 30%, 60% 100%, 100% 63%, 17% 10%;
    }
}

@keyframes lunariska-halo-reflections {
    24% {
        mask-size: 40% 39%, 43% 34%, 53% 23%, 27% 44%;
        mask-position: 55% 10%, 14% 53%, 48% 90%, 90% 35%;
    }

    49% {
        mask-size: 52% 25%, 37% 42%, 37% 36%, 43% 30%;
        mask-position: 22% 12%, 11% 62%, 38% 86%, 88% 59%;
    }

    75% {
        mask-size: 44% 37%, 26% 44%, 52% 27%, 30% 45%;
        mask-position: 21% 14%, 12% 32%, 59% 92%, 86% 65%;
    }
}

.commerce-is-open .lunariska-support-halo { visibility: hidden; }
.commerce-is-open .lunariska-support-halo::before,
.commerce-is-open .lunariska-support-halo::after { animation-play-state: paused; }

.commerce-support-trigger--orb .lunariska-support-orb:not([hidden]) {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: transform .22s ease;
}

.lunariska-support-label {
    position: absolute;
    inset: 50% calc(100% + 8px) auto auto;
    padding: 8px 12px;
    border-radius: 8px;
    background: #15273b;
    color: #fff;
    font: 600 14px/1.2 var(--font-body);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity .18s ease;
}

.lunariska-platform .commerce-support-trigger--orb:focus-visible {
    outline: 2px solid #66a9cd;
    outline-offset: 3px;
}

.commerce-support-trigger--orb:focus-visible .lunariska-support-label {
    opacity: 1;
    visibility: visible;
}

@media (hover: hover) {
    .commerce-support-trigger--orb:hover .lunariska-support-orb:not([hidden]) { transform: translateY(-2px); }
    .commerce-support-trigger--orb:hover + .lunariska-support-halo { transform: translateY(-2px); }
    .commerce-support-trigger--orb:hover .lunariska-support-label { opacity: 1; visibility: visible; }
}

.lunariska-platform .commerce-cookie-notice {
    border: 1px solid var(--navy);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    color: var(--navy);
    font-family: var(--font-body);
    max-height: calc(100dvh - var(--support-orb-bottom) - var(--support-orb-size) - 28px);
    overflow-y: auto;
}
.lunariska-platform .commerce-support-trigger--orb ~ .commerce-cookie-notice {
    bottom: calc(var(--support-orb-bottom) + var(--support-orb-size) + 12px);
}
.lunariska-platform .commerce-cookie-notice h2 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 22px;
    line-height: 1.2;
}
.lunariska-platform .commerce-cookie-notice p { margin: 0 0 12px; }
.lunariska-platform .commerce-cookie-actions { display: grid; gap: 7px; }
.lunariska-platform .commerce-cookie-actions .commerce-button {
    background: var(--red);
    border: 1px solid var(--red);
    border-radius: 6px;
    color: #fff;
}
.lunariska-platform .commerce-cookie-actions .commerce-cookie-essential {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #c3ccd6;
    border-radius: 6px;
    background: #fff;
    color: var(--navy);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
}
.lunariska-platform .commerce-cookie-actions .commerce-cookie-essential:hover { background: #edf2f7; }
.lunariska-platform .commerce-cookie-actions > [data-cookie-settings] {
    justify-self: center;
    min-height: 32px;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-family: inherit;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.lunariska-platform .commerce-cookie-notice [data-cookie-error] {
    margin: 8px 0 0;
    color: #a12632;
}
.lunariska-platform .commerce-preferences{border-radius:8px;font-family:var(--font-body)}
.lunariska-platform .commerce-dialog{border-radius:24px;font-family:var(--font-body);overflow:auto;overflow-x:hidden;scrollbar-gutter:auto;isolation:isolate;box-shadow:0 28px 90px #07121bb8}
.lunariska-platform .commerce-dialog:not(.commerce-drawer) .commerce-checkout-layout{border-radius:24px;overflow:hidden}
.lunariska-platform .commerce-dialog:not(.commerce-drawer) .commerce-order-preview{border-radius:24px 0 0 24px}

.lunariska-platform .commerce-preview-item > .commerce-preview-media {
    position: relative;
    aspect-ratio: 4 / 3;
    max-height: 280px;
}

.lunariska-platform .commerce-preview-media > .commerce-preview-image {
    position: absolute;
    inset: 0;
    margin: auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: auto;
    border-radius: 8px;
    background: transparent;
}

@media (max-width: 760px) {
    .lunariska-platform .commerce-preview-item > .commerce-preview-media {
        grid-row: 1 / 3;
        aspect-ratio: auto;
        height: 95px;
    }
}
.lunariska-platform .commerce-dialog:not(.commerce-drawer) .commerce-order-form{border-radius:0 24px 24px 0}
.lunariska-platform .commerce-fields>label{display:flex;flex-direction:column;align-items:stretch;min-width:0}
.lunariska-platform .commerce-fields>label>.international-phone{width:100%}
.lunariska-platform .commerce-overlay{transition:background-color .2s ease,backdrop-filter .2s ease}
.lunariska-platform .commerce-dialog.commerce-dialog--preparing{opacity:0;pointer-events:none}
.lunariska-platform :is(.commerce-button,.commerce-order-form button[type=submit]){background:var(--red);color:#fff;border:1px solid var(--red);border-radius:6px;font-family:var(--font-body);font-weight:700}
.lunariska-platform .commerce-button:hover{background:var(--red);border-color:var(--red);filter:brightness(1)}
.lunariska-platform :is(.commerce-cart-summary,.commerce-receipt-status,.commerce-quantity,.commerce-account-form input){border-radius:6px}
.lunariska-platform .commerce-page{padding:56px clamp(20px,4vw,56px) 80px}
.lunariska-platform .commerce-page>h1,.lunariska-platform .commerce-account h1{font:700 var(--text-heading-1)/var(--line-heading-1) var(--font-heading);letter-spacing:0}
body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-wordmark small{display:none}
.lunariska-platform .commerce-account{padding-top:32px;padding-bottom:64px}
.lunariska-platform .commerce-account-form input{font-family:var(--font-body)}
.lunariska-platform .catalog-control__panel[hidden]{display:none!important}
.lunariska-platform .catalog-eastfork-panels{width:100%}
.lunariska-platform .catalog-control__panel form{max-width:none}
.lunariska-platform .catalog-control__panel .filters{padding:28px clamp(20px,4vw,40px);border-bottom:1px solid #111}
.lunariska-platform .luna-restored-filter-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.lunariska-platform .luna-restored-filter-fields label{display:grid;gap:8px}
.lunariska-platform .luna-restored-filter-fields :is(input,select){width:100%;min-width:0}
.lunariska-platform .luna-restored-filter-actions{display:flex;align-items:center;gap:24px;margin-top:24px}
.lunariska-platform .luna-restored-filter-actions .ef-button{margin:0}
.lunariska-platform .catalog-featured-collections__card img{width:100%;height:100%;object-fit:contain}
.lunariska-platform .catalog-page-intro__copy{border-bottom:0!important}
.lunariska-platform .catalog-eastfork-shell .product-grid{border-bottom:1px solid #111}
.lunariska-platform .series-landing-models>header{display:block;background:transparent;color:inherit}
@media(max-width:760px){
 .lunariska-platform{--support-orb-size:70.84px;--support-orb-bottom:14px;--support-orb-right:14px;--support-orb-halo-spread:24px}
 .lunariska-platform .commerce-page{padding:32px 20px 56px}
 .lunariska-platform .luna-restored-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .lunariska-platform .commerce-dialog{border-radius:18px}
 .lunariska-platform .commerce-dialog:not(.commerce-drawer) .commerce-checkout-layout{border-radius:18px}
 .lunariska-platform .commerce-dialog:not(.commerce-drawer) :is(.commerce-order-preview,.commerce-order-form){border-radius:0}
 body.lunariska-platform .commerce-overlay:has(> .commerce-drawer){align-items:flex-start;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y}
 body.lunariska-platform .commerce-dialog.commerce-drawer{flex:0 0 auto;height:auto;min-height:100dvh;max-height:none;overflow:visible;margin-left:auto}
 body.lunariska-platform .commerce-drawer-content{padding-bottom:max(32px,env(safe-area-inset-bottom))}
 body.lunariska-platform .commerce-drawer-content:has(.commerce-cart-item:only-of-type){padding:18px 16px max(16px,env(safe-area-inset-bottom))}
 body.lunariska-platform .commerce-drawer-content:has(.commerce-cart-item:only-of-type)>.eyebrow{margin:0 0 4px}
 body.lunariska-platform .commerce-drawer-content:has(.commerce-cart-item:only-of-type)>h1{font-size:26px!important;margin:0 0 8px!important}
 body.lunariska-platform .commerce-drawer-content:has(.commerce-cart-item:only-of-type) .commerce-cart-item{padding:12px 0}
 body.lunariska-platform .commerce-drawer-content:has(.commerce-cart-item:only-of-type) .commerce-cart-image img{height:72px}
 body.lunariska-platform .commerce-drawer-content:has(.commerce-cart-item:only-of-type) .commerce-cart-info p{margin:3px 0}
 body.lunariska-platform .commerce-drawer-content:has(.commerce-cart-item:only-of-type) .commerce-quantity{margin-top:5px}
 body.lunariska-platform .commerce-drawer-content:has(.commerce-cart-item:only-of-type) .commerce-cart-note{padding:6px 0}
 body.lunariska-platform .commerce-drawer-content:has(.commerce-cart-item:only-of-type) .commerce-cart-summary{margin-top:10px;padding:14px}
 body.lunariska-platform .commerce-drawer-content:has(.commerce-cart-item:only-of-type) .commerce-cart-summary>p{margin:8px 0}
 body.lunariska-platform .commerce-drawer-content:has(.commerce-cart-item:only-of-type) .commerce-continue{margin-top:8px}
 body.lunariska-platform .commerce-page:has(> .commerce-checkout-layout){padding:12px 12px 24px}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-order-preview{padding:10px 12px}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-wordmark{display:none}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-logo{width:110px;height:24px;margin:0 0 8px}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-preview-item{grid-template-columns:58px minmax(0,1fr);column-gap:10px;margin-bottom:8px}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-preview-item>.commerce-preview-media{height:58px}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-preview-item h2{font-size:16px!important;margin:0!important}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-preview-item .commerce-total-line{gap:2px;margin:2px 0}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-preview-totals{padding-top:4px}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-preview-totals>p{margin:3px 0}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-grand-total{margin-top:5px;padding-top:5px}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-grand-total strong{font-size:21px}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-order-form{padding:10px 12px 14px}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-order-form h1{font-size:23px!important;margin:0 0 8px!important}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-contact-fields{gap:6px;margin-bottom:6px}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-contact-email{margin:0 0 6px}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-checkout-city{margin-bottom:6px}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-order-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.international-phone){min-height:44px}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-order-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]){padding:10px 12px;margin-top:4px}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .international-phone__country{min-height:44px}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-order-form .international-phone>input[type=tel]{min-height:44px!important;padding:10px 12px!important}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-consent--start{margin:6px 0}
 body.lunariska-platform .commerce-page>.commerce-checkout-layout .commerce-stage-next{min-height:46px;padding:10px 16px}
}

@media (max-width: 560px) {
    .lunariska-platform.catalog-eastfork-page { --support-orb-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    .lunariska-platform .commerce-overlay,
    .lunariska-platform .commerce-support-trigger--orb,
    .commerce-support-trigger--orb .lunariska-support-orb:not([hidden]),
    .lunariska-platform .lunariska-support-halo,
    .lunariska-platform .lunariska-support-halo::before,
    .lunariska-platform .lunariska-support-halo::after,
    .lunariska-support-label { transition: none; }
}

body.lunariska-platform.product-surface-page #lunariska-rows-refined .lr-option{border-width:1px!important}
body.lunariska-platform.product-surface-page #lunariska-rows-refined .lr-order{border-width:1px!important}
body.lunariska-platform .catalog-purchase-links a:focus-visible,body.lunariska-platform .catalog-purchase-facts a:focus-visible{outline-width:1px}

.lunariska-platform .puzzle-finder__intro,.lunariska-platform .puzzle-finder__results-heading{background:transparent;color:inherit;padding:0;border:0;max-width:none}
.lunariska-platform .puzzle-finder__intro{display:block}
.lunariska-platform .puzzle-finder__navigation{background:transparent;color:inherit;margin:0;max-width:none}
.lunariska-platform .product-instruction__image{display:block;width:100%;height:auto;max-width:none}

/* The wordmark letters extend to 37px; retain the existing width and crop below them. */
.lunariska-platform .commerce-wordmark>span{height:38px}

/* Motion only: keep each native dialog's existing colors, dimensions and layout. */
html{scrollbar-gutter:stable}
@keyframes lunariska-folder-open{
  0%{opacity:0;transform:perspective(1200px) scale(.85) rotateY(-80deg)}
  24%{opacity:.6;transform:perspective(1200px) scale(.94) rotateY(-30deg)}
  47%{opacity:1;transform:perspective(1200px) scale(1) rotateY(0)}
  62%{opacity:1;transform:perspective(1200px) scale(1.004) rotateY(2.2deg)}
  100%{opacity:1;transform:none}
}
@keyframes lunariska-folder-backdrop{from{opacity:0}to{opacity:1}}
.lunariska-platform :is(.commerce-preferences,.platform-gallery-dialog,#collector-game-dialog)[open]{
  animation:lunariska-folder-open 450ms ease-out both;
  transform-origin:center center;
  backface-visibility:hidden;
}
.lunariska-platform :is(.commerce-preferences,.platform-gallery-dialog,#collector-game-dialog)[open]::backdrop{
  animation:lunariska-folder-backdrop 220ms ease-out both;
}
@media(prefers-reduced-motion:reduce){
  .lunariska-platform :is(.commerce-preferences,.platform-gallery-dialog,#collector-game-dialog)[open],
  .lunariska-platform :is(.commerce-preferences,.platform-gallery-dialog,#collector-game-dialog)[open]::backdrop{animation:none}
}
