/* Watchlist: a swipe deck of film cards on the shared paper, like a stack of lobby cards. */

.wl-stage { max-width: 1060px; padding-top: 34px; display: flex; flex-direction: column; align-items: center; padding-bottom: 28px; }

.wl-count { font-family: var(--font-type); margin: 16px 0 0; font-size: 0.95rem; text-align: center; }

.wl-deck { position: relative; width: min(330px, 86vw); height: min(470px, calc(100vh - 330px)); min-height: 340px; margin-bottom: 28px; }
/* the card is a holder; its two faces are the actual paper, so a flip turns the whole card over */
.wl-card {
  position: absolute; inset: 0; perspective: 1200px;
  touch-action: none; user-select: none; cursor: grab;
  transform: rotate(-1deg);
}
.wl-card.under { transform: rotate(2.5deg) scale(0.96) translateY(8px); cursor: default; }
.wl-card.under .wl-front > * { opacity: 0.45; }   /* fade what's printed on the card underneath (never its swipe stamps) */
.wl-card.fly { transition: transform 0.3s ease, opacity 0.3s ease; }

.wl-pic {
  flex: 1; min-height: 0; width: 100%; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  background-image: radial-gradient(rgba(28, 23, 23, 0.16) 30%, transparent 33%); background-size: 8px 8px;
}
.wl-pic.has-img { background: none; }
.wl-pic img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 3px 4px 0 var(--shadow); pointer-events: none; }
.wl-pic-note { font-family: var(--font-type); font-size: 0.85rem; opacity: 0.7; }

.wl-title { font-family: 'Archivo Black', sans-serif; font-size: clamp(1.15rem, 5vw, 1.45rem); line-height: 1.12; }
.wl-meta { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.wl-year { font-family: var(--font-hand); font-size: 1.5rem; color: var(--ink-1); }
.wl-meta .strip { font-size: 0.7rem; }

.wl-mark {
  position: absolute; z-index: 2; top: 22px;
  font-family: 'Archivo Black', sans-serif; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 12px; border: 4px solid currentColor; background: rgba(247, 241, 227, 0.8);
  box-shadow: inset 0 0 0 2px rgba(247, 241, 227, 0.8), inset 0 0 0 4px currentColor;
  opacity: 0; pointer-events: none;
  /* worn rubber-stamp ink: speckled where the stamp didn't take */
  -webkit-mask-image: linear-gradient(#000, #000), var(--noise);
  -webkit-mask-composite: source-out;
  mask-image: linear-gradient(#000, #000), var(--noise);
  mask-composite: subtract;
}
.wl-mark.want { left: 18px; color: var(--ink-1); transform: rotate(-12deg); }
.wl-mark.no { right: 18px; color: var(--ink-2); transform: rotate(12deg); }
.wl-mark.seen { left: 50%; top: 40%; color: #2f7a4b; transform: translateX(-50%) rotate(-4deg); }

.wl-controls { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; justify-content: center; align-items: center; }
body[data-game="watchlist"] .wl-controls .btn { font-size: 1.05rem; padding: 11px 15px 9px; }


.wl-done { width: min(520px, 92vw); text-align: center; }
.wl-done h2 { font-family: var(--font-cut); font-size: 2rem; margin: 0 0 8px; }
@media (max-width: 520px) {
  body[data-game="watchlist"] .wl-controls .btn { font-size: 0.85rem; padding: 11px 12px 9px; }
}

/* undo sits first in the button row, right by Not for me */
body[data-game="watchlist"] .wl-controls .btn.wl-undo { padding: 10px 14px 8px; font-size: 1.25rem; line-height: 1; }
body[data-game="watchlist"] .wl-controls .btn.wl-undo[disabled] { opacity: 0.35; }

/* ---------- three columns: how-to card · deck · your list ---------- */
.wl-layout { width: 100%; display: grid; grid-template-columns: 1fr minmax(440px, 480px) 1fr; gap: 24px; align-items: start; }
.wl-middle { display: flex; flex-direction: column; align-items: center; }
.wl-side { position: relative; margin-top: 26px; }
.wl-side-title { font-family: 'Archivo Black', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; margin: 0 0 10px; }
.wl-side-fine { font-family: var(--font-type); font-size: 0.8rem; margin: 10px 0 0; opacity: 0.8; }

/* left: a taped index card */
.wl-howcard {
  justify-self: end; width: 230px; padding: 22px 18px 16px;
  background-color: #fffaf0;
  background-image: linear-gradient(transparent 50px, rgba(215, 38, 46, 0.45) 50px 52px, transparent 52px), repeating-linear-gradient(transparent 0 25px, rgba(60, 110, 160, 0.18) 25px 26px);
  background-position: 0 0, 0 52px;
  background-size: auto, 100% 100%;
  background-repeat: no-repeat;   /* the blue rules start under the red line, not above it */
  box-shadow: 3px 5px 0 var(--shadow);
  transform: rotate(-2deg);
}
.wl-howcard .tape.top { top: -13px; }
.wl-moves { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.wl-moves li { display: flex; align-items: center; gap: 10px; }
.wl-arrow { flex: none; width: 38px; height: 38px; display: grid; place-items: center; font-family: 'Archivo Black', sans-serif; font-size: 1.3rem; border: 3px solid currentColor; border-radius: 50%; transform: rotate(-6deg); }
.wl-moves li.want .wl-arrow { color: var(--ink-1); }
.wl-moves li.seen .wl-arrow { color: var(--ink-2); }
.wl-moves li.no .wl-arrow { color: var(--ink-2); opacity: 0.6; border-style: dashed; }
.wl-move { display: flex; flex-direction: column; line-height: 1.15; }
.wl-move b { font-family: var(--font-hand); font-weight: normal; font-size: 1.25rem; }

/* right: a yellow legal pad that fills in as you sort */
.wl-pad {
  justify-self: start; width: 270px; padding: 28px 18px 14px 40px; line-height: 28px;
  background-color: #f6e9a8;
  background-image:
    linear-gradient(90deg, transparent 28px, rgba(215, 38, 46, 0.5) 28px 30px, transparent 30px),
    repeating-linear-gradient(transparent 0 27px, rgba(60, 110, 160, 0.3) 27px 28px);
  box-shadow: 3px 5px 0 var(--shadow);
  transform: rotate(1.5deg);
}
.wl-pad-top { position: absolute; left: 0; right: 0; top: 0; height: 12px; background: #8f2f2a; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); }
.wl-pad .wl-side-title { display: flex; align-items: baseline; gap: 8px; margin: 0; height: 28px; line-height: 32px; }
.wl-pad .wl-side-title .n { font-family: var(--font-hand); font-size: 1.6rem; line-height: 32px; color: var(--ink-1); letter-spacing: 0; }.wl-pad-lines { list-style: none; margin: 0; padding: 0; min-height: 112px; }
.wl-pad-lines li { display: flex; align-items: baseline; gap: 7px; height: 28px; line-height: 32px; font-family: var(--font-hand); font-size: 1.12rem; white-space: nowrap; }
.wl-pad-lines .mk { flex: none; width: 14px; color: var(--ink-1); }
.wl-pad-lines li.seen .mk { color: var(--ink-2); }
.wl-pad-lines .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wl-pad-lines .y { flex: none; font-size: 0.9rem; opacity: 0.6; }
.wl-pad-lines li.empty, .wl-pad-lines li.more { opacity: 0.55; font-size: 1rem; }
.wl-pad-lines li.fresh .t { animation: write-in 0.6s steps(14) both; }
@keyframes write-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.wl-pad-save { margin: 0; }
.wl-pad-save .wl-how-title { font-family: var(--font-hand); font-size: 1.12rem; color: var(--ink-1); white-space: nowrap; margin: 0; height: 28px; line-height: 32px; letter-spacing: 0; text-transform: none; }
body[data-game="watchlist"] .wl-pad-save .btn { font-size: 0.86rem; padding: 6px 13px 5px; vertical-align: 1px; }
.wl-steps { margin: 0; padding-left: 18px; font-family: var(--font-type); font-size: 0.78rem; line-height: 28px; }
.wl-steps li { line-height: 28px; }
.wl-pad-save .link-btn { font-size: 0.78rem; padding: 0; opacity: 0.75; }

/* narrower screens: deck first, then the pad, then the how-to card */
@media (max-width: 1000px) {
  .wl-layout { grid-template-columns: 1fr; gap: 26px; justify-items: center; }
  .wl-middle { order: 1; }
  .wl-pad { order: 2; justify-self: center; width: min(360px, 92vw); }
  .wl-howcard { order: 3; justify-self: center; width: min(360px, 92vw); }
}

/* Start over sits under the how-to card */
.wl-left { justify-self: end; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.wl-left .wl-howcard { justify-self: auto; }
.wl-reset { color: var(--paper); font-size: 0.85rem; white-space: nowrap; }
@media (max-width: 1000px) { .wl-left { order: 3; justify-self: center; } }

/* ---------- the picture house backdrop (cut paper) ---------- */
/* the walls: desaturated navy fuzzy paper, warm light spilling from the screen above */
body[data-game="watchlist"] {
  background-color: #171d36;
  /* plain noise grain on navy (no fibre stripes) */
  background-image: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(255, 224, 170, 0.14), transparent 70%), var(--noise);
  background-attachment: fixed;
}
/* no red over-inked corner from Paper Cuts here */
body[data-game="watchlist"]::before { display: none; }
.wl-theatre { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body[data-game="watchlist"] .topbar, body[data-game="watchlist"] .stage { position: relative; z-index: 2; }
body[data-game="watchlist"] .topbar { position: sticky; }
/* curtains: layered paper folds, tied back */
.wl-curtain { position: absolute; top: -10px; height: calc(100% + 10px); width: clamp(64px, 12vw, 210px); overflow: visible; }
.wl-curtain.left { left: 0; }
.wl-curtain.right { right: 0; transform: scaleX(-1); }
/* two rows of navy paper seats seen from behind (we face the screen with them); the same width, the row
   closest to us standing taller and offset by exactly half a seat; both run off the bottom of the page */
.wl-seats { position: absolute; left: 0; right: 0; background-repeat: repeat-x; background-size: 170px auto; filter: drop-shadow(0 0 4px rgba(18, 7, 8, 0.65)) drop-shadow(2px 2px 1px rgba(18, 7, 8, 0.3)); }
.wl-seats.back { height: 200px; bottom: -85px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='200'%3E%3Cdefs%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.06' numOctaves='2' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='4' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Cfilter id='a' x='-40%25' y='-20%25' width='180%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.06' numOctaves='2' seed='5' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='4' xChannelSelector='R' yChannelSelector='G' result='d'/%3E%3CfeDropShadow in='d' dx='0' dy='0' stdDeviation='2.6' flood-color='%23120708' flood-opacity='.6'/%3E%3C/filter%3E%3Cpattern id='r' width='10' height='6.8' patternUnits='userSpaceOnUse'%3E%3Crect width='10' height='2.58' fill='%23000' opacity='.09'/%3E%3Crect y='2.58' width='10' height='1' fill='%23fff' opacity='.04'/%3E%3C/pattern%3E%3C/defs%3E%3Cg filter='url(%23c)'%3E%3Cpath d='M18 210 V44 C18 14 30 8 54 8 H116 C140 8 152 14 152 44 V210 Z' fill='%23121a33' transform='translate(5 3)'/%3E%3Cpath d='M18 210 V44 C18 14 30 8 54 8 H116 C140 8 152 14 152 44 V210 Z' fill='%2324315a'/%3E%3Cpath d='M25 210 V50 C25 26 34 20 56 20 H114 C136 20 145 26 145 50 V210 Z' fill='%231b2546'/%3E%3Cpath d='M25 210 V50 C25 26 34 20 56 20 H114 C136 20 145 26 145 50 V210 Z' fill='url(%23r)'/%3E%3C/g%3E%3C/svg%3E"); background-position: 0 0; }
.wl-seats.front { height: 240px; bottom: -90px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='240'%3E%3Cdefs%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.06' numOctaves='2' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='4' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Cfilter id='a' x='-40%25' y='-20%25' width='180%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.06' numOctaves='2' seed='5' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='4' xChannelSelector='R' yChannelSelector='G' result='d'/%3E%3CfeDropShadow in='d' dx='0' dy='0' stdDeviation='2.6' flood-color='%23120708' flood-opacity='.6'/%3E%3C/filter%3E%3Cpattern id='r' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Crect width='10' height='3.80' fill='%23000' opacity='.09'/%3E%3Crect y='3.80' width='10' height='1' fill='%23fff' opacity='.04'/%3E%3C/pattern%3E%3C/defs%3E%3Cg filter='url(%23c)'%3E%3Cpath d='M18 250 V44 C18 14 30 8 54 8 H116 C140 8 152 14 152 44 V250 Z' fill='%23121a33' transform='translate(5 3)'/%3E%3Cpath d='M18 250 V44 C18 14 30 8 54 8 H116 C140 8 152 14 152 44 V250 Z' fill='%2324315a'/%3E%3Cpath d='M25 250 V50 C25 26 34 20 56 20 H114 C136 20 145 26 145 50 V250 Z' fill='%231b2546'/%3E%3Cpath d='M25 250 V50 C25 26 34 20 56 20 H114 C136 20 145 26 145 50 V250 Z' fill='url(%23r)'/%3E%3C/g%3E%3Cg filter='url(%23a)'%3E%3Crect x='-18' y='122' width='36' height='250' rx='7' fill='%231b2343'/%3E%3C/g%3E%3Cg filter='url(%23a)'%3E%3Crect x='152' y='122' width='36' height='250' rx='7' fill='%231b2343'/%3E%3C/g%3E%3C/svg%3E"); background-position: 85px 0; }
/* text that sits straight on the dark backdrop goes light */
body[data-game="watchlist"] .wl-count { color: var(--paper); }
body[data-game="watchlist"] .icon-btn svg { stroke: var(--paper); }
body[data-game="watchlist"] .icon-btn:hover { background: rgba(241, 234, 216, 0.12); }
body[data-game="watchlist"] .topbar { border-bottom-color: rgba(241, 234, 216, 0.45); }
body[data-game="watchlist"] .game-tab:not(.active) { opacity: 0.75; }
body[data-game="watchlist"] .game-tab:not(.active):hover, body[data-game="watchlist"] .game-tab:not(.active):focus-visible { opacity: 1; filter: none; }
body[data-game="watchlist"] .stage { padding-bottom: 170px; }

.nowrap { white-space: nowrap; }

/* the valance: a scalloped paper pelmet across the top, joining the two curtains */
.wl-valance {
  position: absolute; left: 0; right: 0; top: 0; height: 112px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='112'%3E%3Cdefs%3E%3Cfilter id='c' x='-5%25' y='-5%25' width='110%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.06' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='4' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Cpattern id='r' width='8' height='10' patternUnits='userSpaceOnUse'%3E%3Crect width='3' height='10' fill='%23000' opacity='.14'/%3E%3Crect x='3' width='1' height='10' fill='%23fff' opacity='.06'/%3E%3C/pattern%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23000' stop-opacity='0'/%3E%3Cstop offset='.8' stop-color='%23000' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.3'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg filter='url(%23c)'%3E%3Cpath d='M-2 0 H66 V82 C66 102 50 108 32 108 C14 108 -2 102 -2 82 Z' fill='%238a1a20'/%3E%3Cpath d='M-2 0 H66 V82 C66 102 50 108 32 108 C14 108 -2 102 -2 82 Z' fill='url(%23r)'/%3E%3Crect x='-2' y='0' width='68' height='76' fill='%23a8242b'/%3E%3Crect x='-2' y='0' width='68' height='76' fill='url(%23r)'/%3E%3Crect x='-2' y='0' width='68' height='76' fill='url(%23s)'/%3E%3Crect x='-2' y='72' width='68' height='6' fill='%23d9a441'/%3E%3Crect x='-2' y='72' width='68' height='1.5' fill='%23f6d688'/%3E%3Crect x='-2' y='76.5' width='68' height='1.5' fill='%238a5f1c'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 64px 112px repeat-x;
  filter: drop-shadow(0 0 4px rgba(18, 7, 8, 0.65)) drop-shadow(2px 2px 1px rgba(18, 7, 8, 0.3));
}
/* the curtains hang from under the valance */
.wl-curtain { top: 70px; height: calc(100% - 70px); }

/* step 1 is the copy button: keep its row exactly one rule tall so the steps below stay on the lines */
.wl-steps li:first-child { height: 28px; }
.wl-steps li:first-child .btn-wrap { vertical-align: middle; line-height: 1; }
body[data-game="watchlist"] .wl-steps .btn { line-height: 1; }
/* no dotted cut line or scissors on the Watchlist: the valance trim takes its place */
body[data-game="watchlist"] .topbar { border-bottom-color: transparent; }
body[data-game="watchlist"] .topbar::after { display: none; }

/* ---------- flip a card to see its Case Files tags ---------- */
.wl-inner { position: absolute; inset: 0; transition: transform 0.55s cubic-bezier(.4, .1, .2, 1); transform-style: preserve-3d; }
.wl-card.flipped .wl-inner { transform: rotateY(180deg); }
.wl-face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 14px 14px 12px;
  background-color: var(--paper-card); background-image: var(--fibers-soft);
  box-shadow: 0 8px 18px rgba(12, 6, 10, 0.4), inset 0 0 0 2px rgba(28, 23, 23, 0.1);   /* a soft, blurry shadow */
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.wl-back { transform: rotateY(180deg); align-items: stretch; text-align: left; overflow: hidden; padding-bottom: 58px; }   /* room at the bottom for the circle */
.wl-back-title { font-family: 'Archivo Black', sans-serif; font-size: 1rem; line-height: 1.2; margin: 2px 0 8px; }
.wl-back-title b { font-weight: normal; }
.wl-back-label { font-family: 'Archivo Black', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.68rem; margin: 0 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--ink-2); }
.wl-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.wl-tags li {
  position: relative; font-family: var(--font-type); font-size: 0.74rem; line-height: 1.2; padding: 3px 7px 2px 15px;
  background: #fffaf0; box-shadow: inset 0 0 0 1.5px rgba(28, 23, 23, 0.55), 1.5px 1.5px 0 var(--shadow);
}
.wl-tags li::before { content: ''; position: absolute; left: 6px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--ink-1); }
/* the subgenre leads the tags as a black tag, in the same typewriter font as the rest */
.wl-tags li.sub { background: var(--ink-2); color: var(--paper-card); padding-left: 8px; box-shadow: 1.5px 1.5px 0 var(--shadow); }
.wl-tags li.sub::before, .wl-tags li.more::before { display: none; }
.wl-tags li.more { padding: 3px 4px 2px; background: none; box-shadow: none; font-style: italic; opacity: 0.7; }
/* the "i": a wobbly cut-out paper circle sitting over the poster's top-right corner */
.wl-info {
  position: absolute; z-index: 4; bottom: 12px; right: 12px; width: 38px; height: 38px; padding: 0; border: 0; cursor: pointer;   /* bottom-right: on the card, off the poster */
  display: grid; place-items: center;
  font-family: 'Abril Fatface', Georgia, serif; font-size: 1.25rem; line-height: 1; color: var(--paper-card);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 2.5 C26 2 31.5 4.8 34.6 9.4 C37.6 13.6 38.2 18.4 37.4 22.8 C36.5 28.1 33 32.6 28.4 35.2 C23.6 37.9 17.6 38.1 12.8 35.7 C7.9 33.3 4.2 28.6 3 23.4 C1.9 18.6 2.8 13.4 6 9.3 C9.2 5.2 14.1 2.8 20 2.5 Z' fill='%23d7262e'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 3px rgba(12, 6, 10, 0.35));
  transform: rotate(-8deg); transition: transform 0.15s ease;
}
.wl-info:hover { transform: rotate(4deg) scale(1.06); }
.wl-back .wl-info { font-family: 'Archivo Black', sans-serif; font-size: 1.15rem; transform: rotate(8deg); }

/* keep a long title clear of the circle in the bottom-right corner */
.wl-front .wl-title, .wl-front .wl-meta { padding: 0 40px; }

/* front: the subgenre is a paper strip pinned across the top of the card, over the poster's corner */
.wl-front .wl-sub { position: absolute; z-index: 3; top: 20px; left: -6px; white-space: nowrap; line-height: 1.1; transform: rotate(-3deg); box-shadow: 0 2px 4px rgba(12, 6, 10, 0.3); }
body[data-game="watchlist"] .wl-front .wl-sub { font-size: 0.92rem; padding: 5px 11px 3px; }

/* phones: a shallower valance and less air under the nav, so the card sits right under the pelmet */
@media (max-width: 560px) {
  .wl-valance { height: 78px; background-size: 46px 80px; }
  .wl-curtain { top: 48px; height: calc(100% - 48px); }
  body[data-game="watchlist"] .topbar { margin-bottom: 12px; }
  .wl-stage { padding-top: 26px; }
}

/* ---------- depth, like the Séance board ---------- */
/* a card has thickness: faces sit a hair apart, a paper edge shows along the bottom, the sides show while it turns */
.wl-card { perspective: 1100px; }
.wl-front { transform: translateZ(2.5px); }
.wl-back { transform: rotateY(180deg) translateZ(2.5px) !important; }
.wl-face { box-shadow: 0 3px 0 #cfc3a6, 0 4px 0 rgba(28, 23, 23, 0.25), 0 12px 20px rgba(12, 6, 10, 0.4), inset 0 0 0 2px rgba(28, 23, 23, 0.1); }
.wl-edge { position: absolute; top: 2%; bottom: 2%; width: 3px; margin-left: -1.5px; background: #d8ccb0; opacity: 0; transform: rotateY(90deg); }
.wl-edge.left { left: 0; }
.wl-edge.right { left: 100%; }
.wl-card.lifting .wl-edge { opacity: 1; }
/* turning over: it lifts off the deck towards you, tilts a little, and settles */
.wl-card.lifting .wl-inner { animation: wl-lift 0.8s cubic-bezier(.45, .05, .35, 1); }
@keyframes wl-lift {
  0% { translate: 0 0 0; }
  45% { translate: 0 -10px 70px; }
  85% { translate: 0 0 6px; }
  100% { translate: 0 0 0; }
}
/* while dragged it's held up off the deck, its shadow wider and softer */
.wl-card.dragging .wl-face { box-shadow: 0 3px 0 #cfc3a6, 0 4px 0 rgba(28, 23, 23, 0.25), 0 26px 36px rgba(12, 6, 10, 0.5), inset 0 0 0 2px rgba(28, 23, 23, 0.1); }
/* the rest of the pile peeking out under the deck */
.wl-deck { isolation: isolate; }
.wl-deck::before, .wl-deck::after {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--paper-card); background-image: var(--fibers-soft);
  box-shadow: 0 3px 0 #cfc3a6, 0 8px 16px rgba(12, 6, 10, 0.35);
}
.wl-deck::before { transform: rotate(-3deg) translate(-6px, 12px); }
.wl-deck::after { transform: rotate(4deg) translate(5px, 16px) scale(0.97); }
/* the index card and notepad have paper thickness too */
.wl-howcard, .wl-pad { box-shadow: 0 3px 0 rgba(150, 136, 104, 0.9), 0 4px 0 rgba(28, 23, 23, 0.25), 0 12px 20px rgba(12, 6, 10, 0.4); }

/* tune: a thinner paper edge, the pile tucked closer under the deck, the buttons a little lower */
.wl-front { transform: translateZ(1.5px); }
.wl-back { transform: rotateY(180deg) translateZ(1.5px) !important; }
.wl-face { box-shadow: 0 1.5px 0 #cfc3a6, 0 2.5px 0 rgba(28, 23, 23, 0.2), 0 12px 20px rgba(12, 6, 10, 0.4), inset 0 0 0 2px rgba(28, 23, 23, 0.1); }
.wl-card.dragging .wl-face { box-shadow: 0 1.5px 0 #cfc3a6, 0 2.5px 0 rgba(28, 23, 23, 0.2), 0 26px 36px rgba(12, 6, 10, 0.5), inset 0 0 0 2px rgba(28, 23, 23, 0.1); }
.wl-deck::before { transform: rotate(-2.5deg) translate(-5px, 5px); box-shadow: 0 1.5px 0 #cfc3a6, 0 8px 16px rgba(12, 6, 10, 0.35); }
.wl-deck::after { transform: rotate(3deg) translate(4px, 7px) scale(0.98); box-shadow: 0 1.5px 0 #cfc3a6, 0 8px 16px rgba(12, 6, 10, 0.35); }
.wl-deck { margin-bottom: 40px; }
.wl-howcard, .wl-pad { box-shadow: 0 2px 0 rgba(150, 136, 104, 0.9), 0 3px 0 rgba(28, 23, 23, 0.2), 0 12px 20px rgba(12, 6, 10, 0.4); }
/* swipe stamps: solid ink with only a few specks where the stamp didn't take */
.wl-mark {
  --speck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 0 0 0 -5.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(#000, #000), var(--speck); mask-image: linear-gradient(#000, #000), var(--speck);
  background: rgba(247, 241, 227, 0.92);
}
/* the seats: the row in front casts a shadow up onto the row behind */
.wl-seats.front { filter: drop-shadow(0 -6px 8px rgba(8, 4, 6, 0.55)) drop-shadow(2px 2px 1px rgba(18, 7, 8, 0.3)); }

/* ---------- the back wall: painted cardboard ---------- */
/* big flattened boxes standing side by side, rollered navy: the flutes show through as soft vertical ribs,
   with a darker seam where two sheets butt together, taped over with brown packing tape */
.wl-wall {
  position: absolute; inset: 0; overflow: hidden;
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0 2px, rgba(255, 255, 255, 0.05) 2px 3px, transparent 3px calc(33.34vw - 1px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 4px, rgba(0, 0, 0, 0.06) 4px 9px),
    radial-gradient(ellipse 30vw 40vh at 22% 70%, rgba(255, 255, 255, 0.025), transparent 70%),
    radial-gradient(ellipse 26vw 34vh at 78% 30%, rgba(0, 0, 0, 0.12), transparent 70%);
  background-position: 33.3vw 0, 0 0, 0 0, 0 0;
}
/* brown packing tape over the seams, its ends torn */
/* old box printing, painted over: you can just make it out through the navy */
/* a shipping label someone painted over but didn't peel off: lighter where the paint sat on the glossy paper */
/* torn patches: the painted top layer ripped away, showing the raw brown flutes underneath */
/* the valance is painted card too: a raw corrugated edge along the bottom of its gold trim */
.wl-valance::after {
  content: ''; position: absolute; left: 0; right: 0; top: 76px; height: 4px;
  background: repeating-linear-gradient(90deg, #6a4a28 0 2px, #b48c5c 2px 4px);
  opacity: 0.7;
}
@media (max-width: 560px) {
  .wl-valance::after { top: 52px; height: 3px; }}

/* tune: quieter tape, ribs a touch stronger, and the old printing moved where it isn't hidden behind the side cards */.wl-wall { background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0 2px, rgba(255, 255, 255, 0.05) 2px 3px, transparent 3px calc(33.34vw - 1px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 4px, rgba(0, 0, 0, 0.09) 4px 9px),
    radial-gradient(ellipse 30vw 40vh at 22% 70%, rgba(255, 255, 255, 0.025), transparent 70%),
    radial-gradient(ellipse 26vw 34vh at 78% 30%, rgba(0, 0, 0, 0.12), transparent 70%); }
/* ---------- backdrop, round two ---------- */
/* no torn patches, no corrugated strip under the valance trim */
.wl-valance::after { display: none; }
/* the old box printing: smaller, and only as faint as the fluting on the chairs *//* packing tape: a narrow, glossy, see-through strip with crimped cut ends and a sheen down one side *//* the Canada Post label *//* a dragged card passes over the side cards, never under the notepad */
.wl-middle { position: relative; z-index: 2; }
/* box prints a touch stronger than round two, to match the fluting on the chairs */
/* ---------- backdrop, round three ---------- */
/* FRAGILE higher and further left *//* the tie-backs sit over the curtains where they gather, unstretched (the drape itself stretches to fit) */
.wl-tie { position: absolute; z-index: 1; width: calc(clamp(64px, 12vw, 210px) * 0.62); height: auto; aspect-ratio: 130 / 150; overflow: visible;
  top: calc(70px + (100% - 70px) * 0.548); }
.wl-tie.left { left: calc(clamp(64px, 12vw, 210px) * 0.06); }
.wl-tie.right { right: calc(clamp(64px, 12vw, 210px) * 0.06); transform: scaleX(-1); }
@media (max-width: 560px) { .wl-tie { top: calc(48px + (100% - 48px) * 0.548); } }

/* the whole theatre sits darker, so it never competes with the cards and notepads on top */
.wl-theatre { filter: brightness(0.68) saturate(0.9); }
body[data-game="watchlist"] { background-color: #10152a; }
/* tie-backs shifted out toward the wall side of each curtain */
.wl-tie.left { left: calc(clamp(64px, 12vw, 210px) * -0.1); }
.wl-tie.right { right: calc(clamp(64px, 12vw, 210px) * -0.1); }
/* the right tie-back's tassel has its own cuts, so the pair isn't a mirror copy */
.wl-tie.right { --wl-cuts-a: none; --wl-cuts-b: inline; }

/* the theatre: darker still, but richer in colour */
.wl-theatre { filter: brightness(0.6) saturate(1.2); }
body[data-game="watchlist"] { background-color: #0d1230; }

/* the wall's two board seams: the left one further left, the right one where it was */
.wl-wall { background-image:
    linear-gradient(90deg, transparent 22vw, rgba(0, 0, 0, 0.32) 22vw calc(22vw + 2px), rgba(255, 255, 255, 0.05) calc(22vw + 2px) calc(22vw + 3px), transparent calc(22vw + 3px)),
    linear-gradient(90deg, transparent 66.67vw, rgba(0, 0, 0, 0.32) 66.67vw calc(66.67vw + 2px), rgba(255, 255, 255, 0.05) calc(66.67vw + 2px) calc(66.67vw + 3px), transparent calc(66.67vw + 3px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 4px, rgba(0, 0, 0, 0.09) 4px 9px),
    radial-gradient(ellipse 30vw 40vh at 22% 70%, rgba(255, 255, 255, 0.025), transparent 70%),
    radial-gradient(ellipse 26vw 34vh at 78% 30%, rgba(0, 0, 0, 0.12), transparent 70%);
  background-position: 0 0; }

/* modern, wider seats: the same drawing stretched 35% wider (the rows keep their height) */
.wl-seats.back { background-size: 230px 200px; }
.wl-seats.front { background-size: 230px 240px; background-position: 115px 0; }

/* the TMDB credit, small at the foot of the page (their terms: their logo, less prominent than ours, and this notice) */
.wl-credit { max-width: 520px; margin: 0 auto 26px; padding: 0 16px; text-align: center; font: 0.72rem/1.5 var(--font-type); opacity: .75; }
.wl-credit img { height: 10px; width: auto; vertical-align: -1px; margin-right: 4px; }
.wl-credit { position: relative; z-index: 2; color: #eadfc8; opacity: .8; }
.wl-credit a { color: inherit; }
/* the TMDB credit on one line (it may wrap only on a phone), above the theatre seats, in light ink */
.wl-credit { max-width: none; white-space: nowrap; z-index: 20; color: #f1e7d2; opacity: .85; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
@media (max-width: 700px) { .wl-credit { white-space: normal; max-width: 420px; } }
.wl-credit { color: #d4d6dc; }   /* light grey, not cream */
