.dw-pref-dialog {
    --pref-gold: #ffdf85;
    --pref-muted: #e2d1eb;
    width: min(792px, calc(100% - 28px));
    max-width: none;
    max-height: calc(100dvh - 28px);
    padding: 0;
    border: 1px solid #ecc16d;
    border-radius: 24px;
    color: #fff4fb;
    background: radial-gradient(ellipse at 83% 51%, #824766, transparent 61%), linear-gradient(132deg,#39213f,#271936 68%);
    box-shadow: 0 22px 66px #06020ec4, inset 0 0 0 4px #af794f48, 0 0 32px #e8ad8657;
    overflow: auto;
    overscroll-behavior: contain;
}
.dw-pref-dialog::backdrop { background: #100a1db0; }
.dw-pref-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1.08fr) minmax(0,.82fr);
    align-items: center;
    gap: 22px;
    padding: 36px 34px 52px;
}
.dw-pref-content { min-width: 0; }
.dw-pref-brand { display: block; width: min(185px, 75%); height: auto; margin-bottom: 12px; }
.dw-pref-dialog h2 { margin: 0; color: #fff4fb; font: 600 clamp(1.65rem,4.4vw,2.45rem)/1.04 var(--font,system-ui,sans-serif); letter-spacing: -.04em; }
.dw-pref-intro { margin: 8px 0 17px; color: var(--pref-muted); font-size: .94rem; line-height: 1.45; }
.dw-pref-note { margin: 8px 0 0; color: var(--pref-muted); font-size: .77rem; }
.dw-pref-close { position: absolute; z-index: 3; top: 8px; right: 8px; width: 44px; height: 44px; border: 1px solid #fff4; border-radius: 10px; background: #1d122a; color: #fff1fb; font: 26px/1 system-ui,sans-serif; cursor: pointer; }
.dw-pref-form { display: grid; min-width: 0; gap: 11px; --pref-gold:#ffdf85; --pref-muted:#e2d1eb; }
.dw-pref-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.dw-pref-form legend { margin: 0 0 5px; padding: 0; font-size: .82rem; font-weight: 600; color: var(--pref-muted); }
.dw-pref-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.dw-pref-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 47px;
    padding: 6px 9px;
    border: 1px solid #ac87bd86;
    border-radius: 9px;
    background: #191123a8;
    color: #fff4fb;
    font-size: .88rem;
    line-height: 1.2;
    cursor: pointer;
}
.dw-pref-choice:has(input:checked) { border-color: var(--pref-gold); background: #493451; }
.dw-pref-choice::after { content: ''; width: 11px; height: 11px; flex: 0 0 auto; margin-left: auto; border-radius: 50%; border: 1px solid #d4b8e3ac; }
.dw-pref-choice:has(input:checked)::after { background: var(--pref-gold); border-color: var(--pref-gold); box-shadow: inset 0 0 0 3px #493451; }
.dw-pref-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dw-pref-choice:has(input:focus-visible), .dw-pref-card button:focus-visible, .dw-pref-page button:focus-visible { outline: 2px solid #bbffed; outline-offset: 3px; }
.dw-pref-token { flex: 0 0 24px; height: 17px; border-radius: 3px; box-shadow: inset 0 0 0 1px #ffe8eea1; }
.dw-pref-language { display: grid; place-items: center; box-shadow: inset 0 0 0 1px #b490cd96; background: #5a386f; color: #fff4fb; font-size: .68rem; font-weight: 600; }
.dw-pref-flag-nl { background: linear-gradient(#d93f52 33.3%,#fff 33.3% 66.7%,#3157a8 66.7%); }
.dw-pref-flag-be { background: linear-gradient(90deg,#201723 33.3%,#fbd16b 33.3% 66.7%,#e95161 66.7%); }
.dw-pref-country { display: grid; gap: 2px; }
.dw-pref-country span:last-child { color: #e1cde9; font-size: .75rem; }
.dw-pref-save { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 48px; border: 1px solid #ffefce; border-radius: 10px; padding: 8px 13px; color: #302119; background: linear-gradient(108deg,#ffdd81,#fff0fb); font: 600 .92rem/1.25 var(--font,system-ui,sans-serif); text-align: left; cursor: pointer; }
.dw-pref-save:disabled { opacity: .57; cursor: wait; }
.dw-pref-form .dw-pref-error { margin: 0; color: #ffe1e7; font-size: .84rem; }
.dw-pref-page { max-width: 570px; }

.filmnacht-menu-panel .dw-pref-menu-item { grid-column: 1 / -1; }
.filmnacht-menu-panel .dw-pref-menu-item > [data-shop-preferences-open] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 3px;
    overflow-wrap: normal;
}
.filmnacht-menu-panel .dw-pref-menu-item [lang="en"] { color: #e2d1eb; }
.filmnacht-menu-panel [data-language-option][aria-current="true"] { color: var(--film-mint); background: #493561; }

.dw-pref-art { position: relative; min-width: 0; display: grid; place-items: center; isolation: isolate; height: 324px; pointer-events: none; }
.dw-pref-art img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 7px 7px #0d071f8a); }
.dw-pref-halo { position: absolute; width: min(100%,253px); aspect-ratio: 1; border-radius: 50%; border: 2px solid #f5ca83c7; box-shadow: 0 0 17px #ffbf7da6,inset 0 0 29px #ffba7961; background: repeating-conic-gradient(from 14deg,#ffd49232 0deg 13deg,transparent 13deg 33deg),radial-gradient(#f0a36a40,transparent 70%); }
.dw-pref-sparks { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.dw-pref-sparks i { position: absolute; top: var(--y); left: var(--x); width: 20px; height: 22px; border-radius: 50%; border: 2px solid #ffe7a2; background: linear-gradient(135deg,#fff0a5,#ec9b43 57%,#b76d33); box-shadow: 0 0 10px #ffc7799a; }
.dw-pref-sparks i:nth-child(3n) { clip-path: polygon(50% 0,62% 37%,100% 50%,62% 63%,50% 100%,38% 63%,0 50%,38% 37%); border: 0; }
.dw-pref-sparks i:nth-child(1) { --x: 10%; --y: 22%; --dx: -23px; --dy: -34px; --delay: 0s; }
.dw-pref-sparks i:nth-child(2) { --x: 82%; --y: 17%; --dx: 22px; --dy: -30px; --delay: .16s; }
.dw-pref-sparks i:nth-child(3) { --x: 12%; --y: 67%; --dx: -30px; --dy: 18px; --delay: .24s; }
.dw-pref-sparks i:nth-child(4) { --x: 85%; --y: 66%; --dx: 19px; --dy: 18px; --delay: .1s; }
.dw-pref-sparks i:nth-child(5) { --x: 24%; --y: 9%; --dx: -10px; --dy: -28px; --delay: .28s; }
.dw-pref-sparks i:nth-child(6) { --x: 77%; --y: 46%; --dx: 29px; --dy: -13px; --delay: .12s; }
.dw-pref-sparks i:nth-child(7) { --x: 18%; --y: 81%; --dx: -23px; --dy: 11px; --delay: .22s; }
.dw-pref-sparks i:nth-child(8) { --x: 77%; --y: 80%; --dx: 26px; --dy: 19px; --delay: .06s; }
.dw-pref-dialog[open] .dw-pref-sparks i { animation: dw-pref-golden-spark 2.8s var(--delay) cubic-bezier(.24,.72,.31,1) infinite; }
.dw-pref-dialog[data-motion-paused] .dw-pref-sparks i { animation-play-state: paused; }
.dw-pref-motion { position: absolute; bottom: 5px; right: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 0; background: none; color: #f9e3b3; font: 400 .73rem/1.3 var(--font,system-ui,sans-serif); cursor: pointer; }
@keyframes dw-pref-golden-spark {
    0%, 46%, 100% { transform: none; }
    18% { transform: translate(var(--dx),var(--dy)) rotate(140deg) scale(1.2); }
    34% { transform: translate(4px,4px) rotate(290deg) scale(.86); }
}

@media (max-width: 650px) {
    .dw-pref-card { grid-template-columns: 1fr; gap: 9px; padding: 13px 14px 49px; }
    .dw-pref-art { grid-row: 1; height: 125px; width: min(100%, 218px); margin: auto; }
    .dw-pref-halo { width: 124px; }
    .dw-pref-sparks i { width: 13px; height: 14px; }
    .dw-pref-brand { width: 137px; margin-bottom: 7px; }
    .dw-pref-intro { font-size: .86rem; margin: 6px 0 12px; }
    .dw-pref-choice { padding: 6px; }
    .dw-pref-choice::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .dw-pref-dialog[open] .dw-pref-sparks i { animation: none; }
    .dw-pref-card { padding-bottom: 26px; }
    .dw-pref-motion { display: none; }
}
