.home { --site-header-height: clamp(66px, 6vw, 90px); }
.home section[id] { scroll-margin-top: calc(var(--site-header-height) + var(--ws-toolbar-offset) - var(--wp-admin--admin-bar--height, 0px) + 18px); }

.feature-cover {
    position: relative;
    isolation: isolate;
    color: #f4faff;
    background: #041633;
    overflow: hidden;
}

.feature-cover:has(.cover-art)::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: clamp(250px, 40vw, 615px);
    background: url("assets/cover-blue-curtains.webp") center top / cover no-repeat;
    mask-image: linear-gradient(#000 0 65%, transparent);
}

.cover-layout { text-align: center; }
.cover-copy { padding-block: 12px clamp(22px, 3vw, 46px); }
.cover-copy:first-child { padding-top: clamp(36px, 6vw, 88px); }
.cover-copy h1 {
    color: #f2f9ff;
    font-size: clamp(36px, 5.3vw, 80px);
    font-weight: 820;
    letter-spacing: .045em;
    line-height: 1.12;
    overflow-wrap: anywhere;
    text-shadow: 0 3px 24px #9ed8ff30;
}
.cover-copy h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 10px auto 0;
    background: #59c1fa;
    box-shadow: 0 0 14px #7fd8ff75;
}
.cover-copy p {
    max-width: 31em;
    margin: 13px auto 0;
    font-size: clamp(15px, 1.55vw, 23px);
    line-height: 1.5;
    text-wrap: pretty;
    color: #d2e5f9;
}
.cover-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(8px, 1.7vw, 27px); margin-top: clamp(15px, 1.7vw, 26px); }
.feature-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(44px, 4vw, 61px);
    max-width: 100%;
    padding: 7px clamp(14px, 2.75vw, 43px);
    font-size: clamp(14px, 1.7vw, 25px);
    border: 1px solid #e0f5ff;
    border-radius: 8px;
    background: linear-gradient(155deg, #f1fbff, #aadfff);
    color: #102d4b;
    text-decoration: none;
    font-weight: 700;
    overflow-wrap: anywhere;
}
a.feature-button:hover { background: #e7f8ff; }
.feature-button.secondary { color: #f0f8ff; background: #a0ccf01a; border-color: #83b7e3a8; }
a.feature-button.secondary:hover { background: #a0ccf040; border-color: #bfe7ff; }
.feature-button.is-pending { color: #c1d5ea; border-color: #7c9ab47a; background: #a0ccf00e; }
.cover-overview { margin-top: clamp(8px, 1.25vw, 19px); column-gap: clamp(17px, 4vw, 62px); }
.cover-overview a.feature-button {
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d2ecff;
    font-size: clamp(13px, 1.45vw, 22px);
    text-decoration: underline;
    text-decoration-color: #aad3f489;
    text-underline-offset: .3em;
}
.cover-overview a.feature-button:hover { color: #fff; text-decoration-color: currentColor; }
.cover-actions a:focus-visible { outline: 2px solid #d3f2ff; outline-offset: 3px; }
.cover-art {
    display: grid;
    place-items: end center;
    padding-top: 8px;
}
.cover-art img {
    display: block;
    width: min(100%, 960px);
    height: auto;
    max-height: clamp(220px, 29.4vw, 450px);
    object-fit: contain;
    object-position: center bottom;
}

.feature-section { padding-block: clamp(36px, 5.4vw, 72px); }
.feature-section h2 { color: #0a1320; font-size: clamp(27px, 3vw, 37px); line-height: 1.22; }
.feature-prose { color: var(--muted); line-height: 1.8; }
.feature-prose p + p { margin-top: 10px; }
.feature-prose a { color: var(--blue); }
#overview {
    padding-block: clamp(32px, 3.9vw, 62px) clamp(36px, 4.7vw, 74px);
    background: linear-gradient(#fafcfe, #f0f8fe);
}
.overview-layout { text-align: center; }
.overview-layout #overview-heading { font-size: clamp(25px, 3.3vw, 51px); }
#overview-heading .crystal-heading {
    min-width: min(100%, 51vw, 350px);
    min-height: clamp(42px, 5.1vw, 78px);
}
.overview-layout .feature-prose {
    max-width: 36em;
    margin: clamp(13px, 1.6vw, 24px) auto 0;
    color: #253b52;
    font-size: clamp(15px, 1.55vw, 24px);
    line-height: 1.65;
    text-wrap: pretty;
}
.overview-categories {
    --overview-ledge: url("assets/overview-crystal-ledge.webp");
    display: flex;
    justify-content: center;
    list-style: none;
    margin: clamp(21px, 2.4vw, 38px) 0 0;
    padding: clamp(10px, 1.45vw, 23px) clamp(15px, 2.5vw, 40px) clamp(35px, 4.3vw, 67px);
    background: var(--overview-ledge) center / 100% 100% no-repeat;
}
.overview-categories li { flex: 1 1 0; min-width: 0; }
.overview-categories li + li { border-inline-start: 1px solid #a9cfee8c; }
.overview-categories a {
    display: grid;
    justify-items: center;
    align-content: start;
    height: 100%;
    min-height: 44px;
    gap: clamp(3px, .6vw, 9px);
    padding: clamp(5px, .75vw, 12px) 4px;
    color: #102b51;
    font-size: clamp(14px, 2vw, 30px);
    font-weight: 750;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.overview-categories a:hover, .overview-categories a:focus-visible {
    background: #f0f9ff9c;
    color: #075daa;
}
.overview-categories img {
    width: clamp(42px, 8.4vw, 132px);
    height: clamp(42px, 8.4vw, 132px);
    object-fit: contain;
    filter: drop-shadow(0 5px 6px #2166a32b);
}
@media (min-width: 1300px) {
    .overview-layout { width: min(100% - 100px, 1460px); }
}
@media (max-width: 760px) {
    .overview-categories {
        flex-wrap: wrap;
        padding: 7px 10px 12px;
        background-position: center top;
        background-size: 100% 50%;
        background-repeat: repeat-y;
    }
    .overview-categories li { flex: 0 0 25%; }
    .overview-categories li:nth-child(4n + 1) { border-inline-start: 0; }
    .overview-categories a { padding-block: 7px 27px; }
    .overview-categories img { width: clamp(33px, 10vw, 58px); height: clamp(33px, 10vw, 58px); }
}

.showcase-section { background: #f0f8ff; }

.app-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 3vw, 37px);
    width: min(100%, 965px);
    margin: 30px auto 0;
    padding: 0;
    list-style: none;
}
.app-screen { margin: 0; text-align: center; }
.app-screen-frame {
    display: block;
    padding: 4px;
    border: 1px solid #b6d6ed;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 8px 24px #2a679918;
}
.app-screen-frame:hover { border-color: var(--blue); }
.app-screen-frame img {
    width: 100%;
    height: auto;
    border-radius: 14px;
}
.app-screen figcaption { margin-top: 9px; font-weight: 680; color: #183751; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2.3vw, 27px);
    margin-top: 28px;
}
.news-item {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #d9eaf7;
    background: #fff;
}
.news-art {
    aspect-ratio: 2.15;
    display: flex;
    align-items: end;
    justify-content: center;
    background: linear-gradient(127deg, #f5fbff, #d8efff);
    overflow: hidden;
}
.news-art img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.news-copy { padding: 15px 18px 19px; }
.news-copy h3 { font-size: 19px; line-height: 1.4; }
.news-copy p { margin-top: 5px; font-size: 14px; }

.crystal-heading {
    display: inline-grid;
    place-items: center;
    min-width: min(100%, 51vw, 230px);
    min-height: clamp(36px, 4.3vw, 50px);
    max-width: 100%;
    padding: 4px 16px;
    border-radius: 9px;
    background: #d8edfb url("assets/contact-crystal-pane.webp") center / 100% 100% no-repeat;
    color: #102b51;
    letter-spacing: .07em;
    text-align: center;
    overflow-wrap: anywhere;
}
.section-heading :is(h1, h2):has(> .crystal-heading) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(9px, 1.6vw, 20px);
    font-size: clamp(23px, 3vw, 34px);
}
.section-heading :is(h1, h2):has(> .crystal-heading)::before,
.section-heading :is(h1, h2):has(> .crystal-heading)::after {
    content: "";
    width: clamp(20px, 10vw, 122px);
    height: 1px;
    margin: 0;
    background: #91b5d6;
}
@media (forced-colors: active) {
    .crystal-heading { color: CanvasText; border: 1px solid CanvasText; background: Canvas; }
}

.lottery-panel .provider-list { gap: 11px; }
.lottery-panel .provider-card:not(.has-screenshot) {
    min-height: 132px;
    border: 1px solid #c7e0f3;
    border-radius: 14px;
    background: linear-gradient(105deg, #fbfdff 20%, #eaf6ff 70%, #d8edff);
}
.lottery-panel .provider-card .provider-art {
    width: min(50%, 210px);
    height: calc(100% - 10px);
    inset: 5px 8px auto auto;
    object-position: right center;
}
.lottery-panel .provider-copy { max-width: 54%; }
.lottery-panel .has-screenshot .provider-copy { max-width: 100%; }

.venue-section {
    background: linear-gradient(160deg, #eef8ff, #d9ecfb 62%, #edf7ff);
    border-block: 1px solid #e1eef8;
}
.venue-grid {
    --venue-icon-size: clamp(53px, 7.3vw, 96px);
    --venue-stage-edge: clamp(7px, 1.55vw, 21px);
    --venue-stage-base: clamp(24px, 3.4vw, 46px);
    display: grid;
    gap: clamp(16px, 2vw, 28px);
    margin-top: clamp(23px, 3.6vw, 47px);
}
.venue-grid:not(:has(.venue-group)) { display: none; }
.venue-stage {
    display: grid;
    grid-template-columns: repeat(var(--venue-columns), minmax(0, 1fr));
    grid-template-rows: auto auto;
    position: relative;
    isolation: isolate;
    justify-self: center;
    width: min(100%, max(260px, 100% / 7 * var(--venue-columns)));
    padding-inline: var(--venue-stage-edge);
}
.venue-stage::before,
.venue-stage::after {
    position: absolute;
    z-index: -1;
    grid-column: 1 / -1;
    inset-inline: calc(-1 * var(--venue-stage-edge));
    mask-image: linear-gradient(90deg, transparent, #000 9px, #000 calc(100% - 9px), transparent);
    content: "";
}
.venue-stage::before {
    grid-row: 1 / 2;
    inset-block: calc(var(--venue-icon-size) - 4px) 0;
    /* The desktop rail is the top 162 pixels of the 534-pixel artwork. */
    background: url("assets/venue-crystal-counter.webp") center top / 100% calc(100% * 534 / 162) no-repeat;
    mask-image: linear-gradient(90deg, transparent, #000 9px, #000 calc(100% - 9px), transparent),
        linear-gradient(180deg, transparent, #000 11px);
    mask-composite: intersect;
}
.venue-stage::after {
    grid-row: 2 / 3;
    inset-block: 0;
    border-style: solid;
    border-width: 0 var(--venue-stage-edge) var(--venue-stage-base);
    border-image: url("assets/venue-crystal-counter.webp") 162 45 89 45 fill stretch;
    mask-image: linear-gradient(90deg, transparent, #000 9px, #000 calc(100% - 9px), transparent),
        linear-gradient(0deg, transparent, #000 14px);
    mask-composite: intersect;
}
.venue-group {
    min-width: 0;
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    text-align: center;
}
.venue-group h3 {
    font-size: clamp(17px, 2.1vw, 28px);
    line-height: 1.2;
}
.venue-category {
    display: grid;
    justify-items: center;
    grid-template-rows: auto minmax(2em, 1fr);
    align-items: start;
    gap: clamp(8px, 1vw, 13px);
    padding: 0 4px clamp(10px, 1.3vw, 18px);
    color: #102f57;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.venue-category > span:last-child { align-self: center; }
.venue-category:hover > span:last-child { color: #005a9e; text-decoration: underline; text-underline-offset: 3px; }
.venue-emblem {
    position: relative;
    display: grid;
    width: min(100%, calc(var(--venue-icon-size) * 1.26));
    height: calc(var(--venue-icon-size) + 16px);
    justify-items: center;
    align-items: start;
}
.venue-emblem::before {
    position: absolute;
    inset: auto 0 0;
    height: 25px;
    background: url("assets/venue-crystal-plinth.webp") center bottom / 100% 100% no-repeat;
    content: "";
}
.venue-icon {
    position: relative;
    width: min(100%, var(--venue-icon-size));
    height: var(--venue-icon-size);
    object-fit: contain;
}
.venue-group ul {
    min-width: 0;
    list-style: none;
    margin: 0;
    padding: clamp(8px, 1.15vw, 14px) clamp(4px, 1.1vw, 15px) calc(5px + var(--venue-stage-base));
}
.venue-group + .venue-group ul {
    background: linear-gradient(#a9d0f0ad, #a9d0f0ad) left top / 1px calc(100% - var(--venue-stage-base)) no-repeat;
}
.venue-group li {
    overflow-wrap: anywhere;
    padding: clamp(6px, .9vw, 11px) 2px;
    color: #1a3554;
    font-size: clamp(13px, 1.42vw, 17px);
    line-height: 1.4;
}
.venue-group li + li { border-top: 1px solid #b8d7efaf; }

@media (min-width: 851px) {
    .venue-stage:has(> :nth-child(8)) .venue-group ul {
        padding-inline: clamp(4px, .55vw, 8px);
    }
}

@media (max-width: 850px) {
    .venue-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1px;
        padding: 11px;
        border: 1px solid #afd3f0;
        border-radius: 15px;
        background: #c1dcf1;
        box-shadow: inset 0 0 0 4px #e9f7ff, 0 8px 22px #24679d1c;
    }
    .venue-stage { display: contents; }
    .venue-stage::before, .venue-stage::after { content: none; }
    .venue-group { grid-row: auto; grid-template-rows: auto minmax(0, 1fr); background: #eaf6ff; }
    .venue-category { padding-top: 9px; }
    .venue-group ul {
        border-top: 1px solid #b2d4ee;
        background: #f6fbff;
        padding-bottom: 12px;
    }
    .venue-group + .venue-group ul { background: #f6fbff; }
}
@media (max-width: 600px) {
    .venue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px; }
}

#guide { background: #f1f8fd; }
.guide-content { margin-top: 28px; }
.guide-content ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ws-guide;
}
.guide-content ol li {
    position: relative;
    counter-increment: ws-guide;
    padding: 20px 18px 16px 64px;
    min-height: 148px;
    border: 1px solid #cfe4f4;
    border-radius: 13px;
    background: #fff;
}
.guide-content ol li::before {
    content: counter(ws-guide, decimal-leading-zero);
    position: absolute;
    top: 21px;
    left: 17px;
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border-radius: 8px;
    background: #e5f4ff;
    color: #0766ac;
    font-size: 13px;
    font-weight: 750;
}
.guide-content strong { color: #102844; font-size: 19px; }
.guide-content a {
    display: inline-block;
    margin-top: 7px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #e9f5fd;
    font-weight: 690;
    text-decoration: none;
}
.guide-content a::after { content: " →"; }
.guide-content a:hover { color: #fff; background: #0967a9; }

.news-section { background: #f5faff; }
.news-item a { display: block; height: 100%; text-decoration: none; }
.news-item a:hover h3 { color: var(--blue); }
.news-copy p { color: var(--muted); line-height: 1.6; }
.news-more { display: inline-block; margin-top: 12px; color: var(--blue); font-size: 14px; font-weight: 690; }

@media (max-width: 680px) {
    .home { --site-header-height: 85px; }
    .feature-cover:has(.cover-art)::before { background-size: auto 100%; }
    .cover-art img { max-height: clamp(190px, 59vw, 320px); }
    .cover-copy { padding-block: 8px 23px; }
    .cover-copy h1 { font-size: clamp(34px, 9.5vw, 53px); }
    .cover-copy h1::after { width: 42px; }
    .cover-copy p { max-width: 28em; font-size: 14px; line-height: 1.6; }
    .app-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 12px; margin-top: 20px; }
    .app-screen-frame { border-radius: 13px; padding: 3px; }
    .app-screen-frame img { border-radius: 9px; }
    .app-screen figcaption { font-size: 13px; margin-top: 6px; }
    .news-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
    .news-item a { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); }
    .news-art { aspect-ratio: auto; min-height: 92px; }
    .news-art img { max-height: 135px; }
    .news-copy { padding: 10px 12px; }
    .news-copy h3 { font-size: 16px; }
    .news-copy p { font-size: 13px; }
    .lottery-panel .provider-card:not(.has-screenshot) { min-height: clamp(88px, 25vw, 110px); }
    .lottery-panel .provider-card .provider-art { right: 4px; }
    .guide-content { margin-top: 19px; }
    .guide-content ol { grid-template-columns: 1fr; gap: 10px; }
    .guide-content ol li { min-height: auto; padding: 12px 12px 12px 57px; }
    .guide-content ol li::before { left: 12px; top: 14px; }
}

@media (max-width: 360px) {
    .home { --site-header-height: 121px; }
}

.faq-section {
    padding-block: clamp(34px, 5.2vw, 65px) clamp(36px, 5.8vw, 72px);
    background: #f4faff;
}
.faq-accordion {
    width: 100%;
    margin-top: clamp(22px, 2.7vw, 36px);
    padding: clamp(12px, 2.9vw, 34px);
    border-radius: 18px;
    background: #e8f5ff url("assets/contact-crystal-pane.webp") center / 100% 100% no-repeat;
    box-shadow: 0 11px 24px #1867a322;
    color: #385471;
    font-size: clamp(15px, 1.76vw, 20px);
    overflow-wrap: anywhere;
}
.faq-accordion > details {
    padding: 0;
    border: 1px solid #edf7ff;
    border-radius: 0;
    background: #f5faffd9;
}
.faq-accordion > details:first-child { border-radius: 12px 12px 0 0; }
.faq-accordion > details:last-child { border-radius: 0 0 12px 12px; }
.faq-accordion > details + details { margin-top: 0; border-top-color: #b8d8f2; }
.faq-accordion > details[open] { background: #edf7ffeb; }
.faq-accordion > details > summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(53px, 6.2vw, 75px);
    padding: 10px clamp(48px, 6vw, 70px) 10px clamp(18px, 3.6vw, 43px);
    list-style: none;
    color: #10284e;
    font-size: clamp(15px, 2.05vw, 24px);
    font-weight: 750;
    line-height: 1.35;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary:focus-visible { outline-offset: -4px; }
.faq-accordion summary:hover { color: #075aab; }
.faq-accordion summary::after {
    position: absolute;
    inset-inline-end: clamp(10px, 1.7vw, 22px);
    top: 50%;
    width: clamp(28px, 3.4vw, 40px);
    aspect-ratio: 1;
    border: 1px solid #a4cff7;
    border-radius: 50%;
    background: linear-gradient(#1479d8, #1479d8) center / 42% 2px no-repeat,
        linear-gradient(#1479d8, #1479d8) center / 2px 42% no-repeat #deefff;
    transform: translateY(-50%);
    content: "";
}
.faq-accordion details[open] > summary::after {
    background-size: 42% 2px, 0 0;
}
.faq-accordion details[open] > summary::before {
    position: absolute;
    inset: 22% auto 22% clamp(5px, .8vw, 12px);
    width: 4px;
    border-radius: 5px;
    background: #187cdb;
    content: "";
}
.faq-accordion > details > :not(summary) {
    margin-inline: clamp(18px, 3.6vw, 43px);
}
.faq-accordion > details > :last-child:not(summary) {
    margin-bottom: clamp(13px, 2.1vw, 26px);
}

.provider-viewer {
    min-width: 0;
    padding: clamp(9px, 1.45vw, 18px);
    border: 1px solid #cce4f7;
    border-radius: 16px;
    background: linear-gradient(155deg, #fbfdff 10%, #eef7ff);
    box-shadow: 0 6px 19px #2259860d;
}
.provider-empty { color: var(--muted); font-size: 14px; }
.provider-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: clamp(8px, 1vw, 13px);
    padding-bottom: 8px;
    border-bottom: 1px solid #d1e6f6;
}
.provider-switcher button {
    min-width: 44px;
    max-width: 100%;
    min-height: 34px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #214767;
    font: inherit;
    font-size: clamp(13px, 1.35vw, 16px);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.provider-switcher button:hover { background: #e1f1ff; }
.provider-switcher button[aria-selected="true"] {
    border-color: #246fae;
    background: #1764a7;
    color: #fff;
}
.provider-viewer .provider-title { font-size: clamp(14px, 1.8vw, 21px); }
.provider-viewer.is-switchable .provider-card:not(.has-screenshot) { min-height: clamp(150px, 24vw, 260px); }
.provider-viewer.is-switchable .provider-card:not(.has-screenshot) .provider-art {
    height: calc(100% - 5px);
    bottom: 3px;
    inset-block-start: auto;
}
.provider-viewer .has-screenshot {
    padding: clamp(7px, 1vw, 12px);
    gap: 7px;
    background: #f7fbff;
}
.provider-viewer .has-screenshot .provider-copy { padding: 2px 4px 3px; }
.provider-viewer .provider-screenshot img { max-height: min(460px, 68vh); }
.provider-viewer [role="tabpanel"]:focus-visible,
.provider-viewer .provider-screenshot:focus-visible { outline-offset: -2px; }
@media (min-width: 681px) {
    .directory .category-list a[aria-current] { background: #edf7ff; }
}
@media (max-width: 680px) {
    .provider-viewer { padding: 6px; border-radius: 12px; }
    .provider-switcher { gap: 2px; padding-bottom: 5px; }
    .provider-switcher button { min-height: 40px; padding-inline: 7px; }
    .provider-viewer.is-switchable .provider-card:not(.has-screenshot) { min-height: clamp(102px, 34vw, 150px); }
    .provider-viewer .provider-screenshot img { max-height: min(310px, 57vh); }
}
@media (forced-colors: active) {
    .provider-switcher button[aria-selected="true"] { border: 2px solid Highlight; }
}
