@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #171311;
  --black: #0e0c0b;
  --cream: #f1eadc;
  --cream-2: #ded5c4;
  --muted: #a9a093;
  --tomato: #f14b35;
  --acid: #d9ff55;
  --wine: #39151a;
  --wine-2: #6a2024;
  --line: rgba(241, 234, 220, .18);
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html { background: #090807; }
body { margin: 0; min-width: 320px; background: #090807; color: var(--cream); font-family: var(--sans); }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

body::before,
body::after { display: none; }

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  max-width: 520px;
  margin: auto;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 90% 8%, rgba(241,75,53,.11), transparent 27%),
    var(--black);
  background-size: 100% 5px, auto, auto;
}

.screen { min-height: 100dvh; padding: calc(22px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.hidden { display: none !important; }
.masthead, .inside-header, .swipe-header { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 5; }
.brand { color: var(--cream); text-decoration: none; display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 22px; letter-spacing: .01em; }
.brand-mark { color: var(--tomato); font-family: var(--sans); font-size: 18px; }
.brand.small { font-size: 18px; }
.edition, .step-count { color: var(--muted); font: 500 9px/1 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.kicker { margin: 0; color: var(--cream-2); display: flex; align-items: center; gap: 9px; font: 600 9px/1.2 var(--mono); letter-spacing: .13em; }
.kicker > span { width: 24px; height: 1px; background: var(--tomato); }
.centered { display: block; text-align: center; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.035em; }
h1 { font-size: clamp(55px, 15vw, 76px); line-height: .83; }
h2 { font-size: 47px; line-height: .9; }
h1 em, h2 em { color: var(--tomato); font-weight: 400; }
.lede { color: var(--cream-2); font-size: 14px; line-height: 1.65; max-width: 390px; }

.welcome-screen { background: linear-gradient(155deg, transparent 55%, rgba(57,21,26,.33)); }
.welcome-copy { margin-top: clamp(64px, 11vh, 110px); position: relative; z-index: 2; }
.welcome-copy h1 { margin-top: 17px; }
.welcome-copy .lede { max-width: 365px; margin: 22px 0 0; }
.poster-stage { position: relative; height: clamp(210px, 30vh, 300px); margin: 6px -22px 0; overflow: hidden; }
.poster-card { position: absolute; width: 148px; height: 194px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); border: 1px solid rgba(0,0,0,.25); box-shadow: 0 22px 45px rgba(0,0,0,.4); }
.poster-card::after { content: ""; position: absolute; inset: 5px; border: 1px solid currentColor; opacity: .25; pointer-events: none; }
.poster-card > span, .poster-card small { position: relative; z-index: 1; font: 600 8px/1 var(--mono); letter-spacing: .12em; }
.poster-card b { position: relative; z-index: 1; font: 400 39px/.78 var(--display); letter-spacing: -.04em; }
.poster-back { left: 74px; top: 27px; transform: rotate(-8deg); background: var(--cream); }
.poster-front { right: 55px; top: 20px; transform: rotate(9deg); background: var(--tomato); }
.admit-stub { position: absolute; z-index: 3; left: 50%; bottom: 15px; transform: translateX(-50%) rotate(-2deg); width: 228px; padding: 11px 14px; background: var(--acid); color: #1b1d0f; border: 1px dashed #1b1d0f; font: 600 9px/1 var(--mono); letter-spacing: .11em; box-shadow: 0 12px 30px #0008; }
.admit-stub i { float: right; font-style: normal; }
.welcome-actions { margin-top: auto; display: grid; gap: 14px; }
.proof-line { display: flex; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line); color: var(--muted); font: 500 7px/1 var(--mono); letter-spacing: .08em; }

.button { width: 100%; border: 0; border-radius: 0; min-height: 59px; padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 800; }
.button b { font-size: 23px; line-height: 1; font-weight: 400; }
.primary { background: var(--tomato); color: #190e0b; border: 1px solid var(--tomato); box-shadow: 5px 5px 0 #7b271f; }
.primary:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #7b271f; }
.text-button { border: 0; background: transparent; color: var(--cream-2); padding: 7px; font-size: 12px; font-weight: 700; text-decoration: none; }
.back { width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); background: transparent; color: var(--cream); font-size: 19px; }
.inside-header .brand, .swipe-header .brand { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }

.setup-screen { background: linear-gradient(180deg, var(--wine) 0, var(--black) 400px); overflow-y: auto; }
.setup-copy { margin-top: 63px; }
.setup-copy h2 { margin: 15px 0 18px; font-size: 55px; }
.setup-copy > p:last-child { color: #c3b5ab; font-size: 13px; line-height: 1.55; max-width: 370px; }
.setup-form { margin: 26px -22px 0; border-top: 1px solid var(--line); }
.preference-block { margin: 0; padding: 25px 22px 27px; border: 0; border-bottom: 1px solid var(--line); }
.preference-block legend { padding: 0; color: var(--cream); font-size: 12px; font-weight: 800; }
.preference-block legend span { color: var(--tomato); margin-right: 9px; font: 600 9px/1 var(--mono); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.filter { border: 1px solid rgba(241,234,220,.24); background: transparent; color: #c9c0b4; padding: 10px 13px; font-size: 11px; font-weight: 700; }
.filter.active { color: var(--ink); background: var(--cream); border-color: var(--cream); }
.filter:disabled { opacity: .38; cursor: not-allowed; }
.filter-note { margin: 14px 0 0; color: var(--acid); font: 500 8px/1.5 var(--mono); letter-spacing: .04em; }
.service-filters .filter.active::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 7px; border-radius: 50%; background: var(--tomato); vertical-align: middle; }
.discovery-control { margin-top: 18px; display: grid; gap: 7px; }
.discovery-control button { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--cream); display: grid; grid-template-columns: 1fr 1.6fr; text-align: left; align-items: baseline; padding: 14px; }
.discovery-control button b { font-family: var(--display); font-size: 21px; font-weight: 400; }
.discovery-control button small { color: var(--muted); font-size: 10px; }
.discovery-control button.active { background: var(--acid); color: #191d0e; border-color: var(--acid); }
.discovery-control button.active small { color: #4e552b; }
.select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin-top: 18px; }
.select-grid label { display: grid; gap: 7px; color: var(--muted); font: 500 8px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.select-grid select { width: 100%; min-width: 0; appearance: none; background: #191614 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='none' stroke='%23f1eadc' d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--cream); border: 1px solid var(--line); border-radius: 0; padding: 14px 30px 14px 12px; font-family: var(--sans); font-size: 11px; font-weight: 700; text-transform: none; }
.algorithm-note { display: flex; gap: 13px; margin: 23px 0; padding: 16px; background: rgba(217,255,85,.08); border-left: 2px solid var(--acid); }
.pulse-dot { flex: none; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(217,255,85,.1); }
.algorithm-note p { display: grid; gap: 4px; margin: 0; }
.algorithm-note b { color: var(--acid); font-size: 10px; }
.algorithm-note small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.setup-continue { margin-bottom: 6px; }

.room-screen { background: radial-gradient(circle at 100% 20%, #5a2021 0, transparent 34%), var(--black); }
.room-status { margin-top: 78px; }
.room-status h2 { margin: 16px 0 20px; font-size: 60px; }
.room-status > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 370px; }
.invite-ticket { display: grid; grid-template-columns: 1fr 74px; margin: 35px 0 15px; background: var(--cream); color: var(--ink); min-height: 125px; transform: rotate(-1deg); box-shadow: 0 20px 45px #0009; }
.ticket-main { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 20px 23px; border-right: 1px dashed #7c7467; }
.ticket-main::before, .ticket-main::after { content: ""; position: absolute; right: -8px; width: 15px; height: 15px; border-radius: 50%; background: var(--black); }
.ticket-main::before { top: -8px; }.ticket-main::after { bottom: -8px; }
.ticket-main span, .ticket-main small, .invite-ticket button small { font: 600 8px/1 var(--mono); letter-spacing: .12em; }
.ticket-main strong { margin: 8px 0; font-family: var(--display); font-size: 38px; font-weight: 400; letter-spacing: .08em; }
.invite-ticket button { border: 0; background: var(--acid); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
.invite-ticket button span { font-size: 21px; }
.connection-card { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 29px; padding: 17px; background: #181513; border: 1px solid var(--line); }
.avatars { display: flex; }
.avatars span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; background: var(--tomato); color: #1d0e0b; border: 2px solid #181513; font-size: 11px; font-weight: 800; }
.avatars .empty { margin-left: -10px; background: #39332e; color: #a49c91; }
.connection-card b, .connection-card small { display: block; }
.connection-card b { font-size: 12px; }.connection-card small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.status-light { position: absolute; right: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); }
.room-rules { display: flex; justify-content: space-between; margin-top: 18px; color: #756d64; font: 500 7px/1 var(--mono); letter-spacing: .08em; }
.begin-demo { margin-top: auto; color: var(--cream); font-size: 13px; }
.begin-demo span { color: var(--tomato); margin-left: 7px; }

.swipe-screen { padding-left: 15px; padding-right: 15px; background: #0b0a09; overflow: hidden; }
.icon-button, .match-counter { width: 39px; height: 39px; padding: 0; border: 1px solid var(--line); background: #151311; color: var(--cream); }
.icon-button { font-size: 18px; }
.match-counter { display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--tomato); }
.match-counter b { min-width: 12px; font: 600 9px/1 var(--mono); }
.deck-status { display: flex; justify-content: space-between; margin: 18px 2px 10px; color: var(--muted); font: 500 8px/1 var(--mono); letter-spacing: .09em; }
.deck-status span:last-child { color: var(--acid); }
.progress { height: 2px; background: #332e29; margin-bottom: 11px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--tomato); transition: width .3s ease; }
.card-stack { position: relative; flex: 1; min-height: 450px; max-height: calc(100dvh - 245px); }
.movie-card { position: absolute; z-index: 2; inset: 0; overflow: hidden; background: #211d19; box-shadow: 0 20px 40px #000b; touch-action: none; transform-origin: 50% 90%; transition: transform 60ms cubic-bezier(.2,.8,.2,1), opacity 60ms linear; will-change: transform, opacity; }
.movie-card.next-card { z-index: 1; transform: translateY(7px) scale(.975); opacity: .72; pointer-events: none; }
.movie-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,7,6,.03) 25%, rgba(8,7,6,.32) 51%, rgba(8,7,6,.98) 92%); pointer-events: none; }
.movie-card > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-topline { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; }
.curator-tag, .rating-tag { padding: 8px 9px; background: rgba(14,12,11,.82); color: var(--cream); backdrop-filter: blur(8px); font: 600 8px/1 var(--mono); letter-spacing: .08em; }
.curator-tag { background: var(--acid); color: #202411; }
.movie-content { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 19px; }
.movie-meta { color: #e5ddcf; font: 500 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.movie-content h2 { margin: 8px 0 9px; font-size: clamp(42px, 12vw, 59px); line-height: .84; text-shadow: 0 3px 20px #000; }
.movie-content > p { display: -webkit-box; margin: 0; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #d2c9bc; font-size: 11px; line-height: 1.5; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.why-this { color: var(--acid); font: 500 8px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.trailer-button { flex: none; border: 1px solid rgba(241,234,220,.45); background: rgba(14,12,11,.64); color: var(--cream); padding: 10px 12px; display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 800; backdrop-filter: blur(8px); }
.play-icon { display: inline-block; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 7px solid currentColor; }
.swipe-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 10px; }
.swipe-button { height: 52px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 9px; background: #161311; color: var(--cream); }
.swipe-button:active { transform: scale(.96); }
.swipe-button span { font-size: 24px; line-height: 1; }.swipe-button small { font: 600 8px/1 var(--mono); letter-spacing: .1em; }
.swipe-button.nope { color: #c9c0b4; }.swipe-button.like { background: var(--tomato); border-color: var(--tomato); color: #1d0e0b; }
.swipe-hint { display: flex; justify-content: space-between; margin: 0; color: #5f5952; font: 500 7px/1 var(--mono); letter-spacing: .1em; }
.swipe-hint i { font-style: normal; color: #8b837a; }

.matches-screen { position: relative; overflow: hidden; text-align: center; }
.match-backdrop { position: absolute; inset: 0; }
.match-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,7,6,.48), rgba(8,7,6,.96) 55%, #0b0a09 88%); }
.match-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(.75); transform: scale(1.04); }
.match-header { position: relative; z-index: 2; }
.match-copy { position: relative; z-index: 2; margin-top: 42px; }
.match-burst { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--acid); font: 600 8px/1 var(--mono); letter-spacing: .11em; }
.match-burst span { color: var(--tomato); font-size: 14px; }
.match-copy .kicker { margin: 16px 0 10px; color: #c6bdb1; }
.match-copy h2 { margin: 0 auto; max-width: 430px; font-size: clamp(53px, 14vw, 76px); line-height: .82; }
.match-copy > p:not(.kicker) { color: #c6bdb1; font: 500 9px/1.4 var(--mono); }
.mini-poster { position: relative; width: 132px; height: 183px; margin: 21px auto 0; transform: rotate(2deg); box-shadow: 0 15px 35px #000; }
.mini-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-poster span { position: absolute; left: -20px; bottom: 11px; width: 172px; padding: 7px; background: var(--acid); color: #1f2311; font: 600 7px/1 var(--mono); letter-spacing: .1em; transform: rotate(-5deg); }
.match-actions { position: relative; z-index: 2; margin-top: auto; display: grid; gap: 11px; }
.trailer-primary { background: var(--cream); color: var(--ink); border: 1px solid var(--cream); box-shadow: 5px 5px 0 #71695c; }
.trailer-primary span { display: flex; align-items: center; gap: 10px; }

.trailer-modal { position: fixed; z-index: 50; inset: 0; display: grid; align-items: end; background: rgba(0,0,0,.82); opacity: 0; visibility: hidden; transition: .22s ease; }
.trailer-modal.open { opacity: 1; visibility: visible; }
.trailer-shell { width: min(100%, 720px); margin: 0 auto; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); background: #11100e; border-top: 2px solid var(--tomato); transform: translateY(25px); transition: .22s ease; }
.trailer-modal.open .trailer-shell { transform: translateY(0); }
.trailer-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 15px; }
.trailer-top span { color: var(--tomato); font: 600 8px/1 var(--mono); letter-spacing: .12em; }
.trailer-top h2 { margin-top: 4px; font-size: 31px; }
.trailer-top button { width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; color: var(--cream); font-size: 25px; }
.trailer-frame { aspect-ratio: 16 / 9; display: grid; place-items: center; background: #000; color: var(--muted); font-size: 12px; }
.trailer-frame iframe { width: 100%; height: 100%; border: 0; }
.trailer-external { display: block; text-align: center; margin-top: 14px; }

#toast { position: fixed; z-index: 100; left: 50%; bottom: 27px; max-width: calc(100% - 32px); transform: translate(-50%, 18px); opacity: 0; pointer-events: none; background: var(--acid); color: #171b0d; padding: 12px 15px; font: 600 9px/1.3 var(--mono); letter-spacing: .04em; text-align: center; transition: .22s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-height: 740px) {
  .welcome-copy { margin-top: 42px; }
  .poster-stage { height: 190px; }
  .poster-card { width: 132px; height: 169px; }
  .poster-card b { font-size: 34px; }
  .poster-back { left: 84px; }.poster-front { right: 62px; }
  .card-stack { min-height: 385px; }
  .match-copy { margin-top: 24px; }
  .mini-poster { width: 108px; height: 151px; margin-top: 14px; }
}

@media (min-width: 700px) {
  body { min-height: 100dvh; padding: 26px; background: #3a1517; }
  body::before, body::after { display: block; position: fixed; z-index: 0; font-family: var(--display); color: rgba(241,234,220,.08); line-height: .73; pointer-events: none; }
  body::before { content: "DOUBLE"; left: -20px; top: 34px; font-size: 17vw; }
  body::after { content: "FEATURE"; right: -20px; bottom: 30px; font-size: 17vw; }
  .app-shell { min-height: calc(100dvh - 52px); border: 1px solid rgba(241,234,220,.22); box-shadow: 0 40px 100px #150709; }
  .screen { min-height: calc(100dvh - 54px); }
  .trailer-modal { align-items: center; }
  .trailer-shell { border: 1px solid var(--line); border-top: 2px solid var(--tomato); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
