.film-game {
    --game-edge: #8276ad;
    --game-good: #88dfd4;
    max-width: 54rem;
    margin-inline: auto;
    padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 4vw, 2.75rem) 3rem;
    color: var(--color-ms-ink, #f5f2ff);
}

.film-game [hidden] { display: none !important; }
.film-game-intro {
    padding: clamp(1rem, 4vw, 2rem);
    border-radius: 1rem;
    background: #232033 url("../images/beta-dusk.svg") center / cover;
}
.film-game-label, .film-game-progress { font-size: .875rem; font-weight: 650; }
.film-game-label small {
    margin-inline-start: .35rem;
    padding: .12rem .4rem;
    border: 1px solid #aaa0c966;
    border-radius: .3rem;
    color: #e8e0ff;
}
.film-game h1, .film-game h2, .film-game-title {
    font-family: "Ubuntu Sans Variable", var(--font-sans, sans-serif);
    font-weight: 700;
    line-height: 1.15;
    text-wrap: balance;
}
.film-game h1 { margin: .4rem 0 .55rem; font-size: clamp(1.9rem, 6vw, 3.1rem); }
.film-game h2 { margin: .7rem 0 1rem; font-size: clamp(1.25rem, 3vw, 1.75rem); }
.film-game-intro p, .film-game-result p { max-width: 64ch; }
.film-game-modes, .film-game-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}
.film-game-modes a, .film-game-actions :is(button, a) {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2.75rem;
    padding: .5rem .85rem;
    border: 1px solid #aaa0c966;
    border-radius: .5rem;
    background: #171424;
    color: #f5f2ff;
    font-size: .875rem;
    font-weight: 650;
    cursor: pointer;
}
.film-game-modes a[aria-current], .film-game-actions [data-game-next], .film-game-actions [data-game-share] {
    background: linear-gradient(112deg, #9ae9e4, #d0b6ff);
    border-color: #eae2ff;
    color: #171424;
}
.film-game :is(a, button, input):focus-visible { outline: 2px solid var(--game-good); outline-offset: 3px; }
.film-game-progress { display: flex; align-items: center; gap: .8rem; margin-top: 1.5rem; }
.film-game [data-game-board], .film-game-result { max-width: 35.35rem; margin-inline: auto; }
.film-game-progress progress {
    width: min(12rem, 50%);
    height: .45rem;
    overflow: hidden;
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #39314e;
    accent-color: var(--game-good);
}
.film-game-progress progress::-webkit-progress-bar { background: #39314e; }
.film-game-progress progress::-webkit-progress-value { background: linear-gradient(90deg, #a58de8, var(--game-good)); }
.film-game-progress progress::-moz-progress-bar { background: linear-gradient(90deg, #a58de8, var(--game-good)); }
.film-game-pair {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(.55rem, 3vw, 1.35rem);
}
.film-game-versus { display: none; }
.film-game-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(.3rem, 1vw, .6rem);
    overflow: hidden;
    text-align: left;
    border: 1px solid #8276ad66;
    border-radius: .75rem;
    background: var(--color-ms-panel, #1c1929);
    cursor: pointer;
}
.film-game-card picture { display: contents; }
.film-game-card:hover, .film-game-card[data-selected] { border-color: var(--game-edge); }
.film-game-card[data-correct] {
    border-color: var(--game-good);
    box-shadow: 0 0 1.6rem #88dfd44d;
    animation: film-game-win .55s ease-out;
}
.film-game-card[aria-disabled="true"] { cursor: default; }
.film-game-art { position: relative; display: block; width: 100%; }
.film-game-poster {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    border-radius: .42rem;
    object-fit: cover;
    background: #211d30;
}
.film-game-title { margin: .55rem .2rem .1rem; overflow-wrap: anywhere; }
.film-game-year { margin: 0 .2rem .2rem; color: #d0c7e2; font-size: .8rem; }
.film-game-budget {
    position: absolute;
    bottom: .5rem;
    inset-inline: .35rem;
    padding: .5rem .25rem;
    border-radius: .5rem;
    background: #151122ef;
    color: #f5f2ff;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(.84rem, 3.5vw, 1.2rem);
    font-variant-numeric: tabular-nums;
    animation: film-game-reveal .2s ease-out;
}
.film-game-card[data-correct] .film-game-budget { color: var(--game-good); }
.film-game.film-game--wide {
    --film-game-frame: min(64rem, var(--site-frame-max, 1280px));
    max-width: none;
    padding: 0 0 3rem;
}
.film-game-intro-inner,
.film-game--wide > :is([data-game-board], .film-game-result, .film-game-streak, .film-game-feed, .film-game-note, .film-word-board, .film-game-library-section) {
    width: min(calc(100% - 2rem), var(--film-game-frame));
    max-width: none;
    margin-inline: auto;
}
.film-game-library-section { padding-block-start: 1rem; }
.film-game-intro--wide {
    padding: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--color-ms-line, #574969);
}
.film-game-intro-inner { padding-block: clamp(1rem, 3vw, 1.65rem); }
.film-game-intro-inner > p:not(.film-game-label) { color: var(--color-ms-soft, #e1d9ef); }
.film-game-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-top: 1rem;
}
.film-game-navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 37px;
    padding: .4rem .75rem;
    border-radius: .5rem;
    border: 1px solid var(--color-ms-line, #574969);
    background: var(--color-ms-panel, #1b172b);
    color: var(--color-ms-ink, #f5f2ff);
    font-size: .83rem;
    font-weight: 700;
    white-space: nowrap;
}
.film-game-navigation a:hover { background: var(--color-ms-elevated, #282039); }
.film-game-navigation a[aria-current] {
    border-color: transparent;
    background: #e7dcff;
    color: #1b1528;
}
.film-game-pair .film-game-versus.is-counting-down {
    position: absolute;
    z-index: 3;
    top: 46%;
    left: 50%;
    display: grid;
    place-items: center;
    width: clamp(2.35rem, 6vw, 4rem);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 2px solid #e4d9ff;
    border-radius: 50%;
    background: #38245d;
    color: #fff;
    box-shadow: 0 0 1.25rem #b391ffa6;
    font-size: clamp(1.1rem, 3.5vw, 1.8rem);
    font-weight: 800;
    pointer-events: none;
}
.film-game--budget h1 {
    color: #e9ddff;
    text-shadow: 0 0 1.2rem #a985ef70;
}
.film-game--budget .film-game-progress {
    padding: .65rem .8rem;
    border: 1px solid #9680bc52;
    border-radius: .7rem;
    background: linear-gradient(112deg, #2d2143, #192b32);
}
.film-game--budget .film-game-card {
    background: linear-gradient(150deg, #2e2340, #171323 65%);
}
.film-game--budget .film-game-card[data-selected] {
    outline: 1px solid #c8a6ff;
    outline-offset: 2px;
}
.film-game--budget .film-game-card[data-correct] {
    background: linear-gradient(145deg, #263e45, #171323 68%);
    box-shadow: 0 0 2rem #88dfd469, inset 0 0 1.25rem #88dfd431;
}
.film-game--budget .film-game-art { overflow: hidden; isolation: isolate; }
.film-game--budget .film-game-card[data-correct] .film-game-art::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(108deg, transparent 22%, #9ae9e4a3 50%, transparent 78%);
    content: "";
    pointer-events: none;
    animation: film-game-sweep .55s ease-out both;
}
.film-game--budget .film-game-budget {
    z-index: 2;
    border: 1px solid #bb9dff8c;
    background: linear-gradient(160deg, #2e2147f7, #101622f7);
    box-shadow: 0 .35rem 1.5rem #0d071db3;
}
.film-game--budget .film-game-budget.is-counting { color: #dfc9ff; }
.film-game--budget .film-game-card[data-correct] .film-game-budget {
    border-color: #88dfd4b3;
    text-shadow: 0 0 .8rem #88dfd490;
}
@keyframes film-game-sweep {
    from { transform: translateX(-100%); opacity: .85; }
    to { transform: translateX(100%); opacity: 0; }
}
.film-game-live-score { margin-inline-start: auto; color: var(--game-good); white-space: nowrap; }
.film-game-sound {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .4rem;
    background: #272138;
    color: #e8e0ff;
    font-size: 1.25rem;
    cursor: pointer;
}
.film-game-sound[aria-pressed="false"]::after {
    position: absolute;
    width: 1.3rem;
    height: 2px;
    background: currentColor;
    box-shadow: 0 0 0 1px #272138;
    transform: rotate(-45deg);
    content: "";
}
.film-game-sound:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.film-game-progress { flex-wrap: wrap; }
.film-game-feedback { min-height: 1.5rem; margin-top: .65rem; }
.film-game-result { margin-block: 1.5rem; }
.film-game-streak {
    --streak-gradient: linear-gradient(105deg, #9ae9e4, #d0b6ff);
    max-width: 64rem;
    margin: 1rem auto;
    padding: .85rem clamp(.75rem, 3vw, 1.5rem);
    border: 1px solid #aaa0c94d;
    border-radius: .85rem;
    background: #1b172b;
}
.film-game-streak-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: .25rem .75rem;
}
.film-game-streak-heading h2 { font-size: 1rem; }
.film-game-streak-heading span { color: #d5c9e7; font-size: .8rem; }
.film-game-streak-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(.25rem, 1vw, .7rem);
    margin-top: .7rem;
}
.film-game-streak-track { position: relative; }
.film-game-streak-track progress {
    position: absolute;
    inset: 50% auto auto 5%;
    width: 90%;
    height: .25rem;
    transform: translateY(-50%);
    appearance: none;
    border: 0;
    background: #574969;
}
.film-game-streak-track progress::-webkit-progress-bar { background: #574969; }
.film-game-streak-track progress::-webkit-progress-value { background: var(--streak-gradient); }
.film-game-streak-track progress::-moz-progress-bar { background: var(--streak-gradient); }
.film-game-streak-track ol {
    position: relative;
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    justify-items: center;
}
.film-game-streak-track li {
    display: grid;
    width: min(100%, clamp(.95rem, 4.6vw, 1.45rem));
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid #8b789e;
    border-radius: 50%;
    background: #282039;
    color: #eadff7;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1;
}
.film-game-streak-track li.is-reached {
    border-color: transparent;
    background: var(--streak-gradient);
    color: #171424;
}
.film-game-streak-reward {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .3rem .55rem;
    border: 1px solid transparent;
    border-radius: .4rem;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}
.film-game-streak-reward i { color: #ffda8a; }
a.film-game-streak-reward:hover { color: #ffedbc; }
.film-game-streak-help {
    margin-top: .55rem;
    color: var(--color-ms-soft, #d5c9e7);
    font-size: .8rem;
    line-height: 1.45;
}
@media (max-width: 480px) {
    .film-game-streak-reward {
        max-width: 4.6rem;
        padding-inline: .3rem;
        font-size: .65rem;
    }
}
.film-game-result--daily {
    padding-block: clamp(1.5rem, 5vw, 3rem);
    text-align: center;
}
.film-game-result--daily h2 { font-size: clamp(1.55rem, 3.4vw, 2.5rem); }
.film-game-result--daily p { margin-inline: auto; }
.film-game-result--daily .film-game-actions { justify-content: center; }
.film-game-result-score {
    display: grid;
    gap: .15rem;
    justify-items: center;
    margin-block: .9rem 1rem;
}
.film-game-result-score strong {
    color: #c9b9ff;
    font-size: clamp(2.65rem, 8vw, 5rem);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
}
@supports (background-clip: text) {
    .film-game-result-score strong {
        background: linear-gradient(105deg, #9ae9e4, #d0b6ff 55%, #ffc1df);
        background-clip: text;
        color: transparent;
    }
}
.film-game-result ul { margin: .75rem 0; padding-inline-start: 1.25rem; list-style: disc; }
.film-game-result ul a, .film-game-note a { text-decoration: underline; text-underline-offset: .2em; }
.film-game-result label { display: block; margin-top: .75rem; }
.film-game-result input { display: block; width: 100%; padding: .45rem; background: #232033; color: #f5f2ff; }
.film-game-feed {
    max-width: 35.35rem;
    margin: 1.5rem auto 0;
    padding: 1rem;
    border-radius: .75rem;
    background: var(--color-ms-panel, #1c1929);
}
.film-game-feed li { padding-block: .55rem; border-bottom: 1px solid #8276ad44; }
.film-game-feed a { text-decoration: underline; text-underline-offset: .2em; }
.film-game-feed strong { color: var(--game-good); font-variant-numeric: tabular-nums; }
.film-game-score-row, .film-game-member { display: flex; align-items: center; gap: .75rem; }
.film-game-score-row { justify-content: space-between; }
.film-game-member { text-decoration: none !important; }
.film-game-member > span { display: grid; gap: .2rem; justify-items: start; }
.film-game-member strong { color: var(--color-ms-ink, #f5f2ff); overflow-wrap: anywhere; }
.film-game-avatar { flex: none; width: 44px; height: 44px; border-radius: .55rem; object-fit: cover; }
.film-game-score-value { display: grid; text-align: right; }
.film-game-score-value strong { font-size: 1.25rem; }
.film-game-tile {
    --tile-accent: #91e6db;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--tile-accent) 40%, #322441);
    border-radius: 1rem;
    color: #f5f2ff;
    background: var(--color-ms-panel, #1b172b);
    transition: background-color .2s ease, border-color .2s ease;
}
.film-game-tile:hover {
    border-color: var(--tile-accent);
    background: var(--color-ms-elevated, #282039);
}
.film-game-tile-copy { display: grid; align-content: center; gap: .45rem; }
.film-game-tile-copy h2 { font-size: 1.5rem; }
.film-game-tile-copy p { max-width: 44ch; color: var(--color-ms-soft, #e1d9ef); }
@media (min-width: 640px) {
    .film-game-tile { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
    .film-game-tile-copy { padding-inline: 1rem; }
}
.film-game-tile-art {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: clamp(7rem, 15vw, 13rem);
    border-radius: .65rem;
    color: var(--tile-accent);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 850;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--tile-accent) 23%, #1b1427), #20182b 75%);
    text-shadow: 0 0 1.2rem color-mix(in srgb, var(--tile-accent) 45%, transparent);
}
.film-game-tile-art small { font-size: 1rem; }
.film-game-tile-art b { padding-inline: .25rem; border: 1px solid currentColor; border-radius: .3rem; font-size: .65em; }
.film-game-tile-cta { padding-top: .5rem; color: var(--tile-accent); font-weight: 750; }
.film-word-board { max-width: 56rem; margin-inline: auto; }
.film-word-grid { display: grid; gap: .45rem; margin-block: 1rem; }
.film-word-grid li, .film-word-chunk { display: flex; flex-wrap: wrap; gap: .2rem; }
.film-word-grid li { column-gap: .55rem; }
.film-word-cell {
    display: grid;
    place-items: center;
    width: clamp(1.15rem, 6vw, 2rem);
    aspect-ratio: 1;
    border: 1px solid #57486d;
    border-radius: .25rem;
    background: #242033;
    font-weight: 750;
}
.film-word-cell[data-state="absent"] { background: #3e384c; }
.film-word-cell[data-state="exact"] { background: #88dfd4; color: #181226; }
.film-word-cell[data-state="present"] { background: #ffca84; color: #181226; }
.film-word-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.film-word-form label { flex-basis: 100%; }
.film-word-form input, .film-word-form button {
    min-height: 2.75rem;
    padding: .45rem .7rem;
    border: 1px solid #8276ad;
    border-radius: .45rem;
}
.film-word-form input { min-width: 0; width: min(100%, 20rem); background: #242033; color: #f5f2ff; }
.film-word-form button { background: linear-gradient(112deg, #9ae9e4, #d0b6ff); color: #181226; font-weight: 700; }
.film-word-board [data-word-finish] a { text-decoration: underline; }
.film-game-note { margin-top: 1rem; color: #d0c7e2; font-size: .825rem; }
@keyframes film-game-reveal {
    from { opacity: 0; transform: translateY(.35rem); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes film-game-win {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.012); box-shadow: 0 0 2.1rem #88dfd47a; }
}
@media (min-width: 1024px) {
    .film-game { max-width: 77rem; }
    .film-game-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem; }
    .film-game-versus {
        position: absolute;
        z-index: 1;
        top: 46%;
        left: 50%;
        display: grid;
        place-items: center;
        width: 3.4rem;
        aspect-ratio: 1;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        background: linear-gradient(130deg, #9ae9e4, #c2a4ff);
        color: #181226;
        box-shadow: 0 0 1.6rem #b391ff54;
        font-size: 1.2rem;
        font-weight: 800;
        pointer-events: none;
    }
    .film-game-card { padding: .65rem; }
    .film-game-art { background: radial-gradient(ellipse, #44345c, #201a30 75%); border-radius: .5rem; }
    .film-game-poster { height: clamp(300px, 46vh, 480px); object-fit: contain; background: transparent; }
    .film-game-title { font-size: 1.35rem; }
    .film-game-budget { inset-inline: 10%; font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .film-game-budget, .film-game-card[data-correct] { animation: none; }
    .film-game--budget .film-game-card[data-correct] .film-game-art::after { display: none; }
    .film-game-tile { transition: none; }
}
