/* ==========================================================
   DUNGEON MASTER TOOL — homepage v5 (December 2026)
   Loaded after style.css, which the privacy and account-deletion
   pages share: everything homepage-only lives here. The art cards
   are the loud part; the rest stays wood, paper and gold.
   ========================================================== */

/* ===== NAV: live star count ===== */
.stars {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.2rem;
    padding: 0.05rem 0.5rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.74rem;
    color: var(--gold-soft);
}

.stars .icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* no number from the API: no chip at all */
[data-stars]:empty,
.stars:has([data-stars]:empty) {
    display: none;
}

/* ===== HERO ===== */
.hero {
    isolation: isolate;
    min-height: min(100vh, 880px);
    min-height: min(100svh, 880px);
    overflow: hidden;
    overflow: clip;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('media/art/hero-bg.webp') center 35% / cover no-repeat;
    transform-origin: 62% 40%;
    animation: hero-drift 40s ease-in-out infinite alternate;
}

/* dark on the text side, the city shows through behind the cards */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(22, 17, 11, 0.94) 0%, rgba(22, 17, 11, 0.8) 38%, rgba(22, 17, 11, 0.2) 72%, rgba(22, 17, 11, 0.32) 100%),
        linear-gradient(180deg, rgba(22, 17, 11, 0.55) 0%, rgba(22, 17, 11, 0) 22%, rgba(22, 17, 11, 0) 66%, var(--bg) 100%);
}

@keyframes hero-drift {
    from { transform: scale(1.04); }
    to { transform: scale(1.12) translate(-1.5%, 1%); }
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.hero-chips li {
    padding: 0.28rem 0.75rem;
    border: 1px solid var(--line-strong);
    background: rgba(22, 17, 11, 0.55);
    font-size: 0.76rem;
    color: var(--ink-dim);
    letter-spacing: 0.03em;
}

/* Three content cards laid on the table in front of the app window */
.hero-visual {
    padding-bottom: 4.5rem;
}

.hero-fan {
    position: absolute;
    z-index: 3;
    left: -1.5rem;
    bottom: 0;
    width: 20rem;
    height: 13rem;
}

.art-card {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 8.6rem;
    padding: 0 6px 6px;
    background: linear-gradient(180deg, #2b2117, #1a140e);
    border: 1px solid #6e5534;
    border-radius: 6px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(237, 199, 138, 0.08);
    transform-origin: 50% 130%;
    transition: transform 0.45s var(--ease);
}

.art-card figcaption {
    font-family: var(--font-display);
    font-size: 0.78rem;
    color: var(--gold-soft);
    text-align: center;
    padding: 0.4rem 0.2rem 0.35rem;
    letter-spacing: 0.03em;
}

.art-card img {
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.hero-fan .art-card:nth-child(1) { transform: translateX(0) rotate(-11deg); }
.hero-fan .art-card:nth-child(2) { transform: translate(5.4rem, -0.9rem) rotate(-1deg); }
.hero-fan .art-card:nth-child(3) { transform: translateX(10.8rem) rotate(9deg); }

/* the fan opens a little when you reach for it (mouse only; on touch it would jump) */
@media (hover: hover) and (min-width: 481px) {
    .hero-visual:hover .art-card:nth-child(1) { transform: translate(-0.8rem, -0.4rem) rotate(-16deg); }
    .hero-visual:hover .art-card:nth-child(2) { transform: translate(5.4rem, -1.8rem) rotate(-1deg); }
    .hero-visual:hover .art-card:nth-child(3) { transform: translate(11.6rem, -0.4rem) rotate(14deg); }
}

/* ===== WHAT YOU GET (tabs) ===== */
.gains-section {
    padding: 110px 0 100px;
}

.gains {
    --gain-ms: 7000ms;
    margin-top: 2.6rem;
}

.gains-tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 2.4rem;
}

.gain-tab {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.8rem 0.5rem 1.1rem 0;
    background: none;
    border: 0;
    text-align: left;
    font-family: var(--font-display);
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--ink-dim);
    cursor: pointer;
    transition: color 0.2s ease;
}

.gain-tab .icon {
    width: 18px;
    height: 18px;
    margin-top: 0.05rem;
    color: var(--line-strong);
    transition: color 0.2s ease;
}

.gain-tab:hover,
.gain-tab[aria-selected="true"] {
    color: var(--ink);
}

.gain-tab:hover .icon,
.gain-tab[aria-selected="true"] .icon {
    color: var(--gold);
}

/* the track under each tab: the active one is gold, and fills up while the tabs run by themselves */
.gain-bar {
    position: absolute;
    left: 0;
    right: 0.5rem;
    bottom: 0;
    height: 2px;
    background: var(--line);
    overflow: hidden;
}

.gain-bar i {
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
}

.gain-tab[aria-selected="true"] .gain-bar i {
    transform: scaleX(1);
}

.gains.is-running .gain-tab[aria-selected="true"] .gain-bar i {
    animation: gain-fill var(--gain-ms) linear forwards;
}

@keyframes gain-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.gain-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 3.2rem;
    align-items: center;
}

.gain-panel[hidden] {
    display: none;
}

.gain-media .gallery-item,
.gain-media .media-frame {
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    box-shadow: var(--shadow-deep);
}

.gain-media-phone {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    background: radial-gradient(closest-side, rgba(217, 169, 107, 0.13), transparent 75%);
}

.phone-frame {
    position: relative;
    width: min(240px, 62vw);
    aspect-ratio: 430 / 932;
    border: 9px solid #0d0a07;
    border-radius: 30px;
    outline: 1px solid var(--line-strong);
    overflow: hidden;
    background: #0d0a07;
    box-shadow: var(--shadow-deep);
}

.phone-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gain-copy h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.7rem;
    font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem);
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.gain-line {
    color: var(--ink-dim);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

.gain-copy ul,
.community-copy ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.gain-copy li,
.community-copy li {
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.55;
}

.gain-copy li::before,
.community-copy li::before {
    content: '';
    position: absolute;
    left: 0.15rem;
    top: 0.58em;
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* ===== CONTENT ===== */
.content-section {
    padding: 100px 0 90px;
}

.content-bento {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.4rem;
    margin-top: 2.6rem;
}

.content-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.content-card-copy {
    position: relative;
    z-index: 1;
    padding: 1.4rem 1.6rem 1.6rem;
}

.content-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.5rem;
}

.content-card p {
    color: var(--ink-dim);
    line-height: 1.7;
}

/* SRD: one big card and four small ones, all squares */
.srd-collage {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    aspect-ratio: 2 / 1;
}

.srd-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.srd-collage img:first-child {
    grid-row: 1 / 3;
}

/* Worlds: the Aegis map under the list */
.worlds-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 22rem;
}

.worlds-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.worlds-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 17, 11, 0.05) 0%, rgba(22, 17, 11, 0.6) 42%, rgba(22, 17, 11, 0.96) 100%);
}

.worlds-card ul {
    list-style: none;
    display: grid;
    gap: 0.2rem;
    margin: 0.3rem 0 0.9rem;
}

/* The pack wall: one card per pack, in that pack's own art */
.packs {
    margin-top: 4.5rem;
}

.packs-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.8rem 2.5rem;
    margin-bottom: 1.8rem;
}

.packs-head h3 {
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
}

.packs-head p {
    max-width: 36rem;
    color: var(--ink-dim);
    line-height: 1.7;
}

.pack-wall {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.pack-tile {
    display: flex;
    flex-direction: column;
    width: calc((100% - 6rem) / 7);
    padding: 0 5px 0.55rem;
    background: linear-gradient(180deg, #2b2117, #1a140e);
    border: 1px solid #6e5534;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pack-tile img {
    width: 100%;
    height: auto;
    border-radius: 3px;
}

/* name on top like a playing card, publisher underneath */
.pack-title {
    order: -1;
    min-height: 3.6em; /* two lines of title + padding: every card's art starts at the same height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.2rem;
    font-family: var(--font-display);
    font-size: 0.76rem;
    line-height: 1.25;
    text-align: center;
    color: var(--gold-soft);
}

.pack-publisher {
    margin-top: auto;
    padding-top: 0.45rem;
    font-size: 0.68rem;
    text-align: center;
    color: var(--ink-dim);
}

@media (hover: hover) {
    .pack-tile:hover {
        transform: translateY(-6px) rotate(-1deg);
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
    }
}

.packs-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    text-align: center;
    color: var(--ink-dim);
}

/* Community: what people publish */
.community {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    margin-top: 5rem;
    padding: 2.2rem;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(217, 169, 107, 0.08), rgba(22, 17, 11, 0) 60%), var(--panel-2);
}

.community-media .gallery-item {
    border-color: var(--line-strong);
    border-radius: 4px;
}

/* the marketplace list sits in the middle of a wide, mostly empty screen: show that part */
.community-media .gallery-item img,
.community-media .gallery-item:hover img {
    transform: scale(1.7);
    transform-origin: 50% 42%;
}

.community-copy h3 {
    font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem);
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.community-note {
    margin-top: 1.4rem;
    padding-left: 0.9rem;
    border-left: 2px solid var(--red);
    font-size: 0.86rem;
    color: var(--ink-dim);
}

/* ===== WHY (one quiet line) ===== */
/* Systems: a short Beta band for people who build their own game */
.systems {
    padding: 0 0 90px;
}

.systems .section-header {
    margin-bottom: 2.2rem;
}

.systems-points {
    list-style: none;
    margin: 0;
    padding: 1.4rem 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
    border-top: 1px solid var(--line);
}

.systems-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--ink);
    line-height: 1.5;
}

.systems-points .icon {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--gold);
}

.systems-note {
    margin: 1.8rem 0 0;
    max-width: 62ch;
    font-size: 0.86rem;
    color: var(--ink-dim);
}

@media (max-width: 768px) {
    .systems-points {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Store strip: under the fixed nav at the top of the page; it scrolls away with the hero */
.store-strip {
    position: absolute;
    top: 73px; /* the nav is 72px plus its 1px border */
    left: 0;
    right: 0;
    z-index: 2;
    margin: 0;
    padding: 0.55rem 1.25rem;
    text-align: center;
    font-size: 0.86rem;
    color: var(--ink);
    background: rgba(22, 17, 11, 0.6);
    border-bottom: 1px solid var(--line);
}

.store-strip a {
    margin-left: 0.9rem;
    white-space: nowrap;
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Subscribe: the email box at the end of the page */
.subscribe {
    padding: 92px 0;
    border-top: 1px solid var(--line);
    text-align: center;
}

.subscribe .section-header {
    max-width: 640px;
    margin: 0 auto;
}

.subscribe .section-header h2::after {
    margin-inline: auto;
}

.subscribe .section-lead {
    margin-inline: auto;
}

@media (max-width: 768px) {
    /* room for the strip, which wraps to two lines on a phone */
    .hero {
        padding-top: 150px;
    }
}

.why-band {
    padding: 2.1rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-raise);
}

.why {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.why li,
.why a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--ink);
}

.why a {
    border-bottom: 1px solid var(--line-strong);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.why a:hover {
    color: var(--gold-soft);
    border-color: var(--gold);
}

.why .icon {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

/* no JS: no tabs, every panel in a column */
.no-js .gains-tabs {
    display: none;
}

.no-js .gain-panel + .gain-panel {
    margin-top: 4rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .hero-chips {
        justify-content: center;
    }

    .gain-panel,
    .content-bento,
    .community {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.8rem;
    }

    .community {
        padding: 1.4rem;
    }

    .pack-tile {
        width: calc((100% - 4rem) / 5);
    }

    .hero-visual {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 968px) {
    .hero-fan {
        left: -0.5rem;
    }
}

/* phones: the tabs become a strip that scrolls sideways */
@media (max-width: 768px) {
    /* strips bleed to the screen edge: same as the .container side padding in style.css */
    .gains,
    .packs {
        --bleed: 1.5rem;
    }

    .gains-section {
        padding: 80px 0 70px;
    }

    .gains-tabs {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--bleed);
        scrollbar-width: none;
        margin: 0 calc(-1 * var(--bleed)) 1.6rem;
        padding: 0 var(--bleed);
    }

    .gains-tabs::-webkit-scrollbar {
        display: none;
    }

    .gain-tab {
        flex: 0 0 68%;
        scroll-snap-align: start;
    }

    /* the pack wall becomes a strip of cards to flick through */
    .pack-wall {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--bleed);
        scrollbar-width: none;
        margin: 0 calc(-1 * var(--bleed));
        padding: 0.4rem var(--bleed) 1rem;
    }

    .pack-wall::-webkit-scrollbar {
        display: none;
    }

    .pack-tile {
        flex: 0 0 9.5rem;
        width: auto;
        scroll-snap-align: start;
    }

    .why {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .gains,
    .packs {
        --bleed: 1.15rem;
    }

    /* style.css makes every .btn full width here, so the email box goes on its own line */
    .newsletter-row {
        flex-direction: column;
    }

    .newsletter-row input {
        flex: none;
    }

    .hero-visual {
        padding-bottom: 3.5rem;
    }

    .hero-fan {
        left: calc(50% - 7.2rem);
        width: 14.4rem;
        height: 10rem;
    }

    .art-card {
        width: 6.4rem;
        padding: 0 4px 4px;
    }

    .hero-fan .art-card:nth-child(2) { transform: translate(4rem, -0.7rem) rotate(-1deg); }
    .hero-fan .art-card:nth-child(3) { transform: translateX(8rem) rotate(9deg); }

    .art-card figcaption {
        font-size: 0.62rem;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-bg {
        animation: none;
    }

    .art-card {
        transition: none;
    }
}

/* ===== DOWNLOAD: App Store notify ===== */
.newsletter.notify {
    width: 100%;
    max-width: 460px;
    margin: 1.2rem auto 0;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

.newsletter-hint {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--ink-dim);
}

.newsletter-hint a {
    color: var(--gold-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== SUPPORT ===== */
.support {
    padding: 0 0 92px;
}

.support .section-header {
    margin-bottom: 2.4rem;
}

.support-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    max-width: 920px;
    margin: 0 auto;
    padding: 0;
}

.support-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 1.1rem;
    row-gap: 0.35rem;
    height: 100%;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--line);
    background: rgba(22, 17, 11, 0.55);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.support-card:hover,
.support-card:focus-visible {
    border-color: var(--line-strong);
    background: rgba(32, 24, 15, 0.7);
}

.support-goal {
    border-color: rgba(217, 169, 107, 0.45);
    background: linear-gradient(135deg, rgba(217, 169, 107, 0.1), rgba(22, 17, 11, 0.55) 60%);
}

.support-icon,
.support-gf {
    grid-row: 1 / 3;
}

.support-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(217, 169, 107, 0.06);
    color: var(--gold);
}

.support-icon .icon {
    width: 22px;
    height: 22px;
}

.support-gf {
    margin-top: 0.5rem;
}

.support-card h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.05rem;
}

.support-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-dim);
}

@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .support-card {
        padding: 1.2rem;
        column-gap: 0.9rem;
    }

    .support-card:has(.support-gf) {
        grid-template-columns: minmax(0, 1fr);
    }

    .support-gf {
        grid-row: auto;
        margin: 0 0 0.3rem;
    }
}

/* ==========================================================
   Second screen: a monitor behind the laptop. The player window
   opens on the laptop when the DM clicks Second Window (2.3s in
   the clip) and is dragged onto the monitor. site.js sets --t to
   the clip's time; the paused animation is scrubbed with it.
   ========================================================== */
/* scene.css loads after this file: two classes beat its .sc-device */
.scene--projector .sc-monitor {
    z-index: 3;
}

.sc-monitor .sc-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    box-sizing: content-box;
    padding: 0.6em 0.6em 1em;
    border-radius: 0.7em;
    background: #050507;
    box-shadow: inset 0 0 0 0.6em #1a1a1f, inset 0 0 0 0.68em #3c3c45, 0 1.6em 3em -0.6em rgba(0, 0, 0, 0.75);
}

.sc-monitor-stand {
    position: relative;
    width: 3.4em;
    height: 14em;
    margin: 0 auto;
    background: linear-gradient(90deg, #26262c, #3d3d45 45%, #1c1c21);
}

.sc-window {
    --t: 99; /* no clock (no JS, not loaded yet): the window is already on the monitor */
    left: var(--wx);
    top: var(--wy);
    width: var(--ww);
    aspect-ratio: 16 / 9;
    z-index: 6;
    font-size: calc(var(--ww) / 40);
    background: #000;
    transform-origin: 0 0;
    animation: sc-drag 6s linear both paused;
    animation-delay: calc(var(--t) * -1s);
    box-shadow: 0 0 0 0.08em #4a4a55;
}

.sc-window video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* the player window is landscape: the map fills it, as it does in the app */
}

.sc-window::before {
    /* title bar, above the picture so the picture keeps the monitor's shape */
    content: 'Player window';
    position: absolute;
    left: -0.08em;
    right: -0.08em;
    bottom: 100%;
    padding: 0.35em 0.8em;
    font: 1.5em/1 var(--font-body, serif);
    color: #c9c9d2;
    background: #2b2b33 radial-gradient(circle at calc(100% - 1.1em) 50%, #c95f55 0.32em, transparent 0.36em);
    border-radius: 0.3em 0.3em 0 0;
    animation: sc-drag-bar 6s linear both paused;
    animation-delay: inherit;
}

.sc-window::after {
    /* the pointer that holds the title bar */
    content: '';
    position: absolute;
    left: 38%;
    top: -1.1em;
    width: 2.6em;
    height: 3.6em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 18'%3E%3Cpath d='M1 1v14l3.6-3.4 2.6 5.6 2.4-1.1-2.5-5.5H12z' fill='%23fff' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E") no-repeat 0 0 / contain;
    filter: drop-shadow(0 0.2em 0.3em rgba(0, 0, 0, 0.6));
    animation: sc-drag-pointer 6s linear both paused;
    animation-delay: inherit;
}

@keyframes sc-drag {
    0%, 39% { opacity: 0; transform: var(--win-open); }
    43% { opacity: 1; transform: var(--win-from); }
    50% { transform: var(--win-from); animation-timing-function: ease-in-out; }
    72% { transform: var(--win-mid); }
    78% { transform: var(--win-mid); animation-timing-function: ease-out; }
    84%, 100% { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes sc-drag-bar {
    0%, 78% { opacity: 1; }
    83%, 100% { opacity: 0; }
}

@keyframes sc-drag-pointer {
    0%, 44% { opacity: 0; }
    47%, 76% { opacity: 1; }
    79%, 100% { opacity: 0; }
}

/* the monitor screen's inner corner is at (x + 0.6em, y + 0.6em), 1em = w / 40 */
.scene--projector .scene-stage .sc-monitor { --x: 15cqw; --y: 4cqw; --w: 27cqw; }

.scene--projector .sc-window {
    --wx: 15.405cqw;
    --wy: 4.405cqw;
    --ww: 26.19cqw;
    --win-open: translate(6.1cqw, 31.55cqw) scale(0.48);
    --win-from: translate(5.4cqw, 31.15cqw) scale(0.535);
    --win-mid: translate(6.09cqw, 3.42cqw) scale(0.535);
}

.scene--projector .scene-stage .label-dm { --x: 1cqw; --y: 22cqw; }
.scene--projector .scene-stage .label-wall { --x: 43cqw; --y: 8.5cqw; }

@container scene (max-width: 460px) {
    .scene--projector .scene-stage .sc-monitor { --x: 2cqw; --y: 44cqw; --w: 27cqw; }

    .scene--projector .sc-window {
        --wx: 2.405cqw;
        --wy: 44.405cqw;
        --win-open: translate(32.63cqw, 39.18cqw) scale(0.54);
        --win-from: translate(31.85cqw, 38.74cqw) scale(0.6);
        --win-mid: translate(5.24cqw, 2.95cqw) scale(0.6);
    }

    /* under the laptop, pointing up: above it the label would name the monitor */
    .scene--projector .scene-stage .label-dm { --x: 8cqw; --y: 111cqw; }
    .scene--projector .scene-stage .label-dm svg { transform: rotate(-95deg); }
    .scene--projector .scene-stage .label-wall { --x: 50cqw; --y: 58cqw; }
}
